From 39091c24cb7f59921118c8651e1f3b7d409dcb37 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 18:23:57 -0500 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.395.1 (#138) Co-authored-by: speakeasybot --- .speakeasy/gen.lock | 13256 ++++++++++++- .speakeasy/workflow.lock | 8 +- README.md | 15 +- RELEASES.md | 12 +- docs/data-sources/connection.md | 2 +- ...n_langchain.md => destination_timeplus.md} | 10 +- ...godb_internal_poc.md => source_airbyte.md} | 10 +- ...{source_punk_api.md => source_basecamp.md} | 10 +- ...ce_account_only.md => source_breezy_hr.md} | 10 +- docs/data-sources/source_calendly.md | 35 + docs/data-sources/source_clazar.md | 35 + docs/data-sources/source_customer_io.md | 35 + docs/data-sources/source_datadog.md | 35 + docs/data-sources/source_dbt.md | 35 + docs/data-sources/source_goldcast.md | 35 + docs/data-sources/source_hardcoded_records.md | 35 + docs/data-sources/source_hibob.md | 35 + docs/data-sources/source_high_level.md | 35 + docs/data-sources/source_leadfeeder.md | 35 + docs/data-sources/source_looker.md | 35 + docs/data-sources/source_luma.md | 35 + docs/data-sources/source_northpass_lms.md | 35 + docs/data-sources/source_pennylane.md | 35 + docs/data-sources/source_planhat.md | 35 + docs/data-sources/source_reddit.md | 35 + docs/data-sources/source_savvycal.md | 35 + docs/data-sources/source_scryfall.md | 35 + docs/index.md | 2 +- docs/resources/destination_astra.md | 2 +- docs/resources/destination_aws_datalake.md | 4 +- docs/resources/destination_bigquery.md | 36 +- docs/resources/destination_clickhouse.md | 8 +- docs/resources/destination_convex.md | 6 +- docs/resources/destination_custom.md | 6 +- docs/resources/destination_databricks.md | 77 +- docs/resources/destination_elasticsearch.md | 4 +- docs/resources/destination_firebolt.md | 2 +- docs/resources/destination_firestore.md | 2 +- docs/resources/destination_google_sheets.md | 4 +- docs/resources/destination_langchain.md | 147 - docs/resources/destination_milvus.md | 16 +- docs/resources/destination_mongodb.md | 8 +- docs/resources/destination_mssql.md | 8 +- docs/resources/destination_mysql.md | 10 +- docs/resources/destination_oracle.md | 8 +- docs/resources/destination_pinecone.md | 12 +- docs/resources/destination_postgres.md | 18 +- docs/resources/destination_pubsub.md | 16 +- docs/resources/destination_qdrant.md | 16 +- docs/resources/destination_redis.md | 14 +- docs/resources/destination_redshift.md | 39 +- docs/resources/destination_s3.md | 8 +- docs/resources/destination_s3_glue.md | 12 +- docs/resources/destination_sftp_json.md | 8 +- docs/resources/destination_snowflake.md | 18 +- .../resources/destination_snowflake_cortex.md | 16 +- docs/resources/destination_teradata.md | 12 +- docs/resources/destination_timeplus.md | 62 + docs/resources/destination_typesense.md | 12 +- docs/resources/destination_vectara.md | 8 +- docs/resources/destination_weaviate.md | 24 +- docs/resources/destination_yellowbrick.md | 14 +- docs/resources/permission.md | 8 +- docs/resources/source_aha.md | 6 +- docs/resources/source_airbyte.md | 63 + docs/resources/source_aircall.md | 8 +- docs/resources/source_airtable.md | 14 +- docs/resources/source_amazon_ads.md | 16 +- .../resources/source_amazon_seller_partner.md | 20 +- docs/resources/source_amazon_sqs.md | 10 +- docs/resources/source_amplitude.md | 8 +- docs/resources/source_apify_dataset.md | 6 +- docs/resources/source_appfollow.md | 8 +- docs/resources/source_asana.md | 10 +- docs/resources/source_auth0.md | 10 +- docs/resources/source_aws_cloudtrail.md | 25 +- docs/resources/source_azure_blob_storage.md | 20 +- docs/resources/source_azure_table.md | 10 +- docs/resources/source_bamboo_hr.md | 10 +- docs/resources/source_basecamp.md | 67 + docs/resources/source_bigquery.md | 8 +- docs/resources/source_bing_ads.md | 22 +- docs/resources/source_braintree.md | 10 +- docs/resources/source_braze.md | 8 +- docs/resources/source_breezy_hr.md | 61 + ...{source_punk_api.md => source_calendly.md} | 31 +- docs/resources/source_cart.md | 14 +- docs/resources/source_chargebee.md | 6 +- docs/resources/source_chartmogul.md | 6 +- docs/resources/source_clazar.md | 61 + docs/resources/source_clickhouse.md | 8 +- docs/resources/source_clickup_api.md | 16 +- docs/resources/source_clockify.md | 6 +- docs/resources/source_close_com.md | 6 +- docs/resources/source_coda.md | 6 +- docs/resources/source_coin_api.md | 8 +- docs/resources/source_coinmarketcap.md | 6 +- docs/resources/source_configcat.md | 8 +- docs/resources/source_confluence.md | 6 +- docs/resources/source_convex.md | 6 +- docs/resources/source_custom.md | 6 +- docs/resources/source_customer_io.md | 59 + docs/resources/source_datadog.md | 91 + docs/resources/source_datascope.md | 6 +- docs/resources/source_dbt.md | 61 + docs/resources/source_delighted.md | 8 +- docs/resources/source_dixa.md | 6 +- docs/resources/source_dockerhub.md | 6 +- docs/resources/source_dremio.md | 6 +- docs/resources/source_dynamodb.md | 10 +- docs/resources/source_emailoctopus.md | 6 +- docs/resources/source_exchange_rates.md | 8 +- docs/resources/source_facebook_marketing.md | 74 +- docs/resources/source_faker.md | 16 +- docs/resources/source_fauna.md | 12 +- docs/resources/source_file.md | 16 +- docs/resources/source_firebolt.md | 8 +- docs/resources/source_fleetio.md | 6 +- docs/resources/source_freshcaller.md | 8 +- docs/resources/source_freshdesk.md | 8 +- docs/resources/source_freshsales.md | 6 +- docs/resources/source_gainsight_px.md | 6 +- docs/resources/source_gcs.md | 151 +- docs/resources/source_getlago.md | 6 +- docs/resources/source_github.md | 12 +- docs/resources/source_gitlab.md | 16 +- docs/resources/source_glassfrog.md | 6 +- docs/resources/source_gnews.md | 20 +- docs/resources/source_goldcast.md | 59 + docs/resources/source_google_ads.md | 10 +- .../source_google_analytics_data_api.md | 24 +- ...oogle_analytics_v4_service_account_only.md | 90 - docs/resources/source_google_directory.md | 14 +- docs/resources/source_google_drive.md | 24 +- .../source_google_pagespeed_insights.md | 8 +- .../resources/source_google_search_console.md | 18 +- docs/resources/source_google_sheets.md | 14 +- docs/resources/source_google_webfonts.md | 6 +- docs/resources/source_greenhouse.md | 6 +- docs/resources/source_gridly.md | 6 +- docs/resources/source_hardcoded_records.md | 59 + docs/resources/source_harvest.md | 10 +- docs/resources/source_hibob.md | 66 + docs/resources/source_high_level.md | 63 + docs/resources/source_hubplanner.md | 6 +- docs/resources/source_hubspot.md | 8 +- docs/resources/source_insightly.md | 6 +- docs/resources/source_instagram.md | 10 +- docs/resources/source_instatus.md | 6 +- docs/resources/source_intercom.md | 12 +- docs/resources/source_ip2whois.md | 6 +- docs/resources/source_iterable.md | 6 +- docs/resources/source_jira.md | 14 +- docs/resources/source_k6_cloud.md | 6 +- docs/resources/source_klarna.md | 10 +- docs/resources/source_klaviyo.md | 12 +- docs/resources/source_kyve.md | 12 +- docs/resources/source_launchdarkly.md | 6 +- docs/resources/source_leadfeeder.md | 61 + docs/resources/source_lemlist.md | 6 +- docs/resources/source_lever_hiring.md | 10 +- docs/resources/source_linkedin_ads.md | 16 +- docs/resources/source_linkedin_pages.md | 14 +- docs/resources/source_linnworks.md | 10 +- docs/resources/source_lokalise.md | 6 +- docs/resources/source_looker.md | 70 + docs/resources/source_luma.md | 59 + docs/resources/source_mailchimp.md | 10 +- docs/resources/source_mailgun.md | 6 +- docs/resources/source_mailjet_sms.md | 6 +- docs/resources/source_marketo.md | 12 +- docs/resources/source_metabase.md | 10 +- docs/resources/source_microsoft_onedrive.md | 94 +- docs/resources/source_microsoft_sharepoint.md | 107 +- docs/resources/source_microsoft_teams.md | 14 +- docs/resources/source_mixpanel.md | 18 +- docs/resources/source_monday.md | 10 +- docs/resources/source_mongodb_internal_poc.md | 67 - docs/resources/source_mongodb_v2.md | 14 +- docs/resources/source_mssql.md | 16 +- docs/resources/source_my_hours.md | 8 +- docs/resources/source_mysql.md | 20 +- docs/resources/source_netsuite.md | 12 +- docs/resources/source_northpass_lms.md | 59 + docs/resources/source_notion.md | 10 +- docs/resources/source_nytimes.md | 10 +- docs/resources/source_okta.md | 24 +- docs/resources/source_omnisend.md | 6 +- docs/resources/source_onesignal.md | 8 +- docs/resources/source_oracle.md | 12 +- docs/resources/source_orb.md | 14 +- docs/resources/source_orbit.md | 6 +- docs/resources/source_outbrain_amplify.md | 10 +- docs/resources/source_outreach.md | 8 +- docs/resources/source_paypal_transaction.md | 14 +- docs/resources/source_paystack.md | 6 +- docs/resources/source_pendo.md | 6 +- docs/resources/source_pennylane.md | 61 + docs/resources/source_persistiq.md | 6 +- docs/resources/source_pexels_api.md | 10 +- docs/resources/source_pinterest.md | 24 +- docs/resources/source_pipedrive.md | 6 +- docs/resources/source_planhat.md | 59 + docs/resources/source_pocket.md | 16 +- docs/resources/source_pokeapi.md | 6 +- docs/resources/source_polygon_stock_api.md | 10 +- docs/resources/source_postgres.md | 21 +- docs/resources/source_posthog.md | 8 +- docs/resources/source_postmarkapp.md | 10 +- docs/resources/source_prestashop.md | 6 +- docs/resources/source_pypi.md | 6 +- docs/resources/source_qualaroo.md | 6 +- docs/resources/source_railz.md | 6 +- docs/resources/source_recharge.md | 6 +- docs/resources/source_recreation.md | 6 +- docs/resources/source_recruitee.md | 8 +- docs/resources/source_recurly.md | 6 +- docs/resources/source_reddit.md | 76 + docs/resources/source_redshift.md | 8 +- docs/resources/source_retently.md | 8 +- docs/resources/source_rki_covid.md | 6 +- docs/resources/source_rss.md | 6 +- docs/resources/source_s3.md | 92 +- docs/resources/source_salesforce.md | 12 +- docs/resources/source_salesloft.md | 10 +- docs/resources/source_sap_fieldglass.md | 6 +- docs/resources/source_savvycal.md | 59 + docs/resources/source_scryfall.md | 53 + docs/resources/source_secoda.md | 6 +- docs/resources/source_sendgrid.md | 8 +- docs/resources/source_sendinblue.md | 6 +- docs/resources/source_senseforce.md | 8 +- docs/resources/source_sentry.md | 8 +- docs/resources/source_sftp.md | 6 +- docs/resources/source_sftp_bulk.md | 118 +- docs/resources/source_shopify.md | 24 +- docs/resources/source_shortio.md | 10 +- docs/resources/source_slack.md | 12 +- docs/resources/source_smaily.md | 6 +- docs/resources/source_smartengage.md | 6 +- docs/resources/source_smartsheets.md | 14 +- docs/resources/source_snapchat_marketing.md | 16 +- docs/resources/source_snowflake.md | 33 +- docs/resources/source_sonar_cloud.md | 8 +- docs/resources/source_spacex_api.md | 8 +- docs/resources/source_square.md | 12 +- docs/resources/source_strava.md | 8 +- docs/resources/source_stripe.md | 12 +- docs/resources/source_survey_sparrow.md | 6 +- docs/resources/source_surveymonkey.md | 12 +- docs/resources/source_tempo.md | 6 +- docs/resources/source_the_guardian_api.md | 12 +- docs/resources/source_tiktok_marketing.md | 18 +- docs/resources/source_trello.md | 6 +- docs/resources/source_trustpilot.md | 16 +- docs/resources/source_tvmaze_schedule.md | 10 +- docs/resources/source_twilio.md | 8 +- docs/resources/source_twilio_taskrouter.md | 8 +- docs/resources/source_twitter.md | 10 +- docs/resources/source_typeform.md | 14 +- docs/resources/source_us_census.md | 8 +- docs/resources/source_vantage.md | 6 +- docs/resources/source_webflow.md | 6 +- docs/resources/source_whisky_hunter.md | 6 +- docs/resources/source_wikipedia_pageviews.md | 14 +- docs/resources/source_woocommerce.md | 8 +- docs/resources/source_xkcd.md | 14 +- docs/resources/source_yandex_metrica.md | 6 +- docs/resources/source_yotpo.md | 10 +- docs/resources/source_youtube_analytics.md | 10 +- docs/resources/source_zendesk_chat.md | 10 +- docs/resources/source_zendesk_sell.md | 6 +- docs/resources/source_zendesk_sunshine.md | 12 +- docs/resources/source_zendesk_support.md | 12 +- docs/resources/source_zendesk_talk.md | 12 +- docs/resources/source_zenloop.md | 10 +- docs/resources/source_zoho_crm.md | 18 +- docs/resources/source_zoom.md | 8 +- docs/resources/workspace.md | 4 +- .../data-source.tf | 3 - .../data-source.tf | 3 + .../airbyte_source_airbyte/data-source.tf | 3 + .../airbyte_source_basecamp/data-source.tf | 3 + .../airbyte_source_breezy_hr/data-source.tf | 3 + .../airbyte_source_calendly/data-source.tf | 3 + .../airbyte_source_clazar/data-source.tf | 3 + .../airbyte_source_customer_io/data-source.tf | 3 + .../airbyte_source_datadog/data-source.tf | 3 + .../airbyte_source_dbt/data-source.tf | 3 + .../airbyte_source_goldcast/data-source.tf | 3 + .../data-source.tf | 3 - .../data-source.tf | 3 + .../airbyte_source_hibob/data-source.tf | 3 + .../airbyte_source_high_level/data-source.tf | 3 + .../airbyte_source_leadfeeder/data-source.tf | 3 + .../airbyte_source_looker/data-source.tf | 3 + .../airbyte_source_luma/data-source.tf | 3 + .../data-source.tf | 3 - .../data-source.tf | 3 + .../airbyte_source_pennylane/data-source.tf | 3 + .../airbyte_source_planhat/data-source.tf | 3 + .../airbyte_source_punk_api/data-source.tf | 3 - .../airbyte_source_reddit/data-source.tf | 3 + .../airbyte_source_savvycal/data-source.tf | 3 + .../airbyte_source_scryfall/data-source.tf | 3 + examples/provider/provider.tf | 2 +- .../airbyte_destination_bigquery/resource.tf | 20 +- .../resource.tf | 8 +- .../airbyte_destination_convex/resource.tf | 6 +- .../airbyte_destination_custom/resource.tf | 6 +- .../resource.tf | 24 +- .../airbyte_destination_langchain/import.sh | 1 - .../airbyte_destination_langchain/resource.tf | 23 - .../airbyte_destination_milvus/resource.tf | 16 +- .../airbyte_destination_mongodb/resource.tf | 8 +- .../airbyte_destination_mssql/resource.tf | 8 +- .../airbyte_destination_mysql/resource.tf | 10 +- .../airbyte_destination_oracle/resource.tf | 8 +- .../airbyte_destination_pinecone/resource.tf | 12 +- .../airbyte_destination_postgres/resource.tf | 12 +- .../airbyte_destination_pubsub/resource.tf | 14 +- .../airbyte_destination_qdrant/resource.tf | 16 +- .../airbyte_destination_redis/resource.tf | 10 +- .../airbyte_destination_redshift/resource.tf | 19 +- .../airbyte_destination_s3/resource.tf | 8 +- .../airbyte_destination_s3_glue/resource.tf | 12 +- .../airbyte_destination_sftp_json/resource.tf | 8 +- .../airbyte_destination_snowflake/resource.tf | 11 +- .../resource.tf | 14 +- .../airbyte_destination_teradata/resource.tf | 8 +- .../airbyte_destination_timeplus/import.sh | 1 + .../airbyte_destination_timeplus/resource.tf | 9 + .../airbyte_destination_typesense/resource.tf | 8 +- .../airbyte_destination_vectara/resource.tf | 6 +- .../airbyte_destination_weaviate/resource.tf | 18 +- .../resource.tf | 8 +- .../resources/airbyte_permission/resource.tf | 8 +- .../resources/airbyte_source_aha/resource.tf | 6 +- .../airbyte_source_airbyte/import.sh | 1 + .../airbyte_source_airbyte/resource.tf | 11 + .../airbyte_source_aircall/resource.tf | 6 +- .../airbyte_source_airtable/resource.tf | 8 +- .../airbyte_source_amazon_ads/resource.tf | 12 +- .../resource.tf | 13 +- .../airbyte_source_amazon_sqs/resource.tf | 10 +- .../airbyte_source_amplitude/resource.tf | 8 +- .../airbyte_source_apify_dataset/resource.tf | 6 +- .../airbyte_source_appfollow/resource.tf | 6 +- .../airbyte_source_asana/resource.tf | 6 +- .../airbyte_source_auth0/resource.tf | 6 +- .../airbyte_source_aws_cloudtrail/resource.tf | 12 +- .../resource.tf | 12 +- .../airbyte_source_azure_table/resource.tf | 6 +- .../airbyte_source_bamboo_hr/resource.tf | 9 +- .../airbyte_source_basecamp/import.sh | 1 + .../airbyte_source_basecamp/resource.tf | 13 + .../airbyte_source_bigquery/resource.tf | 6 +- .../airbyte_source_bing_ads/resource.tf | 16 +- .../airbyte_source_braintree/resource.tf | 8 +- .../airbyte_source_braze/resource.tf | 8 +- .../airbyte_source_breezy_hr/import.sh | 1 + .../airbyte_source_breezy_hr/resource.tf | 10 + .../airbyte_source_calendly/import.sh | 1 + .../airbyte_source_calendly/resource.tf | 10 + .../resources/airbyte_source_cart/resource.tf | 8 +- .../airbyte_source_chargebee/resource.tf | 6 +- .../airbyte_source_chartmogul/resource.tf | 6 +- .../resources/airbyte_source_clazar/import.sh | 1 + .../airbyte_source_clazar/resource.tf | 10 + .../airbyte_source_clickhouse/resource.tf | 8 +- .../airbyte_source_clickup_api/resource.tf | 12 +- .../airbyte_source_clockify/resource.tf | 6 +- .../airbyte_source_close_com/resource.tf | 6 +- .../resources/airbyte_source_coda/resource.tf | 6 +- .../airbyte_source_coin_api/resource.tf | 8 +- .../airbyte_source_coinmarketcap/resource.tf | 6 +- .../airbyte_source_configcat/resource.tf | 8 +- .../airbyte_source_confluence/resource.tf | 6 +- .../airbyte_source_convex/resource.tf | 6 +- .../airbyte_source_custom/resource.tf | 6 +- .../airbyte_source_customer_io/import.sh | 1 + .../airbyte_source_customer_io/resource.tf | 9 + .../airbyte_source_datadog/import.sh | 1 + .../airbyte_source_datadog/resource.tf | 22 + .../airbyte_source_datascope/resource.tf | 6 +- .../resources/airbyte_source_dbt/import.sh | 1 + .../resources/airbyte_source_dbt/resource.tf | 10 + .../airbyte_source_delighted/resource.tf | 8 +- .../resources/airbyte_source_dixa/resource.tf | 6 +- .../airbyte_source_dockerhub/resource.tf | 6 +- .../airbyte_source_dremio/resource.tf | 6 +- .../airbyte_source_dynamodb/resource.tf | 8 +- .../airbyte_source_emailoctopus/resource.tf | 6 +- .../airbyte_source_exchange_rates/resource.tf | 8 +- .../resource.tf | 39 +- .../airbyte_source_faker/resource.tf | 16 +- .../airbyte_source_fauna/resource.tf | 10 +- .../resources/airbyte_source_file/resource.tf | 12 +- .../airbyte_source_firebolt/resource.tf | 6 +- .../airbyte_source_fleetio/resource.tf | 6 +- .../airbyte_source_freshcaller/resource.tf | 8 +- .../airbyte_source_freshdesk/resource.tf | 8 +- .../airbyte_source_freshsales/resource.tf | 6 +- .../airbyte_source_gainsight_px/resource.tf | 6 +- .../resources/airbyte_source_gcs/resource.tf | 46 +- .../airbyte_source_getlago/resource.tf | 6 +- .../airbyte_source_github/resource.tf | 8 +- .../airbyte_source_gitlab/resource.tf | 10 +- .../airbyte_source_glassfrog/resource.tf | 6 +- .../airbyte_source_gnews/resource.tf | 20 +- .../airbyte_source_goldcast/import.sh | 1 + .../airbyte_source_goldcast/resource.tf | 9 + .../airbyte_source_google_ads/resource.tf | 8 +- .../resource.tf | 20 +- .../import.sh | 1 - .../resource.tf | 18 - .../resource.tf | 8 +- .../airbyte_source_google_drive/resource.tf | 16 +- .../resource.tf | 8 +- .../resource.tf | 12 +- .../airbyte_source_google_sheets/resource.tf | 8 +- .../resource.tf | 6 +- .../airbyte_source_greenhouse/resource.tf | 6 +- .../airbyte_source_gridly/resource.tf | 6 +- .../import.sh | 1 + .../resource.tf | 9 + .../airbyte_source_harvest/resource.tf | 6 +- .../resources/airbyte_source_hibob/import.sh | 1 + .../airbyte_source_hibob/resource.tf | 11 + .../airbyte_source_high_level/import.sh | 1 + .../airbyte_source_high_level/resource.tf | 11 + .../airbyte_source_hubplanner/resource.tf | 6 +- .../airbyte_source_hubspot/resource.tf | 6 +- .../airbyte_source_insightly/resource.tf | 6 +- .../airbyte_source_instagram/resource.tf | 6 +- .../airbyte_source_instatus/resource.tf | 6 +- .../airbyte_source_intercom/resource.tf | 8 +- .../airbyte_source_ip2whois/resource.tf | 6 +- .../airbyte_source_iterable/resource.tf | 6 +- .../resources/airbyte_source_jira/resource.tf | 14 +- .../airbyte_source_k6_cloud/resource.tf | 6 +- .../airbyte_source_klarna/resource.tf | 10 +- .../airbyte_source_klaviyo/resource.tf | 11 +- .../resources/airbyte_source_kyve/resource.tf | 12 +- .../airbyte_source_launchdarkly/resource.tf | 6 +- .../airbyte_source_leadfeeder/import.sh | 1 + .../airbyte_source_leadfeeder/resource.tf | 10 + .../airbyte_source_lemlist/resource.tf | 6 +- .../airbyte_source_lever_hiring/resource.tf | 8 +- .../airbyte_source_linkedin_ads/resource.tf | 12 +- .../airbyte_source_linkedin_pages/resource.tf | 8 +- .../airbyte_source_linnworks/resource.tf | 8 +- .../airbyte_source_lokalise/resource.tf | 6 +- .../resources/airbyte_source_looker/import.sh | 1 + .../airbyte_source_looker/resource.tf | 14 + .../resources/airbyte_source_luma/import.sh | 1 + .../resources/airbyte_source_luma/resource.tf | 9 + .../airbyte_source_mailchimp/resource.tf | 6 +- .../airbyte_source_mailgun/resource.tf | 6 +- .../airbyte_source_mailjet_sms/resource.tf | 6 +- .../airbyte_source_marketo/resource.tf | 6 +- .../airbyte_source_metabase/resource.tf | 8 +- .../resource.tf | 12 +- .../resource.tf | 21 +- .../resource.tf | 6 +- .../airbyte_source_mixpanel/resource.tf | 13 +- .../airbyte_source_monday/resource.tf | 6 +- .../import.sh | 1 - .../resource.tf | 13 - .../airbyte_source_mongodb_v2/resource.tf | 13 +- .../airbyte_source_mssql/resource.tf | 13 +- .../airbyte_source_my_hours/resource.tf | 8 +- .../airbyte_source_mysql/resource.tf | 11 +- .../airbyte_source_netsuite/resource.tf | 8 +- .../airbyte_source_northpass_lms/import.sh | 1 + .../airbyte_source_northpass_lms/resource.tf | 9 + .../airbyte_source_notion/resource.tf | 6 +- .../airbyte_source_nytimes/resource.tf | 10 +- .../resources/airbyte_source_okta/resource.tf | 6 +- .../airbyte_source_omnisend/resource.tf | 6 +- .../airbyte_source_onesignal/resource.tf | 6 +- .../airbyte_source_oracle/resource.tf | 10 +- .../resources/airbyte_source_orb/resource.tf | 8 +- .../airbyte_source_orbit/resource.tf | 6 +- .../resource.tf | 10 +- .../airbyte_source_outreach/resource.tf | 6 +- .../resource.tf | 10 +- .../airbyte_source_paystack/resource.tf | 6 +- .../airbyte_source_pendo/resource.tf | 6 +- .../airbyte_source_pennylane/import.sh | 1 + .../airbyte_source_pennylane/resource.tf | 10 + .../airbyte_source_persistiq/resource.tf | 6 +- .../airbyte_source_pexels_api/resource.tf | 10 +- .../airbyte_source_pinterest/resource.tf | 20 +- .../airbyte_source_pipedrive/resource.tf | 6 +- .../airbyte_source_planhat/import.sh | 1 + .../airbyte_source_planhat/resource.tf | 9 + .../airbyte_source_pocket/resource.tf | 16 +- .../airbyte_source_pokeapi/resource.tf | 6 +- .../resource.tf | 8 +- .../airbyte_source_postgres/resource.tf | 8 +- .../airbyte_source_posthog/resource.tf | 8 +- .../airbyte_source_postmarkapp/resource.tf | 6 +- .../airbyte_source_prestashop/resource.tf | 6 +- .../airbyte_source_punk_api/import.sh | 1 - .../airbyte_source_punk_api/resource.tf | 11 - .../resources/airbyte_source_pypi/resource.tf | 6 +- .../airbyte_source_qualaroo/resource.tf | 6 +- .../airbyte_source_railz/resource.tf | 6 +- .../airbyte_source_recharge/resource.tf | 6 +- .../airbyte_source_recreation/resource.tf | 6 +- .../airbyte_source_recruitee/resource.tf | 8 +- .../airbyte_source_recurly/resource.tf | 6 +- .../resources/airbyte_source_reddit/import.sh | 1 + .../airbyte_source_reddit/resource.tf | 17 + .../airbyte_source_redshift/resource.tf | 8 +- .../airbyte_source_retently/resource.tf | 6 +- .../airbyte_source_rki_covid/resource.tf | 6 +- .../resources/airbyte_source_rss/resource.tf | 6 +- .../resources/airbyte_source_s3/resource.tf | 23 +- .../airbyte_source_salesforce/resource.tf | 10 +- .../airbyte_source_salesloft/resource.tf | 6 +- .../airbyte_source_sap_fieldglass/resource.tf | 6 +- .../airbyte_source_savvycal/import.sh | 1 + .../airbyte_source_savvycal/resource.tf | 9 + .../airbyte_source_scryfall/import.sh | 1 + .../airbyte_source_scryfall/resource.tf | 7 + .../airbyte_source_secoda/resource.tf | 6 +- .../airbyte_source_sendgrid/resource.tf | 8 +- .../airbyte_source_sendinblue/resource.tf | 6 +- .../airbyte_source_senseforce/resource.tf | 8 +- .../airbyte_source_sentry/resource.tf | 8 +- .../resources/airbyte_source_sftp/resource.tf | 6 +- .../airbyte_source_sftp_bulk/resource.tf | 23 +- .../airbyte_source_shopify/resource.tf | 17 +- .../airbyte_source_shortio/resource.tf | 6 +- .../airbyte_source_slack/resource.tf | 10 +- .../airbyte_source_smaily/resource.tf | 6 +- .../airbyte_source_smartengage/resource.tf | 6 +- .../airbyte_source_smartsheets/resource.tf | 8 +- .../resource.tf | 12 +- .../airbyte_source_snowflake/resource.tf | 15 +- .../airbyte_source_sonar_cloud/resource.tf | 6 +- .../airbyte_source_spacex_api/resource.tf | 8 +- .../airbyte_source_square/resource.tf | 8 +- .../airbyte_source_strava/resource.tf | 6 +- .../airbyte_source_stripe/resource.tf | 10 +- .../airbyte_source_survey_sparrow/resource.tf | 6 +- .../airbyte_source_surveymonkey/resource.tf | 8 +- .../airbyte_source_tempo/resource.tf | 6 +- .../resource.tf | 12 +- .../resource.tf | 12 +- .../airbyte_source_trello/resource.tf | 6 +- .../airbyte_source_trustpilot/resource.tf | 8 +- .../resource.tf | 10 +- .../airbyte_source_twilio/resource.tf | 6 +- .../resource.tf | 6 +- .../airbyte_source_twitter/resource.tf | 10 +- .../airbyte_source_typeform/resource.tf | 8 +- .../airbyte_source_us_census/resource.tf | 8 +- .../airbyte_source_vantage/resource.tf | 6 +- .../airbyte_source_webflow/resource.tf | 6 +- .../airbyte_source_whisky_hunter/resource.tf | 6 +- .../resource.tf | 12 +- .../airbyte_source_woocommerce/resource.tf | 6 +- .../resources/airbyte_source_xkcd/resource.tf | 10 +- .../airbyte_source_yandex_metrica/resource.tf | 6 +- .../airbyte_source_yotpo/resource.tf | 8 +- .../resource.tf | 6 +- .../airbyte_source_zendesk_chat/resource.tf | 6 +- .../airbyte_source_zendesk_sell/resource.tf | 6 +- .../resource.tf | 8 +- .../resource.tf | 8 +- .../airbyte_source_zendesk_talk/resource.tf | 8 +- .../airbyte_source_zenloop/resource.tf | 6 +- .../airbyte_source_zoho_crm/resource.tf | 14 +- .../resources/airbyte_source_zoom/resource.tf | 6 +- .../resources/airbyte_workspace/resource.tf | 4 +- gen.yaml | 2 +- go.mod | 2 +- internal/provider/connection_data_source.go | 2 +- .../provider/destination_astra_resource.go | 1 - .../destination_awsdatalake_resource.go | 2 +- .../provider/destination_bigquery_resource.go | 25 +- .../destination_bigquery_resource_sdk.go | 36 +- .../destination_databricks_resource.go | 138 +- .../destination_databricks_resource_sdk.go | 254 +- .../destination_elasticsearch_resource.go | 2 + .../provider/destination_firebolt_resource.go | 1 + .../destination_firestore_resource.go | 1 + .../provider/destination_gcs_resource_sdk.go | 4 +- .../destination_googlesheets_resource.go | 2 + .../destination_langchain_resource_sdk.go | 228 - .../provider/destination_postgres_resource.go | 3 + .../provider/destination_pubsub_resource.go | 1 + .../provider/destination_redis_resource.go | 2 + .../provider/destination_redshift_resource.go | 35 - .../destination_redshift_resource_sdk.go | 60 - .../destination_snowflake_resource.go | 10 +- .../destination_snowflake_resource_sdk.go | 14 + .../destination_snowflakecortex_resource.go | 2 +- .../provider/destination_teradata_resource.go | 6 +- ...go => destination_timeplus_data_source.go} | 34 +- ...> destination_timeplus_data_source_sdk.go} | 2 +- ...ce.go => destination_timeplus_resource.go} | 222 +- .../destination_timeplus_resource_sdk.go | 68 + .../destination_typesense_resource.go | 3 +- .../provider/destination_vectara_resource.go | 1 + .../provider/destination_weaviate_resource.go | 7 +- .../destination_yellowbrick_resource.go | 3 + internal/provider/provider.go | 52 +- ...ource.go => source_airbyte_data_source.go} | 34 +- ...k.go => source_airbyte_data_source_sdk.go} | 2 +- internal/provider/source_airbyte_resource.go | 375 + ..._sdk.go => source_airbyte_resource_sdk.go} | 49 +- internal/provider/source_aircall_resource.go | 1 + internal/provider/source_airtable_resource.go | 3 +- .../provider/source_airtable_resource_sdk.go | 8 +- .../provider/source_amazonads_resource.go | 2 + .../source_amazonsellerpartner_resource.go | 11 +- ...source_amazonsellerpartner_resource_sdk.go | 54 +- .../provider/source_appfollow_resource.go | 1 + internal/provider/source_asana_resource.go | 6 +- internal/provider/source_auth0_resource.go | 2 + .../provider/source_awscloudtrail_resource.go | 27 +- .../source_awscloudtrail_resource_sdk.go | 70 +- .../source_azureblobstorage_resource.go | 4 +- .../provider/source_azuretable_resource.go | 2 + internal/provider/source_bamboohr_resource.go | 8 + .../provider/source_bamboohr_resource_sdk.go | 15 + .../provider/source_basecamp_data_source.go | 139 + ....go => source_basecamp_data_source_sdk.go} | 2 +- internal/provider/source_basecamp_resource.go | 383 + .../provider/source_basecamp_resource_sdk.go | 78 + internal/provider/source_bigquery_resource.go | 1 + internal/provider/source_bingads_resource.go | 3 + .../provider/source_braintree_resource.go | 1 - .../provider/source_breezyhr_data_source.go | 139 + ....go => source_breezyhr_data_source_sdk.go} | 2 +- internal/provider/source_breezyhr_resource.go | 368 + .../provider/source_breezyhr_resource_sdk.go | 65 + .../provider/source_calendly_data_source.go | 139 + .../source_calendly_data_source_sdk.go | 20 + internal/provider/source_calendly_resource.go | 373 + .../provider/source_calendly_resource_sdk.go | 66 + internal/provider/source_cart_resource.go | 3 + .../provider/source_chartmogul_resource.go | 14 +- .../provider/source_clazar_data_source.go | 139 + .../provider/source_clazar_data_source_sdk.go | 20 + internal/provider/source_clazar_resource.go | 368 + .../provider/source_clazar_resource_sdk.go | 65 + .../provider/source_clickupapi_resource.go | 16 - .../source_clickupapi_resource_sdk.go | 56 - ...ce.go => source_customerio_data_source.go} | 34 +- .../source_customerio_data_source_sdk.go | 20 + .../provider/source_customerio_resource.go | 364 + .../source_customerio_resource_sdk.go | 61 + .../provider/source_datadog_data_source.go | 139 + .../source_datadog_data_source_sdk.go | 20 + ...resource.go => source_datadog_resource.go} | 180 +- .../provider/source_datadog_resource_sdk.go | 159 + internal/provider/source_dbt_data_source.go | 139 + .../provider/source_dbt_data_source_sdk.go | 20 + internal/provider/source_dbt_resource.go | 367 + internal/provider/source_dbt_resource_sdk.go | 65 + internal/provider/source_dynamodb_resource.go | 1 + .../source_facebookmarketing_resource.go | 52 + .../source_facebookmarketing_resource_sdk.go | 70 + internal/provider/source_fauna_resource.go | 1 + internal/provider/source_file_resource.go | 2 +- internal/provider/source_firebolt_resource.go | 1 + internal/provider/source_gcs_resource.go | 179 +- internal/provider/source_gcs_resource_sdk.go | 316 +- internal/provider/source_github_resource.go | 2 + internal/provider/source_gitlab_resource.go | 3 +- .../provider/source_goldcast_data_source.go | 139 + .../source_goldcast_data_source_sdk.go | 20 + internal/provider/source_goldcast_resource.go | 365 + .../provider/source_goldcast_resource_sdk.go | 61 + .../provider/source_googleads_resource.go | 1 + .../source_googleanalyticsdataapi_resource.go | 2 + ...rce_googleanalyticsdataapi_resource_sdk.go | 8 +- ...lyticsv4serviceaccountonly_resource_sdk.go | 140 - .../source_googledirectory_resource.go | 3 + .../provider/source_googledrive_resource.go | 4 +- .../source_googlesearchconsole_resource.go | 3 + .../provider/source_googlesheets_resource.go | 3 + .../source_hardcodedrecords_data_source.go | 139 + ...source_hardcodedrecords_data_source_sdk.go | 20 + .../source_hardcodedrecords_resource.go | 367 + .../source_hardcodedrecords_resource_sdk.go | 71 + internal/provider/source_harvest_resource.go | 2 + internal/provider/source_hibob_data_source.go | 139 + .../provider/source_hibob_data_source_sdk.go | 20 + internal/provider/source_hibob_resource.go | 371 + .../provider/source_hibob_resource_sdk.go | 79 + .../provider/source_highlevel_data_source.go | 139 + .../source_highlevel_data_source_sdk.go | 20 + .../provider/source_highlevel_resource.go | 375 + .../provider/source_highlevel_resource_sdk.go | 70 + internal/provider/source_hubspot_resource.go | 1 + .../provider/source_instagram_resource.go | 2 + internal/provider/source_intercom_resource.go | 2 + internal/provider/source_iterable_resource.go | 14 +- internal/provider/source_klaviyo_resource.go | 4 + .../provider/source_klaviyo_resource_sdk.go | 22 +- .../provider/source_leadfeeder_data_source.go | 139 + .../source_leadfeeder_data_source_sdk.go | 20 + .../provider/source_leadfeeder_resource.go | 372 + .../source_leadfeeder_resource_sdk.go | 66 + .../provider/source_leverhiring_resource.go | 1 + .../provider/source_linkedinads_resource.go | 2 + .../provider/source_linkedinpages_resource.go | 3 + .../provider/source_linnworks_resource.go | 1 + .../provider/source_looker_data_source.go | 139 + .../provider/source_looker_data_source_sdk.go | 20 + internal/provider/source_looker_resource.go | 378 + .../provider/source_looker_resource_sdk.go | 79 + internal/provider/source_luma_data_source.go | 139 + .../provider/source_luma_data_source_sdk.go | 20 + internal/provider/source_luma_resource.go | 365 + internal/provider/source_luma_resource_sdk.go | 61 + .../provider/source_mailchimp_resource.go | 2 + internal/provider/source_marketo_resource.go | 3 + internal/provider/source_metabase_resource.go | 2 +- .../provider/source_metabase_resource_sdk.go | 14 +- .../source_microsoftonedrive_resource.go | 76 +- .../source_microsoftonedrive_resource_sdk.go | 44 +- .../source_microsoftsharepoint_resource.go | 98 +- ...source_microsoftsharepoint_resource_sdk.go | 108 +- .../source_microsoftteams_resource.go | 4 + internal/provider/source_mixpanel_resource.go | 8 + .../provider/source_mixpanel_resource_sdk.go | 14 + internal/provider/source_monday_resource.go | 2 + .../source_mongodbinternalpoc_resource_sdk.go | 127 - .../provider/source_mongodbv2_resource.go | 6 + .../provider/source_mongodbv2_resource_sdk.go | 14 + internal/provider/source_mssql_resource.go | 7 + .../provider/source_mssql_resource_sdk.go | 14 + internal/provider/source_mysql_resource.go | 10 + .../provider/source_mysql_resource_sdk.go | 14 + internal/provider/source_netsuite_resource.go | 2 + ....go => source_northpasslms_data_source.go} | 34 +- .../source_northpasslms_data_source_sdk.go | 20 + .../provider/source_northpasslms_resource.go | 364 + .../source_northpasslms_resource_sdk.go | 61 + internal/provider/source_notion_resource.go | 2 + internal/provider/source_nytimes_resource.go | 7 - .../provider/source_nytimes_resource_sdk.go | 13 +- internal/provider/source_okta_resource.go | 35 + internal/provider/source_okta_resource_sdk.go | 36 + .../provider/source_onesignal_resource.go | 3 +- internal/provider/source_oracle_resource.go | 1 + internal/provider/source_orb_resource.go | 8 +- internal/provider/source_orb_resource_sdk.go | 5 +- internal/provider/source_outreach_resource.go | 1 + .../source_paypaltransaction_resource.go | 2 + .../provider/source_pennylane_data_source.go | 139 + .../source_pennylane_data_source_sdk.go | 20 + .../provider/source_pennylane_resource.go | 372 + .../provider/source_pennylane_resource_sdk.go | 66 + .../provider/source_pinterest_resource.go | 2 + .../provider/source_planhat_data_source.go | 139 + .../source_planhat_data_source_sdk.go | 20 + ...resource.go => source_planhat_resource.go} | 87 +- .../provider/source_planhat_resource_sdk.go | 61 + .../source_polygonstockapi_resource.go | 1 + internal/provider/source_postgres_resource.go | 14 +- .../provider/source_postgres_resource_sdk.go | 14 + .../provider/source_postmarkapp_resource.go | 2 + .../provider/source_reddit_data_source.go | 139 + .../provider/source_reddit_data_source_sdk.go | 20 + ..._resource.go => source_reddit_resource.go} | 134 +- .../provider/source_reddit_resource_sdk.go | 137 + internal/provider/source_retently_resource.go | 1 + internal/provider/source_s3_resource.go | 73 +- internal/provider/source_s3_resource_sdk.go | 94 +- .../provider/source_salesforce_resource.go | 1 + .../provider/source_salesloft_resource.go | 2 +- .../provider/source_savvycal_data_source.go | 139 + .../source_savvycal_data_source_sdk.go | 20 + internal/provider/source_savvycal_resource.go | 365 + .../provider/source_savvycal_resource_sdk.go | 61 + .../provider/source_scryfall_data_source.go | 139 + .../source_scryfall_data_source_sdk.go | 20 + internal/provider/source_scryfall_resource.go | 333 + .../provider/source_scryfall_resource_sdk.go | 55 + internal/provider/source_sendgrid_resource.go | 14 +- internal/provider/source_sftpbulk_resource.go | 92 +- .../provider/source_sftpbulk_resource_sdk.go | 148 +- internal/provider/source_shopify_resource.go | 20 + .../provider/source_shopify_resource_sdk.go | 62 +- internal/provider/source_shortio_resource.go | 4 +- internal/provider/source_slack_resource.go | 1 + .../provider/source_smartsheets_resource.go | 3 +- .../source_snapchatmarketing_resource.go | 2 + .../provider/source_snowflake_resource.go | 29 + .../provider/source_snowflake_resource_sdk.go | 50 +- .../provider/source_sonarcloud_resource.go | 1 - internal/provider/source_square_resource.go | 2 + internal/provider/source_strava_resource.go | 1 + internal/provider/source_stripe_resource.go | 1 + .../provider/source_surveymonkey_resource.go | 2 + .../source_tiktokmarketing_resource.go | 4 +- .../provider/source_trustpilot_resource.go | 4 +- internal/provider/source_twilio_resource.go | 1 + .../source_twiliotaskrouter_resource.go | 1 + internal/provider/source_typeform_resource.go | 3 +- .../source_wikipediapageviews_resource.go | 2 +- .../provider/source_woocommerce_resource.go | 1 + internal/provider/source_xkcd_resource.go | 52 +- internal/provider/source_xkcd_resource_sdk.go | 20 +- internal/provider/source_yotpo_resource.go | 1 - .../source_youtubeanalytics_resource.go | 2 + .../provider/source_zendeskchat_resource.go | 2 + .../source_zendesksunshine_resource.go | 2 + .../source_zendesksupport_resource.go | 2 + .../provider/source_zendesktalk_resource.go | 2 + internal/provider/source_zenloop_resource.go | 2 + internal/provider/source_zohocrm_resource.go | 2 + internal/provider/source_zoom_resource.go | 1 + internal/provider/types/amazon_s3.go | 14 - ...thenticate_via_facebook_marketing_oauth.go | 11 + internal/provider/types/awss3_staging.go | 15 +- .../destination_bigquery_loading_method.go | 4 +- .../provider/types/destination_databricks.go | 19 +- .../destination_databricks_authentication.go | 8 + ...stination_databricks_azure_blob_storage.go | 12 - .../destination_databricks_data_source1.go | 9 - .../provider/types/destination_langchain.go | 9 - .../types/destination_langchain_embedding.go | 8 - .../types/destination_langchain_indexing.go | 9 - ...ation_langchain_processing_config_model.go | 11 - .../provider/types/destination_pinecone.go | 2 +- ...ne.go => destination_pinecone_indexing.go} | 2 +- .../types/destination_redshift_encryption.go | 8 - .../provider/types/destination_snowflake.go | 1 + .../provider/types/destination_timeplus.go | 10 + .../types/o_auth20_with_private_key.go | 12 + .../provider/types/o_auth2_recommended.go | 10 + ...cess_token.go => personal_access_token.go} | 2 +- ...chroma_local_persistance.go => queries.go} | 7 +- .../read_changes_using_binary_log_cdc.go | 1 + ...d_changes_using_change_data_capture_cdc.go | 1 + .../read_changes_using_write_ahead_log_cdc.go | 1 + internal/provider/types/source_airbyte.go | 11 + .../types/source_amazon_seller_partner.go | 21 +- .../source_asana_authentication_mechanism.go | 2 +- .../provider/types/source_aws_cloudtrail.go | 9 +- ...ch_will_be_appended_on_the_request_body.go | 10 + internal/provider/types/source_bamboo_hr.go | 1 + internal/provider/types/source_basecamp.go | 13 + internal/provider/types/source_breezy_hr.go | 10 + ...ource_chartmogul.go => source_calendly.go} | 2 +- internal/provider/types/source_clickup_api.go | 4 - ...y_hnsw_search.go => source_customer_io.go} | 4 +- internal/provider/types/source_datadog.go | 16 + internal/provider/types/source_dbt.go | 10 + .../types/source_facebook_marketing.go | 31 +- ...ource_facebook_marketing_authentication.go | 8 + internal/provider/types/source_gcs.go | 8 +- .../source_gcs_file_based_stream_config.go | 18 + internal/provider/types/source_gcs_format.go | 7 +- ...processing.go => source_gcs_processing.go} | 2 +- .../types/source_gcs_stream_config.go | 17 - .../types/source_github_authentication.go | 4 +- ...elope_encryption.go => source_goldcast.go} | 4 +- ...e_google_analytics_data_api_credentials.go | 4 +- ...api_service_account_key_authentication.go} | 2 +- ...oogle_analytics_v4_service_account_only.go | 14 - ...ics_v4_service_account_only_credentials.go | 7 - .../types/source_hardcoded_records.go | 9 + internal/provider/types/source_hibob.go | 11 + internal/provider/types/source_high_level.go | 11 + internal/provider/types/source_klaviyo.go | 5 +- internal/provider/types/source_leadfeeder.go | 10 + internal/provider/types/source_looker.go | 12 + .../types/source_microsoft_onedrive.go | 12 +- ...osoft_onedrive_file_based_stream_config.go | 16 + .../types/source_microsoft_onedrive_format.go | 11 + .../types/source_microsoft_sharepoint.go | 10 +- ...oft_sharepoint_file_based_stream_config.go | 17 + .../source_microsoft_sharepoint_format.go | 12 + internal/provider/types/source_mixpanel.go | 1 + .../types/source_mongodb_internal_poc.go | 13 - internal/provider/types/source_mongodb_v2.go | 1 + .../types/source_okta_authorization_method.go | 5 +- internal/provider/types/source_pennylane.go | 10 + internal/provider/types/source_punk_api.go | 11 - internal/provider/types/source_reddit.go | 15 + internal/provider/types/source_s3.go | 26 +- .../source_s3_file_based_stream_config.go | 18 + internal/provider/types/source_s3_format.go | 11 + internal/provider/types/source_sftp_bulk.go | 14 +- ..._document_file_type_format_experimental.go | 11 - ...urce_sftp_bulk_file_based_stream_config.go | 17 - .../provider/types/source_sftp_bulk_format.go | 11 - internal/provider/types/source_shopify.go | 13 +- .../source_snowflake_authorization_method.go | 5 +- ...ource_snowflake_key_pair_authentication.go | 11 + internal/provider/types/source_xkcd.go | 9 + .../types/unstructured_document_format.go | 11 + internal/sdk/destinations.go | 700 +- ...gchain.go => createdestinationtimeplus.go} | 10 +- ...ourcepunkapi.go => createsourceairbyte.go} | 10 +- ...internalpoc.go => createsourcebasecamp.go} | 10 +- ...accountonly.go => createsourcebreezyhr.go} | 10 +- .../models/operations/createsourcecalendly.go | 47 + .../models/operations/createsourceclazar.go | 47 + .../operations/createsourcecustomerio.go | 47 + .../models/operations/createsourcedatadog.go | 47 + .../sdk/models/operations/createsourcedbt.go | 47 + .../models/operations/createsourcegoldcast.go | 47 + .../createsourcehardcodedrecords.go | 47 + .../models/operations/createsourcehibob.go | 47 + .../operations/createsourcehighlevel.go | 47 + .../operations/createsourceleadfeeder.go | 47 + .../models/operations/createsourcelooker.go | 47 + .../sdk/models/operations/createsourceluma.go | 47 + .../operations/createsourcenorthpasslms.go | 47 + .../operations/createsourcepennylane.go | 47 + .../models/operations/createsourceplanhat.go | 47 + .../models/operations/createsourcereddit.go | 47 + .../models/operations/createsourcesavvycal.go | 47 + .../models/operations/createsourcescryfall.go | 47 + ...gchain.go => deletedestinationtimeplus.go} | 12 +- ...ourcepunkapi.go => deletesourceairbyte.go} | 12 +- ...internalpoc.go => deletesourcebasecamp.go} | 12 +- ...accountonly.go => deletesourcebreezyhr.go} | 12 +- .../models/operations/deletesourcecalendly.go | 48 + .../models/operations/deletesourceclazar.go | 48 + .../operations/deletesourcecustomerio.go | 48 + .../models/operations/deletesourcedatadog.go | 48 + .../sdk/models/operations/deletesourcedbt.go | 48 + .../models/operations/deletesourcegoldcast.go | 48 + .../deletesourcehardcodedrecords.go | 48 + .../models/operations/deletesourcehibob.go | 48 + .../operations/deletesourcehighlevel.go | 48 + .../operations/deletesourceleadfeeder.go | 48 + .../models/operations/deletesourcelooker.go | 48 + .../sdk/models/operations/deletesourceluma.go | 48 + .../operations/deletesourcenorthpasslms.go | 48 + .../operations/deletesourcepennylane.go | 48 + .../models/operations/deletesourceplanhat.go | 48 + .../models/operations/deletesourcereddit.go | 48 + .../models/operations/deletesourcesavvycal.go | 48 + .../models/operations/deletesourcescryfall.go | 48 + ...langchain.go => getdestinationtimeplus.go} | 14 +- ...etsourcepunkapi.go => getsourceairbyte.go} | 14 +- ...odbinternalpoc.go => getsourcebasecamp.go} | 14 +- .../models/operations/getsourcebreezyhr.go | 58 + .../models/operations/getsourcecalendly.go | 58 + .../sdk/models/operations/getsourceclazar.go | 58 + .../models/operations/getsourcecustomerio.go | 58 + .../sdk/models/operations/getsourcedatadog.go | 58 + .../sdk/models/operations/getsourcedbt.go | 58 + .../models/operations/getsourcegoldcast.go | 58 + .../operations/getsourcehardcodedrecords.go | 58 + ...erviceaccountonly.go => getsourcehibob.go} | 14 +- .../models/operations/getsourcehighlevel.go | 58 + .../models/operations/getsourceleadfeeder.go | 58 + .../sdk/models/operations/getsourcelooker.go | 58 + .../sdk/models/operations/getsourceluma.go | 58 + .../operations/getsourcenorthpasslms.go | 58 + .../models/operations/getsourcepennylane.go | 58 + .../sdk/models/operations/getsourceplanhat.go | 58 + .../sdk/models/operations/getsourcereddit.go | 58 + .../models/operations/getsourcesavvycal.go | 58 + .../models/operations/getsourcescryfall.go | 58 + .../operations/putdestinationlangchain.go | 57 - .../operations/putdestinationtimeplus.go | 57 + ...utsourcepunkapi.go => putsourceairbyte.go} | 18 +- .../models/operations/putsourcebasecamp.go | 57 + .../models/operations/putsourcebreezyhr.go | 57 + .../models/operations/putsourcecalendly.go | 57 + .../sdk/models/operations/putsourceclazar.go | 57 + .../models/operations/putsourcecustomerio.go | 57 + .../sdk/models/operations/putsourcedatadog.go | 57 + .../sdk/models/operations/putsourcedbt.go | 57 + .../models/operations/putsourcegoldcast.go | 57 + ...urcegoogleanalyticsv4serviceaccountonly.go | 57 - .../operations/putsourcehardcodedrecords.go | 57 + .../sdk/models/operations/putsourcehibob.go | 57 + .../models/operations/putsourcehighlevel.go | 57 + .../models/operations/putsourceleadfeeder.go | 57 + .../sdk/models/operations/putsourcelooker.go | 57 + .../sdk/models/operations/putsourceluma.go | 57 + .../operations/putsourcemongodbinternalpoc.go | 57 - .../operations/putsourcenorthpasslms.go | 57 + .../models/operations/putsourcepennylane.go | 57 + .../sdk/models/operations/putsourceplanhat.go | 57 + .../sdk/models/operations/putsourcereddit.go | 57 + .../models/operations/putsourcesavvycal.go | 57 + .../models/operations/putsourcescryfall.go | 57 + .../sdk/models/shared/destinationbigquery.go | 146 +- .../shared/destinationbigqueryupdate.go | 146 +- .../models/shared/destinationdatabricks.go | 436 +- .../shared/destinationdatabricksupdate.go | 434 +- .../sdk/models/shared/destinationgcsupdate.go | 32 +- .../sdk/models/shared/destinationlangchain.go | 545 - .../shared/destinationlangchainputrequest.go | 30 - .../shared/destinationlangchainupdate.go | 506 - .../sdk/models/shared/destinationredshift.go | 168 - .../shared/destinationredshiftupdate.go | 168 - .../sdk/models/shared/destinationsnowflake.go | 11 +- .../shared/destinationsnowflakecortex.go | 2 +- .../destinationsnowflakecortexupdate.go | 2 +- .../shared/destinationsnowflakeupdate.go | 67 +- .../sdk/models/shared/destinationtimeplus.go | 69 + ...go => destinationtimepluscreaterequest.go} | 14 +- .../shared/destinationtimeplusputrequest.go | 30 + .../shared/destinationtimeplusupdate.go | 39 + .../sdk/models/shared/destinationtypesense.go | 2 +- .../shared/destinationtypesenseupdate.go | 2 +- .../models/shared/schemeclientcredentials.go | 4 +- internal/sdk/models/shared/sourceairbyte.go | 76 + ...quest.go => sourceairbytecreaterequest.go} | 16 +- ...trequest.go => sourceairbyteputrequest.go} | 12 +- .../sdk/models/shared/sourceairbyteupdate.go | 46 + .../sdk/models/shared/sourceairtableupdate.go | 42 +- .../shared/sourceamazonsellerpartner.go | 11 +- .../shared/sourceamazonsellerpartnerupdate.go | 11 +- .../sdk/models/shared/sourceawscloudtrail.go | 50 +- .../shared/sourceawscloudtrailupdate.go | 48 +- internal/sdk/models/shared/sourcebamboohr.go | 13 +- .../sdk/models/shared/sourcebamboohrupdate.go | 11 +- internal/sdk/models/shared/sourcebasecamp.go | 92 + ...uest.go => sourcebasecampcreaterequest.go} | 16 +- .../models/shared/sourcebasecampputrequest.go | 30 + .../sdk/models/shared/sourcebasecampupdate.go | 62 + internal/sdk/models/shared/sourcebreezyhr.go | 67 + .../shared/sourcebreezyhrcreaterequest.go | 49 + .../models/shared/sourcebreezyhrputrequest.go | 30 + .../sdk/models/shared/sourcebreezyhrupdate.go | 22 + internal/sdk/models/shared/sourcecalendly.go | 69 + .../shared/sourcecalendlycreaterequest.go | 49 + .../models/shared/sourcecalendlyputrequest.go | 30 + .../sdk/models/shared/sourcecalendlyupdate.go | 39 + internal/sdk/models/shared/sourceclazar.go | 67 + .../shared/sourceclazarcreaterequest.go | 49 + .../models/shared/sourceclazarputrequest.go | 30 + .../sdk/models/shared/sourceclazarupdate.go | 22 + .../sdk/models/shared/sourceclickupapi.go | 40 +- .../models/shared/sourceclickupapiupdate.go | 36 - .../sdk/models/shared/sourcecustomerio.go | 59 + .../shared/sourcecustomeriocreaterequest.go | 49 + .../shared/sourcecustomerioputrequest.go | 30 + .../models/shared/sourcecustomerioupdate.go | 14 + internal/sdk/models/shared/sourcedatadog.go | 222 + .../shared/sourcedatadogcreaterequest.go | 49 + .../models/shared/sourcedatadogputrequest.go | 30 + .../sdk/models/shared/sourcedatadogupdate.go | 194 + internal/sdk/models/shared/sourcedbt.go | 67 + .../models/shared/sourcedbtcreaterequest.go | 49 + .../sdk/models/shared/sourcedbtputrequest.go | 30 + internal/sdk/models/shared/sourcedbtupdate.go | 22 + .../models/shared/sourcefacebookmarketing.go | 197 +- .../shared/sourcefacebookmarketingupdate.go | 197 +- internal/sdk/models/shared/sourcegcs.go | 664 +- internal/sdk/models/shared/sourcegcsupdate.go | 664 +- internal/sdk/models/shared/sourcegoldcast.go | 60 + .../shared/sourcegoldcastcreaterequest.go | 49 + .../models/shared/sourcegoldcastputrequest.go | 30 + .../sdk/models/shared/sourcegoldcastupdate.go | 15 + .../sourcegoogleanalyticsdataapiupdate.go | 38 +- ...urcegoogleanalyticsv4serviceaccountonly.go | 200 - ...analyticsv4serviceaccountonlyputrequest.go | 30 - ...ogleanalyticsv4serviceaccountonlyupdate.go | 172 - .../models/shared/sourcehardcodedrecords.go | 60 + ...=> sourcehardcodedrecordscreaterequest.go} | 16 +- .../sourcehardcodedrecordsputrequest.go | 30 + .../shared/sourcehardcodedrecordsupdate.go | 30 + internal/sdk/models/shared/sourcehibob.go | 76 + .../models/shared/sourcehibobcreaterequest.go | 49 + .../models/shared/sourcehibobputrequest.go | 30 + .../sdk/models/shared/sourcehibobupdate.go | 31 + internal/sdk/models/shared/sourcehighlevel.go | 76 + .../shared/sourcehighlevelcreaterequest.go | 49 + .../shared/sourcehighlevelputrequest.go | 30 + .../models/shared/sourcehighlevelupdate.go | 46 + internal/sdk/models/shared/sourceklaviyo.go | 13 +- .../sdk/models/shared/sourceklaviyoupdate.go | 9 + .../sdk/models/shared/sourceleadfeeder.go | 68 + .../shared/sourceleadfeedercreaterequest.go | 49 + .../shared/sourceleadfeederputrequest.go | 30 + .../models/shared/sourceleadfeederupdate.go | 38 + internal/sdk/models/shared/sourcelooker.go | 87 + .../shared/sourcelookercreaterequest.go | 49 + .../models/shared/sourcelookerputrequest.go | 30 + .../sdk/models/shared/sourcelookerupdate.go | 42 + internal/sdk/models/shared/sourceluma.go | 60 + .../models/shared/sourcelumacreaterequest.go | 49 + .../sdk/models/shared/sourcelumaputrequest.go | 30 + .../sdk/models/shared/sourcelumaupdate.go | 15 + internal/sdk/models/shared/sourcemetabase.go | 6 +- .../sdk/models/shared/sourcemetabaseupdate.go | 6 +- .../models/shared/sourcemicrosoftonedrive.go | 54 +- .../shared/sourcemicrosoftonedriveupdate.go | 54 +- .../shared/sourcemicrosoftsharepoint.go | 127 +- .../shared/sourcemicrosoftsharepointupdate.go | 127 +- internal/sdk/models/shared/sourcemixpanel.go | 9 + .../sdk/models/shared/sourcemixpanelupdate.go | 9 + .../models/shared/sourcemongodbinternalpoc.go | 96 - .../sourcemongodbinternalpocputrequest.go | 30 - .../shared/sourcemongodbinternalpocupdate.go | 66 - internal/sdk/models/shared/sourcemongodbv2.go | 9 + .../models/shared/sourcemongodbv2update.go | 9 + internal/sdk/models/shared/sourcemssql.go | 9 + .../sdk/models/shared/sourcemssqlupdate.go | 9 + internal/sdk/models/shared/sourcemysql.go | 9 + .../sdk/models/shared/sourcemysqlupdate.go | 9 + .../sdk/models/shared/sourcenorthpasslms.go | 59 + .../shared/sourcenorthpasslmscreaterequest.go | 49 + .../shared/sourcenorthpasslmsputrequest.go | 30 + .../models/shared/sourcenorthpasslmsupdate.go | 14 + internal/sdk/models/shared/sourcenytimes.go | 11 +- .../sdk/models/shared/sourcenytimesupdate.go | 23 +- internal/sdk/models/shared/sourceokta.go | 128 +- .../sdk/models/shared/sourceoktaupdate.go | 120 +- .../sdk/models/shared/sourceoracleupdate.go | 16 +- internal/sdk/models/shared/sourceorb.go | 7 +- internal/sdk/models/shared/sourceorbupdate.go | 7 +- internal/sdk/models/shared/sourcepennylane.go | 68 + .../shared/sourcepennylanecreaterequest.go | 49 + .../shared/sourcepennylaneputrequest.go | 30 + .../models/shared/sourcepennylaneupdate.go | 38 + internal/sdk/models/shared/sourceplanhat.go | 60 + .../shared/sourceplanhatcreaterequest.go | 49 + .../models/shared/sourceplanhatputrequest.go | 30 + .../sdk/models/shared/sourceplanhatupdate.go | 15 + internal/sdk/models/shared/sourcepostgres.go | 13 +- .../sdk/models/shared/sourcepostgresupdate.go | 13 +- internal/sdk/models/shared/sourcepunkapi.go | 78 - .../sdk/models/shared/sourcepunkapiupdate.go | 33 - internal/sdk/models/shared/sourcereddit.go | 113 + .../shared/sourceredditcreaterequest.go | 49 + .../models/shared/sourceredditputrequest.go | 30 + .../sdk/models/shared/sourceredditupdate.go | 83 + internal/sdk/models/shared/sources3.go | 65 +- internal/sdk/models/shared/sources3update.go | 65 +- internal/sdk/models/shared/sourcesavvycal.go | 60 + .../shared/sourcesavvycalcreaterequest.go | 49 + .../models/shared/sourcesavvycalputrequest.go | 30 + .../sdk/models/shared/sourcesavvycalupdate.go | 15 + internal/sdk/models/shared/sourcescryfall.go | 51 + .../shared/sourcescryfallcreaterequest.go | 49 + .../models/shared/sourcescryfallputrequest.go | 30 + .../sdk/models/shared/sourcescryfallupdate.go | 6 + internal/sdk/models/shared/sourcesftpbulk.go | 129 +- .../sdk/models/shared/sourcesftpbulkupdate.go | 183 +- internal/sdk/models/shared/sourceshopify.go | 27 + .../sdk/models/shared/sourceshopifyupdate.go | 27 + internal/sdk/models/shared/sourcesnowflake.go | 117 +- .../models/shared/sourcesnowflakeupdate.go | 117 +- .../models/shared/sourcetiktokmarketing.go | 2 +- .../shared/sourcetiktokmarketingupdate.go | 2 +- .../models/shared/sourcewikipediapageviews.go | 2 +- .../shared/sourcewikipediapageviewsupdate.go | 2 +- internal/sdk/models/shared/sourcexkcd.go | 11 +- .../sdk/models/shared/sourcexkcdupdate.go | 24 + internal/sdk/sources.go | 16128 ++++++++++++---- 1161 files changed, 55959 insertions(+), 13378 deletions(-) rename docs/data-sources/{destination_langchain.md => destination_timeplus.md} (64%) rename docs/data-sources/{source_mongodb_internal_poc.md => source_airbyte.md} (60%) rename docs/data-sources/{source_punk_api.md => source_basecamp.md} (68%) rename docs/data-sources/{source_google_analytics_v4_service_account_only.md => source_breezy_hr.md} (52%) create mode 100644 docs/data-sources/source_calendly.md create mode 100644 docs/data-sources/source_clazar.md create mode 100644 docs/data-sources/source_customer_io.md create mode 100644 docs/data-sources/source_datadog.md create mode 100644 docs/data-sources/source_dbt.md create mode 100644 docs/data-sources/source_goldcast.md create mode 100644 docs/data-sources/source_hardcoded_records.md create mode 100644 docs/data-sources/source_hibob.md create mode 100644 docs/data-sources/source_high_level.md create mode 100644 docs/data-sources/source_leadfeeder.md create mode 100644 docs/data-sources/source_looker.md create mode 100644 docs/data-sources/source_luma.md create mode 100644 docs/data-sources/source_northpass_lms.md create mode 100644 docs/data-sources/source_pennylane.md create mode 100644 docs/data-sources/source_planhat.md create mode 100644 docs/data-sources/source_reddit.md create mode 100644 docs/data-sources/source_savvycal.md create mode 100644 docs/data-sources/source_scryfall.md delete mode 100644 docs/resources/destination_langchain.md create mode 100644 docs/resources/destination_timeplus.md create mode 100644 docs/resources/source_airbyte.md create mode 100644 docs/resources/source_basecamp.md create mode 100644 docs/resources/source_breezy_hr.md rename docs/resources/{source_punk_api.md => source_calendly.md} (58%) create mode 100644 docs/resources/source_clazar.md create mode 100644 docs/resources/source_customer_io.md create mode 100644 docs/resources/source_datadog.md create mode 100644 docs/resources/source_dbt.md create mode 100644 docs/resources/source_goldcast.md delete mode 100644 docs/resources/source_google_analytics_v4_service_account_only.md create mode 100644 docs/resources/source_hardcoded_records.md create mode 100644 docs/resources/source_hibob.md create mode 100644 docs/resources/source_high_level.md create mode 100644 docs/resources/source_leadfeeder.md create mode 100644 docs/resources/source_looker.md create mode 100644 docs/resources/source_luma.md delete mode 100644 docs/resources/source_mongodb_internal_poc.md create mode 100644 docs/resources/source_northpass_lms.md create mode 100644 docs/resources/source_pennylane.md create mode 100644 docs/resources/source_planhat.md create mode 100644 docs/resources/source_reddit.md create mode 100644 docs/resources/source_savvycal.md create mode 100644 docs/resources/source_scryfall.md delete mode 100644 examples/data-sources/airbyte_destination_langchain/data-source.tf create mode 100644 examples/data-sources/airbyte_destination_timeplus/data-source.tf create mode 100644 examples/data-sources/airbyte_source_airbyte/data-source.tf create mode 100644 examples/data-sources/airbyte_source_basecamp/data-source.tf create mode 100644 examples/data-sources/airbyte_source_breezy_hr/data-source.tf create mode 100644 examples/data-sources/airbyte_source_calendly/data-source.tf create mode 100644 examples/data-sources/airbyte_source_clazar/data-source.tf create mode 100644 examples/data-sources/airbyte_source_customer_io/data-source.tf create mode 100644 examples/data-sources/airbyte_source_datadog/data-source.tf create mode 100644 examples/data-sources/airbyte_source_dbt/data-source.tf create mode 100644 examples/data-sources/airbyte_source_goldcast/data-source.tf delete mode 100644 examples/data-sources/airbyte_source_google_analytics_v4_service_account_only/data-source.tf create mode 100644 examples/data-sources/airbyte_source_hardcoded_records/data-source.tf create mode 100644 examples/data-sources/airbyte_source_hibob/data-source.tf create mode 100644 examples/data-sources/airbyte_source_high_level/data-source.tf create mode 100644 examples/data-sources/airbyte_source_leadfeeder/data-source.tf create mode 100644 examples/data-sources/airbyte_source_looker/data-source.tf create mode 100644 examples/data-sources/airbyte_source_luma/data-source.tf delete mode 100644 examples/data-sources/airbyte_source_mongodb_internal_poc/data-source.tf create mode 100644 examples/data-sources/airbyte_source_northpass_lms/data-source.tf create mode 100644 examples/data-sources/airbyte_source_pennylane/data-source.tf create mode 100644 examples/data-sources/airbyte_source_planhat/data-source.tf delete mode 100644 examples/data-sources/airbyte_source_punk_api/data-source.tf create mode 100644 examples/data-sources/airbyte_source_reddit/data-source.tf create mode 100644 examples/data-sources/airbyte_source_savvycal/data-source.tf create mode 100644 examples/data-sources/airbyte_source_scryfall/data-source.tf delete mode 100644 examples/resources/airbyte_destination_langchain/import.sh delete mode 100644 examples/resources/airbyte_destination_langchain/resource.tf create mode 100644 examples/resources/airbyte_destination_timeplus/import.sh create mode 100644 examples/resources/airbyte_destination_timeplus/resource.tf create mode 100644 examples/resources/airbyte_source_airbyte/import.sh create mode 100644 examples/resources/airbyte_source_airbyte/resource.tf create mode 100644 examples/resources/airbyte_source_basecamp/import.sh create mode 100644 examples/resources/airbyte_source_basecamp/resource.tf create mode 100644 examples/resources/airbyte_source_breezy_hr/import.sh create mode 100644 examples/resources/airbyte_source_breezy_hr/resource.tf create mode 100644 examples/resources/airbyte_source_calendly/import.sh create mode 100644 examples/resources/airbyte_source_calendly/resource.tf create mode 100644 examples/resources/airbyte_source_clazar/import.sh create mode 100644 examples/resources/airbyte_source_clazar/resource.tf create mode 100644 examples/resources/airbyte_source_customer_io/import.sh create mode 100644 examples/resources/airbyte_source_customer_io/resource.tf create mode 100644 examples/resources/airbyte_source_datadog/import.sh create mode 100644 examples/resources/airbyte_source_datadog/resource.tf create mode 100644 examples/resources/airbyte_source_dbt/import.sh create mode 100644 examples/resources/airbyte_source_dbt/resource.tf create mode 100644 examples/resources/airbyte_source_goldcast/import.sh create mode 100644 examples/resources/airbyte_source_goldcast/resource.tf delete mode 100644 examples/resources/airbyte_source_google_analytics_v4_service_account_only/import.sh delete mode 100644 examples/resources/airbyte_source_google_analytics_v4_service_account_only/resource.tf create mode 100644 examples/resources/airbyte_source_hardcoded_records/import.sh create mode 100644 examples/resources/airbyte_source_hardcoded_records/resource.tf create mode 100644 examples/resources/airbyte_source_hibob/import.sh create mode 100644 examples/resources/airbyte_source_hibob/resource.tf create mode 100644 examples/resources/airbyte_source_high_level/import.sh create mode 100644 examples/resources/airbyte_source_high_level/resource.tf create mode 100644 examples/resources/airbyte_source_leadfeeder/import.sh create mode 100644 examples/resources/airbyte_source_leadfeeder/resource.tf create mode 100644 examples/resources/airbyte_source_looker/import.sh create mode 100644 examples/resources/airbyte_source_looker/resource.tf create mode 100644 examples/resources/airbyte_source_luma/import.sh create mode 100644 examples/resources/airbyte_source_luma/resource.tf delete mode 100644 examples/resources/airbyte_source_mongodb_internal_poc/import.sh delete mode 100644 examples/resources/airbyte_source_mongodb_internal_poc/resource.tf create mode 100644 examples/resources/airbyte_source_northpass_lms/import.sh create mode 100644 examples/resources/airbyte_source_northpass_lms/resource.tf create mode 100644 examples/resources/airbyte_source_pennylane/import.sh create mode 100644 examples/resources/airbyte_source_pennylane/resource.tf create mode 100644 examples/resources/airbyte_source_planhat/import.sh create mode 100644 examples/resources/airbyte_source_planhat/resource.tf delete mode 100644 examples/resources/airbyte_source_punk_api/import.sh delete mode 100644 examples/resources/airbyte_source_punk_api/resource.tf create mode 100644 examples/resources/airbyte_source_reddit/import.sh create mode 100644 examples/resources/airbyte_source_reddit/resource.tf create mode 100644 examples/resources/airbyte_source_savvycal/import.sh create mode 100644 examples/resources/airbyte_source_savvycal/resource.tf create mode 100644 examples/resources/airbyte_source_scryfall/import.sh create mode 100644 examples/resources/airbyte_source_scryfall/resource.tf delete mode 100644 internal/provider/destination_langchain_resource_sdk.go rename internal/provider/{destination_langchain_data_source.go => destination_timeplus_data_source.go} (71%) rename internal/provider/{destination_langchain_data_source_sdk.go => destination_timeplus_data_source_sdk.go} (83%) rename internal/provider/{destination_langchain_resource.go => destination_timeplus_resource.go} (50%) create mode 100644 internal/provider/destination_timeplus_resource_sdk.go rename internal/provider/{source_punkapi_data_source.go => source_airbyte_data_source.go} (78%) rename internal/provider/{source_punkapi_data_source_sdk.go => source_airbyte_data_source_sdk.go} (90%) create mode 100644 internal/provider/source_airbyte_resource.go rename internal/provider/{source_punkapi_resource_sdk.go => source_airbyte_resource_sdk.go} (51%) create mode 100644 internal/provider/source_basecamp_data_source.go rename internal/provider/{source_mongodbinternalpoc_data_source_sdk.go => source_basecamp_data_source_sdk.go} (84%) create mode 100644 internal/provider/source_basecamp_resource.go create mode 100644 internal/provider/source_basecamp_resource_sdk.go create mode 100644 internal/provider/source_breezyhr_data_source.go rename internal/provider/{source_googleanalyticsv4serviceaccountonly_data_source_sdk.go => source_breezyhr_data_source_sdk.go} (82%) create mode 100644 internal/provider/source_breezyhr_resource.go create mode 100644 internal/provider/source_breezyhr_resource_sdk.go create mode 100644 internal/provider/source_calendly_data_source.go create mode 100644 internal/provider/source_calendly_data_source_sdk.go create mode 100644 internal/provider/source_calendly_resource.go create mode 100644 internal/provider/source_calendly_resource_sdk.go create mode 100644 internal/provider/source_clazar_data_source.go create mode 100644 internal/provider/source_clazar_data_source_sdk.go create mode 100644 internal/provider/source_clazar_resource.go create mode 100644 internal/provider/source_clazar_resource_sdk.go rename internal/provider/{source_googleanalyticsv4serviceaccountonly_data_source.go => source_customerio_data_source.go} (65%) create mode 100644 internal/provider/source_customerio_data_source_sdk.go create mode 100644 internal/provider/source_customerio_resource.go create mode 100644 internal/provider/source_customerio_resource_sdk.go create mode 100644 internal/provider/source_datadog_data_source.go create mode 100644 internal/provider/source_datadog_data_source_sdk.go rename internal/provider/{source_googleanalyticsv4serviceaccountonly_resource.go => source_datadog_resource.go} (61%) create mode 100644 internal/provider/source_datadog_resource_sdk.go create mode 100644 internal/provider/source_dbt_data_source.go create mode 100644 internal/provider/source_dbt_data_source_sdk.go create mode 100644 internal/provider/source_dbt_resource.go create mode 100644 internal/provider/source_dbt_resource_sdk.go create mode 100644 internal/provider/source_goldcast_data_source.go create mode 100644 internal/provider/source_goldcast_data_source_sdk.go create mode 100644 internal/provider/source_goldcast_resource.go create mode 100644 internal/provider/source_goldcast_resource_sdk.go delete mode 100644 internal/provider/source_googleanalyticsv4serviceaccountonly_resource_sdk.go create mode 100644 internal/provider/source_hardcodedrecords_data_source.go create mode 100644 internal/provider/source_hardcodedrecords_data_source_sdk.go create mode 100644 internal/provider/source_hardcodedrecords_resource.go create mode 100644 internal/provider/source_hardcodedrecords_resource_sdk.go create mode 100644 internal/provider/source_hibob_data_source.go create mode 100644 internal/provider/source_hibob_data_source_sdk.go create mode 100644 internal/provider/source_hibob_resource.go create mode 100644 internal/provider/source_hibob_resource_sdk.go create mode 100644 internal/provider/source_highlevel_data_source.go create mode 100644 internal/provider/source_highlevel_data_source_sdk.go create mode 100644 internal/provider/source_highlevel_resource.go create mode 100644 internal/provider/source_highlevel_resource_sdk.go create mode 100644 internal/provider/source_leadfeeder_data_source.go create mode 100644 internal/provider/source_leadfeeder_data_source_sdk.go create mode 100644 internal/provider/source_leadfeeder_resource.go create mode 100644 internal/provider/source_leadfeeder_resource_sdk.go create mode 100644 internal/provider/source_looker_data_source.go create mode 100644 internal/provider/source_looker_data_source_sdk.go create mode 100644 internal/provider/source_looker_resource.go create mode 100644 internal/provider/source_looker_resource_sdk.go create mode 100644 internal/provider/source_luma_data_source.go create mode 100644 internal/provider/source_luma_data_source_sdk.go create mode 100644 internal/provider/source_luma_resource.go create mode 100644 internal/provider/source_luma_resource_sdk.go delete mode 100644 internal/provider/source_mongodbinternalpoc_resource_sdk.go rename internal/provider/{source_mongodbinternalpoc_data_source.go => source_northpasslms_data_source.go} (70%) create mode 100644 internal/provider/source_northpasslms_data_source_sdk.go create mode 100644 internal/provider/source_northpasslms_resource.go create mode 100644 internal/provider/source_northpasslms_resource_sdk.go create mode 100644 internal/provider/source_pennylane_data_source.go create mode 100644 internal/provider/source_pennylane_data_source_sdk.go create mode 100644 internal/provider/source_pennylane_resource.go create mode 100644 internal/provider/source_pennylane_resource_sdk.go create mode 100644 internal/provider/source_planhat_data_source.go create mode 100644 internal/provider/source_planhat_data_source_sdk.go rename internal/provider/{source_punkapi_resource.go => source_planhat_resource.go} (81%) create mode 100644 internal/provider/source_planhat_resource_sdk.go create mode 100644 internal/provider/source_reddit_data_source.go create mode 100644 internal/provider/source_reddit_data_source_sdk.go rename internal/provider/{source_mongodbinternalpoc_resource.go => source_reddit_resource.go} (70%) create mode 100644 internal/provider/source_reddit_resource_sdk.go create mode 100644 internal/provider/source_savvycal_data_source.go create mode 100644 internal/provider/source_savvycal_data_source_sdk.go create mode 100644 internal/provider/source_savvycal_resource.go create mode 100644 internal/provider/source_savvycal_resource_sdk.go create mode 100644 internal/provider/source_scryfall_data_source.go create mode 100644 internal/provider/source_scryfall_data_source_sdk.go create mode 100644 internal/provider/source_scryfall_resource.go create mode 100644 internal/provider/source_scryfall_resource_sdk.go delete mode 100644 internal/provider/types/amazon_s3.go create mode 100644 internal/provider/types/authenticate_via_facebook_marketing_oauth.go create mode 100644 internal/provider/types/destination_databricks_authentication.go delete mode 100644 internal/provider/types/destination_databricks_azure_blob_storage.go delete mode 100644 internal/provider/types/destination_databricks_data_source1.go delete mode 100644 internal/provider/types/destination_langchain.go delete mode 100644 internal/provider/types/destination_langchain_embedding.go delete mode 100644 internal/provider/types/destination_langchain_indexing.go delete mode 100644 internal/provider/types/destination_langchain_processing_config_model.go rename internal/provider/types/{destination_langchain_pinecone.go => destination_pinecone_indexing.go} (88%) delete mode 100644 internal/provider/types/destination_redshift_encryption.go create mode 100644 internal/provider/types/destination_timeplus.go create mode 100644 internal/provider/types/o_auth20_with_private_key.go create mode 100644 internal/provider/types/o_auth2_recommended.go rename internal/provider/types/{authenticate_with_personal_access_token.go => personal_access_token.go} (81%) rename internal/provider/types/{chroma_local_persistance.go => queries.go} (50%) create mode 100644 internal/provider/types/source_airbyte.go create mode 100644 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 create mode 100644 internal/provider/types/source_basecamp.go create mode 100644 internal/provider/types/source_breezy_hr.go rename internal/provider/types/{source_chartmogul.go => source_calendly.go} (88%) rename internal/provider/types/{doc_array_hnsw_search.go => source_customer_io.go} (63%) create mode 100644 internal/provider/types/source_datadog.go create mode 100644 internal/provider/types/source_dbt.go create mode 100644 internal/provider/types/source_facebook_marketing_authentication.go create mode 100644 internal/provider/types/source_gcs_file_based_stream_config.go rename internal/provider/types/{source_sftp_bulk_processing.go => source_gcs_processing.go} (83%) delete mode 100644 internal/provider/types/source_gcs_stream_config.go rename internal/provider/types/{aescbc_envelope_encryption.go => source_goldcast.go} (60%) rename internal/provider/types/{service_account_key_authentication.go => source_google_analytics_data_api_service_account_key_authentication.go} (74%) delete mode 100644 internal/provider/types/source_google_analytics_v4_service_account_only.go delete mode 100644 internal/provider/types/source_google_analytics_v4_service_account_only_credentials.go create mode 100644 internal/provider/types/source_hardcoded_records.go create mode 100644 internal/provider/types/source_hibob.go create mode 100644 internal/provider/types/source_high_level.go create mode 100644 internal/provider/types/source_leadfeeder.go create mode 100644 internal/provider/types/source_looker.go create mode 100644 internal/provider/types/source_microsoft_onedrive_file_based_stream_config.go create mode 100644 internal/provider/types/source_microsoft_onedrive_format.go create mode 100644 internal/provider/types/source_microsoft_sharepoint_file_based_stream_config.go create mode 100644 internal/provider/types/source_microsoft_sharepoint_format.go delete mode 100644 internal/provider/types/source_mongodb_internal_poc.go create mode 100644 internal/provider/types/source_pennylane.go delete mode 100644 internal/provider/types/source_punk_api.go create mode 100644 internal/provider/types/source_reddit.go create mode 100644 internal/provider/types/source_s3_file_based_stream_config.go create mode 100644 internal/provider/types/source_s3_format.go delete mode 100644 internal/provider/types/source_sftp_bulk_document_file_type_format_experimental.go delete mode 100644 internal/provider/types/source_sftp_bulk_file_based_stream_config.go delete mode 100644 internal/provider/types/source_sftp_bulk_format.go create mode 100644 internal/provider/types/source_snowflake_key_pair_authentication.go create mode 100644 internal/provider/types/source_xkcd.go create mode 100644 internal/provider/types/unstructured_document_format.go rename internal/sdk/models/operations/{createdestinationlangchain.go => createdestinationtimeplus.go} (66%) rename internal/sdk/models/operations/{createsourcepunkapi.go => createsourceairbyte.go} (71%) rename internal/sdk/models/operations/{createsourcemongodbinternalpoc.go => createsourcebasecamp.go} (65%) rename internal/sdk/models/operations/{createsourcegoogleanalyticsv4serviceaccountonly.go => createsourcebreezyhr.go} (60%) create mode 100644 internal/sdk/models/operations/createsourcecalendly.go create mode 100644 internal/sdk/models/operations/createsourceclazar.go create mode 100644 internal/sdk/models/operations/createsourcecustomerio.go create mode 100644 internal/sdk/models/operations/createsourcedatadog.go create mode 100644 internal/sdk/models/operations/createsourcedbt.go create mode 100644 internal/sdk/models/operations/createsourcegoldcast.go create mode 100644 internal/sdk/models/operations/createsourcehardcodedrecords.go create mode 100644 internal/sdk/models/operations/createsourcehibob.go create mode 100644 internal/sdk/models/operations/createsourcehighlevel.go create mode 100644 internal/sdk/models/operations/createsourceleadfeeder.go create mode 100644 internal/sdk/models/operations/createsourcelooker.go create mode 100644 internal/sdk/models/operations/createsourceluma.go create mode 100644 internal/sdk/models/operations/createsourcenorthpasslms.go create mode 100644 internal/sdk/models/operations/createsourcepennylane.go create mode 100644 internal/sdk/models/operations/createsourceplanhat.go create mode 100644 internal/sdk/models/operations/createsourcereddit.go create mode 100644 internal/sdk/models/operations/createsourcesavvycal.go create mode 100644 internal/sdk/models/operations/createsourcescryfall.go rename internal/sdk/models/operations/{deletedestinationlangchain.go => deletedestinationtimeplus.go} (63%) rename internal/sdk/models/operations/{deletesourcepunkapi.go => deletesourceairbyte.go} (65%) rename internal/sdk/models/operations/{deletesourcemongodbinternalpoc.go => deletesourcebasecamp.go} (60%) rename internal/sdk/models/operations/{deletesourcegoogleanalyticsv4serviceaccountonly.go => deletesourcebreezyhr.go} (55%) create mode 100644 internal/sdk/models/operations/deletesourcecalendly.go create mode 100644 internal/sdk/models/operations/deletesourceclazar.go create mode 100644 internal/sdk/models/operations/deletesourcecustomerio.go create mode 100644 internal/sdk/models/operations/deletesourcedatadog.go create mode 100644 internal/sdk/models/operations/deletesourcedbt.go create mode 100644 internal/sdk/models/operations/deletesourcegoldcast.go create mode 100644 internal/sdk/models/operations/deletesourcehardcodedrecords.go create mode 100644 internal/sdk/models/operations/deletesourcehibob.go create mode 100644 internal/sdk/models/operations/deletesourcehighlevel.go create mode 100644 internal/sdk/models/operations/deletesourceleadfeeder.go create mode 100644 internal/sdk/models/operations/deletesourcelooker.go create mode 100644 internal/sdk/models/operations/deletesourceluma.go create mode 100644 internal/sdk/models/operations/deletesourcenorthpasslms.go create mode 100644 internal/sdk/models/operations/deletesourcepennylane.go create mode 100644 internal/sdk/models/operations/deletesourceplanhat.go create mode 100644 internal/sdk/models/operations/deletesourcereddit.go create mode 100644 internal/sdk/models/operations/deletesourcesavvycal.go create mode 100644 internal/sdk/models/operations/deletesourcescryfall.go rename internal/sdk/models/operations/{getdestinationlangchain.go => getdestinationtimeplus.go} (65%) rename internal/sdk/models/operations/{getsourcepunkapi.go => getsourceairbyte.go} (69%) rename internal/sdk/models/operations/{getsourcemongodbinternalpoc.go => getsourcebasecamp.go} (63%) create mode 100644 internal/sdk/models/operations/getsourcebreezyhr.go create mode 100644 internal/sdk/models/operations/getsourcecalendly.go create mode 100644 internal/sdk/models/operations/getsourceclazar.go create mode 100644 internal/sdk/models/operations/getsourcecustomerio.go create mode 100644 internal/sdk/models/operations/getsourcedatadog.go create mode 100644 internal/sdk/models/operations/getsourcedbt.go create mode 100644 internal/sdk/models/operations/getsourcegoldcast.go create mode 100644 internal/sdk/models/operations/getsourcehardcodedrecords.go rename internal/sdk/models/operations/{getsourcegoogleanalyticsv4serviceaccountonly.go => getsourcehibob.go} (58%) create mode 100644 internal/sdk/models/operations/getsourcehighlevel.go create mode 100644 internal/sdk/models/operations/getsourceleadfeeder.go create mode 100644 internal/sdk/models/operations/getsourcelooker.go create mode 100644 internal/sdk/models/operations/getsourceluma.go create mode 100644 internal/sdk/models/operations/getsourcenorthpasslms.go create mode 100644 internal/sdk/models/operations/getsourcepennylane.go create mode 100644 internal/sdk/models/operations/getsourceplanhat.go create mode 100644 internal/sdk/models/operations/getsourcereddit.go create mode 100644 internal/sdk/models/operations/getsourcesavvycal.go create mode 100644 internal/sdk/models/operations/getsourcescryfall.go delete mode 100644 internal/sdk/models/operations/putdestinationlangchain.go create mode 100644 internal/sdk/models/operations/putdestinationtimeplus.go rename internal/sdk/models/operations/{putsourcepunkapi.go => putsourceairbyte.go} (61%) create mode 100644 internal/sdk/models/operations/putsourcebasecamp.go create mode 100644 internal/sdk/models/operations/putsourcebreezyhr.go create mode 100644 internal/sdk/models/operations/putsourcecalendly.go create mode 100644 internal/sdk/models/operations/putsourceclazar.go create mode 100644 internal/sdk/models/operations/putsourcecustomerio.go create mode 100644 internal/sdk/models/operations/putsourcedatadog.go create mode 100644 internal/sdk/models/operations/putsourcedbt.go create mode 100644 internal/sdk/models/operations/putsourcegoldcast.go delete mode 100644 internal/sdk/models/operations/putsourcegoogleanalyticsv4serviceaccountonly.go create mode 100644 internal/sdk/models/operations/putsourcehardcodedrecords.go create mode 100644 internal/sdk/models/operations/putsourcehibob.go create mode 100644 internal/sdk/models/operations/putsourcehighlevel.go create mode 100644 internal/sdk/models/operations/putsourceleadfeeder.go create mode 100644 internal/sdk/models/operations/putsourcelooker.go create mode 100644 internal/sdk/models/operations/putsourceluma.go delete mode 100644 internal/sdk/models/operations/putsourcemongodbinternalpoc.go create mode 100644 internal/sdk/models/operations/putsourcenorthpasslms.go create mode 100644 internal/sdk/models/operations/putsourcepennylane.go create mode 100644 internal/sdk/models/operations/putsourceplanhat.go create mode 100644 internal/sdk/models/operations/putsourcereddit.go create mode 100644 internal/sdk/models/operations/putsourcesavvycal.go create mode 100644 internal/sdk/models/operations/putsourcescryfall.go delete mode 100644 internal/sdk/models/shared/destinationlangchain.go delete mode 100644 internal/sdk/models/shared/destinationlangchainputrequest.go delete mode 100644 internal/sdk/models/shared/destinationlangchainupdate.go create mode 100644 internal/sdk/models/shared/destinationtimeplus.go rename internal/sdk/models/shared/{destinationlangchaincreaterequest.go => destinationtimepluscreaterequest.go} (57%) create mode 100644 internal/sdk/models/shared/destinationtimeplusputrequest.go create mode 100644 internal/sdk/models/shared/destinationtimeplusupdate.go create mode 100644 internal/sdk/models/shared/sourceairbyte.go rename internal/sdk/models/shared/{sourcepunkapicreaterequest.go => sourceairbytecreaterequest.go} (63%) rename internal/sdk/models/shared/{sourcepunkapiputrequest.go => sourceairbyteputrequest.go} (52%) create mode 100644 internal/sdk/models/shared/sourceairbyteupdate.go create mode 100644 internal/sdk/models/shared/sourcebasecamp.go rename internal/sdk/models/shared/{sourcegoogleanalyticsv4serviceaccountonlycreaterequest.go => sourcebasecampcreaterequest.go} (52%) create mode 100644 internal/sdk/models/shared/sourcebasecampputrequest.go create mode 100644 internal/sdk/models/shared/sourcebasecampupdate.go create mode 100644 internal/sdk/models/shared/sourcebreezyhr.go create mode 100644 internal/sdk/models/shared/sourcebreezyhrcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcebreezyhrputrequest.go create mode 100644 internal/sdk/models/shared/sourcebreezyhrupdate.go create mode 100644 internal/sdk/models/shared/sourcecalendly.go create mode 100644 internal/sdk/models/shared/sourcecalendlycreaterequest.go create mode 100644 internal/sdk/models/shared/sourcecalendlyputrequest.go create mode 100644 internal/sdk/models/shared/sourcecalendlyupdate.go create mode 100644 internal/sdk/models/shared/sourceclazar.go create mode 100644 internal/sdk/models/shared/sourceclazarcreaterequest.go create mode 100644 internal/sdk/models/shared/sourceclazarputrequest.go create mode 100644 internal/sdk/models/shared/sourceclazarupdate.go create mode 100644 internal/sdk/models/shared/sourcecustomerio.go create mode 100644 internal/sdk/models/shared/sourcecustomeriocreaterequest.go create mode 100644 internal/sdk/models/shared/sourcecustomerioputrequest.go create mode 100644 internal/sdk/models/shared/sourcecustomerioupdate.go create mode 100644 internal/sdk/models/shared/sourcedatadog.go create mode 100644 internal/sdk/models/shared/sourcedatadogcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcedatadogputrequest.go create mode 100644 internal/sdk/models/shared/sourcedatadogupdate.go create mode 100644 internal/sdk/models/shared/sourcedbt.go create mode 100644 internal/sdk/models/shared/sourcedbtcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcedbtputrequest.go create mode 100644 internal/sdk/models/shared/sourcedbtupdate.go create mode 100644 internal/sdk/models/shared/sourcegoldcast.go create mode 100644 internal/sdk/models/shared/sourcegoldcastcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcegoldcastputrequest.go create mode 100644 internal/sdk/models/shared/sourcegoldcastupdate.go delete mode 100644 internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonly.go delete mode 100644 internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyputrequest.go delete mode 100644 internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyupdate.go create mode 100644 internal/sdk/models/shared/sourcehardcodedrecords.go rename internal/sdk/models/shared/{sourcemongodbinternalpoccreaterequest.go => sourcehardcodedrecordscreaterequest.go} (59%) create mode 100644 internal/sdk/models/shared/sourcehardcodedrecordsputrequest.go create mode 100644 internal/sdk/models/shared/sourcehardcodedrecordsupdate.go create mode 100644 internal/sdk/models/shared/sourcehibob.go create mode 100644 internal/sdk/models/shared/sourcehibobcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcehibobputrequest.go create mode 100644 internal/sdk/models/shared/sourcehibobupdate.go create mode 100644 internal/sdk/models/shared/sourcehighlevel.go create mode 100644 internal/sdk/models/shared/sourcehighlevelcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcehighlevelputrequest.go create mode 100644 internal/sdk/models/shared/sourcehighlevelupdate.go create mode 100644 internal/sdk/models/shared/sourceleadfeeder.go create mode 100644 internal/sdk/models/shared/sourceleadfeedercreaterequest.go create mode 100644 internal/sdk/models/shared/sourceleadfeederputrequest.go create mode 100644 internal/sdk/models/shared/sourceleadfeederupdate.go create mode 100644 internal/sdk/models/shared/sourcelooker.go create mode 100644 internal/sdk/models/shared/sourcelookercreaterequest.go create mode 100644 internal/sdk/models/shared/sourcelookerputrequest.go create mode 100644 internal/sdk/models/shared/sourcelookerupdate.go create mode 100644 internal/sdk/models/shared/sourceluma.go create mode 100644 internal/sdk/models/shared/sourcelumacreaterequest.go create mode 100644 internal/sdk/models/shared/sourcelumaputrequest.go create mode 100644 internal/sdk/models/shared/sourcelumaupdate.go delete mode 100644 internal/sdk/models/shared/sourcemongodbinternalpoc.go delete mode 100644 internal/sdk/models/shared/sourcemongodbinternalpocputrequest.go delete mode 100644 internal/sdk/models/shared/sourcemongodbinternalpocupdate.go create mode 100644 internal/sdk/models/shared/sourcenorthpasslms.go create mode 100644 internal/sdk/models/shared/sourcenorthpasslmscreaterequest.go create mode 100644 internal/sdk/models/shared/sourcenorthpasslmsputrequest.go create mode 100644 internal/sdk/models/shared/sourcenorthpasslmsupdate.go create mode 100644 internal/sdk/models/shared/sourcepennylane.go create mode 100644 internal/sdk/models/shared/sourcepennylanecreaterequest.go create mode 100644 internal/sdk/models/shared/sourcepennylaneputrequest.go create mode 100644 internal/sdk/models/shared/sourcepennylaneupdate.go create mode 100644 internal/sdk/models/shared/sourceplanhat.go create mode 100644 internal/sdk/models/shared/sourceplanhatcreaterequest.go create mode 100644 internal/sdk/models/shared/sourceplanhatputrequest.go create mode 100644 internal/sdk/models/shared/sourceplanhatupdate.go delete mode 100644 internal/sdk/models/shared/sourcepunkapi.go delete mode 100644 internal/sdk/models/shared/sourcepunkapiupdate.go create mode 100644 internal/sdk/models/shared/sourcereddit.go create mode 100644 internal/sdk/models/shared/sourceredditcreaterequest.go create mode 100644 internal/sdk/models/shared/sourceredditputrequest.go create mode 100644 internal/sdk/models/shared/sourceredditupdate.go create mode 100644 internal/sdk/models/shared/sourcesavvycal.go create mode 100644 internal/sdk/models/shared/sourcesavvycalcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcesavvycalputrequest.go create mode 100644 internal/sdk/models/shared/sourcesavvycalupdate.go create mode 100644 internal/sdk/models/shared/sourcescryfall.go create mode 100644 internal/sdk/models/shared/sourcescryfallcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcescryfallputrequest.go create mode 100644 internal/sdk/models/shared/sourcescryfallupdate.go diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a315a0359..ef6acb417 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: ffd32f87e1171c711ed1cd4a2a9a0e18 + docChecksum: 66a6713e21d936ece40d623dc65a71aa docVersion: 1.0.0 speakeasyVersion: 1.335.2 generationVersion: 2.372.3 - releaseVersion: 0.9.0 - configChecksum: 64dc958d07cf4d6aec0453684dcc4df2 + releaseVersion: 0.11.0 + configChecksum: 72d2d09f8c57d57e37d788c60b71836a repoURL: https://github.com/airbytehq/terraform-provider-airbyte.git features: terraform: @@ -19,7 +19,6 @@ 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 @@ -72,7 +71,6 @@ 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 @@ -90,6 +88,7 @@ generatedFiles: - internal/sdk/models/operations/createdestinationsnowflake.go - internal/sdk/models/operations/createdestinationsnowflakecortex.go - internal/sdk/models/operations/createdestinationteradata.go + - internal/sdk/models/operations/createdestinationtimeplus.go - internal/sdk/models/operations/createdestinationtypesense.go - internal/sdk/models/operations/createdestinationvectara.go - internal/sdk/models/operations/createdestinationweaviate.go @@ -111,7 +110,6 @@ 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 @@ -129,6 +127,7 @@ generatedFiles: - internal/sdk/models/operations/deletedestinationsnowflake.go - internal/sdk/models/operations/deletedestinationsnowflakecortex.go - internal/sdk/models/operations/deletedestinationteradata.go + - internal/sdk/models/operations/deletedestinationtimeplus.go - internal/sdk/models/operations/deletedestinationtypesense.go - internal/sdk/models/operations/deletedestinationvectara.go - internal/sdk/models/operations/deletedestinationweaviate.go @@ -150,7 +149,6 @@ 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 @@ -168,6 +166,7 @@ generatedFiles: - internal/sdk/models/operations/getdestinationsnowflake.go - internal/sdk/models/operations/getdestinationsnowflakecortex.go - internal/sdk/models/operations/getdestinationteradata.go + - internal/sdk/models/operations/getdestinationtimeplus.go - internal/sdk/models/operations/getdestinationtypesense.go - internal/sdk/models/operations/getdestinationvectara.go - internal/sdk/models/operations/getdestinationweaviate.go @@ -191,7 +190,6 @@ 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 @@ -209,6 +207,7 @@ generatedFiles: - internal/sdk/models/operations/putdestinationsnowflake.go - internal/sdk/models/operations/putdestinationsnowflakecortex.go - internal/sdk/models/operations/putdestinationteradata.go + - internal/sdk/models/operations/putdestinationtimeplus.go - internal/sdk/models/operations/putdestinationtypesense.go - internal/sdk/models/operations/putdestinationvectara.go - internal/sdk/models/operations/putdestinationweaviate.go @@ -226,6 +225,7 @@ generatedFiles: - internal/sdk/models/operations/updatepermission.go - internal/sdk/models/operations/createsource.go - internal/sdk/models/operations/createsourceaha.go + - internal/sdk/models/operations/createsourceairbyte.go - internal/sdk/models/operations/createsourceaircall.go - internal/sdk/models/operations/createsourceairtable.go - internal/sdk/models/operations/createsourceamazonads.go @@ -240,13 +240,17 @@ generatedFiles: - internal/sdk/models/operations/createsourceazureblobstorage.go - internal/sdk/models/operations/createsourceazuretable.go - internal/sdk/models/operations/createsourcebamboohr.go + - internal/sdk/models/operations/createsourcebasecamp.go - internal/sdk/models/operations/createsourcebigquery.go - internal/sdk/models/operations/createsourcebingads.go - internal/sdk/models/operations/createsourcebraintree.go - internal/sdk/models/operations/createsourcebraze.go + - internal/sdk/models/operations/createsourcebreezyhr.go + - internal/sdk/models/operations/createsourcecalendly.go - 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 @@ -258,7 +262,10 @@ generatedFiles: - internal/sdk/models/operations/createsourceconfluence.go - internal/sdk/models/operations/createsourceconvex.go - internal/sdk/models/operations/createsourcecustom.go + - internal/sdk/models/operations/createsourcecustomerio.go + - internal/sdk/models/operations/createsourcedatadog.go - internal/sdk/models/operations/createsourcedatascope.go + - internal/sdk/models/operations/createsourcedbt.go - internal/sdk/models/operations/createsourcedelighted.go - internal/sdk/models/operations/createsourcedixa.go - internal/sdk/models/operations/createsourcedockerhub.go @@ -282,9 +289,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 @@ -293,7 +300,10 @@ generatedFiles: - internal/sdk/models/operations/createsourcegooglewebfonts.go - internal/sdk/models/operations/createsourcegreenhouse.go - internal/sdk/models/operations/createsourcegridly.go + - internal/sdk/models/operations/createsourcehardcodedrecords.go - internal/sdk/models/operations/createsourceharvest.go + - internal/sdk/models/operations/createsourcehibob.go + - internal/sdk/models/operations/createsourcehighlevel.go - internal/sdk/models/operations/createsourcehubplanner.go - internal/sdk/models/operations/createsourcehubspot.go - internal/sdk/models/operations/createsourceinsightly.go @@ -308,12 +318,15 @@ generatedFiles: - internal/sdk/models/operations/createsourceklaviyo.go - internal/sdk/models/operations/createsourcekyve.go - internal/sdk/models/operations/createsourcelaunchdarkly.go + - internal/sdk/models/operations/createsourceleadfeeder.go - internal/sdk/models/operations/createsourcelemlist.go - internal/sdk/models/operations/createsourceleverhiring.go - internal/sdk/models/operations/createsourcelinkedinads.go - internal/sdk/models/operations/createsourcelinkedinpages.go - internal/sdk/models/operations/createsourcelinnworks.go - internal/sdk/models/operations/createsourcelokalise.go + - internal/sdk/models/operations/createsourcelooker.go + - internal/sdk/models/operations/createsourceluma.go - internal/sdk/models/operations/createsourcemailchimp.go - internal/sdk/models/operations/createsourcemailgun.go - internal/sdk/models/operations/createsourcemailjetsms.go @@ -324,12 +337,12 @@ generatedFiles: - internal/sdk/models/operations/createsourcemicrosoftteams.go - internal/sdk/models/operations/createsourcemixpanel.go - internal/sdk/models/operations/createsourcemonday.go - - internal/sdk/models/operations/createsourcemongodbinternalpoc.go - internal/sdk/models/operations/createsourcemongodbv2.go - internal/sdk/models/operations/createsourcemssql.go - internal/sdk/models/operations/createsourcemyhours.go - internal/sdk/models/operations/createsourcemysql.go - internal/sdk/models/operations/createsourcenetsuite.go + - internal/sdk/models/operations/createsourcenorthpasslms.go - internal/sdk/models/operations/createsourcenotion.go - internal/sdk/models/operations/createsourcenytimes.go - internal/sdk/models/operations/createsourceokta.go @@ -343,10 +356,12 @@ generatedFiles: - internal/sdk/models/operations/createsourcepaypaltransaction.go - internal/sdk/models/operations/createsourcepaystack.go - internal/sdk/models/operations/createsourcependo.go + - internal/sdk/models/operations/createsourcepennylane.go - internal/sdk/models/operations/createsourcepersistiq.go - internal/sdk/models/operations/createsourcepexelsapi.go - internal/sdk/models/operations/createsourcepinterest.go - internal/sdk/models/operations/createsourcepipedrive.go + - internal/sdk/models/operations/createsourceplanhat.go - internal/sdk/models/operations/createsourcepocket.go - internal/sdk/models/operations/createsourcepokeapi.go - internal/sdk/models/operations/createsourcepolygonstockapi.go @@ -354,7 +369,6 @@ 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 @@ -362,6 +376,7 @@ generatedFiles: - internal/sdk/models/operations/createsourcerecreation.go - internal/sdk/models/operations/createsourcerecruitee.go - internal/sdk/models/operations/createsourcerecurly.go + - internal/sdk/models/operations/createsourcereddit.go - internal/sdk/models/operations/createsourceredshift.go - internal/sdk/models/operations/createsourceretently.go - internal/sdk/models/operations/createsourcerkicovid.go @@ -370,6 +385,8 @@ generatedFiles: - internal/sdk/models/operations/createsourcesalesforce.go - internal/sdk/models/operations/createsourcesalesloft.go - internal/sdk/models/operations/createsourcesapfieldglass.go + - internal/sdk/models/operations/createsourcesavvycal.go + - internal/sdk/models/operations/createsourcescryfall.go - internal/sdk/models/operations/createsourcesecoda.go - internal/sdk/models/operations/createsourcesendgrid.go - internal/sdk/models/operations/createsourcesendinblue.go @@ -422,6 +439,7 @@ generatedFiles: - internal/sdk/models/operations/createsourcezoom.go - internal/sdk/models/operations/deletesource.go - internal/sdk/models/operations/deletesourceaha.go + - internal/sdk/models/operations/deletesourceairbyte.go - internal/sdk/models/operations/deletesourceaircall.go - internal/sdk/models/operations/deletesourceairtable.go - internal/sdk/models/operations/deletesourceamazonads.go @@ -436,13 +454,17 @@ generatedFiles: - internal/sdk/models/operations/deletesourceazureblobstorage.go - internal/sdk/models/operations/deletesourceazuretable.go - internal/sdk/models/operations/deletesourcebamboohr.go + - internal/sdk/models/operations/deletesourcebasecamp.go - internal/sdk/models/operations/deletesourcebigquery.go - internal/sdk/models/operations/deletesourcebingads.go - internal/sdk/models/operations/deletesourcebraintree.go - internal/sdk/models/operations/deletesourcebraze.go + - internal/sdk/models/operations/deletesourcebreezyhr.go + - internal/sdk/models/operations/deletesourcecalendly.go - 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 @@ -454,7 +476,10 @@ generatedFiles: - internal/sdk/models/operations/deletesourceconfluence.go - internal/sdk/models/operations/deletesourceconvex.go - internal/sdk/models/operations/deletesourcecustom.go + - internal/sdk/models/operations/deletesourcecustomerio.go + - internal/sdk/models/operations/deletesourcedatadog.go - internal/sdk/models/operations/deletesourcedatascope.go + - internal/sdk/models/operations/deletesourcedbt.go - internal/sdk/models/operations/deletesourcedelighted.go - internal/sdk/models/operations/deletesourcedixa.go - internal/sdk/models/operations/deletesourcedockerhub.go @@ -478,9 +503,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 @@ -489,7 +514,10 @@ generatedFiles: - internal/sdk/models/operations/deletesourcegooglewebfonts.go - internal/sdk/models/operations/deletesourcegreenhouse.go - internal/sdk/models/operations/deletesourcegridly.go + - internal/sdk/models/operations/deletesourcehardcodedrecords.go - internal/sdk/models/operations/deletesourceharvest.go + - internal/sdk/models/operations/deletesourcehibob.go + - internal/sdk/models/operations/deletesourcehighlevel.go - internal/sdk/models/operations/deletesourcehubplanner.go - internal/sdk/models/operations/deletesourcehubspot.go - internal/sdk/models/operations/deletesourceinsightly.go @@ -504,12 +532,15 @@ generatedFiles: - internal/sdk/models/operations/deletesourceklaviyo.go - internal/sdk/models/operations/deletesourcekyve.go - internal/sdk/models/operations/deletesourcelaunchdarkly.go + - internal/sdk/models/operations/deletesourceleadfeeder.go - internal/sdk/models/operations/deletesourcelemlist.go - internal/sdk/models/operations/deletesourceleverhiring.go - internal/sdk/models/operations/deletesourcelinkedinads.go - internal/sdk/models/operations/deletesourcelinkedinpages.go - internal/sdk/models/operations/deletesourcelinnworks.go - internal/sdk/models/operations/deletesourcelokalise.go + - internal/sdk/models/operations/deletesourcelooker.go + - internal/sdk/models/operations/deletesourceluma.go - internal/sdk/models/operations/deletesourcemailchimp.go - internal/sdk/models/operations/deletesourcemailgun.go - internal/sdk/models/operations/deletesourcemailjetsms.go @@ -520,12 +551,12 @@ generatedFiles: - internal/sdk/models/operations/deletesourcemicrosoftteams.go - internal/sdk/models/operations/deletesourcemixpanel.go - internal/sdk/models/operations/deletesourcemonday.go - - internal/sdk/models/operations/deletesourcemongodbinternalpoc.go - internal/sdk/models/operations/deletesourcemongodbv2.go - internal/sdk/models/operations/deletesourcemssql.go - internal/sdk/models/operations/deletesourcemyhours.go - internal/sdk/models/operations/deletesourcemysql.go - internal/sdk/models/operations/deletesourcenetsuite.go + - internal/sdk/models/operations/deletesourcenorthpasslms.go - internal/sdk/models/operations/deletesourcenotion.go - internal/sdk/models/operations/deletesourcenytimes.go - internal/sdk/models/operations/deletesourceokta.go @@ -539,10 +570,12 @@ generatedFiles: - internal/sdk/models/operations/deletesourcepaypaltransaction.go - internal/sdk/models/operations/deletesourcepaystack.go - internal/sdk/models/operations/deletesourcependo.go + - internal/sdk/models/operations/deletesourcepennylane.go - internal/sdk/models/operations/deletesourcepersistiq.go - internal/sdk/models/operations/deletesourcepexelsapi.go - internal/sdk/models/operations/deletesourcepinterest.go - internal/sdk/models/operations/deletesourcepipedrive.go + - internal/sdk/models/operations/deletesourceplanhat.go - internal/sdk/models/operations/deletesourcepocket.go - internal/sdk/models/operations/deletesourcepokeapi.go - internal/sdk/models/operations/deletesourcepolygonstockapi.go @@ -550,7 +583,6 @@ 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 @@ -558,6 +590,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourcerecreation.go - internal/sdk/models/operations/deletesourcerecruitee.go - internal/sdk/models/operations/deletesourcerecurly.go + - internal/sdk/models/operations/deletesourcereddit.go - internal/sdk/models/operations/deletesourceredshift.go - internal/sdk/models/operations/deletesourceretently.go - internal/sdk/models/operations/deletesourcerkicovid.go @@ -566,6 +599,8 @@ generatedFiles: - internal/sdk/models/operations/deletesourcesalesforce.go - internal/sdk/models/operations/deletesourcesalesloft.go - internal/sdk/models/operations/deletesourcesapfieldglass.go + - internal/sdk/models/operations/deletesourcesavvycal.go + - internal/sdk/models/operations/deletesourcescryfall.go - internal/sdk/models/operations/deletesourcesecoda.go - internal/sdk/models/operations/deletesourcesendgrid.go - internal/sdk/models/operations/deletesourcesendinblue.go @@ -618,6 +653,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourcezoom.go - internal/sdk/models/operations/getsource.go - internal/sdk/models/operations/getsourceaha.go + - internal/sdk/models/operations/getsourceairbyte.go - internal/sdk/models/operations/getsourceaircall.go - internal/sdk/models/operations/getsourceairtable.go - internal/sdk/models/operations/getsourceamazonads.go @@ -632,13 +668,17 @@ generatedFiles: - internal/sdk/models/operations/getsourceazureblobstorage.go - internal/sdk/models/operations/getsourceazuretable.go - internal/sdk/models/operations/getsourcebamboohr.go + - internal/sdk/models/operations/getsourcebasecamp.go - internal/sdk/models/operations/getsourcebigquery.go - internal/sdk/models/operations/getsourcebingads.go - internal/sdk/models/operations/getsourcebraintree.go - internal/sdk/models/operations/getsourcebraze.go + - internal/sdk/models/operations/getsourcebreezyhr.go + - internal/sdk/models/operations/getsourcecalendly.go - 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 @@ -650,7 +690,10 @@ generatedFiles: - internal/sdk/models/operations/getsourceconfluence.go - internal/sdk/models/operations/getsourceconvex.go - internal/sdk/models/operations/getsourcecustom.go + - internal/sdk/models/operations/getsourcecustomerio.go + - internal/sdk/models/operations/getsourcedatadog.go - internal/sdk/models/operations/getsourcedatascope.go + - internal/sdk/models/operations/getsourcedbt.go - internal/sdk/models/operations/getsourcedelighted.go - internal/sdk/models/operations/getsourcedixa.go - internal/sdk/models/operations/getsourcedockerhub.go @@ -674,9 +717,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 @@ -685,7 +728,10 @@ generatedFiles: - internal/sdk/models/operations/getsourcegooglewebfonts.go - internal/sdk/models/operations/getsourcegreenhouse.go - internal/sdk/models/operations/getsourcegridly.go + - internal/sdk/models/operations/getsourcehardcodedrecords.go - internal/sdk/models/operations/getsourceharvest.go + - internal/sdk/models/operations/getsourcehibob.go + - internal/sdk/models/operations/getsourcehighlevel.go - internal/sdk/models/operations/getsourcehubplanner.go - internal/sdk/models/operations/getsourcehubspot.go - internal/sdk/models/operations/getsourceinsightly.go @@ -700,12 +746,15 @@ generatedFiles: - internal/sdk/models/operations/getsourceklaviyo.go - internal/sdk/models/operations/getsourcekyve.go - internal/sdk/models/operations/getsourcelaunchdarkly.go + - internal/sdk/models/operations/getsourceleadfeeder.go - internal/sdk/models/operations/getsourcelemlist.go - internal/sdk/models/operations/getsourceleverhiring.go - internal/sdk/models/operations/getsourcelinkedinads.go - internal/sdk/models/operations/getsourcelinkedinpages.go - internal/sdk/models/operations/getsourcelinnworks.go - internal/sdk/models/operations/getsourcelokalise.go + - internal/sdk/models/operations/getsourcelooker.go + - internal/sdk/models/operations/getsourceluma.go - internal/sdk/models/operations/getsourcemailchimp.go - internal/sdk/models/operations/getsourcemailgun.go - internal/sdk/models/operations/getsourcemailjetsms.go @@ -716,12 +765,12 @@ generatedFiles: - internal/sdk/models/operations/getsourcemicrosoftteams.go - internal/sdk/models/operations/getsourcemixpanel.go - internal/sdk/models/operations/getsourcemonday.go - - internal/sdk/models/operations/getsourcemongodbinternalpoc.go - internal/sdk/models/operations/getsourcemongodbv2.go - internal/sdk/models/operations/getsourcemssql.go - internal/sdk/models/operations/getsourcemyhours.go - internal/sdk/models/operations/getsourcemysql.go - internal/sdk/models/operations/getsourcenetsuite.go + - internal/sdk/models/operations/getsourcenorthpasslms.go - internal/sdk/models/operations/getsourcenotion.go - internal/sdk/models/operations/getsourcenytimes.go - internal/sdk/models/operations/getsourceokta.go @@ -735,10 +784,12 @@ generatedFiles: - internal/sdk/models/operations/getsourcepaypaltransaction.go - internal/sdk/models/operations/getsourcepaystack.go - internal/sdk/models/operations/getsourcependo.go + - internal/sdk/models/operations/getsourcepennylane.go - internal/sdk/models/operations/getsourcepersistiq.go - internal/sdk/models/operations/getsourcepexelsapi.go - internal/sdk/models/operations/getsourcepinterest.go - internal/sdk/models/operations/getsourcepipedrive.go + - internal/sdk/models/operations/getsourceplanhat.go - internal/sdk/models/operations/getsourcepocket.go - internal/sdk/models/operations/getsourcepokeapi.go - internal/sdk/models/operations/getsourcepolygonstockapi.go @@ -746,7 +797,6 @@ 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 @@ -754,6 +804,7 @@ generatedFiles: - internal/sdk/models/operations/getsourcerecreation.go - internal/sdk/models/operations/getsourcerecruitee.go - internal/sdk/models/operations/getsourcerecurly.go + - internal/sdk/models/operations/getsourcereddit.go - internal/sdk/models/operations/getsourceredshift.go - internal/sdk/models/operations/getsourceretently.go - internal/sdk/models/operations/getsourcerkicovid.go @@ -762,6 +813,8 @@ generatedFiles: - internal/sdk/models/operations/getsourcesalesforce.go - internal/sdk/models/operations/getsourcesalesloft.go - internal/sdk/models/operations/getsourcesapfieldglass.go + - internal/sdk/models/operations/getsourcesavvycal.go + - internal/sdk/models/operations/getsourcescryfall.go - internal/sdk/models/operations/getsourcesecoda.go - internal/sdk/models/operations/getsourcesendgrid.go - internal/sdk/models/operations/getsourcesendinblue.go @@ -817,6 +870,7 @@ generatedFiles: - internal/sdk/models/operations/patchsource.go - internal/sdk/models/operations/putsource.go - internal/sdk/models/operations/putsourceaha.go + - internal/sdk/models/operations/putsourceairbyte.go - internal/sdk/models/operations/putsourceaircall.go - internal/sdk/models/operations/putsourceairtable.go - internal/sdk/models/operations/putsourceamazonads.go @@ -831,13 +885,17 @@ generatedFiles: - internal/sdk/models/operations/putsourceazureblobstorage.go - internal/sdk/models/operations/putsourceazuretable.go - internal/sdk/models/operations/putsourcebamboohr.go + - internal/sdk/models/operations/putsourcebasecamp.go - internal/sdk/models/operations/putsourcebigquery.go - internal/sdk/models/operations/putsourcebingads.go - internal/sdk/models/operations/putsourcebraintree.go - internal/sdk/models/operations/putsourcebraze.go + - internal/sdk/models/operations/putsourcebreezyhr.go + - internal/sdk/models/operations/putsourcecalendly.go - 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 @@ -849,7 +907,10 @@ generatedFiles: - internal/sdk/models/operations/putsourceconfluence.go - internal/sdk/models/operations/putsourceconvex.go - internal/sdk/models/operations/putsourcecustom.go + - internal/sdk/models/operations/putsourcecustomerio.go + - internal/sdk/models/operations/putsourcedatadog.go - internal/sdk/models/operations/putsourcedatascope.go + - internal/sdk/models/operations/putsourcedbt.go - internal/sdk/models/operations/putsourcedelighted.go - internal/sdk/models/operations/putsourcedixa.go - internal/sdk/models/operations/putsourcedockerhub.go @@ -873,9 +934,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 @@ -884,7 +945,10 @@ generatedFiles: - internal/sdk/models/operations/putsourcegooglewebfonts.go - internal/sdk/models/operations/putsourcegreenhouse.go - internal/sdk/models/operations/putsourcegridly.go + - internal/sdk/models/operations/putsourcehardcodedrecords.go - internal/sdk/models/operations/putsourceharvest.go + - internal/sdk/models/operations/putsourcehibob.go + - internal/sdk/models/operations/putsourcehighlevel.go - internal/sdk/models/operations/putsourcehubplanner.go - internal/sdk/models/operations/putsourcehubspot.go - internal/sdk/models/operations/putsourceinsightly.go @@ -899,12 +963,15 @@ generatedFiles: - internal/sdk/models/operations/putsourceklaviyo.go - internal/sdk/models/operations/putsourcekyve.go - internal/sdk/models/operations/putsourcelaunchdarkly.go + - internal/sdk/models/operations/putsourceleadfeeder.go - internal/sdk/models/operations/putsourcelemlist.go - internal/sdk/models/operations/putsourceleverhiring.go - internal/sdk/models/operations/putsourcelinkedinads.go - internal/sdk/models/operations/putsourcelinkedinpages.go - internal/sdk/models/operations/putsourcelinnworks.go - internal/sdk/models/operations/putsourcelokalise.go + - internal/sdk/models/operations/putsourcelooker.go + - internal/sdk/models/operations/putsourceluma.go - internal/sdk/models/operations/putsourcemailchimp.go - internal/sdk/models/operations/putsourcemailgun.go - internal/sdk/models/operations/putsourcemailjetsms.go @@ -915,12 +982,12 @@ generatedFiles: - internal/sdk/models/operations/putsourcemicrosoftteams.go - internal/sdk/models/operations/putsourcemixpanel.go - internal/sdk/models/operations/putsourcemonday.go - - internal/sdk/models/operations/putsourcemongodbinternalpoc.go - internal/sdk/models/operations/putsourcemongodbv2.go - internal/sdk/models/operations/putsourcemssql.go - internal/sdk/models/operations/putsourcemyhours.go - internal/sdk/models/operations/putsourcemysql.go - internal/sdk/models/operations/putsourcenetsuite.go + - internal/sdk/models/operations/putsourcenorthpasslms.go - internal/sdk/models/operations/putsourcenotion.go - internal/sdk/models/operations/putsourcenytimes.go - internal/sdk/models/operations/putsourceokta.go @@ -934,10 +1001,12 @@ generatedFiles: - internal/sdk/models/operations/putsourcepaypaltransaction.go - internal/sdk/models/operations/putsourcepaystack.go - internal/sdk/models/operations/putsourcependo.go + - internal/sdk/models/operations/putsourcepennylane.go - internal/sdk/models/operations/putsourcepersistiq.go - internal/sdk/models/operations/putsourcepexelsapi.go - internal/sdk/models/operations/putsourcepinterest.go - internal/sdk/models/operations/putsourcepipedrive.go + - internal/sdk/models/operations/putsourceplanhat.go - internal/sdk/models/operations/putsourcepocket.go - internal/sdk/models/operations/putsourcepokeapi.go - internal/sdk/models/operations/putsourcepolygonstockapi.go @@ -945,7 +1014,6 @@ 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 @@ -953,6 +1021,7 @@ generatedFiles: - internal/sdk/models/operations/putsourcerecreation.go - internal/sdk/models/operations/putsourcerecruitee.go - internal/sdk/models/operations/putsourcerecurly.go + - internal/sdk/models/operations/putsourcereddit.go - internal/sdk/models/operations/putsourceredshift.go - internal/sdk/models/operations/putsourceretently.go - internal/sdk/models/operations/putsourcerkicovid.go @@ -961,6 +1030,8 @@ generatedFiles: - internal/sdk/models/operations/putsourcesalesforce.go - internal/sdk/models/operations/putsourcesalesloft.go - internal/sdk/models/operations/putsourcesapfieldglass.go + - internal/sdk/models/operations/putsourcesavvycal.go + - internal/sdk/models/operations/putsourcescryfall.go - internal/sdk/models/operations/putsourcesecoda.go - internal/sdk/models/operations/putsourcesendgrid.go - internal/sdk/models/operations/putsourcesendinblue.go @@ -1071,8 +1142,6 @@ 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 @@ -1107,6 +1176,8 @@ generatedFiles: - internal/sdk/models/shared/destinationsnowflakecortex.go - internal/sdk/models/shared/destinationteradatacreaterequest.go - internal/sdk/models/shared/destinationteradata.go + - internal/sdk/models/shared/destinationtimepluscreaterequest.go + - internal/sdk/models/shared/destinationtimeplus.go - internal/sdk/models/shared/destinationtypesensecreaterequest.go - internal/sdk/models/shared/destinationtypesense.go - internal/sdk/models/shared/destinationvectaracreaterequest.go @@ -1149,8 +1220,6 @@ 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 @@ -1185,6 +1254,8 @@ generatedFiles: - internal/sdk/models/shared/destinationsnowflakecortexupdate.go - internal/sdk/models/shared/destinationteradataputrequest.go - internal/sdk/models/shared/destinationteradataupdate.go + - internal/sdk/models/shared/destinationtimeplusputrequest.go + - internal/sdk/models/shared/destinationtimeplusupdate.go - internal/sdk/models/shared/destinationtypesenseputrequest.go - internal/sdk/models/shared/destinationtypesenseupdate.go - internal/sdk/models/shared/destinationvectaraputrequest.go @@ -1212,6 +1283,8 @@ generatedFiles: - internal/sdk/models/shared/sourcecreaterequest.go - internal/sdk/models/shared/sourceahacreaterequest.go - internal/sdk/models/shared/sourceaha.go + - internal/sdk/models/shared/sourceairbytecreaterequest.go + - internal/sdk/models/shared/sourceairbyte.go - internal/sdk/models/shared/sourceaircallcreaterequest.go - internal/sdk/models/shared/sourceaircall.go - internal/sdk/models/shared/sourceairtablecreaterequest.go @@ -1240,6 +1313,8 @@ generatedFiles: - internal/sdk/models/shared/sourceazuretable.go - internal/sdk/models/shared/sourcebamboohrcreaterequest.go - internal/sdk/models/shared/sourcebamboohr.go + - internal/sdk/models/shared/sourcebasecampcreaterequest.go + - internal/sdk/models/shared/sourcebasecamp.go - internal/sdk/models/shared/sourcebigquerycreaterequest.go - internal/sdk/models/shared/sourcebigquery.go - internal/sdk/models/shared/sourcebingadscreaterequest.go @@ -1248,12 +1323,18 @@ generatedFiles: - internal/sdk/models/shared/sourcebraintree.go - internal/sdk/models/shared/sourcebrazecreaterequest.go - internal/sdk/models/shared/sourcebraze.go + - internal/sdk/models/shared/sourcebreezyhrcreaterequest.go + - internal/sdk/models/shared/sourcebreezyhr.go + - internal/sdk/models/shared/sourcecalendlycreaterequest.go + - internal/sdk/models/shared/sourcecalendly.go - internal/sdk/models/shared/sourcecartcreaterequest.go - internal/sdk/models/shared/sourcecart.go - internal/sdk/models/shared/sourcechargebeecreaterequest.go - 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 @@ -1275,8 +1356,14 @@ generatedFiles: - internal/sdk/models/shared/sourceconvexcreaterequest.go - internal/sdk/models/shared/sourceconvex.go - internal/sdk/models/shared/sourcecustomcreaterequest.go + - internal/sdk/models/shared/sourcecustomeriocreaterequest.go + - internal/sdk/models/shared/sourcecustomerio.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/sourcedbtcreaterequest.go + - internal/sdk/models/shared/sourcedbt.go - internal/sdk/models/shared/sourcedelightedcreaterequest.go - internal/sdk/models/shared/sourcedelighted.go - internal/sdk/models/shared/sourcedixacreaterequest.go @@ -1323,12 +1410,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 @@ -1345,8 +1432,14 @@ generatedFiles: - internal/sdk/models/shared/sourcegreenhouse.go - internal/sdk/models/shared/sourcegridlycreaterequest.go - internal/sdk/models/shared/sourcegridly.go + - internal/sdk/models/shared/sourcehardcodedrecordscreaterequest.go + - internal/sdk/models/shared/sourcehardcodedrecords.go - internal/sdk/models/shared/sourceharvestcreaterequest.go - internal/sdk/models/shared/sourceharvest.go + - internal/sdk/models/shared/sourcehibobcreaterequest.go + - internal/sdk/models/shared/sourcehibob.go + - internal/sdk/models/shared/sourcehighlevelcreaterequest.go + - internal/sdk/models/shared/sourcehighlevel.go - internal/sdk/models/shared/sourcehubplannercreaterequest.go - internal/sdk/models/shared/sourcehubplanner.go - internal/sdk/models/shared/sourcehubspotcreaterequest.go @@ -1375,6 +1468,8 @@ generatedFiles: - internal/sdk/models/shared/sourcekyve.go - internal/sdk/models/shared/sourcelaunchdarklycreaterequest.go - internal/sdk/models/shared/sourcelaunchdarkly.go + - internal/sdk/models/shared/sourceleadfeedercreaterequest.go + - internal/sdk/models/shared/sourceleadfeeder.go - internal/sdk/models/shared/sourcelemlistcreaterequest.go - internal/sdk/models/shared/sourcelemlist.go - internal/sdk/models/shared/sourceleverhiringcreaterequest.go @@ -1387,6 +1482,10 @@ generatedFiles: - internal/sdk/models/shared/sourcelinnworks.go - internal/sdk/models/shared/sourcelokalisecreaterequest.go - internal/sdk/models/shared/sourcelokalise.go + - internal/sdk/models/shared/sourcelookercreaterequest.go + - internal/sdk/models/shared/sourcelooker.go + - internal/sdk/models/shared/sourcelumacreaterequest.go + - internal/sdk/models/shared/sourceluma.go - internal/sdk/models/shared/sourcemailchimpcreaterequest.go - internal/sdk/models/shared/sourcemailchimp.go - internal/sdk/models/shared/sourcemailguncreaterequest.go @@ -1407,8 +1506,6 @@ generatedFiles: - internal/sdk/models/shared/sourcemixpanel.go - internal/sdk/models/shared/sourcemondaycreaterequest.go - internal/sdk/models/shared/sourcemonday.go - - internal/sdk/models/shared/sourcemongodbinternalpoccreaterequest.go - - internal/sdk/models/shared/sourcemongodbinternalpoc.go - internal/sdk/models/shared/sourcemongodbv2createrequest.go - internal/sdk/models/shared/sourcemongodbv2.go - internal/sdk/models/shared/sourcemssqlcreaterequest.go @@ -1419,6 +1516,8 @@ generatedFiles: - internal/sdk/models/shared/sourcemysql.go - internal/sdk/models/shared/sourcenetsuitecreaterequest.go - internal/sdk/models/shared/sourcenetsuite.go + - internal/sdk/models/shared/sourcenorthpasslmscreaterequest.go + - internal/sdk/models/shared/sourcenorthpasslms.go - internal/sdk/models/shared/sourcenotioncreaterequest.go - internal/sdk/models/shared/sourcenotion.go - internal/sdk/models/shared/sourcenytimescreaterequest.go @@ -1445,6 +1544,8 @@ generatedFiles: - internal/sdk/models/shared/sourcepaystack.go - internal/sdk/models/shared/sourcependocreaterequest.go - internal/sdk/models/shared/sourcependo.go + - internal/sdk/models/shared/sourcepennylanecreaterequest.go + - internal/sdk/models/shared/sourcepennylane.go - internal/sdk/models/shared/sourcepersistiqcreaterequest.go - internal/sdk/models/shared/sourcepersistiq.go - internal/sdk/models/shared/sourcepexelsapicreaterequest.go @@ -1453,6 +1554,8 @@ generatedFiles: - internal/sdk/models/shared/sourcepinterest.go - internal/sdk/models/shared/sourcepipedrivecreaterequest.go - internal/sdk/models/shared/sourcepipedrive.go + - internal/sdk/models/shared/sourceplanhatcreaterequest.go + - internal/sdk/models/shared/sourceplanhat.go - internal/sdk/models/shared/sourcepocketcreaterequest.go - internal/sdk/models/shared/sourcepocket.go - internal/sdk/models/shared/sourcepokeapicreaterequest.go @@ -1467,8 +1570,6 @@ 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 @@ -1483,6 +1584,8 @@ generatedFiles: - internal/sdk/models/shared/sourcerecruitee.go - internal/sdk/models/shared/sourcerecurlycreaterequest.go - internal/sdk/models/shared/sourcerecurly.go + - internal/sdk/models/shared/sourceredditcreaterequest.go + - internal/sdk/models/shared/sourcereddit.go - internal/sdk/models/shared/sourceredshiftcreaterequest.go - internal/sdk/models/shared/sourceredshift.go - internal/sdk/models/shared/sourceretentlycreaterequest.go @@ -1499,6 +1602,10 @@ generatedFiles: - internal/sdk/models/shared/sourcesalesloft.go - internal/sdk/models/shared/sourcesapfieldglasscreaterequest.go - internal/sdk/models/shared/sourcesapfieldglass.go + - internal/sdk/models/shared/sourcesavvycalcreaterequest.go + - internal/sdk/models/shared/sourcesavvycal.go + - internal/sdk/models/shared/sourcescryfallcreaterequest.go + - internal/sdk/models/shared/sourcescryfall.go - internal/sdk/models/shared/sourcesecodacreaterequest.go - internal/sdk/models/shared/sourcesecoda.go - internal/sdk/models/shared/sourcesendgridcreaterequest.go @@ -1605,6 +1712,8 @@ generatedFiles: - internal/sdk/models/shared/sourceputrequest.go - internal/sdk/models/shared/sourceahaputrequest.go - internal/sdk/models/shared/sourceahaupdate.go + - internal/sdk/models/shared/sourceairbyteputrequest.go + - internal/sdk/models/shared/sourceairbyteupdate.go - internal/sdk/models/shared/sourceaircallputrequest.go - internal/sdk/models/shared/sourceaircallupdate.go - internal/sdk/models/shared/sourceairtableputrequest.go @@ -1633,6 +1742,8 @@ generatedFiles: - internal/sdk/models/shared/sourceazuretableupdate.go - internal/sdk/models/shared/sourcebamboohrputrequest.go - internal/sdk/models/shared/sourcebamboohrupdate.go + - internal/sdk/models/shared/sourcebasecampputrequest.go + - internal/sdk/models/shared/sourcebasecampupdate.go - internal/sdk/models/shared/sourcebigqueryputrequest.go - internal/sdk/models/shared/sourcebigqueryupdate.go - internal/sdk/models/shared/sourcebingadsputrequest.go @@ -1641,12 +1752,18 @@ generatedFiles: - internal/sdk/models/shared/sourcebraintreeupdate.go - internal/sdk/models/shared/sourcebrazeputrequest.go - internal/sdk/models/shared/sourcebrazeupdate.go + - internal/sdk/models/shared/sourcebreezyhrputrequest.go + - internal/sdk/models/shared/sourcebreezyhrupdate.go + - internal/sdk/models/shared/sourcecalendlyputrequest.go + - internal/sdk/models/shared/sourcecalendlyupdate.go - internal/sdk/models/shared/sourcecartputrequest.go - internal/sdk/models/shared/sourcecartupdate.go - internal/sdk/models/shared/sourcechargebeeputrequest.go - 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 @@ -1668,8 +1785,14 @@ generatedFiles: - internal/sdk/models/shared/sourceconvexputrequest.go - internal/sdk/models/shared/sourceconvexupdate.go - internal/sdk/models/shared/sourcecustomputrequest.go + - internal/sdk/models/shared/sourcecustomerioputrequest.go + - internal/sdk/models/shared/sourcecustomerioupdate.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/sourcedbtputrequest.go + - internal/sdk/models/shared/sourcedbtupdate.go - internal/sdk/models/shared/sourcedelightedputrequest.go - internal/sdk/models/shared/sourcedelightedupdate.go - internal/sdk/models/shared/sourcedixaputrequest.go @@ -1716,12 +1839,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 @@ -1738,8 +1861,14 @@ generatedFiles: - internal/sdk/models/shared/sourcegreenhouseupdate.go - internal/sdk/models/shared/sourcegridlyputrequest.go - internal/sdk/models/shared/sourcegridlyupdate.go + - internal/sdk/models/shared/sourcehardcodedrecordsputrequest.go + - internal/sdk/models/shared/sourcehardcodedrecordsupdate.go - internal/sdk/models/shared/sourceharvestputrequest.go - internal/sdk/models/shared/sourceharvestupdate.go + - internal/sdk/models/shared/sourcehibobputrequest.go + - internal/sdk/models/shared/sourcehibobupdate.go + - internal/sdk/models/shared/sourcehighlevelputrequest.go + - internal/sdk/models/shared/sourcehighlevelupdate.go - internal/sdk/models/shared/sourcehubplannerputrequest.go - internal/sdk/models/shared/sourcehubplannerupdate.go - internal/sdk/models/shared/sourcehubspotputrequest.go @@ -1768,6 +1897,8 @@ generatedFiles: - internal/sdk/models/shared/sourcekyveupdate.go - internal/sdk/models/shared/sourcelaunchdarklyputrequest.go - internal/sdk/models/shared/sourcelaunchdarklyupdate.go + - internal/sdk/models/shared/sourceleadfeederputrequest.go + - internal/sdk/models/shared/sourceleadfeederupdate.go - internal/sdk/models/shared/sourcelemlistputrequest.go - internal/sdk/models/shared/sourcelemlistupdate.go - internal/sdk/models/shared/sourceleverhiringputrequest.go @@ -1780,6 +1911,10 @@ generatedFiles: - internal/sdk/models/shared/sourcelinnworksupdate.go - internal/sdk/models/shared/sourcelokaliseputrequest.go - internal/sdk/models/shared/sourcelokaliseupdate.go + - internal/sdk/models/shared/sourcelookerputrequest.go + - internal/sdk/models/shared/sourcelookerupdate.go + - internal/sdk/models/shared/sourcelumaputrequest.go + - internal/sdk/models/shared/sourcelumaupdate.go - internal/sdk/models/shared/sourcemailchimpputrequest.go - internal/sdk/models/shared/sourcemailchimpupdate.go - internal/sdk/models/shared/sourcemailgunputrequest.go @@ -1800,8 +1935,6 @@ generatedFiles: - internal/sdk/models/shared/sourcemixpanelupdate.go - internal/sdk/models/shared/sourcemondayputrequest.go - internal/sdk/models/shared/sourcemondayupdate.go - - internal/sdk/models/shared/sourcemongodbinternalpocputrequest.go - - internal/sdk/models/shared/sourcemongodbinternalpocupdate.go - internal/sdk/models/shared/sourcemongodbv2putrequest.go - internal/sdk/models/shared/sourcemongodbv2update.go - internal/sdk/models/shared/sourcemssqlputrequest.go @@ -1812,6 +1945,8 @@ generatedFiles: - internal/sdk/models/shared/sourcemysqlupdate.go - internal/sdk/models/shared/sourcenetsuiteputrequest.go - internal/sdk/models/shared/sourcenetsuiteupdate.go + - internal/sdk/models/shared/sourcenorthpasslmsputrequest.go + - internal/sdk/models/shared/sourcenorthpasslmsupdate.go - internal/sdk/models/shared/sourcenotionputrequest.go - internal/sdk/models/shared/sourcenotionupdate.go - internal/sdk/models/shared/sourcenytimesputrequest.go @@ -1838,6 +1973,8 @@ generatedFiles: - internal/sdk/models/shared/sourcepaystackupdate.go - internal/sdk/models/shared/sourcependoputrequest.go - internal/sdk/models/shared/sourcependoupdate.go + - internal/sdk/models/shared/sourcepennylaneputrequest.go + - internal/sdk/models/shared/sourcepennylaneupdate.go - internal/sdk/models/shared/sourcepersistiqputrequest.go - internal/sdk/models/shared/sourcepersistiqupdate.go - internal/sdk/models/shared/sourcepexelsapiputrequest.go @@ -1846,6 +1983,8 @@ generatedFiles: - internal/sdk/models/shared/sourcepinterestupdate.go - internal/sdk/models/shared/sourcepipedriveputrequest.go - internal/sdk/models/shared/sourcepipedriveupdate.go + - internal/sdk/models/shared/sourceplanhatputrequest.go + - internal/sdk/models/shared/sourceplanhatupdate.go - internal/sdk/models/shared/sourcepocketputrequest.go - internal/sdk/models/shared/sourcepocketupdate.go - internal/sdk/models/shared/sourcepokeapiputrequest.go @@ -1860,8 +1999,6 @@ 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 @@ -1876,6 +2013,8 @@ generatedFiles: - internal/sdk/models/shared/sourcerecruiteeupdate.go - internal/sdk/models/shared/sourcerecurlyputrequest.go - internal/sdk/models/shared/sourcerecurlyupdate.go + - internal/sdk/models/shared/sourceredditputrequest.go + - internal/sdk/models/shared/sourceredditupdate.go - internal/sdk/models/shared/sourceredshiftputrequest.go - internal/sdk/models/shared/sourceredshiftupdate.go - internal/sdk/models/shared/sourceretentlyputrequest.go @@ -1892,6 +2031,10 @@ generatedFiles: - internal/sdk/models/shared/sourcesalesloftupdate.go - internal/sdk/models/shared/sourcesapfieldglassputrequest.go - internal/sdk/models/shared/sourcesapfieldglassupdate.go + - internal/sdk/models/shared/sourcesavvycalputrequest.go + - internal/sdk/models/shared/sourcesavvycalupdate.go + - internal/sdk/models/shared/sourcescryfallputrequest.go + - internal/sdk/models/shared/sourcescryfallupdate.go - internal/sdk/models/shared/sourcesecodaputrequest.go - internal/sdk/models/shared/sourcesecodaupdate.go - internal/sdk/models/shared/sourcesendgridputrequest.go @@ -2093,9 +2236,9 @@ generatedFiles: - internal/provider/types/destination_clickhouse_ssh_tunnel_method.go - internal/provider/types/destination_clickhouse.go - internal/provider/types/destination_convex.go - - internal/provider/types/amazon_s3.go - - internal/provider/types/destination_databricks_azure_blob_storage.go - - internal/provider/types/destination_databricks_data_source1.go + - internal/provider/types/o_auth2_recommended.go + - internal/provider/types/personal_access_token.go + - internal/provider/types/destination_databricks_authentication.go - internal/provider/types/destination_databricks.go - internal/provider/types/destination_dev_null_test_destination.go - internal/provider/types/destination_dev_null.go @@ -2129,13 +2272,6 @@ 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 @@ -2151,6 +2287,7 @@ 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 @@ -2163,8 +2300,6 @@ 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 @@ -2184,6 +2319,7 @@ generatedFiles: - internal/provider/types/destination_teradata_verify_ca.go - internal/provider/types/destination_teradata_ssl_modes.go - internal/provider/types/destination_teradata.go + - internal/provider/types/destination_timeplus.go - internal/provider/types/destination_typesense.go - internal/provider/types/destination_vectara_o_auth20_credentials.go - internal/provider/types/destination_vectara.go @@ -2195,6 +2331,7 @@ generatedFiles: - internal/provider/types/destination_weaviate.go - internal/provider/types/destination_yellowbrick.go - internal/provider/types/source_aha.go + - internal/provider/types/source_airbyte.go - internal/provider/types/source_aircall.go - internal/provider/types/source_airtable_o_auth20.go - internal/provider/types/source_airtable_authentication.go @@ -2207,13 +2344,13 @@ generatedFiles: - internal/provider/types/source_amplitude.go - internal/provider/types/source_apify_dataset.go - internal/provider/types/source_appfollow.go - - internal/provider/types/authenticate_with_personal_access_token.go - internal/provider/types/source_asana_authentication_mechanism.go - internal/provider/types/source_asana.go - internal/provider/types/o_auth2_access_token.go - 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 @@ -2230,18 +2367,20 @@ generatedFiles: - internal/provider/types/source_azure_blob_storage.go - internal/provider/types/source_azure_table.go - internal/provider/types/source_bamboo_hr.go + - internal/provider/types/source_basecamp.go - internal/provider/types/source_bigquery.go - internal/provider/types/account_names.go - internal/provider/types/custom_report_config.go - internal/provider/types/source_bing_ads.go - internal/provider/types/source_braintree.go - internal/provider/types/source_braze.go + - internal/provider/types/source_breezy_hr.go + - internal/provider/types/source_calendly.go - internal/provider/types/central_api_router.go - internal/provider/types/single_store_access_token.go - internal/provider/types/source_cart_authorization_method.go - internal/provider/types/source_cart.go - internal/provider/types/source_chargebee.go - - internal/provider/types/source_chartmogul.go - internal/provider/types/source_clickhouse.go - internal/provider/types/source_clickup_api.go - internal/provider/types/source_clockify.go @@ -2250,7 +2389,11 @@ generatedFiles: - internal/provider/types/source_coin_api.go - internal/provider/types/source_coinmarketcap.go - internal/provider/types/source_confluence.go + - internal/provider/types/source_customer_io.go + - internal/provider/types/queries.go + - internal/provider/types/source_datadog.go - internal/provider/types/source_datascope.go + - internal/provider/types/source_dbt.go - internal/provider/types/source_delighted.go - internal/provider/types/source_dixa.go - internal/provider/types/source_dockerhub.go @@ -2260,6 +2403,8 @@ 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 @@ -2279,8 +2424,12 @@ generatedFiles: - internal/provider/types/source_freshcaller.go - internal/provider/types/source_freshdesk.go - internal/provider/types/source_freshsales.go + - internal/provider/types/api_parameter_config_model.go + - internal/provider/types/via_api.go + - internal/provider/types/source_gcs_processing.go + - internal/provider/types/unstructured_document_format.go - internal/provider/types/source_gcs_format.go - - internal/provider/types/source_gcs_stream_config.go + - internal/provider/types/source_gcs_file_based_stream_config.go - internal/provider/types/source_gcs.go - internal/provider/types/source_getlago.go - internal/provider/types/o_auth.go @@ -2290,11 +2439,12 @@ 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/service_account_key_authentication.go + - internal/provider/types/source_google_analytics_data_api_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 @@ -2316,8 +2466,6 @@ 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 @@ -2335,10 +2483,13 @@ generatedFiles: - internal/provider/types/source_google_sheets.go - internal/provider/types/source_google_webfonts.go - internal/provider/types/source_gridly.go + - internal/provider/types/source_hardcoded_records.go - internal/provider/types/authenticate_via_harvest_o_auth.go - internal/provider/types/source_harvest_authenticate_with_personal_access_token.go - internal/provider/types/source_harvest_authentication_mechanism.go - internal/provider/types/source_harvest.go + - internal/provider/types/source_hibob.go + - internal/provider/types/source_high_level.go - internal/provider/types/source_hubspot_authentication.go - internal/provider/types/source_hubspot.go - internal/provider/types/source_insightly.go @@ -2350,6 +2501,7 @@ generatedFiles: - internal/provider/types/source_klarna.go - internal/provider/types/source_klaviyo.go - internal/provider/types/source_kyve.go + - internal/provider/types/source_leadfeeder.go - internal/provider/types/authenticate_via_lever_o_auth.go - internal/provider/types/source_lever_hiring_authentication_mechanism.go - internal/provider/types/source_lever_hiring.go @@ -2359,6 +2511,7 @@ generatedFiles: - internal/provider/types/source_linkedin_pages.go - internal/provider/types/source_linnworks.go - internal/provider/types/source_lokalise.go + - internal/provider/types/source_looker.go - internal/provider/types/api_key.go - internal/provider/types/source_mailchimp_authentication.go - internal/provider/types/source_mailchimp.go @@ -2368,9 +2521,13 @@ 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 + - internal/provider/types/source_microsoft_sharepoint_format.go + - internal/provider/types/source_microsoft_sharepoint_file_based_stream_config.go - internal/provider/types/source_microsoft_sharepoint.go - internal/provider/types/authenticate_via_microsoft.go - internal/provider/types/source_microsoft_teams_authentication_mechanism.go @@ -2382,7 +2539,6 @@ generatedFiles: - internal/provider/types/source_monday_o_auth20.go - internal/provider/types/source_monday_authorization_method.go - internal/provider/types/source_monday.go - - internal/provider/types/source_mongodb_internal_poc.go - internal/provider/types/mongo_db_atlas_replica_set.go - internal/provider/types/self_managed_replica_set.go - internal/provider/types/source_mongodb_v2_cluster_type.go @@ -2403,6 +2559,7 @@ generatedFiles: - internal/provider/types/source_notion_authentication_method.go - internal/provider/types/source_notion.go - internal/provider/types/source_nytimes.go + - internal/provider/types/o_auth20_with_private_key.go - internal/provider/types/source_okta_authorization_method.go - internal/provider/types/source_okta.go - internal/provider/types/applications.go @@ -2421,6 +2578,7 @@ generatedFiles: - internal/provider/types/source_outreach.go - internal/provider/types/source_paypal_transaction.go - internal/provider/types/source_paystack.go + - internal/provider/types/source_pennylane.go - internal/provider/types/source_pexels_api.go - internal/provider/types/report_config.go - internal/provider/types/source_pinterest.go @@ -2436,7 +2594,6 @@ 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 @@ -2444,6 +2601,7 @@ generatedFiles: - internal/provider/types/source_recreation.go - internal/provider/types/source_recruitee.go - internal/provider/types/source_recurly.go + - internal/provider/types/source_reddit.go - internal/provider/types/source_redshift.go - internal/provider/types/authenticate_with_api_token.go - internal/provider/types/source_retently_authentication_mechanism.go @@ -2455,6 +2613,8 @@ 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 @@ -2468,12 +2628,6 @@ generatedFiles: - internal/provider/types/source_sftp.go - internal/provider/types/authenticate_via_private_key.go - internal/provider/types/source_sftp_bulk_authentication.go - - internal/provider/types/api_parameter_config_model.go - - internal/provider/types/via_api.go - - internal/provider/types/source_sftp_bulk_processing.go - - internal/provider/types/source_sftp_bulk_document_file_type_format_experimental.go - - internal/provider/types/source_sftp_bulk_format.go - - internal/provider/types/source_sftp_bulk_file_based_stream_config.go - internal/provider/types/source_sftp_bulk.go - internal/provider/types/api_password.go - internal/provider/types/source_shopify_o_auth20.go @@ -2486,6 +2640,7 @@ 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 @@ -2516,6 +2671,7 @@ generatedFiles: - internal/provider/types/source_webflow.go - internal/provider/types/source_wikipedia_pageviews.go - internal/provider/types/source_woocommerce.go + - internal/provider/types/source_xkcd.go - internal/provider/types/source_yandex_metrica.go - internal/provider/types/source_yotpo.go - internal/provider/types/source_youtube_analytics.go @@ -2604,10 +2760,6 @@ 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 @@ -2676,6 +2828,10 @@ generatedFiles: - internal/provider/destination_teradata_resource.go - internal/provider/destination_teradata_resource_sdk.go - examples/resources/airbyte_destination_teradata/resource.tf + - examples/resources/airbyte_destination_timeplus/import.sh + - internal/provider/destination_timeplus_resource.go + - internal/provider/destination_timeplus_resource_sdk.go + - examples/resources/airbyte_destination_timeplus/resource.tf - examples/resources/airbyte_destination_typesense/import.sh - internal/provider/destination_typesense_resource.go - internal/provider/destination_typesense_resource_sdk.go @@ -2700,6 +2856,10 @@ generatedFiles: - internal/provider/source_aha_resource.go - internal/provider/source_aha_resource_sdk.go - examples/resources/airbyte_source_aha/resource.tf + - examples/resources/airbyte_source_airbyte/import.sh + - internal/provider/source_airbyte_resource.go + - internal/provider/source_airbyte_resource_sdk.go + - examples/resources/airbyte_source_airbyte/resource.tf - examples/resources/airbyte_source_aircall/import.sh - internal/provider/source_aircall_resource.go - internal/provider/source_aircall_resource_sdk.go @@ -2756,6 +2916,10 @@ generatedFiles: - internal/provider/source_bamboohr_resource.go - internal/provider/source_bamboohr_resource_sdk.go - examples/resources/airbyte_source_bamboo_hr/resource.tf + - examples/resources/airbyte_source_basecamp/import.sh + - internal/provider/source_basecamp_resource.go + - internal/provider/source_basecamp_resource_sdk.go + - examples/resources/airbyte_source_basecamp/resource.tf - examples/resources/airbyte_source_bigquery/import.sh - internal/provider/source_bigquery_resource.go - internal/provider/source_bigquery_resource_sdk.go @@ -2772,6 +2936,14 @@ generatedFiles: - internal/provider/source_braze_resource.go - internal/provider/source_braze_resource_sdk.go - examples/resources/airbyte_source_braze/resource.tf + - examples/resources/airbyte_source_breezy_hr/import.sh + - internal/provider/source_breezyhr_resource.go + - internal/provider/source_breezyhr_resource_sdk.go + - examples/resources/airbyte_source_breezy_hr/resource.tf + - examples/resources/airbyte_source_calendly/import.sh + - internal/provider/source_calendly_resource.go + - internal/provider/source_calendly_resource_sdk.go + - examples/resources/airbyte_source_calendly/resource.tf - examples/resources/airbyte_source_cart/import.sh - internal/provider/source_cart_resource.go - internal/provider/source_cart_resource_sdk.go @@ -2784,6 +2956,10 @@ 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 @@ -2828,10 +3004,22 @@ 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_customer_io/import.sh + - internal/provider/source_customerio_resource.go + - internal/provider/source_customerio_resource_sdk.go + - examples/resources/airbyte_source_customer_io/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 - examples/resources/airbyte_source_datascope/resource.tf + - examples/resources/airbyte_source_dbt/import.sh + - internal/provider/source_dbt_resource.go + - internal/provider/source_dbt_resource_sdk.go + - examples/resources/airbyte_source_dbt/resource.tf - examples/resources/airbyte_source_delighted/import.sh - internal/provider/source_delighted_resource.go - internal/provider/source_delighted_resource_sdk.go @@ -2924,6 +3112,10 @@ 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 @@ -2932,10 +3124,6 @@ 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 @@ -2968,10 +3156,22 @@ generatedFiles: - internal/provider/source_gridly_resource.go - internal/provider/source_gridly_resource_sdk.go - examples/resources/airbyte_source_gridly/resource.tf + - examples/resources/airbyte_source_hardcoded_records/import.sh + - internal/provider/source_hardcodedrecords_resource.go + - internal/provider/source_hardcodedrecords_resource_sdk.go + - examples/resources/airbyte_source_hardcoded_records/resource.tf - examples/resources/airbyte_source_harvest/import.sh - internal/provider/source_harvest_resource.go - internal/provider/source_harvest_resource_sdk.go - examples/resources/airbyte_source_harvest/resource.tf + - examples/resources/airbyte_source_hibob/import.sh + - internal/provider/source_hibob_resource.go + - internal/provider/source_hibob_resource_sdk.go + - examples/resources/airbyte_source_hibob/resource.tf + - examples/resources/airbyte_source_high_level/import.sh + - internal/provider/source_highlevel_resource.go + - internal/provider/source_highlevel_resource_sdk.go + - examples/resources/airbyte_source_high_level/resource.tf - examples/resources/airbyte_source_hubplanner/import.sh - internal/provider/source_hubplanner_resource.go - internal/provider/source_hubplanner_resource_sdk.go @@ -3028,6 +3228,10 @@ generatedFiles: - internal/provider/source_launchdarkly_resource.go - internal/provider/source_launchdarkly_resource_sdk.go - examples/resources/airbyte_source_launchdarkly/resource.tf + - examples/resources/airbyte_source_leadfeeder/import.sh + - internal/provider/source_leadfeeder_resource.go + - internal/provider/source_leadfeeder_resource_sdk.go + - examples/resources/airbyte_source_leadfeeder/resource.tf - examples/resources/airbyte_source_lemlist/import.sh - internal/provider/source_lemlist_resource.go - internal/provider/source_lemlist_resource_sdk.go @@ -3052,6 +3256,14 @@ generatedFiles: - internal/provider/source_lokalise_resource.go - internal/provider/source_lokalise_resource_sdk.go - examples/resources/airbyte_source_lokalise/resource.tf + - examples/resources/airbyte_source_looker/import.sh + - internal/provider/source_looker_resource.go + - internal/provider/source_looker_resource_sdk.go + - examples/resources/airbyte_source_looker/resource.tf + - examples/resources/airbyte_source_luma/import.sh + - internal/provider/source_luma_resource.go + - internal/provider/source_luma_resource_sdk.go + - examples/resources/airbyte_source_luma/resource.tf - examples/resources/airbyte_source_mailchimp/import.sh - internal/provider/source_mailchimp_resource.go - internal/provider/source_mailchimp_resource_sdk.go @@ -3092,10 +3304,6 @@ generatedFiles: - internal/provider/source_monday_resource.go - internal/provider/source_monday_resource_sdk.go - examples/resources/airbyte_source_monday/resource.tf - - examples/resources/airbyte_source_mongodb_internal_poc/import.sh - - internal/provider/source_mongodbinternalpoc_resource.go - - internal/provider/source_mongodbinternalpoc_resource_sdk.go - - examples/resources/airbyte_source_mongodb_internal_poc/resource.tf - examples/resources/airbyte_source_mongodb_v2/import.sh - internal/provider/source_mongodbv2_resource.go - internal/provider/source_mongodbv2_resource_sdk.go @@ -3116,6 +3324,10 @@ generatedFiles: - internal/provider/source_netsuite_resource.go - internal/provider/source_netsuite_resource_sdk.go - examples/resources/airbyte_source_netsuite/resource.tf + - examples/resources/airbyte_source_northpass_lms/import.sh + - internal/provider/source_northpasslms_resource.go + - internal/provider/source_northpasslms_resource_sdk.go + - examples/resources/airbyte_source_northpass_lms/resource.tf - examples/resources/airbyte_source_notion/import.sh - internal/provider/source_notion_resource.go - internal/provider/source_notion_resource_sdk.go @@ -3168,6 +3380,10 @@ generatedFiles: - internal/provider/source_pendo_resource.go - internal/provider/source_pendo_resource_sdk.go - examples/resources/airbyte_source_pendo/resource.tf + - examples/resources/airbyte_source_pennylane/import.sh + - internal/provider/source_pennylane_resource.go + - internal/provider/source_pennylane_resource_sdk.go + - examples/resources/airbyte_source_pennylane/resource.tf - examples/resources/airbyte_source_persistiq/import.sh - internal/provider/source_persistiq_resource.go - internal/provider/source_persistiq_resource_sdk.go @@ -3184,6 +3400,10 @@ generatedFiles: - internal/provider/source_pipedrive_resource.go - internal/provider/source_pipedrive_resource_sdk.go - examples/resources/airbyte_source_pipedrive/resource.tf + - examples/resources/airbyte_source_planhat/import.sh + - internal/provider/source_planhat_resource.go + - internal/provider/source_planhat_resource_sdk.go + - examples/resources/airbyte_source_planhat/resource.tf - examples/resources/airbyte_source_pocket/import.sh - internal/provider/source_pocket_resource.go - internal/provider/source_pocket_resource_sdk.go @@ -3212,10 +3432,6 @@ 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 @@ -3244,6 +3460,10 @@ generatedFiles: - internal/provider/source_recurly_resource.go - internal/provider/source_recurly_resource_sdk.go - examples/resources/airbyte_source_recurly/resource.tf + - examples/resources/airbyte_source_reddit/import.sh + - internal/provider/source_reddit_resource.go + - internal/provider/source_reddit_resource_sdk.go + - examples/resources/airbyte_source_reddit/resource.tf - examples/resources/airbyte_source_redshift/import.sh - internal/provider/source_redshift_resource.go - internal/provider/source_redshift_resource_sdk.go @@ -3276,6 +3496,14 @@ generatedFiles: - internal/provider/source_sapfieldglass_resource.go - internal/provider/source_sapfieldglass_resource_sdk.go - examples/resources/airbyte_source_sap_fieldglass/resource.tf + - examples/resources/airbyte_source_savvycal/import.sh + - internal/provider/source_savvycal_resource.go + - internal/provider/source_savvycal_resource_sdk.go + - examples/resources/airbyte_source_savvycal/resource.tf + - examples/resources/airbyte_source_scryfall/import.sh + - internal/provider/source_scryfall_resource.go + - internal/provider/source_scryfall_resource_sdk.go + - examples/resources/airbyte_source_scryfall/resource.tf - examples/resources/airbyte_source_secoda/import.sh - internal/provider/source_secoda_resource.go - internal/provider/source_secoda_resource_sdk.go @@ -3531,9 +3759,6 @@ 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 @@ -3585,6 +3810,9 @@ generatedFiles: - internal/provider/destination_teradata_data_source.go - internal/provider/destination_teradata_data_source_sdk.go - examples/data-sources/airbyte_destination_teradata/data-source.tf + - internal/provider/destination_timeplus_data_source.go + - internal/provider/destination_timeplus_data_source_sdk.go + - examples/data-sources/airbyte_destination_timeplus/data-source.tf - internal/provider/destination_typesense_data_source.go - internal/provider/destination_typesense_data_source_sdk.go - examples/data-sources/airbyte_destination_typesense/data-source.tf @@ -3603,6 +3831,9 @@ generatedFiles: - internal/provider/source_aha_data_source.go - internal/provider/source_aha_data_source_sdk.go - examples/data-sources/airbyte_source_aha/data-source.tf + - internal/provider/source_airbyte_data_source.go + - internal/provider/source_airbyte_data_source_sdk.go + - examples/data-sources/airbyte_source_airbyte/data-source.tf - internal/provider/source_aircall_data_source.go - internal/provider/source_aircall_data_source_sdk.go - examples/data-sources/airbyte_source_aircall/data-source.tf @@ -3645,6 +3876,9 @@ generatedFiles: - internal/provider/source_bamboohr_data_source.go - internal/provider/source_bamboohr_data_source_sdk.go - examples/data-sources/airbyte_source_bamboo_hr/data-source.tf + - internal/provider/source_basecamp_data_source.go + - internal/provider/source_basecamp_data_source_sdk.go + - examples/data-sources/airbyte_source_basecamp/data-source.tf - internal/provider/source_bigquery_data_source.go - internal/provider/source_bigquery_data_source_sdk.go - examples/data-sources/airbyte_source_bigquery/data-source.tf @@ -3657,6 +3891,12 @@ generatedFiles: - internal/provider/source_braze_data_source.go - internal/provider/source_braze_data_source_sdk.go - examples/data-sources/airbyte_source_braze/data-source.tf + - internal/provider/source_breezyhr_data_source.go + - internal/provider/source_breezyhr_data_source_sdk.go + - examples/data-sources/airbyte_source_breezy_hr/data-source.tf + - internal/provider/source_calendly_data_source.go + - internal/provider/source_calendly_data_source_sdk.go + - examples/data-sources/airbyte_source_calendly/data-source.tf - internal/provider/source_cart_data_source.go - internal/provider/source_cart_data_source_sdk.go - examples/data-sources/airbyte_source_cart/data-source.tf @@ -3666,6 +3906,9 @@ 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 @@ -3699,9 +3942,18 @@ 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_customerio_data_source.go + - internal/provider/source_customerio_data_source_sdk.go + - examples/data-sources/airbyte_source_customer_io/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 + - internal/provider/source_dbt_data_source.go + - internal/provider/source_dbt_data_source_sdk.go + - examples/data-sources/airbyte_source_dbt/data-source.tf - internal/provider/source_delighted_data_source.go - internal/provider/source_delighted_data_source_sdk.go - examples/data-sources/airbyte_source_delighted/data-source.tf @@ -3771,15 +4023,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 @@ -3804,9 +4056,18 @@ generatedFiles: - internal/provider/source_gridly_data_source.go - internal/provider/source_gridly_data_source_sdk.go - examples/data-sources/airbyte_source_gridly/data-source.tf + - internal/provider/source_hardcodedrecords_data_source.go + - internal/provider/source_hardcodedrecords_data_source_sdk.go + - examples/data-sources/airbyte_source_hardcoded_records/data-source.tf - internal/provider/source_harvest_data_source.go - internal/provider/source_harvest_data_source_sdk.go - examples/data-sources/airbyte_source_harvest/data-source.tf + - internal/provider/source_hibob_data_source.go + - internal/provider/source_hibob_data_source_sdk.go + - examples/data-sources/airbyte_source_hibob/data-source.tf + - internal/provider/source_highlevel_data_source.go + - internal/provider/source_highlevel_data_source_sdk.go + - examples/data-sources/airbyte_source_high_level/data-source.tf - internal/provider/source_hubplanner_data_source.go - internal/provider/source_hubplanner_data_source_sdk.go - examples/data-sources/airbyte_source_hubplanner/data-source.tf @@ -3849,6 +4110,9 @@ generatedFiles: - internal/provider/source_launchdarkly_data_source.go - internal/provider/source_launchdarkly_data_source_sdk.go - examples/data-sources/airbyte_source_launchdarkly/data-source.tf + - internal/provider/source_leadfeeder_data_source.go + - internal/provider/source_leadfeeder_data_source_sdk.go + - examples/data-sources/airbyte_source_leadfeeder/data-source.tf - internal/provider/source_lemlist_data_source.go - internal/provider/source_lemlist_data_source_sdk.go - examples/data-sources/airbyte_source_lemlist/data-source.tf @@ -3867,6 +4131,12 @@ generatedFiles: - internal/provider/source_lokalise_data_source.go - internal/provider/source_lokalise_data_source_sdk.go - examples/data-sources/airbyte_source_lokalise/data-source.tf + - internal/provider/source_looker_data_source.go + - internal/provider/source_looker_data_source_sdk.go + - examples/data-sources/airbyte_source_looker/data-source.tf + - internal/provider/source_luma_data_source.go + - internal/provider/source_luma_data_source_sdk.go + - examples/data-sources/airbyte_source_luma/data-source.tf - internal/provider/source_mailchimp_data_source.go - internal/provider/source_mailchimp_data_source_sdk.go - examples/data-sources/airbyte_source_mailchimp/data-source.tf @@ -3897,9 +4167,6 @@ generatedFiles: - internal/provider/source_monday_data_source.go - internal/provider/source_monday_data_source_sdk.go - examples/data-sources/airbyte_source_monday/data-source.tf - - internal/provider/source_mongodbinternalpoc_data_source.go - - internal/provider/source_mongodbinternalpoc_data_source_sdk.go - - examples/data-sources/airbyte_source_mongodb_internal_poc/data-source.tf - internal/provider/source_mongodbv2_data_source.go - internal/provider/source_mongodbv2_data_source_sdk.go - examples/data-sources/airbyte_source_mongodb_v2/data-source.tf @@ -3915,6 +4182,9 @@ generatedFiles: - internal/provider/source_netsuite_data_source.go - internal/provider/source_netsuite_data_source_sdk.go - examples/data-sources/airbyte_source_netsuite/data-source.tf + - internal/provider/source_northpasslms_data_source.go + - internal/provider/source_northpasslms_data_source_sdk.go + - examples/data-sources/airbyte_source_northpass_lms/data-source.tf - internal/provider/source_notion_data_source.go - internal/provider/source_notion_data_source_sdk.go - examples/data-sources/airbyte_source_notion/data-source.tf @@ -3954,6 +4224,9 @@ generatedFiles: - internal/provider/source_pendo_data_source.go - internal/provider/source_pendo_data_source_sdk.go - examples/data-sources/airbyte_source_pendo/data-source.tf + - internal/provider/source_pennylane_data_source.go + - internal/provider/source_pennylane_data_source_sdk.go + - examples/data-sources/airbyte_source_pennylane/data-source.tf - internal/provider/source_persistiq_data_source.go - internal/provider/source_persistiq_data_source_sdk.go - examples/data-sources/airbyte_source_persistiq/data-source.tf @@ -3966,6 +4239,9 @@ generatedFiles: - internal/provider/source_pipedrive_data_source.go - internal/provider/source_pipedrive_data_source_sdk.go - examples/data-sources/airbyte_source_pipedrive/data-source.tf + - internal/provider/source_planhat_data_source.go + - internal/provider/source_planhat_data_source_sdk.go + - examples/data-sources/airbyte_source_planhat/data-source.tf - internal/provider/source_pocket_data_source.go - internal/provider/source_pocket_data_source_sdk.go - examples/data-sources/airbyte_source_pocket/data-source.tf @@ -3987,9 +4263,6 @@ 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 @@ -4011,6 +4284,9 @@ generatedFiles: - internal/provider/source_recurly_data_source.go - internal/provider/source_recurly_data_source_sdk.go - examples/data-sources/airbyte_source_recurly/data-source.tf + - internal/provider/source_reddit_data_source.go + - internal/provider/source_reddit_data_source_sdk.go + - examples/data-sources/airbyte_source_reddit/data-source.tf - internal/provider/source_redshift_data_source.go - internal/provider/source_redshift_data_source_sdk.go - examples/data-sources/airbyte_source_redshift/data-source.tf @@ -4035,6 +4311,12 @@ generatedFiles: - internal/provider/source_sapfieldglass_data_source.go - internal/provider/source_sapfieldglass_data_source_sdk.go - examples/data-sources/airbyte_source_sap_fieldglass/data-source.tf + - internal/provider/source_savvycal_data_source.go + - internal/provider/source_savvycal_data_source_sdk.go + - examples/data-sources/airbyte_source_savvycal/data-source.tf + - internal/provider/source_scryfall_data_source.go + - internal/provider/source_scryfall_data_source_sdk.go + - examples/data-sources/airbyte_source_scryfall/data-source.tf - internal/provider/source_secoda_data_source.go - internal/provider/source_secoda_data_source_sdk.go - examples/data-sources/airbyte_source_secoda/data-source.tf @@ -4189,3 +4471,12797 @@ generatedFiles: - internal/provider/workspace_data_source_sdk.go - examples/data-sources/airbyte_workspace/data-source.tf - .gitattributes +examples: + cancelJob: + speakeasy-default-cancel-job: + parameters: + path: + jobId: 801771 + responses: + "200": + application/json: + connectionId: + duration: PT8H6M12S + jobId: 439621 + jobType: sync + startTime: "2023-03-25T01:30:50Z" + status: running + createConnection: + Connection Creation Request Example: + requestBody: + application/json: + destinationId: e478de0d-a3a0-475c-b019-25f7dd29e281 + name: Postgres-to-Bigquery + namespaceFormat: ${SOURCE_NAMESPACE} + sourceId: 95e66a59-8045-4307-9678-63bc3c9b8c93 + responses: + "200": + application/json: + connectionId: + destinationId: + name: + schedule: + scheduleType: basic + sourceId: + status: deprecated + workspaceId: + Connection Creation Response Example: + requestBody: + application/json: + destinationId: c669dd1e-3620-483e-afc8-55914e0a570f + namespaceFormat: ${SOURCE_NAMESPACE} + sourceId: 6dd427d8-3a55-4584-b835-842325b6c7b3 + responses: + "200": + application/json: + connectionId: 9924bcd0-99be-453d-ba47-c2c9766f7da5 + destinationId: + name: + schedule: + scheduleType: manual + sourceId: + status: deprecated + workspaceId: + createDestination: + Destination Creation Request Example: + requestBody: + application/json: + configuration: + airbyte_destination_name: postgres + database: postgres + host: localhost + password: test + port: 5432 + schema: public + ssl_mode: + mode: prefer + tunnel_method: + tunnel_method: NO_TUNNEL + username: postgres + name: Postgres + workspaceId: 2155ae5a-de39-4808-af6a-16fe7b8b4ed2 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + Destination Creation Response Example: + requestBody: + application/json: + configuration: + user: charles + name: + workspaceId: 8360860a-d46e-48e6-af62-08e5ba5019ef + responses: + "200": + application/json: + configuration: + user: charles + destinationId: af0c3c67-aa61-419f-8922-95b0bf840e86 + destinationType: + name: + workspaceId: + createDestinationAstra: + speakeasy-default-create-destination-astra: + requestBody: + application/json: + configuration: + embedding: + openai_key: + indexing: + astra_db_app_token: + astra_db_endpoint: https://8292d414-dd1b-4c33-8431-e838bedc04f7-us-east1.apps.astra.datastax.com + astra_db_keyspace: + collection: + processing: + chunk_size: 718347 + metadata_fields: + - user.name + text_fields: + - users.*.name + name: + workspaceId: 99c3e134-820e-482b-bdbf-c6d7ed1313bb + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationAwsDatalake: + speakeasy-default-create-destination-aws-datalake: + requestBody: + application/json: + configuration: + aws_account_id: "111111111111" + bucket_name: + credentials: + role_arn: + lakeformation_database_default_tag_key: pii_level + lakeformation_database_default_tag_values: private,public + lakeformation_database_name: + name: + workspaceId: f6063b04-eb7e-4673-b736-7cce4f0265ac + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationAzureBlobStorage: + speakeasy-default-create-destination-azure-blob-storage: + requestBody: + application/json: + configuration: + azure_blob_storage_account_key: Z8ZkZpteggFx394vm+PJHnGTvdRncaYS+JhLKdj789YNmD+iyGTnG+PV+POiuYNhBg/ACS+LKjd%4FG3FHGN12Nd== + azure_blob_storage_account_name: airbyte5storage + azure_blob_storage_container_name: airbytetescontainername + azure_blob_storage_endpoint_domain_name: blob.core.windows.net + azure_blob_storage_output_buffer_size: 5 + azure_blob_storage_spill_size: 500 + name: + workspaceId: 5cb4a6f1-b519-4bde-915d-e1a468c10346 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationBigquery: + speakeasy-default-create-destination-bigquery: + requestBody: + application/json: + configuration: + big_query_client_buffer_size_mb: "15" + dataset_id: + dataset_location: asia-south1 + loading_method: + credential: + hmac_key_access_id: 1234567890abcdefghij1234 + hmac_key_secret: 1234567890abcdefghij1234567890ABCDEFGHIJ + gcs_bucket_name: airbyte_sync + gcs_bucket_path: data_sync/test + project_id: + name: + workspaceId: 3d2f772d-72af-4a9c-8c00-80e9e893dc3d + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationClickhouse: + speakeasy-default-create-destination-clickhouse: + requestBody: + application/json: + configuration: + database: + host: treasured-magnet.com + port: "8123" + username: Stephania80 + name: + workspaceId: 793d9adb-6acb-4d0d-9937-77598f451c76 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationConvex: + speakeasy-default-create-destination-convex: + requestBody: + application/json: + configuration: + access_key: + deployment_url: https://murky-swan-635.convex.cloud + name: + workspaceId: f2bda458-b5ce-4682-9ffe-bcf24fc8991e + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationCustom: + speakeasy-default-create-destination-custom: + requestBody: + application/json: + configuration: + user: charles + name: + workspaceId: 5537a8d0-c526-460a-93da-f89d2e01f2ff + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationDatabricks: + speakeasy-default-create-destination-databricks: + requestBody: + application/json: + configuration: + authentication: + client_id: + secret: + database: + hostname: abc-12345678-wxyz.cloud.databricks.com + http_path: sql/1.0/warehouses/0000-1111111-abcd90 + port: "443" + schema: default + name: + workspaceId: 9732b6f9-46a7-4f9e-a62d-1b911c498b75 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationDevNull: + speakeasy-default-create-destination-dev-null: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationDuckdb: + speakeasy-default-create-destination-duckdb: + requestBody: + application/json: + configuration: + destination_path: 'md:' + schema: main + name: + workspaceId: ec345322-3983-40a5-9a80-b44f3c74c3cb + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationDynamodb: + speakeasy-default-create-destination-dynamodb: + requestBody: + application/json: + configuration: + access_key_id: A012345678910EXAMPLE + dynamodb_endpoint: http://localhost:9000 + dynamodb_table_name_prefix: airbyte_sync + secret_access_key: a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY + name: + workspaceId: eba47218-4f49-462d-a8d4-7ceca318d55d + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationElasticsearch: + speakeasy-default-create-destination-elasticsearch: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationFirebolt: + speakeasy-default-create-destination-firebolt: + requestBody: + application/json: + configuration: + account: "01824076" + client_id: bbl9qth066hmxkwyb0hy2iwk8ktez9dz + client_secret: + database: + engine: + host: api.app.firebolt.io + name: + workspaceId: 243853a0-afd2-44f4-85ef-e5d108c038da + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationFirestore: + speakeasy-default-create-destination-firestore: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationGcs: + speakeasy-default-create-destination-gcs: + requestBody: + application/json: + configuration: + credential: + hmac_key_access_id: 1234567890abcdefghij1234 + hmac_key_secret: 1234567890abcdefghij1234567890ABCDEFGHIJ + gcs_bucket_name: airbyte_sync + gcs_bucket_path: data_sync/test + name: + workspaceId: b33823cd-97d6-410c-88d0-9a14c06a9304 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationGoogleSheets: + speakeasy-default-create-destination-google-sheets: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + refresh_token: + spreadsheet_id: https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit + name: + workspaceId: 8fa6e013-caac-4067-b676-70032b14126e + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationMilvus: + speakeasy-default-create-destination-milvus: + requestBody: + application/json: + configuration: + embedding: + api_base: https://your-resource-name.openai.azure.com + deployment: your-resource-name + openai_key: + indexing: + auth: + password: Ez8LCTORZrKwNe6 + username: Kathlyn.Bergstrom23 + collection: + host: tcp://host.docker.internal:19530 + processing: + chunk_size: 559424 + metadata_fields: + - user.name + text_fields: + - user.name + name: + workspaceId: 0c438c16-b8bd-4210-a2f2-f929b7bcff73 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationMongodb: + speakeasy-default-create-destination-mongodb: + requestBody: + application/json: + configuration: + auth_type: + password: 4BlFffn4LDm2o2l + username: Abdullah_Dooley99 + database: + instance_type: + cluster_url: + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + name: + workspaceId: 0bebdac5-ed6c-4ef2-8e3d-79d24784681f + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationMssql: + speakeasy-default-create-destination-mssql: + requestBody: + application/json: + configuration: + database: + host: crooked-recording.com + port: "1433" + schema: public + username: Tito82 + name: + workspaceId: 6666872c-b7c7-4990-b681-2cc3645d16b9 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationMysql: + speakeasy-default-create-destination-mysql: + requestBody: + application/json: + configuration: + database: + host: monstrous-washtub.name + port: "3306" + username: Lemuel.Kessler + name: + workspaceId: 5b3b5d12-fc08-44cd-933a-3eccd725c67c + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationOracle: + speakeasy-default-create-destination-oracle: + requestBody: + application/json: + configuration: + host: vacant-backburn.org + port: "1521" + schema: airbyte + sid: + username: Sallie_Howell76 + name: + workspaceId: 374f175d-2128-496a-b1ac-2a51a5781391 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationPinecone: + speakeasy-default-create-destination-pinecone: + requestBody: + application/json: + configuration: + embedding: + openai_key: + indexing: + index: + pinecone_environment: us-west1-gcp + pinecone_key: + processing: + chunk_size: 157015 + metadata_fields: + - user + text_fields: + - users.*.name + name: + workspaceId: ffde04a4-b2be-4260-a8ee-a576682c5f78 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationPostgres: + speakeasy-default-create-destination-postgres: + requestBody: + application/json: + configuration: + database: + host: marvelous-clip.biz + port: "5432" + schema: public + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: + username: Logan.Volkman + name: + workspaceId: 090d9129-15fe-499e-994e-0796cd543a2d + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationPubsub: + speakeasy-default-create-destination-pubsub: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationQdrant: + speakeasy-default-create-destination-qdrant: + requestBody: + application/json: + configuration: + embedding: + api_base: https://your-resource-name.openai.azure.com + deployment: your-resource-name + openai_key: + indexing: + collection: + url: https://raw-calf.info + processing: + chunk_size: 371988 + metadata_fields: + - age + text_fields: + - user.name + name: + workspaceId: 139a8945-5553-41c4-9434-97d1ba7e6905 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationRedis: + speakeasy-default-create-destination-redis: + requestBody: + application/json: + configuration: + host: localhost,127.0.0.1 + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + username: Jaime_Ryan + name: + workspaceId: 5d96bd54-e566-461c-b0cc-11345bf28a41 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationRedshift: + speakeasy-default-create-destination-redshift: + requestBody: + application/json: + configuration: + database: + host: happy-glance.name + password: Cr3Ulh9_WxbXmse + port: "5439" + schema: public + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: + uploading_method: + access_key_id: + file_name_pattern: '{date}' + s3_bucket_name: airbyte.staging + s3_bucket_path: data_sync/test + secret_access_key: + username: Sam10 + name: + workspaceId: bea44e14-8345-4154-aa66-35429d6e642a + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationS3: + speakeasy-default-create-destination-s3: + requestBody: + application/json: + configuration: + access_key_id: A012345678910EXAMPLE + file_name_pattern: '{timestamp}' + role_arn: arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId + s3_bucket_name: airbyte_sync + s3_bucket_path: data_sync/test + s3_endpoint: http://localhost:9000 + s3_path_format: ${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_ + secret_access_key: a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY + name: + workspaceId: bcf1d695-9591-4945-a89a-89c02d01890b + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationS3Glue: + speakeasy-default-create-destination-s3-glue: + requestBody: + application/json: + configuration: + access_key_id: A012345678910EXAMPLE + file_name_pattern: '{part_number}' + glue_database: airbyte_database + s3_bucket_name: airbyte_sync + s3_bucket_path: data_sync/test + s3_endpoint: http://localhost:9000 + s3_path_format: ${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_ + secret_access_key: a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY + name: + workspaceId: 0679569d-abde-42af-85ea-5fdfa2916b11 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationSftpJson: + speakeasy-default-create-destination-sftp-json: + requestBody: + application/json: + configuration: + destination_path: /json_data + host: whirlwind-propaganda.com + password: 51Fra2zjxcZfWHO + port: 22 + username: Curtis58 + name: + workspaceId: 0dbc7892-ab83-4cbe-968b-4fa977d8a1dd + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationSnowflake: + speakeasy-default-create-destination-snowflake: + requestBody: + application/json: + configuration: + database: AIRBYTE_DATABASE + host: accountname.snowflakecomputing.com + role: AIRBYTE_ROLE + schema: AIRBYTE_SCHEMA + username: AIRBYTE_USER + warehouse: AIRBYTE_WAREHOUSE + name: + workspaceId: 8972c773-7793-4958-91ff-53a2e9880c37 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationSnowflakeCortex: + speakeasy-default-create-destination-snowflake-cortex: + requestBody: + application/json: + configuration: + indexing: + credentials: + password: AIRBYTE_PASSWORD + database: AIRBYTE_DATABASE + default_schema: AIRBYTE_SCHEMA + host: AIRBYTE_ACCOUNT + role: AIRBYTE_ROLE + username: AIRBYTE_USER + warehouse: AIRBYTE_WAREHOUSE + processing: + chunk_size: 938233 + metadata_fields: + - user.name + text_fields: + - user.name + name: + workspaceId: e93e8e0a-a95b-4c2d-9598-adc993774a38 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationTeradata: + speakeasy-default-create-destination-teradata: + requestBody: + application/json: + configuration: + host: fearful-jute.biz + schema: airbyte_td + username: Cordie.Grimes + name: + workspaceId: 4eda12d2-5bb7-4304-97a4-2f778f9caed3 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationTimeplus: + speakeasy-default-create-destination-timeplus: + requestBody: + application/json: + configuration: + apikey: + endpoint: https://us-west-2.timeplus.cloud/workspace_id + name: + workspaceId: d5f4eec6-8cfd-4280-b89a-ea2f7d318c98 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationTypesense: + speakeasy-default-create-destination-typesense: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationVectara: + speakeasy-default-create-destination-vectara: + requestBody: + application/json: + configuration: + corpus_name: + customer_id: + metadata_fields: + - user + oauth2: + client_id: + client_secret: + text_fields: + - user.name + title_field: document_key + name: + workspaceId: 15c25f0c-7b92-47cd-b614-10842b8bb72c + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationWeaviate: + speakeasy-default-create-destination-weaviate: + requestBody: + application/json: + configuration: + indexing: + additional_headers: + - header_key: X-OpenAI-Api-Key + value: my-openai-api-key + auth: + password: 9VAgM7DKRQUyfWE + username: Lincoln.Volkman + host: https://my-cluster.weaviate.network + processing: + chunk_size: 160364 + metadata_fields: + - age + text_fields: + - users.*.name + name: + workspaceId: 5da679ef-59fe-4d2b-b57b-7d122bf9dd1c + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationYellowbrick: + speakeasy-default-create-destination-yellowbrick: + requestBody: + application/json: + configuration: + database: + host: alienated-breadfruit.com + port: "5432" + schema: public + username: Elizabeth.Botsford + name: + workspaceId: fc1d7873-acb8-4741-b954-1e419922cd77 + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createJob: + Job Creation Request Example: + requestBody: + application/json: + connectionId: e735894a-e773-4938-969f-45f53957b75b + jobType: sync + responses: + "200": + application/json: + connectionId: + duration: PT8H6M12S + jobId: 300546 + jobType: sync + startTime: "2023-03-25T01:30:50Z" + status: running + Job Creation Response Example: + requestBody: + application/json: + connectionId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + jobType: sync + responses: + "200": + application/json: + connectionId: + jobId: 1234 + jobType: sync + startTime: + status: running + createOrUpdateWorkspaceOAuthCredentials: + speakeasy-default-create-or-update-workspace-O-auth-credentials: + parameters: + path: + workspaceId: + requestBody: + application/json: + actorType: destination + name: + createPermission: + Permission Creation Request Example: + requestBody: + application/json: + permissionType: workspace_admin + userId: 7d08fd6c-531e-4a00-937e-3d355f253e63 + workspaceId: 9924bcd0-99be-453d-ba47-c2c9766f7da5 + responses: + "200": + application/json: + permissionId: 756578e3-7923-4546-a65e-816c2e1a3118 + permissionType: organization_admin + userId: 241c67da-1418-479b-a3b1-0769c70bc115 + Permission Creation Response Example: + requestBody: + application/json: + permissionType: organization_editor + userId: 297cb6ba-4669-43f1-b750-c800e1a1986b + responses: + "200": + application/json: + permissionId: 9924bcd0-99be-453d-ba47-c2c9766f7da5 + permissionType: workspace_admin + userId: 7d08fd6c-531e-4a00-937e-3d355f253e63 + createSource: + Source Creation Request Example: + requestBody: + application/json: + configuration: + airbyte_source_name: google-ads + conversion_window_days: 14 + customer_id: "1234567890" + end_date: 1704067200000 + start_date: 1672531200000 + name: My Source + workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + Source Creation Response Example: + requestBody: + application/json: + configuration: + user: charles + name: + workspaceId: a2cf0f31-f3dd-4c98-88c3-4bdfb109056a + responses: + "200": + application/json: + configuration: + user: charles + name: + sourceId: 0c31738c-0b2d-4887-b506-e2cd1c39cc35 + sourceType: + workspaceId: + createSourceAha: + speakeasy-default-create-source-aha: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAirbyte: + speakeasy-default-create-source-airbyte: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAircall: + speakeasy-default-create-source-aircall: + requestBody: + application/json: + configuration: + api_id: + api_token: + start_date: "2022-03-01T00:00:00.000Z" + name: + workspaceId: e4ace448-0a0d-41eb-8d59-3e9ddea42cf1 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAirtable: + speakeasy-default-create-source-airtable: + requestBody: + application/json: + configuration: + credentials: + api_key: key1234567890 + name: + workspaceId: f971d1f4-a57a-4bed-a81c-81cc6ca683a2 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAmazonAds: + speakeasy-default-create-source-amazon-ads: + requestBody: + application/json: + configuration: + client_id: + client_secret: + look_back_window: 10 + refresh_token: + start_date: "2022-10-10" + name: + workspaceId: bb0de0c1-ea7a-4c14-b003-3c1a293b2e87 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAmazonSellerPartner: + speakeasy-default-create-source-amazon-seller-partner: + requestBody: + application/json: + configuration: + lwa_app_id: + lwa_client_secret: + refresh_token: + replication_end_date: "2017-01-25T00:00:00Z" + replication_start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: f1562524-dcf4-4936-86c2-70a2013659fd + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAmazonSqs: + speakeasy-default-create-source-amazon-sqs: + requestBody: + application/json: + configuration: + access_key: xxxxxHRNxxx3TBxxxxxx + attributes_to_return: attr1,attr2 + max_batch_size: "5" + max_wait_time: "5" + queue_url: https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue + region: ap-northeast-2 + secret_key: hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz + visibility_timeout: "15" + name: + workspaceId: 4bc18a30-e98d-4521-8273-93728d7ec6e4 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAmplitude: + speakeasy-default-create-source-amplitude: + requestBody: + application/json: + configuration: + api_key: + secret_key: + start_date: "2021-01-25T00:00:00Z" + name: + workspaceId: 3ee13542-7c1c-424a-af6a-c23e77d398ac + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceApifyDataset: + speakeasy-default-create-source-apify-dataset: + requestBody: + application/json: + configuration: + dataset_id: rHuMdwm6xCFt6WiGU + token: apify_api_PbVwb1cBbuvbfg2jRmAIHZKgx3NQyfEMG7uk + name: + workspaceId: eced8f4f-8bde-46ba-bb81-e69039ce74a6 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAppfollow: + speakeasy-default-create-source-appfollow: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAsana: + speakeasy-default-create-source-asana: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAuth0: + speakeasy-default-create-source-auth0: + requestBody: + application/json: + configuration: + base_url: https://dev-yourOrg.us.auth0.com/ + credentials: + access_token: + start_date: "2023-08-05T00:43:59.244Z" + name: + workspaceId: d41792f1-e3d3-4a51-a951-80baf3f0c8bc + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAwsCloudtrail: + speakeasy-default-create-source-aws-cloudtrail: + requestBody: + application/json: + configuration: + aws_key_id: + aws_secret_key: + lookup_attributes_filter: + attribute_key: EventName + attribute_value: ConsoleLogin + start_date: "2021-01-01" + name: + workspaceId: b0fbfe6f-2b55-4734-988c-cf72a7d9366b + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAzureBlobStorage: + speakeasy-default-create-source-azure-blob-storage: + requestBody: + application/json: + configuration: + azure_blob_storage_account_name: airbyte5storage + azure_blob_storage_container_name: airbytetescontainername + azure_blob_storage_endpoint: blob.core.windows.net + credentials: + client_id: + client_secret: + refresh_token: + tenant_id: + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: 4e23eeec-a5b2-4e13-8b0c-3775ea8669e2 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAzureTable: + speakeasy-default-create-source-azure-table: + requestBody: + application/json: + configuration: + storage_access_key: + storage_account_name: + storage_endpoint_suffix: core.windows.net + name: + workspaceId: 1f3bd7f8-dfc9-4686-886d-482ce0a7f76b + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBambooHr: + speakeasy-default-create-source-bamboo-hr: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBasecamp: + speakeasy-default-create-source-basecamp: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBigquery: + speakeasy-default-create-source-bigquery: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBingAds: + speakeasy-default-create-source-bing-ads: + requestBody: + application/json: + configuration: + client_id: + custom_reports: [] + developer_token: + refresh_token: + name: + workspaceId: cf7fe8bd-4e80-4aad-936a-c4048fe4e9bb + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBraintree: + speakeasy-default-create-source-braintree: + requestBody: + application/json: + configuration: + environment: Production + merchant_id: + private_key: + public_key: + start_date: "2020-12-30" + name: + workspaceId: 6d8fdc5d-2ccf-4696-81b2-3531a9aa1f4c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBraze: + speakeasy-default-create-source-braze: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBreezyHr: + speakeasy-default-create-source-breezy-hr: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCalendly: + speakeasy-default-create-source-calendly: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCart: + speakeasy-default-create-source-cart: + requestBody: + application/json: + configuration: + start_date: "2021-01-01T00:00:00Z" + name: + workspaceId: aa5d43bd-455c-4919-92d8-b41ca8ffc71b + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceChargebee: + speakeasy-default-create-source-chargebee: + requestBody: + application/json: + configuration: + site: airbyte-test + site_api_key: + start_date: "2021-01-25T00:00:00Z" + name: + workspaceId: 2d28977a-9e3f-4cc3-b113-844be26fa8c9 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceChartmogul: + speakeasy-default-create-source-chartmogul: + requestBody: + application/json: + configuration: + api_key: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: e8ba6626-7ce4-4219-9118-73880ec47ed2 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceClazar: + speakeasy-default-create-source-clazar: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceClickhouse: + speakeasy-default-create-source-clickhouse: + requestBody: + application/json: + configuration: + database: default + host: scented-slipper.org + port: "8123" + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: + username: Fern18 + name: + workspaceId: a5d02332-c55c-4f50-a97d-78fc5b3630b6 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceClickupApi: + speakeasy-default-create-source-clickup-api: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceClockify: + speakeasy-default-create-source-clockify: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCloseCom: + speakeasy-default-create-source-close-com: + requestBody: + application/json: + configuration: + api_key: + start_date: "2021-01-01" + name: + workspaceId: 132c91ec-9730-4ba8-b5cb-ccee274951cf + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCoda: + speakeasy-default-create-source-coda: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCoinApi: + speakeasy-default-create-source-coin-api: + requestBody: + application/json: + configuration: + api_key: + end_date: 2019-01-01T00:00:00 + period: 2MTH + start_date: 2019-01-01T00:00:00 + symbol_id: + name: + workspaceId: d4646b97-5c02-407e-bda2-847fb891489d + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCoinmarketcap: + speakeasy-default-create-source-coinmarketcap: + requestBody: + application/json: + configuration: + api_key: + data_type: historical + symbols: + - AVAX + name: + workspaceId: b954b4d2-815c-4f51-a61e-2976c7114b9e + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceConfigcat: + speakeasy-default-create-source-configcat: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceConfluence: + speakeasy-default-create-source-confluence: + requestBody: + application/json: + configuration: + api_token: + domain_name: partial-tofu.com + email: abc@example.com + name: + workspaceId: bb40fe91-bec3-4ace-888c-adca54fb612e + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceConvex: + speakeasy-default-create-source-convex: + requestBody: + application/json: + configuration: + access_key: + deployment_url: https://murky-swan-635.convex.cloud + name: + workspaceId: 95326235-2c32-4dbe-afc8-31fd9d72946c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCustom: + speakeasy-default-create-source-custom: + requestBody: + application/json: + configuration: + user: charles + name: + workspaceId: fdc0ec45-ecfd-41ed-8b6c-9e12548e2ad5 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCustomerIo: + speakeasy-default-create-source-customer-io: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceDatadog: + speakeasy-default-create-source-datadog: + requestBody: + application/json: + configuration: + api_key: + application_key: + end_date: "2022-10-01T00:00:00Z" + start_date: "2022-10-01T00:00:00Z" + name: + workspaceId: f2576446-823f-43f4-80ed-60b40feb79f9 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceDatascope: + speakeasy-default-create-source-datascope: + requestBody: + application/json: + configuration: + api_key: + start_date: dd/mm/YYYY HH:MM + name: + workspaceId: bd28951c-d786-47f9-b6b8-ff7619149805 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceDbt: + speakeasy-default-create-source-dbt: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceDelighted: + speakeasy-default-create-source-delighted: + requestBody: + application/json: + configuration: + api_key: + since: "2022-05-30T04:50:23Z" + name: + workspaceId: 9b11f0d8-4234-4ca4-a495-7c89b8c9e67e + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceDixa: + speakeasy-default-create-source-dixa: + requestBody: + application/json: + configuration: + api_token: + batch_size: 1 + start_date: YYYY-MM-DD + name: + workspaceId: b56a27e7-41b8-473e-892b-19c9aa03522e + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceDockerhub: + speakeasy-default-create-source-dockerhub: + requestBody: + application/json: + configuration: + docker_username: airbyte + name: + workspaceId: 1c24c28f-0500-4ca7-a51f-a1dc7dff7241 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceDremio: + speakeasy-default-create-source-dremio: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceDynamodb: + speakeasy-default-create-source-dynamodb: + requestBody: + application/json: + configuration: + endpoint: https://{aws_dynamo_db_url}.com + reserved_attribute_names: name, field_name, field-name + name: + workspaceId: fbd0c41f-bef8-4978-bcb7-c92455dd210f + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceEmailoctopus: + speakeasy-default-create-source-emailoctopus: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceExchangeRates: + speakeasy-default-create-source-exchange-rates: + requestBody: + application/json: + configuration: + access_key: + base: USD + start_date: YYYY-MM-DD + name: + workspaceId: 3d50e5bb-0a27-4f69-80a3-64047e6aba40 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFacebookMarketing: + speakeasy-default-create-source-facebook-marketing: + requestBody: + application/json: + configuration: + account_ids: + - "111111111111111" + credentials: + client_id: + client_secret: + custom_insights: [] + end_date: "2017-01-26T00:00:00Z" + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 04c2b9eb-0b46-4d41-8ced-013864aabaa8 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFaker: + speakeasy-default-create-source-faker: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFauna: + speakeasy-default-create-source-fauna: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFile: + speakeasy-default-create-source-file: + requestBody: + application/json: + configuration: + dataset_name: + reader_options: '{"sep": " "}' + url: gs://my-google-bucket/data.csv + name: + workspaceId: 621fc4a1-2d89-4332-9fd6-49c181e147f8 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFirebolt: + speakeasy-default-create-source-firebolt: + requestBody: + application/json: + configuration: + account: "02698618" + client_id: bbl9qth066hmxkwyb0hy2iwk8ktez9dz + client_secret: + database: + engine: + host: api.app.firebolt.io + name: + workspaceId: 21b84b6c-3eef-479c-9cfe-94a9ce9270b8 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFleetio: + speakeasy-default-create-source-fleetio: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFreshcaller: + speakeasy-default-create-source-freshcaller: + requestBody: + application/json: + configuration: + api_key: + domain: snaptravel + start_date: "2022-01-01T12:00:00Z" + name: + workspaceId: 64860288-a6e7-4cac-8e78-851b70bcfb6a + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFreshdesk: + speakeasy-default-create-source-freshdesk: + requestBody: + application/json: + configuration: + api_key: + domain: myaccount.freshdesk.com + start_date: "2020-12-01T00:00:00Z" + name: + workspaceId: 0fd23b72-7a45-4d40-8c8c-5c50ae73d2ea + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFreshsales: + speakeasy-default-create-source-freshsales: + requestBody: + application/json: + configuration: + api_key: + domain_name: mydomain.myfreshworks.com + name: + workspaceId: f2fd4f94-84f2-48b6-9f42-043bb7e57a39 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGainsightPx: + speakeasy-default-create-source-gainsight-px: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGcs: + speakeasy-default-create-source-gcs: + requestBody: + application/json: + configuration: + bucket: + service_account: + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: dd98ead6-ed8f-43a2-b286-fd7a61b8d40e + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGetlago: + speakeasy-default-create-source-getlago: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGithub: + speakeasy-default-create-source-github: + requestBody: + application/json: + configuration: + api_url: https://github.company.org + branch: airbytehq/airbyte/master airbytehq/airbyte/my-branch + branches: + - airbytehq/airbyte/my-branch + credentials: + personal_access_token: + max_waiting_time: 60 + repositories: + - airbytehq/airbyte + repository: airbytehq/airbyte + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: 7a3aab5f-c9ac-452f-a58d-c99d547ac9c0 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGitlab: + speakeasy-default-create-source-gitlab: + requestBody: + application/json: + configuration: + api_url: gitlab.com + credentials: + access_token: + groups: airbyte.io + groups_list: + - airbyte.io + projects: airbyte.io/documentation + projects_list: + - airbyte.io/documentation + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: 242a6c51-deb7-4eea-b06e-7d33859ed786 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGlassfrog: + speakeasy-default-create-source-glassfrog: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGnews: + speakeasy-default-create-source-gnews: + requestBody: + application/json: + configuration: + api_key: + end_date: "2022-08-21 16:27:09" + query: Apple OR Microsoft + start_date: "2022-08-21 16:27:09" + top_headlines_query: Apple OR Microsoft + name: + workspaceId: 1bad6b8b-4eb7-4444-ad5b-37cc3026054c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGoldcast: + speakeasy-default-create-source-goldcast: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGoogleAds: + speakeasy-default-create-source-google-ads: + requestBody: + application/json: + configuration: + conversion_window_days: 14 + credentials: + client_id: + client_secret: + developer_token: + refresh_token: + custom_queries_array: [] + customer_id: 6783948572,5839201945 + end_date: "2017-01-30" + start_date: "2017-01-25" + name: + workspaceId: 48b3deea-7937-432e-97a7-442214ae326c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGoogleAnalyticsDataApi: + speakeasy-default-create-source-google-analytics-data-api: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + refresh_token: + custom_reports_array: [] + date_ranges_start_date: "2021-01-01" + lookback_window: 2 + property_ids: + - "1738294" + - "5729978930" + window_in_days: 120 + name: + workspaceId: dbf3b8ed-1c89-4fd7-91ae-9fcb24c6ad4a + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGoogleDirectory: + speakeasy-default-create-source-google-directory: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGoogleDrive: + speakeasy-default-create-source-google-drive: + requestBody: + application/json: + configuration: + credentials: + service_account_info: + folder_url: https://drive.google.com/drive/folders/1Xaz0vXXXX2enKnNYU5qSt9NS70gvMyYn + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: 534b2af3-1661-45a5-a9b6-599a7df3a8b1 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGooglePagespeedInsights: + speakeasy-default-create-source-google-pagespeed-insights: + requestBody: + application/json: + configuration: + categories: [] + strategies: [] + urls: + - https://example.com + name: + workspaceId: 2942e6ee-7d0e-4e92-b3b1-34fe29105160 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGoogleSearchConsole: + speakeasy-default-create-source-google-search-console: + requestBody: + application/json: + configuration: + authorization: + client_id: + client_secret: + refresh_token: + data_state: final + end_date: "2021-12-12" + site_urls: + - sc-domain:example2.com + name: + workspaceId: c2a5437b-5ad8-4b58-90d2-0822b9282a7c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGoogleSheets: + speakeasy-default-create-source-google-sheets: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + refresh_token: + spreadsheet_id: https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit + name: + workspaceId: d3a17e42-90ac-41d8-ae87-7cba148de948 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGoogleWebfonts: + speakeasy-default-create-source-google-webfonts: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGreenhouse: + speakeasy-default-create-source-greenhouse: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGridly: + speakeasy-default-create-source-gridly: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceHardcodedRecords: + speakeasy-default-create-source-hardcoded-records: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceHarvest: + speakeasy-default-create-source-harvest: + requestBody: + application/json: + configuration: + account_id: + replication_end_date: "2017-01-25T00:00:00Z" + replication_start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 977d000d-9836-4254-a340-61a5fe05aea6 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceHibob: + speakeasy-default-create-source-hibob: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceHighLevel: + speakeasy-default-create-source-high-level: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceHubplanner: + speakeasy-default-create-source-hubplanner: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceHubspot: + speakeasy-default-create-source-hubspot: + requestBody: + application/json: + configuration: + credentials: + access_token: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 4599dab2-0dc5-4fbd-8cb0-e8c40521bd07 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceInsightly: + speakeasy-default-create-source-insightly: + requestBody: + application/json: + configuration: + start_date: "2021-03-01T00:00:00Z" + token: + name: + workspaceId: 09dd799b-3c49-4f5d-a455-46a2a93e42c9 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceInstagram: + speakeasy-default-create-source-instagram: + requestBody: + application/json: + configuration: + access_token: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 907bba4b-5689-4ced-8d54-cb5b4af40e32 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceInstatus: + speakeasy-default-create-source-instatus: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceIntercom: + speakeasy-default-create-source-intercom: + requestBody: + application/json: + configuration: + access_token: + activity_logs_time_step: 5 + start_date: "2020-11-16T00:00:00Z" + name: + workspaceId: ca218bf0-6819-4e64-bb31-f1642fd66103 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceIp2whois: + speakeasy-default-create-source-ip2whois: + requestBody: + application/json: + configuration: + domain: www.facebook.com + name: + workspaceId: 0334a651-9d6d-4913-ada7-55aabb893f9a + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceIterable: + speakeasy-default-create-source-iterable: + requestBody: + application/json: + configuration: + api_key: + start_date: "2021-04-01T00:00:00Z" + name: + workspaceId: 188de373-af0c-4e46-aed5-2a9fc3bff36a + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceJira: + speakeasy-default-create-source-jira: + requestBody: + application/json: + configuration: + api_token: + domain: .atlassian.net + email: Payton_Miller@yahoo.com + lookback_window_minutes: 60 + projects: + - PROJ2 + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: 76ad11bc-34b7-4b43-b3b3-4cf71287de82 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceK6Cloud: + speakeasy-default-create-source-k6-cloud: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceKlarna: + speakeasy-default-create-source-klarna: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceKlaviyo: + speakeasy-default-create-source-klaviyo: + requestBody: + application/json: + configuration: + api_key: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 995edc20-958b-44bd-95bf-c0308883d5d6 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceKyve: + speakeasy-default-create-source-kyve: + requestBody: + application/json: + configuration: + pool_ids: "0" + start_ids: 0,0 + url_base: https://api.korellia.kyve.network/ + name: + workspaceId: 4784f005-abff-4bc2-bf7a-34e79f249ab4 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLaunchdarkly: + speakeasy-default-create-source-launchdarkly: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLeadfeeder: + speakeasy-default-create-source-leadfeeder: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLemlist: + speakeasy-default-create-source-lemlist: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLeverHiring: + speakeasy-default-create-source-lever-hiring: + requestBody: + application/json: + configuration: + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: 1d4673b7-815f-4b50-b023-d3515fc78287 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLinkedinAds: + speakeasy-default-create-source-linkedin-ads: + requestBody: + application/json: + configuration: + account_ids: + - "123456789" + start_date: "2021-05-17" + name: + workspaceId: 227656ca-1f4b-447d-9fde-34b63bdc1788 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLinkedinPages: + speakeasy-default-create-source-linkedin-pages: + requestBody: + application/json: + configuration: + org_id: "123456789" + name: + workspaceId: efb814e5-52fe-49c7-a5ed-c0bfb9928712 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLinnworks: + speakeasy-default-create-source-linnworks: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLokalise: + speakeasy-default-create-source-lokalise: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLooker: + speakeasy-default-create-source-looker: + requestBody: + application/json: + configuration: + client_id: + client_secret: + domain: domainname.looker.com + name: + workspaceId: 5499224f-954f-4789-b072-3632ab3f858b + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceLuma: + speakeasy-default-create-source-luma: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMailchimp: + speakeasy-default-create-source-mailchimp: + requestBody: + application/json: + configuration: + start_date: "2020-01-01T00:00:00.000Z" + name: + workspaceId: 56bb015e-a34f-4f4c-b18a-c67b3ec9aac5 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMailgun: + speakeasy-default-create-source-mailgun: + requestBody: + application/json: + configuration: + private_key: + start_date: "2023-08-01T00:00:00Z" + name: + workspaceId: a7cf9a76-791a-4278-8290-e462fb249435 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMailjetSms: + speakeasy-default-create-source-mailjet-sms: + requestBody: + application/json: + configuration: + end_date: 1666281656 + start_date: 1666261656 + token: + name: + workspaceId: 5ca53d7d-cab9-4a37-b8c4-128a9a9e052b + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMarketo: + speakeasy-default-create-source-marketo: + requestBody: + application/json: + configuration: + client_id: + client_secret: + domain_url: https://000-AAA-000.mktorest.com + start_date: "2020-09-25T00:00:00Z" + name: + workspaceId: e28e1ebe-10cb-4e6c-9f94-d6305bc94235 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMetabase: + speakeasy-default-create-source-metabase: + requestBody: + application/json: + configuration: + instance_api_url: https://localhost:3000/api/ + username: Baylee.Leffler72 + name: + workspaceId: cd43f54b-ca69-40f7-9371-4b7168c707ed + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMicrosoftOnedrive: + speakeasy-default-create-source-microsoft-onedrive: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + refresh_token: + tenant_id: + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: cda55a35-702b-4c86-bdc8-277cb05e0ec0 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMicrosoftSharepoint: + speakeasy-default-create-source-microsoft-sharepoint: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + tenant_id: + user_principal_name: + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: 63ef4029-038f-44b9-825c-1f85f5f13f42 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMicrosoftTeams: + speakeasy-default-create-source-microsoft-teams: + requestBody: + application/json: + configuration: + period: D7 + name: + workspaceId: 0ff4f75d-7b01-4c22-a217-e8e6550e9643 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMixpanel: + speakeasy-default-create-source-mixpanel: + requestBody: + application/json: + configuration: + credentials: + project_id: 252069 + secret: + username: Lew_Paucek50 + end_date: "2021-11-16" + project_timezone: US/Pacific + start_date: "2021-11-16" + name: + workspaceId: a59f4452-0388-4fd5-ae4e-7569804fce30 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMonday: + speakeasy-default-create-source-monday: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMongodbV2: + speakeasy-default-create-source-mongodb-v2: + requestBody: + application/json: + configuration: + database_config: + auth_source: admin + connection_string: mongodb+srv://cluster0.abcd1.mongodb.net/ + database: + password: hbfRM4ckeuVmxcc + username: Ettie_Little56 + name: + workspaceId: 516d602a-ed07-4f9f-8774-abf11d93f34d + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMssql: + speakeasy-default-create-source-mssql: + requestBody: + application/json: + configuration: + database: master + host: unconscious-handicap.org + password: abkLhSbsAUmdgAL + port: "1433" + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + username: Webster.Goyette + name: + workspaceId: a9034c4e-3f5c-4566-a6d3-2e1b74aa1924 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMyHours: + speakeasy-default-create-source-my-hours: + requestBody: + application/json: + configuration: + email: john@doe.com + logs_batch_size: 30 + password: ZwhYmvxt5vq4W7T + start_date: "2016-01-01" + name: + workspaceId: d26c4c9e-12cd-4262-ac41-2dbf486c672c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceMysql: + speakeasy-default-create-source-mysql: + requestBody: + application/json: + configuration: + database: + host: intelligent-testimony.info + port: "3306" + username: Aglae25 + name: + workspaceId: 3e8a017c-7803-4939-a69d-d7fca0716fcc + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceNetsuite: + speakeasy-default-create-source-netsuite: + requestBody: + application/json: + configuration: + consumer_key: + consumer_secret: + object_types: + - customer + realm: + start_datetime: "2017-01-25T00:00:00Z" + token_key: + token_secret: + name: + workspaceId: 11418902-beff-43d1-a432-6ff141cfdb4a + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceNorthpassLms: + speakeasy-default-create-source-northpass-lms: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceNotion: + speakeasy-default-create-source-notion: + requestBody: + application/json: + configuration: + start_date: "2020-11-16T00:00:00.000Z" + name: + workspaceId: 3da9fbe9-b0be-4bcc-826f-b8f0924c14ec + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceNytimes: + speakeasy-default-create-source-nytimes: + requestBody: + application/json: + configuration: + api_key: + end_date: 1851-01 + period: 1 + start_date: 1851-01 + name: + workspaceId: 2fc06606-5f25-4e1c-9ade-68c53fabbd0c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceOkta: + speakeasy-default-create-source-okta: + requestBody: + application/json: + configuration: + start_date: "2022-07-22T00:00:00Z" + name: + workspaceId: c6df60e4-dadc-4e31-aed8-fcc5ab4bc9b4 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceOmnisend: + speakeasy-default-create-source-omnisend: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceOnesignal: + speakeasy-default-create-source-onesignal: + requestBody: + application/json: + configuration: + applications: [] + outcome_names: os__session_duration.count,os__click.count,CustomOutcomeName.sum + start_date: "2020-11-16T00:00:00Z" + user_auth_key: + name: + workspaceId: 383a0f5e-0864-46cf-a4b8-3f55263685fd + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceOracle: + speakeasy-default-create-source-oracle: + requestBody: + application/json: + configuration: + host: stable-doorway.com + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + username: Maybelle96 + name: + workspaceId: 520b2bdb-22fb-4630-b3d6-a5432488d0b6 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceOrb: + speakeasy-default-create-source-orb: + requestBody: + application/json: + configuration: + api_key: + end_date: "2024-03-01T00:00:00Z" + start_date: "2022-03-01T00:00:00Z" + name: + workspaceId: 5f3c18e7-7d1b-4e5d-b306-fe8b1e4f4926 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceOrbit: + speakeasy-default-create-source-orbit: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceOutbrainAmplify: + speakeasy-default-create-source-outbrain-amplify: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceOutreach: + speakeasy-default-create-source-outreach: + requestBody: + application/json: + configuration: + client_id: + client_secret: + redirect_uri: + refresh_token: + start_date: "2020-11-16T00:00:00Z" + name: + workspaceId: 0c09315d-229a-4a30-9643-ce0a69698d66 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePaypalTransaction: + speakeasy-default-create-source-paypal-transaction: + requestBody: + application/json: + configuration: + client_id: + client_secret: + dispute_start_date: "2021-06-11T23:59:59.000Z" + end_date: "2021-06-11T23:59:59+00:00" + start_date: "2021-06-11T23:59:59+00:00" + name: + workspaceId: c32e2aab-6ea1-468d-adae-7bc495824c00 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePaystack: + speakeasy-default-create-source-paystack: + requestBody: + application/json: + configuration: + secret_key: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: c062e6f2-c20a-4610-98a0-b58669e0465c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePendo: + speakeasy-default-create-source-pendo: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePennylane: + speakeasy-default-create-source-pennylane: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePersistiq: + speakeasy-default-create-source-persistiq: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePexelsApi: + speakeasy-default-create-source-pexels-api: + requestBody: + application/json: + configuration: + api_key: + color: red + locale: en-US + orientation: landscape + query: oceans + size: small + name: + workspaceId: c993ebe2-ebe4-48dd-a44c-e807999039f9 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePinterest: + speakeasy-default-create-source-pinterest: + requestBody: + application/json: + configuration: + custom_reports: [] + start_date: "2022-07-28" + name: + workspaceId: 90bd635c-0412-4cb6-9b1d-e8ec5d2dca60 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePipedrive: + speakeasy-default-create-source-pipedrive: + requestBody: + application/json: + configuration: + api_token: + replication_start_date: 2017-01-25 00:00:00Z + name: + workspaceId: 64cdd801-4250-42d4-8f29-c1727ebbccc7 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePlanhat: + speakeasy-default-create-source-planhat: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePocket: + speakeasy-default-create-source-pocket: + requestBody: + application/json: + configuration: + access_token: + consumer_key: + since: "2022-10-20 14:14:14" + name: + workspaceId: e8591379-541a-4714-87a6-566522cc154c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePokeapi: + speakeasy-default-create-source-pokeapi: + requestBody: + application/json: + configuration: + pokemon_name: ditto + name: + workspaceId: 01a50809-8afd-4b9b-b3db-52b0d5298fba + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePolygonStockApi: + speakeasy-default-create-source-polygon-stock-api: + requestBody: + application/json: + configuration: + adjusted: "false" + apiKey: + end_date: "2020-10-14" + limit: 120 + multiplier: 2 + sort: asc + start_date: "2020-10-14" + stocksTicker: MSFT + timespan: day + name: + workspaceId: b4ac1f67-6aeb-44dc-8e22-28aa10b1ff9d + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePostgres: + speakeasy-default-create-source-postgres: + requestBody: + application/json: + configuration: + database: + host: prestigious-mind.net + port: "5432" + username: Annetta5 + name: + workspaceId: 5f08061e-96a7-448f-809a-dcc31e4008a0 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePosthog: + speakeasy-default-create-source-posthog: + requestBody: + application/json: + configuration: + api_key: + base_url: https://posthog.example.com + events_time_step: 5 + start_date: "2021-01-01T00:00:00Z" + name: + workspaceId: 0c4dded0-ef17-49f4-9b2c-f082131c4fed + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePostmarkapp: + speakeasy-default-create-source-postmarkapp: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePrestashop: + speakeasy-default-create-source-prestashop: + requestBody: + application/json: + configuration: + access_key: + start_date: "2022-01-01" + url: http://arid-intent.org + name: + workspaceId: efde67a2-c151-4458-aff2-6045d76fb586 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePypi: + speakeasy-default-create-source-pypi: + requestBody: + application/json: + configuration: + project_name: sampleproject + version: 1.2.0 + name: + workspaceId: fcf80cda-3cfa-4e66-adf8-0e88af96c5c6 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceQualaroo: + speakeasy-default-create-source-qualaroo: + requestBody: + application/json: + configuration: + key: + start_date: "2021-03-01T00:00:00.000Z" + token: + name: + workspaceId: 4fbc2703-9314-4108-8622-72d7ad834700 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceRailz: + speakeasy-default-create-source-railz: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceRecharge: + speakeasy-default-create-source-recharge: + requestBody: + application/json: + configuration: + access_token: + start_date: "2021-05-14T00:00:00Z" + name: + workspaceId: c166de67-1705-43e9-a5c6-3d76e14c410d + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceRecreation: + speakeasy-default-create-source-recreation: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceRecruitee: + speakeasy-default-create-source-recruitee: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceRecurly: + speakeasy-default-create-source-recurly: + requestBody: + application/json: + configuration: + api_key: + begin_time: 2021-12-01T00:00:00 + end_time: 2021-12-01T00:00:00 + name: + workspaceId: e2c0143c-1513-4466-a798-7a3b5df1fe46 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceReddit: + speakeasy-default-create-source-reddit: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceRedshift: + speakeasy-default-create-source-redshift: + requestBody: + application/json: + configuration: + database: master + host: rigid-cinema.info + password: K9J9O2XZ3UwiTkp + port: "5439" + schemas: + - public + username: Zoila.Huels12 + name: + workspaceId: b1e08608-7fc9-4e67-9575-143d0951cfd5 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceRetently: + speakeasy-default-create-source-retently: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceRkiCovid: + speakeasy-default-create-source-rki-covid: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceRss: + speakeasy-default-create-source-rss: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceS3: + speakeasy-default-create-source-s3: + requestBody: + application/json: + configuration: + bucket: + endpoint: my-s3-endpoint.com + path_pattern: myFolder/myTableFiles/*.csv|myFolder/myOtherTableFiles/*.csv + provider: + start_date: "2021-01-01T00:00:00Z" + schema: '{"column_1": "number", "column_2": "string", "column_3": "array", "column_4": "object", "column_5": "boolean"}' + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: e8b4abc9-0961-435b-8fa4-9996db556fd2 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSalesforce: + speakeasy-default-create-source-salesforce: + requestBody: + application/json: + configuration: + client_id: + client_secret: + refresh_token: + start_date: "2021-07-25" + stream_slice_step: P7D + name: + workspaceId: 23a37ef1-1840-4762-979e-872b37bd5c7e + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSalesloft: + speakeasy-default-create-source-salesloft: + requestBody: + application/json: + configuration: + credentials: + api_key: + start_date: "2020-11-16T00:00:00Z" + name: + workspaceId: b0e67430-afeb-4e03-8541-73c294f2d353 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSapFieldglass: + speakeasy-default-create-source-sap-fieldglass: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSavvycal: + speakeasy-default-create-source-savvycal: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceScryfall: + speakeasy-default-create-source-scryfall: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSecoda: + speakeasy-default-create-source-secoda: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSendgrid: + speakeasy-default-create-source-sendgrid: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSendinblue: + speakeasy-default-create-source-sendinblue: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSenseforce: + speakeasy-default-create-source-senseforce: + requestBody: + application/json: + configuration: + access_token: + backend_url: https://galaxyapi.senseforce.io + dataset_id: 8f418098-ca28-4df5-9498-0df9fe78eda7 + slice_range: 3 + start_date: "2017-01-25" + name: + workspaceId: 1dd3db93-7166-462b-887e-bccc2a505e29 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSentry: + speakeasy-default-create-source-sentry: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSftp: + speakeasy-default-create-source-sftp: + requestBody: + application/json: + configuration: + 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 + port: "22" + user: Orin75 + name: + workspaceId: f34998d5-f94a-46e4-bea9-c00f596d375f + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSftpBulk: + speakeasy-default-create-source-sftp-bulk: + requestBody: + application/json: + configuration: + credentials: + password: EGYUbzhs6rNAYoe + folder_path: /logs/2022 + host: www.host.com + port: "22" + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + username: Tyrique_Towne + name: + workspaceId: f00c0e5c-6a42-4d7c-8044-1f4b0e6b0c55 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceShopify: + speakeasy-default-create-source-shopify: + requestBody: + application/json: + configuration: + shop: my-store + name: + workspaceId: c39380a2-074b-4b22-a95a-3bf7bae3827e + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceShortio: + speakeasy-default-create-source-shortio: + requestBody: + application/json: + configuration: + domain_id: + secret_key: + start_date: "2023-07-30T03:43:59.244Z" + name: + workspaceId: aa6a34d8-3082-4036-bb87-a7a7f6f868b5 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSlack: + speakeasy-default-create-source-slack: + requestBody: + application/json: + configuration: + channel_filter: + - channel_one + lookback_window: 7 + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: f11299a6-e70e-42e8-8f5f-1ae09c987aeb + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSmaily: + speakeasy-default-create-source-smaily: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSmartengage: + speakeasy-default-create-source-smartengage: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSmartsheets: + speakeasy-default-create-source-smartsheets: + requestBody: + application/json: + configuration: + credentials: + access_token: + client_id: + client_secret: + refresh_token: + token_expiry_date: "2023-06-26T17:15:23.846Z" + spreadsheet_id: + start_datetime: "2000-01-01T13:00:00-07:00" + name: + workspaceId: 10bd43ec-4edc-460a-b9f6-d8fcfefadf14 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSnapchatMarketing: + speakeasy-default-create-source-snapchat-marketing: + requestBody: + application/json: + configuration: + client_id: + client_secret: + end_date: "2022-01-30" + refresh_token: + start_date: "2022-01-01" + name: + workspaceId: f70ae1c4-4959-4920-9412-6b868f133796 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSnowflake: + speakeasy-default-create-source-snowflake: + requestBody: + application/json: + configuration: + credentials: + password: xw1nDwCTtr_fHT5 + username: AIRBYTE_USER + database: AIRBYTE_DATABASE + host: accountname.us-east-2.aws.snowflakecomputing.com + role: AIRBYTE_ROLE + schema: AIRBYTE_SCHEMA + warehouse: AIRBYTE_WAREHOUSE + name: + workspaceId: 7cde553f-10f0-4d43-908d-e12af030e649 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSonarCloud: + speakeasy-default-create-source-sonar-cloud: + requestBody: + application/json: + configuration: + component_keys: + - airbyte-ws-checkout + end_date: YYYY-MM-DD + organization: airbyte + start_date: YYYY-MM-DD + user_token: + name: + workspaceId: f841fd68-d18f-4488-a6c6-54e8fbf50e8c + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSpacexApi: + speakeasy-default-create-source-spacex-api: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSquare: + speakeasy-default-create-source-square: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceStrava: + speakeasy-default-create-source-strava: + requestBody: + application/json: + configuration: + athlete_id: "17831421" + client_id: "12345" + client_secret: fc6243f283e51f6ca989aab298b17da125496f50 + refresh_token: fc6243f283e51f6ca989aab298b17da125496f50 + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: bf607351-4a7d-4eb2-97be-feed61c97ac8 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceStripe: + speakeasy-default-create-source-stripe: + requestBody: + application/json: + configuration: + account_id: + call_rate_limit: 25 + client_secret: + num_workers: 2 + slice_range: 360 + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 2165f2d0-9f40-4e68-848d-57b85b190505 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSurveySparrow: + speakeasy-default-create-source-survey-sparrow: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSurveymonkey: + speakeasy-default-create-source-surveymonkey: + requestBody: + application/json: + configuration: + credentials: + access_token: + start_date: "2021-01-01T00:00:00Z" + name: + workspaceId: 81ef737f-8965-46d5-8c56-35be4fb8474f + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTempo: + speakeasy-default-create-source-tempo: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTheGuardianApi: + speakeasy-default-create-source-the-guardian-api: + requestBody: + application/json: + configuration: + api_key: + end_date: YYYY-MM-DD + query: environment AND political + section: technology + start_date: YYYY-MM-DD + tag: environment/plasticbags + name: + workspaceId: 5fd4832a-e91a-479f-a88a-eb7401da0b54 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTiktokMarketing: + speakeasy-default-create-source-tiktok-marketing: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTrello: + speakeasy-default-create-source-trello: + requestBody: + application/json: + configuration: + key: + start_date: "2021-03-01T00:00:00Z" + token: + name: + workspaceId: 43631fd6-2424-429a-ae24-205b09c9ac6b + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTrustpilot: + speakeasy-default-create-source-trustpilot: + requestBody: + application/json: + configuration: + business_units: + - mydomain.com + credentials: + client_id: + start_date: '%Y-%m-%dT%H:%M:%SZ' + name: + workspaceId: dd685e85-cb53-423d-a8bc-cad37809caf3 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTvmazeSchedule: + speakeasy-default-create-source-tvmaze-schedule: + requestBody: + application/json: + configuration: + domestic_schedule_country_code: GB + start_date: + web_schedule_country_code: US + name: + workspaceId: aac82c31-8717-4bb8-a373-2b85adafc3f6 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTwilio: + speakeasy-default-create-source-twilio: + requestBody: + application/json: + configuration: + account_sid: + auth_token: + lookback_window: 60 + start_date: "2020-10-01T00:00:00Z" + name: + workspaceId: 40879b63-743d-4d7c-b162-e4c0adeb2a85 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTwilioTaskrouter: + speakeasy-default-create-source-twilio-taskrouter: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTwitter: + speakeasy-default-create-source-twitter: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTypeform: + speakeasy-default-create-source-typeform: + requestBody: + application/json: + configuration: + credentials: + access_token: + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: c5ee2f18-c4b4-419c-9fde-eefbc8fe13a5 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceUsCensus: + speakeasy-default-create-source-us-census: + requestBody: + application/json: + configuration: + 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 + name: + workspaceId: 04d935d9-eba8-4cfe-adc7-352031e8ed4d + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceVantage: + speakeasy-default-create-source-vantage: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceWebflow: + speakeasy-default-create-source-webflow: + requestBody: + application/json: + configuration: + accept_version: 1.0.0 + api_key: a very long hex sequence + site_id: a relatively long hex sequence + name: + workspaceId: e1a30bc7-2387-4c9a-9c95-bc371ae6aa0e + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceWhiskyHunter: + speakeasy-default-create-source-whisky-hunter: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceWikipediaPageviews: + speakeasy-default-create-source-wikipedia-pageviews: + requestBody: + application/json: + configuration: + access: desktop + agent: spider + article: Are_You_the_One%3F + country: FR + end: + project: commons.wikimedia.org + start: + name: + workspaceId: f21f9287-2db6-4bb3-918f-411bd3403e30 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceWoocommerce: + speakeasy-default-create-source-woocommerce: + requestBody: + application/json: + configuration: + api_key: + api_secret: + shop: + start_date: "2021-01-01" + name: + workspaceId: 2538975b-d454-415e-ada6-833e288a7e15 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceXkcd: + speakeasy-default-create-source-xkcd: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceYandexMetrica: + speakeasy-default-create-source-yandex-metrica: + requestBody: + application/json: + configuration: + auth_token: + counter_id: + end_date: "2022-01-01" + start_date: "2022-01-01" + name: + workspaceId: cb93874a-d2c9-45b0-b756-60a1a66ab23a + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceYotpo: + speakeasy-default-create-source-yotpo: + requestBody: + application/json: + configuration: + access_token: + app_key: + start_date: "2022-03-01T00:00:00.000Z" + name: + workspaceId: bba05958-8237-4e76-855b-4bbcf8cf0f9e + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceYoutubeAnalytics: + speakeasy-default-create-source-youtube-analytics: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceZendeskChat: + speakeasy-default-create-source-zendesk-chat: + requestBody: + application/json: + configuration: + start_date: "2021-02-01T00:00:00Z" + name: + workspaceId: 761473d3-1af4-4b0c-9986-a5059a21d9fb + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceZendeskSell: + speakeasy-default-create-source-zendesk-sell: + requestBody: + application/json: + configuration: + api_token: f23yhd630otl94y85a8bf384958473pto95847fd006da49382716or937ruw059 + name: + workspaceId: c319f183-760d-4452-9bfa-ff75da961f96 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceZendeskSunshine: + speakeasy-default-create-source-zendesk-sunshine: + requestBody: + application/json: + configuration: + start_date: "2021-01-01T00:00:00Z" + subdomain: + name: + workspaceId: e7f62a6b-8c8b-4827-a232-4dac8561eee6 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceZendeskSupport: + speakeasy-default-create-source-zendesk-support: + requestBody: + application/json: + configuration: + start_date: "2020-10-15T00:00:00Z" + subdomain: + name: + workspaceId: 5e823a70-5b0f-47db-875a-bbd3276ea5c1 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceZendeskTalk: + speakeasy-default-create-source-zendesk-talk: + requestBody: + application/json: + configuration: + start_date: "2020-10-15T00:00:00Z" + subdomain: + name: + workspaceId: 4269a24b-3add-43db-b8d5-e74e684a7fff + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceZenloop: + speakeasy-default-create-source-zenloop: + requestBody: + application/json: + configuration: + api_token: + date_from: "2021-10-24T03:30:30Z" + name: + workspaceId: 03a3bae1-c7f7-44ec-8d25-4890c49a4259 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceZohoCrm: + speakeasy-default-create-source-zoho-crm: + requestBody: + application/json: + configuration: + client_id: + client_secret: + dc_region: US + environment: Developer + refresh_token: + start_datetime: "2000-01-01 13:00:00" + name: + workspaceId: ab24f537-7c27-4869-8c30-012be478cb43 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceZoom: + speakeasy-default-create-source-zoom: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createWorkspace: + Workspace Creation Request Example: + requestBody: + application/json: + name: Company Workspace Name + responses: + "200": + application/json: + name: + workspaceId: + Workspace Creation Response Example: + requestBody: + application/json: + name: + responses: + "200": + application/json: + name: + workspaceId: 9924bcd0-99be-453d-ba47-c2c9766f7da5 + deleteConnection: + speakeasy-default-delete-connection: + parameters: + path: + connectionId: + deleteDestination: + speakeasy-default-delete-destination: + parameters: + path: + destinationId: + deleteDestinationAstra: + speakeasy-default-delete-destination-astra: + parameters: + path: + destinationId: + deleteDestinationAwsDatalake: + speakeasy-default-delete-destination-aws-datalake: + parameters: + path: + destinationId: + deleteDestinationAzureBlobStorage: + speakeasy-default-delete-destination-azure-blob-storage: + parameters: + path: + destinationId: + deleteDestinationBigquery: + speakeasy-default-delete-destination-bigquery: + parameters: + path: + destinationId: + deleteDestinationClickhouse: + speakeasy-default-delete-destination-clickhouse: + parameters: + path: + destinationId: + deleteDestinationConvex: + speakeasy-default-delete-destination-convex: + parameters: + path: + destinationId: + deleteDestinationCustom: + speakeasy-default-delete-destination-custom: + parameters: + path: + destinationId: + deleteDestinationDatabricks: + speakeasy-default-delete-destination-databricks: + parameters: + path: + destinationId: + deleteDestinationDevNull: + speakeasy-default-delete-destination-dev-null: + parameters: + path: + destinationId: + deleteDestinationDuckdb: + speakeasy-default-delete-destination-duckdb: + parameters: + path: + destinationId: + deleteDestinationDynamodb: + speakeasy-default-delete-destination-dynamodb: + parameters: + path: + destinationId: + deleteDestinationElasticsearch: + speakeasy-default-delete-destination-elasticsearch: + parameters: + path: + destinationId: + deleteDestinationFirebolt: + speakeasy-default-delete-destination-firebolt: + parameters: + path: + destinationId: + deleteDestinationFirestore: + speakeasy-default-delete-destination-firestore: + parameters: + path: + destinationId: + deleteDestinationGcs: + speakeasy-default-delete-destination-gcs: + parameters: + path: + destinationId: + deleteDestinationGoogleSheets: + speakeasy-default-delete-destination-google-sheets: + parameters: + path: + destinationId: + deleteDestinationMilvus: + speakeasy-default-delete-destination-milvus: + parameters: + path: + destinationId: + deleteDestinationMongodb: + speakeasy-default-delete-destination-mongodb: + parameters: + path: + destinationId: + deleteDestinationMssql: + speakeasy-default-delete-destination-mssql: + parameters: + path: + destinationId: + deleteDestinationMysql: + speakeasy-default-delete-destination-mysql: + parameters: + path: + destinationId: + deleteDestinationOracle: + speakeasy-default-delete-destination-oracle: + parameters: + path: + destinationId: + deleteDestinationPinecone: + speakeasy-default-delete-destination-pinecone: + parameters: + path: + destinationId: + deleteDestinationPostgres: + speakeasy-default-delete-destination-postgres: + parameters: + path: + destinationId: + deleteDestinationPubsub: + speakeasy-default-delete-destination-pubsub: + parameters: + path: + destinationId: + deleteDestinationQdrant: + speakeasy-default-delete-destination-qdrant: + parameters: + path: + destinationId: + deleteDestinationRedis: + speakeasy-default-delete-destination-redis: + parameters: + path: + destinationId: + deleteDestinationRedshift: + speakeasy-default-delete-destination-redshift: + parameters: + path: + destinationId: + deleteDestinationS3: + speakeasy-default-delete-destination-s3: + parameters: + path: + destinationId: + deleteDestinationS3Glue: + speakeasy-default-delete-destination-s3-glue: + parameters: + path: + destinationId: + deleteDestinationSftpJson: + speakeasy-default-delete-destination-sftp-json: + parameters: + path: + destinationId: + deleteDestinationSnowflake: + speakeasy-default-delete-destination-snowflake: + parameters: + path: + destinationId: + deleteDestinationSnowflakeCortex: + speakeasy-default-delete-destination-snowflake-cortex: + parameters: + path: + destinationId: + deleteDestinationTeradata: + speakeasy-default-delete-destination-teradata: + parameters: + path: + destinationId: + deleteDestinationTimeplus: + speakeasy-default-delete-destination-timeplus: + parameters: + path: + destinationId: + deleteDestinationTypesense: + speakeasy-default-delete-destination-typesense: + parameters: + path: + destinationId: + deleteDestinationVectara: + speakeasy-default-delete-destination-vectara: + parameters: + path: + destinationId: + deleteDestinationWeaviate: + speakeasy-default-delete-destination-weaviate: + parameters: + path: + destinationId: + deleteDestinationYellowbrick: + speakeasy-default-delete-destination-yellowbrick: + parameters: + path: + destinationId: + deletePermission: + speakeasy-default-delete-permission: + parameters: + path: + permissionId: + deleteSource: + speakeasy-default-delete-source: + parameters: + path: + sourceId: + deleteSourceAha: + speakeasy-default-delete-source-aha: + parameters: + path: + sourceId: + deleteSourceAirbyte: + speakeasy-default-delete-source-airbyte: + parameters: + path: + sourceId: + deleteSourceAircall: + speakeasy-default-delete-source-aircall: + parameters: + path: + sourceId: + deleteSourceAirtable: + speakeasy-default-delete-source-airtable: + parameters: + path: + sourceId: + deleteSourceAmazonAds: + speakeasy-default-delete-source-amazon-ads: + parameters: + path: + sourceId: + deleteSourceAmazonSellerPartner: + speakeasy-default-delete-source-amazon-seller-partner: + parameters: + path: + sourceId: + deleteSourceAmazonSqs: + speakeasy-default-delete-source-amazon-sqs: + parameters: + path: + sourceId: + deleteSourceAmplitude: + speakeasy-default-delete-source-amplitude: + parameters: + path: + sourceId: + deleteSourceApifyDataset: + speakeasy-default-delete-source-apify-dataset: + parameters: + path: + sourceId: + deleteSourceAppfollow: + speakeasy-default-delete-source-appfollow: + parameters: + path: + sourceId: + deleteSourceAsana: + speakeasy-default-delete-source-asana: + parameters: + path: + sourceId: + deleteSourceAuth0: + speakeasy-default-delete-source-auth0: + parameters: + path: + sourceId: + deleteSourceAwsCloudtrail: + speakeasy-default-delete-source-aws-cloudtrail: + parameters: + path: + sourceId: + deleteSourceAzureBlobStorage: + speakeasy-default-delete-source-azure-blob-storage: + parameters: + path: + sourceId: + deleteSourceAzureTable: + speakeasy-default-delete-source-azure-table: + parameters: + path: + sourceId: + deleteSourceBambooHr: + speakeasy-default-delete-source-bamboo-hr: + parameters: + path: + sourceId: + deleteSourceBasecamp: + speakeasy-default-delete-source-basecamp: + parameters: + path: + sourceId: + deleteSourceBigquery: + speakeasy-default-delete-source-bigquery: + parameters: + path: + sourceId: + deleteSourceBingAds: + speakeasy-default-delete-source-bing-ads: + parameters: + path: + sourceId: + deleteSourceBraintree: + speakeasy-default-delete-source-braintree: + parameters: + path: + sourceId: + deleteSourceBraze: + speakeasy-default-delete-source-braze: + parameters: + path: + sourceId: + deleteSourceBreezyHr: + speakeasy-default-delete-source-breezy-hr: + parameters: + path: + sourceId: + deleteSourceCalendly: + speakeasy-default-delete-source-calendly: + parameters: + path: + sourceId: + deleteSourceCart: + speakeasy-default-delete-source-cart: + parameters: + path: + sourceId: + deleteSourceChargebee: + speakeasy-default-delete-source-chargebee: + parameters: + path: + sourceId: + deleteSourceChartmogul: + speakeasy-default-delete-source-chartmogul: + parameters: + path: + sourceId: + deleteSourceClazar: + speakeasy-default-delete-source-clazar: + parameters: + path: + sourceId: + deleteSourceClickhouse: + speakeasy-default-delete-source-clickhouse: + parameters: + path: + sourceId: + deleteSourceClickupApi: + speakeasy-default-delete-source-clickup-api: + parameters: + path: + sourceId: + deleteSourceClockify: + speakeasy-default-delete-source-clockify: + parameters: + path: + sourceId: + deleteSourceCloseCom: + speakeasy-default-delete-source-close-com: + parameters: + path: + sourceId: + deleteSourceCoda: + speakeasy-default-delete-source-coda: + parameters: + path: + sourceId: + deleteSourceCoinApi: + speakeasy-default-delete-source-coin-api: + parameters: + path: + sourceId: + deleteSourceCoinmarketcap: + speakeasy-default-delete-source-coinmarketcap: + parameters: + path: + sourceId: + deleteSourceConfigcat: + speakeasy-default-delete-source-configcat: + parameters: + path: + sourceId: + deleteSourceConfluence: + speakeasy-default-delete-source-confluence: + parameters: + path: + sourceId: + deleteSourceConvex: + speakeasy-default-delete-source-convex: + parameters: + path: + sourceId: + deleteSourceCustom: + speakeasy-default-delete-source-custom: + parameters: + path: + sourceId: + deleteSourceCustomerIo: + speakeasy-default-delete-source-customer-io: + parameters: + path: + sourceId: + deleteSourceDatadog: + speakeasy-default-delete-source-datadog: + parameters: + path: + sourceId: + deleteSourceDatascope: + speakeasy-default-delete-source-datascope: + parameters: + path: + sourceId: + deleteSourceDbt: + speakeasy-default-delete-source-dbt: + parameters: + path: + sourceId: + deleteSourceDelighted: + speakeasy-default-delete-source-delighted: + parameters: + path: + sourceId: + deleteSourceDixa: + speakeasy-default-delete-source-dixa: + parameters: + path: + sourceId: + deleteSourceDockerhub: + speakeasy-default-delete-source-dockerhub: + parameters: + path: + sourceId: + deleteSourceDremio: + speakeasy-default-delete-source-dremio: + parameters: + path: + sourceId: + deleteSourceDynamodb: + speakeasy-default-delete-source-dynamodb: + parameters: + path: + sourceId: + deleteSourceEmailoctopus: + speakeasy-default-delete-source-emailoctopus: + parameters: + path: + sourceId: + deleteSourceExchangeRates: + speakeasy-default-delete-source-exchange-rates: + parameters: + path: + sourceId: + deleteSourceFacebookMarketing: + speakeasy-default-delete-source-facebook-marketing: + parameters: + path: + sourceId: + deleteSourceFaker: + speakeasy-default-delete-source-faker: + parameters: + path: + sourceId: + deleteSourceFauna: + speakeasy-default-delete-source-fauna: + parameters: + path: + sourceId: + deleteSourceFile: + speakeasy-default-delete-source-file: + parameters: + path: + sourceId: + deleteSourceFirebolt: + speakeasy-default-delete-source-firebolt: + parameters: + path: + sourceId: + deleteSourceFleetio: + speakeasy-default-delete-source-fleetio: + parameters: + path: + sourceId: + deleteSourceFreshcaller: + speakeasy-default-delete-source-freshcaller: + parameters: + path: + sourceId: + deleteSourceFreshdesk: + speakeasy-default-delete-source-freshdesk: + parameters: + path: + sourceId: + deleteSourceFreshsales: + speakeasy-default-delete-source-freshsales: + parameters: + path: + sourceId: + deleteSourceGainsightPx: + speakeasy-default-delete-source-gainsight-px: + parameters: + path: + sourceId: + deleteSourceGcs: + speakeasy-default-delete-source-gcs: + parameters: + path: + sourceId: + deleteSourceGetlago: + speakeasy-default-delete-source-getlago: + parameters: + path: + sourceId: + deleteSourceGithub: + speakeasy-default-delete-source-github: + parameters: + path: + sourceId: + deleteSourceGitlab: + speakeasy-default-delete-source-gitlab: + parameters: + path: + sourceId: + deleteSourceGlassfrog: + speakeasy-default-delete-source-glassfrog: + parameters: + path: + sourceId: + deleteSourceGnews: + speakeasy-default-delete-source-gnews: + parameters: + path: + sourceId: + deleteSourceGoldcast: + speakeasy-default-delete-source-goldcast: + parameters: + path: + sourceId: + deleteSourceGoogleAds: + speakeasy-default-delete-source-google-ads: + parameters: + path: + sourceId: + deleteSourceGoogleAnalyticsDataApi: + speakeasy-default-delete-source-google-analytics-data-api: + parameters: + path: + sourceId: + deleteSourceGoogleDirectory: + speakeasy-default-delete-source-google-directory: + parameters: + path: + sourceId: + deleteSourceGoogleDrive: + speakeasy-default-delete-source-google-drive: + parameters: + path: + sourceId: + deleteSourceGooglePagespeedInsights: + speakeasy-default-delete-source-google-pagespeed-insights: + parameters: + path: + sourceId: + deleteSourceGoogleSearchConsole: + speakeasy-default-delete-source-google-search-console: + parameters: + path: + sourceId: + deleteSourceGoogleSheets: + speakeasy-default-delete-source-google-sheets: + parameters: + path: + sourceId: + deleteSourceGoogleWebfonts: + speakeasy-default-delete-source-google-webfonts: + parameters: + path: + sourceId: + deleteSourceGreenhouse: + speakeasy-default-delete-source-greenhouse: + parameters: + path: + sourceId: + deleteSourceGridly: + speakeasy-default-delete-source-gridly: + parameters: + path: + sourceId: + deleteSourceHardcodedRecords: + speakeasy-default-delete-source-hardcoded-records: + parameters: + path: + sourceId: + deleteSourceHarvest: + speakeasy-default-delete-source-harvest: + parameters: + path: + sourceId: + deleteSourceHibob: + speakeasy-default-delete-source-hibob: + parameters: + path: + sourceId: + deleteSourceHighLevel: + speakeasy-default-delete-source-high-level: + parameters: + path: + sourceId: + deleteSourceHubplanner: + speakeasy-default-delete-source-hubplanner: + parameters: + path: + sourceId: + deleteSourceHubspot: + speakeasy-default-delete-source-hubspot: + parameters: + path: + sourceId: + deleteSourceInsightly: + speakeasy-default-delete-source-insightly: + parameters: + path: + sourceId: + deleteSourceInstagram: + speakeasy-default-delete-source-instagram: + parameters: + path: + sourceId: + deleteSourceInstatus: + speakeasy-default-delete-source-instatus: + parameters: + path: + sourceId: + deleteSourceIntercom: + speakeasy-default-delete-source-intercom: + parameters: + path: + sourceId: + deleteSourceIp2whois: + speakeasy-default-delete-source-ip2whois: + parameters: + path: + sourceId: + deleteSourceIterable: + speakeasy-default-delete-source-iterable: + parameters: + path: + sourceId: + deleteSourceJira: + speakeasy-default-delete-source-jira: + parameters: + path: + sourceId: + deleteSourceK6Cloud: + speakeasy-default-delete-source-k6-cloud: + parameters: + path: + sourceId: + deleteSourceKlarna: + speakeasy-default-delete-source-klarna: + parameters: + path: + sourceId: + deleteSourceKlaviyo: + speakeasy-default-delete-source-klaviyo: + parameters: + path: + sourceId: + deleteSourceKyve: + speakeasy-default-delete-source-kyve: + parameters: + path: + sourceId: + deleteSourceLaunchdarkly: + speakeasy-default-delete-source-launchdarkly: + parameters: + path: + sourceId: + deleteSourceLeadfeeder: + speakeasy-default-delete-source-leadfeeder: + parameters: + path: + sourceId: + deleteSourceLemlist: + speakeasy-default-delete-source-lemlist: + parameters: + path: + sourceId: + deleteSourceLeverHiring: + speakeasy-default-delete-source-lever-hiring: + parameters: + path: + sourceId: + deleteSourceLinkedinAds: + speakeasy-default-delete-source-linkedin-ads: + parameters: + path: + sourceId: + deleteSourceLinkedinPages: + speakeasy-default-delete-source-linkedin-pages: + parameters: + path: + sourceId: + deleteSourceLinnworks: + speakeasy-default-delete-source-linnworks: + parameters: + path: + sourceId: + deleteSourceLokalise: + speakeasy-default-delete-source-lokalise: + parameters: + path: + sourceId: + deleteSourceLooker: + speakeasy-default-delete-source-looker: + parameters: + path: + sourceId: + deleteSourceLuma: + speakeasy-default-delete-source-luma: + parameters: + path: + sourceId: + deleteSourceMailchimp: + speakeasy-default-delete-source-mailchimp: + parameters: + path: + sourceId: + deleteSourceMailgun: + speakeasy-default-delete-source-mailgun: + parameters: + path: + sourceId: + deleteSourceMailjetSms: + speakeasy-default-delete-source-mailjet-sms: + parameters: + path: + sourceId: + deleteSourceMarketo: + speakeasy-default-delete-source-marketo: + parameters: + path: + sourceId: + deleteSourceMetabase: + speakeasy-default-delete-source-metabase: + parameters: + path: + sourceId: + deleteSourceMicrosoftOnedrive: + speakeasy-default-delete-source-microsoft-onedrive: + parameters: + path: + sourceId: + deleteSourceMicrosoftSharepoint: + speakeasy-default-delete-source-microsoft-sharepoint: + parameters: + path: + sourceId: + deleteSourceMicrosoftTeams: + speakeasy-default-delete-source-microsoft-teams: + parameters: + path: + sourceId: + deleteSourceMixpanel: + speakeasy-default-delete-source-mixpanel: + parameters: + path: + sourceId: + deleteSourceMonday: + speakeasy-default-delete-source-monday: + parameters: + path: + sourceId: + deleteSourceMongodbV2: + speakeasy-default-delete-source-mongodb-v2: + parameters: + path: + sourceId: + deleteSourceMssql: + speakeasy-default-delete-source-mssql: + parameters: + path: + sourceId: + deleteSourceMyHours: + speakeasy-default-delete-source-my-hours: + parameters: + path: + sourceId: + deleteSourceMysql: + speakeasy-default-delete-source-mysql: + parameters: + path: + sourceId: + deleteSourceNetsuite: + speakeasy-default-delete-source-netsuite: + parameters: + path: + sourceId: + deleteSourceNorthpassLms: + speakeasy-default-delete-source-northpass-lms: + parameters: + path: + sourceId: + deleteSourceNotion: + speakeasy-default-delete-source-notion: + parameters: + path: + sourceId: + deleteSourceNytimes: + speakeasy-default-delete-source-nytimes: + parameters: + path: + sourceId: + deleteSourceOkta: + speakeasy-default-delete-source-okta: + parameters: + path: + sourceId: + deleteSourceOmnisend: + speakeasy-default-delete-source-omnisend: + parameters: + path: + sourceId: + deleteSourceOnesignal: + speakeasy-default-delete-source-onesignal: + parameters: + path: + sourceId: + deleteSourceOracle: + speakeasy-default-delete-source-oracle: + parameters: + path: + sourceId: + deleteSourceOrb: + speakeasy-default-delete-source-orb: + parameters: + path: + sourceId: + deleteSourceOrbit: + speakeasy-default-delete-source-orbit: + parameters: + path: + sourceId: + deleteSourceOutbrainAmplify: + speakeasy-default-delete-source-outbrain-amplify: + parameters: + path: + sourceId: + deleteSourceOutreach: + speakeasy-default-delete-source-outreach: + parameters: + path: + sourceId: + deleteSourcePaypalTransaction: + speakeasy-default-delete-source-paypal-transaction: + parameters: + path: + sourceId: + deleteSourcePaystack: + speakeasy-default-delete-source-paystack: + parameters: + path: + sourceId: + deleteSourcePendo: + speakeasy-default-delete-source-pendo: + parameters: + path: + sourceId: + deleteSourcePennylane: + speakeasy-default-delete-source-pennylane: + parameters: + path: + sourceId: + deleteSourcePersistiq: + speakeasy-default-delete-source-persistiq: + parameters: + path: + sourceId: + deleteSourcePexelsApi: + speakeasy-default-delete-source-pexels-api: + parameters: + path: + sourceId: + deleteSourcePinterest: + speakeasy-default-delete-source-pinterest: + parameters: + path: + sourceId: + deleteSourcePipedrive: + speakeasy-default-delete-source-pipedrive: + parameters: + path: + sourceId: + deleteSourcePlanhat: + speakeasy-default-delete-source-planhat: + parameters: + path: + sourceId: + deleteSourcePocket: + speakeasy-default-delete-source-pocket: + parameters: + path: + sourceId: + deleteSourcePokeapi: + speakeasy-default-delete-source-pokeapi: + parameters: + path: + sourceId: + deleteSourcePolygonStockApi: + speakeasy-default-delete-source-polygon-stock-api: + parameters: + path: + sourceId: + deleteSourcePostgres: + speakeasy-default-delete-source-postgres: + parameters: + path: + sourceId: + deleteSourcePosthog: + speakeasy-default-delete-source-posthog: + parameters: + path: + sourceId: + deleteSourcePostmarkapp: + speakeasy-default-delete-source-postmarkapp: + parameters: + path: + sourceId: + deleteSourcePrestashop: + speakeasy-default-delete-source-prestashop: + parameters: + path: + sourceId: + deleteSourcePypi: + speakeasy-default-delete-source-pypi: + parameters: + path: + sourceId: + deleteSourceQualaroo: + speakeasy-default-delete-source-qualaroo: + parameters: + path: + sourceId: + deleteSourceRailz: + speakeasy-default-delete-source-railz: + parameters: + path: + sourceId: + deleteSourceRecharge: + speakeasy-default-delete-source-recharge: + parameters: + path: + sourceId: + deleteSourceRecreation: + speakeasy-default-delete-source-recreation: + parameters: + path: + sourceId: + deleteSourceRecruitee: + speakeasy-default-delete-source-recruitee: + parameters: + path: + sourceId: + deleteSourceRecurly: + speakeasy-default-delete-source-recurly: + parameters: + path: + sourceId: + deleteSourceReddit: + speakeasy-default-delete-source-reddit: + parameters: + path: + sourceId: + deleteSourceRedshift: + speakeasy-default-delete-source-redshift: + parameters: + path: + sourceId: + deleteSourceRetently: + speakeasy-default-delete-source-retently: + parameters: + path: + sourceId: + deleteSourceRkiCovid: + speakeasy-default-delete-source-rki-covid: + parameters: + path: + sourceId: + deleteSourceRss: + speakeasy-default-delete-source-rss: + parameters: + path: + sourceId: + deleteSourceS3: + speakeasy-default-delete-source-s3: + parameters: + path: + sourceId: + deleteSourceSalesforce: + speakeasy-default-delete-source-salesforce: + parameters: + path: + sourceId: + deleteSourceSalesloft: + speakeasy-default-delete-source-salesloft: + parameters: + path: + sourceId: + deleteSourceSapFieldglass: + speakeasy-default-delete-source-sap-fieldglass: + parameters: + path: + sourceId: + deleteSourceSavvycal: + speakeasy-default-delete-source-savvycal: + parameters: + path: + sourceId: + deleteSourceScryfall: + speakeasy-default-delete-source-scryfall: + parameters: + path: + sourceId: + deleteSourceSecoda: + speakeasy-default-delete-source-secoda: + parameters: + path: + sourceId: + deleteSourceSendgrid: + speakeasy-default-delete-source-sendgrid: + parameters: + path: + sourceId: + deleteSourceSendinblue: + speakeasy-default-delete-source-sendinblue: + parameters: + path: + sourceId: + deleteSourceSenseforce: + speakeasy-default-delete-source-senseforce: + parameters: + path: + sourceId: + deleteSourceSentry: + speakeasy-default-delete-source-sentry: + parameters: + path: + sourceId: + deleteSourceSftp: + speakeasy-default-delete-source-sftp: + parameters: + path: + sourceId: + deleteSourceSftpBulk: + speakeasy-default-delete-source-sftp-bulk: + parameters: + path: + sourceId: + deleteSourceShopify: + speakeasy-default-delete-source-shopify: + parameters: + path: + sourceId: + deleteSourceShortio: + speakeasy-default-delete-source-shortio: + parameters: + path: + sourceId: + deleteSourceSlack: + speakeasy-default-delete-source-slack: + parameters: + path: + sourceId: + deleteSourceSmaily: + speakeasy-default-delete-source-smaily: + parameters: + path: + sourceId: + deleteSourceSmartengage: + speakeasy-default-delete-source-smartengage: + parameters: + path: + sourceId: + deleteSourceSmartsheets: + speakeasy-default-delete-source-smartsheets: + parameters: + path: + sourceId: + deleteSourceSnapchatMarketing: + speakeasy-default-delete-source-snapchat-marketing: + parameters: + path: + sourceId: + deleteSourceSnowflake: + speakeasy-default-delete-source-snowflake: + parameters: + path: + sourceId: + deleteSourceSonarCloud: + speakeasy-default-delete-source-sonar-cloud: + parameters: + path: + sourceId: + deleteSourceSpacexApi: + speakeasy-default-delete-source-spacex-api: + parameters: + path: + sourceId: + deleteSourceSquare: + speakeasy-default-delete-source-square: + parameters: + path: + sourceId: + deleteSourceStrava: + speakeasy-default-delete-source-strava: + parameters: + path: + sourceId: + deleteSourceStripe: + speakeasy-default-delete-source-stripe: + parameters: + path: + sourceId: + deleteSourceSurveySparrow: + speakeasy-default-delete-source-survey-sparrow: + parameters: + path: + sourceId: + deleteSourceSurveymonkey: + speakeasy-default-delete-source-surveymonkey: + parameters: + path: + sourceId: + deleteSourceTempo: + speakeasy-default-delete-source-tempo: + parameters: + path: + sourceId: + deleteSourceTheGuardianApi: + speakeasy-default-delete-source-the-guardian-api: + parameters: + path: + sourceId: + deleteSourceTiktokMarketing: + speakeasy-default-delete-source-tiktok-marketing: + parameters: + path: + sourceId: + deleteSourceTrello: + speakeasy-default-delete-source-trello: + parameters: + path: + sourceId: + deleteSourceTrustpilot: + speakeasy-default-delete-source-trustpilot: + parameters: + path: + sourceId: + deleteSourceTvmazeSchedule: + speakeasy-default-delete-source-tvmaze-schedule: + parameters: + path: + sourceId: + deleteSourceTwilio: + speakeasy-default-delete-source-twilio: + parameters: + path: + sourceId: + deleteSourceTwilioTaskrouter: + speakeasy-default-delete-source-twilio-taskrouter: + parameters: + path: + sourceId: + deleteSourceTwitter: + speakeasy-default-delete-source-twitter: + parameters: + path: + sourceId: + deleteSourceTypeform: + speakeasy-default-delete-source-typeform: + parameters: + path: + sourceId: + deleteSourceUsCensus: + speakeasy-default-delete-source-us-census: + parameters: + path: + sourceId: + deleteSourceVantage: + speakeasy-default-delete-source-vantage: + parameters: + path: + sourceId: + deleteSourceWebflow: + speakeasy-default-delete-source-webflow: + parameters: + path: + sourceId: + deleteSourceWhiskyHunter: + speakeasy-default-delete-source-whisky-hunter: + parameters: + path: + sourceId: + deleteSourceWikipediaPageviews: + speakeasy-default-delete-source-wikipedia-pageviews: + parameters: + path: + sourceId: + deleteSourceWoocommerce: + speakeasy-default-delete-source-woocommerce: + parameters: + path: + sourceId: + deleteSourceXkcd: + speakeasy-default-delete-source-xkcd: + parameters: + path: + sourceId: + deleteSourceYandexMetrica: + speakeasy-default-delete-source-yandex-metrica: + parameters: + path: + sourceId: + deleteSourceYotpo: + speakeasy-default-delete-source-yotpo: + parameters: + path: + sourceId: + deleteSourceYoutubeAnalytics: + speakeasy-default-delete-source-youtube-analytics: + parameters: + path: + sourceId: + deleteSourceZendeskChat: + speakeasy-default-delete-source-zendesk-chat: + parameters: + path: + sourceId: + deleteSourceZendeskSell: + speakeasy-default-delete-source-zendesk-sell: + parameters: + path: + sourceId: + deleteSourceZendeskSunshine: + speakeasy-default-delete-source-zendesk-sunshine: + parameters: + path: + sourceId: + deleteSourceZendeskSupport: + speakeasy-default-delete-source-zendesk-support: + parameters: + path: + sourceId: + deleteSourceZendeskTalk: + speakeasy-default-delete-source-zendesk-talk: + parameters: + path: + sourceId: + deleteSourceZenloop: + speakeasy-default-delete-source-zenloop: + parameters: + path: + sourceId: + deleteSourceZohoCrm: + speakeasy-default-delete-source-zoho-crm: + parameters: + path: + sourceId: + deleteSourceZoom: + speakeasy-default-delete-source-zoom: + parameters: + path: + sourceId: + deleteWorkspace: + speakeasy-default-delete-workspace: + parameters: + path: + workspaceId: + getConnection: + Connection Get Response Example: + parameters: + path: + connectionId: + responses: + "200": + application/json: + connectionId: + destinationId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + name: Postgres To Snowflake + schedule: + scheduleType: basic + sourceId: 9924bcd0-99be-453d-ba47-c2c9766f7da5 + status: deprecated + workspaceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + getDestination: + Destination Get Response Example: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + conversion_window_days: 14 + customer_id: "1234567890" + end_date: 1704067200000 + start_date: 1672531200000 + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: + name: My Destination + workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + getDestinationAstra: + speakeasy-default-get-destination-astra: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationAwsDatalake: + speakeasy-default-get-destination-aws-datalake: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationAzureBlobStorage: + speakeasy-default-get-destination-azure-blob-storage: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationBigquery: + speakeasy-default-get-destination-bigquery: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationClickhouse: + speakeasy-default-get-destination-clickhouse: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationConvex: + speakeasy-default-get-destination-convex: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationCustom: + speakeasy-default-get-destination-custom: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationDatabricks: + speakeasy-default-get-destination-databricks: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationDevNull: + speakeasy-default-get-destination-dev-null: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationDuckdb: + speakeasy-default-get-destination-duckdb: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationDynamodb: + speakeasy-default-get-destination-dynamodb: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationElasticsearch: + speakeasy-default-get-destination-elasticsearch: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationFirebolt: + speakeasy-default-get-destination-firebolt: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationFirestore: + speakeasy-default-get-destination-firestore: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationGcs: + speakeasy-default-get-destination-gcs: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationGoogleSheets: + speakeasy-default-get-destination-google-sheets: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationMilvus: + speakeasy-default-get-destination-milvus: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationMongodb: + speakeasy-default-get-destination-mongodb: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationMssql: + speakeasy-default-get-destination-mssql: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationMysql: + speakeasy-default-get-destination-mysql: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationOracle: + speakeasy-default-get-destination-oracle: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationPinecone: + speakeasy-default-get-destination-pinecone: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationPostgres: + speakeasy-default-get-destination-postgres: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationPubsub: + speakeasy-default-get-destination-pubsub: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationQdrant: + speakeasy-default-get-destination-qdrant: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationRedis: + speakeasy-default-get-destination-redis: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationRedshift: + speakeasy-default-get-destination-redshift: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationS3: + speakeasy-default-get-destination-s3: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationS3Glue: + speakeasy-default-get-destination-s3-glue: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationSftpJson: + speakeasy-default-get-destination-sftp-json: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationSnowflake: + speakeasy-default-get-destination-snowflake: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationSnowflakeCortex: + speakeasy-default-get-destination-snowflake-cortex: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationTeradata: + speakeasy-default-get-destination-teradata: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationTimeplus: + speakeasy-default-get-destination-timeplus: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationTypesense: + speakeasy-default-get-destination-typesense: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationVectara: + speakeasy-default-get-destination-vectara: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationWeaviate: + speakeasy-default-get-destination-weaviate: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationYellowbrick: + speakeasy-default-get-destination-yellowbrick: + parameters: + path: + destinationId: + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getHealthCheck: + speakeasy-default-get-health-check: {} + getJob: + Job Get Response Example: + parameters: + path: + jobId: 131101 + responses: + "200": + application/json: + connectionId: + jobId: 369528 + jobType: sync + startTime: + status: running + getPermission: + speakeasy-default-get-permission: + parameters: + path: + permissionId: + responses: + "200": + application/json: + permissionId: cea2b5ef-cafa-4d22-a3a7-ccd6aedb824c + permissionType: workspace_owner + userId: b28fe60f-8634-4971-a922-b1ae92ad8eb7 + getSource: + Source Get Response Example: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: running + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + getSourceAha: + speakeasy-default-get-source-aha: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAirbyte: + speakeasy-default-get-source-airbyte: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAircall: + speakeasy-default-get-source-aircall: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAirtable: + speakeasy-default-get-source-airtable: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAmazonAds: + speakeasy-default-get-source-amazon-ads: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAmazonSellerPartner: + speakeasy-default-get-source-amazon-seller-partner: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAmazonSqs: + speakeasy-default-get-source-amazon-sqs: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAmplitude: + speakeasy-default-get-source-amplitude: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceApifyDataset: + speakeasy-default-get-source-apify-dataset: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAppfollow: + speakeasy-default-get-source-appfollow: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAsana: + speakeasy-default-get-source-asana: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAuth0: + speakeasy-default-get-source-auth0: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAwsCloudtrail: + speakeasy-default-get-source-aws-cloudtrail: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAzureBlobStorage: + speakeasy-default-get-source-azure-blob-storage: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAzureTable: + speakeasy-default-get-source-azure-table: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceBambooHr: + speakeasy-default-get-source-bamboo-hr: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceBasecamp: + speakeasy-default-get-source-basecamp: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceBigquery: + speakeasy-default-get-source-bigquery: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceBingAds: + speakeasy-default-get-source-bing-ads: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceBraintree: + speakeasy-default-get-source-braintree: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceBraze: + speakeasy-default-get-source-braze: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceBreezyHr: + speakeasy-default-get-source-breezy-hr: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCalendly: + speakeasy-default-get-source-calendly: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCart: + speakeasy-default-get-source-cart: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceChargebee: + speakeasy-default-get-source-chargebee: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceChartmogul: + speakeasy-default-get-source-chartmogul: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceClazar: + speakeasy-default-get-source-clazar: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceClickhouse: + speakeasy-default-get-source-clickhouse: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceClickupApi: + speakeasy-default-get-source-clickup-api: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceClockify: + speakeasy-default-get-source-clockify: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCloseCom: + speakeasy-default-get-source-close-com: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCoda: + speakeasy-default-get-source-coda: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCoinApi: + speakeasy-default-get-source-coin-api: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCoinmarketcap: + speakeasy-default-get-source-coinmarketcap: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceConfigcat: + speakeasy-default-get-source-configcat: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceConfluence: + speakeasy-default-get-source-confluence: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceConvex: + speakeasy-default-get-source-convex: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCustom: + speakeasy-default-get-source-custom: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCustomerIo: + speakeasy-default-get-source-customer-io: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceDatadog: + speakeasy-default-get-source-datadog: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceDatascope: + speakeasy-default-get-source-datascope: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceDbt: + speakeasy-default-get-source-dbt: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceDelighted: + speakeasy-default-get-source-delighted: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceDixa: + speakeasy-default-get-source-dixa: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceDockerhub: + speakeasy-default-get-source-dockerhub: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceDremio: + speakeasy-default-get-source-dremio: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceDynamodb: + speakeasy-default-get-source-dynamodb: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceEmailoctopus: + speakeasy-default-get-source-emailoctopus: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceExchangeRates: + speakeasy-default-get-source-exchange-rates: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFacebookMarketing: + speakeasy-default-get-source-facebook-marketing: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFaker: + speakeasy-default-get-source-faker: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFauna: + speakeasy-default-get-source-fauna: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFile: + speakeasy-default-get-source-file: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFirebolt: + speakeasy-default-get-source-firebolt: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFleetio: + speakeasy-default-get-source-fleetio: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFreshcaller: + speakeasy-default-get-source-freshcaller: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFreshdesk: + speakeasy-default-get-source-freshdesk: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFreshsales: + speakeasy-default-get-source-freshsales: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGainsightPx: + speakeasy-default-get-source-gainsight-px: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGcs: + speakeasy-default-get-source-gcs: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGetlago: + speakeasy-default-get-source-getlago: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGithub: + speakeasy-default-get-source-github: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGitlab: + speakeasy-default-get-source-gitlab: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGlassfrog: + speakeasy-default-get-source-glassfrog: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGnews: + speakeasy-default-get-source-gnews: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGoldcast: + speakeasy-default-get-source-goldcast: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGoogleAds: + speakeasy-default-get-source-google-ads: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGoogleAnalyticsDataApi: + speakeasy-default-get-source-google-analytics-data-api: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGoogleDirectory: + speakeasy-default-get-source-google-directory: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGoogleDrive: + speakeasy-default-get-source-google-drive: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGooglePagespeedInsights: + speakeasy-default-get-source-google-pagespeed-insights: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGoogleSearchConsole: + speakeasy-default-get-source-google-search-console: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGoogleSheets: + speakeasy-default-get-source-google-sheets: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGoogleWebfonts: + speakeasy-default-get-source-google-webfonts: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGreenhouse: + speakeasy-default-get-source-greenhouse: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGridly: + speakeasy-default-get-source-gridly: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceHardcodedRecords: + speakeasy-default-get-source-hardcoded-records: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceHarvest: + speakeasy-default-get-source-harvest: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceHibob: + speakeasy-default-get-source-hibob: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceHighLevel: + speakeasy-default-get-source-high-level: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceHubplanner: + speakeasy-default-get-source-hubplanner: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceHubspot: + speakeasy-default-get-source-hubspot: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceInsightly: + speakeasy-default-get-source-insightly: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceInstagram: + speakeasy-default-get-source-instagram: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceInstatus: + speakeasy-default-get-source-instatus: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceIntercom: + speakeasy-default-get-source-intercom: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceIp2whois: + speakeasy-default-get-source-ip2whois: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceIterable: + speakeasy-default-get-source-iterable: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceJira: + speakeasy-default-get-source-jira: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceK6Cloud: + speakeasy-default-get-source-k6-cloud: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceKlarna: + speakeasy-default-get-source-klarna: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceKlaviyo: + speakeasy-default-get-source-klaviyo: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceKyve: + speakeasy-default-get-source-kyve: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLaunchdarkly: + speakeasy-default-get-source-launchdarkly: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLeadfeeder: + speakeasy-default-get-source-leadfeeder: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLemlist: + speakeasy-default-get-source-lemlist: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLeverHiring: + speakeasy-default-get-source-lever-hiring: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLinkedinAds: + speakeasy-default-get-source-linkedin-ads: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLinkedinPages: + speakeasy-default-get-source-linkedin-pages: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLinnworks: + speakeasy-default-get-source-linnworks: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLokalise: + speakeasy-default-get-source-lokalise: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLooker: + speakeasy-default-get-source-looker: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceLuma: + speakeasy-default-get-source-luma: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMailchimp: + speakeasy-default-get-source-mailchimp: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMailgun: + speakeasy-default-get-source-mailgun: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMailjetSms: + speakeasy-default-get-source-mailjet-sms: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMarketo: + speakeasy-default-get-source-marketo: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMetabase: + speakeasy-default-get-source-metabase: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMicrosoftOnedrive: + speakeasy-default-get-source-microsoft-onedrive: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMicrosoftSharepoint: + speakeasy-default-get-source-microsoft-sharepoint: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMicrosoftTeams: + speakeasy-default-get-source-microsoft-teams: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMixpanel: + speakeasy-default-get-source-mixpanel: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMonday: + speakeasy-default-get-source-monday: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMongodbV2: + speakeasy-default-get-source-mongodb-v2: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMssql: + speakeasy-default-get-source-mssql: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMyHours: + speakeasy-default-get-source-my-hours: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceMysql: + speakeasy-default-get-source-mysql: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceNetsuite: + speakeasy-default-get-source-netsuite: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceNorthpassLms: + speakeasy-default-get-source-northpass-lms: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceNotion: + speakeasy-default-get-source-notion: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceNytimes: + speakeasy-default-get-source-nytimes: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceOkta: + speakeasy-default-get-source-okta: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceOmnisend: + speakeasy-default-get-source-omnisend: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceOnesignal: + speakeasy-default-get-source-onesignal: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceOracle: + speakeasy-default-get-source-oracle: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceOrb: + speakeasy-default-get-source-orb: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceOrbit: + speakeasy-default-get-source-orbit: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceOutbrainAmplify: + speakeasy-default-get-source-outbrain-amplify: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceOutreach: + speakeasy-default-get-source-outreach: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePaypalTransaction: + speakeasy-default-get-source-paypal-transaction: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePaystack: + speakeasy-default-get-source-paystack: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePendo: + speakeasy-default-get-source-pendo: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePennylane: + speakeasy-default-get-source-pennylane: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePersistiq: + speakeasy-default-get-source-persistiq: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePexelsApi: + speakeasy-default-get-source-pexels-api: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePinterest: + speakeasy-default-get-source-pinterest: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePipedrive: + speakeasy-default-get-source-pipedrive: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePlanhat: + speakeasy-default-get-source-planhat: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePocket: + speakeasy-default-get-source-pocket: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePokeapi: + speakeasy-default-get-source-pokeapi: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePolygonStockApi: + speakeasy-default-get-source-polygon-stock-api: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePostgres: + speakeasy-default-get-source-postgres: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePosthog: + speakeasy-default-get-source-posthog: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePostmarkapp: + speakeasy-default-get-source-postmarkapp: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePrestashop: + speakeasy-default-get-source-prestashop: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePypi: + speakeasy-default-get-source-pypi: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceQualaroo: + speakeasy-default-get-source-qualaroo: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceRailz: + speakeasy-default-get-source-railz: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceRecharge: + speakeasy-default-get-source-recharge: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceRecreation: + speakeasy-default-get-source-recreation: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceRecruitee: + speakeasy-default-get-source-recruitee: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceRecurly: + speakeasy-default-get-source-recurly: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceReddit: + speakeasy-default-get-source-reddit: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceRedshift: + speakeasy-default-get-source-redshift: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceRetently: + speakeasy-default-get-source-retently: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceRkiCovid: + speakeasy-default-get-source-rki-covid: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceRss: + speakeasy-default-get-source-rss: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceS3: + speakeasy-default-get-source-s3: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSalesforce: + speakeasy-default-get-source-salesforce: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSalesloft: + speakeasy-default-get-source-salesloft: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSapFieldglass: + speakeasy-default-get-source-sap-fieldglass: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSavvycal: + speakeasy-default-get-source-savvycal: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceScryfall: + speakeasy-default-get-source-scryfall: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSecoda: + speakeasy-default-get-source-secoda: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSendgrid: + speakeasy-default-get-source-sendgrid: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSendinblue: + speakeasy-default-get-source-sendinblue: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSenseforce: + speakeasy-default-get-source-senseforce: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSentry: + speakeasy-default-get-source-sentry: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSftp: + speakeasy-default-get-source-sftp: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSftpBulk: + speakeasy-default-get-source-sftp-bulk: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceShopify: + speakeasy-default-get-source-shopify: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceShortio: + speakeasy-default-get-source-shortio: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSlack: + speakeasy-default-get-source-slack: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSmaily: + speakeasy-default-get-source-smaily: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSmartengage: + speakeasy-default-get-source-smartengage: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSmartsheets: + speakeasy-default-get-source-smartsheets: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSnapchatMarketing: + speakeasy-default-get-source-snapchat-marketing: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSnowflake: + speakeasy-default-get-source-snowflake: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSonarCloud: + speakeasy-default-get-source-sonar-cloud: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSpacexApi: + speakeasy-default-get-source-spacex-api: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSquare: + speakeasy-default-get-source-square: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceStrava: + speakeasy-default-get-source-strava: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceStripe: + speakeasy-default-get-source-stripe: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSurveySparrow: + speakeasy-default-get-source-survey-sparrow: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSurveymonkey: + speakeasy-default-get-source-surveymonkey: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTempo: + speakeasy-default-get-source-tempo: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTheGuardianApi: + speakeasy-default-get-source-the-guardian-api: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTiktokMarketing: + speakeasy-default-get-source-tiktok-marketing: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTrello: + speakeasy-default-get-source-trello: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTrustpilot: + speakeasy-default-get-source-trustpilot: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTvmazeSchedule: + speakeasy-default-get-source-tvmaze-schedule: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTwilio: + speakeasy-default-get-source-twilio: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTwilioTaskrouter: + speakeasy-default-get-source-twilio-taskrouter: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTwitter: + speakeasy-default-get-source-twitter: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceTypeform: + speakeasy-default-get-source-typeform: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceUsCensus: + speakeasy-default-get-source-us-census: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceVantage: + speakeasy-default-get-source-vantage: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceWebflow: + speakeasy-default-get-source-webflow: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceWhiskyHunter: + speakeasy-default-get-source-whisky-hunter: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceWikipediaPageviews: + speakeasy-default-get-source-wikipedia-pageviews: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceWoocommerce: + speakeasy-default-get-source-woocommerce: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceXkcd: + speakeasy-default-get-source-xkcd: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceYandexMetrica: + speakeasy-default-get-source-yandex-metrica: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceYotpo: + speakeasy-default-get-source-yotpo: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceYoutubeAnalytics: + speakeasy-default-get-source-youtube-analytics: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceZendeskChat: + speakeasy-default-get-source-zendesk-chat: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceZendeskSell: + speakeasy-default-get-source-zendesk-sell: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceZendeskSunshine: + speakeasy-default-get-source-zendesk-sunshine: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceZendeskSupport: + speakeasy-default-get-source-zendesk-support: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceZendeskTalk: + speakeasy-default-get-source-zendesk-talk: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceZenloop: + speakeasy-default-get-source-zenloop: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceZohoCrm: + speakeasy-default-get-source-zoho-crm: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceZoom: + speakeasy-default-get-source-zoom: + parameters: + path: + sourceId: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getStreamProperties: + speakeasy-default-get-stream-properties: + parameters: + query: + sourceId: + responses: + "200": + application/json: [] + getWorkspace: + Workspace Get Response Example: + parameters: + path: + workspaceId: + responses: + "200": + application/json: + dataResidency: auto + name: Acme Company + workspaceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + initiateOAuth: + speakeasy-default-initiate-O-auth: + requestBody: + application/json: + redirectUrl: https://cloud.airbyte.io/v1/api/oauth/callback + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + listConnections: + speakeasy-default-list-connections: + responses: + "200": + application/json: + data: + - connectionId: + destinationId: + name: test-connection + schedule: + scheduleType: basic + sourceId: + status: deprecated + workspaceId: + - connectionId: + destinationId: + name: + schedule: + scheduleType: basic + sourceId: + status: inactive + workspaceId: + - connectionId: + destinationId: + name: + schedule: + scheduleType: basic + sourceId: 49237019-645d-47d4-b45b-5eddf97775ce + status: inactive + workspaceId: + - connectionId: + destinationId: al312fs-0ab1-4f72-9ed7-0b8fc27c5826 + name: + schedule: + scheduleType: basic + sourceId: + status: inactive + workspaceId: + - connectionId: + destinationId: + name: + schedule: + scheduleType: manual + sourceId: + status: active + workspaceId: + - connectionId: + destinationId: + name: + schedule: + scheduleType: manual + sourceId: + status: active + workspaceId: + - connectionId: + dataResidency: auto + destinationId: + name: + schedule: + scheduleType: cron + sourceId: + status: active + workspaceId: + next: https://api.airbyte.com/v1/connections?limit=5&offset=10 + previous: https://api.airbyte.com/v1/connections?limit=5&offset=0 + listDestinations: + speakeasy-default-list-destinations: + responses: + "200": + application/json: + data: + - configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + next: https://api.airbyte.com/v1/destinations?limit=5&offset=10 + previous: https://api.airbyte.com/v1/destinations?limit=5&offset=0 + listJobs: + "": + parameters: + query: + createdAtEnd: 1687450500000 + createdAtStart: 1687450500000 + orderBy: updatedAt|DESC + updatedAtEnd: 1687450500000 + updatedAtStart: 1687450500000 + responses: + "200": + application/json: + data: + - connectionId: + jobId: 808104 + jobType: sync + startTime: "2023-03-25T01:30:50Z" + status: running + next: https://api.airbyte.com/v1/jobs?limit=5&offset=10 + previous: https://api.airbyte.com/v1/jobs?limit=5&offset=0 + Job List Response Example: + parameters: + query: + createdAtEnd: 1687450500000 + createdAtStart: 1687450500000 + orderBy: updatedAt|DESC + updatedAtEnd: 1687450500000 + updatedAtStart: 1687450500000 + responses: + "200": + application/json: + data: + - connectionId: + jobId: 417148 + jobType: sync + startTime: + status: running + next: https://api.airbyte.com/v1/jobs?limit=5&offset=10 + previous: https://api.airbyte.com/v1/jobs?limit=5&offset=0 + listOrganizationsForUser: + speakeasy-default-list-organizations-for-user: + responses: + "200": + application/json: + data: [] + listPermissions: + speakeasy-default-list-permissions: + responses: + "200": + application/json: + data: [] + listSources: + "": + parameters: + query: + workspaceIds: + - df08f6b0-b364-4cc1-9b3f-96f5d2fccfb2,b0796797-de23-4fc7-a5e2-7e131314718c + responses: + "200": + application/json: + data: + - configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + next: https://api.airbyte.com/v1/sources?limit=5&offset=10 + previous: https://api.airbyte.com/v1/sources?limit=5&offset=0 + listUsersWithinAnOrganization: + speakeasy-default-list-users-within-an-organization: + parameters: + query: + organizationId: + responses: + "200": + application/json: + data: [] + listWorkspaces: + speakeasy-default-list-workspaces: + responses: + "200": + application/json: + data: + - dataResidency: auto + name: Acme Company + workspaceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + next: https://api.airbyte.com/v1/workspaces?limit=5&offset=10 + previous: https://api.airbyte.com/v1/workspaces?limit=5&offset=0 + patchConnection: + Connection Get Response Example: + parameters: + path: + connectionId: + requestBody: + application/json: + namespaceFormat: ${SOURCE_NAMESPACE} + responses: + "200": + application/json: + connectionId: + destinationId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + name: Postgres To Snowflake + schedule: + scheduleType: basic + sourceId: 9924bcd0-99be-453d-ba47-c2c9766f7da5 + status: inactive + workspaceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + Connection Update Request Example: + parameters: + path: + connectionId: + requestBody: + application/json: + name: Postgres-to-Bigquery + namespaceFormat: ${SOURCE_NAMESPACE} + responses: + "200": + application/json: + connectionId: + destinationId: + name: + schedule: + scheduleType: manual + sourceId: + status: active + workspaceId: + patchDestination: + Destination Update Request Example: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + conversion_window_days: 14 + customer_id: "1234567890" + end_date: 1704067200000 + start_date: 1672531200000 + name: My Destination + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + Destination Update Response Example: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + user: charles + responses: + "200": + application/json: + configuration: + conversion_window_days: 14 + customer_id: "1234567890" + end_date: 1704067200000 + start_date: 1672531200000 + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: + name: running + workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + patchSource: + Source Update Request Example: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + airbyte_source_name: google-ads + conversion_window_days: 14 + customer_id: "1234567890" + end_date: 1704067200000 + start_date: 1672531200000 + name: My Source + workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + Source Update Response Example: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + user: charles + name: My source + responses: + "200": + application/json: + configuration: + user: charles + name: running + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + putDestination: + Destination Update Request Example: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + conversion_window_days: 14 + customer_id: "1234567890" + end_date: 1704067200000 + start_date: 1672531200000 + name: My Destination + responses: + "200": + application/json: + configuration: + user: charles + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: postgres + name: Analytics Team Postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + Destination Update Response Example: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + user: charles + name: + responses: + "200": + application/json: + configuration: + conversion_window_days: 14 + customer_id: "1234567890" + end_date: 1704067200000 + start_date: 1672531200000 + destinationId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + destinationType: + name: running + workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + putDestinationAstra: + speakeasy-default-put-destination-astra: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + embedding: + base_url: https://your-service-name.com + dimensions: 384 + model_name: text-embedding-ada-002 + indexing: + astra_db_app_token: + astra_db_endpoint: https://8292d414-dd1b-4c33-8431-e838bedc04f7-us-east1.apps.astra.datastax.com + astra_db_keyspace: + collection: + processing: + chunk_size: 287359 + metadata_fields: + - user.name + text_fields: + - user.name + name: + workspaceId: a57ee0d2-128d-4c06-9ad5-14dbec32a3c3 + putDestinationAwsDatalake: + speakeasy-default-put-destination-aws-datalake: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + aws_account_id: "111111111111" + bucket_name: + credentials: + aws_access_key_id: + aws_secret_access_key: + lakeformation_database_default_tag_key: pii_level + lakeformation_database_default_tag_values: private,public + lakeformation_database_name: + name: + workspaceId: 065ffb51-c5da-46a1-a00a-bd783c20f3fb + putDestinationAzureBlobStorage: + speakeasy-default-put-destination-azure-blob-storage: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + azure_blob_storage_account_key: Z8ZkZpteggFx394vm+PJHnGTvdRncaYS+JhLKdj789YNmD+iyGTnG+PV+POiuYNhBg/ACS+LKjd%4FG3FHGN12Nd== + azure_blob_storage_account_name: airbyte5storage + azure_blob_storage_container_name: airbytetescontainername + azure_blob_storage_endpoint_domain_name: blob.core.windows.net + azure_blob_storage_output_buffer_size: 5 + azure_blob_storage_spill_size: 500 + name: + workspaceId: 3e7d22ef-ac21-48b3-93c7-3e11da3484e6 + putDestinationBigquery: + speakeasy-default-put-destination-bigquery: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + big_query_client_buffer_size_mb: "15" + dataset_id: + dataset_location: australia-southeast2 + project_id: + name: + workspaceId: f4a97529-d789-45cb-9597-7561b191e9fc + putDestinationClickhouse: + speakeasy-default-put-destination-clickhouse: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + database: + host: suburban-weapon.net + port: "8123" + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: + username: Eugenia74 + name: + workspaceId: f487aa94-5436-4945-8147-afa1da0996ca + putDestinationConvex: + speakeasy-default-put-destination-convex: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + access_key: + deployment_url: https://cluttered-owl-337.convex.cloud + name: + workspaceId: 58d6ed0c-faa8-4941-884e-8c6b684d1048 + putDestinationCustom: + speakeasy-default-put-destination-custom: + parameters: + path: + destinationId: + putDestinationDatabricks: + speakeasy-default-put-destination-databricks: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + authentication: + client_id: + secret: + database: + hostname: abc-12345678-wxyz.cloud.databricks.com + http_path: sql/1.0/warehouses/0000-1111111-abcd90 + port: "443" + schema: default + name: + workspaceId: 88f09147-cc93-400d-afc1-7d37df929074 + putDestinationDevNull: + speakeasy-default-put-destination-dev-null: + parameters: + path: + destinationId: + putDestinationDuckdb: + speakeasy-default-put-destination-duckdb: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + destination_path: /local/destination.duckdb + schema: main + name: + workspaceId: 1d0ef15d-d3ae-4941-8fb3-af5cbc6bf6fd + putDestinationDynamodb: + speakeasy-default-put-destination-dynamodb: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + access_key_id: A012345678910EXAMPLE + dynamodb_endpoint: http://localhost:9000 + dynamodb_table_name_prefix: airbyte_sync + secret_access_key: a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY + name: + workspaceId: d46b3ed1-dd69-4db3-8455-4b2f31b21793 + putDestinationElasticsearch: + speakeasy-default-put-destination-elasticsearch: + parameters: + path: + destinationId: + putDestinationFirebolt: + speakeasy-default-put-destination-firebolt: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + account: "79914536" + client_id: bbl9qth066hmxkwyb0hy2iwk8ktez9dz + client_secret: + database: + engine: + host: api.app.firebolt.io + loading_method: + aws_key_id: + aws_key_secret: + s3_bucket: + s3_region: us-east-1 + name: + workspaceId: 1bcd49cb-1a1b-47fc-b987-8ece14b1f6a0 + putDestinationFirestore: + speakeasy-default-put-destination-firestore: + parameters: + path: + destinationId: + putDestinationGcs: + speakeasy-default-put-destination-gcs: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + credential: + hmac_key_access_id: 1234567890abcdefghij1234 + hmac_key_secret: 1234567890abcdefghij1234567890ABCDEFGHIJ + format: {} + gcs_bucket_name: airbyte_sync + gcs_bucket_path: data_sync/test + name: + workspaceId: 9cfa5ca2-f99d-4155-8113-ef333473c295 + putDestinationGoogleSheets: + speakeasy-default-put-destination-google-sheets: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + refresh_token: + spreadsheet_id: https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit + name: + workspaceId: 6c18e33d-4234-4d01-84ea-ee0163b35c85 + putDestinationMilvus: + speakeasy-default-put-destination-milvus: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + embedding: + cohere_key: + indexing: + auth: + password: i3pUmsXfszV2JDn + username: Markus_Stark + collection: + host: tcp://host.docker.internal:19530 + processing: + chunk_size: 562970 + metadata_fields: + - user.name + text_fields: + - users.*.name + name: + workspaceId: 0c7f6c5c-917a-468a-9e06-ca81caa5041c + putDestinationMongodb: + speakeasy-default-put-destination-mongodb: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + database: + instance_type: + host: proper-suspect.com + port: "27017" + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + name: + workspaceId: 0ccf1ae6-19e8-4619-ac88-506eecb550e2 + putDestinationMssql: + speakeasy-default-put-destination-mssql: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + database: + host: fluid-vehicle.biz + port: "1433" + schema: public + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: + username: Adele_Morar69 + name: + workspaceId: 4a681315-4707-400e-a205-77cb09daa996 + putDestinationMysql: + speakeasy-default-put-destination-mysql: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + database: + host: whopping-bunch.com + port: "3306" + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: + username: Lane_Graham56 + name: + workspaceId: aba24710-3cf8-4631-a128-16336c083800 + putDestinationOracle: + speakeasy-default-put-destination-oracle: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + host: sorrowful-yin.info + port: "1521" + schema: airbyte + sid: + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: + username: Shanie50 + name: + workspaceId: 52b855db-b391-417d-85cf-daa866a6145e + putDestinationPinecone: + speakeasy-default-put-destination-pinecone: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + embedding: + api_base: https://your-resource-name.openai.azure.com + deployment: your-resource-name + openai_key: + indexing: + index: + pinecone_environment: gcp-starter + pinecone_key: + processing: + chunk_size: 941923 + metadata_fields: + - user.name + text_fields: + - user.name + name: + workspaceId: fb9825d3-59f1-4077-8515-72e8d8e90565 + putDestinationPostgres: + speakeasy-default-put-destination-postgres: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + database: + host: defensive-flesh.name + port: "5432" + schema: public + username: Destin.Homenick36 + name: + workspaceId: b013adf0-9fd3-4b66-b0d8-f47e61f605d1 + putDestinationPubsub: + speakeasy-default-put-destination-pubsub: + parameters: + path: + destinationId: + putDestinationQdrant: + speakeasy-default-put-destination-qdrant: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + embedding: + api_base: https://your-resource-name.openai.azure.com + deployment: your-resource-name + openai_key: + indexing: + collection: + url: http://inexperienced-temper.name + processing: + chunk_size: 439309 + metadata_fields: + - user.name + text_fields: + - user.name + name: + workspaceId: f17116ea-256d-4fef-8852-0d8a4de9278e + putDestinationRedis: + speakeasy-default-put-destination-redis: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + host: localhost,127.0.0.1 + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: + username: Giuseppe_Rutherford60 + name: + workspaceId: c710faf2-14ae-4a07-b1bf-30a62a8c355f + putDestinationRedshift: + speakeasy-default-put-destination-redshift: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + database: + host: fussy-travel.net + password: 2GlG57581GcgkmB + port: "5439" + schema: public + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: + uploading_method: + access_key_id: + file_name_pattern: '{part_number}' + s3_bucket_name: airbyte.staging + s3_bucket_path: data_sync/test + secret_access_key: + username: Jacky54 + name: + workspaceId: 4e1a4009-23ce-46ce-b52a-a471a74c1d75 + putDestinationS3: + speakeasy-default-put-destination-s3: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + access_key_id: A012345678910EXAMPLE + file_name_pattern: '{date:yyyy_MM}' + format: + block_size_mb: 128 + dictionary_page_size_kb: 1024 + max_padding_size_mb: 8 + page_size_kb: 1024 + role_arn: arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId + s3_bucket_name: airbyte_sync + s3_bucket_path: data_sync/test + s3_endpoint: http://localhost:9000 + s3_path_format: ${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_ + secret_access_key: a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY + name: + workspaceId: 134f5e1c-baec-4456-ae16-6d16d5f3522f + putDestinationS3Glue: + speakeasy-default-put-destination-s3-glue: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + access_key_id: A012345678910EXAMPLE + file_name_pattern: '{part_number}' + glue_database: airbyte_database + s3_bucket_name: airbyte_sync + s3_bucket_path: data_sync/test + s3_endpoint: http://localhost:9000 + s3_path_format: ${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_ + secret_access_key: a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY + name: + workspaceId: 3ed2c120-3b44-40fa-82b9-2a98d83d8164 + putDestinationSftpJson: + speakeasy-default-put-destination-sftp-json: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + destination_path: /json_data + host: celebrated-grit.info + password: GcPEvb123oGnlKh + port: 22 + username: Chase_Mante + name: + workspaceId: ddd6c644-2419-4141-a14f-325ae1a8f30e + putDestinationSnowflake: + speakeasy-default-put-destination-snowflake: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + database: AIRBYTE_DATABASE + host: accountname.us-east-2.aws.snowflakecomputing.com + role: AIRBYTE_ROLE + schema: AIRBYTE_SCHEMA + username: AIRBYTE_USER + warehouse: AIRBYTE_WAREHOUSE + name: + workspaceId: ab12a1ab-d0f9-4387-bf33-d1a7caf5f8d4 + putDestinationSnowflakeCortex: + speakeasy-default-put-destination-snowflake-cortex: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + embedding: + api_base: https://your-resource-name.openai.azure.com + deployment: your-resource-name + openai_key: + indexing: + credentials: + password: AIRBYTE_PASSWORD + database: AIRBYTE_DATABASE + default_schema: AIRBYTE_SCHEMA + host: AIRBYTE_ACCOUNT + role: AIRBYTE_ROLE + username: AIRBYTE_USER + warehouse: AIRBYTE_WAREHOUSE + processing: + chunk_size: 636281 + metadata_fields: + - user + text_fields: + - text + name: + workspaceId: 608a61e0-44aa-4790-ac43-6a9b517892be + putDestinationTeradata: + speakeasy-default-put-destination-teradata: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + host: broken-angel.name + schema: airbyte_td + username: Eula.Lakin + name: + workspaceId: bd1434dd-8c38-4924-9031-ca1c77469091 + putDestinationTimeplus: + speakeasy-default-put-destination-timeplus: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + apikey: + endpoint: https://us-west-2.timeplus.cloud/workspace_id + name: + workspaceId: 0d2f83be-fd2c-435c-b5b5-0024a5c6ed04 + putDestinationTypesense: + speakeasy-default-put-destination-typesense: + parameters: + path: + destinationId: + putDestinationVectara: + speakeasy-default-put-destination-vectara: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + corpus_name: + customer_id: + metadata_fields: + - user + oauth2: + client_id: + client_secret: + text_fields: + - users.*.name + title_field: document_key + name: + workspaceId: 30c0b3d6-b775-4fa7-a34d-61bb91a47efb + putDestinationWeaviate: + speakeasy-default-put-destination-weaviate: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + embedding: + api_base: https://your-resource-name.openai.azure.com + deployment: your-resource-name + openai_key: + indexing: + additional_headers: + - header_key: X-OpenAI-Api-Key + value: my-openai-api-key + host: https://my-cluster.weaviate.network + processing: + chunk_size: 189651 + metadata_fields: + - user.name + text_fields: + - text + name: + workspaceId: d8ec85d2-4471-4560-98de-b051b3f5b2ca + putDestinationYellowbrick: + speakeasy-default-put-destination-yellowbrick: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + database: + host: acclaimed-windscreen.net + port: "5432" + schema: public + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + username: Nannie.Treutel25 + name: + workspaceId: 30449a63-ff14-45d3-8257-21501211bf7b + putSource: + Source Update Request Example: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + airbyte_source_name: google-ads + conversion_window_days: 14 + customer_id: "1234567890" + end_date: 1704067200000 + start_date: 1672531200000 + name: My Source + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + Source Update Response Example: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + user: charles + name: + responses: + "200": + application/json: + configuration: + user: charles + name: running + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + putSourceAha: + speakeasy-default-put-source-aha: + parameters: + path: + sourceId: + putSourceAirbyte: + speakeasy-default-put-source-airbyte: + parameters: + path: + sourceId: + putSourceAircall: + speakeasy-default-put-source-aircall: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_id: + api_token: + start_date: "2022-03-01T00:00:00.000Z" + name: + workspaceId: 5afc8723-90e7-4990-bb4f-f63d5a31e98b + putSourceAirtable: + speakeasy-default-put-source-airtable: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + refresh_token: + name: + workspaceId: 8b8c2f49-9cec-43b2-b971-c347026ade11 + putSourceAmazonAds: + speakeasy-default-put-source-amazon-ads: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + client_id: + client_secret: + look_back_window: 10 + refresh_token: + start_date: "2022-10-10" + name: + workspaceId: c9f3d0c3-23aa-4fc1-8e92-68bd0f814a39 + putSourceAmazonSellerPartner: + speakeasy-default-put-source-amazon-seller-partner: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + lwa_app_id: + lwa_client_secret: + refresh_token: + replication_end_date: "2017-01-25T00:00:00Z" + replication_start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 6911c16b-c84d-4796-a20a-7b71a48808a9 + putSourceAmazonSqs: + speakeasy-default-put-source-amazon-sqs: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_key: xxxxxHRNxxx3TBxxxxxx + attributes_to_return: attr1,attr2 + max_batch_size: "5" + max_wait_time: "5" + queue_url: https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue + region: cn-northwest-1 + secret_key: hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz + visibility_timeout: "15" + name: + workspaceId: 53d735f1-1376-4426-ae2c-ab3d673b7458 + putSourceAmplitude: + speakeasy-default-put-source-amplitude: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + secret_key: + start_date: "2021-01-25T00:00:00Z" + name: + workspaceId: cac3da51-8898-47ef-91ee-3bceebf507e7 + putSourceApifyDataset: + speakeasy-default-put-source-apify-dataset: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + dataset_id: rHuMdwm6xCFt6WiGU + token: apify_api_PbVwb1cBbuvbfg2jRmAIHZKgx3NQyfEMG7uk + name: + workspaceId: 958efeea-8dfb-41d4-b3fd-9ed53c081060 + putSourceAppfollow: + speakeasy-default-put-source-appfollow: + parameters: + path: + sourceId: + putSourceAsana: + speakeasy-default-put-source-asana: + parameters: + path: + sourceId: + putSourceAuth0: + speakeasy-default-put-source-auth0: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + base_url: https://dev-yourOrg.us.auth0.com/ + credentials: + access_token: + start_date: "2023-08-05T00:43:59.244Z" + name: + workspaceId: 6a6f3746-db16-4eb5-9fa1-03e2b3ac7988 + putSourceAwsCloudtrail: + speakeasy-default-put-source-aws-cloudtrail: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + aws_key_id: + aws_secret_key: + lookup_attributes_filter: + attribute_key: EventName + attribute_value: ConsoleLogin + start_date: "2021-01-01" + name: + workspaceId: 3a174c80-9886-49c8-94a4-56fd2334d3f2 + putSourceAzureBlobStorage: + speakeasy-default-put-source-azure-blob-storage: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + azure_blob_storage_account_name: airbyte5storage + azure_blob_storage_container_name: airbytetescontainername + azure_blob_storage_endpoint: blob.core.windows.net + credentials: + client_id: + client_secret: + refresh_token: + tenant_id: + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: 65759286-3e02-4eae-96c2-a953813e4c0e + putSourceAzureTable: + speakeasy-default-put-source-azure-table: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + storage_access_key: + storage_account_name: + storage_endpoint_suffix: core.windows.net + name: + workspaceId: 4e520dd1-64e1-4f9a-a112-f8e3342d2384 + putSourceBambooHr: + speakeasy-default-put-source-bamboo-hr: + parameters: + path: + sourceId: + putSourceBasecamp: + speakeasy-default-put-source-basecamp: + parameters: + path: + sourceId: + putSourceBigquery: + speakeasy-default-put-source-bigquery: + parameters: + path: + sourceId: + putSourceBingAds: + speakeasy-default-put-source-bing-ads: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + client_id: + custom_reports: [] + developer_token: + refresh_token: + name: + workspaceId: be30f9e6-b0c2-4636-861d-dca3a54a43f3 + putSourceBraintree: + speakeasy-default-put-source-braintree: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + environment: Qa + merchant_id: + private_key: + public_key: + start_date: "2020-11-22 20:20:05" + name: + workspaceId: c3f7c0af-f8ce-4a09-bd09-57b231100e71 + putSourceBraze: + speakeasy-default-put-source-braze: + parameters: + path: + sourceId: + putSourceBreezyHr: + speakeasy-default-put-source-breezy-hr: + parameters: + path: + sourceId: + putSourceCalendly: + speakeasy-default-put-source-calendly: + parameters: + path: + sourceId: + putSourceCart: + speakeasy-default-put-source-cart: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2021-01-01T00:00:00Z" + name: + workspaceId: 5d482192-2f74-41ec-abe5-a12430bcee1e + putSourceChargebee: + speakeasy-default-put-source-chargebee: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + site: airbyte-test + site_api_key: + start_date: "2021-01-25T00:00:00Z" + name: + workspaceId: 9897b411-932b-491f-ab89-ac417a1dd2fd + putSourceChartmogul: + speakeasy-default-put-source-chartmogul: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: acf2e341-f754-471e-a7e2-fc5a1a40ab24 + putSourceClazar: + speakeasy-default-put-source-clazar: + parameters: + path: + sourceId: + putSourceClickhouse: + speakeasy-default-put-source-clickhouse: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + database: default + host: easy-algorithm.biz + port: "8123" + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + username: Wilbert_Willms + name: + workspaceId: c92fef9f-bf6f-4c4c-8ffc-7561c1dd5a0d + putSourceClickupApi: + speakeasy-default-put-source-clickup-api: + parameters: + path: + sourceId: + putSourceClockify: + speakeasy-default-put-source-clockify: + parameters: + path: + sourceId: + putSourceCloseCom: + speakeasy-default-put-source-close-com: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + start_date: "2021-01-01" + name: + workspaceId: 9e1f13bd-4f46-4bd1-802d-d6022388a774 + putSourceCoda: + speakeasy-default-put-source-coda: + parameters: + path: + sourceId: + putSourceCoinApi: + speakeasy-default-put-source-coin-api: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + end_date: 2019-01-01T00:00:00 + period: 2MTH + start_date: 2019-01-01T00:00:00 + symbol_id: + name: + workspaceId: 9fd1ed49-fb63-4595-a9e6-45f495b107fa + putSourceCoinmarketcap: + speakeasy-default-put-source-coinmarketcap: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + data_type: latest + symbols: + - BTC + name: + workspaceId: 06f1fdc6-547d-4f6d-bdd8-67ca6f2cd366 + putSourceConfigcat: + speakeasy-default-put-source-configcat: + parameters: + path: + sourceId: + putSourceConfluence: + speakeasy-default-put-source-confluence: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_token: + domain_name: kind-toy.com + email: abc@example.com + name: + workspaceId: aa0587d9-d8d3-46e7-a1e6-9be658fb9aca + putSourceConvex: + speakeasy-default-put-source-convex: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_key: + deployment_url: https://murky-swan-635.convex.cloud + name: + workspaceId: 2e4cb3df-c1a8-492d-8a3f-6b62af98d7c8 + putSourceCustom: + speakeasy-default-put-source-custom: + parameters: + path: + sourceId: + putSourceCustomerIo: + speakeasy-default-put-source-customer-io: + parameters: + path: + sourceId: + putSourceDatadog: + speakeasy-default-put-source-datadog: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + application_key: + end_date: "2022-10-01T00:00:00Z" + start_date: "2022-10-01T00:00:00Z" + name: + workspaceId: b3f09dda-4566-42be-bdf6-d316ba2bba7a + putSourceDatascope: + speakeasy-default-put-source-datascope: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + start_date: dd/mm/YYYY HH:MM + name: + workspaceId: afa13667-dc57-4f55-9934-2ffaeefb1757 + putSourceDbt: + speakeasy-default-put-source-dbt: + parameters: + path: + sourceId: + putSourceDelighted: + speakeasy-default-put-source-delighted: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + since: "2022-05-30T04:50:23Z" + name: + workspaceId: 67b256bb-0d74-45a0-8df5-38c6e93ca312 + putSourceDixa: + speakeasy-default-put-source-dixa: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_token: + batch_size: 31 + start_date: YYYY-MM-DD + name: + workspaceId: e452500e-5f0a-4c5a-b527-ed4cfb14972a + putSourceDockerhub: + speakeasy-default-put-source-dockerhub: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + docker_username: airbyte + name: + workspaceId: d2c9da68-7c98-465f-ba41-a9d458b9d143 + putSourceDremio: + speakeasy-default-put-source-dremio: + parameters: + path: + sourceId: + putSourceDynamodb: + speakeasy-default-put-source-dynamodb: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + endpoint: https://{aws_dynamo_db_url}.com + reserved_attribute_names: name, field_name, field-name + name: + workspaceId: 47e93bd7-aeb6-43f7-b5f9-22639e44691f + putSourceEmailoctopus: + speakeasy-default-put-source-emailoctopus: + parameters: + path: + sourceId: + putSourceExchangeRates: + speakeasy-default-put-source-exchange-rates: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_key: + base: EUR + start_date: YYYY-MM-DD + name: + workspaceId: 0cbf2be1-5527-422a-ab9a-30762781f2bc + putSourceFacebookMarketing: + speakeasy-default-put-source-facebook-marketing: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + account_ids: + - "111111111111111" + credentials: + client_id: + client_secret: + custom_insights: [] + end_date: "2017-01-26T00:00:00Z" + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 7ab14592-7d57-41bc-80bc-6f71fdb145b5 + putSourceFaker: + speakeasy-default-put-source-faker: + parameters: + path: + sourceId: + putSourceFauna: + speakeasy-default-put-source-fauna: + parameters: + path: + sourceId: + putSourceFile: + speakeasy-default-put-source-file: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + dataset_name: + reader_options: "{\"sep\": \"\t\", \"header\": 0, \"names\": [\"column1\", \"column2\"] }" + url: https://storage.googleapis.com/covid19-open-data/v2/latest/epidemiology.csv + name: + workspaceId: e80c4cd0-f275-427b-b261-709d02d60a63 + putSourceFirebolt: + speakeasy-default-put-source-firebolt: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + account: "58574502" + client_id: bbl9qth066hmxkwyb0hy2iwk8ktez9dz + client_secret: + database: + engine: + host: api.app.firebolt.io + name: + workspaceId: 6f10e447-1ae5-4d53-976e-808ff4fca995 + putSourceFleetio: + speakeasy-default-put-source-fleetio: + parameters: + path: + sourceId: + putSourceFreshcaller: + speakeasy-default-put-source-freshcaller: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + domain: snaptravel + start_date: "2022-01-01T12:00:00Z" + name: + workspaceId: 71e8a275-288b-44e1-835b-b87ce84951c8 + putSourceFreshdesk: + speakeasy-default-put-source-freshdesk: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + domain: myaccount.freshdesk.com + start_date: "2020-12-01T00:00:00Z" + name: + workspaceId: f6e79c34-be44-4da1-8298-b91f728a0460 + putSourceFreshsales: + speakeasy-default-put-source-freshsales: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + domain_name: mydomain.myfreshworks.com + name: + workspaceId: 7993e870-ec4c-46e6-ab82-606e4a2b6e38 + putSourceGainsightPx: + speakeasy-default-put-source-gainsight-px: + parameters: + path: + sourceId: + putSourceGcs: + speakeasy-default-put-source-gcs: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + bucket: + service_account: + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: 6c59de50-6956-492f-80a3-c9d8601304df + putSourceGetlago: + speakeasy-default-put-source-getlago: + parameters: + path: + sourceId: + putSourceGithub: + speakeasy-default-put-source-github: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_url: https://github.company.org + branch: airbytehq/airbyte/master airbytehq/airbyte/my-branch + branches: + - airbytehq/airbyte/my-branch + credentials: + access_token: + max_waiting_time: 30 + repositories: + - airbytehq/* + repository: airbytehq/* + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: 4cfeb046-d067-4280-9c5d-5eedc0787454 + putSourceGitlab: + speakeasy-default-put-source-gitlab: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_url: https://gitlab.com + credentials: + access_token: + client_id: + client_secret: + refresh_token: + token_expiry_date: "2022-06-30T14:16:37.831Z" + groups: airbyte.io + groups_list: + - airbyte.io + projects: airbyte.io/documentation + projects_list: + - airbyte.io/documentation + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: c642ea78-ee9c-437a-a244-97b7e9a1237c + putSourceGlassfrog: + speakeasy-default-put-source-glassfrog: + parameters: + path: + sourceId: + putSourceGnews: + speakeasy-default-put-source-gnews: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + end_date: "2022-08-21 16:27:09" + query: Apple AND NOT iPhone + start_date: "2022-08-21 16:27:09" + top_headlines_query: Microsoft Windows 10 + name: + workspaceId: 2a0f629c-f6c1-46db-9dfc-9201bf197261 + putSourceGoldcast: + speakeasy-default-put-source-goldcast: + parameters: + path: + sourceId: + putSourceGoogleAds: + speakeasy-default-put-source-google-ads: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + conversion_window_days: 14 + credentials: + client_id: + client_secret: + developer_token: + refresh_token: + custom_queries_array: [] + customer_id: 6783948572,5839201945 + end_date: "2017-01-30" + start_date: "2017-01-25" + name: + workspaceId: 0dfb5842-b546-4e72-8cfc-f962a475b9ce + putSourceGoogleAnalyticsDataApi: + speakeasy-default-put-source-google-analytics-data-api: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + credentials_json: '{ "type": "service_account", "project_id": YOUR_PROJECT_ID, "private_key_id": YOUR_PRIVATE_KEY, ... }' + custom_reports_array: [] + date_ranges_start_date: "2021-01-01" + lookback_window: 3 + property_ids: + - "1738294" + - "5729978930" + window_in_days: 30 + name: + workspaceId: 852f7141-954b-4521-9d5b-497b9a6a5e75 + putSourceGoogleDirectory: + speakeasy-default-put-source-google-directory: + parameters: + path: + sourceId: + putSourceGoogleDrive: + speakeasy-default-put-source-google-drive: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + refresh_token: + folder_url: https://drive.google.com/drive/folders/1Xaz0vXXXX2enKnNYU5qSt9NS70gvMyYn + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: be6647b8-dbc9-4853-b104-639b6524aee5 + putSourceGooglePagespeedInsights: + speakeasy-default-put-source-google-pagespeed-insights: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + categories: [] + strategies: [] + urls: + - https://example.com + name: + workspaceId: 06e22f3e-b5b6-4bbf-aaa5-4b542b2855f0 + putSourceGoogleSearchConsole: + speakeasy-default-put-source-google-search-console: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + authorization: + client_id: + client_secret: + refresh_token: + data_state: final + end_date: "2021-12-12" + site_urls: + - https://example1.com/ + name: + workspaceId: 8f61fc79-7435-41b1-b7b9-ea9168b64028 + putSourceGoogleSheets: + speakeasy-default-put-source-google-sheets: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + service_account_info: '{ "type": "service_account", "project_id": YOUR_PROJECT_ID, "private_key_id": YOUR_PRIVATE_KEY, ... }' + spreadsheet_id: https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit + name: + workspaceId: f10ca325-927e-4af5-9f9f-cda8b6946821 + putSourceGoogleWebfonts: + speakeasy-default-put-source-google-webfonts: + parameters: + path: + sourceId: + putSourceGreenhouse: + speakeasy-default-put-source-greenhouse: + parameters: + path: + sourceId: + putSourceGridly: + speakeasy-default-put-source-gridly: + parameters: + path: + sourceId: + putSourceHardcodedRecords: + speakeasy-default-put-source-hardcoded-records: + parameters: + path: + sourceId: + putSourceHarvest: + speakeasy-default-put-source-harvest: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + account_id: + replication_end_date: "2017-01-25T00:00:00Z" + replication_start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 859fe472-51ad-4df8-993d-0be7530e8d1f + putSourceHibob: + speakeasy-default-put-source-hibob: + parameters: + path: + sourceId: + putSourceHighLevel: + speakeasy-default-put-source-high-level: + parameters: + path: + sourceId: + putSourceHubplanner: + speakeasy-default-put-source-hubplanner: + parameters: + path: + sourceId: + putSourceHubspot: + speakeasy-default-put-source-hubspot: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + access_token: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 66d8d8c7-4d80-4ffd-a5de-6becff08abab + putSourceInsightly: + speakeasy-default-put-source-insightly: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2021-03-01T00:00:00Z" + token: + name: + workspaceId: fc52cca7-df98-4aea-a0ee-e050843b605e + putSourceInstagram: + speakeasy-default-put-source-instagram: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_token: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 371172ea-9e73-4f3c-979c-36eb10203be9 + putSourceInstatus: + speakeasy-default-put-source-instatus: + parameters: + path: + sourceId: + putSourceIntercom: + speakeasy-default-put-source-intercom: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_token: + activity_logs_time_step: 5 + start_date: "2020-11-16T00:00:00Z" + name: + workspaceId: 6721160d-4cc4-4f40-a375-86ce6a368779 + putSourceIp2whois: + speakeasy-default-put-source-ip2whois: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + domain: www.facebook.com + name: + workspaceId: 17e459da-2dbe-45d6-abb4-35bd53504477 + putSourceIterable: + speakeasy-default-put-source-iterable: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + start_date: "2021-04-01T00:00:00Z" + name: + workspaceId: cd263b13-602a-46ef-b949-7c877a6f1371 + putSourceJira: + speakeasy-default-put-source-jira: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_token: + domain: .jira.com + email: Trystan.Kassulke@hotmail.com + lookback_window_minutes: 60 + projects: + - PROJ1 + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: d8dc5b10-2e9e-4f5c-9956-919de7dc0c1d + putSourceK6Cloud: + speakeasy-default-put-source-k6-cloud: + parameters: + path: + sourceId: + putSourceKlarna: + speakeasy-default-put-source-klarna: + parameters: + path: + sourceId: + putSourceKlaviyo: + speakeasy-default-put-source-klaviyo: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: cac53662-cc4c-4754-85fa-df08519e689c + putSourceKyve: + speakeasy-default-put-source-kyve: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + pool_ids: "0" + start_ids: 0,0 + url_base: https://api.kaon.kyve.network/ + name: + workspaceId: f45acf60-0c6f-4706-b416-269a4b9614d1 + putSourceLaunchdarkly: + speakeasy-default-put-source-launchdarkly: + parameters: + path: + sourceId: + putSourceLeadfeeder: + speakeasy-default-put-source-leadfeeder: + parameters: + path: + sourceId: + putSourceLemlist: + speakeasy-default-put-source-lemlist: + parameters: + path: + sourceId: + putSourceLeverHiring: + speakeasy-default-put-source-lever-hiring: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: 5e60f692-0d7c-4661-a712-c55b73304379 + putSourceLinkedinAds: + speakeasy-default-put-source-linkedin-ads: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + account_ids: + - "123456789" + start_date: "2021-05-17" + name: + workspaceId: 09ea099e-5aaf-4c67-baea-8055738ebe18 + putSourceLinkedinPages: + speakeasy-default-put-source-linkedin-pages: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + org_id: "123456789" + name: + workspaceId: 0e88ad06-1964-4224-8bbb-05a0f96cb1e3 + putSourceLinnworks: + speakeasy-default-put-source-linnworks: + parameters: + path: + sourceId: + putSourceLokalise: + speakeasy-default-put-source-lokalise: + parameters: + path: + sourceId: + putSourceLooker: + speakeasy-default-put-source-looker: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + client_id: + client_secret: + domain: 123.123.124.123:8000 + name: + workspaceId: d9a72ac6-4fa9-4d92-b2d3-66b1d6a96c93 + putSourceLuma: + speakeasy-default-put-source-luma: + parameters: + path: + sourceId: + putSourceMailchimp: + speakeasy-default-put-source-mailchimp: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2020-01-01T00:00:00.000Z" + name: + workspaceId: e3778752-e4ea-48b7-8689-741eef89604a + putSourceMailgun: + speakeasy-default-put-source-mailgun: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + private_key: + start_date: "2023-08-01T00:00:00Z" + name: + workspaceId: 25d13a21-ca59-4fef-b923-c9a799e7b739 + putSourceMailjetSms: + speakeasy-default-put-source-mailjet-sms: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + end_date: 1666281656 + start_date: 1666261656 + token: + name: + workspaceId: b4bac2f7-c0c3-4449-902c-eaa155292a72 + putSourceMarketo: + speakeasy-default-put-source-marketo: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + client_id: + client_secret: + domain_url: https://000-AAA-000.mktorest.com + start_date: "2020-09-25T00:00:00Z" + name: + workspaceId: a84df6e4-07e7-4f12-b206-5c4cdce9da3f + putSourceMetabase: + speakeasy-default-put-source-metabase: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + instance_api_url: https://localhost:3000/api/ + username: Morton_Kub95 + name: + workspaceId: e8d5931c-5583-4a06-bb60-93806b3e2a12 + putSourceMicrosoftOnedrive: + speakeasy-default-put-source-microsoft-onedrive: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + tenant_id: + user_principal_name: + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: 29b4ef36-19fb-4c9a-967f-3d04329a48e8 + putSourceMicrosoftSharepoint: + speakeasy-default-put-source-microsoft-sharepoint: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + client_id: + client_secret: + tenant_id: + user_principal_name: + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: d07ff7d6-3947-404f-8b87-c8d2a4d52165 + putSourceMicrosoftTeams: + speakeasy-default-put-source-microsoft-teams: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + period: D7 + name: + workspaceId: 27bd088e-29d8-4981-a4cb-d35eb9f3b54b + putSourceMixpanel: + speakeasy-default-put-source-mixpanel: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + project_id: 956963 + secret: + username: Jaleel7 + end_date: "2021-11-16" + project_timezone: UTC + start_date: "2021-11-16" + name: + workspaceId: a7e22279-cec7-4ea3-ad6b-9c5d053f346e + putSourceMonday: + speakeasy-default-put-source-monday: + parameters: + path: + sourceId: + putSourceMongodbV2: + speakeasy-default-put-source-mongodb-v2: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + database_config: + auth_source: admin + connection_string: mongodb://example.host.com:27017/ + database: + name: + workspaceId: b11a4e7e-bce8-4531-bfc2-0dfcb1293e0d + putSourceMssql: + speakeasy-default-put-source-mssql: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + database: master + host: untrue-clip.biz + password: mZyQRUfn1WtuPRb + port: "1433" + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + username: Chyna_Romaguera + name: + workspaceId: 39cb22e1-ee9b-4b88-9dda-fb83aa4f4e29 + putSourceMyHours: + speakeasy-default-put-source-my-hours: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + email: john@doe.com + logs_batch_size: 30 + password: rRN2ekV5LEvnx_B + start_date: "2016-01-01" + name: + workspaceId: 15380582-a97f-460b-8b05-e82eb8ffd2e6 + putSourceMysql: + speakeasy-default-put-source-mysql: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + database: + host: mad-apse.name + port: "3306" + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + username: Wilhelm81 + name: + workspaceId: a840d348-a342-444f-8f85-12bc6b858af2 + putSourceNetsuite: + speakeasy-default-put-source-netsuite: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + consumer_key: + consumer_secret: + object_types: + - customer + realm: + start_datetime: "2017-01-25T00:00:00Z" + token_key: + token_secret: + name: + workspaceId: 84a14c5d-6843-41f6-a890-792f5a3c9652 + putSourceNorthpassLms: + speakeasy-default-put-source-northpass-lms: + parameters: + path: + sourceId: + putSourceNotion: + speakeasy-default-put-source-notion: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2020-11-16T00:00:00.000Z" + name: + workspaceId: c847397d-4123-42c5-8bf8-be53d297a2a8 + putSourceNytimes: + speakeasy-default-put-source-nytimes: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + end_date: 2022-08 + period: 1 + start_date: 2022-08 + name: + workspaceId: e37f4dca-f8d7-4275-8b88-2c8e9a1a77bc + putSourceOkta: + speakeasy-default-put-source-okta: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2022-07-22T00:00:00Z" + name: + workspaceId: ce44ec80-407e-4718-bc22-31e6242d06f8 + putSourceOmnisend: + speakeasy-default-put-source-omnisend: + parameters: + path: + sourceId: + putSourceOnesignal: + speakeasy-default-put-source-onesignal: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + applications: [] + outcome_names: os__session_duration.count,os__click.count,CustomOutcomeName.sum + start_date: "2020-11-16T00:00:00Z" + user_auth_key: + name: + workspaceId: 0bad2588-0a1c-4653-9074-e86373925793 + putSourceOracle: + speakeasy-default-put-source-oracle: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + host: scholarly-gladiolus.name + username: Myrna_Kuhlman2 + name: + workspaceId: 6ac94725-6e0d-465b-b6d2-492916df24ba + putSourceOrb: + speakeasy-default-put-source-orb: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + end_date: "2024-03-01T00:00:00Z" + start_date: "2022-03-01T00:00:00Z" + name: + workspaceId: 81743122-0884-4bc4-8047-4a3a1518a3e9 + putSourceOrbit: + speakeasy-default-put-source-orbit: + parameters: + path: + sourceId: + putSourceOutbrainAmplify: + speakeasy-default-put-source-outbrain-amplify: + parameters: + path: + sourceId: + putSourceOutreach: + speakeasy-default-put-source-outreach: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + client_id: + client_secret: + redirect_uri: + refresh_token: + start_date: "2020-11-16T00:00:00Z" + name: + workspaceId: 020b57c7-3528-4e7f-a7b5-6348ce2874c8 + putSourcePaypalTransaction: + speakeasy-default-put-source-paypal-transaction: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + client_id: + client_secret: + dispute_start_date: "2021-06-11T23:59:59.000Z" + end_date: "2021-06-11T23:59:59Z" + start_date: "2021-06-11T23:59:59Z" + name: + workspaceId: 7c94d6e0-c944-4133-b126-d6c428a04e20 + putSourcePaystack: + speakeasy-default-put-source-paystack: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + secret_key: + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 71c44e50-7766-41e8-b2f0-f0c889d85b66 + putSourcePendo: + speakeasy-default-put-source-pendo: + parameters: + path: + sourceId: + putSourcePennylane: + speakeasy-default-put-source-pennylane: + parameters: + path: + sourceId: + putSourcePersistiq: + speakeasy-default-put-source-persistiq: + parameters: + path: + sourceId: + putSourcePexelsApi: + speakeasy-default-put-source-pexels-api: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + color: red + locale: en-US + orientation: landscape + query: people + size: large + name: + workspaceId: a4617d11-ce8d-45ec-8f31-8107c4abb422 + putSourcePinterest: + speakeasy-default-put-source-pinterest: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + custom_reports: [] + start_date: "2022-07-28" + name: + workspaceId: 6ad463d5-f99d-47d9-b6b8-c45656c807f0 + putSourcePipedrive: + speakeasy-default-put-source-pipedrive: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_token: + replication_start_date: 2017-01-25 00:00:00Z + name: + workspaceId: 7ec36229-d335-4c78-b92e-29b588cd250d + putSourcePlanhat: + speakeasy-default-put-source-planhat: + parameters: + path: + sourceId: + putSourcePocket: + speakeasy-default-put-source-pocket: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_token: + consumer_key: + since: "2022-10-20 14:14:14" + name: + workspaceId: 373c90ef-1f98-47ed-a5d5-09aa170efed3 + putSourcePokeapi: + speakeasy-default-put-source-pokeapi: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + pokemon_name: snorlax + name: + workspaceId: 9be8de01-c3ab-47c0-a0cc-f252606d06d4 + putSourcePolygonStockApi: + speakeasy-default-put-source-polygon-stock-api: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + adjusted: "true" + apiKey: + end_date: "2020-10-14" + limit: 120 + multiplier: 2 + sort: desc + start_date: "2020-10-14" + stocksTicker: MSFT + timespan: day + name: + workspaceId: bc9aaa4b-901c-4d57-b816-04ece98763f0 + putSourcePostgres: + speakeasy-default-put-source-postgres: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + database: + host: hilarious-fowl.name + port: "5432" + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + username: Eugenia.Parker + name: + workspaceId: 0ea97c8c-6c85-49a7-a4a8-82adbc1993e4 + putSourcePosthog: + speakeasy-default-put-source-posthog: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + base_url: https://posthog.example.com + events_time_step: 10 + start_date: "2021-01-01T00:00:00Z" + name: + workspaceId: 036e1a81-1b8e-49f6-842c-e8709581acec + putSourcePostmarkapp: + speakeasy-default-put-source-postmarkapp: + parameters: + path: + sourceId: + putSourcePrestashop: + speakeasy-default-put-source-prestashop: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_key: + start_date: "2022-01-01" + url: http://broken-toothpaste.net + name: + workspaceId: c482faab-a41b-4144-8512-b4a7437d50fd + putSourcePypi: + speakeasy-default-put-source-pypi: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + project_name: sampleproject + version: 1.2.0 + name: + workspaceId: dc777f12-00fb-44e7-8d41-5c7f426f1dbd + putSourceQualaroo: + speakeasy-default-put-source-qualaroo: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + key: + start_date: "2021-03-01T00:00:00.000Z" + token: + name: + workspaceId: 1b09a7d5-3c42-4b8d-a2c1-5364c6296a5c + putSourceRailz: + speakeasy-default-put-source-railz: + parameters: + path: + sourceId: + putSourceRecharge: + speakeasy-default-put-source-recharge: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_token: + start_date: "2021-05-14T00:00:00Z" + name: + workspaceId: f3dc73e8-5332-4f24-9a0e-1b70f0ed9e6f + putSourceRecreation: + speakeasy-default-put-source-recreation: + parameters: + path: + sourceId: + putSourceRecruitee: + speakeasy-default-put-source-recruitee: + parameters: + path: + sourceId: + putSourceRecurly: + speakeasy-default-put-source-recurly: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + begin_time: 2021-12-01T00:00:00 + end_time: 2021-12-01T00:00:00 + name: + workspaceId: 5298a436-a858-445f-8360-6727a451c8a8 + putSourceReddit: + speakeasy-default-put-source-reddit: + parameters: + path: + sourceId: + putSourceRedshift: + speakeasy-default-put-source-redshift: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + database: master + host: some-force.org + password: pqctJ13gELNpBen + port: "5439" + schemas: + - public + username: Hillard.Wolff47 + name: + workspaceId: 0f6d3758-f934-450a-9766-dbe4a4a031d1 + putSourceRetently: + speakeasy-default-put-source-retently: + parameters: + path: + sourceId: + putSourceRkiCovid: + speakeasy-default-put-source-rki-covid: + parameters: + path: + sourceId: + putSourceRss: + speakeasy-default-put-source-rss: + parameters: + path: + sourceId: + putSourceS3: + speakeasy-default-put-source-s3: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + bucket: + endpoint: my-s3-endpoint.com + path_pattern: myFolder/myTableFiles/*.csv|myFolder/myOtherTableFiles/*.csv + provider: + start_date: "2021-01-01T00:00:00Z" + schema: '{"column_1": "number", "column_2": "string", "column_3": "array", "column_4": "object", "column_5": "boolean"}' + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + name: + workspaceId: 1a023507-b069-4191-9744-686156459ab2 + putSourceSalesforce: + speakeasy-default-put-source-salesforce: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + client_id: + client_secret: + refresh_token: + start_date: "2021-07-25T00:00:00Z" + stream_slice_step: P1Y + name: + workspaceId: 21f37cf0-319f-476a-b85a-ec34e3b4806b + putSourceSalesloft: + speakeasy-default-put-source-salesloft: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + access_token: + client_id: + client_secret: + refresh_token: + token_expiry_date: "2024-01-30T11:28:39.488Z" + start_date: "2020-11-16T00:00:00Z" + name: + workspaceId: c0440a90-d34f-4a54-b42e-2b7194cbf193 + putSourceSapFieldglass: + speakeasy-default-put-source-sap-fieldglass: + parameters: + path: + sourceId: + putSourceSavvycal: + speakeasy-default-put-source-savvycal: + parameters: + path: + sourceId: + putSourceScryfall: + speakeasy-default-put-source-scryfall: + parameters: + path: + sourceId: + putSourceSecoda: + speakeasy-default-put-source-secoda: + parameters: + path: + sourceId: + putSourceSendgrid: + speakeasy-default-put-source-sendgrid: + parameters: + path: + sourceId: + putSourceSendinblue: + speakeasy-default-put-source-sendinblue: + parameters: + path: + sourceId: + putSourceSenseforce: + speakeasy-default-put-source-senseforce: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_token: + backend_url: https://galaxyapi.senseforce.io + dataset_id: 8f418098-ca28-4df5-9498-0df9fe78eda7 + slice_range: 3 + start_date: "2017-01-25" + name: + workspaceId: af67d781-caac-48d4-a94f-594721b9ffba + putSourceSentry: + speakeasy-default-put-source-sentry: + parameters: + path: + sourceId: + putSourceSftp: + speakeasy-default-put-source-sftp: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + file_pattern: log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd` + file_types: csv + folder_path: /logs/2022 + host: www.host.com + port: "22" + user: Gregory57 + name: + workspaceId: 267461f8-ecda-46de-aec1-272684b59804 + putSourceSftpBulk: + speakeasy-default-put-source-sftp-bulk: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + password: pJfdgaQb99qZ9KB + folder_path: /logs/2022 + host: 192.0.2.1 + port: "22" + start_date: "2021-01-01T00:00:00.000000Z" + streams: [] + username: Miller_Keebler82 + name: + workspaceId: 367a0670-62ed-496f-8e03-05de5c753565 + putSourceShopify: + speakeasy-default-put-source-shopify: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + shop: my-store.myshopify.com + name: + workspaceId: 40f724ba-5f1c-4ea3-bc71-3c89ddcf3373 + putSourceShortio: + speakeasy-default-put-source-shortio: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + domain_id: + secret_key: + start_date: "2023-07-30T03:43:59.244Z" + name: + workspaceId: 4b703b96-7459-4636-9156-44f9b65979ea + putSourceSlack: + speakeasy-default-put-source-slack: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + channel_filter: + - channel_two + lookback_window: 7 + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 22f83b24-515e-4dd4-a713-07f78c8a109e + putSourceSmaily: + speakeasy-default-put-source-smaily: + parameters: + path: + sourceId: + putSourceSmartengage: + speakeasy-default-put-source-smartengage: + parameters: + path: + sourceId: + putSourceSmartsheets: + speakeasy-default-put-source-smartsheets: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + access_token: + client_id: + client_secret: + refresh_token: + token_expiry_date: "2023-07-28T16:02:27.807Z" + spreadsheet_id: + start_datetime: 2000-01-01T13:00:00 + name: + workspaceId: 84a9da1c-6e40-45da-bca5-3270e7e6686f + putSourceSnapchatMarketing: + speakeasy-default-put-source-snapchat-marketing: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + client_id: + client_secret: + end_date: "2022-01-30" + refresh_token: + start_date: "2022-01-01" + name: + workspaceId: f0e7c3f3-0da3-4c8a-8e40-deda5d07d94d + putSourceSnowflake: + speakeasy-default-put-source-snowflake: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + password: H22vQ4zHfmOXWPh + username: AIRBYTE_USER + database: AIRBYTE_DATABASE + host: accountname.us-east-2.aws.snowflakecomputing.com + role: AIRBYTE_ROLE + schema: AIRBYTE_SCHEMA + warehouse: AIRBYTE_WAREHOUSE + name: + workspaceId: 674c7fdd-b793-4521-b37a-55eda3ed33a0 + putSourceSonarCloud: + speakeasy-default-put-source-sonar-cloud: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + component_keys: + - airbyte-ws-checkout + end_date: YYYY-MM-DD + organization: airbyte + start_date: YYYY-MM-DD + user_token: + name: + workspaceId: 08dfd9b2-9877-47b3-ae9c-0325f0990c2b + putSourceSpacexApi: + speakeasy-default-put-source-spacex-api: + parameters: + path: + sourceId: + putSourceSquare: + speakeasy-default-put-source-square: + parameters: + path: + sourceId: + putSourceStrava: + speakeasy-default-put-source-strava: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + athlete_id: "17831421" + client_id: "12345" + client_secret: fc6243f283e51f6ca989aab298b17da125496f50 + refresh_token: fc6243f283e51f6ca989aab298b17da125496f50 + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: 8efa1126-f729-4180-87da-1a3902c3d135 + putSourceStripe: + speakeasy-default-put-source-stripe: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + account_id: + call_rate_limit: 100 + client_secret: + num_workers: 1 + slice_range: 360 + start_date: "2017-01-25T00:00:00Z" + name: + workspaceId: 0caf7586-8bb4-4e22-8d5f-1e8acc56a182 + putSourceSurveySparrow: + speakeasy-default-put-source-survey-sparrow: + parameters: + path: + sourceId: + putSourceSurveymonkey: + speakeasy-default-put-source-surveymonkey: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + access_token: + start_date: "2021-01-01T00:00:00Z" + name: + workspaceId: 5950d05a-ff94-46ae-85af-5a45d0592be9 + putSourceTempo: + speakeasy-default-put-source-tempo: + parameters: + path: + sourceId: + putSourceTheGuardianApi: + speakeasy-default-put-source-the-guardian-api: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + end_date: YYYY-MM-DD + query: environment AND political + section: technology + start_date: YYYY-MM-DD + tag: environment/recycling + name: + workspaceId: 225a2284-b6ce-47b9-81ae-70b97b656f2b + putSourceTiktokMarketing: + speakeasy-default-put-source-tiktok-marketing: + parameters: + path: + sourceId: + putSourceTrello: + speakeasy-default-put-source-trello: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + key: + start_date: "2021-03-01T00:00:00Z" + token: + name: + workspaceId: 830648b0-0800-41c6-b6b8-4ec03d1b4f12 + putSourceTrustpilot: + speakeasy-default-put-source-trustpilot: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + business_units: + - www.mydomain.com + credentials: + access_token: + client_id: + client_secret: + refresh_token: + token_expiry_date: "2024-05-28T13:22:10.593Z" + start_date: '%Y-%m-%dT%H:%M:%SZ' + name: + workspaceId: 9106a39b-475e-47a7-9647-0ffa7fd33727 + putSourceTvmazeSchedule: + speakeasy-default-put-source-tvmaze-schedule: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + domestic_schedule_country_code: GB + start_date: + web_schedule_country_code: global + name: + workspaceId: 0f73d3fd-3fb1-49bd-bdec-fe52a98f12fd + putSourceTwilio: + speakeasy-default-put-source-twilio: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + account_sid: + auth_token: + lookback_window: 60 + start_date: "2020-10-01T00:00:00Z" + name: + workspaceId: 54e76028-be7f-4706-85ae-4652b1696846 + putSourceTwilioTaskrouter: + speakeasy-default-put-source-twilio-taskrouter: + parameters: + path: + sourceId: + putSourceTwitter: + speakeasy-default-put-source-twitter: + parameters: + path: + sourceId: + putSourceTypeform: + speakeasy-default-put-source-typeform: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + credentials: + access_token: + start_date: "2021-03-01T00:00:00Z" + name: + workspaceId: 1397bb6d-68aa-4497-854f-cc19f0ea0125 + putSourceUsCensus: + speakeasy-default-put-source-us-census: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + query_params: get=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:* + query_path: data/timeseries/healthins/sahie + name: + workspaceId: 2e0dd6f1-7f21-4810-8711-d686a0d31e73 + putSourceVantage: + speakeasy-default-put-source-vantage: + parameters: + path: + sourceId: + putSourceWebflow: + speakeasy-default-put-source-webflow: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + accept_version: 1.0.0 + api_key: a very long hex sequence + site_id: a relatively long hex sequence + name: + workspaceId: f25028c7-9fcf-4b25-927e-601c61c7870e + putSourceWhiskyHunter: + speakeasy-default-put-source-whisky-hunter: + parameters: + path: + sourceId: + putSourceWikipediaPageviews: + speakeasy-default-put-source-wikipedia-pageviews: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access: mobile-web + agent: spider + article: Are_You_the_One%3F + country: FR + end: + project: en.wikipedia.org + start: + name: + workspaceId: ae1ff341-ede9-4205-8d6f-298a0b10fb6a + putSourceWoocommerce: + speakeasy-default-put-source-woocommerce: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_key: + api_secret: + shop: + start_date: "2021-01-01" + name: + workspaceId: 0c821143-c2a9-4b4b-9f52-9ebf9e056755 + putSourceXkcd: + speakeasy-default-put-source-xkcd: + parameters: + path: + sourceId: + putSourceYandexMetrica: + speakeasy-default-put-source-yandex-metrica: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + auth_token: + counter_id: + end_date: "2022-01-01" + start_date: "2022-01-01" + name: + workspaceId: 56feb6ca-3875-4d44-aa61-3893704f37b8 + putSourceYotpo: + speakeasy-default-put-source-yotpo: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + access_token: + app_key: + start_date: "2022-03-01T00:00:00.000Z" + name: + workspaceId: 55480ac2-01fd-49cd-86a8-94ed9a9c1596 + putSourceYoutubeAnalytics: + speakeasy-default-put-source-youtube-analytics: + parameters: + path: + sourceId: + putSourceZendeskChat: + speakeasy-default-put-source-zendesk-chat: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2021-02-01T00:00:00Z" + name: + workspaceId: 2f223323-d35e-4ffe-b800-0f0d277a26d9 + putSourceZendeskSell: + speakeasy-default-put-source-zendesk-sell: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_token: f23yhd630otl94y85a8bf384958473pto95847fd006da49382716or937ruw059 + name: + workspaceId: 9c0ba82f-95ab-4e36-87a1-a7fbf2548e44 + putSourceZendeskSunshine: + speakeasy-default-put-source-zendesk-sunshine: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2021-01-01T00:00:00Z" + subdomain: + name: + workspaceId: 58f4c2c2-0b54-4c29-b3d8-92bc040ac500 + putSourceZendeskSupport: + speakeasy-default-put-source-zendesk-support: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2020-10-15T00:00:00Z" + subdomain: + name: + workspaceId: a3a57b95-cb58-4628-b03b-cebd0123dc76 + putSourceZendeskTalk: + speakeasy-default-put-source-zendesk-talk: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + start_date: "2020-10-15T00:00:00Z" + subdomain: + name: + workspaceId: 564e4ac2-1c8c-40b1-ba6d-b28bb0197943 + putSourceZenloop: + speakeasy-default-put-source-zenloop: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + api_token: + date_from: "2021-10-24T03:30:30Z" + name: + workspaceId: 95887e44-c00e-4332-bca3-2f703b29ef47 + putSourceZohoCrm: + speakeasy-default-put-source-zoho-crm: + parameters: + path: + sourceId: + requestBody: + application/json: + configuration: + client_id: + client_secret: + dc_region: JP + environment: Sandbox + refresh_token: + start_datetime: "2000-01-01" + name: + workspaceId: 39ad36db-1da4-49f8-98d0-e22ec57efbbd + putSourceZoom: + speakeasy-default-put-source-zoom: + parameters: + path: + sourceId: + updatePermission: + speakeasy-default-update-permission: + parameters: + path: + permissionId: + requestBody: + application/json: + permissionType: organization_member + responses: + "200": + application/json: + permissionId: 157b7736-f791-41ce-961d-60b7dd699010 + permissionType: organization_member + userId: 24bf7abc-c5a0-4e5a-9be2-69537c07fe9b + updateWorkspace: + Workspace Update Request Example: + parameters: + path: + workspaceId: + requestBody: + application/json: + name: Company Workspace Name + responses: + "200": + application/json: + name: + workspaceId: + Workspace Update Response Example: + parameters: + path: + workspaceId: + requestBody: + application/json: + name: + responses: + "200": + application/json: + name: + workspaceId: 9924bcd0-99be-453d-ba47-c2c9766f7da5 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index e0433822a..8a3643210 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.335.2 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:1ca6e2fd1c68d5cd3338dac401965c77156ba3782f2d17320b50f6db906ff262 - sourceBlobDigest: sha256:b399d4769fc1c9af512eafc9c6ac24c67e7e3bd76ebcf3ea0720fca33693ed6d + sourceRevisionDigest: sha256:b1f27d16185260237d159e856bab906536d850ff02b61d7e6e9c40f640713aa3 + sourceBlobDigest: sha256:3b9f36ea5b600bb8f7011672629e94ea280122ca8e7a46a0f71a0dde99bea585 tags: - latest - main @@ -11,8 +11,8 @@ targets: terraform-provider-airbyte: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:1ca6e2fd1c68d5cd3338dac401965c77156ba3782f2d17320b50f6db906ff262 - sourceBlobDigest: sha256:b399d4769fc1c9af512eafc9c6ac24c67e7e3bd76ebcf3ea0720fca33693ed6d + sourceRevisionDigest: sha256:b1f27d16185260237d159e856bab906536d850ff02b61d7e6e9c40f640713aa3 + sourceBlobDigest: sha256:3b9f36ea5b600bb8f7011672629e94ea280122ca8e7a46a0f71a0dde99bea585 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/README.md b/README.md index 81b9d43a6..3442ec9de 100755 --- a/README.md +++ b/README.md @@ -15,6 +15,19 @@ Developers will need to create an API Key within your [Developer Portal](https:/ The Developer Portal UI can also be used to help build your integration by showing information about network requests in the Requests tab. API usage information is also available to you in the Usage tab. + +## Summary + +airbyte-api: Programatically control Airbyte Cloud, OSS & Enterprise. + + + +## Table of Contents + +* [SDK Installation](#sdk-installation) +* [SDK Example Usage](#sdk-example-usage) + + ## SDK Installation @@ -25,7 +38,7 @@ terraform { required_providers { airbyte = { source = "airbytehq/airbyte" - version = "0.9.0" + version = "0.11.0" } } } diff --git a/RELEASES.md b/RELEASES.md index ebfaf4bac..f6c7182ab 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -58,4 +58,14 @@ Based on: ### Generated - [terraform v0.9.0] . ### Releases -- [Terraform v0.9.0] https://registry.terraform.io/providers/airbytehq/airbyte/0.9.0 - . \ No newline at end of file +- [Terraform v0.9.0] https://registry.terraform.io/providers/airbytehq/airbyte/0.9.0 - . + +## 2024-09-10 22:39:01 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.395.1 (2.415.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [terraform v0.11.0] . +### Releases +- [Terraform v0.11.0] https://registry.terraform.io/providers/airbytehq/airbyte/0.11.0 - . \ No newline at end of file diff --git a/docs/data-sources/connection.md b/docs/data-sources/connection.md index 48cd7dc9d..e012ba23a 100644 --- a/docs/data-sources/connection.md +++ b/docs/data-sources/connection.md @@ -45,7 +45,7 @@ data "airbyte_connection" "my_connection" { Read-Only: -- `streams` (Attributes Set) (see [below for nested schema](#nestedatt--configurations--streams)) +- `streams` (Attributes List) (see [below for nested schema](#nestedatt--configurations--streams)) ### Nested Schema for `configurations.streams` diff --git a/docs/data-sources/destination_langchain.md b/docs/data-sources/destination_timeplus.md similarity index 64% rename from docs/data-sources/destination_langchain.md rename to docs/data-sources/destination_timeplus.md index 361be815d..a375ddedc 100644 --- a/docs/data-sources/destination_langchain.md +++ b/docs/data-sources/destination_timeplus.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_destination_langchain Data Source - terraform-provider-airbyte" +page_title: "airbyte_destination_timeplus Data Source - terraform-provider-airbyte" subcategory: "" description: |- - DestinationLangchain DataSource + DestinationTimeplus DataSource --- -# airbyte_destination_langchain (Data Source) +# airbyte_destination_timeplus (Data Source) -DestinationLangchain DataSource +DestinationTimeplus DataSource ## Example Usage ```terraform -data "airbyte_destination_langchain" "my_destination_langchain" { +data "airbyte_destination_timeplus" "my_destination_timeplus" { destination_id = "...my_destination_id..." } ``` diff --git a/docs/data-sources/source_mongodb_internal_poc.md b/docs/data-sources/source_airbyte.md similarity index 60% rename from docs/data-sources/source_mongodb_internal_poc.md rename to docs/data-sources/source_airbyte.md index f096f7907..bfa79ed2a 100644 --- a/docs/data-sources/source_mongodb_internal_poc.md +++ b/docs/data-sources/source_airbyte.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_mongodb_internal_poc Data Source - terraform-provider-airbyte" +page_title: "airbyte_source_airbyte Data Source - terraform-provider-airbyte" subcategory: "" description: |- - SourceMongodbInternalPoc DataSource + SourceAirbyte DataSource --- -# airbyte_source_mongodb_internal_poc (Data Source) +# airbyte_source_airbyte (Data Source) -SourceMongodbInternalPoc DataSource +SourceAirbyte DataSource ## Example Usage ```terraform -data "airbyte_source_mongodb_internal_poc" "my_source_mongodbinternalpoc" { +data "airbyte_source_airbyte" "my_source_airbyte" { source_id = "...my_source_id..." } ``` diff --git a/docs/data-sources/source_punk_api.md b/docs/data-sources/source_basecamp.md similarity index 68% rename from docs/data-sources/source_punk_api.md rename to docs/data-sources/source_basecamp.md index a7283778a..7f9f3cb89 100644 --- a/docs/data-sources/source_punk_api.md +++ b/docs/data-sources/source_basecamp.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_punk_api Data Source - terraform-provider-airbyte" +page_title: "airbyte_source_basecamp Data Source - terraform-provider-airbyte" subcategory: "" description: |- - SourcePunkAPI DataSource + SourceBasecamp DataSource --- -# airbyte_source_punk_api (Data Source) +# airbyte_source_basecamp (Data Source) -SourcePunkAPI DataSource +SourceBasecamp DataSource ## Example Usage ```terraform -data "airbyte_source_punk_api" "my_source_punkapi" { +data "airbyte_source_basecamp" "my_source_basecamp" { source_id = "...my_source_id..." } ``` diff --git a/docs/data-sources/source_google_analytics_v4_service_account_only.md b/docs/data-sources/source_breezy_hr.md similarity index 52% rename from docs/data-sources/source_google_analytics_v4_service_account_only.md rename to docs/data-sources/source_breezy_hr.md index 0f0cd2c76..e83827cdb 100644 --- a/docs/data-sources/source_google_analytics_v4_service_account_only.md +++ b/docs/data-sources/source_breezy_hr.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_google_analytics_v4_service_account_only Data Source - terraform-provider-airbyte" +page_title: "airbyte_source_breezy_hr Data Source - terraform-provider-airbyte" subcategory: "" description: |- - SourceGoogleAnalyticsV4ServiceAccountOnly DataSource + SourceBreezyHr DataSource --- -# airbyte_source_google_analytics_v4_service_account_only (Data Source) +# airbyte_source_breezy_hr (Data Source) -SourceGoogleAnalyticsV4ServiceAccountOnly DataSource +SourceBreezyHr DataSource ## Example Usage ```terraform -data "airbyte_source_google_analytics_v4_service_account_only" "my_source_googleanalyticsv4serviceaccountonly" { +data "airbyte_source_breezy_hr" "my_source_breezyhr" { source_id = "...my_source_id..." } ``` diff --git a/docs/data-sources/source_calendly.md b/docs/data-sources/source_calendly.md new file mode 100644 index 000000000..24385844e --- /dev/null +++ b/docs/data-sources/source_calendly.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_calendly Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceCalendly DataSource +--- + +# airbyte_source_calendly (Data Source) + +SourceCalendly DataSource + +## Example Usage + +```terraform +data "airbyte_source_calendly" "my_source_calendly" { + 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_clazar.md new file mode 100644 index 000000000..e6a92cd5b --- /dev/null +++ b/docs/data-sources/source_clazar.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_clazar Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceClazar DataSource +--- + +# airbyte_source_clazar (Data Source) + +SourceClazar DataSource + +## Example Usage + +```terraform +data "airbyte_source_clazar" "my_source_clazar" { + 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_customer_io.md b/docs/data-sources/source_customer_io.md new file mode 100644 index 000000000..12bb04942 --- /dev/null +++ b/docs/data-sources/source_customer_io.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_customer_io Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceCustomerIo DataSource +--- + +# airbyte_source_customer_io (Data Source) + +SourceCustomerIo DataSource + +## Example Usage + +```terraform +data "airbyte_source_customer_io" "my_source_customerio" { + 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_datadog.md b/docs/data-sources/source_datadog.md new file mode 100644 index 000000000..021efa874 --- /dev/null +++ b/docs/data-sources/source_datadog.md @@ -0,0 +1,35 @@ +--- +# 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_dbt.md b/docs/data-sources/source_dbt.md new file mode 100644 index 000000000..fd0d670ea --- /dev/null +++ b/docs/data-sources/source_dbt.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_dbt Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceDbt DataSource +--- + +# airbyte_source_dbt (Data Source) + +SourceDbt DataSource + +## Example Usage + +```terraform +data "airbyte_source_dbt" "my_source_dbt" { + 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_goldcast.md b/docs/data-sources/source_goldcast.md new file mode 100644 index 000000000..9b40d3abc --- /dev/null +++ b/docs/data-sources/source_goldcast.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_goldcast Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceGoldcast DataSource +--- + +# airbyte_source_goldcast (Data Source) + +SourceGoldcast DataSource + +## Example Usage + +```terraform +data "airbyte_source_goldcast" "my_source_goldcast" { + 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_hardcoded_records.md b/docs/data-sources/source_hardcoded_records.md new file mode 100644 index 000000000..7c42edc8c --- /dev/null +++ b/docs/data-sources/source_hardcoded_records.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_hardcoded_records Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceHardcodedRecords DataSource +--- + +# airbyte_source_hardcoded_records (Data Source) + +SourceHardcodedRecords DataSource + +## Example Usage + +```terraform +data "airbyte_source_hardcoded_records" "my_source_hardcodedrecords" { + 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_hibob.md b/docs/data-sources/source_hibob.md new file mode 100644 index 000000000..5a67730fc --- /dev/null +++ b/docs/data-sources/source_hibob.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_hibob Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceHibob DataSource +--- + +# airbyte_source_hibob (Data Source) + +SourceHibob DataSource + +## Example Usage + +```terraform +data "airbyte_source_hibob" "my_source_hibob" { + 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_high_level.md b/docs/data-sources/source_high_level.md new file mode 100644 index 000000000..4dea658d2 --- /dev/null +++ b/docs/data-sources/source_high_level.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_high_level Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceHighLevel DataSource +--- + +# airbyte_source_high_level (Data Source) + +SourceHighLevel DataSource + +## Example Usage + +```terraform +data "airbyte_source_high_level" "my_source_highlevel" { + 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_leadfeeder.md b/docs/data-sources/source_leadfeeder.md new file mode 100644 index 000000000..a29901633 --- /dev/null +++ b/docs/data-sources/source_leadfeeder.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_leadfeeder Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceLeadfeeder DataSource +--- + +# airbyte_source_leadfeeder (Data Source) + +SourceLeadfeeder DataSource + +## Example Usage + +```terraform +data "airbyte_source_leadfeeder" "my_source_leadfeeder" { + 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_looker.md b/docs/data-sources/source_looker.md new file mode 100644 index 000000000..a69cbf215 --- /dev/null +++ b/docs/data-sources/source_looker.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_looker Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceLooker DataSource +--- + +# airbyte_source_looker (Data Source) + +SourceLooker DataSource + +## Example Usage + +```terraform +data "airbyte_source_looker" "my_source_looker" { + 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_luma.md b/docs/data-sources/source_luma.md new file mode 100644 index 000000000..c5a3b1d1f --- /dev/null +++ b/docs/data-sources/source_luma.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_luma Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceLuma DataSource +--- + +# airbyte_source_luma (Data Source) + +SourceLuma DataSource + +## Example Usage + +```terraform +data "airbyte_source_luma" "my_source_luma" { + 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_northpass_lms.md b/docs/data-sources/source_northpass_lms.md new file mode 100644 index 000000000..0b841ab86 --- /dev/null +++ b/docs/data-sources/source_northpass_lms.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_northpass_lms Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceNorthpassLms DataSource +--- + +# airbyte_source_northpass_lms (Data Source) + +SourceNorthpassLms DataSource + +## Example Usage + +```terraform +data "airbyte_source_northpass_lms" "my_source_northpasslms" { + 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_pennylane.md b/docs/data-sources/source_pennylane.md new file mode 100644 index 000000000..62f6083d4 --- /dev/null +++ b/docs/data-sources/source_pennylane.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_pennylane Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourcePennylane DataSource +--- + +# airbyte_source_pennylane (Data Source) + +SourcePennylane DataSource + +## Example Usage + +```terraform +data "airbyte_source_pennylane" "my_source_pennylane" { + 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_planhat.md b/docs/data-sources/source_planhat.md new file mode 100644 index 000000000..424d78f90 --- /dev/null +++ b/docs/data-sources/source_planhat.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_planhat Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourcePlanhat DataSource +--- + +# airbyte_source_planhat (Data Source) + +SourcePlanhat DataSource + +## Example Usage + +```terraform +data "airbyte_source_planhat" "my_source_planhat" { + 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_reddit.md b/docs/data-sources/source_reddit.md new file mode 100644 index 000000000..48c0cf495 --- /dev/null +++ b/docs/data-sources/source_reddit.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_reddit Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceReddit DataSource +--- + +# airbyte_source_reddit (Data Source) + +SourceReddit DataSource + +## Example Usage + +```terraform +data "airbyte_source_reddit" "my_source_reddit" { + 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_savvycal.md b/docs/data-sources/source_savvycal.md new file mode 100644 index 000000000..a534e51a3 --- /dev/null +++ b/docs/data-sources/source_savvycal.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_savvycal Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceSavvycal DataSource +--- + +# airbyte_source_savvycal (Data Source) + +SourceSavvycal DataSource + +## Example Usage + +```terraform +data "airbyte_source_savvycal" "my_source_savvycal" { + 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_scryfall.md b/docs/data-sources/source_scryfall.md new file mode 100644 index 000000000..a789fb0fb --- /dev/null +++ b/docs/data-sources/source_scryfall.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_scryfall Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceScryfall DataSource +--- + +# airbyte_source_scryfall (Data Source) + +SourceScryfall DataSource + +## Example Usage + +```terraform +data "airbyte_source_scryfall" "my_source_scryfall" { + 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/index.md b/docs/index.md index 96e184b48..36e64029a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,7 +17,7 @@ terraform { required_providers { airbyte = { source = "airbytehq/airbyte" - version = "0.9.0" + version = "0.11.0" } } } diff --git a/docs/resources/destination_astra.md b/docs/resources/destination_astra.md index 4fc6aece3..3398bc5ef 100644 --- a/docs/resources/destination_astra.md +++ b/docs/resources/destination_astra.md @@ -160,7 +160,7 @@ Required: - `astra_db_app_token` (String, Sensitive) The application token authorizes a user to connect to a specific Astra DB database. It is created when the user clicks the Generate Token button on the Overview tab of the Database page in the Astra UI. - `astra_db_endpoint` (String) The endpoint specifies which Astra DB database queries are sent to. It can be copied from the Database Details section of the Overview tab of the Database page in the Astra UI. -- `astra_db_keyspace` (String, Sensitive) Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created for you when you create a Vector Database in Astra DB. +- `astra_db_keyspace` (String) Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created for you when you create a Vector Database in Astra DB. - `collection` (String) Collections hold data. They are analagous to tables in traditional Cassandra terminology. This tool will create the collection with the provided name automatically if it does not already exist. Alternatively, you can create one thorugh the Data Explorer tab in the Astra UI. diff --git a/docs/resources/destination_aws_datalake.md b/docs/resources/destination_aws_datalake.md index 4b592745b..b367ff702 100644 --- a/docs/resources/destination_aws_datalake.md +++ b/docs/resources/destination_aws_datalake.md @@ -76,7 +76,7 @@ Optional: - `bucket_prefix` (String) S3 prefix - `format` (Attributes) Format of the data output. (see [below for nested schema](#nestedatt--configuration--format)) - `glue_catalog_float_as_decimal` (Boolean) Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers correctly as received from the source. Default: false -- `lakeformation_database_default_tag_key` (String, Sensitive) Add a default tag key to databases created by this destination +- `lakeformation_database_default_tag_key` (String) Add a default tag key to databases created by this destination - `lakeformation_database_default_tag_values` (String) Add default values for the `Tag Key` to databases created by this destination. Comma separate for multiple values. - `lakeformation_governed_tables` (Boolean) Whether to create tables as LF governed tables. Default: false - `partitioning` (String) Partition data by cursor fields when a cursor field is a date. must be one of ["NO PARTITIONING", "DATE", "YEAR", "MONTH", "DAY", "YEAR/MONTH", "YEAR/MONTH/DAY"]; Default: "NO PARTITIONING" @@ -95,7 +95,7 @@ Optional: Required: -- `role_arn` (String) Will assume this role to write data to s3 +- `role_arn` (String, Sensitive) Will assume this role to write data to s3 diff --git a/docs/resources/destination_bigquery.md b/docs/resources/destination_bigquery.md index 0b413e254..8eb5b1370 100644 --- a/docs/resources/destination_bigquery.md +++ b/docs/resources/destination_bigquery.md @@ -21,25 +21,15 @@ resource "airbyte_destination_bigquery" "my_destination_bigquery" { dataset_location = "southamerica-west1" disable_type_dedupe = true loading_method = { - gcs_staging = { - credential = { - hmac_key = { - hmac_key_access_id = "1234567890abcdefghij1234" - hmac_key_secret = "1234567890abcdefghij1234567890ABCDEFGHIJ" - } - } - gcs_bucket_name = "airbyte_sync" - gcs_bucket_path = "data_sync/test" - keep_files_in_gcs_bucket = "Keep all tmp files in GCS" - } + batched_standard_inserts = {} } project_id = "...my_project_id..." raw_data_dataset = "...my_raw_data_dataset..." - transformation_priority = "interactive" + transformation_priority = "batch" } - definition_id = "5759d85e-2c27-4639-8b46-88adb42653c3" - name = "Stella Zulauf IV" - workspace_id = "b5ab2eb4-f41e-422e-b9b6-61a09af71290" + definition_id = "15759d85-e2c2-4763-98b4-688adb42653c" + name = "Lori Kunde" + workspace_id = "18b5ab2e-b4f4-41e2-ae39-b661a09af712" } ``` @@ -73,7 +63,7 @@ Required: Optional: - `big_query_client_buffer_size_mb` (Number) Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more here. Default: 15 -- `credentials_json` (String) The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty. +- `credentials_json` (String, Sensitive) The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty. - `disable_type_dedupe` (Boolean) Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions. Default: false - `loading_method` (Attributes) The way data will be uploaded to BigQuery. (see [below for nested schema](#nestedatt--configuration--loading_method)) - `raw_data_dataset` (String) The dataset to write raw tables into (default: airbyte_internal) @@ -84,8 +74,12 @@ Optional: Optional: -- `gcs_staging` (Attributes) (recommended) Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. Provides best-in-class speed, reliability and scalability. Read more about GCS Staging here. (see [below for nested schema](#nestedatt--configuration--loading_method--gcs_staging)) -- `standard_inserts` (Attributes) (not recommended) Direct loading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In all other cases, you should use GCS staging. (see [below for nested schema](#nestedatt--configuration--loading_method--standard_inserts)) +- `batched_standard_inserts` (Attributes) Direct loading using batched SQL INSERT statements. This method uses the BigQuery driver to convert large INSERT statements into file uploads automatically. (see [below for nested schema](#nestedatt--configuration--loading_method--batched_standard_inserts)) +- `gcs_staging` (Attributes) Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. (see [below for nested schema](#nestedatt--configuration--loading_method--gcs_staging)) + + +### Nested Schema for `configuration.loading_method.batched_standard_inserts` + ### Nested Schema for `configuration.loading_method.gcs_staging` @@ -115,12 +109,6 @@ Required: - `hmac_key_access_id` (String, Sensitive) HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. - `hmac_key_secret` (String, Sensitive) The corresponding secret for the access ID. It is a 40-character base-64 encoded string. - - - - -### Nested Schema for `configuration.loading_method.standard_inserts` - ## Import Import is supported using the following syntax: diff --git a/docs/resources/destination_clickhouse.md b/docs/resources/destination_clickhouse.md index 92125c204..9921a6f68 100644 --- a/docs/resources/destination_clickhouse.md +++ b/docs/resources/destination_clickhouse.md @@ -24,11 +24,11 @@ resource "airbyte_destination_clickhouse" "my_destination_clickhouse" { tunnel_method = { no_tunnel = {} } - username = "Carmelo_Rosenbaum" + username = "Adah75" } - definition_id = "65d335e0-3abe-4bb7-9b58-e872ec68b6d2" - name = "Wade Schimmel" - workspace_id = "b5369415-66f2-42fd-b0a2-8af8c1d27b3e" + definition_id = "6d65d335-e03a-4beb-b71b-58e872ec68b6" + name = "Shawn Olson" + workspace_id = "48b53694-1566-4f22-bd30-a28af8c1d27b" } ``` diff --git a/docs/resources/destination_convex.md b/docs/resources/destination_convex.md index eb2b65058..13e44101d 100644 --- a/docs/resources/destination_convex.md +++ b/docs/resources/destination_convex.md @@ -18,9 +18,9 @@ resource "airbyte_destination_convex" "my_destination_convex" { access_key = "...my_access_key..." deployment_url = "https://murky-swan-635.convex.cloud" } - definition_id = "73c0eb82-2361-43d2-bce8-75293aec4aa1" - name = "Jennifer Rogahn I" - workspace_id = "922581a8-8452-4de7-835e-b92a9e952da2" + definition_id = "e573c0eb-8223-4613-923c-e875293aec4a" + name = "Miss Peter Abernathy" + workspace_id = "23922581-a884-452d-a7c3-5eb92a9e952d" } ``` diff --git a/docs/resources/destination_custom.md b/docs/resources/destination_custom.md index 68dfae2ee..01a272338 100644 --- a/docs/resources/destination_custom.md +++ b/docs/resources/destination_custom.md @@ -15,9 +15,9 @@ DestinationCustom Resource ```terraform resource "airbyte_destination_custom" "my_destination_custom" { configuration = { "user" : "charles" } - definition_id = "93962c00-6aec-4ee7-8884-619655998ae2" - name = "Gwen Tillman" - workspace_id = "60fc4948-d719-417b-9771-58c7e04c5798" + definition_id = "a293962c-006a-4ece-a7c8-84619655998a" + name = "Roy Grimes" + workspace_id = "c560fc49-48d7-4191-bbd7-7158c7e04c57" } ``` diff --git a/docs/resources/destination_databricks.md b/docs/resources/destination_databricks.md index caf448874..17ca60e1c 100644 --- a/docs/resources/destination_databricks.md +++ b/docs/resources/destination_databricks.md @@ -15,18 +15,20 @@ DestinationDatabricks Resource ```terraform resource "airbyte_destination_databricks" "my_destination_databricks" { configuration = { - accept_terms = true - data_source = { - recommended_managed_tables = {} + accept_terms = false + authentication = { + o_auth2_recommended = { + client_id = "...my_client_id..." + secret = "...my_secret..." + } } - database = "...my_database..." - databricks_http_path = "sql/protocolvx/o/1234567489/0000-1111111-abcd90" - databricks_personal_access_token = "dapi0123456789abcdefghij0123456789AB" - databricks_port = "443" - databricks_server_hostname = "abc-12345678-wxyz.cloud.databricks.com" - enable_schema_evolution = false - purge_staging_data = true - schema = "default" + database = "...my_database..." + hostname = "abc-12345678-wxyz.cloud.databricks.com" + http_path = "sql/1.0/warehouses/0000-1111111-abcd90" + port = "443" + purge_staging_data = true + raw_schema_override = "...my_raw_schema_override..." + schema = "default" } definition_id = "bfbb5605-d730-46cf-a6f6-0bfc11e74f73" name = "Janis Kohler" @@ -57,61 +59,42 @@ resource "airbyte_destination_databricks" "my_destination_databricks" { Required: -- `data_source` (Attributes) Storage on which the delta lake is built. (see [below for nested schema](#nestedatt--configuration--data_source)) -- `databricks_http_path` (String) Databricks Cluster HTTP Path. -- `databricks_personal_access_token` (String, Sensitive) Databricks Personal Access Token for making authenticated requests. -- `databricks_server_hostname` (String) Databricks Cluster Server Hostname. +- `authentication` (Attributes) Authentication mechanism for Staging files and running queries (see [below for nested schema](#nestedatt--configuration--authentication)) +- `database` (String) The name of the unity catalog for the database +- `hostname` (String) Databricks Cluster Server Hostname. +- `http_path` (String) Databricks Cluster HTTP Path. Optional: - `accept_terms` (Boolean) You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. Default: false -- `database` (String) The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. -- `databricks_port` (String) Databricks Cluster Port. Default: "443" -- `enable_schema_evolution` (Boolean) Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. Default: false +- `port` (String) Databricks Cluster Port. Default: "443" - `purge_staging_data` (Boolean) Default to 'true'. Switch it to 'false' for debugging purpose. Default: true +- `raw_schema_override` (String) The schema to write raw tables into (default: airbyte_internal). Default: "airbyte_internal" - `schema` (String) The default schema tables are written. If not specified otherwise, the "default" will be used. Default: "default" - -### Nested Schema for `configuration.data_source` + +### Nested Schema for `configuration.authentication` Optional: -- `amazon_s3` (Attributes) (see [below for nested schema](#nestedatt--configuration--data_source--amazon_s3)) -- `azure_blob_storage` (Attributes) (see [below for nested schema](#nestedatt--configuration--data_source--azure_blob_storage)) -- `recommended_managed_tables` (Attributes) (see [below for nested schema](#nestedatt--configuration--data_source--recommended_managed_tables)) +- `o_auth2_recommended` (Attributes) (see [below for nested schema](#nestedatt--configuration--authentication--o_auth2_recommended)) +- `personal_access_token` (Attributes) (see [below for nested schema](#nestedatt--configuration--authentication--personal_access_token)) - -### Nested Schema for `configuration.data_source.amazon_s3` + +### Nested Schema for `configuration.authentication.o_auth2_recommended` Required: -- `s3_access_key_id` (String, Sensitive) The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. -- `s3_bucket_name` (String) The name of the S3 bucket to use for intermittent staging of the data. -- `s3_bucket_path` (String) The directory under the S3 bucket where data will be written. -- `s3_secret_access_key` (String, Sensitive) The corresponding secret to the above access key id. +- `client_id` (String) +- `secret` (String, Sensitive) -Optional: - -- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s) -- `s3_bucket_region` (String) The region of the S3 staging bucket to use if utilising a copy strategy. must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]; Default: "" - - -### Nested Schema for `configuration.data_source.azure_blob_storage` + +### Nested Schema for `configuration.authentication.personal_access_token` Required: -- `azure_blob_storage_account_name` (String) The account's name of the Azure Blob Storage. -- `azure_blob_storage_container_name` (String) The name of the Azure blob storage container. -- `azure_blob_storage_sas_token` (String, Sensitive) Shared access signature (SAS) token to grant limited access to objects in your storage account. - -Optional: - -- `azure_blob_storage_endpoint_domain_name` (String) This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. Default: "blob.core.windows.net" - - - -### Nested Schema for `configuration.data_source.recommended_managed_tables` +- `personal_access_token` (String, Sensitive) ## Import diff --git a/docs/resources/destination_elasticsearch.md b/docs/resources/destination_elasticsearch.md index c1a05ee69..f791207fb 100644 --- a/docs/resources/destination_elasticsearch.md +++ b/docs/resources/destination_elasticsearch.md @@ -59,7 +59,7 @@ Required: Optional: - `authentication_method` (Attributes) The type of authentication to be used (see [below for nested schema](#nestedatt--configuration--authentication_method)) -- `ca_certificate` (String) CA certificate +- `ca_certificate` (String, Sensitive) CA certificate - `upsert` (Boolean) If a primary key identifier is defined in the source, an upsert will be performed using the primary key value as the elasticsearch doc id. Does not support composite primary keys. Default: true @@ -76,7 +76,7 @@ Optional: Required: - `api_key_id` (String) The Key ID to used when accessing an enterprise Elasticsearch instance. -- `api_key_secret` (String) The secret associated with the API Key ID. +- `api_key_secret` (String, Sensitive) The secret associated with the API Key ID. diff --git a/docs/resources/destination_firebolt.md b/docs/resources/destination_firebolt.md index 6369ab27d..9555fc35d 100644 --- a/docs/resources/destination_firebolt.md +++ b/docs/resources/destination_firebolt.md @@ -61,7 +61,7 @@ Required: - `account` (String) Firebolt account to login. - `client_id` (String) Firebolt service account ID. -- `client_secret` (String) Firebolt secret, corresponding to the service account ID. +- `client_secret` (String, Sensitive) Firebolt secret, corresponding to the service account ID. - `database` (String) The database to connect to. - `engine` (String) Engine name to connect to. diff --git a/docs/resources/destination_firestore.md b/docs/resources/destination_firestore.md index bba63b8d1..a9ddef9fe 100644 --- a/docs/resources/destination_firestore.md +++ b/docs/resources/destination_firestore.md @@ -51,7 +51,7 @@ Required: Optional: -- `credentials_json` (String) The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty. +- `credentials_json` (String, Sensitive) The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty. ## Import diff --git a/docs/resources/destination_google_sheets.md b/docs/resources/destination_google_sheets.md index f5eb00008..6dd8c4b26 100644 --- a/docs/resources/destination_google_sheets.md +++ b/docs/resources/destination_google_sheets.md @@ -59,8 +59,8 @@ Required: Required: -- `client_id` (String) The Client ID of your Google Sheets developer application. -- `client_secret` (String) The Client Secret of your Google Sheets developer application. +- `client_id` (String, Sensitive) The Client ID of your Google Sheets developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Google Sheets developer application. - `refresh_token` (String, Sensitive) The token for obtaining new access token. ## Import diff --git a/docs/resources/destination_langchain.md b/docs/resources/destination_langchain.md deleted file mode 100644 index 40a07acff..000000000 --- a/docs/resources/destination_langchain.md +++ /dev/null @@ -1,147 +0,0 @@ ---- -# 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 5f0a12b07..4370a1891 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://my-local-milvus:19530" + host = "tcp://host.docker.internal:19530" text_field = "...my_text_field..." vector_field = "...my_vector_field..." } - omit_raw_text = false + omit_raw_text = true processing = { - chunk_overlap = 1 - chunk_size = 10 + chunk_overlap = 6 + chunk_size = 4 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 = 6 + split_level = 2 } } } } - definition_id = "2248d601-2833-484b-987b-5cce36148543" - name = "Sylvia Smitham" - workspace_id = "3c5e509f-4525-421a-8478-78c254cd184f" + definition_id = "5a4e1801-23f0-4d76-bb78-bf74fa22de12" + name = "Jenny Braun" + workspace_id = "f134d000-7497-474a-a87c-30892ffb0f41" } ``` diff --git a/docs/resources/destination_mongodb.md b/docs/resources/destination_mongodb.md index 6d2c8e49b..c0d7af7a3 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 = "Ryleigh43" + username = "Ubaldo12" } } database = "...my_database..." @@ -32,9 +32,9 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { no_tunnel = {} } } - definition_id = "e75f1c50-c9ec-4767-87b0-6cf86fe4a6f8" - name = "Mr. Malcolm Lubowitz" - workspace_id = "d646f802-e7b2-4183-b2bc-4f6db7afdaca" + definition_id = "48d60128-3384-4bd8-bb5c-ce3614854333" + name = "Courtney Considine" + workspace_id = "5e509f45-2521-4a04-b878-c254cd184fd1" } ``` diff --git a/docs/resources/destination_mssql.md b/docs/resources/destination_mssql.md index 7a8f0eff4..8b688991e 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 = "Brian25" + username = "Hope.Toy" } - definition_id = "cf17a668-3bb7-46cb-9d42-c04b7b603cc8" - name = "Bryant Lynch" - workspace_id = "e7603813-ef7f-4c0d-976e-5f414549f124" + definition_id = "f1c50c9e-c767-447b-86cf-86fe4a6f8bb8" + name = "Lisa Von" + workspace_id = "46f802e7-b218-43b2-bc4f-6db7afdacad2" } ``` diff --git a/docs/resources/destination_mysql.md b/docs/resources/destination_mysql.md index 7776b7745..29b96e841 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 = true + disable_type_dedupe = false 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 = "Jimmy.Cummings31" + username = "Deon.Russel49" } - definition_id = "ef4e895c-9212-4618-852d-1432f33897fe" - name = "Francis Rutherford" - workspace_id = "c8c4bf88-2725-4c3c-abc3-9a6d3f396b39" + definition_id = "a6683bb7-6cbd-4d42-804b-7b603cc8cd88" + name = "Tricia Klocko I" + workspace_id = "813ef7fc-0d17-46e5-b414-549f1242182d" } ``` diff --git a/docs/resources/destination_oracle.md b/docs/resources/destination_oracle.md index ae4dd5af1..017511bca 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 = "Louvenia.Bartell4" + username = "Emmalee.Towne89" } - definition_id = "16590e1a-2bc7-4de0-bf63-7374915d3efc" - name = "Kara Stroman" - workspace_id = "0e36acc1-e6f1-4291-9604-b55b326e06d2" + definition_id = "895c9212-6184-452d-9432-f33897fec4ca" + name = "Adrienne Lockman" + workspace_id = "bf882725-c3c6-4bc3-9a6d-3f396b39ea0e" } ``` diff --git a/docs/resources/destination_pinecone.md b/docs/resources/destination_pinecone.md index 2ff4ef66b..dd6205e58 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 = false + omit_raw_text = true processing = { - chunk_overlap = 5 - chunk_size = 9 + chunk_overlap = 0 + chunk_size = 4 field_name_mappings = [ { from_field = "...my_from_field..." @@ -50,9 +50,9 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { } } } - definition_id = "e42a5305-0a9a-4fbc-a6c9-13a5b78062a6" - name = "Gregory Flatley" - workspace_id = "b7f63598-ffb0-4429-a4fa-eae5018c3193" + definition_id = "90e1a2bc-7de0-4ff6-b737-4915d3efc2cd" + name = "Jorge Beahan" + workspace_id = "6acc1e6f-1291-4560-8b55-b326e06d2448" } ``` diff --git a/docs/resources/destination_postgres.md b/docs/resources/destination_postgres.md index 3b1f3a0a8..376baf260 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 = false - drop_cascade = true + disable_type_dedupe = true + drop_cascade = false 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 = "Ladarius_Abernathy72" + username = "Ed.Crooks" } - definition_id = "22db6fe0-864a-4856-a041-70ff8566dc32" - name = "Gladys Hintz" - workspace_id = "7b07bf07-28b7-4077-958c-67348eaa4356" + definition_id = "3050a9af-bc66-4c91-ba5b-78062a6a13d9" + name = "Cody Williamson" + workspace_id = "598ffb04-2924-4fae-ae50-18c319374090" } ``` @@ -117,7 +117,7 @@ Optional: Required: -- `ca_certificate` (String) CA certificate +- `ca_certificate` (String, Sensitive) CA certificate Optional: @@ -129,8 +129,8 @@ Optional: Required: -- `ca_certificate` (String) CA certificate -- `client_certificate` (String) Client certificate +- `ca_certificate` (String, Sensitive) CA certificate +- `client_certificate` (String, Sensitive) Client certificate - `client_key` (String, Sensitive) Client key Optional: diff --git a/docs/resources/destination_pubsub.md b/docs/resources/destination_pubsub.md index ecfd7d33d..201c265ad 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 = 2 - batching_enabled = true - batching_request_bytes_threshold = 6 + batching_element_count_threshold = 10 + batching_enabled = false + batching_request_bytes_threshold = 1 credentials_json = "...my_credentials_json..." - ordering_enabled = true + ordering_enabled = false project_id = "...my_project_id..." topic_id = "...my_topic_id..." } - definition_id = "d49dbc4f-abbf-4199-8382-023b4de2c1a7" - name = "Bobby Lemke" - workspace_id = "d3cde3c9-d6fa-494b-b4b9-38f85ce1dfc1" + definition_id = "db6fe086-4a85-46a0-8170-ff8566dc3233" + name = "Belinda Kuhn" + workspace_id = "07bf0728-b707-4755-8c67-348eaa4356f3" } ``` @@ -53,7 +53,7 @@ resource "airbyte_destination_pubsub" "my_destination_pubsub" { Required: -- `credentials_json` (String) The contents of the JSON service account key. Check out the docs if you need help generating this key. +- `credentials_json` (String, Sensitive) The contents of the JSON service account key. Check out the docs if you need help generating this key. - `project_id` (String) The GCP project ID for the project containing the target PubSub. - `topic_id` (String) The PubSub topic ID in the given GCP project ID. diff --git a/docs/resources/destination_qdrant.md b/docs/resources/destination_qdrant.md index 2a0a5b18a..3c18557da 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 = "euc" + distance_metric = "cos" prefer_grpc = true text_field = "...my_text_field..." url = "...my_url..." } - omit_raw_text = false + omit_raw_text = true processing = { - chunk_overlap = 6 - chunk_size = 5 + chunk_overlap = 9 + chunk_size = 2 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 = 9 + split_level = 6 } } } } - definition_id = "b19e64b8-3f63-4d34-8370-e173ec9d4f32" - name = "Ms. Antonio Thiel" - workspace_id = "a8a43c0f-29f7-4cbd-92b3-20943801c367" + definition_id = "dbc4fabb-f199-4438-a023-b4de2c1a7f28" + name = "Gerard Simonis" + workspace_id = "de3c9d6f-a94b-474b-938f-85ce1dfc1b27" } ``` diff --git a/docs/resources/destination_redis.md b/docs/resources/destination_redis.md index 36c816fcc..e060d8df1 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 = 5 + port = 6 ssl = true ssl_mode = { disable = {} @@ -26,11 +26,11 @@ resource "airbyte_destination_redis" "my_destination_redis" { tunnel_method = { no_tunnel = {} } - username = "Ellen.Champlin16" + username = "Salma59" } - definition_id = "94a31a29-aaf3-4c68-870e-ca1537042295" - name = "Hector Turner" - workspace_id = "dc306165-86b7-4399-8fea-69beba7dc7cd" + definition_id = "e64b83f6-3d34-4837-8e17-3ec9d4f32d3e" + name = "Shelly Connelly" + workspace_id = "a43c0f29-f7cb-4d12-b320-943801c3678d" } ``` @@ -87,8 +87,8 @@ Optional: Required: -- `ca_certificate` (String) CA certificate -- `client_certificate` (String) Client certificate +- `ca_certificate` (String, Sensitive) CA certificate +- `client_certificate` (String, Sensitive) Client certificate - `client_key` (String, Sensitive) Client key Optional: diff --git a/docs/resources/destination_redshift.md b/docs/resources/destination_redshift.md index 4f57e9f15..b705416c4 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 = false + disable_type_dedupe = true drop_cascade = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." @@ -29,25 +29,20 @@ resource "airbyte_destination_redshift" "my_destination_redshift" { } uploading_method = { awss3_staging = { - access_key_id = "...my_access_key_id..." - encryption = { - aescbc_envelope_encryption = { - key_encrypting_key = "...my_key_encrypting_key..." - } - } + access_key_id = "...my_access_key_id..." file_name_pattern = "{timestamp}" purge_staging_data = false s3_bucket_name = "airbyte.staging" s3_bucket_path = "data_sync/test" - s3_bucket_region = "eu-central-2" + s3_bucket_region = "eu-south-2" secret_access_key = "...my_secret_access_key..." } } - username = "Clark65" + username = "Devante10" } - definition_id = "ab15fb45-8bad-49ea-b671-d5852a459de5" - name = "Jessica Runolfsdottir" - workspace_id = "420a295e-5c09-4962-877b-187a09875344" + definition_id = "a29aaf3c-6807-40ec-a153-7042295e6e54" + name = "Ms. Edmund Douglas III" + workspace_id = "586b7399-0fea-469b-aba7-dc7cde8f8d83" } ``` @@ -150,31 +145,11 @@ 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 2c812ee70..c66b9a025 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 = "{date}" + file_name_pattern = "{timestamp}" 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 = "bc3217ac-be2a-4d9f-b186-486fc7b23d6b" - name = "Kyle Luettgen" - workspace_id = "0346c04b-193f-4b28-918e-382726ed560c" + definition_id = "aab15fb4-58ba-4d9e-a767-1d5852a459de" + name = "Bonnie Beatty" + workspace_id = "3420a295-e5c0-4996-a877-b187a0987534" } ``` diff --git a/docs/resources/destination_s3_glue.md b/docs/resources/destination_s3_glue.md index cce33c626..274f9034e 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 = "{sync_id}" + file_name_pattern = "{date:yyyy_MM}" 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.apache.hive.hcatalog.data.JsonSerDe" + glue_serialization_library = "org.openx.data.jsonserde.JsonSerDe" s3_bucket_name = "airbyte_sync" s3_bucket_path = "data_sync/test" - s3_bucket_region = "eu-south-1" + s3_bucket_region = "me-central-1" s3_endpoint = "http://localhost:9000" s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "e1f9eaf9-a8e2-4157-a856-0c89e77fd0c2" - name = "Marilyn Abshire" - workspace_id = "d396de60-f942-4f93-ba3c-59508dd11c7e" + definition_id = "c3217acb-e2ad-49f3-9864-86fc7b23d6b8" + name = "Billie Wisoky I" + workspace_id = "46c04b19-3fb2-4891-8e38-2726ed560cd3" } ``` diff --git a/docs/resources/destination_sftp_json.md b/docs/resources/destination_sftp_json.md index b89b538fa..ecd35855b 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 = "Araceli.Kiehn85" + username = "Kristin95" } - definition_id = "5b00289a-0dc0-4232-9a5c-ae9f3888495e" - name = "Dr. Bennie Cassin" - workspace_id = "b305f362-4c43-4900-b25f-a3e33722ced9" + definition_id = "9eaf9a8e-2157-4a85-a0c8-9e77fd0c2020" + name = "Rick Sporer" + workspace_id = "6de60f94-2f93-47a3-8595-08dd11c7ed17" } ``` diff --git a/docs/resources/destination_snowflake.md b/docs/resources/destination_snowflake.md index 1ef7a5f61..ba699397d 100644 --- a/docs/resources/destination_snowflake.md +++ b/docs/resources/destination_snowflake.md @@ -23,18 +23,19 @@ resource "airbyte_destination_snowflake" "my_destination_snowflake" { } database = "AIRBYTE_DATABASE" disable_type_dedupe = false - host = "accountname.snowflakecomputing.com" + host = "accountname.us-east-2.aws.snowflakecomputing.com" jdbc_url_params = "...my_jdbc_url_params..." raw_data_schema = "...my_raw_data_schema..." - retention_period_days = 5 + retention_period_days = 9 role = "AIRBYTE_ROLE" schema = "AIRBYTE_SCHEMA" + use_merge_for_upsert = false username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "f6fed365-1e7d-4549-a735-da213c86a8b9" - name = "Santiago Will" - workspace_id = "53876e3d-e30a-486e-8df1-9faac84c3184" + definition_id = "89a0dc02-329a-45ca-a9f3-888495eab20e" + name = "Mrs. Kelvin Dickens" + workspace_id = "3624c439-0072-45fa-be33-722ced92f8e0" } ``` @@ -66,7 +67,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 sync data into +- `warehouse` (String) Enter the name of the warehouse that you want to use as a compute cluster Optional: @@ -75,6 +76,7 @@ Optional: - `jdbc_url_params` (String) Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3 - `raw_data_schema` (String) The schema to write raw tables into (default: airbyte_internal) - `retention_period_days` (Number) The number of days of Snowflake Time Travel to enable on the tables. See Snowflake's documentation for more information. Setting a nonzero value will incur increased storage costs in your Snowflake instance. Default: 1 +- `use_merge_for_upsert` (Boolean) Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE. Default: false ### Nested Schema for `configuration.credentials` @@ -107,8 +109,8 @@ Required: Optional: -- `client_id` (String) Enter your application's Client ID -- `client_secret` (String) Enter your application's Client secret +- `client_id` (String, Sensitive) Enter your application's Client ID +- `client_secret` (String, Sensitive) Enter your application's Client secret diff --git a/docs/resources/destination_snowflake_cortex.md b/docs/resources/destination_snowflake_cortex.md index 257e3aac3..0174fe592 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 = false + omit_raw_text = true processing = { - chunk_overlap = 2 - chunk_size = 0 + chunk_overlap = 9 + chunk_size = 2 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 = 6 + split_level = 4 } } } } - definition_id = "6a04bb96-66e7-4d15-a7ee-dd4643586b68" - name = "Tommie Sporer I" - workspace_id = "c292fcfa-b73b-49ba-9d30-45674ad28dce" + definition_id = "51e7d549-6735-4da2-93c8-6a8b9fef8f53" + name = "Jessie Jones" + workspace_id = "de30a86e-4df1-49fa-ac84-c31846ef3644" } ``` @@ -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 sync data into +- `warehouse` (String) Enter the name of the warehouse that you want to use as a compute cluster ### Nested Schema for `configuration.indexing.credentials` diff --git a/docs/resources/destination_teradata.md b/docs/resources/destination_teradata.md index 695ebbf8a..23fca2072 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 = "Arch_Stehr" + username = "Lillian.Keebler" } - definition_id = "d713664c-8ab0-488c-a48e-91396f340754" - name = "Mr. Eula Heidenreich" - workspace_id = "86d04e60-8039-4bc7-ab07-32a47524bb49" + definition_id = "4bb9666e-7d15-4e7e-add4-643586b689fd" + name = "Eric Fadel" + workspace_id = "92fcfab7-3b9b-4a5d-b045-674ad28dce71" } ``` @@ -105,7 +105,7 @@ Optional: Required: -- `ssl_ca_certificate` (String) Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-ca. +- `ssl_ca_certificate` (String, Sensitive) Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-ca. See more information - in the docs. @@ -114,7 +114,7 @@ Required: Required: -- `ssl_ca_certificate` (String) Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-full. +- `ssl_ca_certificate` (String, Sensitive) Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-full. See more information - in the docs. ## Import diff --git a/docs/resources/destination_timeplus.md b/docs/resources/destination_timeplus.md new file mode 100644 index 000000000..7cc12d0ce --- /dev/null +++ b/docs/resources/destination_timeplus.md @@ -0,0 +1,62 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_destination_timeplus Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + DestinationTimeplus Resource +--- + +# airbyte_destination_timeplus (Resource) + +DestinationTimeplus Resource + +## Example Usage + +```terraform +resource "airbyte_destination_timeplus" "my_destination_timeplus" { + configuration = { + apikey = "...my_apikey..." + endpoint = "https://us-west-2.timeplus.cloud/workspace_id" + } + definition_id = "d7fd7136-64c8-4ab0-88c2-48e91396f340" + name = "Samantha Gleason" + workspace_id = "500686d0-4e60-4803-9bc7-eb0732a47524" +} +``` + + +## 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: + +- `apikey` (String, Sensitive) Personal API key + +Optional: + +- `endpoint` (String) Timeplus workspace endpoint. Default: "https://us-west-2.timeplus.cloud/" + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_destination_timeplus.my_airbyte_destination_timeplus "" +``` diff --git a/docs/resources/destination_typesense.md b/docs/resources/destination_typesense.md index 7c1616323..e35300065 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 = 0 + batch_size = 7 host = "...my_host..." path = "...my_path..." port = "...my_port..." protocol = "...my_protocol..." } - definition_id = "aa753ad1-1902-4ba1-8886-0231ad193af4" - name = "Raymond McDermott" - workspace_id = "c92d33ca-e7ed-4b40-9c23-9e69c6f21d65" + definition_id = "b490aa75-3ad1-4190-aba1-88860231ad19" + name = "Sandy Wuckert" + workspace_id = "1985c92d-33ca-4e7e-9b40-1c239e69c6f2" } ``` @@ -51,8 +51,8 @@ resource "airbyte_destination_typesense" "my_destination_typesense" { Required: -- `api_key` (String, Sensitive) Typesense API Key -- `host` (String) Hostname of the Typesense instance without protocol. +- `api_key` (String) Typesense API Key +- `host` (String) Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. Optional: diff --git a/docs/resources/destination_vectara.md b/docs/resources/destination_vectara.md index 1399e1504..9fcbcb87c 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 = "173cccbb-c51a-43ca-a62e-557cba0d3380" - name = "Beverly Murray" - workspace_id = "67fcf379-fa40-411e-ae8d-b1144f7f4dcb" + definition_id = "d654173c-ccbb-4c51-a3ca-a62e557cba0d" + name = "Mr. Sherry Leuschke" + workspace_id = "a5767fcf-379f-4a40-91ea-e8db1144f7f4" } ``` @@ -76,7 +76,7 @@ Optional: Required: - `client_id` (String) OAuth2.0 client id -- `client_secret` (String) OAuth2.0 client secret +- `client_secret` (String, Sensitive) OAuth2.0 client secret ## Import diff --git a/docs/resources/destination_weaviate.md b/docs/resources/destination_weaviate.md index 6d5bcc7e2..40b4cf91f 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 = 1 - default_vectorizer = "text2vec-palm" + batch_size = 9 + default_vectorizer = "text2vec-transformers" host = "https://my-cluster.weaviate.network" tenant_id = "...my_tenant_id..." text_field = "...my_text_field..." } - omit_raw_text = false + omit_raw_text = true processing = { - chunk_overlap = 0 - chunk_size = 5 + chunk_overlap = 1 + chunk_size = 6 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 = 4 + split_level = 0 } } } } - definition_id = "8467e5cd-3332-485c-bcc3-fde334f786aa" - name = "Dale Padberg" - workspace_id = "527fe19e-b1bf-48ee-a339-467597e801e6" + definition_id = "0858467e-5cd3-4332-85c7-cc3fde334f78" + name = "Maggie Nolan" + workspace_id = "aaf527fe-19eb-41bf-8ee2-339467597e80" } ``` @@ -193,7 +193,7 @@ Optional: - `additional_headers` (Attributes List) Additional HTTP headers to send with every request. (see [below for nested schema](#nestedatt--configuration--indexing--additional_headers)) - `batch_size` (Number) The number of records to send to Weaviate in each batch. Default: 128 - `default_vectorizer` (String) The vectorizer to use if new classes need to be created. must be one of ["none", "text2vec-cohere", "text2vec-huggingface", "text2vec-openai", "text2vec-palm", "text2vec-contextionary", "text2vec-transformers", "text2vec-gpt4all"]; Default: "none" -- `tenant_id` (String) The tenant ID to use for multi tenancy. Default: "" +- `tenant_id` (String, Sensitive) The tenant ID to use for multi tenancy. Default: "" - `text_field` (String) The field in the object that contains the embedded text. Default: "text" @@ -232,8 +232,8 @@ Required: Required: -- `header_key` (String, Sensitive) -- `value` (String) +- `header_key` (String) +- `value` (String, Sensitive) diff --git a/docs/resources/destination_yellowbrick.md b/docs/resources/destination_yellowbrick.md index 665aa9f04..ebd680c9a 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 = "Jonathan.Mante" + username = "Heath_Klocko" } - definition_id = "6f396c7c-6bf7-4372-8213-ca1059f1e303" - name = "Nancy Weimann PhD" - workspace_id = "aa50681b-c3ad-4b09-8c01-3842c101e265" + definition_id = "9a46f396-c7c6-4bf7-b724-213ca1059f1e" + name = "Patricia Franecki DVM" + workspace_id = "c0eaa506-81bc-43ad-b090-c013842c101e" } ``` @@ -113,7 +113,7 @@ Optional: Required: -- `ca_certificate` (String) CA certificate +- `ca_certificate` (String, Sensitive) CA certificate Optional: @@ -125,8 +125,8 @@ Optional: Required: -- `ca_certificate` (String) CA certificate -- `client_certificate` (String) Client certificate +- `ca_certificate` (String, Sensitive) CA certificate +- `client_certificate` (String, Sensitive) Client certificate - `client_key` (String, Sensitive) Client key Optional: diff --git a/docs/resources/permission.md b/docs/resources/permission.md index dd63c8a85..f1afe7f56 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 = "eebc230b-1509-44cc-a185-4edb75e7d1c9" - permission_type = "workspace_reader" - user_id = "dc2da362-faf1-4b28-be26-cb1bb0550b4e" - workspace_id = "344126e7-f293-436e-a378-18d15373da8d" + organization_id = "265eebc2-30b1-4509-8cc2-1854edb75e7d" + permission_type = "organization_admin" + user_id = "c9ddc2da-362f-4af1-b28f-e26cb1bb0550" + workspace_id = "b4e34412-6e7f-4293-b6e2-37818d15373d" } ``` diff --git a/docs/resources/source_aha.md b/docs/resources/source_aha.md index 1e1a66d87..0434377d8 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 = "6eef0475-7630-4ddb-82db-f188dfabd571" - name = "Joyce Pagac" + definition_id = "a8d6eef0-4757-4630-9dbc-2dbf188dfabd" + name = "Mr. Colleen Botsford" secret_id = "...my_secret_id..." - workspace_id = "1dffa69f-e714-43a3-a9a2-44d7bc1a5a6e" + workspace_id = "c61dffa6-9fe7-4143-a3e9-a244d7bc1a5a" } ``` diff --git a/docs/resources/source_airbyte.md b/docs/resources/source_airbyte.md new file mode 100644 index 000000000..3eb0db1b4 --- /dev/null +++ b/docs/resources/source_airbyte.md @@ -0,0 +1,63 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_airbyte Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceAirbyte Resource +--- + +# airbyte_source_airbyte (Resource) + +SourceAirbyte Resource + +## Example Usage + +```terraform +resource "airbyte_source_airbyte" "my_source_airbyte" { + configuration = { + client_id = "...my_client_id..." + client_secret = "...my_client_secret..." + start_date = "2022-02-13T07:54:38.533Z" + } + definition_id = "1cc19313-7221-4402-bee7-1b638bd648d5" + name = "Nina Boyle" + secret_id = "...my_secret_id..." + workspace_id = "feb93d4b-bde9-4f2b-b80c-d3fe4ad28293" +} +``` + + +## 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, Sensitive) +- `start_date` (String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_airbyte.my_airbyte_source_airbyte "" +``` diff --git a/docs/resources/source_aircall.md b/docs/resources/source_aircall.md index f0d77310a..d01e5b00a 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 = "c1931372-2140-427e-a71b-638bd648d548" - name = "Lucille O'Conner" + definition_id = "45275644-5179-430e-98d4-3c0dabba6ef9" + name = "Myron Emard" secret_id = "...my_secret_id..." - workspace_id = "b93d4bbd-e9f2-4bb8-8cd3-fe4ad282938c" + workspace_id = "744fd252-e57a-4a67-bd28-259f0c220e39" } ``` @@ -50,7 +50,7 @@ resource "airbyte_source_aircall" "my_source_aircall" { Required: -- `api_id` (String) App ID found at settings https://dashboard.aircall.io/integrations/api-keys +- `api_id` (String, Sensitive) App ID found at settings https://dashboard.aircall.io/integrations/api-keys - `api_token` (String, Sensitive) App token found at settings (Ref- https://dashboard.aircall.io/integrations/api-keys) - `start_date` (String) Date time filter for incremental filter, Specify which date to extract from. diff --git a/docs/resources/source_airtable.md b/docs/resources/source_airtable.md index 9fa5a6208..dcf3408f6 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-08-20T20:34:02.471Z" + token_expiry_date = "2022-08-17T07:42:16.884Z" } } } - definition_id = "27564451-7930-4ed8-943c-0dabba6ef9fc" - name = "Krista Franecki" + definition_id = "0d6ef09f-b849-4b0b-9f3d-5ca96c63354a" + name = "Juan Smitham" secret_id = "...my_secret_id..." - workspace_id = "4fd252e5-7aa6-473d-a825-9f0c220e39e1" + workspace_id = "c3d11ff9-34df-40d7-96d8-b0d90daf9186" } ``` @@ -71,14 +71,14 @@ Optional: Required: -- `client_id` (String) The client ID of the Airtable developer application. -- `client_secret` (String) The client secret the Airtable developer application. +- `client_id` (String, Sensitive) The client ID of the Airtable developer application. +- `client_secret` (String, Sensitive) The client secret the Airtable developer application. - `refresh_token` (String, Sensitive) The key to refresh the expired access token. Optional: - `access_token` (String, Sensitive) Access Token for making authenticated requests. -- `token_expiry_date` (String, Sensitive) The date-time when the access token should be refreshed. +- `token_expiry_date` (String) The date-time when the access token should be refreshed. diff --git a/docs/resources/source_amazon_ads.md b/docs/resources/source_amazon_ads.md index 8f64a13f8..ad7963a9a 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 = 3 + look_back_window = 10 marketplace_ids = [ "...", ] @@ -25,19 +25,19 @@ resource "airbyte_source_amazon_ads" "my_source_amazonads" { 4, ] refresh_token = "...my_refresh_token..." - region = "FE" + region = "NA" report_record_types = [ - "targets", + "keywords", ] start_date = "2022-10-10" state_filter = [ "archived", ] } - definition_id = "849b0bdf-3d5c-4a96-8633-54ae1d23c3d1" - name = "Jaime Weimann" + definition_id = "3879ec56-6b1d-41d8-bb57-bf001ddb3cf0" + name = "Hazel Stehr" secret_id = "...my_secret_id..." - workspace_id = "4df0d756-d8b0-4d90-9af9-186ab63a7b2e" + workspace_id = "7d201b0d-069b-4b26-a6b9-f25aa9f8c7d4" } ``` @@ -65,8 +65,8 @@ resource "airbyte_source_amazon_ads" "my_source_amazonads" { Required: -- `client_id` (String) The client ID of your Amazon Ads developer application. See the docs for more information. -- `client_secret` (String) The client secret of your Amazon Ads developer application. See the docs for more information. +- `client_id` (String, Sensitive) The client ID of your Amazon Ads developer application. See the docs for more information. +- `client_secret` (String, Sensitive) The client secret of your Amazon Ads developer application. See the docs for more information. - `refresh_token` (String, Sensitive) Amazon Ads refresh token. See the docs for more information on how to obtain this token. Optional: diff --git a/docs/resources/source_amazon_seller_partner.md b/docs/resources/source_amazon_seller_partner.md index 7d6807646..c2a463349 100644 --- a/docs/resources/source_amazon_seller_partner.md +++ b/docs/resources/source_amazon_seller_partner.md @@ -16,12 +16,12 @@ SourceAmazonSellerPartner Resource resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" { configuration = { account_type = "Seller" - aws_environment = "SANDBOX" + aws_environment = "PRODUCTION" lwa_app_id = "...my_lwa_app_id..." lwa_client_secret = "...my_lwa_client_secret..." period_in_days = 5 refresh_token = "...my_refresh_token..." - region = "MX" + region = "AU" replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" report_options_list = [ @@ -32,15 +32,16 @@ resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" option_value = "...my_option_value..." }, ] - report_name = "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING" + report_name = "GET_XML_BROWSE_TREE_DATA" stream_name = "...my_stream_name..." }, ] + wait_to_avoid_fatal_errors = false } - definition_id = "b1d1d8bb-57bf-4001-9db3-cf074d627d20" - name = "Karla Adams III" + definition_id = "e8959afe-ef69-4ead-9e5d-3690efc6e828" + name = "Walter Spinka" secret_id = "...my_secret_id..." - workspace_id = "9bb26e6b-9f25-4aa9-b8c7-d4107048d9ff" + workspace_id = "db5daa9e-a927-4cae-bb29-c85e6b856286" } ``` @@ -68,8 +69,8 @@ resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" Required: -- `lwa_app_id` (String) Your Login with Amazon Client ID. -- `lwa_client_secret` (String) Your Login with Amazon Client Secret. +- `lwa_app_id` (String, Sensitive) Your Login with Amazon Client ID. +- `lwa_client_secret` (String, Sensitive) Your Login with Amazon Client Secret. - `refresh_token` (String, Sensitive) The Refresh Token obtained via OAuth flow authorization. Optional: @@ -79,8 +80,9 @@ 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, 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 or older than 2 years ago from today, 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)) +- `wait_to_avoid_fatal_errors` (Boolean) For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See Troubleshooting section for more details. Default: false ### Nested Schema for `configuration.report_options_list` diff --git a/docs/resources/source_amazon_sqs.md b/docs/resources/source_amazon_sqs.md index 30e133b0b..6980e5d81 100644 --- a/docs/resources/source_amazon_sqs.md +++ b/docs/resources/source_amazon_sqs.md @@ -17,18 +17,18 @@ resource "airbyte_source_amazon_sqs" "my_source_amazonsqs" { configuration = { access_key = "xxxxxHRNxxx3TBxxxxxx" attributes_to_return = "attr1,attr2" - delete_messages = true + delete_messages = false max_batch_size = 5 max_wait_time = 5 queue_url = "https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue" - region = "ap-southeast-4" + region = "ap-northeast-1" secret_key = "hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz" visibility_timeout = 15 } - definition_id = "afeef69e-ad1e-45d3-a90e-fc6e828b1d2d" - name = "Wm Herman" + definition_id = "f83c21b5-17b1-46f1-b884-6bcd51374519" + name = "Renee Schamberger" secret_id = "...my_secret_id..." - workspace_id = "a9ea927c-ae7b-429c-85e6-b85628652e0f" + workspace_id = "360526ae-8aa3-4c4f-a879-13b8668105e1" } ``` diff --git a/docs/resources/source_amplitude.md b/docs/resources/source_amplitude.md index 7aa74977b..fe4859a9e 100644 --- a/docs/resources/source_amplitude.md +++ b/docs/resources/source_amplitude.md @@ -16,15 +16,15 @@ SourceAmplitude Resource resource "airbyte_source_amplitude" "my_source_amplitude" { configuration = { api_key = "...my_api_key..." - data_region = "EU Residency Server" + data_region = "Standard Server" request_time_range = 5 secret_key = "...my_secret_key..." start_date = "2021-01-25T00:00:00Z" } - definition_id = "21b517b1-6f1f-4884-abcd-5137451945c4" - name = "Mrs. Sylvia Howe" + definition_id = "b2a875a1-ca19-40e9-9bd1-182a17eb0af6" + name = "Teri Wehner" secret_id = "...my_secret_id..." - workspace_id = "6ae8aa3c-4f28-4791-bb86-68105e1180fb" + workspace_id = "73356f39-bea5-4e20-89f0-e8905c8543b9" } ``` diff --git a/docs/resources/source_apify_dataset.md b/docs/resources/source_apify_dataset.md index 1ff43cdfc..5f4608a3e 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 = "2a875a1c-a190-4e95-bd11-82a17eb0af63" - name = "Darin Windler" + definition_id = "184cac7d-cada-4d29-b8da-5765e7880f00" + name = "Curtis Berge" secret_id = "...my_secret_id..." - workspace_id = "3356f39b-ea5e-4208-9f0e-8905c8543b91" + workspace_id = "ef9a90fa-7f8f-4441-b58d-fc559a0bee1c" } ``` diff --git a/docs/resources/source_appfollow.md b/docs/resources/source_appfollow.md index 1f4f7283e..5e4181516 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 = "84cac7dc-adad-4293-8da5-765e7880f00a" - name = "Brenda Stanton" + definition_id = "5ff22338-9204-4226-9684-e73ef602c915" + name = "Vernon Mills" secret_id = "...my_secret_id..." - workspace_id = "f9a90fa7-f8f4-441b-98df-c559a0bee1c5" + workspace_id = "f5896557-ce17-4ccd-ab10-d6388d4fdfb9" } ``` @@ -48,7 +48,7 @@ resource "airbyte_source_appfollow" "my_source_appfollow" { Optional: -- `api_secret` (String) API Key provided by Appfollow +- `api_secret` (String, Sensitive) API Key provided by Appfollow ## Import diff --git a/docs/resources/source_asana.md b/docs/resources/source_asana.md index 78adae440..eaaa79862 100644 --- a/docs/resources/source_asana.md +++ b/docs/resources/source_asana.md @@ -27,10 +27,10 @@ resource "airbyte_source_asana" "my_source_asana" { ] test_mode = true } - definition_id = "f2233892-0422-4616-84e7-3ef602c915f5" - name = "Ron Schimmel" + definition_id = "f007bc04-191b-4eb0-97f0-7c546621bdba" + name = "Robert Feeney" secret_id = "...my_secret_id..." - workspace_id = "896557ce-17cc-4d6b-90d6-388d4fdfb9af" + workspace_id = "f51ed0a8-181e-46e5-9fd9-ebe7b2f5ca6e" } ``` @@ -75,8 +75,8 @@ Optional: Required: -- `client_id` (String) -- `client_secret` (String) +- `client_id` (String, Sensitive) +- `client_secret` (String, Sensitive) - `refresh_token` (String, Sensitive) diff --git a/docs/resources/source_auth0.md b/docs/resources/source_auth0.md index aa75e042e..4cb222559 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 = "007bc041-91be-4b05-bf07-c546621bdba9" - name = "Victoria Haley" + definition_id = "cdfaf2b0-5210-4208-a036-b268d758466c" + name = "Hector Ebert Jr." secret_id = "...my_secret_id..." - workspace_id = "51ed0a81-81e6-4e55-bd9e-be7b2f5ca6ec" + workspace_id = "b1b394b8-4acd-4f8d-b6a4-f7e23711b260" } ``` @@ -59,7 +59,7 @@ Required: Optional: -- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Default: "2023-08-05T00:43:59.244Z" +- `start_date` (String, Sensitive) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Default: "2023-08-05T00:43:59.244Z" ### Nested Schema for `configuration.credentials` @@ -84,7 +84,7 @@ Required: - `audience` (String) The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab - `client_id` (String) Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal. -- `client_secret` (String) Your application's Client Secret. You can find this value on the application's settings tab after you login the admin portal. +- `client_secret` (String, Sensitive) Your application's Client Secret. You can find this value on the application's settings tab after you login the admin portal. ## Import diff --git a/docs/resources/source_aws_cloudtrail.md b/docs/resources/source_aws_cloudtrail.md index 07b55c5aa..8bd0135af 100644 --- a/docs/resources/source_aws_cloudtrail.md +++ b/docs/resources/source_aws_cloudtrail.md @@ -18,12 +18,16 @@ 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..." - start_date = "2021-01-01" + lookup_attributes_filter = { + attribute_key = "EventName" + attribute_value = "ConsoleLogin" + } + start_date = "2021-01-01" } - definition_id = "af2b0521-0208-4e03-ab26-8d758466c963" - name = "Justin Bauch MD" + definition_id = "38a1edcb-36cd-4a3d-91cb-c15623ec6453" + name = "Doyle Hirthe" secret_id = "...my_secret_id..." - workspace_id = "394b84ac-df8d-4b6a-8f7e-23711b260f5d" + workspace_id = "cf0d0e20-de16-4b8d-a7b8-143f851cf99c" } ``` @@ -52,12 +56,21 @@ 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: -- `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" +- `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) Default: "EventName" +- `attribute_value` (String) Default: "ListInstanceAssociations" ## Import diff --git a/docs/resources/source_azure_blob_storage.md b/docs/resources/source_azure_blob_storage.md index aa70c82de..a8cdcc457 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 = 7 + days_to_sync_if_history_is_full = 9 format = { avro_format = { - double_as_string = true + double_as_string = false } } 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 = "Al Sanford" + name = "Mrs. Olive Hills" primary_key = "...my_primary_key..." schemaless = true validation_policy = "Wait for Discover" }, ] } - definition_id = "da3d51cb-c156-423e-8645-3ce6c3cf0d0e" - name = "Sandra Stroman III" + definition_id = "cf4f6487-4e62-4c58-9879-2fd48887cb19" + name = "Jim Kuvalis" secret_id = "...my_secret_id..." - workspace_id = "b8da7b81-43f8-451c-b99c-7fd70e50457d" + workspace_id = "8b4573d6-6d00-47e5-aa2e-4396e7403ea2" } ``` @@ -102,10 +102,10 @@ Optional: Required: -- `client_id` (String) Client ID of your Microsoft developer application -- `client_secret` (String) Client Secret of your Microsoft developer application +- `client_id` (String, Sensitive) Client ID of your Microsoft developer application +- `client_secret` (String, Sensitive) Client Secret of your Microsoft developer application - `refresh_token` (String, Sensitive) Refresh Token of your Microsoft developer application -- `tenant_id` (String) Tenant ID of the Microsoft Azure Application user +- `tenant_id` (String, Sensitive) Tenant ID of the Microsoft Azure Application user @@ -131,7 +131,7 @@ Optional: - `globs` (List of String) The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here. - `input_schema` (String) The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. - `legacy_prefix` (String) The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. -- `primary_key` (String, Sensitive) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `primary_key` (String) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. - `schemaless` (Boolean) When enabled, syncs will not validate or structure records against the stream's schema. Default: false - `validation_policy` (String) The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. must be one of ["Emit Record", "Skip Record", "Wait for Discover"]; Default: "Emit Record" diff --git a/docs/resources/source_azure_table.md b/docs/resources/source_azure_table.md index ac39484cc..3462b975e 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 = "f4f64874-e62c-458d-8792-fd48887cb19c" - name = "Vickie Ullrich" + definition_id = "50959a4f-a50e-4807-886b-d0cbf5314eea" + name = "Lana Nienow MD" secret_id = "...my_secret_id..." - workspace_id = "b4573d66-d007-4e52-a2e4-396e7403ea2d" + workspace_id = "a3736727-1c78-4a9a-a960-3df323c7d784" } ``` @@ -51,11 +51,11 @@ resource "airbyte_source_azure_table" "my_source_azuretable" { Required: - `storage_access_key` (String, Sensitive) Azure Table Storage Access Key. See the docs for more information on how to obtain this key. -- `storage_account_name` (String) The name of your storage account. +- `storage_account_name` (String, Sensitive) The name of your storage account. Optional: -- `storage_endpoint_suffix` (String) Azure Table Storage service account URL suffix. See the docs for more information on how to obtain endpoint suffix. Default: "core.windows.net" +- `storage_endpoint_suffix` (String, Sensitive) Azure Table Storage service account URL suffix. See the docs for more information on how to obtain endpoint suffix. Default: "core.windows.net" ## Import diff --git a/docs/resources/source_bamboo_hr.md b/docs/resources/source_bamboo_hr.md index 07a33bdfa..06a5e9bbb 100644 --- a/docs/resources/source_bamboo_hr.md +++ b/docs/resources/source_bamboo_hr.md @@ -17,13 +17,14 @@ 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 = false + custom_reports_include_default_fields = true + start_date = "2022-01-27T18:56:04.985Z" subdomain = "...my_subdomain..." } - definition_id = "0959a4fa-50e8-407c-86bd-0cbf5314eea0" - name = "Miss Oliver Crooks" + definition_id = "f8882a19-738b-4218-b704-94da21b79cfd" + name = "Ira Padberg" secret_id = "...my_secret_id..." - workspace_id = "37367271-c78a-49aa-9603-df323c7d7845" + workspace_id = "821deb72-64da-4d9e-9fb5-3126691bfb5d" } ``` @@ -58,6 +59,7 @@ Optional: - `custom_reports_fields` (String) Comma-separated list of fields to include in custom reports. - `custom_reports_include_default_fields` (Boolean) If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. Default: true +- `start_date` (String) ## Import diff --git a/docs/resources/source_basecamp.md b/docs/resources/source_basecamp.md new file mode 100644 index 000000000..6b3fc51b8 --- /dev/null +++ b/docs/resources/source_basecamp.md @@ -0,0 +1,67 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_basecamp Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceBasecamp Resource +--- + +# airbyte_source_basecamp (Resource) + +SourceBasecamp Resource + +## Example Usage + +```terraform +resource "airbyte_source_basecamp" "my_source_basecamp" { + configuration = { + account_id = 73.8 + client_id = "...my_client_id..." + client_refresh_token_2 = "...my_client_refresh_token_2..." + client_secret = "...my_client_secret..." + start_date = "2021-03-02T21:10:19.438Z" + } + definition_id = "a24da51f-b73f-4472-b2e8-bbfe18227a33" + name = "Shirley Lesch" + secret_id = "...my_secret_id..." + workspace_id = "445f49be-6259-49f1-bb5c-61c8d2f7dd6e" +} +``` + + +## 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: + +- `account_id` (Number) +- `client_id` (String, Sensitive) +- `client_refresh_token_2` (String, Sensitive) +- `client_secret` (String, Sensitive) +- `start_date` (String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_basecamp.my_airbyte_source_basecamp "" +``` diff --git a/docs/resources/source_bigquery.md b/docs/resources/source_bigquery.md index 30c1845dd..b5bad4c82 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 = "b7f8882a-1973-48b2-98b7-0494da21b79c" - name = "Lionel McKenzie" + definition_id = "e9c7e740-1902-4821-9543-0f8964a321f4" + name = "Mildred Weimann" secret_id = "...my_secret_id..." - workspace_id = "f3821deb-7264-4dad-9e5f-b53126691bfb" + workspace_id = "aad078a3-612f-4cb5-a7fd-d854e0c39c22" } ``` @@ -50,7 +50,7 @@ resource "airbyte_source_bigquery" "my_source_bigquery" { Required: -- `credentials_json` (String) The contents of your Service Account Key JSON file. See the docs for more information on how to obtain this key. +- `credentials_json` (String, Sensitive) The contents of your Service Account Key JSON file. See the docs for more information on how to obtain this key. - `project_id` (String) The GCP project ID for the project containing the target BigQuery dataset. Optional: diff --git a/docs/resources/source_bing_ads.md b/docs/resources/source_bing_ads.md index 3393ac576..16c793e68 100644 --- a/docs/resources/source_bing_ads.md +++ b/docs/resources/source_bing_ads.md @@ -17,7 +17,7 @@ resource "airbyte_source_bing_ads" "my_source_bingads" { configuration = { account_names = [ { - name = "Eula Ritchie" + name = "Bert Bins" operator = "Equals" }, ] @@ -25,24 +25,24 @@ resource "airbyte_source_bing_ads" "my_source_bingads" { client_secret = "...my_client_secret..." custom_reports = [ { - name = "Account Performance" + name = "AdDynamicTextPerformanceReport" report_aggregation = "...my_report_aggregation..." report_columns = [ "...", ] - reporting_object = "ProductNegativeKeywordConflictReportRequest" + reporting_object = "GeographicPerformanceReportRequest" }, ] developer_token = "...my_developer_token..." - lookback_window = 5 + lookback_window = 1 refresh_token = "...my_refresh_token..." - reports_start_date = "2022-01-16" + reports_start_date = "2022-01-11" tenant_id = "...my_tenant_id..." } - definition_id = "472f2e8b-bfe1-4822-ba33-308df445f49b" - name = "Chester Dach" + definition_id = "f7f1a27e-8fd2-4f19-bd4f-9ab29a2f8317" + name = "Frankie Runte" secret_id = "...my_secret_id..." - workspace_id = "9f17b5c6-1c8d-42f7-9d6e-e9c7e7401902" + workspace_id = "3eab02cc-b908-4523-9f16-a0cc4991982a" } ``` @@ -70,18 +70,18 @@ resource "airbyte_source_bing_ads" "my_source_bingads" { Required: -- `client_id` (String) The Client ID of your Microsoft Advertising developer application. +- `client_id` (String, Sensitive) The Client ID of your Microsoft Advertising developer application. - `developer_token` (String, Sensitive) Developer token associated with user. See more info in the docs. - `refresh_token` (String, Sensitive) Refresh Token to renew the expired Access Token. Optional: - `account_names` (Attributes List) Predicates that will be used to sync data by specific accounts. (see [below for nested schema](#nestedatt--configuration--account_names)) -- `client_secret` (String) The Client Secret of your Microsoft Advertising developer application. Default: "" +- `client_secret` (String, Sensitive) The Client Secret of your Microsoft Advertising developer application. Default: "" - `custom_reports` (Attributes List) You can add your Custom Bing Ads report by creating one. (see [below for nested schema](#nestedatt--configuration--custom_reports)) - `lookback_window` (Number) Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode without specified Reports Start Date. Default: 0 - `reports_start_date` (String) The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format. If not set, data from previous and current calendar year will be replicated. -- `tenant_id` (String) The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value. Default: "common" +- `tenant_id` (String, Sensitive) The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value. Default: "common" ### Nested Schema for `configuration.account_names` diff --git a/docs/resources/source_braintree.md b/docs/resources/source_braintree.md index 7da4cd46a..c4124b241 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 = "Development" + environment = "Qa" merchant_id = "...my_merchant_id..." private_key = "...my_private_key..." public_key = "...my_public_key..." start_date = "2020" } - definition_id = "430f8964-a321-4f43-9fb3-aad078a3612f" - name = "Abraham Herzog" + definition_id = "a7074f01-6f72-4127-b33f-8652b2551b02" + name = "Mr. Jana Runolfsson" secret_id = "...my_secret_id..." - workspace_id = "fdd854e0-c39c-422f-a17d-f57adf10725f" + workspace_id = "4a7ffb26-8dc1-4870-87d3-7ac99fd78516" } ``` @@ -55,7 +55,7 @@ Required: - `environment` (String) Environment specifies where the data will come from. must be one of ["Development", "Sandbox", "Qa", "Production"] - `merchant_id` (String) The unique identifier for your entire gateway account. See the docs for more information on how to obtain this ID. - `private_key` (String, Sensitive) Braintree Private Key. See the docs for more information on how to obtain this key. -- `public_key` (String, Sensitive) Braintree Public Key. See the docs for more information on how to obtain this key. +- `public_key` (String) Braintree Public Key. See the docs for more information on how to obtain this key. Optional: diff --git a/docs/resources/source_braze.md b/docs/resources/source_braze.md index 72fe46691..6c3e56856 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 = "2021-08-21" + start_date = "2022-10-27" url = "...my_url..." } - definition_id = "f1a27e8f-d2f1-493d-8f9a-b29a2f8317de" - name = "Herbert Torphy" + definition_id = "305e0c1f-4b65-4d9e-bd75-7e5946981cb4" + name = "Maria Lubowitz" secret_id = "...my_secret_id..." - workspace_id = "ab02ccb9-0852-43df-96a0-cc4991982a68" + workspace_id = "1686308e-adb7-43c3-a9be-0c12ece59b9f" } ``` diff --git a/docs/resources/source_breezy_hr.md b/docs/resources/source_breezy_hr.md new file mode 100644 index 000000000..8d22ff9a3 --- /dev/null +++ b/docs/resources/source_breezy_hr.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_breezy_hr Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceBreezyHr Resource +--- + +# airbyte_source_breezy_hr (Resource) + +SourceBreezyHr Resource + +## Example Usage + +```terraform +resource "airbyte_source_breezy_hr" "my_source_breezyhr" { + configuration = { + api_key = "...my_api_key..." + company_id = "...my_company_id..." + } + 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: + +- `api_key` (String, Sensitive) +- `company_id` (String, Sensitive) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_breezy_hr.my_airbyte_source_breezy_hr "" +``` diff --git a/docs/resources/source_punk_api.md b/docs/resources/source_calendly.md similarity index 58% rename from docs/resources/source_punk_api.md rename to docs/resources/source_calendly.md index b4a90184a..518786480 100644 --- a/docs/resources/source_punk_api.md +++ b/docs/resources/source_calendly.md @@ -1,28 +1,27 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_punk_api Resource - terraform-provider-airbyte" +page_title: "airbyte_source_calendly Resource - terraform-provider-airbyte" subcategory: "" description: |- - SourcePunkAPI Resource + SourceCalendly Resource --- -# airbyte_source_punk_api (Resource) +# airbyte_source_calendly (Resource) -SourcePunkAPI Resource +SourceCalendly Resource ## Example Usage ```terraform -resource "airbyte_source_punk_api" "my_source_punkapi" { +resource "airbyte_source_calendly" "my_source_calendly" { configuration = { - brewed_after = "MM-YYYY" - brewed_before = "MM-YYYY" - id = 22 + api_key = "...my_api_key..." + start_date = "2022-09-12T17:45:07.121Z" } - definition_id = "d21cf346-58e5-420f-854a-567309cc0ee4" - name = "Randolph Murphy" + definition_id = "ebc3680a-bb37-46bc-a66a-7c0ce20da3e9" + name = "Donnie Price II" secret_id = "...my_secret_id..." - workspace_id = "aed57205-4daa-484a-8e28-fea10a8a64b7" + workspace_id = "54cb2418-93e1-4da4-ac4f-685d205011b8" } ``` @@ -50,17 +49,13 @@ resource "airbyte_source_punk_api" "my_source_punkapi" { Required: -- `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 +- `api_key` (String, Sensitive) Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks +- `start_date` (String) ## Import Import is supported using the following syntax: ```shell -terraform import airbyte_source_punk_api.my_airbyte_source_punk_api "" +terraform import airbyte_source_calendly.my_airbyte_source_calendly "" ``` diff --git a/docs/resources/source_cart.md b/docs/resources/source_cart.md index f23dbb815..b3c61e041 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 = "Ceasar63" + user_name = "Joelle30" user_secret = "...my_user_secret..." } } start_date = "2021-01-01T00:00:00Z" } - definition_id = "7074f016-f721-427f-b3f8-652b2551b023" - name = "Mr. Spencer Casper" + definition_id = "73b75739-1086-418e-9144-5d83c494a849" + name = "Ms. Kristopher Hammes" secret_id = "...my_secret_id..." - workspace_id = "a7ffb268-dc18-4708-bd37-ac99fd785161" + workspace_id = "0e32c2e3-02e6-4de9-ab3e-43098446f983" } ``` @@ -74,9 +74,9 @@ Optional: Required: -- `site_id` (String) You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and reading the response param PSID -- `user_name` (String) Enter your application's User Name -- `user_secret` (String) Enter your application's User Secret +- `site_id` (String, Sensitive) You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and reading the response param PSID +- `user_name` (String, Sensitive) Enter your application's User Name +- `user_secret` (String, Sensitive) Enter your application's User Secret diff --git a/docs/resources/source_chargebee.md b/docs/resources/source_chargebee.md index 50e2d61f2..1646e1c7c 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 = "5e0c1f4b-65d9-4ebd-b57e-5946981cb460" - name = "Ms. Franklin Mraz" + definition_id = "422d15b8-2862-41a8-b7d2-e625cdd80ba5" + name = "Aubrey Harber" secret_id = "...my_secret_id..." - workspace_id = "6308eadb-73c3-469b-a0c1-2ece59b9fbae" + workspace_id = "6fc10ca6-7a82-47c3-9349-f444d8a8589d" } ``` diff --git a/docs/resources/source_chartmogul.md b/docs/resources/source_chartmogul.md index e018813cc..f98371d0a 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 = "e4749058-8d0e-4293-9574-a681eea74b87" - name = "Harold Willms IV" + definition_id = "94dcfaea-5500-4380-9e9f-446900c8feba" + name = "Mamie Green" secret_id = "...my_secret_id..." - workspace_id = "7d33223d-80bb-4993-a2d2-f45974a2ebc3" + workspace_id = "fea08abd-da32-48f6-8373-e06663420a6a" } ``` diff --git a/docs/resources/source_clazar.md b/docs/resources/source_clazar.md new file mode 100644 index 000000000..54ec3e81d --- /dev/null +++ b/docs/resources/source_clazar.md @@ -0,0 +1,61 @@ +--- +# 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 = "3ab4d447-55b9-410e-9c99-9e89cbd0e8f2" + name = "Vincent Kshlerin" + secret_id = "...my_secret_id..." + workspace_id = "1fbec883-da2f-4ecd-acab-29e0bc6002c3" +} +``` + + +## 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, Sensitive) +- `client_secret` (String, Sensitive) + +## 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 7b4bc15f8..017294089 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 = "Johnpaul_Barton69" + username = "Otho19" } - definition_id = "376bce66-a7c0-4ce2-8da3-e9aab71454cb" - name = "Charlotte Blick" + definition_id = "e8783d50-d4d2-4b80-850d-c344f66cbf0e" + name = "Trevor Bednar" secret_id = "...my_secret_id..." - workspace_id = "3e1da46c-4f68-45d2-8501-1b8862473b75" + workspace_id = "994ace41-dc5b-442f-aa22-8e88647f2d42" } ``` diff --git a/docs/resources/source_clickup_api.md b/docs/resources/source_clickup_api.md index 5b3f23414..ef9c91375 100644 --- a/docs/resources/source_clickup_api.md +++ b/docs/resources/source_clickup_api.md @@ -16,16 +16,12 @@ SourceClickupAPI Resource resource "airbyte_source_clickup_api" "my_source_clickupapi" { configuration = { api_token = "...my_api_token..." - folder_id = "...my_folder_id..." - include_closed_tasks = false - list_id = "...my_list_id..." - space_id = "...my_space_id..." - team_id = "...my_team_id..." + include_closed_tasks = true } - definition_id = "39108618-e914-445d-83c4-94a849cd517f" - name = "Sonja Douglas" + definition_id = "506042c1-c656-461b-a485-a060238eba13" + name = "Joyce Shields" secret_id = "...my_secret_id..." - workspace_id = "2e302e6d-e92b-43e4-b098-446f9835e642" + workspace_id = "00cfe1ba-68d3-4405-82b9-6029febd39e6" } ``` @@ -57,11 +53,7 @@ Required: Optional: -- `folder_id` (String) The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See here. - `include_closed_tasks` (Boolean) Include or exclude closed tasks. By default, they are excluded. See here. Default: false -- `list_id` (String) The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See here. -- `space_id` (String) The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See here. -- `team_id` (String) The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See here. ## Import diff --git a/docs/resources/source_clockify.md b/docs/resources/source_clockify.md index 185d00749..541920ede 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 = "2d15b828-621a-4877-92e6-25cdd80ba5ff" - name = "Tiffany Runolfsdottir" + definition_id = "abf17c2d-50cb-46e6-bf33-2bdf145775fc" + name = "Miss Ira Lesch" secret_id = "...my_secret_id..." - workspace_id = "c10ca67a-827c-43d3-89f4-44d8a8589d84" + workspace_id = "466bf78b-3b7d-4ede-947f-c7c1cb53c351" } ``` diff --git a/docs/resources/source_close_com.md b/docs/resources/source_close_com.md index 855385084..3ed366221 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 = "dcfaea55-0038-401e-9f44-6900c8feba7b" - name = "Annette Schiller" + definition_id = "9ddb3b3d-7401-439d-82cf-2cb416442d85" + name = "Vernon Ratke" secret_id = "...my_secret_id..." - workspace_id = "a08abdda-328f-46c3-b3e0-6663420a6a3a" + workspace_id = "82e70e18-a817-42f9-b227-1c9f9cbaa542" } ``` diff --git a/docs/resources/source_coda.md b/docs/resources/source_coda.md index e86c64150..3dcddea35 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 = "b4d44755-b910-4e5c-999e-89cbd0e8f2a3" - name = "Dr. Alexandra Runolfsson" + definition_id = "e6e08096-1d84-4c3f-bc24-f860fce85198" + name = "Andrew Cartwright" secret_id = "...my_secret_id..." - workspace_id = "ec883da2-fecd-42ca-b29e-0bc6002c3cc1" + workspace_id = "726581ee-6770-4fa8-ac1b-a804bd6457a4" } ``` diff --git a/docs/resources/source_coin_api.md b/docs/resources/source_coin_api.md index 9a24d8193..18b9d7242 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 = 2 + limit = 10 period = "2MTH" start_date = "2019-01-01T00:00:00" symbol_id = "...my_symbol_id..." } - definition_id = "8783d50d-4d2b-480c-90dc-344f66cbf0e9" - name = "Larry Hayes" + definition_id = "851a3541-ba6f-45d9-8d5a-8a349e2072bd" + name = "Jan DuBuque IV" secret_id = "...my_secret_id..." - workspace_id = "94ace41d-c5b4-42f2-a228-e88647f2d427" + workspace_id = "dbe50fcb-32a7-4817-babb-82e6a7189e92" } ``` diff --git a/docs/resources/source_coinmarketcap.md b/docs/resources/source_coinmarketcap.md index fb9ef6efc..ac0b5add0 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 = "06042c1c-6566-41b2-885a-060238eba136" - name = "Angelina Feeney Jr." + definition_id = "6d74638d-1409-4463-9cf5-dd4a0c05f536" + name = "Reginald Rath" secret_id = "...my_secret_id..." - workspace_id = "cfe1ba68-d340-4502-b960-29febd39e6ab" + workspace_id = "8b8f8f6a-fbf3-465d-a87e-087e3905b6a4" } ``` diff --git a/docs/resources/source_configcat.md b/docs/resources/source_configcat.md index 818d1f9cd..49c3668b6 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 = "Wilmer_Bernier" + username = "Barney_Koss91" } - definition_id = "2d50cb6e-6ff3-432b-9f14-5775fcbb81a7" - name = "Tonya Kautzer" + definition_id = "b4f73b7e-8dc3-471e-8bee-10511b439ed1" + name = "Stephanie Runte" secret_id = "...my_secret_id..." - workspace_id = "78b3b7de-de54-47fc-bc1c-b53c351689dd" + workspace_id = "9f9b4783-ac23-42bf-a41c-80b23345c949" } ``` diff --git a/docs/resources/source_confluence.md b/docs/resources/source_confluence.md index eff83453a..105e93f46 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 = "740139dc-2cf2-4cb4-9644-2d85f5b6382e" - name = "Ms. Laura Upton" + definition_id = "9f5a34ff-680c-488d-8e9f-7431721e4227" + name = "Miss Dewey Hintz" secret_id = "...my_secret_id..." - workspace_id = "8172f932-271c-49f9-8baa-542e6e080961" + workspace_id = "6ec345b5-c1ba-4e74-b26a-8cd9c5aad47a" } ``` diff --git a/docs/resources/source_convex.md b/docs/resources/source_convex.md index 28c1f6113..c321cab32 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 = "84c3fbc2-4f86-40fc-a851-98c116e72658" - name = "Kellie Torphy" + definition_id = "da11e10d-002e-41c7-bf9b-a1e39a63be20" + name = "Jermaine Ortiz" secret_id = "...my_secret_id..." - workspace_id = "70fa8ec1-ba80-44bd-a457-a40e8851a354" + workspace_id = "93eb808e-c8c0-4a1f-9167-1a56d068f4b5" } ``` diff --git a/docs/resources/source_custom.md b/docs/resources/source_custom.md index 43e897221..dc6b452da 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 = "1ba6f5d9-0d5a-48a3-89e2-072bdff3818d" - name = "Dr. Rogelio Harris" + definition_id = "e4c19596-433e-41d5-9484-aac586d05524" + name = "Lynne Hartmann" secret_id = "...my_secret_id..." - workspace_id = "b32a7817-3abb-482e-aa71-89e9256d7463" + workspace_id = "5b457a2c-2618-4fe1-b91d-cce8e649d767" } ``` diff --git a/docs/resources/source_customer_io.md b/docs/resources/source_customer_io.md new file mode 100644 index 000000000..0548851c7 --- /dev/null +++ b/docs/resources/source_customer_io.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_customer_io Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceCustomerIo Resource +--- + +# airbyte_source_customer_io (Resource) + +SourceCustomerIo Resource + +## Example Usage + +```terraform +resource "airbyte_source_customer_io" "my_source_customerio" { + configuration = { + app_api_key = "...my_app_api_key..." + } + definition_id = "5fb58122-af6a-48ac-a553-6a205f1e4d30" + name = "Alonzo Parker" + secret_id = "...my_secret_id..." + workspace_id = "00594fbd-8663-414c-ace0-2f96b833556f" +} +``` + + +## 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: + +- `app_api_key` (String, Sensitive) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_customer_io.my_airbyte_source_customer_io "" +``` diff --git a/docs/resources/source_datadog.md b/docs/resources/source_datadog.md new file mode 100644 index 000000000..6a657a86b --- /dev/null +++ b/docs/resources/source_datadog.md @@ -0,0 +1,91 @@ +--- +# 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 = "Miss Carolyn MacGyver" + query = "...my_query..." + }, + ] + query = "...my_query..." + site = "us5.datadoghq.com" + start_date = "2022-10-01T00:00:00Z" + } + definition_id = "cf1afcf9-4e3c-479c-beca-1c7573a5bbba" + name = "Howard Stoltenberg" + secret_id = "...my_secret_id..." + workspace_id = "0a2cef78-1247-45bc-a9a4-804a9e0ddc31" +} +``` + + +## 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. Default: "2024-01-01T00:00:00Z" +- `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. Default: "2023-12-01T00:00:00Z" + + +### 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 d7d394024..1188394b7 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 = "8d140946-39cf-45dd-8a0c-05f536f6b9b8" - name = "Dave Willms" + definition_id = "56b2ffd5-d6c6-49da-9497-add71ffdea58" + name = "Kristi Beahan" secret_id = "...my_secret_id..." - workspace_id = "6afbf365-d687-4e08-be39-05b6a417faeb" + workspace_id = "09edcef2-c435-47e7-ab14-9e6fe9a76bd2" } ``` diff --git a/docs/resources/source_dbt.md b/docs/resources/source_dbt.md new file mode 100644 index 000000000..fce5a9d51 --- /dev/null +++ b/docs/resources/source_dbt.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_dbt Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceDbt Resource +--- + +# airbyte_source_dbt (Resource) + +SourceDbt Resource + +## Example Usage + +```terraform +resource "airbyte_source_dbt" "my_source_dbt" { + configuration = { + account_id = "...my_account_id..." + api_key_2 = "...my_api_key_2..." + } + definition_id = "71d6f7a7-7e51-4b04-b8d5-2e6bc1e22381" + name = "Clint Sanford" + secret_id = "...my_secret_id..." + workspace_id = "9642f3c2-fe19-4c32-adfe-e92bc3373ad2" +} +``` + + +## 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: + +- `account_id` (String) +- `api_key_2` (String, Sensitive) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_dbt.my_airbyte_source_dbt "" +``` diff --git a/docs/resources/source_delighted.md b/docs/resources/source_delighted.md index 586d392fe..e18786631 100644 --- a/docs/resources/source_delighted.md +++ b/docs/resources/source_delighted.md @@ -16,12 +16,12 @@ SourceDelighted Resource resource "airbyte_source_delighted" "my_source_delighted" { configuration = { api_key = "...my_api_key..." - since = "2022-05-30T04:50:23Z" + since = "2022-05-30 04:50:23" } - definition_id = "3b7e8dc3-71ec-4bee-9051-1b439ed171c9" - name = "Kirk Windler" + definition_id = "7f28ef97-5a7b-4102-a548-7915a2f449e5" + name = "Jose Price" secret_id = "...my_secret_id..." - workspace_id = "4783ac23-2bfa-441c-80b2-3345c949a955" + workspace_id = "d5fb4b99-e2f7-4dc2-833c-76bbd55f566b" } ``` diff --git a/docs/resources/source_dixa.md b/docs/resources/source_dixa.md index 24f5fdc40..be3f05d63 100644 --- a/docs/resources/source_dixa.md +++ b/docs/resources/source_dixa.md @@ -19,10 +19,10 @@ resource "airbyte_source_dixa" "my_source_dixa" { batch_size = 1 start_date = "YYYY-MM-DD" } - definition_id = "a34ff680-c88d-48e9-b743-1721e4227fd5" - name = "Patty Huel" + definition_id = "0498ec40-fd8a-4d91-a1a0-5c5e889977ea" + name = "Gary Little" secret_id = "...my_secret_id..." - workspace_id = "c345b5c1-bae7-4472-aa8c-d9c5aad47afd" + workspace_id = "3c2d3308-2ab8-440e-9611-2c1fda0210a5" } ``` diff --git a/docs/resources/source_dockerhub.md b/docs/resources/source_dockerhub.md index 246ed4a93..423979353 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 = "a11e10d0-02e1-4c73-b9ba-1e39a63be209" - name = "Ernesto Murazik" + definition_id = "cfbec287-654f-412b-8840-28fbb0cddcf8" + name = "Julia Watsica" secret_id = "...my_secret_id..." - workspace_id = "3eb808ec-8c0a-41f1-9671-a56d068f4b5e" + workspace_id = "60165466-352d-4a9b-84e2-6c5d5cf50fbf" } ``` diff --git a/docs/resources/source_dremio.md b/docs/resources/source_dremio.md index df652cba1..14f0fba8b 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 = "4c195964-33e1-4d51-884a-ac586d055244" - name = "Floyd Hackett" + definition_id = "713464ed-5bf6-4d67-b06c-c548e68cfaef" + name = "Dr. Tom Langworth" secret_id = "...my_secret_id..." - workspace_id = "b457a2c2-618f-4e1b-91dc-ce8e649d7675" + workspace_id = "143ee10f-8279-4e42-bb2c-340e1d4b428b" } ``` diff --git a/docs/resources/source_dynamodb.md b/docs/resources/source_dynamodb.md index a2897ed97..50abe3384 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 = "me-central-1" + region = "af-south-1" reserved_attribute_names = "name, field_name, field-name" } - definition_id = "58122af6-a8ac-4655-b6a2-05f1e4d309ea" - name = "Mrs. Carole Beer" + definition_id = "c62aeeab-6a16-4bc0-b1be-5567777324c6" + name = "Horace Kunde" secret_id = "...my_secret_id..." - workspace_id = "4fbd8663-14ca-4ce0-af96-b833556f7e41" + workspace_id = "dac63878-54b6-49c4-ae8b-9a534c06fe5a" } ``` @@ -62,7 +62,7 @@ Optional: - `endpoint` (String) the URL of the Dynamodb database. Default: "" - `ignore_missing_read_permissions_tables` (Boolean) Ignore tables with missing scan/read permissions. Default: false - `region` (String) The region of the Dynamodb database. 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: "" -- `reserved_attribute_names` (String) Comma separated reserved attribute names present in your tables +- `reserved_attribute_names` (String, Sensitive) Comma separated reserved attribute names present in your tables ### Nested Schema for `configuration.credentials` diff --git a/docs/resources/source_emailoctopus.md b/docs/resources/source_emailoctopus.md index 3ac65c60e..63a63adb1 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 = "81b36cf1-afcf-494e-bc79-cbeca1c7573a" - name = "Candice Rath" + definition_id = "2e94eff2-11ad-4fc7-a1dd-1f80239a9296" + name = "Kimberly Schamberger" secret_id = "...my_secret_id..." - workspace_id = "82d4c0a2-cef7-4812-875b-ca9a4804a9e0" + workspace_id = "eb11448c-1cd3-4afe-9ef8-5381e22d9fe1" } ``` diff --git a/docs/resources/source_exchange_rates.md b/docs/resources/source_exchange_rates.md index 0d44abbf5..08b0698d0 100644 --- a/docs/resources/source_exchange_rates.md +++ b/docs/resources/source_exchange_rates.md @@ -17,13 +17,13 @@ resource "airbyte_source_exchange_rates" "my_source_exchangerates" { configuration = { access_key = "...my_access_key..." base = "USD" - ignore_weekends = false + ignore_weekends = true start_date = "YYYY-MM-DD" } - definition_id = "156b2ffd-5d6c-469d-a549-7add71ffdea5" - name = "Ms. Reginald Nienow" + definition_id = "24121e63-15be-4306-a4e8-3994413a7c75" + name = "Alexander Schroeder MD" secret_id = "...my_secret_id..." - workspace_id = "09edcef2-c435-47e7-ab14-9e6fe9a76bd2" + workspace_id = "5882c881-a087-48bf-9f7e-2fa4a63623e3" } ``` diff --git a/docs/resources/source_facebook_marketing.md b/docs/resources/source_facebook_marketing.md index e9440f184..aa715dfa4 100644 --- a/docs/resources/source_facebook_marketing.md +++ b/docs/resources/source_facebook_marketing.md @@ -21,48 +21,55 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { ] action_breakdowns_allow_empty = true ad_statuses = [ - "ADSET_PAUSED", + "PENDING_BILLING_INFO", ] adset_statuses = [ "PAUSED", ] campaign_statuses = [ - "DELETED", + "IN_PROCESS", ] 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 = [ - "standard_event_content_type", + "action_destination", ] action_report_time = "impression" breakdowns = [ - "media_text_content", + "skan_conversion_id", ] end_date = "2017-01-26T00:00:00Z" fields = [ - "video_play_curve_actions", + "video_avg_time_watched_actions", ] - insights_job_timeout = 3 - insights_lookback_window = 1 + insights_job_timeout = 0 + insights_lookback_window = 10 level = "campaign" - name = "Eleanor Prosacco" + name = "Darryl Wunsch" start_date = "2017-01-25T00:00:00Z" - time_increment = 10 + time_increment = 8 }, ] end_date = "2017-01-26T00:00:00Z" - fetch_thumbnail_images = false - insights_job_timeout = 1 - insights_lookback_window = 9 - page_size = 2 + fetch_thumbnail_images = true + insights_job_timeout = 10 + insights_lookback_window = 6 + page_size = 8 start_date = "2017-01-25T00:00:00Z" } - definition_id = "81cdc2e9-642f-43c2-be19-c32edfee92bc" - name = "Wendy Kunze" + definition_id = "a3dd0007-daef-4770-881f-95c5b8dd2d32" + name = "Stanley Kutch" secret_id = "...my_secret_id..." - workspace_id = "d2c887f2-8ef9-475a-bb10-2e5487915a2f" + workspace_id = "fec5cd0a-4fda-452f-a954-3b8620d9bb50" } ``` @@ -91,6 +98,7 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { Required: - `account_ids` (List of String) The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown menu or in your browser's address bar of your Meta Ads Manager. See the docs for more information. +- `credentials` (Attributes) Credentials for connecting to the Facebook Marketing API (see [below for nested schema](#nestedatt--configuration--credentials)) Optional: @@ -99,8 +107,8 @@ Optional: - `ad_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. - `adset_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. - `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 +- `client_id` (String, Sensitive) The Client Id for your OAuth app +- `client_secret` (String, Sensitive) The Client Secret for your OAuth app - `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 @@ -109,6 +117,36 @@ 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, Sensitive) Client ID for the Facebook Marketing API +- `client_secret` (String, Sensitive) 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 8884fdb4e..280f5a4ef 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 = false - count = 2 - parallelism = 6 - records_per_slice = 9 - seed = 3 + always_updated = true + count = 6 + parallelism = 0 + records_per_slice = 7 + seed = 6 } - definition_id = "b0b68d5f-b4b9-49e2-b7dc-2833c76bbd55" - name = "Jon Howell" + definition_id = "af77ae08-fd2c-4af8-bf04-5910a7c57057" + name = "Latoya Kuvalis" secret_id = "...my_secret_id..." - workspace_id = "4ade0498-ec40-4fd8-ad91-61a05c5e8899" + workspace_id = "169da4e6-d7c2-4fca-a386-da1d2ddf0351" } ``` diff --git a/docs/resources/source_fauna.md b/docs/resources/source_fauna.md index 660ecb8fe..fcecc4582 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 = 5 + page_size = 8 } domain = "...my_domain..." - port = 5 + port = 3 scheme = "...my_scheme..." secret = "...my_secret..." } - definition_id = "eae086e3-c2d3-4308-aab8-40e56112c1fd" - name = "Mr. Kenneth Corkery" + definition_id = "9c686900-5174-4142-9e4d-38a30ea56cdf" + name = "Todd Kuhlman" secret_id = "...my_secret_id..." - workspace_id = "5cfbec28-7654-4f12-bc84-028fbb0cddcf" + workspace_id = "f6225b4b-ae61-4112-a113-e87b490ecc6b" } ``` @@ -57,7 +57,7 @@ resource "airbyte_source_fauna" "my_source_fauna" { Required: -- `secret` (String) Fauna secret, used when authenticating with the database. +- `secret` (String, Sensitive) Fauna secret, used when authenticating with the database. Optional: diff --git a/docs/resources/source_file.md b/docs/resources/source_file.md index 3e7b8bda0..7667d2e6e 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 = "excel_binary" + format = "yaml" provider = { az_blob_azure_blob_storage = { sas_token = "...my_sas_token..." @@ -24,13 +24,13 @@ resource "airbyte_source_file" "my_source_file" { storage_account = "...my_storage_account..." } } - reader_options = "{}" - url = "https://storage.googleapis.com/covid19-open-data/v2/latest/epidemiology.csv" + reader_options = "{\"sep\": \" \"}" + url = "gs://my-google-bucket/data.csv" } - definition_id = "e3e60165-4663-452d-a9b0-4e26c5d5cf50" - name = "Robin Wolf I" + definition_id = "16116fc8-03c8-4311-a97a-1ae894962943" + name = "Kristine Bailey" secret_id = "...my_secret_id..." - workspace_id = "464ed5bf-6d67-4306-8c54-8e68cfaeff48" + workspace_id = "eacfe7e0-17f9-4052-b204-0e069282dd6a" } ``` @@ -98,7 +98,7 @@ Optional: Optional: -- `service_account_json` (String) In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary. +- `service_account_json` (String, Sensitive) In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary. @@ -114,7 +114,7 @@ Optional: Optional: -- `aws_access_key_id` (String, Sensitive) In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. +- `aws_access_key_id` (String) In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. - `aws_secret_access_key` (String, Sensitive) In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. diff --git a/docs/resources/source_firebolt.md b/docs/resources/source_firebolt.md index 83a36a051..f7c0322d6 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 = "0df143ee-10f8-4279-a427-b2c340e1d4b4" - name = "Mr. Carole Predovic" + definition_id = "12cb01cb-d9fa-4eed-a058-28527913edfc" + name = "Virgil Rosenbaum II" secret_id = "...my_secret_id..." - workspace_id = "62aeeab6-a16b-4c0f-9be5-567777324c6c" + workspace_id = "8e69d20e-e3e4-4cb5-9c69-5e2f08eb76e3" } ``` @@ -55,7 +55,7 @@ Required: - `account` (String) Firebolt account to login. - `client_id` (String) Firebolt service account ID. -- `client_secret` (String) Firebolt secret, corresponding to the service account ID. +- `client_secret` (String, Sensitive) Firebolt secret, corresponding to the service account ID. - `database` (String) The database to connect to. - `engine` (String) Engine name to connect to. diff --git a/docs/resources/source_fleetio.md b/docs/resources/source_fleetio.md index 4ce17d0b8..07225b88f 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 = "a7fcdac6-3878-454b-a9c4-2e8b9a534c06" - name = "Merle Hills" + definition_id = "51cef20d-e4cf-4c33-ab42-c84cd8bc6076" + name = "Julio Bode" secret_id = "...my_secret_id..." - workspace_id = "e94eff21-1adf-4c72-9dd1-f80239a92966" + workspace_id = "bf0cfd3a-ed54-4ef2-8d0d-e80e3db90502" } ``` diff --git a/docs/resources/source_freshcaller.md b/docs/resources/source_freshcaller.md index 1047eae86..3deb2d51e 100644 --- a/docs/resources/source_freshcaller.md +++ b/docs/resources/source_freshcaller.md @@ -19,12 +19,12 @@ resource "airbyte_source_freshcaller" "my_source_freshcaller" { domain = "snaptravel" requests_per_minute = 0 start_date = "2022-01-01T12:00:00Z" - sync_lag_minutes = 2 + sync_lag_minutes = 9 } - definition_id = "eb11448c-1cd3-4afe-9ef8-5381e22d9fe1" - name = "Kristopher Champlin" + definition_id = "2de4b8db-33d2-4b3a-a7b0-b342a10fbc47" + name = "Ms. Grant Krajcik I" secret_id = "...my_secret_id..." - workspace_id = "4121e631-5be3-406a-8e83-994413a7c75d" + workspace_id = "9037c7ee-f972-4df3-814a-349fde89ab27" } ``` diff --git a/docs/resources/source_freshdesk.md b/docs/resources/source_freshdesk.md index b3b5b9456..df3c1831b 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 = 3 + lookback_window_in_days = 4 requests_per_minute = 8 start_date = "2020-12-01T00:00:00Z" } - definition_id = "b5882c88-1a08-478b-bdf7-e2fa4a63623e" - name = "Lucille Purdy" + definition_id = "d00caee1-2c4e-465b-97e5-4a27b617a012" + name = "Ramon Robel" secret_id = "...my_secret_id..." - workspace_id = "48ed6d0e-af7f-454c-bc36-9f9cb0a3dd00" + workspace_id = "8e1922df-283a-4614-b13a-52314031fd7b" } ``` diff --git a/docs/resources/source_freshsales.md b/docs/resources/source_freshsales.md index 7c7b99a1d..7758d73ae 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 = "07daef77-0c81-4f95-85b8-dd2d32b37f6f" - name = "Wilbert Hettinger" + definition_id = "82b3c164-c195-40da-b1eb-ecd9b5a75a7c" + name = "Shari Rutherford PhD" secret_id = "...my_secret_id..." - workspace_id = "0a4fda52-f695-443b-8620-d9bb50480aaa" + workspace_id = "722b310b-676f-4b73-9c6d-5241e9821d4f" } ``` diff --git a/docs/resources/source_gainsight_px.md b/docs/resources/source_gainsight_px.md index 24a5ad044..40a6dde5c 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 = "f77ae08f-d2ca-4f83-b045-910a7c570570" - name = "Guy Langosh III" + definition_id = "c03242cc-d276-43a0-930e-b91c3df25934" + name = "Lloyd Herzog" secret_id = "...my_secret_id..." - workspace_id = "9da4e6d7-c2fc-4aa3-86da-1d2ddf0351c4" + workspace_id = "c8258f30-a271-483b-80ec-7045956c03ec" } ``` diff --git a/docs/resources/source_gcs.md b/docs/resources/source_gcs.md index 8911f06e0..5e3bf1ec9 100644 --- a/docs/resources/source_gcs.md +++ b/docs/resources/source_gcs.md @@ -20,49 +20,29 @@ resource "airbyte_source_gcs" "my_source_gcs" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 4 + days_to_sync_if_history_is_full = 6 format = { - csv_format = { - delimiter = "...my_delimiter..." - double_quote = true - encoding = "...my_encoding..." - escape_char = "...my_escape_char..." - false_values = [ - "...", - ] - header_definition = { - autogenerated = {} - } - ignore_errors_on_fields_mismatch = true - inference_type = "Primitive Types Only" - null_values = [ - "...", - ] - quote_char = "...my_quote_char..." - skip_rows_after_header = 0 - skip_rows_before_header = 0 - strings_can_be_null = true - true_values = [ - "...", - ] + avro_format = { + double_as_string = true } } globs = [ "...", ] - input_schema = "...my_input_schema..." - legacy_prefix = "...my_legacy_prefix..." - name = "Mrs. Colleen Gusikowski" - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Wait for Discover" + input_schema = "...my_input_schema..." + legacy_prefix = "...my_legacy_prefix..." + name = "Olga Witting" + primary_key = "...my_primary_key..." + recent_n_files_to_read_for_schema_discovery = 8 + schemaless = true + validation_policy = "Skip Record" }, ] } - definition_id = "4d38a30e-a56c-4dfa-a7fb-f6225b4bae61" - name = "Anna Collier Sr." + definition_id = "92b4fd67-3f59-4a8d-8acc-9948b0061059" + name = "Dr. Cameron Rosenbaum" secret_id = "...my_secret_id..." - workspace_id = "3e87b490-ecc6-4bf7-9161-16fc803c8311" + workspace_id = "c9b0f0f3-5d94-4270-8e93-ebb36d8aaea0" } ``` @@ -93,8 +73,8 @@ legacy GCS configs into file based configs using the File-Based CDK. (see [below Required: - `bucket` (String) Name of the GCS bucket where the file(s) exist. -- `service_account` (String) Enter your Google Cloud service account key in JSON format -- `streams` (Attributes List) Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. (see [below for nested schema](#nestedatt--configuration--streams)) +- `service_account` (String, Sensitive) Enter your Google Cloud service account key in JSON format +- `streams` (Attributes List) Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. (see [below for nested schema](#nestedatt--configuration--streams)) Optional: @@ -113,8 +93,9 @@ Optional: - `days_to_sync_if_history_is_full` (Number) When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. Default: 3 - `globs` (List of String) The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here. - `input_schema` (String) The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. -- `legacy_prefix` (String) The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. -- `primary_key` (String, Sensitive) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `legacy_prefix` (String) The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. +- `primary_key` (String) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `recent_n_files_to_read_for_schema_discovery` (Number) The number of resent files which will be used to discover the schema for this stream. - `schemaless` (Boolean) When enabled, syncs will not validate or structure records against the stream's schema. Default: false - `validation_policy` (String) The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. must be one of ["Emit Record", "Skip Record", "Wait for Discover"]; Default: "Emit Record" @@ -123,10 +104,23 @@ Optional: 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)) +- `excel_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--excel_format)) +- `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` + +Optional: + +- `double_as_string` (Boolean) Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. Default: false + -### Nested Schema for `configuration.streams.format.csv_format` +### Nested Schema for `configuration.streams.format.unstructured_document_format` Optional: @@ -135,7 +129,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--csv_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--unstructured_document_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. @@ -145,30 +139,87 @@ 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.csv_format.header_definition` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition` Optional: -- `autogenerated` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--csv_format--header_definition--autogenerated)) -- `from_csv` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--csv_format--header_definition--from_csv)) -- `user_provided` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--csv_format--header_definition--user_provided)) +- `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)) - -### Nested Schema for `configuration.streams.format.csv_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` - -### Nested Schema for `configuration.streams.format.csv_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` - -### Nested Schema for `configuration.streams.format.csv_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` Required: - `column_names` (List of String) The column names that will be used while emitting the CSV records + + + + +### Nested Schema for `configuration.streams.format.unstructured_document_format` + + + +### Nested Schema for `configuration.streams.format.unstructured_document_format` + + + +### Nested Schema for `configuration.streams.format.unstructured_document_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 + + + +### 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` + +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)) +- `via_api` (Attributes) Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing--via_api)) + + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.via_api` + + + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.via_api` + +Optional: + +- `api_key` (String, Sensitive) The API key to use matching the environment. Default: "" +- `api_url` (String) The URL of the unstructured API to use. Default: "https://api.unstructured.io" +- `parameters` (Attributes List) List of parameters send to the API (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing--via_api--parameters)) + + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.via_api.parameters` + +Required: + +- `name` (String) The name of the unstructured API parameter to use +- `value` (String) The value of the parameter + ## Import Import is supported using the following syntax: diff --git a/docs/resources/source_getlago.md b/docs/resources/source_getlago.md index 01507a091..f2a2385ea 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 = "a97a1ae8-9496-4294-b2a0-2ceacfe7e017" - name = "Fredrick Ankunding" + definition_id = "0f0c4c84-b89e-4625-bae8-76a32dc31e1b" + name = "Yvette Howell" secret_id = "...my_secret_id..." - workspace_id = "f2040e06-9282-4dd6-a12c-b01cbd9faeed" + workspace_id = "953bf2de-fea2-4fd1-85f4-8d3631398553" } ``` diff --git a/docs/resources/source_github.md b/docs/resources/source_github.md index b93aefd9a..d31f84587 100644 --- a/docs/resources/source_github.md +++ b/docs/resources/source_github.md @@ -27,17 +27,17 @@ resource "airbyte_source_github" "my_source_github" { client_secret = "...my_client_secret..." } } - max_waiting_time = 10 + max_waiting_time = 60 repositories = [ "...", ] repository = "airbytehq/*" start_date = "2021-03-01T00:00:00Z" } - definition_id = "527913ed-fcf9-4c90-98e6-9d20ee3e4cb5" - name = "Rosalie Hoppe" + definition_id = "3206afb3-a724-4a60-9401-34e58876cb03" + name = "Jan Bernier" secret_id = "...my_secret_id..." - workspace_id = "e2f08eb7-6e35-41ce-b20d-e4cfc332b42c" + workspace_id = "ae06a57c-7c57-47af-9e5b-addd2747bbc7" } ``` @@ -94,8 +94,8 @@ Required: Optional: -- `client_id` (String) OAuth Client Id -- `client_secret` (String) OAuth Client secret +- `client_id` (String, Sensitive) OAuth Client Id +- `client_secret` (String, Sensitive) OAuth Client secret diff --git a/docs/resources/source_gitlab.md b/docs/resources/source_gitlab.md index 2cd5b8925..ec287f89b 100644 --- a/docs/resources/source_gitlab.md +++ b/docs/resources/source_gitlab.md @@ -15,14 +15,14 @@ SourceGitlab Resource ```terraform resource "airbyte_source_gitlab" "my_source_gitlab" { configuration = { - api_url = "https://gitlab.com" + api_url = "https://gitlab.company.org" credentials = { o_auth20 = { access_token = "...my_access_token..." client_id = "...my_client_id..." client_secret = "...my_client_secret..." refresh_token = "...my_refresh_token..." - token_expiry_date = "2022-03-12T08:01:10.085Z" + token_expiry_date = "2022-09-22T11:58:26.764Z" } } groups = "airbyte.io" @@ -35,10 +35,10 @@ resource "airbyte_source_gitlab" "my_source_gitlab" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "bc6076e7-14fb-4f0c-bd3a-ed54ef24d0de" - name = "Jeffrey Terry" + definition_id = "09ce4fe1-65bc-4484-8e7f-b5df25477f37" + name = "Hannah Becker" secret_id = "...my_secret_id..." - workspace_id = "b9050201-5d2d-4e4b-8db3-3d2b3a27b0b3" + workspace_id = "7c89bfb0-cb9d-48df-827a-8c72c3eb5dc5" } ``` @@ -91,10 +91,10 @@ Optional: Required: - `access_token` (String, Sensitive) Access Token for making authenticated requests. -- `client_id` (String) The API ID of the Gitlab developer application. -- `client_secret` (String) The API Secret the Gitlab developer application. +- `client_id` (String, Sensitive) The API ID of the Gitlab developer application. +- `client_secret` (String, Sensitive) The API Secret the Gitlab developer application. - `refresh_token` (String, Sensitive) The key to refresh the expired access_token. -- `token_expiry_date` (String, Sensitive) The date-time when the access token should be refreshed. +- `token_expiry_date` (String) The date-time when the access token should be refreshed. diff --git a/docs/resources/source_glassfrog.md b/docs/resources/source_glassfrog.md index 683fd3b93..b46a6cd75 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 = "42a10fbc-47ca-4706-9390-37c7eef972df" - name = "Rachael Boyer" + definition_id = "5714db07-d769-4873-b386-b53a479a0805" + name = "Emmett Bruen" secret_id = "...my_secret_id..." - workspace_id = "349fde89-ab27-46cb-ad00-caee12c4e65b" + workspace_id = "3bf9b799-d631-499b-96b4-68c85ec21a9a" } ``` diff --git a/docs/resources/source_gnews.md b/docs/resources/source_gnews.md index b2d005be4..bc1b03d42 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 = "in" + country = "ru" end_date = "2022-08-21 16:27:09" in = [ - "description", + "title", ] - language = "te" + language = "hi" nullable = [ "description", ] - query = "Apple OR Microsoft" - sortby = "relevance" + query = "Intel AND (i7 OR i9)" + sortby = "publishedAt" start_date = "2022-08-21 16:27:09" - top_headlines_query = "Microsoft Windows 10" - top_headlines_topic = "technology" + top_headlines_query = "Apple OR Microsoft" + top_headlines_topic = "sports" } - definition_id = "b617a012-e6bf-468e-9922-df283a614313" - name = "Darrell Cummerata II" + definition_id = "77e51fa7-73fc-4f1a-8306-e082909d97bf" + name = "Kerry Reinger" secret_id = "...my_secret_id..." - workspace_id = "031fd7b8-2b3c-4164-8195-0da31ebecd9b" + workspace_id = "3671a9ca-1d9c-4174-bee4-145562d27576" } ``` diff --git a/docs/resources/source_goldcast.md b/docs/resources/source_goldcast.md new file mode 100644 index 000000000..3e6bb9c6e --- /dev/null +++ b/docs/resources/source_goldcast.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_goldcast Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceGoldcast Resource +--- + +# airbyte_source_goldcast (Resource) + +SourceGoldcast Resource + +## Example Usage + +```terraform +resource "airbyte_source_goldcast" "my_source_goldcast" { + configuration = { + access_key = "...my_access_key..." + } + definition_id = "235e52bb-8adc-48fd-aa7f-940dec44e216" + name = "Moses Wolf" + secret_id = "...my_secret_id..." + workspace_id = "29e4d23a-00b4-494f-bd68-d64a810b2959" +} +``` + + +## 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: + +- `access_key` (String, Sensitive) Your API Access Key. See here. The key is case sensitive. + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_goldcast.my_airbyte_source_goldcast "" +``` diff --git a/docs/resources/source_google_ads.md b/docs/resources/source_google_ads.md index 3b9b7c944..0f6640d51 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 = [ - "SUSPENDED", + "CANCELED", ] end_date = "2017-01-30" start_date = "2017-01-25" } - definition_id = "c5fc21d7-22b3-410b-a76f-b731c6d5241e" - name = "Dr. Armando Dibbert" + definition_id = "c47c0f9c-e33c-40f2-94c1-1e4e993d2947" + name = "Miss Andrea Lind" secret_id = "...my_secret_id..." - workspace_id = "fc03242c-cd27-463a-8d30-eb91c3df2593" + workspace_id = "54dff6cf-9b79-4e23-a888-b6bde25154a5" } ``` @@ -84,7 +84,7 @@ Optional: Required: - `client_id` (String) The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our documentation. -- `client_secret` (String) The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our documentation. +- `client_secret` (String, Sensitive) The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our documentation. - `developer_token` (String, Sensitive) The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our documentation. - `refresh_token` (String, Sensitive) The token used to obtain a new Access Token. For detailed instructions on finding this value, refer to our documentation. diff --git a/docs/resources/source_google_analytics_data_api.md b/docs/resources/source_google_analytics_data_api.md index c4a98e125..4541d14e0 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 = 57.56 + value = 82.98 } } to_value = { double_value = { - value = 31.93 + value = 63.94 } } } @@ -64,12 +64,12 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda between_filter = { from_value = { double_value = { - value = 35.8 + value = 51.9 } } to_value = { double_value = { - value = 18.49 + value = 4.5 } } } @@ -81,21 +81,21 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda metrics = [ "...", ] - name = "Edmund Legros" + name = "Todd Rodriguez" }, ] date_ranges_start_date = "2021-01-01" keep_empty_rows = false - lookback_window = 2 + lookback_window = 4 property_ids = [ "...", ] - window_in_days = 30 + window_in_days = 120 } - definition_id = "183b00ec-7045-4956-803e-c7b8b68fdfc0" - name = "Miriam Deckow" + definition_id = "950935ad-536c-4500-8734-e30b46b959e4" + name = "Julio Harber" secret_id = "...my_secret_id..." - workspace_id = "fd673f59-a8d0-4acc-9948-b0061059fac1" + workspace_id = "c0922711-9b95-4b60-898b-b7037ab5561c" } ``` @@ -149,7 +149,7 @@ Optional: Required: - `client_id` (String) The Client ID of your Google Analytics developer application. -- `client_secret` (String) The Client Secret of your Google Analytics developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Google Analytics developer application. - `refresh_token` (String, Sensitive) The token for obtaining a new access token. Optional: @@ -162,7 +162,7 @@ Optional: Required: -- `credentials_json` (String) The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide. +- `credentials_json` (String, Sensitive) The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide. diff --git a/docs/resources/source_google_analytics_v4_service_account_only.md b/docs/resources/source_google_analytics_v4_service_account_only.md deleted file mode 100644 index 012e02c44..000000000 --- a/docs/resources/source_google_analytics_v4_service_account_only.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -# 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 ea82164cd..ac69e36ff 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 = "Brittany_Steuber89@hotmail.com" + email = "Aniya.Prohaska79@hotmail.com" } } } - definition_id = "a2fd145f-48d3-4631-b985-539f352d3206" - name = "Amos Rath" + definition_id = "adaa0e32-8a3b-4d55-a3e0-4de287b75265" + name = "Mack Wisozk" secret_id = "...my_secret_id..." - workspace_id = "724a60d4-0134-4e58-876c-b030a128ae06" + workspace_id = "deb8cbf2-674a-4920-b3b1-7bfcc526af10" } ``` @@ -68,7 +68,7 @@ Optional: Required: -- `credentials_json` (String) The contents of the JSON service account key. See the docs for more information on how to generate this key. +- `credentials_json` (String, Sensitive) The contents of the JSON service account key. See the docs for more information on how to generate this key. - `email` (String) The email of the user, which has permissions to access the Google Workspace Admin APIs. @@ -77,8 +77,8 @@ Required: Required: -- `client_id` (String) The Client ID of the developer application. -- `client_secret` (String) The Client Secret of the developer application. +- `client_id` (String, Sensitive) The Client ID of the developer application. +- `client_secret` (String, Sensitive) The Client Secret of the developer application. - `refresh_token` (String, Sensitive) The Token for obtaining a new access token. ## Import diff --git a/docs/resources/source_google_drive.md b/docs/resources/source_google_drive.md index d5974fb01..53cf17b15 100644 --- a/docs/resources/source_google_drive.md +++ b/docs/resources/source_google_drive.md @@ -26,27 +26,27 @@ resource "airbyte_source_google_drive" "my_source_googledrive" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 5 + days_to_sync_if_history_is_full = 3 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] input_schema = "...my_input_schema..." - name = "Marianne Hartmann" + name = "Dr. Shawna Robel" primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Wait for Discover" + schemaless = false + validation_policy = "Emit Record" }, ] } - definition_id = "1e5baddd-2747-4bbc-bf24-1709ce4fe165" - name = "Edmund Gleichner" + definition_id = "730b3999-4a41-4e4a-8985-c78fa7d86bdf" + name = "Kristy Wilderman MD" secret_id = "...my_secret_id..." - workspace_id = "0e7fb5df-2547-47f3-b0b0-ec7c89bfb0cb" + workspace_id = "cb121083-728d-489e-b51e-868df1f2c5ad" } ``` @@ -96,8 +96,8 @@ Optional: Required: -- `client_id` (String) Client ID for the Google Drive API -- `client_secret` (String) Client Secret for the Google Drive API +- `client_id` (String, Sensitive) Client ID for the Google Drive API +- `client_secret` (String, Sensitive) Client Secret for the Google Drive API - `refresh_token` (String, Sensitive) Refresh Token for the Google Drive API @@ -106,7 +106,7 @@ Required: Required: -- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here. +- `service_account_info` (String, Sensitive) The JSON key of the service account to use for authorization. Read more here. @@ -123,7 +123,7 @@ Optional: - `days_to_sync_if_history_is_full` (Number) When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. Default: 3 - `globs` (List of String) The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here. - `input_schema` (String) The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. -- `primary_key` (String, Sensitive) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `primary_key` (String) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. - `schemaless` (Boolean) When enabled, syncs will not validate or structure records against the stream's schema. Default: false - `validation_policy` (String) The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. must be one of ["Emit Record", "Skip Record", "Wait for Discover"]; Default: "Emit Record" diff --git a/docs/resources/source_google_pagespeed_insights.md b/docs/resources/source_google_pagespeed_insights.md index 6d9a59b84..1721906fb 100644 --- a/docs/resources/source_google_pagespeed_insights.md +++ b/docs/resources/source_google_pagespeed_insights.md @@ -20,16 +20,16 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin "performance", ] strategies = [ - "mobile", + "desktop", ] urls = [ "...", ] } - definition_id = "8dfc27a8-c72c-43eb-9dc5-5714db07d769" - name = "Lance Dicki" + definition_id = "a46153eb-240d-4626-9488-7ccaaf58e0f5" + name = "Lawrence Casper" secret_id = "...my_secret_id..." - workspace_id = "86b53a47-9a08-405f-b179-3bf9b799d631" + workspace_id = "d6014991-0eec-4fc7-b384-ec604057d045" } ``` diff --git a/docs/resources/source_google_search_console.md b/docs/resources/source_google_search_console.md index f1d5e6e4b..6557a1340 100644 --- a/docs/resources/source_google_search_console.md +++ b/docs/resources/source_google_search_console.md @@ -27,9 +27,9 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" custom_reports_array = [ { dimensions = [ - "page", + "country", ] - name = "Randolph Stanton" + name = "Peter Luettgen" }, ] data_state = "final" @@ -37,12 +37,12 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" site_urls = [ "...", ] - start_date = "2021-06-12" + start_date = "2020-11-18" } - definition_id = "5ec21a9a-b567-4f13-877e-51fa773fcf1a" - name = "Connie Baumbach" + definition_id = "bbdb3119-64f9-49d6-b745-afb65f1720bd" + name = "Harriet Kiehn" secret_id = "...my_secret_id..." - workspace_id = "082909d9-7bfa-4bba-9367-1a9ca1d9c174" + workspace_id = "19162647-e680-4e44-97c6-f4b509c8206a" } ``` @@ -94,8 +94,8 @@ Optional: Required: -- `client_id` (String) The client ID of your Google Search Console developer application. Read more here. -- `client_secret` (String) The client secret of your Google Search Console developer application. Read more here. +- `client_id` (String, Sensitive) The client ID of your Google Search Console developer application. Read more here. +- `client_secret` (String, Sensitive) The client secret of your Google Search Console developer application. Read more here. - `refresh_token` (String, Sensitive) The token for obtaining a new access token. Read more here. Optional: @@ -109,7 +109,7 @@ Optional: Required: - `email` (String) The email of the user which has permissions to access the Google Workspace Admin APIs. -- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here. +- `service_account_info` (String, Sensitive) The JSON key of the service account to use for authorization. Read more here. diff --git a/docs/resources/source_google_sheets.md b/docs/resources/source_google_sheets.md index 51521d6b0..4ff21ffe0 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 = 10 + batch_size = 2 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 = "e4145562-d275-4762-b5e5-2bb8adc8fd2a" - name = "Ebony McDermott PhD" + definition_id = "043ef09e-61b7-45b7-a676-5eab1ad84295" + name = "Juana Stroman" secret_id = "...my_secret_id..." - workspace_id = "ec44e216-dff8-4929-a4d2-3a00b494f7d6" + workspace_id = "9bdc8b93-f80b-47f5-9709-4a97b6356d53" } ``` @@ -78,8 +78,8 @@ Optional: Required: -- `client_id` (String) Enter your Google application's Client ID. See Google's documentation for more information. -- `client_secret` (String) Enter your Google application's Client Secret. See Google's documentation for more information. +- `client_id` (String, Sensitive) Enter your Google application's Client ID. See Google's documentation for more information. +- `client_secret` (String, Sensitive) Enter your Google application's Client Secret. See Google's documentation for more information. - `refresh_token` (String, Sensitive) Enter your Google application's refresh token. See Google's documentation for more information. @@ -88,7 +88,7 @@ Required: Required: -- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here. +- `service_account_info` (String, Sensitive) The JSON key of the service account to use for authorization. Read more here. ## Import diff --git a/docs/resources/source_google_webfonts.md b/docs/resources/source_google_webfonts.md index 3506ffbd5..b44a44c48 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 = "8d64a810-b295-4958-bed0-c47c0f9ce33c" - name = "Kristie Davis" + definition_id = "391630fd-2f13-41d4-bbef-253f33ac135d" + name = "Jackie Bayer" secret_id = "...my_secret_id..." - workspace_id = "c11e4e99-3d29-4474-a81b-b54dff6cf9b7" + workspace_id = "3794a97d-5acf-4562-93a6-6e5ad3919293" } ``` diff --git a/docs/resources/source_greenhouse.md b/docs/resources/source_greenhouse.md index 25a001cb3..209b1c753 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 = "9e232888-b6bd-4e25-954a-52da80f2bfa4" - name = "Isaac Hessel" + definition_id = "14c65ed7-0eb1-47cb-8fc2-4002ca0d0171" + name = "Ollie Cummerata" secret_id = "...my_secret_id..." - workspace_id = "6950935a-d536-4c50-8473-4e30b46b959e" + workspace_id = "28dde04a-9ce3-4be5-bbfa-46127442775e" } ``` diff --git a/docs/resources/source_gridly.md b/docs/resources/source_gridly.md index c5875987f..c1199e981 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 = "4e758ac0-9227-4119-b95b-60c98bb7037a" - name = "Floyd Hermann DDS" + definition_id = "d08074e1-7a64-4885-b11a-b94fe75a513e" + name = "Ruth Marquardt" secret_id = "...my_secret_id..." - workspace_id = "e1bb1cad-aa0e-4328-a3bd-5563e04de287" + workspace_id = "793827c0-6dd8-46b4-bbde-6ae53955108c" } ``` diff --git a/docs/resources/source_hardcoded_records.md b/docs/resources/source_hardcoded_records.md new file mode 100644 index 000000000..c5687aea8 --- /dev/null +++ b/docs/resources/source_hardcoded_records.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_hardcoded_records Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceHardcodedRecords Resource +--- + +# airbyte_source_hardcoded_records (Resource) + +SourceHardcodedRecords Resource + +## Example Usage + +```terraform +resource "airbyte_source_hardcoded_records" "my_source_hardcodedrecords" { + configuration = { + count = 9 + } + definition_id = "8df8fdda-cae8-4261-af8b-9bb4850d654b" + name = "Albert Tromp" + secret_id = "...my_secret_id..." + workspace_id = "5de7e327-e778-4751-a6eb-56944312d5d5" +} +``` + + +## 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` + +Optional: + +- `count` (Number) How many records per stream should be generated. Default: 1000 + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_hardcoded_records.my_airbyte_source_hardcoded_records "" +``` diff --git a/docs/resources/source_harvest.md b/docs/resources/source_harvest.md index 1ac4d435b..d7a9401e5 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 = "65fdff2d-eb8c-4bf2-a74a-92033b17bfcc" - name = "Theresa Kertzmann" + definition_id = "d83c0cc9-8dd5-4412-a565-139361b04889" + name = "Stacey O'Keefe" secret_id = "...my_secret_id..." - workspace_id = "10da401f-b0fc-4527-b0b3-9994a41e4a89" + workspace_id = "cfe2e85a-fcc9-4acc-ae7e-95c9a7c9f197" } ``` @@ -58,7 +58,7 @@ resource "airbyte_source_harvest" "my_source_harvest" { Required: -- `account_id` (String) Harvest account ID. Required for all Harvest requests in pair with Personal Access Token +- `account_id` (String, Sensitive) Harvest account ID. Required for all Harvest requests in pair with Personal Access Token - `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. Optional: @@ -80,7 +80,7 @@ Optional: Required: - `client_id` (String) The Client ID of your Harvest developer application. -- `client_secret` (String) The Client Secret of your Harvest developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Harvest developer application. - `refresh_token` (String, Sensitive) Refresh Token to renew the expired Access Token. Optional: diff --git a/docs/resources/source_hibob.md b/docs/resources/source_hibob.md new file mode 100644 index 000000000..d936dd07a --- /dev/null +++ b/docs/resources/source_hibob.md @@ -0,0 +1,66 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_hibob Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceHibob Resource +--- + +# airbyte_source_hibob (Resource) + +SourceHibob Resource + +## Example Usage + +```terraform +resource "airbyte_source_hibob" "my_source_hibob" { + configuration = { + is_sandbox = false + password = "...my_password..." + username = "Anissa.Boyle17" + } + definition_id = "47965850-9500-41aa-95e5-f9cfb0d1e8d3" + name = "Forrest Schmitt" + secret_id = "...my_secret_id..." + workspace_id = "0aeed108-7b98-482d-94ce-598cc59eb952" +} +``` + + +## 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: + +- `is_sandbox` (Boolean) Toggle true if this instance is a HiBob sandbox +- `username` (String) + +Optional: + +- `password` (String, Sensitive) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_hibob.my_airbyte_source_hibob "" +``` diff --git a/docs/resources/source_high_level.md b/docs/resources/source_high_level.md new file mode 100644 index 000000000..87bda50cf --- /dev/null +++ b/docs/resources/source_high_level.md @@ -0,0 +1,63 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_high_level Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceHighLevel Resource +--- + +# airbyte_source_high_level (Resource) + +SourceHighLevel Resource + +## Example Usage + +```terraform +resource "airbyte_source_high_level" "my_source_highlevel" { + configuration = { + api_key = "...my_api_key..." + location_id = "...my_location_id..." + start_date = "2022-12-22T20:21:14.303Z" + } + definition_id = "6231c57f-d8f9-4d1b-aac6-e05b1e50c144" + name = "Marsha Stamm" + secret_id = "...my_secret_id..." + workspace_id = "1cdd98f8-1ede-4ee1-be4e-723eeaf419bc" +} +``` + + +## 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) +- `location_id` (String) +- `start_date` (String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_high_level.my_airbyte_source_high_level "" +``` diff --git a/docs/resources/source_hubplanner.md b/docs/resources/source_hubplanner.md index f9e515fa6..389502464 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 = "85c78fa7-d86b-4df5-bf91-acb121083728" - name = "Johnnie Maggio" + definition_id = "59e04a86-9e9d-4149-b3b0-4e32dc649b6b" + name = "Dwight Ward" secret_id = "...my_secret_id..." - workspace_id = "51e868df-1f2c-45ad-84a4-6153eb240d62" + workspace_id = "7d0de0f8-a2b5-47ad-9e20-e75111fd0612" } ``` diff --git a/docs/resources/source_hubspot.md b/docs/resources/source_hubspot.md index f30cd255f..f2e6a99e5 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 = "887ccaaf-58e0-4f5c-9159-d60149910eec" - name = "Leland Kshlerin" + definition_id = "3df11978-b385-4957-a3c9-21cc9284a211" + name = "Annette Runolfsson" secret_id = "...my_secret_id..." - workspace_id = "84ec6040-57d0-4451-918d-b5cccbbbdb31" + workspace_id = "910609be-9a98-44e4-b07b-caf13ed5606a" } ``` @@ -77,7 +77,7 @@ Optional: Required: - `client_id` (String) The Client ID of your HubSpot developer application. See the Hubspot docs if you need help finding this ID. -- `client_secret` (String) The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret. +- `client_secret` (String, Sensitive) The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret. - `refresh_token` (String, Sensitive) Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token. diff --git a/docs/resources/source_insightly.md b/docs/resources/source_insightly.md index b33833f3a..6b7a37310 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 = "64f99d67-745a-4fb6-9f17-20bd7a7ec191" - name = "Irene Huels" + definition_id = "9e7c8aee-eb09-4ffd-b753-fe46a1403ba1" + name = "Mr. Gilberto Lebsack" secret_id = "...my_secret_id..." - workspace_id = "e680e441-7c6f-44b5-89c8-206a4b043ef0" + workspace_id = "cfb42284-9b58-4575-9fd7-9d74aa20ea69" } ``` diff --git a/docs/resources/source_instagram.md b/docs/resources/source_instagram.md index a9edd7696..89b67dcc0 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 = "61b75b72-6765-4eab-9ad8-42954bd759bd" - name = "Clayton Prosacco" + definition_id = "b1a975dd-1b5a-4029-9b19-7bbb0227d625" + name = "Earl Bruen" secret_id = "...my_secret_id..." - workspace_id = "f80b7f55-7094-4a97-b635-6d53391630fd" + workspace_id = "f731c6e6-bc1c-4af1-a6ae-e78925477f38" } ``` @@ -55,8 +55,8 @@ Required: Optional: -- `client_id` (String) The Client ID for your Oauth application -- `client_secret` (String) The Client Secret for your Oauth application +- `client_id` (String, Sensitive) The Client ID for your Oauth application +- `client_secret` (String, Sensitive) The Client Secret for your Oauth application - `start_date` (String) The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. ## Import diff --git a/docs/resources/source_instatus.md b/docs/resources/source_instatus.md index 4554553fc..a89580fb1 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 = "2f131d4f-bef2-453f-b3ac-135dc90f6379" - name = "Eunice Mayert" + definition_id = "7c53022b-a4ae-4d29-95c6-63b6d13c6e3b" + name = "Pete McDermott" secret_id = "...my_secret_id..." - workspace_id = "5acf5625-3a66-4e5a-9391-929314c65ed7" + workspace_id = "d413d75c-6693-4a6b-92ef-16650e4c3120" } ``` diff --git a/docs/resources/source_intercom.md b/docs/resources/source_intercom.md index abeb68054..538ab17d2 100644 --- a/docs/resources/source_intercom.md +++ b/docs/resources/source_intercom.md @@ -16,15 +16,15 @@ SourceIntercom Resource resource "airbyte_source_intercom" "my_source_intercom" { configuration = { access_token = "...my_access_token..." - activity_logs_time_step = 30 + activity_logs_time_step = 5 client_id = "...my_client_id..." client_secret = "...my_client_secret..." start_date = "2020-11-16T00:00:00Z" } - definition_id = "7cb4fc24-002c-4a0d-8171-1f25a28dde04" - name = "Marshall Schinner" + definition_id = "566ac796-fdac-41f4-8b8f-86701054c1db" + name = "Vicky Torphy" secret_id = "...my_secret_id..." - workspace_id = "be57bfa4-6127-4442-b75e-d08074e17a64" + workspace_id = "a8fc7f8e-2467-4264-9cfb-2449eef8764e" } ``` @@ -58,8 +58,8 @@ Required: Optional: - `activity_logs_time_step` (Number) Set lower value in case of failing long running sync of Activity Logs stream. Default: 30 -- `client_id` (String) Client Id for your Intercom application. -- `client_secret` (String) Client Secret for your Intercom application. +- `client_id` (String, Sensitive) Client Id for your Intercom application. +- `client_secret` (String, Sensitive) Client Secret for your Intercom application. ## Import diff --git a/docs/resources/source_ip2whois.md b/docs/resources/source_ip2whois.md index 032bd1800..662d99296 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 = "85711ab9-4fe7-45a5-93e0-0977793827c0" - name = "Mable Stroman" + definition_id = "4b875ea1-fa63-4f6c-8fac-1403cfd915cc" + name = "Victoria Murazik DVM" secret_id = "...my_secret_id..." - workspace_id = "b4fbde6a-e539-4551-88cd-8df8fddacae8" + workspace_id = "1c37b350-ebb3-4981-889f-963f1e6164cc" } ``` diff --git a/docs/resources/source_iterable.md b/docs/resources/source_iterable.md index 9a69f37d0..5d69f475c 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 = "1af8b9bb-4850-4d65-8be1-e785de7e327e" - name = "Georgia Ledner" + definition_id = "88ff77a5-8933-4f77-b8d6-3dc7b7f8b16c" + name = "Janet Hodkiewicz" secret_id = "...my_secret_id..." - workspace_id = "126eb569-4431-42d5-95e6-a2d83c0cc98d" + workspace_id = "1e8f0042-f922-410b-9c8f-204e6a775647" } ``` diff --git a/docs/resources/source_jira.md b/docs/resources/source_jira.md index 89f22ec08..38e9ce992 100644 --- a/docs/resources/source_jira.md +++ b/docs/resources/source_jira.md @@ -17,12 +17,12 @@ resource "airbyte_source_jira" "my_source_jira" { configuration = { api_token = "...my_api_token..." domain = "jira..com" - email = "Efren18@yahoo.com" + email = "Hayley_Rohan@hotmail.com" enable_experimental_streams = false - expand_issue_changelog = false - expand_issue_transition = false + expand_issue_changelog = true + expand_issue_transition = true issues_stream_expand_with = [ - "renderedFields", + "transitions", ] lookback_window_minutes = 60 projects = [ @@ -31,10 +31,10 @@ resource "airbyte_source_jira" "my_source_jira" { render_fields = false start_date = "2021-03-01T00:00:00Z" } - definition_id = "1b048892-6ab9-4cfe-ae85-afcc9acc6e7e" - name = "Herman Schowalter" + definition_id = "2eafdc45-3fb6-4a01-92c4-47712b4a0208" + name = "Lee Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "7c9f1975-11d6-4247-9658-5095001aad5e" + workspace_id = "beffb8d9-7651-4059-b440-a5f2f61a4e46" } ``` diff --git a/docs/resources/source_k6_cloud.md b/docs/resources/source_k6_cloud.md index 87eea07ed..80e731695 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 = "5f9cfb0d-1e8d-43ac-8e90-aeed1087b988" - name = "Eula Hane" + definition_id = "6849f7bb-eaae-4f52-8043-cb4c473e8c7b" + name = "Mrs. Bill Mosciski IV" secret_id = "...my_secret_id..." - workspace_id = "e598cc59-eb95-42f0-a231-c57fd8f9d1ba" + workspace_id = "4a553fda-41da-4f76-a6ef-51c5fa52e0c6" } ``` diff --git a/docs/resources/source_klarna.md b/docs/resources/source_klarna.md index 0f120dc11..85f38ec9a 100644 --- a/docs/resources/source_klarna.md +++ b/docs/resources/source_klarna.md @@ -17,13 +17,13 @@ resource "airbyte_source_klarna" "my_source_klarna" { configuration = { password = "...my_password..." playground = true - region = "oc" - username = "Gretchen35" + region = "eu" + username = "Orland.Schmeler" } - definition_id = "b1e50c14-468d-4231-8dd9-8f81edeee1be" - name = "Sophia Kunze" + definition_id = "e76e9fde-f541-4f06-8a13-b1e89c1488fa" + name = "Dr. Randall Casper" secret_id = "...my_secret_id..." - workspace_id = "eeaf419b-c59e-404a-869e-9d149f3b04e3" + workspace_id = "d922269c-9d64-48f0-bccd-d2e95af6ed3c" } ``` diff --git a/docs/resources/source_klaviyo.md b/docs/resources/source_klaviyo.md index 7b917ffb9..8623d5bb7 100644 --- a/docs/resources/source_klaviyo.md +++ b/docs/resources/source_klaviyo.md @@ -15,13 +15,14 @@ SourceKlaviyo Resource ```terraform resource "airbyte_source_klaviyo" "my_source_klaviyo" { configuration = { - api_key = "...my_api_key..." - start_date = "2017-01-25T00:00:00Z" + api_key = "...my_api_key..." + disable_fetching_predictive_analytics = true + start_date = "2017-01-25T00:00:00Z" } - definition_id = "c649b6bc-8e2c-47d0-9e0f-8a2b57adde20" - name = "Mr. Erik Heathcote DVM" + definition_id = "14160113-c2d3-4cb5-aaa6-4b86a42dbbb8" + name = "Rosa VonRueden" secret_id = "...my_secret_id..." - workspace_id = "d0612ffd-3df1-4197-8b38-5957e3c921cc" + workspace_id = "b5e6a18b-0d79-4003-9e8d-a443bfaadd29" } ``` @@ -53,6 +54,7 @@ Required: Optional: +- `disable_fetching_predictive_analytics` (Boolean) Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. - `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 field is optional - if not provided, all data will be replicated. ## Import diff --git a/docs/resources/source_kyve.md b/docs/resources/source_kyve.md index 1b56eec27..eafa52138 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 = 6 - page_size = 1 + max_pages = 7 + page_size = 4 pool_ids = "0,1" - start_ids = "0" + start_ids = "0,0" url_base = "https://api.korellia.kyve.network/" } - definition_id = "21155c54-9106-409b-a9a9-84e4b07bcaf1" - name = "Gwen Stark" + definition_id = "6cb6bf32-faf8-425b-aa4e-c87aaffeb9ea" + name = "Geneva Abshire" secret_id = "...my_secret_id..." - workspace_id = "06ac59e7-c8ae-4eeb-89ff-d3753fe46a14" + workspace_id = "e9f4166b-42b6-49c6-9d27-bbad3f0bf8ca" } ``` diff --git a/docs/resources/source_launchdarkly.md b/docs/resources/source_launchdarkly.md index dcb4ef606..0ff37e564 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 = "03ba1bd8-103c-4fb4-a284-9b585759fd79" - name = "Neil Gleichner" + definition_id = "743bfb15-06e5-4d6d-ab8b-49c82f283fdf" + name = "Yvette Effertz MD" secret_id = "...my_secret_id..." - workspace_id = "20ea69f1-b1a9-475d-91b5-a0295b197bbb" + workspace_id = "3ef9cacc-879b-4a7a-8016-47dc7c271c50" } ``` diff --git a/docs/resources/source_leadfeeder.md b/docs/resources/source_leadfeeder.md new file mode 100644 index 000000000..fcf39233a --- /dev/null +++ b/docs/resources/source_leadfeeder.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_leadfeeder Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceLeadfeeder Resource +--- + +# airbyte_source_leadfeeder (Resource) + +SourceLeadfeeder Resource + +## Example Usage + +```terraform +resource "airbyte_source_leadfeeder" "my_source_leadfeeder" { + configuration = { + api_token = "...my_api_token..." + start_date = "2022-09-13T08:51:10.446Z" + } + definition_id = "a25a4f7e-4eab-4e3a-9776-8e79345d1446" + name = "Ruth Dooley IV" + secret_id = "...my_secret_id..." + workspace_id = "f29cf10b-0742-4b93-b499-111a320ccad5" +} +``` + + +## 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_token` (String, Sensitive) +- `start_date` (String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_leadfeeder.my_airbyte_source_leadfeeder "" +``` diff --git a/docs/resources/source_lemlist.md b/docs/resources/source_lemlist.md index 67149f168..38c4a1f37 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 = "0227d625-c315-45f7-b1c6-e6bc1caf166a" - name = "Bert Kohler" + definition_id = "adc1330e-f574-4883-95b5-ae0423a6249a" + name = "Gloria Green" secret_id = "...my_secret_id..." - workspace_id = "25477f38-7c53-4022-ba4a-ed2995c663b6" + workspace_id = "5fa2ea25-a51d-4762-ae38-9cc4200a4abb" } ``` diff --git a/docs/resources/source_lever_hiring.md b/docs/resources/source_lever_hiring.md index 86959abb3..d3c93e5d5 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 = "Sandbox" + environment = "Production" start_date = "2021-03-01T00:00:00Z" } - definition_id = "13c6e3bb-b93b-4d41-bd75-c6693a6b92ef" - name = "Rosemary Hyatt PhD" + definition_id = "299a611c-c7be-43e8-ba71-88dc05c92c20" + name = "Linda White" secret_id = "...my_secret_id..." - workspace_id = "4c3120d7-7a56-46ac-b96f-dac1f48b8f86" + workspace_id = "2ba7d43d-20d3-4384-a15e-d53522788fae" } ``` @@ -87,7 +87,7 @@ Required: Optional: - `client_id` (String) The Client ID of your Lever Hiring developer application. -- `client_secret` (String) The Client Secret of your Lever Hiring developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Lever Hiring developer application. ## Import diff --git a/docs/resources/source_linkedin_ads.md b/docs/resources/source_linkedin_ads.md index bfe294e6f..3e27950b9 100644 --- a/docs/resources/source_linkedin_ads.md +++ b/docs/resources/source_linkedin_ads.md @@ -16,12 +16,12 @@ SourceLinkedinAds Resource resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { configuration = { account_ids = [ - 4, + 6, ] ad_analytics_reports = [ { - name = "Carolyn Bednar" - pivot_by = "MEMBER_COUNTRY_V2" + name = "Orlando Schuppe" + pivot_by = "MEMBER_INDUSTRY" time_granularity = "ALL" }, ] @@ -32,10 +32,10 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { } start_date = "2021-05-17" } - definition_id = "1ce49a8f-c7f8-4e24-a726-45cfb2449eef" - name = "Cory Johnson" + definition_id = "72879b60-69b6-4a28-9f31-96ea9203cb78" + name = "Kristen Toy" secret_id = "...my_secret_id..." - workspace_id = "b4b875ea-1fa6-43f6-80fa-c1403cfd915c" + workspace_id = "a531f3b4-802a-43b9-9674-976dbe116c78" } ``` @@ -102,8 +102,8 @@ Required: Required: -- `client_id` (String) The client ID of your developer application. Refer to our documentation for more information. -- `client_secret` (String) The client secret of your developer application. Refer to our documentation for more information. +- `client_id` (String, Sensitive) The client ID of your developer application. Refer to our documentation for more information. +- `client_secret` (String, Sensitive) The client secret of your developer application. Refer to our documentation for more information. - `refresh_token` (String, Sensitive) The key to refresh the expired access token. Refer to our documentation for more information. ## Import diff --git a/docs/resources/source_linkedin_pages.md b/docs/resources/source_linkedin_pages.md index acf346859..3a4d08bda 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-01-06T04:41:29.233Z" + start_date = "2022-11-26T15:57:22.522Z" time_granularity_type = "DAY" } - definition_id = "ae1f1c37-b350-4ebb-b981-c89f963f1e61" - name = "Anita Ryan" + definition_id = "c70bfb32-667c-447d-9036-16107c03f839" + name = "Donna Jerde" secret_id = "...my_secret_id..." - workspace_id = "788ff77a-5893-43f7-b38d-63dc7b7f8b16" + workspace_id = "c9db1c42-6709-4282-b0b3-08e78729ff50" } ``` @@ -55,7 +55,7 @@ resource "airbyte_source_linkedin_pages" "my_source_linkedinpages" { Required: -- `org_id` (String) Specify the Organization ID +- `org_id` (String, Sensitive) Specify the Organization ID Optional: @@ -84,8 +84,8 @@ Required: Required: -- `client_id` (String) The client ID of the LinkedIn developer application. -- `client_secret` (String) The client secret of the LinkedIn developer application. +- `client_id` (String, Sensitive) The client ID of the LinkedIn developer application. +- `client_secret` (String, Sensitive) The client secret of the LinkedIn developer application. - `refresh_token` (String, Sensitive) The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours. ## Import diff --git a/docs/resources/source_linnworks.md b/docs/resources/source_linnworks.md index 4155ce4e5..db8e0e3a3 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 = "2021-09-13T06:35:49.884Z" + start_date = "2022-09-29T12:33:06.148Z" token = "...my_token..." } - definition_id = "167f1e8f-0042-4f92-a10b-5c8f204e6a77" - name = "Gertrude Gutkowski" + definition_id = "b690b273-6f2f-47a3-b95d-4abcb3edfbba" + name = "Franklin O'Reilly PhD" secret_id = "...my_secret_id..." - workspace_id = "b6babc0f-9b18-4b2e-afdc-453fb6a0192c" + workspace_id = "44a4dc97-0c07-4857-ba20-ac990f9b2ce7" } ``` @@ -52,7 +52,7 @@ resource "airbyte_source_linnworks" "my_source_linnworks" { Required: - `application_id` (String) Linnworks Application ID -- `application_secret` (String) Linnworks Application Secret +- `application_secret` (String, Sensitive) Linnworks Application Secret - `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. - `token` (String, Sensitive) diff --git a/docs/resources/source_lokalise.md b/docs/resources/source_lokalise.md index 229f795b3..d81e99884 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 = "447712b4-a020-4883-8aab-effb8d976510" - name = "Lindsey Pouros" + definition_id = "a67a8515-0ea8-4612-8cd6-18d742806812" + name = "Luke King" secret_id = "...my_secret_id..." - workspace_id = "0a5f2f61-a4e4-4668-89f7-bbeaaef52404" + workspace_id = "69526155-53a7-4134-98a3-f9799a12d6e3" } ``` diff --git a/docs/resources/source_looker.md b/docs/resources/source_looker.md new file mode 100644 index 000000000..777ad2f69 --- /dev/null +++ b/docs/resources/source_looker.md @@ -0,0 +1,70 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_looker Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceLooker Resource +--- + +# airbyte_source_looker (Resource) + +SourceLooker Resource + +## Example Usage + +```terraform +resource "airbyte_source_looker" "my_source_looker" { + configuration = { + client_id = "...my_client_id..." + client_secret = "...my_client_secret..." + domain = "domainname.looker.com" + run_look_ids = [ + "...", + ] + } + definition_id = "e66d700d-4772-4456-90d2-6d9147bb3566" + name = "Cameron Howe" + secret_id = "...my_secret_id..." + workspace_id = "ba4f7aab-a257-4841-81a2-1c8938ad6fcb" +} +``` + + +## 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) The Client ID is first part of an API3 key that is specific to each Looker user. See the docs for more information on how to generate this key. +- `client_secret` (String, Sensitive) The Client Secret is second part of an API3 key. +- `domain` (String) Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address + +Optional: + +- `run_look_ids` (List of String) The IDs of any Looks to run + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_looker.my_airbyte_source_looker "" +``` diff --git a/docs/resources/source_luma.md b/docs/resources/source_luma.md new file mode 100644 index 000000000..758b41b6d --- /dev/null +++ b/docs/resources/source_luma.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_luma Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceLuma Resource +--- + +# airbyte_source_luma (Resource) + +SourceLuma Resource + +## Example Usage + +```terraform +resource "airbyte_source_luma" "my_source_luma" { + configuration = { + api_key = "...my_api_key..." + } + definition_id = "b78bed98-212c-4704-ae19-387527d5e3ef" + name = "Sara Gibson" + secret_id = "...my_secret_id..." + workspace_id = "0c0b7968-b724-4213-bfe2-e9e26c4c104f" +} +``` + + +## 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) Get your API key on lu.ma Calendars dashboard → Settings. + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_luma.my_airbyte_source_luma "" +``` diff --git a/docs/resources/source_mailchimp.md b/docs/resources/source_mailchimp.md index 5f21c3b99..0bdc58aaa 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 = "b4c473e8-c7bd-4591-9174-a553fda41daf" - name = "Agnes Cronin" + definition_id = "be3b1f29-0447-4757-b847-65c77418014d" + name = "Tabitha D'Amore" secret_id = "...my_secret_id..." - workspace_id = "f51c5fa5-2e0c-46c0-8c93-e76e9fdef541" + workspace_id = "651b77f9-fe0e-45e5-b386-d0ac5af3c655" } ``` @@ -83,8 +83,8 @@ Required: Optional: -- `client_id` (String) The Client ID of your OAuth application. -- `client_secret` (String) The Client Secret of your OAuth application. +- `client_id` (String, Sensitive) The Client ID of your OAuth application. +- `client_secret` (String, Sensitive) The Client Secret of your OAuth application. ## Import diff --git a/docs/resources/source_mailgun.md b/docs/resources/source_mailgun.md index 6d629023b..22707ac13 100644 --- a/docs/resources/source_mailgun.md +++ b/docs/resources/source_mailgun.md @@ -19,10 +19,10 @@ resource "airbyte_source_mailgun" "my_source_mailgun" { private_key = "...my_private_key..." start_date = "2023-08-01T00:00:00Z" } - definition_id = "ca13b1e8-9c14-488f-aa41-1d9d922269c9" - name = "Ricardo Gutmann" + definition_id = "b03d25be-e3db-4adc-877c-b62b59b9f1ee" + name = "Wanda Greenfelder" secret_id = "...my_secret_id..." - workspace_id = "0bccdd2e-95af-46ed-bc47-c14160113c2d" + workspace_id = "78a5bcbb-c2cb-483b-ac4d-d4d42907741e" } ``` diff --git a/docs/resources/source_mailjet_sms.md b/docs/resources/source_mailjet_sms.md index 5f5092f85..c64c343c0 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 = "b5eaa64b-86a4-42db-bb85-3ec4b5e6a18b" - name = "Christie Kshlerin Jr." + definition_id = "bbab0457-d926-4398-a6ec-d841e72a766a" + name = "Cassandra Hoppe" secret_id = "...my_secret_id..." - workspace_id = "3de8da44-3bfa-4add-a9a6-dff6cb6bf32f" + workspace_id = "a512d804-4b05-4c5b-b112-361f26d47b86" } ``` diff --git a/docs/resources/source_marketo.md b/docs/resources/source_marketo.md index 6200a7841..0460a9c39 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 = "825bea4e-c87a-4aff-ab9e-a290f7e9f416" - name = "Bridget Gutmann" + definition_id = "ec1a2bc2-b81e-445e-bceb-6c910dc95a96" + name = "Marco Hermann" secret_id = "...my_secret_id..." - workspace_id = "69c61d27-bbad-43f0-bf8c-a743bfb1506e" + workspace_id = "bc4b3253-e6bd-4591-a254-44d2234fd1d8" } ``` @@ -51,9 +51,9 @@ resource "airbyte_source_marketo" "my_source_marketo" { Required: -- `client_id` (String) The Client ID of your Marketo developer application. See the docs for info on how to obtain this. -- `client_secret` (String) The Client Secret of your Marketo developer application. See the docs for info on how to obtain this. -- `domain_url` (String) Your Marketo Base URL. See the docs for info on how to obtain this. +- `client_id` (String, Sensitive) The Client ID of your Marketo developer application. See the docs for info on how to obtain this. +- `client_secret` (String, Sensitive) The Client Secret of your Marketo developer application. See the docs for info on how to obtain this. +- `domain_url` (String, Sensitive) Your Marketo Base URL. See the docs for info on how to obtain this. - `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. ## Import diff --git a/docs/resources/source_metabase.md b/docs/resources/source_metabase.md index a8960ea12..13d7b3962 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 = "Fatima_Simonis" + username = "Shaniya80" } - definition_id = "eb8b49c8-2f28-43fd-b1b3-62a3ef9cacc8" - name = "Misty Price" + definition_id = "7d43320f-ac9c-41a8-9ab7-e73a5971814e" + name = "Dr. Muriel Ryan" secret_id = "...my_secret_id..." - workspace_id = "ac01647d-c7c2-471c-9044-a25a4f7e4eab" + workspace_id = "33abc58a-542d-4517-bc88-bc4998d75efe" } ``` @@ -52,6 +52,7 @@ resource "airbyte_source_metabase" "my_source_metabase" { Required: - `instance_api_url` (String) URL to your metabase instance API +- `username` (String) Optional: @@ -62,7 +63,6 @@ Optional: http://localhost:3000/api/session ``` Then copy the value of the `id` field returned by a successful call to that API. Note that by default, sessions are good for 14 days and needs to be regenerated. -- `username` (String) ## Import diff --git a/docs/resources/source_microsoft_onedrive.md b/docs/resources/source_microsoft_onedrive.md index bcbfb6739..52d335e24 100644 --- a/docs/resources/source_microsoft_onedrive.md +++ b/docs/resources/source_microsoft_onedrive.md @@ -29,27 +29,27 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 6 + days_to_sync_if_history_is_full = 2 format = { avro_format = { - double_as_string = true + double_as_string = false } } globs = [ "...", ] input_schema = "...my_input_schema..." - name = "Jeanette Larson" + name = "Krystal Hamill" primary_key = "...my_primary_key..." schemaless = true validation_policy = "Emit Record" }, ] } - definition_id = "45d14463-0331-48f2-9cf1-0b0742b93b49" - name = "Miss Joshua Brekke" + definition_id = "598db92c-72d5-441f-9389-28a50561c1cc" + name = "Miss Judith McGlynn MD" secret_id = "...my_secret_id..." - workspace_id = "20ccad5a-dc13-430e-b574-88395b5ae042" + workspace_id = "d7b3d761-e29e-4f26-ae07-d2b59ab56edb" } ``` @@ -103,10 +103,10 @@ This class is structured similarly to OAuthCredentials but for a different authe Required: -- `client_id` (String) Client ID of your Microsoft developer application -- `client_secret` (String) Client Secret of your Microsoft developer application +- `client_id` (String, Sensitive) Client ID of your Microsoft developer application +- `client_secret` (String, Sensitive) Client Secret of your Microsoft developer application - `refresh_token` (String, Sensitive) Refresh Token of your Microsoft developer application -- `tenant_id` (String) Tenant ID of the Microsoft OneDrive user +- `tenant_id` (String, Sensitive) Tenant ID of the Microsoft OneDrive user @@ -114,10 +114,10 @@ Required: Required: -- `client_id` (String) Client ID of your Microsoft developer application -- `client_secret` (String) Client Secret of your Microsoft developer application -- `tenant_id` (String) Tenant ID of the Microsoft OneDrive user -- `user_principal_name` (String) Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls +- `client_id` (String, Sensitive) Client ID of your Microsoft developer application +- `client_secret` (String, Sensitive) Client Secret of your Microsoft developer application +- `tenant_id` (String, Sensitive) Tenant ID of the Microsoft OneDrive user +- `user_principal_name` (String, Sensitive) Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls @@ -134,7 +134,7 @@ Optional: - `days_to_sync_if_history_is_full` (Number) When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. Default: 3 - `globs` (List of String) The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here. - `input_schema` (String) The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. -- `primary_key` (String, Sensitive) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `primary_key` (String) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. - `schemaless` (Boolean) When enabled, syncs will not validate or structure records against the stream's schema. Default: false - `validation_policy` (String) The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. must be one of ["Emit Record", "Skip Record", "Wait for Discover"]; Default: "Emit Record" @@ -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.parquet_format` +### Nested Schema for `configuration.streams.format.unstructured_document_format` Optional: @@ -158,7 +158,7 @@ Optional: -### Nested Schema for `configuration.streams.format.parquet_format` +### Nested Schema for `configuration.streams.format.unstructured_document_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--parquet_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--unstructured_document_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.parquet_format.header_definition` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition` Optional: -- `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)) +- `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)) - -### 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` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` Required: @@ -203,38 +203,36 @@ Required: - -### 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` + +### Nested Schema for `configuration.streams.format.unstructured_document_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--parquet_format--processing--local)) - - -### Nested Schema for `configuration.streams.format.parquet_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 + +### Nested Schema for `configuration.streams.format.unstructured_document_format` - -### Nested Schema for `configuration.streams.format.parquet_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.parquet_format` + +### Nested Schema for `configuration.streams.format.unstructured_document_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--unstructured_document_format--processing--local)) + + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.local` ## Import diff --git a/docs/resources/source_microsoft_sharepoint.md b/docs/resources/source_microsoft_sharepoint.md index 70a409e23..775df8f11 100644 --- a/docs/resources/source_microsoft_sharepoint.md +++ b/docs/resources/source_microsoft_sharepoint.md @@ -24,11 +24,11 @@ resource "airbyte_source_microsoft_sharepoint" "my_source_microsoftsharepoint" { } } folder_path = "...my_folder_path..." - search_scope = "ACCESSIBLE_DRIVES" + search_scope = "SHARED_ITEMS" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 1 + days_to_sync_if_history_is_full = 0 format = { avro_format = { double_as_string = false @@ -37,18 +37,19 @@ resource "airbyte_source_microsoft_sharepoint" "my_source_microsoftsharepoint" { globs = [ "...", ] - input_schema = "...my_input_schema..." - name = "Mrs. Alfonso Hayes" - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Skip Record" + input_schema = "...my_input_schema..." + name = "Rosalie Schmitt" + primary_key = "...my_primary_key..." + recent_n_files_to_read_for_schema_discovery = 9 + schemaless = false + validation_policy = "Emit Record" }, ] } - definition_id = "fa2ea25a-51d7-4622-a389-cc4200a4abb3" - name = "Bobbie McCullough" + definition_id = "2bd5eb73-d022-4a60-8737-f9f9cf17c9c1" + name = "Jackie Bergstrom" secret_id = "...my_secret_id..." - workspace_id = "11cc7be3-e8ba-4718-8dc0-5c92c2050fdf" + workspace_id = "61900dfc-3504-41fc-9cac-22262ef24d92" } ``` @@ -101,9 +102,9 @@ This class is structured similarly to OAuthCredentials but for a different authe Required: -- `client_id` (String) Client ID of your Microsoft developer application -- `client_secret` (String) Client Secret of your Microsoft developer application -- `tenant_id` (String) Tenant ID of the Microsoft SharePoint user +- `client_id` (String, Sensitive) Client ID of your Microsoft developer application +- `client_secret` (String, Sensitive) Client Secret of your Microsoft developer application +- `tenant_id` (String, Sensitive) Tenant ID of the Microsoft SharePoint user Optional: @@ -115,10 +116,10 @@ Optional: Required: -- `client_id` (String) Client ID of your Microsoft developer application -- `client_secret` (String) Client Secret of your Microsoft developer application -- `tenant_id` (String) Tenant ID of the Microsoft SharePoint user -- `user_principal_name` (String) Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls +- `client_id` (String, Sensitive) Client ID of your Microsoft developer application +- `client_secret` (String, Sensitive) Client Secret of your Microsoft developer application +- `tenant_id` (String, Sensitive) Tenant ID of the Microsoft SharePoint user +- `user_principal_name` (String, Sensitive) Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls @@ -135,7 +136,8 @@ Optional: - `days_to_sync_if_history_is_full` (Number) When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. Default: 3 - `globs` (List of String) The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here. - `input_schema` (String) The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. -- `primary_key` (String, Sensitive) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `primary_key` (String) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `recent_n_files_to_read_for_schema_discovery` (Number) The number of resent files which will be used to discover the schema for this stream. - `schemaless` (Boolean) When enabled, syncs will not validate or structure records against the stream's schema. Default: false - `validation_policy` (String) The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. must be one of ["Emit Record", "Skip Record", "Wait for Discover"]; Default: "Emit Record" @@ -146,12 +148,13 @@ 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)) +- `excel_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--excel_format)) - `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.parquet_format` +### Nested Schema for `configuration.streams.format.unstructured_document_format` Optional: @@ -159,7 +162,7 @@ Optional: -### Nested Schema for `configuration.streams.format.parquet_format` +### Nested Schema for `configuration.streams.format.unstructured_document_format` Optional: @@ -168,7 +171,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--parquet_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--unstructured_document_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 +180,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.parquet_format.header_definition` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition` Optional: -- `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)) +- `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)) - -### 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` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` Required: @@ -204,38 +207,40 @@ Required: - -### Nested Schema for `configuration.streams.format.parquet_format` + +### Nested Schema for `configuration.streams.format.unstructured_document_format` -Optional: - -- `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` + +### Nested Schema for `configuration.streams.format.unstructured_document_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--parquet_format--processing--local)) + +### Nested Schema for `configuration.streams.format.unstructured_document_format` - -### Nested Schema for `configuration.streams.format.parquet_format.processing.local` +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 + +### Nested Schema for `configuration.streams.format.unstructured_document_format` - -### Nested Schema for `configuration.streams.format.parquet_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.parquet_format` + +### Nested Schema for `configuration.streams.format.unstructured_document_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--unstructured_document_format--processing--local)) + + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.local` ## Import diff --git a/docs/resources/source_microsoft_teams.md b/docs/resources/source_microsoft_teams.md index 60cba0d5c..6613a1954 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 = "2ba7d43d-20d3-4384-a15e-d53522788fae" - name = "Ed Ondricka" + definition_id = "369b1ff5-a7ba-4288-b10a-0635ff19f388" + name = "Margie Heidenreich" secret_id = "...my_secret_id..." - workspace_id = "b93c7728-79b6-4069-b6a2-8df3196ea920" + workspace_id = "941e7db0-723f-4947-b9cc-80ee5b712257" } ``` @@ -75,8 +75,8 @@ Optional: Required: - `client_id` (String) The Client ID of your Microsoft Teams developer application. -- `client_secret` (String) The Client Secret of your Microsoft Teams developer application. -- `tenant_id` (String) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL +- `client_secret` (String, Sensitive) The Client Secret of your Microsoft Teams developer application. +- `tenant_id` (String, Sensitive) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL @@ -85,9 +85,9 @@ Required: Required: - `client_id` (String) The Client ID of your Microsoft Teams developer application. -- `client_secret` (String) The Client Secret of your Microsoft Teams developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Microsoft Teams developer application. - `refresh_token` (String, Sensitive) A Refresh Token to renew the expired Access Token. -- `tenant_id` (String) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL +- `tenant_id` (String, Sensitive) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL ## Import diff --git a/docs/resources/source_mixpanel.md b/docs/resources/source_mixpanel.md index 7332c74ea..f5a19a8fa 100644 --- a/docs/resources/source_mixpanel.md +++ b/docs/resources/source_mixpanel.md @@ -15,23 +15,24 @@ SourceMixpanel Resource ```terraform resource "airbyte_source_mixpanel" "my_source_mixpanel" { configuration = { - attribution_window = 2 + attribution_window = 5 credentials = { project_secret = { api_secret = "...my_api_secret..." } } - date_window_size = 8 + date_window_size = 5 end_date = "2021-11-16" - project_timezone = "UTC" + page_size = 6 + project_timezone = "US/Pacific" region = "US" select_properties_by_default = false start_date = "2021-11-16" } - definition_id = "5a531f3b-4802-4a3b-9d67-4976dbe116c7" - name = "Raymond Boyer" + definition_id = "e08d80f6-94c4-48e9-90f8-4ccbad71dab0" + name = "Mrs. Vickie Barrows" secret_id = "...my_secret_id..." - workspace_id = "70bfb326-67c4-47d5-8361-6107c03f8392" + workspace_id = "124b6e7b-2083-4a37-b0c9-92762a38aa73" } ``` @@ -66,6 +67,7 @@ Optional: - `attribution_window` (Number) A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days. (This value should be non-negative integer). Default: 5 - `date_window_size` (Number) Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment. (This value should be positive integer). Default: 30 - `end_date` (String) The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date +- `page_size` (Number) The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. Default: 1000 - `project_timezone` (String) Time zone in which integer date times are stored. The project timezone may be found in the project settings in the Mixpanel console. Default: "US/Pacific" - `region` (String) The region of mixpanel domain instance either US or EU. must be one of ["US", "EU"]; Default: "US" - `select_properties_by_default` (Boolean) Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored. Default: true @@ -84,7 +86,7 @@ Optional: Required: -- `api_secret` (String) Mixpanel project secret. See the docs for more information on how to obtain this. +- `api_secret` (String, Sensitive) Mixpanel project secret. See the docs for more information on how to obtain this. @@ -93,7 +95,7 @@ Required: Required: - `project_id` (Number) Your project ID number. See the docs for more information on how to obtain this. -- `secret` (String) Mixpanel Service Account Secret. See the docs for more information on how to obtain this. +- `secret` (String, Sensitive) Mixpanel Service Account Secret. See the docs for more information on how to obtain this. - `username` (String) Mixpanel Service Account Username. See the docs for more information on how to obtain this. ## Import diff --git a/docs/resources/source_monday.md b/docs/resources/source_monday.md index ed3aefe60..3182fff78 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 = "0634c9db-1c42-4670-9282-f0b308e78729" - name = "Mr. Emmett Hermiston" + definition_id = "d79a85cb-7246-4518-8216-19872363e09a" + name = "Monique Nitzsche" secret_id = "...my_secret_id..." - workspace_id = "b690b273-6f2f-47a3-b95d-4abcb3edfbba" + workspace_id = "2d9d7702-5755-4e69-95c5-7652df199422" } ``` @@ -76,8 +76,8 @@ Required: Required: - `access_token` (String, Sensitive) Access Token for making authenticated requests. -- `client_id` (String) The Client ID of your OAuth application. -- `client_secret` (String) The Client Secret of your OAuth application. +- `client_id` (String, Sensitive) The Client ID of your OAuth application. +- `client_secret` (String, Sensitive) The Client Secret of your OAuth application. Optional: diff --git a/docs/resources/source_mongodb_internal_poc.md b/docs/resources/source_mongodb_internal_poc.md deleted file mode 100644 index 777692bba..000000000 --- a/docs/resources/source_mongodb_internal_poc.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_mongodb_internal_poc Resource - terraform-provider-airbyte" -subcategory: "" -description: |- - SourceMongodbInternalPoc Resource ---- - -# airbyte_source_mongodb_internal_poc (Resource) - -SourceMongodbInternalPoc Resource - -## Example Usage - -```terraform -resource "airbyte_source_mongodb_internal_poc" "my_source_mongodbinternalpoc" { - configuration = { - auth_source = "admin" - connection_string = "mongodb://example.host.com:27017" - password = "...my_password..." - replica_set = "...my_replica_set..." - user = "...my_user..." - } - definition_id = "6ad0e44a-4dc9-470c-8785-73a20ac990f9" - name = "Steve Sauer" - secret_id = "...my_secret_id..." - workspace_id = "a67a8515-0ea8-4612-8cd6-18d742806812" -} -``` - - -## 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` - -Optional: - -- `auth_source` (String) The authentication source where the user information is stored. Default: "admin" -- `connection_string` (String) The connection string of the database that you want to replicate.. -- `password` (String, Sensitive) The password associated with this username. -- `replica_set` (String) The name of the replica set to be replicated. -- `user` (String) The username which is used to access the database. - -## Import - -Import is supported using the following syntax: - -```shell -terraform import airbyte_source_mongodb_internal_poc.my_airbyte_source_mongodb_internal_poc "" -``` diff --git a/docs/resources/source_mongodb_v2.md b/docs/resources/source_mongodb_v2.md index a98679326..f7ad4159c 100644 --- a/docs/resources/source_mongodb_v2.md +++ b/docs/resources/source_mongodb_v2.md @@ -23,19 +23,20 @@ resource "airbyte_source_mongodb_v2" "my_source_mongodbv2" { database = "...my_database..." password = "...my_password..." schema_enforced = false - username = "Luciano.King42" + username = "Cole62" } } discover_sample_size = 6 + initial_load_timeout_hours = 5 initial_waiting_seconds = 4 - invalid_cdc_cursor_position_behavior = "Fail sync" - queue_size = 4 + invalid_cdc_cursor_position_behavior = "Re-sync data" + queue_size = 5 update_capture_mode = "Lookup" } - definition_id = "5553a713-498a-43f9-b99a-12d6e33e66d7" - name = "Melissa Stoltenberg" + definition_id = "1dbfafbd-d349-4afd-8cd9-5bcfe3342dc4" + name = "Anne Nienow" secret_id = "...my_secret_id..." - workspace_id = "72456d0d-26d9-4147-bb35-66ca647ba4f7" + workspace_id = "61635af9-f94f-4985-aa22-e677c77be4e4" } ``` @@ -68,6 +69,7 @@ Required: Optional: - `discover_sample_size` (Number) The maximum number of documents to sample when attempting to discover the unique fields for a collection. Default: 10000 +- `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. 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" - `queue_size` (Number) The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. Default: 10000 diff --git a/docs/resources/source_mssql.md b/docs/resources/source_mssql.md index d16c9fd0d..2591f8323 100644 --- a/docs/resources/source_mssql.md +++ b/docs/resources/source_mssql.md @@ -22,9 +22,10 @@ resource "airbyte_source_mssql" "my_source_mssql" { port = 1433 replication_method = { read_changes_using_change_data_capture_cdc = { - initial_waiting_seconds = 7 + initial_load_timeout_hours = 3 + initial_waiting_seconds = 2 invalid_cdc_cursor_position_behavior = "Re-sync data" - queue_size = 7 + queue_size = 3 } } schemas = [ @@ -36,12 +37,12 @@ resource "airbyte_source_mssql" "my_source_mssql" { tunnel_method = { no_tunnel = {} } - username = "Caroline_Harvey" + username = "Ayden.Sanford17" } - definition_id = "4141a21c-8938-4ad6-bcbb-78bed98212c7" - name = "Eleanor O'Hara V" + definition_id = "5b489304-8e9c-41af-9961-b1c883a57271" + name = "Kari Lemke" secret_id = "...my_secret_id..." - workspace_id = "387527d5-e3ef-4724-ad0c-0b7968b72421" + workspace_id = "b6433cb8-2b32-4ad0-bfd9-a9d8ba9b0df8" } ``` @@ -96,6 +97,7 @@ 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 3600 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" - `queue_size` (Number) The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. Default: 10000 @@ -124,7 +126,7 @@ Optional: Optional: -- `certificate` (String) certificate of the server, or of the CA that signed the server certificate +- `certificate` (String, Sensitive) certificate of the server, or of the CA that signed the server certificate - `host_name_in_certificate` (String) Specifies the host name of the server. The value of this property must match the subject property of the certificate. diff --git a/docs/resources/source_my_hours.md b/docs/resources/source_my_hours.md index a5fb315df..f59a21a17 100644 --- a/docs/resources/source_my_hours.md +++ b/docs/resources/source_my_hours.md @@ -18,12 +18,12 @@ resource "airbyte_source_my_hours" "my_source_myhours" { email = "john@doe.com" logs_batch_size = 30 password = "...my_password..." - start_date = "2016-01-01" + start_date = "%Y-%m-%d" } - definition_id = "26c4c104-f1db-4e3b-9f29-044775738476" - name = "Brooke Kihn" + definition_id = "43ee79bd-13e2-4046-99bb-dc56c2f2e202" + name = "Lindsey Schinner" secret_id = "...my_secret_id..." - workspace_id = "18014d1f-2636-451b-b7f9-fe0e5e5f386d" + workspace_id = "13998d3f-c543-40ae-866d-4a91bbbc35ba" } ``` diff --git a/docs/resources/source_mysql.md b/docs/resources/source_mysql.md index 160183145..4ede9c49d 100644 --- a/docs/resources/source_mysql.md +++ b/docs/resources/source_mysql.md @@ -22,7 +22,8 @@ resource "airbyte_source_mysql" "my_source_mysql" { port = 3306 replication_method = { read_changes_using_binary_log_cdc = { - initial_waiting_seconds = 7 + initial_load_timeout_hours = 6 + initial_waiting_seconds = 1 invalid_cdc_cursor_position_behavior = "Re-sync data" server_time_zone = "...my_server_time_zone..." } @@ -33,12 +34,12 @@ resource "airbyte_source_mysql" "my_source_mysql" { tunnel_method = { no_tunnel = {} } - username = "Flossie.Padberg78" + username = "Harrison_Steuber" } - definition_id = "6558d9b0-3d25-4bee-bdba-dc477cb62b59" - name = "Dr. Kirk Welch" + definition_id = "05ab7b93-31a5-4dda-bad6-ab5ec8caacd8" + name = "Victor Pacocha" secret_id = "...my_secret_id..." - workspace_id = "4249578a-5bcb-4bc2-8b83-b2c4dd4d4290" + workspace_id = "dc0f3381-1dda-4d7d-b9aa-2af68e00dcda" } ``` @@ -92,6 +93,7 @@ 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. @@ -125,11 +127,11 @@ Optional: Required: -- `ca_certificate` (String) CA certificate +- `ca_certificate` (String, Sensitive) CA certificate Optional: -- `client_certificate` (String) Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) +- `client_certificate` (String, Sensitive) Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) - `client_key` (String, Sensitive) Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) - `client_key_password` (String, Sensitive) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. @@ -139,11 +141,11 @@ Optional: Required: -- `ca_certificate` (String) CA certificate +- `ca_certificate` (String, Sensitive) CA certificate Optional: -- `client_certificate` (String) Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) +- `client_certificate` (String, Sensitive) Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) - `client_key` (String, Sensitive) Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) - `client_key_password` (String, Sensitive) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. diff --git a/docs/resources/source_netsuite.md b/docs/resources/source_netsuite.md index 11d25465b..1b3951df4 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 = 5 + window_in_days = 9 } - definition_id = "741ee0bb-ab04-457d-9263-98e6ecd841e7" - name = "Jan Kub" + definition_id = "d4796116-8b4f-4a72-a2d2-a48f976dd11d" + name = "Brian Marvin" secret_id = "...my_secret_id..." - workspace_id = "a686faa5-12d8-4044-b05c-5b7112361f26" + workspace_id = "9375f622-7890-4d41-b139-19c925e38651" } ``` @@ -58,8 +58,8 @@ resource "airbyte_source_netsuite" "my_source_netsuite" { Required: - `consumer_key` (String, Sensitive) Consumer key associated with your integration -- `consumer_secret` (String) Consumer secret associated with your integration -- `realm` (String) Netsuite realm e.g. 2344535, as for `production` or 2344535_SB1, as for the `sandbox` +- `consumer_secret` (String, Sensitive) Consumer secret associated with your integration +- `realm` (String, Sensitive) Netsuite realm e.g. 2344535, as for `production` or 2344535_SB1, as for the `sandbox` - `start_datetime` (String) Starting point for your data replication, in format of "YYYY-MM-DDTHH:mm:ssZ" - `token_key` (String, Sensitive) Access token key - `token_secret` (String, Sensitive) Access token secret diff --git a/docs/resources/source_northpass_lms.md b/docs/resources/source_northpass_lms.md new file mode 100644 index 000000000..ecc614db2 --- /dev/null +++ b/docs/resources/source_northpass_lms.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_northpass_lms Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceNorthpassLms Resource +--- + +# airbyte_source_northpass_lms (Resource) + +SourceNorthpassLms Resource + +## Example Usage + +```terraform +resource "airbyte_source_northpass_lms" "my_source_northpasslms" { + configuration = { + api_key = "...my_api_key..." + } + definition_id = "7a801121-66a5-4ec4-af2b-ce2e77bbccef" + name = "Jennie Leuschke" + secret_id = "...my_secret_id..." + workspace_id = "548be8a7-a9db-4f52-8792-93e28aa81903" +} +``` + + +## 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) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_northpass_lms.my_airbyte_source_northpass_lms "" +``` diff --git a/docs/resources/source_notion.md b/docs/resources/source_notion.md index 47f227ed2..cecabcfe1 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 = "7b86cdec-1a2b-4c2b-81e4-5e3ceb6c910d" - name = "Terrence Haley" + definition_id = "8b38fe3b-5201-4125-b292-52a784d2d0f1" + name = "Sharon Koss" secret_id = "...my_secret_id..." - workspace_id = "6cb5f3bc-4b32-453e-abd5-91e25444d223" + workspace_id = "5e2d6a49-780b-4a1d-aa28-c6eefe59b72d" } ``` @@ -78,8 +78,8 @@ Required: Required: - `access_token` (String, Sensitive) The Access Token received by completing the OAuth flow for your Notion integration. See our docs for more information. -- `client_id` (String) The Client ID of your Notion integration. See our docs for more information. -- `client_secret` (String) The Client Secret of your Notion integration. See our docs for more information. +- `client_id` (String, Sensitive) The Client ID of your Notion integration. See our docs for more information. +- `client_secret` (String, Sensitive) The Client Secret of your Notion integration. See our docs for more information. ## Import diff --git a/docs/resources/source_nytimes.md b/docs/resources/source_nytimes.md index 1171a532d..fd95b563f 100644 --- a/docs/resources/source_nytimes.md +++ b/docs/resources/source_nytimes.md @@ -16,15 +16,15 @@ SourceNytimes Resource resource "airbyte_source_nytimes" "my_source_nytimes" { configuration = { api_key = "...my_api_key..." - end_date = "2022-08" + end_date = "1851-01" period = "1" share_type = "facebook" - start_date = "1851-01" + start_date = "2022-08" } - definition_id = "a1c7d433-20fa-4c9c-9a8d-ab7e73a59718" - name = "Suzanne Terry" + definition_id = "407ce310-da76-4331-90ac-fec241f73646" + name = "Albert Ryan" secret_id = "...my_secret_id..." - workspace_id = "c1f633ab-c58a-4542-9517-fc88bc4998d7" + workspace_id = "9583a59a-8255-4310-9401-78456a4c1173" } ``` diff --git a/docs/resources/source_okta.md b/docs/resources/source_okta.md index b9de7b8c1..52acb1578 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 = "fedea337-d55b-4155-98db-92c72d541f53" - name = "Marion Champlin" + definition_id = "2c277a8e-2388-4fd0-920f-62c51a2676b4" + name = "Sergio Crooks" secret_id = "...my_secret_id..." - workspace_id = "50561c1c-c629-41a1-ad7b-3d761e29ef26" + workspace_id = "ad19d25d-5253-4fa0-aef0-08f118d81572" } ``` @@ -55,7 +55,7 @@ resource "airbyte_source_okta" "my_source_okta" { Optional: - `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials)) -- `domain` (String) The Okta domain. See the docs for instructions on how to find it. +- `domain` (String, Sensitive) The Okta domain. See the docs for instructions on how to find it. - `start_date` (String) UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. @@ -65,6 +65,7 @@ Optional: - `api_token` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials--api_token)) - `o_auth20` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials--o_auth20)) +- `o_auth20_with_private_key` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials--o_auth20_with_private_key)) ### Nested Schema for `configuration.credentials.api_token` @@ -79,10 +80,21 @@ Required: Required: -- `client_id` (String) The Client ID of your OAuth application. -- `client_secret` (String) The Client Secret of your OAuth application. +- `client_id` (String, Sensitive) The Client ID of your OAuth application. +- `client_secret` (String, Sensitive) The Client Secret of your OAuth application. - `refresh_token` (String, Sensitive) Refresh Token to obtain new Access Token, when it's expired. + + +### Nested Schema for `configuration.credentials.o_auth20_with_private_key` + +Required: + +- `client_id` (String, Sensitive) The Client ID of your OAuth application. +- `key_id` (String, Sensitive) The key ID (kid). +- `private_key` (String, Sensitive) The private key in PEM format +- `scope` (String) The OAuth scope. + ## Import Import is supported using the following syntax: diff --git a/docs/resources/source_omnisend.md b/docs/resources/source_omnisend.md index 831c6c09b..f0de1f8ac 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 = "ae07d2b5-9ab5-46ed-b57c-000ccdeed12b" - name = "Corey Walker" + definition_id = "f724d1e0-e7e7-408b-9f81-5bf9f1370c28" + name = "Wayne Klein" secret_id = "...my_secret_id..." - workspace_id = "3d022a60-8737-4f9f-9cf1-7c9c1c918861" + workspace_id = "25e4ee4a-51ab-4e7b-be4e-8da5f867ba5c" } ``` diff --git a/docs/resources/source_onesignal.md b/docs/resources/source_onesignal.md index d7afd99f1..180a19106 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 = "0dfc3504-1fcd-4cac-a226-2ef24d92369b" - name = "Shawna Wilkinson" + definition_id = "db48a2cc-4047-4b12-8c3e-cc1558e983f3" + name = "Patty Powlowski" secret_id = "...my_secret_id..." - workspace_id = "7ba288f1-0a06-435f-b19f-388685d8941e" + workspace_id = "f8e75b95-ee5d-4d11-877a-4e3aa4d1c74f" } ``` @@ -68,7 +68,7 @@ Required: Required: - `app_api_key` (String, Sensitive) -- `app_id` (String) +- `app_id` (String, Sensitive) Optional: diff --git a/docs/resources/source_oracle.md b/docs/resources/source_oracle.md index 3cbd5cd17..4735f9219 100644 --- a/docs/resources/source_oracle.md +++ b/docs/resources/source_oracle.md @@ -22,7 +22,7 @@ resource "airbyte_source_oracle" "my_source_oracle" { } encryption = { native_network_encryption_nne = { - encryption_algorithm = "RC4_56" + encryption_algorithm = "3DES168" } } host = "...my_host..." @@ -35,12 +35,12 @@ resource "airbyte_source_oracle" "my_source_oracle" { tunnel_method = { no_tunnel = {} } - username = "Neha.Abbott" + username = "Jammie.Steuber" } - definition_id = "3f94739c-c80e-4e5b-b122-5778f7a023c1" - name = "Charles Littel" + definition_id = "9b8b6b2c-0920-4aa8-be08-607521b21ea9" + name = "Edmund Mraz DDS" secret_id = "...my_secret_id..." - workspace_id = "0f694c48-e9d0-4f84-8cba-d71dab038014" + workspace_id = "88f1ee12-f8a7-4db0-98a7-41266a87d389" } ``` @@ -106,7 +106,7 @@ Optional: Required: -- `ssl_certificate` (String) Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. +- `ssl_certificate` (String, Sensitive) Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. diff --git a/docs/resources/source_orb.md b/docs/resources/source_orb.md index 49f3470a6..9a8d2c2e5 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 = 7 + lookback_window_days = 0 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 = "124b6e7b-2083-4a37-b0c9-92762a38aa73" - name = "Julio Mayer" + definition_id = "efa67bbe-a9f5-4a35-91bd-0fb6321f6b4c" + name = "Nathaniel Gorczany" secret_id = "...my_secret_id..." - workspace_id = "5cb72465-1802-4161-9872-363e09a2aae6" + workspace_id = "a5f8aec8-fedb-48fc-b536-7bfee523e36b" } ``` @@ -66,10 +66,10 @@ Optional: - `end_date` (String) UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. - `lookback_window_days` (Number) When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced. Default: 0 -- `numeric_event_properties_keys` (List of String, Sensitive) Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. +- `numeric_event_properties_keys` (List of String) Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. - `plan_id` (String) Orb Plan ID to filter subscriptions that should have usage fetched. -- `string_event_properties_keys` (List of String, Sensitive) Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. -- `subscription_usage_grouping_key` (String, Sensitive) Property key name to group subscription usage by. +- `string_event_properties_keys` (List of String) Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. +- `subscription_usage_grouping_key` (String) Property key name to group subscription usage by. ## Import diff --git a/docs/resources/source_orbit.md b/docs/resources/source_orbit.md index 12e5a1efc..c9d9309d2 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 = "2d9d7702-5755-4e69-95c5-7652df199422" - name = "Danny Jakubowski" + definition_id = "74e8f7b8-37d7-46b0-aa3d-797c2fd02395" + name = "Glenda Boyer" secret_id = "...my_secret_id..." - workspace_id = "976b741d-bfaf-4bdd-b49a-fd0cd95bcfe3" + workspace_id = "206b8fda-8b48-4bf3-b0e9-631ebcafaa2e" } ``` diff --git a/docs/resources/source_outbrain_amplify.md b/docs/resources/source_outbrain_amplify.md index 5bfdb6f70..68d37e477 100644 --- a/docs/resources/source_outbrain_amplify.md +++ b/docs/resources/source_outbrain_amplify.md @@ -21,14 +21,14 @@ resource "airbyte_source_outbrain_amplify" "my_source_outbrainamplify" { } } end_date = "...my_end_date..." - geo_location_breakdown = "country" - report_granularity = "daily" + geo_location_breakdown = "subregion" + report_granularity = "weekly" start_date = "...my_start_date..." } - definition_id = "2dc402ae-f616-435a-b9f9-4f985aa22e67" - name = "Della Koepp" + definition_id = "a1e0cb61-9709-45b9-9e12-6100f09eb706" + name = "Mrs. Randolph Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "e4e4244a-41ce-4525-b489-3048e9c1af99" + workspace_id = "a0ac6bfa-e2b4-40c1-b3d4-d61133ddb2a9" } ``` diff --git a/docs/resources/source_outreach.md b/docs/resources/source_outreach.md index 2d5d692d6..2521d02ed 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 = "61b1c883-a572-4712-98f3-b6433cb82b32" - name = "Sammy Aufderhar" + definition_id = "5937ced0-062e-47b5-9a4e-78152cbd266e" + name = "Bernadette Carter" secret_id = "...my_secret_id..." - workspace_id = "d9a9d8ba-9b0d-4f86-903c-4743ee79bd13" + workspace_id = "05e7f58d-4a06-425c-bff5-b31f2b9304d3" } ``` @@ -53,7 +53,7 @@ resource "airbyte_source_outreach" "my_source_outreach" { Required: - `client_id` (String) The Client ID of your Outreach developer application. -- `client_secret` (String) The Client Secret of your Outreach developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Outreach developer application. - `redirect_uri` (String) A Redirect URI is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token. - `refresh_token` (String, Sensitive) The token for obtaining the new access token. - `start_date` (String) The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. diff --git a/docs/resources/source_paypal_transaction.md b/docs/resources/source_paypal_transaction.md index 720501d17..7c07bf875 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:59Z" + end_date = "2021-06-11T23:59:59+00:00" is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-06-11T23:59:59+00:00" + start_date = "2021-06-11T23:59:59Z" time_window = 9 } - definition_id = "c56c2f2e-2025-49c6-b139-98d3fc5430ae" - name = "Jeanette Howe" + definition_id = "61711be8-8292-44ee-80aa-2980d84713eb" + name = "Mrs. Darnell Adams" secret_id = "...my_secret_id..." - workspace_id = "a91bbbc3-5ba8-492b-ad58-05ab7b9331a5" + workspace_id = "d9af7c7e-9c46-4209-aa52-c707cb05c4a8" } ``` @@ -55,8 +55,8 @@ resource "airbyte_source_paypal_transaction" "my_source_paypaltransaction" { Required: -- `client_id` (String) The Client ID of your Paypal developer application. -- `client_secret` (String) The Client Secret of your Paypal developer application. +- `client_id` (String, Sensitive) The Client ID of your Paypal developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Paypal developer application. - `start_date` (String) Start Date for data extraction in ISO format. Date must be in range from 3 years till 12 hrs before present time. Optional: diff --git a/docs/resources/source_paystack.md b/docs/resources/source_paystack.md index 00939b963..ef8498756 100644 --- a/docs/resources/source_paystack.md +++ b/docs/resources/source_paystack.md @@ -19,10 +19,10 @@ resource "airbyte_source_paystack" "my_source_paystack" { secret_key = "...my_secret_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "fad6ab5e-c8ca-4acd-8d2a-bfdc0f33811d" - name = "Omar Sporer" + definition_id = "cf34658e-520f-4854-a567-309cc0ee4bba" + name = "Shari Orn" secret_id = "...my_secret_id..." - workspace_id = "79aa2af6-8e00-4dcd-add4-7961168b4fa7" + workspace_id = "572054da-a84a-44e2-8fea-10a8a64b77a4" } ``` diff --git a/docs/resources/source_pendo.md b/docs/resources/source_pendo.md index e74c10b40..068ddda8c 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 = "262d2a48-f976-4dd1-9df0-9849375f6227" - name = "Terrence Anderson" + definition_id = "fe630392-88c9-4500-9e51-5b2e740522a6" + name = "Angel Oberbrunner" secret_id = "...my_secret_id..." - workspace_id = "1f13919c-925e-4386-917a-80112166a5ec" + workspace_id = "5e8ae1d2-17c0-4fcb-a7d2-d3433ea86279" } ``` diff --git a/docs/resources/source_pennylane.md b/docs/resources/source_pennylane.md new file mode 100644 index 000000000..a6099f3da --- /dev/null +++ b/docs/resources/source_pennylane.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_pennylane Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourcePennylane Resource +--- + +# airbyte_source_pennylane (Resource) + +SourcePennylane Resource + +## Example Usage + +```terraform +resource "airbyte_source_pennylane" "my_source_pennylane" { + configuration = { + api_key = "...my_api_key..." + start_time = "2021-06-24T10:30:39.947Z" + } + definition_id = "ad5c4b83-3469-4d34-90e3-95a0aac55dc9" + name = "Richard Moen" + secret_id = "...my_secret_id..." + workspace_id = "82142799-2f65-4a71-85f2-e570ad372ede" +} +``` + + +## 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) +- `start_time` (String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_pennylane.my_airbyte_source_pennylane "" +``` diff --git a/docs/resources/source_persistiq.md b/docs/resources/source_persistiq.md index 433795e63..5e68d9d64 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 = "46f2bce2-e77b-4bcc-af58-8ac548be8a7a" - name = "Wilfred Quitzon" + definition_id = "1299d484-1410-4fd6-a7ec-48816b0c62b8" + name = "Mrs. Claude Hand" secret_id = "...my_secret_id..." - workspace_id = "2c79293e-28aa-4819-8334-8b38fe3b5201" + workspace_id = "c3e6c8bd-1ccc-4ad3-b1c4-065293193648" } ``` diff --git a/docs/resources/source_pexels_api.md b/docs/resources/source_pexels_api.md index 01bf169cf..3d835faed 100644 --- a/docs/resources/source_pexels_api.md +++ b/docs/resources/source_pexels_api.md @@ -16,16 +16,16 @@ SourcePexelsAPI Resource resource "airbyte_source_pexels_api" "my_source_pexelsapi" { configuration = { api_key = "...my_api_key..." - color = "red" - locale = "en-US" + color = "orange" + locale = "pt-BR" orientation = "square" query = "oceans" size = "large" } - definition_id = "9252a784-d2d0-4f17-8747-5e2d6a49780b" - name = "Jack Swaniawski" + definition_id = "b5865238-4bdb-4821-b9c8-efa40dc207c5" + name = "Raquel Jakubowski Sr." secret_id = "...my_secret_id..." - workspace_id = "28c6eefe-59b7-42db-a240-7ce310da7633" + workspace_id = "11e1fcb2-6b90-4cc0-9f94-1919892a209c" } ``` diff --git a/docs/resources/source_pinterest.md b/docs/resources/source_pinterest.md index 87ebd2d05..aaaf6477d 100644 --- a/docs/resources/source_pinterest.md +++ b/docs/resources/source_pinterest.md @@ -27,26 +27,26 @@ resource "airbyte_source_pinterest" "my_source_pinterest" { ] click_window_days = "7" columns = [ - "CAMPAIGN_DAILY_SPEND_CAP", + "TOTAL_CLICK_CHECKOUT_VALUE_IN_MICRO_DOLLAR", ] conversion_report_time = "TIME_OF_CONVERSION" - engagement_window_days = "30" - granularity = "MONTH" - level = "PRODUCT_GROUP_TARGETING" - name = "Dr. Fred Grady" + engagement_window_days = "60" + granularity = "HOUR" + level = "KEYWORD" + name = "Stanley Green" start_date = "2022-07-28" - view_window_days = "1" + view_window_days = "30" }, ] start_date = "2022-07-28" status = [ - "ACTIVE", + "PAUSED", ] } - definition_id = "c879583a-59a8-4255-b101-40178456a4c1" - name = "Bessie Emard" + definition_id = "dc5f9765-35f7-43a4-9535-fff5d1d34f0c" + name = "Conrad Hane" secret_id = "...my_secret_id..." - workspace_id = "2c277a8e-2388-4fd0-920f-62c51a2676b4" + workspace_id = "6a3a161d-c53f-4641-88ac-b8b41d5bf94a" } ``` @@ -84,8 +84,8 @@ Optional: Required: -- `client_id` (String) The Client ID of your OAuth application -- `client_secret` (String) The Client Secret of your OAuth application. +- `client_id` (String, Sensitive) The Client ID of your OAuth application +- `client_secret` (String, Sensitive) The Client Secret of your OAuth application. - `refresh_token` (String, Sensitive) Refresh Token to obtain new Access Token, when it's expired. diff --git a/docs/resources/source_pipedrive.md b/docs/resources/source_pipedrive.md index e9dbfd070..6aa6b57c6 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 = "d9282ad1-9d25-4d52-93fa-02ef008f118d" - name = "Peter Hilll" + definition_id = "01397d3d-fd90-4aff-a604-97cb974a7d80" + name = "Kathleen Schiller" secret_id = "...my_secret_id..." - workspace_id = "f724d1e0-e7e7-408b-9f81-5bf9f1370c28" + workspace_id = "4b7daa2d-7b02-4155-8aad-a4df01cf56ee" } ``` diff --git a/docs/resources/source_planhat.md b/docs/resources/source_planhat.md new file mode 100644 index 000000000..accb49352 --- /dev/null +++ b/docs/resources/source_planhat.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_planhat Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourcePlanhat Resource +--- + +# airbyte_source_planhat (Resource) + +SourcePlanhat Resource + +## Example Usage + +```terraform +resource "airbyte_source_planhat" "my_source_planhat" { + configuration = { + api_token = "...my_api_token..." + } + definition_id = "294adbc5-bd34-4078-9cf0-b8d2c0412443" + name = "Vivian Kassulke" + secret_id = "...my_secret_id..." + workspace_id = "d64cd2bc-f08a-4635-97a8-c386ceccfae9" +} +``` + + +## 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_token` (String, Sensitive) Your Planhat API Access Token + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_planhat.my_airbyte_source_planhat "" +``` diff --git a/docs/resources/source_pocket.md b/docs/resources/source_pocket.md index fa9aeaf10..fa463dd36 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 = "image" - detail_type = "simple" + content_type = "article" + detail_type = "complete" domain = "...my_domain..." - favorite = false + favorite = true search = "...my_search..." since = "2022-10-20 14:14:14" - sort = "title" - state = "all" + sort = "site" + state = "unread" tag = "...my_tag..." } - definition_id = "25e4ee4a-51ab-4e7b-be4e-8da5f867ba5c" - name = "Felix Swaniawski" + definition_id = "f8c4b4f8-d4f6-4833-a1f3-303ab045c891" + name = "Ramiro Mayer" secret_id = "...my_secret_id..." - workspace_id = "8a2cc404-7b12-40c3-acc1-558e983f33bb" + workspace_id = "dcb6cc1c-d73d-42cf-8013-6d5989e7dbac" } ``` diff --git a/docs/resources/source_pokeapi.md b/docs/resources/source_pokeapi.md index b34580a3f..ef8fc7b3a 100644 --- a/docs/resources/source_pokeapi.md +++ b/docs/resources/source_pokeapi.md @@ -17,10 +17,10 @@ resource "airbyte_source_pokeapi" "my_source_pokeapi" { configuration = { pokemon_name = "snorlax" } - definition_id = "2f8e75b9-5ee5-4dd1-9c77-a4e3aa4d1c74" - name = "Gregg Smitham" + definition_id = "4005a630-7276-4c58-b5da-21f73986a71e" + name = "Stuart Corwin" secret_id = "...my_secret_id..." - workspace_id = "939b8b6b-2c09-420a-a8be-08607521b21e" + workspace_id = "b81056bc-977a-43bf-8dff-8dd835d80427" } ``` diff --git a/docs/resources/source_polygon_stock_api.md b/docs/resources/source_polygon_stock_api.md index 15ceacc6d..4bdfb97d2 100644 --- a/docs/resources/source_polygon_stock_api.md +++ b/docs/resources/source_polygon_stock_api.md @@ -22,13 +22,13 @@ resource "airbyte_source_polygon_stock_api" "my_source_polygonstockapi" { multiplier = 2 sort = "desc" start_date = "2020-10-14" - stocks_ticker = "MSFT" + stocks_ticker = "IBM" timespan = "day" } - definition_id = "1ee12f8a-7db0-498a-b412-66a87d389094" - name = "Emanuel Paucek" + definition_id = "23c8e5e2-59fe-44ef-a493-875b5a324c61" + name = "Tracey Paucek" secret_id = "...my_secret_id..." - workspace_id = "bbea9f5a-35d1-4bd0-bb63-21f6b4ca6472" + workspace_id = "bad07307-82c3-4e82-a825-101e3e25c699" } ``` @@ -56,7 +56,7 @@ resource "airbyte_source_polygon_stock_api" "my_source_polygonstockapi" { Required: -- `api_key` (String) Your API ACCESS Key +- `api_key` (String, Sensitive) Your API ACCESS Key - `end_date` (String) The target date for the aggregate window. - `multiplier` (Number) The size of the timespan multiplier. - `start_date` (String) The beginning date for the aggregate window. diff --git a/docs/resources/source_postgres.md b/docs/resources/source_postgres.md index 9b3fd1158..d374afe3c 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 = "Era_Wisoky" + username = "Kaylee22" } - definition_id = "ec8fedb8-fc35-4367-bfee-523e36b74e8f" - name = "Lula Lemke" + definition_id = "88851ec0-6fd3-4b8c-864e-95a7a3692db0" + name = "Cristina Franey" secret_id = "...my_secret_id..." - workspace_id = "d76b02a3-d797-4c2f-9023-950717b206b8" + workspace_id = "99dcbdae-34af-4cb0-a318-40729444d2b8" } ``` @@ -106,8 +106,9 @@ Required: Optional: - `additional_properties` (String) Parsed as JSON. -- `heartbeat_action_query` (String) Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the setup guide for how and when to configure this setting. Default: "" -- `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 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about initial waiting time. Default: 1200 +- `heartbeat_action_query` (String) Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the setup guide for how and when to configure this setting. Default: "" +- `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 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about initial waiting time. Default: 1200 - `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" - `lsn_commit_behaviour` (String) Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync. must be one of ["While reading Data", "After loading Data in the destination"]; Default: "After loading Data in the destination" - `plugin` (String) A logical decoding plugin installed on the PostgreSQL server. must be one of ["pgoutput"]; Default: "pgoutput" @@ -168,12 +169,12 @@ Optional: Required: -- `ca_certificate` (String) CA certificate +- `ca_certificate` (String, Sensitive) CA certificate Optional: - `additional_properties` (String) Parsed as JSON. -- `client_certificate` (String) Client certificate +- `client_certificate` (String, Sensitive) Client certificate - `client_key` (String, Sensitive) Client key - `client_key_password` (String, Sensitive) Password for keystorage. If you do not add it - the password will be generated automatically. @@ -183,12 +184,12 @@ Optional: Required: -- `ca_certificate` (String) CA certificate +- `ca_certificate` (String, Sensitive) CA certificate Optional: - `additional_properties` (String) Parsed as JSON. -- `client_certificate` (String) Client certificate +- `client_certificate` (String, Sensitive) Client certificate - `client_key` (String, Sensitive) Client key - `client_key_password` (String, Sensitive) Password for keystorage. If you do not add it - the password will be generated automatically. diff --git a/docs/resources/source_posthog.md b/docs/resources/source_posthog.md index 291fc3eed..2be678e4d 100644 --- a/docs/resources/source_posthog.md +++ b/docs/resources/source_posthog.md @@ -17,13 +17,13 @@ resource "airbyte_source_posthog" "my_source_posthog" { configuration = { api_key = "...my_api_key..." base_url = "https://posthog.example.com" - events_time_step = 5 + events_time_step = 10 start_date = "2021-01-01T00:00:00Z" } - definition_id = "b48bf3f0-e963-41eb-8afa-a2ee7a1e0cb6" - name = "Ms. Jenny Konopelski" + definition_id = "aababee9-d637-48e7-a43c-021bc073abf4" + name = "Edmond Thiel" secret_id = "...my_secret_id..." - workspace_id = "b91e1261-00f0-49eb-b06b-b016ea0ac6bf" + workspace_id = "414e5a60-3e6b-43fc-a03d-92cb14510264" } ``` diff --git a/docs/resources/source_postmarkapp.md b/docs/resources/source_postmarkapp.md index 9a9806930..0678b0f9f 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 = "ae2b40c1-73d4-4d61-933d-db2a95937ced" - name = "Sandra Hodkiewicz" + definition_id = "179a4030-1bb8-47b1-ba43-b1ead703a4ee" + name = "Russell Ernser" secret_id = "...my_secret_id..." - workspace_id = "7b59a4e7-8152-4cbd-a66e-4c12d05e7f58" + workspace_id = "553942b5-8b6d-40d2-8932-d7e88d8619ec" } ``` @@ -49,8 +49,8 @@ resource "airbyte_source_postmarkapp" "my_source_postmarkapp" { Required: -- `x_postmark_account_token` (String) API Key for account -- `x_postmark_server_token` (String) API Key for server +- `x_postmark_account_token` (String, Sensitive) API Key for account +- `x_postmark_server_token` (String, Sensitive) API Key for server ## Import diff --git a/docs/resources/source_prestashop.md b/docs/resources/source_prestashop.md index 31ce18a6b..2885d120e 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 = "a0625cbf-f5b3-41f2-b930-4d3ebf32902d" - name = "Hector Breitenberg Jr." + definition_id = "811786e4-4e52-472c-a097-1d544a65a7d2" + name = "Miss Herbert Kerluke" secret_id = "...my_secret_id..." - workspace_id = "be882924-ee80-4aa2-980d-84713ebef014" + workspace_id = "4ec6467c-968c-4ce9-b394-d8a35db32f90" } ``` diff --git a/docs/resources/source_pypi.md b/docs/resources/source_pypi.md index 2dfd1cb3a..783bd3f1c 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 = "7a4fe630-3928-48c9-9001-e515b2e74052" - name = "Sandy Homenick" + definition_id = "0f8cfe73-78a5-4877-8229-72e237ec3d2a" + name = "Bernard Cartwright" secret_id = "...my_secret_id..." - workspace_id = "ad65e8ae-1d21-47c0-bcbe-7d2d3433ea86" + workspace_id = "d2efe5e3-4c93-41e7-a72e-f9ee22c4d080" } ``` diff --git a/docs/resources/source_qualaroo.md b/docs/resources/source_qualaroo.md index 62ba6050c..564e5e91d 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 = "2799cad5-c4b8-4334-a9d3-410e395a0aac" - name = "Beatrice Stamm" + definition_id = "cde039dd-5e8c-4577-8ddd-10910de87dfe" + name = "Elizabeth Bruen" secret_id = "...my_secret_id..." - workspace_id = "d0978821-4279-492f-a5a7-105f2e570ad3" + workspace_id = "bd0d10cf-57eb-4672-b8aa-55d63fb2a63d" } ``` diff --git a/docs/resources/source_railz.md b/docs/resources/source_railz.md index e668b4286..7f14dbfcf 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 = "72ede129-9d48-4414-90fd-6e7ec48816b0" - name = "Reginald Dibbert" + definition_id = "a0917a61-51fa-4c3e-8ec6-9babb338974c" + name = "Paul Spencer" secret_id = "...my_secret_id..." - workspace_id = "975147c3-e6c8-4bd1-8cca-d3b1c4065293" + workspace_id = "9af2319a-6f88-498d-b4d7-cd0670b63c63" } ``` diff --git a/docs/resources/source_recharge.md b/docs/resources/source_recharge.md index 26e4d4eb1..0a42b529d 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 = "648ca783-b586-4523-84bd-b821f9c8efa4" - name = "Christie Schiller IV" + definition_id = "1f6c544c-20e7-43f2-bdc4-6e62d66e7277" + name = "Drew Herman" secret_id = "...my_secret_id..." - workspace_id = "c50e6f12-11e1-4fcb-a6b9-0cc0df941919" + workspace_id = "92d16e1d-cb06-4fc1-b7a1-71f7c1d8bfdd" } ``` diff --git a/docs/resources/source_recreation.md b/docs/resources/source_recreation.md index 0f57ba990..f9a2f2b3f 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 = "892a209c-167a-4f7b-834c-463b838dc5f9" - name = "Vanessa Hammes" + definition_id = "b09b9a90-3f60-4eb4-a54b-7cf533c55d68" + name = "Lloyd Kertzmann DVM" secret_id = "...my_secret_id..." - workspace_id = "f73a4553-5fff-45d1-934f-0cce5486a3a1" + workspace_id = "7b10c6dd-1e62-4eb5-bcf3-65dccaec2ce4" } ``` diff --git a/docs/resources/source_recruitee.md b/docs/resources/source_recruitee.md index 730e7992a..497a70e32 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 = 4 + company_id = 0 } - definition_id = "1dc53f64-148a-4cb8-b41d-5bf94a01397d" - name = "Muriel Wunsch" + definition_id = "cbe1d2ec-d015-401d-92f6-c56d3cf89e69" + name = "Jean Rutherford DDS" secret_id = "...my_secret_id..." - workspace_id = "0aff6604-97cb-4974-a7d8-001cbe4b7daa" + workspace_id = "7a6ecf05-091d-4908-99d0-017533842973" } ``` diff --git a/docs/resources/source_recurly.md b/docs/resources/source_recurly.md index cfa95a851..d721eb234 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 = "2d7b0215-50aa-4da4-9f01-cf56ee294adb" - name = "Pedro Rodriguez" + definition_id = "372c40ec-9291-4353-b954-9bcc34d389bb" + name = "Corey Sporer" secret_id = "...my_secret_id..." - workspace_id = "40789cf0-b8d2-4c04-9244-36569fd64cd2" + workspace_id = "f5b1164e-1dc4-4a01-944f-b97610a4d0de" } ``` diff --git a/docs/resources/source_reddit.md b/docs/resources/source_reddit.md new file mode 100644 index 000000000..505ad8fce --- /dev/null +++ b/docs/resources/source_reddit.md @@ -0,0 +1,76 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_reddit Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceReddit Resource +--- + +# airbyte_source_reddit (Resource) + +SourceReddit Resource + +## Example Usage + +```terraform +resource "airbyte_source_reddit" "my_source_reddit" { + configuration = { + api_key = "...my_api_key..." + exact = false + include_over_18 = false + limit = 88.51 + query = "...my_query..." + start_date = "2021-09-11T03:28:56.693Z" + subreddits = [ + "{ \"see\": \"documentation\" }", + ] + } + definition_id = "4a70c9cb-870e-4b98-850c-39e7450657bf" + name = "Dennis Rutherford" + secret_id = "...my_secret_id..." + workspace_id = "db2aae6c-20ac-49c1-9db3-e1c883c55acc" +} +``` + + +## 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) +- `start_date` (String) + +Optional: + +- `exact` (Boolean) Specifies exact keyword and reduces distractions +- `include_over_18` (Boolean) Includes mature content. Default: false +- `limit` (Number) Max records per page limit. Default: "1000" +- `query` (String) Specifies the query for searching in reddits and subreddits. Default: "airbyte" +- `subreddits` (List of String) Subreddits for exploration + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_reddit.my_airbyte_source_reddit "" +``` diff --git a/docs/resources/source_redshift.md b/docs/resources/source_redshift.md index b07263e80..9fb2b3e79 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 = "Ralph52" + username = "Garnett44" } - definition_id = "a635d7a8-c386-4cec-8fae-93f7f0f8c4b4" - name = "Ivan Stanton" + definition_id = "529a15c3-6062-4a63-b571-6d2b265f2af5" + name = "Faith Schmidt" secret_id = "...my_secret_id..." - workspace_id = "6833e1f3-303a-4b04-9c89-1fe9c8dcb6cc" + workspace_id = "bdd581ac-6487-4876-bcad-615bcace687b" } ``` diff --git a/docs/resources/source_retently.md b/docs/resources/source_retently.md index 7c799d94a..adce28379 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 = "1cd73d2c-f401-436d-9989-e7dbace4005a" - name = "Sheila Bahringer" + definition_id = "33710669-86a7-4b02-bd25-c7727b363542" + name = "Eric Sporer" secret_id = "...my_secret_id..." - workspace_id = "76c58b5d-a21f-4739-86a7-1e992c2b8105" + workspace_id = "7f0bc649-fe5b-408c-82dc-40ca1ab76639" } ``` @@ -71,7 +71,7 @@ Optional: Required: - `client_id` (String) The Client ID of your Retently developer application. -- `client_secret` (String) The Client Secret of your Retently developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Retently developer application. - `refresh_token` (String, Sensitive) Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires. Optional: diff --git a/docs/resources/source_rki_covid.md b/docs/resources/source_rki_covid.md index 30a1d56de..a1c80bcef 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 = "6bc977a3-bf4d-4ff8-9d83-5d80427d23a4" - name = "Gerald Stoltenberg" + definition_id = "716f1b83-31df-4025-a154-586c7cdfb558" + name = "Wallace Kuhlman V" secret_id = "...my_secret_id..." - workspace_id = "723c8e5e-259f-4e4e-b649-3875b5a324c6" + workspace_id = "d3d1fcf2-b675-4511-890e-c6c18f2017e8" } ``` diff --git a/docs/resources/source_rss.md b/docs/resources/source_rss.md index ec179c4f0..0ee1a3950 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 = "128aabba-d073-4078-ac3e-822825101e3e" - name = "Joann Runolfsson" + definition_id = "8b7a8364-f95e-484e-bb6a-9353261882dc" + name = "Sophie O'Conner" secret_id = "...my_secret_id..." - workspace_id = "948d0388-851e-4c06-bd3b-8cc64e95a7a3" + workspace_id = "7e2f3a67-4484-48ac-ab04-beae9e175304" } ``` diff --git a/docs/resources/source_s3.md b/docs/resources/source_s3.md index d063526e6..e5e3d01c8 100644 --- a/docs/resources/source_s3.md +++ b/docs/resources/source_s3.md @@ -23,7 +23,7 @@ resource "airbyte_source_s3" "my_source_s3" { format = { avro = {} } - path_pattern = "myFolder/myTableFiles/*.csv|myFolder/myOtherTableFiles/*.csv" + path_pattern = "**" provider = { aws_access_key_id = "...my_aws_access_key_id..." aws_secret_access_key = "...my_aws_secret_access_key..." @@ -43,25 +43,26 @@ resource "airbyte_source_s3" "my_source_s3" { days_to_sync_if_history_is_full = 4 format = { avro_format = { - double_as_string = true + double_as_string = false } } globs = [ "...", ] - input_schema = "...my_input_schema..." - legacy_prefix = "...my_legacy_prefix..." - name = "Pam Goldner" - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Wait for Discover" + input_schema = "...my_input_schema..." + legacy_prefix = "...my_legacy_prefix..." + name = "Mr. Gladys Metz" + primary_key = "...my_primary_key..." + recent_n_files_to_read_for_schema_discovery = 6 + schemaless = true + validation_policy = "Wait for Discover" }, ] } - definition_id = "bdae34af-cb06-4318-8072-9444d2b8965c" - name = "Julius Rau" + definition_id = "9df1af8f-5013-4d5d-8cf4-03b2856e98a6" + name = "Herman Bartoletti Jr." secret_id = "...my_secret_id..." - workspace_id = "ee9d6378-e724-43c0-a1bc-073abf4dfebd" + workspace_id = "07e33047-d953-458a-9681-9d2abec21d7e" } ``` @@ -121,7 +122,8 @@ Optional: - `globs` (List of String) The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here. - `input_schema` (String) The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. - `legacy_prefix` (String) The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. -- `primary_key` (String, Sensitive) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `primary_key` (String) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `recent_n_files_to_read_for_schema_discovery` (Number) The number of resent files which will be used to discover the schema for this stream. - `schemaless` (Boolean) When enabled, syncs will not validate or structure records against the stream's schema. Default: false - `validation_policy` (String) The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. must be one of ["Emit Record", "Skip Record", "Wait for Discover"]; Default: "Emit Record" @@ -132,12 +134,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.parquet_format` +### Nested Schema for `configuration.streams.format.unstructured_document_format` Optional: @@ -145,7 +147,7 @@ Optional: -### Nested Schema for `configuration.streams.format.parquet_format` +### Nested Schema for `configuration.streams.format.unstructured_document_format` Optional: @@ -154,7 +156,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--parquet_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--unstructured_document_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 +166,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.parquet_format.header_definition` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition` Optional: -- `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)) +- `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)) - -### 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` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` Required: @@ -191,38 +193,38 @@ Required: - -### 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` + +### Nested Schema for `configuration.streams.format.unstructured_document_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--parquet_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 + - -### 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` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.local` -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 e3e391fb6..054de2244 100644 --- a/docs/resources/source_salesforce.md +++ b/docs/resources/source_salesforce.md @@ -21,18 +21,18 @@ resource "airbyte_source_salesforce" "my_source_salesforce" { is_sandbox = false refresh_token = "...my_refresh_token..." start_date = "2021-07-25" - stream_slice_step = "P1M" + stream_slice_step = "P1Y" streams_criteria = [ { - criteria = "exacts" + criteria = "not contains" value = "...my_value..." }, ] } - definition_id = "03e6b3fc-a03d-492c-b145-10264179a403" - name = "Jean Prosacco" + definition_id = "3d512342-f997-4d05-9d38-a2e5fcf99c41" + name = "Jessie Howe" secret_id = "...my_secret_id..." - workspace_id = "7b13a43b-1ead-4703-a4ee-b23fe553942b" + workspace_id = "0cbc1b99-ee1e-4960-9660-5b0d51b3114e" } ``` @@ -61,7 +61,7 @@ resource "airbyte_source_salesforce" "my_source_salesforce" { Required: - `client_id` (String) Enter your Salesforce developer application's Client ID -- `client_secret` (String) Enter your Salesforce developer application's Client secret +- `client_secret` (String, Sensitive) Enter your Salesforce developer application's Client secret - `refresh_token` (String, Sensitive) Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account. Optional: diff --git a/docs/resources/source_salesloft.md b/docs/resources/source_salesloft.md index 4719fc26f..bdedebc01 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 = "b6d0d209-32d7-4e88-9861-9ec39811786e" - name = "Darlene Vandervort" + definition_id = "d57541c3-612b-40e8-88cf-11a0d259943d" + name = "Shannon Heller" secret_id = "...my_secret_id..." - workspace_id = "72c20971-d544-4a65-a7d2-b4609d4ec646" + workspace_id = "9e475abf-fba2-4c1e-bb69-08ecd761f19b" } ``` @@ -79,9 +79,9 @@ Required: - `access_token` (String, Sensitive) Access Token for making authenticated requests. - `client_id` (String) The Client ID of your Salesloft developer application. -- `client_secret` (String) The Client Secret of your Salesloft developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Salesloft developer application. - `refresh_token` (String, Sensitive) The token for obtaining a new access token. -- `token_expiry_date` (String, Sensitive) The date-time when the access token should be refreshed. +- `token_expiry_date` (String) The date-time when the access token should be refreshed. ## Import diff --git a/docs/resources/source_sap_fieldglass.md b/docs/resources/source_sap_fieldglass.md index 6a2ef1e56..978c28c42 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 = "7c968cce-9339-44d8-a35d-b32f900f8cfe" - name = "Ethel Kulas" + definition_id = "60aa0804-c971-4e60-a35d-c09fadad73b7" + name = "Miss Taylor Cassin" secret_id = "...my_secret_id..." - workspace_id = "58770229-72e2-437e-83d2-ab4198d2efe5" + workspace_id = "8acfdc6f-b504-4a12-b772-3cbf0223ae82" } ``` diff --git a/docs/resources/source_savvycal.md b/docs/resources/source_savvycal.md new file mode 100644 index 000000000..2b5753d5c --- /dev/null +++ b/docs/resources/source_savvycal.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_savvycal Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceSavvycal Resource +--- + +# airbyte_source_savvycal (Resource) + +SourceSavvycal Resource + +## Example Usage + +```terraform +resource "airbyte_source_savvycal" "my_source_savvycal" { + configuration = { + api_key = "...my_api_key..." + } + definition_id = "2e5327d8-cbc0-4547-9c93-d7d7628c4781" + name = "Sally Lockman" + secret_id = "...my_secret_id..." + workspace_id = "6f537d9d-fc7f-4458-965e-7155c9f06b54" +} +``` + + +## 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) Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private key. https://savvycal.com/developers + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_savvycal.my_airbyte_source_savvycal "" +``` diff --git a/docs/resources/source_scryfall.md b/docs/resources/source_scryfall.md new file mode 100644 index 000000000..aa1940718 --- /dev/null +++ b/docs/resources/source_scryfall.md @@ -0,0 +1,53 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_scryfall Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceScryfall Resource +--- + +# airbyte_source_scryfall (Resource) + +SourceScryfall Resource + +## Example Usage + +```terraform +resource "airbyte_source_scryfall" "my_source_scryfall" { + configuration = {} + definition_id = "82c9eb77-003d-4033-bf10-a64369e4ee32" + name = "Clark Reichel" + secret_id = "...my_secret_id..." + workspace_id = "52da6128-f243-46a1-a2e3-949c8198a6bf" +} +``` + + +## 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` + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_scryfall.my_airbyte_source_scryfall "" +``` diff --git a/docs/resources/source_secoda.md b/docs/resources/source_secoda.md index 32f2066c5..f7e585266 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 = "e34c931e-7a72-4ef9-ae22-c4d080cde039" - name = "Marcos Hilll" + definition_id = "6f1cbdb3-5a96-4cd0-a48f-1e4b30469b6c" + name = "George Ritchie I" secret_id = "...my_secret_id..." - workspace_id = "c5778ddd-1091-40de-87df-e701edbd0d10" + workspace_id = "cf017cd9-7836-43f1-be7e-9b4aabfc5ff7" } ``` diff --git a/docs/resources/source_sendgrid.md b/docs/resources/source_sendgrid.md index 90710cffc..37d6aca92 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 = "2020-02-29T00:35:24.807Z" + start_date = "2022-09-11T05:44:36.588Z" } - definition_id = "57eb672b-8aa5-45d6-bfb2-a63da0917a61" - name = "Christine Weimann" + definition_id = "6c36bb73-37bf-40be-8a93-a8ae78e1e537" + name = "Julius Kemmer" secret_id = "...my_secret_id..." - workspace_id = "3e8ec69b-abb3-4389-b4cd-0d539af2319a" + workspace_id = "6d5dc1e2-50f8-40fb-8595-c3777bccfe70" } ``` diff --git a/docs/resources/source_sendinblue.md b/docs/resources/source_sendinblue.md index 6d3729a1e..71aeb6a5f 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 = "6f8898d7-4d7c-4d06-b0b6-3c633751f6c5" - name = "Debbie Sanford PhD" + definition_id = "cf147e29-3c7a-44b2-97bb-c290ef00ad53" + name = "Ruby Davis" secret_id = "...my_secret_id..." - workspace_id = "73f23dc4-6e62-4d66-a727-78d5db92d16e" + workspace_id = "fe50a2e7-cfe6-4f34-acc6-5c56f5fa6778" } ``` diff --git a/docs/resources/source_senseforce.md b/docs/resources/source_senseforce.md index 068354cb3..21ae9b3de 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 = 1 + slice_range = 360 start_date = "2017-01-25" } - definition_id = "06fc1f7a-171f-47c1-98bf-ddb09b9a903f" - name = "Brenda Toy" + definition_id = "91c615d1-2804-40ba-83eb-3c0afcc3c8fa" + name = "Kellie Olson" secret_id = "...my_secret_id..." - workspace_id = "a54b7cf5-33c5-45d6-8a56-e1f7b10c6dd1" + workspace_id = "bc8e3e7d-b5a3-4e44-afc1-e0fa91f7ef5f" } ``` diff --git a/docs/resources/source_sentry.md b/docs/resources/source_sentry.md index 04b3186de..b46033a0e 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 = "unimportant-glacier.biz" + hostname = "firsthand-hospice.com" organization = "...my_organization..." project = "...my_project..." } - definition_id = "eb5fcf36-5dcc-4aec-ace4-1cbe1d2ecd01" - name = "Angela Boehm" + definition_id = "d7c84461-977a-41b2-b1a5-b009f29606a3" + name = "Estelle Murray" secret_id = "...my_secret_id..." - workspace_id = "2f6c56d3-cf89-4e69-a1ce-0c7a6ecf0509" + workspace_id = "9592aaeb-21d8-49b3-9b55-8d4aa1770fe2" } ``` diff --git a/docs/resources/source_sftp.md b/docs/resources/source_sftp.md index def71e9dd..4a651e9b7 100644 --- a/docs/resources/source_sftp.md +++ b/docs/resources/source_sftp.md @@ -27,10 +27,10 @@ resource "airbyte_source_sftp" "my_source_sftp" { port = 22 user = "...my_user..." } - definition_id = "08d9d001-7533-4842-9733-72c40ec92913" - name = "Gladys Zemlak" + definition_id = "b03b315a-f19b-4c4a-9418-c27e2e49fbe8" + name = "Stella Hammes" secret_id = "...my_secret_id..." - workspace_id = "49bcc34d-389b-4bf5-924f-5b1164e1dc4a" + workspace_id = "48e30ccc-b1d3-49dd-bc64-9b7a58a56364" } ``` diff --git a/docs/resources/source_sftp_bulk.md b/docs/resources/source_sftp_bulk.md index 8546456c0..208635ddb 100644 --- a/docs/resources/source_sftp_bulk.md +++ b/docs/resources/source_sftp_bulk.md @@ -29,26 +29,27 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { days_to_sync_if_history_is_full = 2 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] - input_schema = "...my_input_schema..." - legacy_prefix = "...my_legacy_prefix..." - name = "Rene Kunze Jr." - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Emit Record" + input_schema = "...my_input_schema..." + legacy_prefix = "...my_legacy_prefix..." + name = "Tony Collier" + primary_key = "...my_primary_key..." + recent_n_files_to_read_for_schema_discovery = 4 + schemaless = true + validation_policy = "Wait for Discover" }, ] - username = "Rose_Abshire56" + username = "Santos_Leuschke" } - definition_id = "1eaa4a70-c9cb-4870-ab98-050c39e74506" - name = "Marlene Reichel" + definition_id = "7e494b9e-5830-4e9e-bbf4-12cdcae9f85c" + name = "Maria Bernhard" secret_id = "...my_secret_id..." - workspace_id = "1cb4db2a-ae6c-420a-89c1-9db3e1c883c5" + workspace_id = "80526f88-56cd-4f3f-9efb-e1999214f3ff" } ``` @@ -109,7 +110,7 @@ Required: Required: -- `private_key` (String, Sensitive) The Private key +- `private_key` (String) The Private key @@ -127,7 +128,8 @@ Optional: - `globs` (List of String) The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here. - `input_schema` (String) The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. - `legacy_prefix` (String) The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. -- `primary_key` (String, Sensitive) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `primary_key` (String) The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. +- `recent_n_files_to_read_for_schema_discovery` (Number) The number of resent files which will be used to discover the schema for this stream. - `schemaless` (Boolean) When enabled, syncs will not validate or structure records against the stream's schema. Default: false - `validation_policy` (String) The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. must be one of ["Emit Record", "Skip Record", "Wait for Discover"]; Default: "Emit Record" @@ -138,12 +140,13 @@ 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)) +- `excel_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--excel_format)) - `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.parquet_format` +### Nested Schema for `configuration.streams.format.unstructured_document_format` Optional: @@ -151,7 +154,7 @@ Optional: -### Nested Schema for `configuration.streams.format.parquet_format` +### Nested Schema for `configuration.streams.format.unstructured_document_format` Optional: @@ -160,7 +163,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--parquet_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--unstructured_document_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. @@ -170,25 +173,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.parquet_format.header_definition` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition` Optional: -- `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)) +- `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)) - -### 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` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` Required: @@ -197,59 +200,60 @@ Required: - -### Nested Schema for `configuration.streams.format.parquet_format` + +### Nested Schema for `configuration.streams.format.unstructured_document_format` + + + +### Nested Schema for `configuration.streams.format.unstructured_document_format` + + + +### Nested Schema for `configuration.streams.format.unstructured_document_format` Optional: -- `processing` (Attributes) Processing configuration (see [below for nested schema](#nestedatt--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 + + + +### 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.parquet_format.processing` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing` 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)) -- `via_api` (Attributes) Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--processing--via_api)) +- `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)) +- `via_api` (Attributes) Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing--via_api)) - -### Nested Schema for `configuration.streams.format.parquet_format.processing.via_api` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.via_api` - -### Nested Schema for `configuration.streams.format.parquet_format.processing.via_api` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.via_api` Optional: - `api_key` (String, Sensitive) The API key to use matching the environment. Default: "" - `api_url` (String) The URL of the unstructured API to use. Default: "https://api.unstructured.io" -- `parameters` (Attributes List) List of parameters send to the API (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--processing--via_api--parameters)) +- `parameters` (Attributes List) List of parameters send to the API (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing--via_api--parameters)) - -### Nested Schema for `configuration.streams.format.parquet_format.processing.via_api.parameters` + +### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.via_api.parameters` Required: - `name` (String) The name of the unstructured API parameter to use - `value` (String) The value of the parameter - - - - - -### Nested Schema for `configuration.streams.format.parquet_format` - - - -### 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 - ## Import Import is supported using the following syntax: diff --git a/docs/resources/source_shopify.md b/docs/resources/source_shopify.md index 98ab2be11..bd1cbd379 100644 --- a/docs/resources/source_shopify.md +++ b/docs/resources/source_shopify.md @@ -15,20 +15,23 @@ SourceShopify Resource ```terraform resource "airbyte_source_shopify" "my_source_shopify" { configuration = { - bulk_window_in_days = 3 + bulk_window_in_days = 7 credentials = { api_password = { api_password = "...my_api_password..." } } - fetch_transactions_user_id = false - shop = "my-store.myshopify.com" - start_date = "2020-04-28" + fetch_transactions_user_id = true + job_checkpoint_interval = 6 + job_product_variants_include_pres_prices = false + job_termination_threshold = 8 + shop = "my-store.myshopify.com" + start_date = "2020-08-16" } - definition_id = "5c37529a-15c3-4606-aa63-f5716d2b265f" - name = "Marguerite Will" + definition_id = "06400b7b-58d1-43a2-8cf2-b1ade2f4984b" + name = "Ed Baumbach MD" secret_id = "...my_secret_id..." - workspace_id = "fce7bdd5-81ac-4648-b876-fcad615bcace" + workspace_id = "3d2b89b2-6a88-438c-b8d2-27f318d42406" } ``` @@ -63,6 +66,9 @@ 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_checkpoint_interval` (Number) The threshold, after which the single BULK Job should be checkpointed. Default: 100000 +- `job_product_variants_include_pres_prices` (Boolean) If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). Default: true +- `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: 7200 - `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" @@ -87,8 +93,8 @@ Required: Optional: - `access_token` (String, Sensitive) The Access Token for making authenticated requests. -- `client_id` (String) The Client ID of the Shopify developer application. -- `client_secret` (String) The Client Secret of the Shopify developer application. +- `client_id` (String, Sensitive) The Client ID of the Shopify developer application. +- `client_secret` (String, Sensitive) The Client Secret of the Shopify developer application. ## Import diff --git a/docs/resources/source_shortio.md b/docs/resources/source_shortio.md index 6ba05a12e..123536b7d 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 = "687b3371-0669-486a-bb02-fd25c7727b36" - name = "Yvonne Glover" + definition_id = "54f47827-40a2-4b5a-8624-28ebc5c77ead" + name = "Kenneth Rutherford" secret_id = "...my_secret_id..." - workspace_id = "1d3e7f0b-c649-4fe5-b08c-82dc40ca1ab7" + workspace_id = "e16ebe85-fa64-4aee-8d2b-de48eefceb9e" } ``` @@ -50,9 +50,9 @@ resource "airbyte_source_shortio" "my_source_shortio" { Required: -- `domain_id` (String) +- `domain_id` (String, Sensitive) - `secret_key` (String, Sensitive) Short.io Secret Key -- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. +- `start_date` (String, Sensitive) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. ## Import diff --git a/docs/resources/source_slack.md b/docs/resources/source_slack.md index 2900aac6d..bd2046ea2 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 = false - join_channels = true + include_private_channels = true + join_channels = false lookback_window = 7 start_date = "2017-01-25T00:00:00Z" } - definition_id = "6f1b8331-df02-45a1-9458-6c7cdfb558f8" - name = "Kay Bauch" + definition_id = "894bdd98-fe3f-492c-86a9-aa72702875ab" + name = "Everett Leuschke" secret_id = "...my_secret_id..." - workspace_id = "3d1fcf2b-6755-4110-90ec-6c18f2017e88" + workspace_id = "98d79666-080f-43ec-ae3c-b491ea7992cd" } ``` @@ -92,7 +92,7 @@ Required: - `access_token` (String, Sensitive) Slack access_token. See our docs if you need help generating the token. - `client_id` (String) Slack client_id. See our docs if you need help finding this id. -- `client_secret` (String) Slack client_secret. See our docs if you need help finding this secret. +- `client_secret` (String, Sensitive) Slack client_secret. See our docs if you need help finding this secret. ## Import diff --git a/docs/resources/source_smaily.md b/docs/resources/source_smaily.md index fabe12957..ab0e05179 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 = "b7a8364f-95e8-44ef-b6a9-353261882dc6" - name = "Hubert Dickens" + definition_id = "63d3381e-fe3f-47d5-a433-d30ca4aa9f68" + name = "Elena Miller" secret_id = "...my_secret_id..." - workspace_id = "e2f3a674-4848-4ac2-b04b-eae9e1753040" + workspace_id = "345ef318-3cb2-4e52-a86a-dbb57c5cbe7c" } ``` diff --git a/docs/resources/source_smartengage.md b/docs/resources/source_smartengage.md index 481b64b8b..bc27c05d9 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 = "65f64672-3901-4f87-89df-1af8f5013d5d" - name = "Robyn Weimann I" + definition_id = "cff9d072-4747-4a4b-b7eb-205ddb7f1b71" + name = "Belinda Hilll IV" secret_id = "...my_secret_id..." - workspace_id = "b2856e98-a695-40f0-807e-33047d95358a" + workspace_id = "e103643a-6dfd-42a6-8225-b2ac62eb10f1" } ``` diff --git a/docs/resources/source_smartsheets.md b/docs/resources/source_smartsheets.md index b95161931..21b857f95 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 = [ - "sheetversion", + "row_created_by", ] spreadsheet_id = "...my_spreadsheet_id..." start_datetime = "2000-01-01T13:00:00" } - definition_id = "9d2abec2-1d7e-43d2-8dfd-3d512342f997" - name = "Jose Hilpert" + definition_id = "1fb8be04-16cb-449d-a06c-239e7af3ca2c" + name = "Shawn Pfannerstill" secret_id = "...my_secret_id..." - workspace_id = "38a2e5fc-f99c-4418-b6fa-0cbc1b99ee1e" + workspace_id = "92d74588-9040-4904-b267-ce86a322e02b" } ``` @@ -87,10 +87,10 @@ Required: Required: - `access_token` (String, Sensitive) Access Token for making authenticated requests. -- `client_id` (String) The API ID of the SmartSheets developer application. -- `client_secret` (String) The API Secret the SmartSheets developer application. +- `client_id` (String, Sensitive) The API ID of the SmartSheets developer application. +- `client_secret` (String, Sensitive) The API Secret the SmartSheets developer application. - `refresh_token` (String, Sensitive) The key to refresh the expired access_token. -- `token_expiry_date` (String, Sensitive) The date-time when the access token should be refreshed. +- `token_expiry_date` (String) The date-time when the access token should be refreshed. ## Import diff --git a/docs/resources/source_snapchat_marketing.md b/docs/resources/source_snapchat_marketing.md index b4718f3bb..d553ae84e 100644 --- a/docs/resources/source_snapchat_marketing.md +++ b/docs/resources/source_snapchat_marketing.md @@ -15,19 +15,19 @@ SourceSnapchatMarketing Resource ```terraform resource "airbyte_source_snapchat_marketing" "my_source_snapchatmarketing" { configuration = { - action_report_time = "impression" + action_report_time = "conversion" client_id = "...my_client_id..." client_secret = "...my_client_secret..." end_date = "2022-01-30" refresh_token = "...my_refresh_token..." start_date = "2022-01-01" - swipe_up_attribution_window = "7_DAY" - view_attribution_window = "1_HOUR" + swipe_up_attribution_window = "1_DAY" + view_attribution_window = "1_DAY" } - definition_id = "5b0d51b3-114e-49ed-9754-1c3612b0e8c8" - name = "Miss Emilio Botsford PhD" + definition_id = "df5c3592-a5dd-47dd-bd79-7d2eb894fd68" + name = "Lynda Keebler" secret_id = "...my_secret_id..." - workspace_id = "259943df-a52a-49e4-b5ab-ffba2c1e7b69" + workspace_id = "b1b8dbba-eb9b-45c2-a2ee-8b85f41cf2ef" } ``` @@ -55,8 +55,8 @@ resource "airbyte_source_snapchat_marketing" "my_source_snapchatmarketing" { Required: -- `client_id` (String) The Client ID of your Snapchat developer application. -- `client_secret` (String) The Client Secret of your Snapchat developer application. +- `client_id` (String, Sensitive) The Client ID of your Snapchat developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Snapchat developer application. - `refresh_token` (String, Sensitive) Refresh Token to renew the expired Access Token. Optional: diff --git a/docs/resources/source_snowflake.md b/docs/resources/source_snowflake.md index b130b2a19..c065f0a77 100644 --- a/docs/resources/source_snowflake.md +++ b/docs/resources/source_snowflake.md @@ -16,11 +16,10 @@ SourceSnowflake Resource resource "airbyte_source_snowflake" "my_source_snowflake" { configuration = { credentials = { - o_auth20 = { - access_token = "...my_access_token..." - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." - refresh_token = "...my_refresh_token..." + key_pair_authentication = { + private_key = "...my_private_key..." + private_key_password = "...my_private_key_password..." + username = "AIRBYTE_USER" } } database = "AIRBYTE_DATABASE" @@ -30,10 +29,10 @@ resource "airbyte_source_snowflake" "my_source_snowflake" { schema = "AIRBYTE_SCHEMA" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "08ecd761-f19b-460a-a080-4c971e60235d" - name = "Frank Marquardt" + definition_id = "05e9e4de-da30-4dd3-8fb0-aa2fad058413" + name = "Penny Franecki" secret_id = "...my_secret_id..." - workspace_id = "dad73b79-d20b-448a-8fdc-6fb504a12b77" + workspace_id = "3e5de43c-907f-463c-802b-c2f7f5dfb2c2" } ``` @@ -77,16 +76,30 @@ 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` Required: -- `client_id` (String) The Client ID of your Snowflake developer application. -- `client_secret` (String) The Client Secret of your Snowflake developer application. +- `client_id` (String, Sensitive) The Client ID of your Snowflake developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Snowflake developer application. Optional: diff --git a/docs/resources/source_sonar_cloud.md b/docs/resources/source_sonar_cloud.md index b1c55e1af..dc1b2a26c 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 = "f0223ae8-22e5-4327-98cb-c0547dc93d7d" - name = "Katie Deckow" + definition_id = "86915d33-24b4-4819-bf39-3429d3165dd8" + name = "Erika Hills" secret_id = "...my_secret_id..." - workspace_id = "47813582-a6f5-437d-9dfc-7f458565e715" + workspace_id = "c61e20db-5f4b-4b11-860c-3a7ba336248b" } ``` @@ -54,7 +54,7 @@ resource "airbyte_source_sonar_cloud" "my_source_sonarcloud" { Required: -- `component_keys` (List of String, Sensitive) Comma-separated list of component keys. +- `component_keys` (List of String) Comma-separated list of component keys. - `organization` (String) Organization key. See here. - `user_token` (String, Sensitive) Your User Token. See here. The token is case sensitive. diff --git a/docs/resources/source_spacex_api.md b/docs/resources/source_spacex_api.md index ca1a105d4..a755d9f87 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 = "5c9f06b5-482c-49eb-b700-3d0337f10a64" + id = "e45dfad9-324f-46ab-9f83-34526eae71eb" options = "...my_options..." } - definition_id = "369e4ee3-2ccb-44d5-ada6-128f2436a122" - name = "Travis McCullough" + definition_id = "759d7dd0-bf2f-4572-9957-8fbbe9226a95" + name = "Elisa Wunsch" secret_id = "...my_secret_id..." - workspace_id = "c8198a6b-f6f1-4cbd-b35a-96cd0e48f1e4" + workspace_id = "3d12e392-ce90-4b91-a9fb-30db2efb21ef" } ``` diff --git a/docs/resources/source_square.md b/docs/resources/source_square.md index 63cb9c95f..04c2f76d2 100644 --- a/docs/resources/source_square.md +++ b/docs/resources/source_square.md @@ -22,12 +22,12 @@ resource "airbyte_source_square" "my_source_square" { } include_deleted_objects = true is_sandbox = true - start_date = "2022-09-30" + start_date = "2022-03-17" } - definition_id = "69b6ca0b-303c-4f01-bcd9-78363f1be7e9" - name = "Tom O'Keefe" + definition_id = "8bf07f2e-7721-4366-a46f-a9b2db7532b2" + name = "Edmund Reynolds" secret_id = "...my_secret_id..." - workspace_id = "fc5ff714-6c36-4bb7-b37b-f0beca93a8ae" + workspace_id = "5b8d4ad9-bb4c-42d0-8c6c-eb0e4409659d" } ``` @@ -81,8 +81,8 @@ Required: Required: -- `client_id` (String) The Square-issued ID of your application -- `client_secret` (String) The Square-issued application secret for your application +- `client_id` (String, Sensitive) The Square-issued ID of your application +- `client_secret` (String, Sensitive) The Square-issued application secret for your application - `refresh_token` (String, Sensitive) A refresh token generated using the above client ID and secret ## Import diff --git a/docs/resources/source_strava.md b/docs/resources/source_strava.md index cd5a15d22..54aef4b65 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 = "1e537d96-eb6d-45dc-9e25-0f80fbc595c3" - name = "Jackie Krajcik" + definition_id = "ecaf35c1-5b37-479d-be3d-ccb9fd6e1ad7" + name = "Stella Balistreri" secret_id = "...my_secret_id..." - workspace_id = "cfe70cf1-47e2-493c-ba4b-2d7bbc290ef0" + workspace_id = "320ef50a-8ca7-46b0-83ea-280df1804a67" } ``` @@ -54,7 +54,7 @@ Required: - `athlete_id` (Number) The Athlete ID of your Strava developer application. - `client_id` (String) The Client ID of your Strava developer application. -- `client_secret` (String) The Client Secret of your Strava developer application. +- `client_secret` (String, Sensitive) The Client Secret of your Strava developer application. - `refresh_token` (String, Sensitive) The Refresh Token with the activity: read_all permissions. - `start_date` (String) UTC date and time. Any data before this date will not be replicated. diff --git a/docs/resources/source_stripe.md b/docs/resources/source_stripe.md index 356c802a4..c2e75df77 100644 --- a/docs/resources/source_stripe.md +++ b/docs/resources/source_stripe.md @@ -16,17 +16,17 @@ SourceStripe Resource resource "airbyte_source_stripe" "my_source_stripe" { configuration = { account_id = "...my_account_id..." - call_rate_limit = 25 + call_rate_limit = 100 client_secret = "...my_client_secret..." - lookback_window_days = 9 + lookback_window_days = 10 num_workers = 1 slice_range = 10 start_date = "2017-01-25T00:00:00Z" } - definition_id = "6fe50a2e-7cfe-46f3-8acc-65c56f5fa677" - name = "Sheldon Gerlach" + definition_id = "9512957c-2986-4967-96fe-05881022b8ad" + name = "Joann Schuster IV" secret_id = "...my_secret_id..." - workspace_id = "91c615d1-2804-40ba-83eb-3c0afcc3c8fa" + workspace_id = "88754523-f36d-4ab5-9228-90f3e992c2a3" } ``` @@ -55,7 +55,7 @@ resource "airbyte_source_stripe" "my_source_stripe" { Required: - `account_id` (String) Your Stripe account ID (starts with 'acct_', find yours here). -- `client_secret` (String) Stripe API key (usually starts with 'sk_live_'; find yours here). +- `client_secret` (String, Sensitive) Stripe API key (usually starts with 'sk_live_'; find yours here). Optional: diff --git a/docs/resources/source_survey_sparrow.md b/docs/resources/source_survey_sparrow.md index 3c1157985..f44897ff1 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 = "6dac9959-2aae-4b21-989b-3db558d4aa17" - name = "Margaret Wiza" + definition_id = "f1f04aee-bc30-46c4-b339-7c20475faade" + name = "Wilbur Gleichner DVM" secret_id = "...my_secret_id..." - workspace_id = "1a7b03b3-15af-419b-84a1-418c27e2e49f" + workspace_id = "413dd760-cc3a-4e1d-b75e-e978f160f457" } ``` diff --git a/docs/resources/source_surveymonkey.md b/docs/resources/source_surveymonkey.md index cba85f0ca..3c5af916c 100644 --- a/docs/resources/source_surveymonkey.md +++ b/docs/resources/source_surveymonkey.md @@ -20,16 +20,16 @@ resource "airbyte_source_surveymonkey" "my_source_surveymonkey" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." } - origin = "Europe" + origin = "Canada" start_date = "2021-01-01T00:00:00Z" survey_ids = [ "...", ] } - definition_id = "fbbc8e3e-7db5-4a3e-846f-c1e0fa91f7ef" - name = "Winifred Graham" + definition_id = "8fc026c7-cc4e-4afd-ab4c-1bcaf66c1286" + name = "Jerald Mertz" secret_id = "...my_secret_id..." - workspace_id = "d7c84461-977a-41b2-b1a5-b009f29606a3" + workspace_id = "d6138285-42bb-437a-858f-acd1771a16ff" } ``` @@ -74,8 +74,8 @@ Required: Optional: -- `client_id` (String) The Client ID of the SurveyMonkey developer application. -- `client_secret` (String) The Client Secret of the SurveyMonkey developer application. +- `client_id` (String, Sensitive) The Client ID of the SurveyMonkey developer application. +- `client_secret` (String, Sensitive) The Client Secret of the SurveyMonkey developer application. ## Import diff --git a/docs/resources/source_tempo.md b/docs/resources/source_tempo.md index 63c0e8f1a..9910b3487 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 = "be84753d-48e3-40cc-8b1d-39ddfc649b7a" - name = "Cassandra O'Reilly" + definition_id = "46ac11eb-0243-4724-82fa-90b3fc58aed9" + name = "Kristen Erdman IV" secret_id = "...my_secret_id..." - workspace_id = "3641fd33-8f32-4285-acd8-8e7e494b9e58" + workspace_id = "de960972-5c6d-45a5-9a35-039f4e4098bb" } ``` diff --git a/docs/resources/source_the_guardian_api.md b/docs/resources/source_the_guardian_api.md index 42b0b82d1..a8fb72733 100644 --- a/docs/resources/source_the_guardian_api.md +++ b/docs/resources/source_the_guardian_api.md @@ -17,15 +17,15 @@ resource "airbyte_source_the_guardian_api" "my_source_theguardianapi" { configuration = { api_key = "...my_api_key..." end_date = "YYYY-MM-DD" - query = "environment AND NOT water" - section = "media" + query = "amusement park" + section = "housing-network" start_date = "YYYY-MM-DD" - tag = "environment/energyefficiency" + tag = "environment/recycling" } - definition_id = "9efbf412-cdca-4e9f-85c7-017380526f88" - name = "Laurie Schiller" + definition_id = "a23b3c01-3462-4186-acf5-18dbd5ebee01" + name = "Sonja Abshire" secret_id = "...my_secret_id..." - workspace_id = "3fdefbe1-9992-414f-bffa-48acadc06400" + workspace_id = "adc6f53d-253d-4b8b-9e39-d437be8f4cf7" } ``` diff --git a/docs/resources/source_tiktok_marketing.md b/docs/resources/source_tiktok_marketing.md index 7edeb21e5..ffa3ef173 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 = 8 + attribution_window = 6 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 = "2022-04-17" + end_date = "2022-01-13" include_deleted = true - start_date = "2021-05-10" + start_date = "2021-09-07" } - definition_id = "13a2ccf2-b1ad-4e2f-8984-bfb0e1b3d2b8" - name = "Jean Dare" + definition_id = "e012beba-22c9-4964-9ef6-30f5d8739c0e" + name = "Hazel Pfeffer" secret_id = "...my_secret_id..." - workspace_id = "8838cf8d-227f-4318-9424-0654f4782740" + workspace_id = "2ddb04c9-bce3-487d-a644-4a186797a763" } ``` @@ -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 reports. Default: false +- `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 - `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" @@ -79,8 +79,8 @@ Optional: Required: - `access_token` (String, Sensitive) Long-term Authorized Access Token. -- `app_id` (String) The Developer Application App ID. -- `secret` (String) The Developer Application Secret. +- `app_id` (String, Sensitive) The Developer Application App ID. +- `secret` (String, Sensitive) The Developer Application Secret. Optional: diff --git a/docs/resources/source_trello.md b/docs/resources/source_trello.md index 6f22684a8..8907c79d3 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 = "b5a46242-8ebc-45c7-bead-f0c9ce16ebe8" - name = "Josefina Pacocha" + definition_id = "0f99e008-79e4-4948-8a74-85520644aee4" + name = "Melinda Zboncak" secret_id = "...my_secret_id..." - workspace_id = "aee8d2bd-e48e-4efc-ab9e-0d54b0894bdd" + workspace_id = "df9bf84b-784e-4daa-b2f4-24ed308606f0" } ``` diff --git a/docs/resources/source_trustpilot.md b/docs/resources/source_trustpilot.md index ae7b20643..d864ff688 100644 --- a/docs/resources/source_trustpilot.md +++ b/docs/resources/source_trustpilot.md @@ -23,12 +23,12 @@ resource "airbyte_source_trustpilot" "my_source_trustpilot" { client_id = "...my_client_id..." } } - start_date = "%Y-%m-%dT%H:%M:%S" + start_date = "%Y-%m-%dT%H:%M:%SZ" } - definition_id = "98fe3f92-c06a-49aa-b270-2875abb88c39" - name = "Marcos Kuhic" + definition_id = "992622de-7b1a-493e-9915-fe5844c8d7f9" + name = "Reginald Kreiger" secret_id = "...my_secret_id..." - workspace_id = "66080f3e-cae3-4cb4-91ea-7992cd63d338" + workspace_id = "df74d23a-87a4-42ab-b6ae-57802daa8219" } ``` @@ -73,7 +73,7 @@ Optional: Required: -- `client_id` (String) The API key of the Trustpilot API application. +- `client_id` (String, Sensitive) The API key of the Trustpilot API application. @@ -82,10 +82,10 @@ Required: Required: - `access_token` (String, Sensitive) Access Token for making authenticated requests. -- `client_id` (String) The API key of the Trustpilot API application. (represents the OAuth Client ID) -- `client_secret` (String) The Secret of the Trustpilot API application. (represents the OAuth Client Secret) +- `client_id` (String, Sensitive) The API key of the Trustpilot API application. (represents the OAuth Client ID) +- `client_secret` (String, Sensitive) The Secret of the Trustpilot API application. (represents the OAuth Client Secret) - `refresh_token` (String, Sensitive) The key to refresh the expired access_token. -- `token_expiry_date` (String, Sensitive) The date-time when the access token should be refreshed. +- `token_expiry_date` (String) The date-time when the access token should be refreshed. ## Import diff --git a/docs/resources/source_tvmaze_schedule.md b/docs/resources/source_tvmaze_schedule.md index 26171b170..4fff2300d 100644 --- a/docs/resources/source_tvmaze_schedule.md +++ b/docs/resources/source_tvmaze_schedule.md @@ -15,15 +15,15 @@ SourceTvmazeSchedule Resource ```terraform resource "airbyte_source_tvmaze_schedule" "my_source_tvmazeschedule" { configuration = { - domestic_schedule_country_code = "US" + domestic_schedule_country_code = "GB" end_date = "...my_end_date..." start_date = "...my_start_date..." - web_schedule_country_code = "global" + web_schedule_country_code = "GB" } - definition_id = "fe3f7d5a-433d-430c-a4aa-9f684d9ab345" - name = "Ms. Moses Dibbert" + definition_id = "eac7526c-0e68-4d41-b294-78bd831a4caf" + name = "Hattie Beer DVM" secret_id = "...my_secret_id..." - workspace_id = "cb2e52a8-6adb-4b57-85cb-e7ccff9d0724" + workspace_id = "2320a84c-82fe-4ed3-9fd4-712605259781" } ``` diff --git a/docs/resources/source_twilio.md b/docs/resources/source_twilio.md index 1417f5b59..531e00d85 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 = "a4b37eb2-05dd-4b7f-9b71-195e07e10364" - name = "Angie Jenkins" + definition_id = "214e979a-9787-43ec-aec2-3f8936834bb7" + name = "Howard Herman" secret_id = "...my_secret_id..." - workspace_id = "d2a60225-b2ac-462e-b10f-1a0d51fb8be0" + workspace_id = "a2eed97a-7ac9-43ce-a101-f692eff8de56" } ``` @@ -51,7 +51,7 @@ resource "airbyte_source_twilio" "my_source_twilio" { Required: -- `account_sid` (String) Twilio account SID +- `account_sid` (String, Sensitive) Twilio account SID - `auth_token` (String, Sensitive) Twilio Auth Token. - `start_date` (String) UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. diff --git a/docs/resources/source_twilio_taskrouter.md b/docs/resources/source_twilio_taskrouter.md index 2c4d9d0d0..e0a4a9c8e 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 = "416cb49d-a06c-4239-a7af-3ca2cc2a5392" - name = "Julio Gutmann" + definition_id = "50472830-aace-4290-97b3-b358aff5206e" + name = "Angelica Huels" secret_id = "...my_secret_id..." - workspace_id = "89040904-7267-4ce8-aa32-2e02b7e6dd49" + workspace_id = "12764ede-9cd8-419e-8c37-ba1700ba64da" } ``` @@ -49,7 +49,7 @@ resource "airbyte_source_twilio_taskrouter" "my_source_twiliotaskrouter" { Required: -- `account_sid` (String) Twilio Account ID +- `account_sid` (String, Sensitive) Twilio Account ID - `auth_token` (String, Sensitive) Twilio Auth Token ## Import diff --git a/docs/resources/source_twitter.md b/docs/resources/source_twitter.md index dce357f67..becc6d3b2 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 = "2020-01-18T12:46:16.717Z" + end_date = "2022-07-12T09:29:20.072Z" query = "...my_query..." - start_date = "2022-03-25T00:43:50.915Z" + start_date = "2020-06-17T06:17:32.127Z" } - definition_id = "3592a5dd-7ddb-4d79-bd2e-b894fd682a67" - name = "Whitney Casper" + definition_id = "7c8fe575-7a30-4644-ba75-bcf4e2e1378d" + name = "Steven Brown" secret_id = "...my_secret_id..." - workspace_id = "dbbaeb9b-5c2e-42ee-8b85-f41cf2efd5ed" + workspace_id = "6f7dd27a-a6e5-41f0-820e-4312d0cbfe39" } ``` diff --git a/docs/resources/source_typeform.md b/docs/resources/source_typeform.md index 15972f520..a8bf570df 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 = "2022-12-23T20:48:01.588Z" + token_expiry_date = "2020-01-31T16:32:17.420Z" } } form_ids = [ @@ -29,10 +29,10 @@ resource "airbyte_source_typeform" "my_source_typeform" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "9e4deda3-0dd3-4cfb-8aa2-fad058413083" - name = "Krystal Dietrich" + definition_id = "e297d6f5-cf39-4b34-b958-9f42198f3282" + name = "Latoya Leuschke" secret_id = "...my_secret_id..." - workspace_id = "de43c907-f63c-4c02-bc2f-7f5dfb2c26b4" + workspace_id = "159ebc2b-7c1d-4354-8fbb-e2d8a9d00100" } ``` @@ -81,10 +81,10 @@ Optional: Required: - `access_token` (String, Sensitive) Access Token for making authenticated requests. -- `client_id` (String) The Client ID of the Typeform developer application. -- `client_secret` (String) The Client Secret the Typeform developer application. +- `client_id` (String, Sensitive) The Client ID of the Typeform developer application. +- `client_secret` (String, Sensitive) The Client Secret the Typeform developer application. - `refresh_token` (String, Sensitive) The key to refresh the expired access_token. -- `token_expiry_date` (String, Sensitive) The date-time when the access token should be refreshed. +- `token_expiry_date` (String) The date-time when the access token should be refreshed. diff --git a/docs/resources/source_us_census.md b/docs/resources/source_us_census.md index 2aba28b88..a9dec0468 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=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:*" + 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/2018/acs" } - definition_id = "6915d332-4b48-419f-b393-429d3165dd85" - name = "Vernon Tillman" + definition_id = "d11c1280-d807-4cdd-8eb8-c75c4610938e" + name = "Benjamin Greenholt" secret_id = "...my_secret_id..." - workspace_id = "61e20db5-f4bb-411c-a0c3-a7ba336248be" + workspace_id = "624d8c5c-5aa0-4b53-a8b2-6a568aa6dc34" } ``` diff --git a/docs/resources/source_vantage.md b/docs/resources/source_vantage.md index 9332dd07b..b618e4ee6 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 = "45dfad93-24f6-4ab9-b833-4526eae71eb7" - name = "Sheryl Stroman" + definition_id = "0bb15469-57c1-4238-9870-2998d832c86d" + name = "Ms. Wilfred Larkin" secret_id = "...my_secret_id..." - workspace_id = "d0bf2f57-2195-478f-bbe9-226a954fff93" + workspace_id = "f75b417c-7a0b-47eb-b790-1b079c0c4f41" } ``` diff --git a/docs/resources/source_webflow.md b/docs/resources/source_webflow.md index fbfc8e1c6..20d3289a8 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 = "d12e392c-e90b-4916-9fb3-0db2efb21ef2" - name = "Israel Gleason" + definition_id = "1920e562-c711-4d3e-b646-ca6a0584e97a" + name = "Leon Corkery DDS" secret_id = "...my_secret_id..." - workspace_id = "f07f2e77-2136-4664-afa9-b2db7532b28c" + workspace_id = "d22882d9-facb-48ad-8cb7-919041885bed" } ``` diff --git a/docs/resources/source_whisky_hunter.md b/docs/resources/source_whisky_hunter.md index 7453bcf13..d45700568 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 = "b785b8d4-ad9b-4b4c-ad04-c6ceb0e44096" - name = "Jenny Strosin" + definition_id = "f1b6a60e-d146-42f4-91dc-6a0a7c772330" + name = "Clara Shanahan" secret_id = "...my_secret_id..." - workspace_id = "6ecaf35c-15b3-4779-97e3-dccb9fd6e1ad" + workspace_id = "7177b9cd-d675-4dcd-9c0f-a1c232938176" } ``` diff --git a/docs/resources/source_wikipedia_pageviews.md b/docs/resources/source_wikipedia_pageviews.md index 9429e5ac2..7b0e31a06 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 = "desktop" + access = "mobile-web" agent = "user" article = "Are_You_the_One%3F" - country = "FR" + country = "IN" end = "...my_end..." - project = "commons.wikimedia.org" + project = "en.wikipedia.org" start = "...my_start..." } - definition_id = "8320ef50-a8ca-476b-883e-a280df1804a6" - name = "Hannah Moore" + definition_id = "ac70a337-a3d1-431b-9bdf-0c811e90b6ae" + name = "Lee Deckow" secret_id = "...my_secret_id..." - workspace_id = "e5814951-2957-4c29-8696-756fe0588102" + workspace_id = "138174cf-a455-4367-8966-ff0c6426b6cd" } ``` @@ -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. +- `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. ## Import diff --git a/docs/resources/source_woocommerce.md b/docs/resources/source_woocommerce.md index 7995105de..b6bac0fba 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 = "8ad45dc0-7887-4545-a3f3-6dab5122890f" - name = "Cecelia McClure" + definition_id = "bc947d1a-36d8-4135-b42d-9b671ba3daf1" + name = "Faith Watsica" secret_id = "...my_secret_id..." - workspace_id = "c2a3f4c8-fc02-46c7-8c4e-afdab4c1bcaf" + workspace_id = "d62693dd-fcad-432b-811f-0852299485bd" } ``` @@ -52,7 +52,7 @@ resource "airbyte_source_woocommerce" "my_source_woocommerce" { Required: - `api_key` (String, Sensitive) Customer Key for API in WooCommerce shop -- `api_secret` (String) Customer Secret for API in WooCommerce shop +- `api_secret` (String, Sensitive) Customer Secret for API in WooCommerce shop - `shop` (String) The name of the store. For https://EXAMPLE.com, the shop name is 'EXAMPLE.com'. - `start_date` (String) The date you would like to replicate data from. Format: YYYY-MM-DD diff --git a/docs/resources/source_xkcd.md b/docs/resources/source_xkcd.md index c236d6642..07593921c 100644 --- a/docs/resources/source_xkcd.md +++ b/docs/resources/source_xkcd.md @@ -14,11 +14,13 @@ SourceXkcd Resource ```terraform resource "airbyte_source_xkcd" "my_source_xkcd" { - configuration = {} - definition_id = "66c12869-f984-4d61-b828-542bb37a458f" - name = "Ms. Lowell Stiedemann" + configuration = { + comic_number = "...my_comic_number..." + } + definition_id = "5b511296-6924-4cde-8b86-7ddcc8cc1e1e" + name = "Dana Hickle" secret_id = "...my_secret_id..." - workspace_id = "1a16fff1-f04a-4eeb-8306-c4f3397c2047" + workspace_id = "c4c80fc9-04e1-4374-8425-fe8edba3050b" } ``` @@ -44,6 +46,10 @@ resource "airbyte_source_xkcd" "my_source_xkcd" { ### Nested Schema for `configuration` +Optional: + +- `comic_number` (String) Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics. Default: "2960" + ## Import Import is supported using the following syntax: diff --git a/docs/resources/source_yandex_metrica.md b/docs/resources/source_yandex_metrica.md index 023db3140..9aa4d47f1 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 = "deba481e-413d-4d76-8cc3-ae1d775ee978" - name = "Dr. Lawrence Howe" + definition_id = "579b424a-0569-4229-a6de-0331191cf44b" + name = "Jacob Bergnaum" secret_id = "...my_secret_id..." - workspace_id = "5746ac11-eb02-4437-a4c2-fa90b3fc58ae" + workspace_id = "c75cd175-6719-46a7-941f-a2a7924db04e" } ``` diff --git a/docs/resources/source_yotpo.md b/docs/resources/source_yotpo.md index 1ddf653c9..1a0b38db5 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 = "Leta.Jakubowski@hotmail.com" + email = "Santiago_Von2@hotmail.com" start_date = "2022-03-01T00:00:00.000Z" } - definition_id = "7de96097-25c6-4d5a-9da3-5039f4e4098b" - name = "Morris Schimmel" + definition_id = "77895426-7034-4f3e-8d74-96d90ab23438" + name = "Walter Wintheiser" secret_id = "...my_secret_id..." - workspace_id = "23b3c013-4621-4866-8f51-8dbd5ebee014" + workspace_id = "9697c812-8b04-429b-90eb-a2d38220deac" } ``` @@ -52,7 +52,7 @@ resource "airbyte_source_yotpo" "my_source_yotpo" { Required: - `access_token` (String, Sensitive) Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- https://apidocs.yotpo.com/reference/yotpo-authentication) -- `app_key` (String, Sensitive) App key found at settings (Ref- https://settings.yotpo.com/#/general_settings) +- `app_key` (String) App key found at settings (Ref- https://settings.yotpo.com/#/general_settings) - `start_date` (String) Date time filter for incremental filter, Specify which date to extract from. Optional: diff --git a/docs/resources/source_youtube_analytics.md b/docs/resources/source_youtube_analytics.md index 02643defd..e10c70f9b 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 = "e07eadc6-f53d-4253-9b8b-1e39d437be8f" - name = "Vicky Welch" + definition_id = "9bb7b45d-9607-443b-824b-c119f8fb36f9" + name = "Ms. Marie Cummings" secret_id = "...my_secret_id..." - workspace_id = "7fa8ae01-2beb-4a22-8996-41ef630f5d87" + workspace_id = "49978c5f-0c0b-470c-9d08-d732ef691ae1" } ``` @@ -60,8 +60,8 @@ Required: Required: -- `client_id` (String) The Client ID of your developer application -- `client_secret` (String) The client secret of your developer application +- `client_id` (String, Sensitive) The Client ID of your developer application +- `client_secret` (String, Sensitive) The client secret of your developer application - `refresh_token` (String, Sensitive) A refresh token generated using the above client ID and secret Optional: diff --git a/docs/resources/source_zendesk_chat.md b/docs/resources/source_zendesk_chat.md index 782decb5a..cba4c5076 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 = "c0e34b35-2ddb-404c-9bce-387d66444a18" - name = "Claudia Mills" + definition_id = "6e65b76b-dc3f-49ea-a358-d5b4415ac58f" + name = "Kristine Yundt" secret_id = "...my_secret_id..." - workspace_id = "763e10f9-9e00-4879-a494-84a748552064" + workspace_id = "370ea7b0-2059-4e2e-b23f-c13e66cf8aae" } ``` @@ -83,8 +83,8 @@ Required: Optional: - `access_token` (String, Sensitive) Access Token for making authenticated requests. -- `client_id` (String) The Client ID of your OAuth application -- `client_secret` (String) The Client Secret of your OAuth application. +- `client_id` (String, Sensitive) The Client ID of your OAuth application +- `client_secret` (String, Sensitive) The Client Secret of your OAuth application. - `refresh_token` (String, Sensitive) Refresh Token to obtain new Access Token, when it's expired. ## Import diff --git a/docs/resources/source_zendesk_sell.md b/docs/resources/source_zendesk_sell.md index 7f9357310..6af0c9f6f 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 = "4aee427f-93df-49bf-84b7-84edaaf2f424" - name = "Ms. Marcos Ebert" + definition_id = "95489f10-b55b-4793-92be-b1b52fdccb22" + name = "Ernest Weimann" secret_id = "...my_secret_id..." - workspace_id = "06f09926-22de-47b1-a93e-5915fe5844c8" + workspace_id = "f127a6aa-10ba-476f-bfe0-de8798ad00b4" } ``` diff --git a/docs/resources/source_zendesk_sunshine.md b/docs/resources/source_zendesk_sunshine.md index 62df51e38..dfa12e863 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 = "Jannie_Zulauf@hotmail.com" + email = "Gracie_Howell@gmail.com" } } start_date = "2021-01-01T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "badf74d2-3a87-4a42-abf6-ae57802daa82" - name = "Ramona Marvin" + definition_id = "7c9141ac-8dcf-4207-806d-a07742c26203" + name = "Felix Beer II" secret_id = "...my_secret_id..." - workspace_id = "ac7526c0-e68d-441f-a947-8bd831a4caf6" + workspace_id = "4956e9a2-d9da-4eda-9833-c055c950c18b" } ``` @@ -85,8 +85,8 @@ Required: Required: - `access_token` (String, Sensitive) Long-term access Token for making authenticated requests. -- `client_id` (String) The Client ID of your OAuth application. -- `client_secret` (String) The Client Secret of your OAuth application. +- `client_id` (String, Sensitive) The Client ID of your OAuth application. +- `client_secret` (String, Sensitive) The Client Secret of your OAuth application. ## Import diff --git a/docs/resources/source_zendesk_support.md b/docs/resources/source_zendesk_support.md index 153a94efa..32e1878a7 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 = "Anastacio94@yahoo.com" + email = "Priscilla.Bergstrom51@hotmail.com" } } ignore_pagination = true start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "0a84c82f-eed3-45fd-8712-605259781224" - name = "Kathleen Greenfelder" + definition_id = "00a18f6f-5072-4b63-af98-b5cd0fbbcc17" + name = "Katie Bartoletti" secret_id = "...my_secret_id..." - workspace_id = "79a97873-ec6e-4c23-b893-6834bb7f256a" + workspace_id = "ebd0cf43-5b72-4f05-818a-11c8951c09c2" } ``` @@ -96,8 +96,8 @@ Required: Optional: - `additional_properties` (String) Parsed as JSON. -- `client_id` (String) The OAuth client's ID. See this guide for more information. -- `client_secret` (String) The OAuth client secret. See this guide for more information. +- `client_id` (String, Sensitive) The OAuth client's ID. See this guide for more information. +- `client_secret` (String, Sensitive) The OAuth client secret. See this guide for more information. ## Import diff --git a/docs/resources/source_zendesk_talk.md b/docs/resources/source_zendesk_talk.md index ade9cfe54..90210b859 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 = "Carolyne_Turcotte57@hotmail.com" + email = "Jan.OConner@hotmail.com" } } start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "7ac93ce2-101f-4692-aff8-de5650472830" - name = "Grant Schmitt V" + definition_id = "89949514-7b12-4e2d-8774-d24e5a5b3df8" + name = "Kerry Lynch" secret_id = "...my_secret_id..." - workspace_id = "0d7b3b35-8aff-4520-ae7c-66512764ede9" + workspace_id = "c48d7309-6598-4895-bdb7-81b6d18174b5" } ``` @@ -94,8 +94,8 @@ Required: Optional: - `additional_properties` (String) Parsed as JSON. -- `client_id` (String) Client ID -- `client_secret` (String) Client Secret +- `client_id` (String, Sensitive) Client ID +- `client_secret` (String, Sensitive) Client Secret ## Import diff --git a/docs/resources/source_zenloop.md b/docs/resources/source_zenloop.md index ac337992f..5fdd4a48c 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 = "cd819ecc-37ba-4170-8ba6-4daf2cd7c8fe" - name = "Delores Hamill" + definition_id = "fdf3211f-15e0-4b96-bac0-fe887647e848" + name = "Pauline Bechtelar" secret_id = "...my_secret_id..." - workspace_id = "306443a7-5bcf-44e2-a137-8db01d76f7dd" + workspace_id = "f14991dd-b8a5-49a6-bc83-fdb6d5a0b32f" } ``` @@ -56,8 +56,8 @@ Required: Optional: - `date_from` (String) Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced -- `survey_group_id` (String) Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups -- `survey_id` (String) Zenloop Survey ID. Can be found here. Leave empty to pull answers from all surveys +- `survey_group_id` (String, Sensitive) Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups +- `survey_id` (String, Sensitive) Zenloop Survey ID. Can be found here. Leave empty to pull answers from all surveys ## Import diff --git a/docs/resources/source_zoho_crm.md b/docs/resources/source_zoho_crm.md index bd5aad920..e71ebfd96 100644 --- a/docs/resources/source_zoho_crm.md +++ b/docs/resources/source_zoho_crm.md @@ -17,16 +17,16 @@ resource "airbyte_source_zoho_crm" "my_source_zohocrm" { configuration = { client_id = "...my_client_id..." client_secret = "...my_client_secret..." - dc_region = "US" - edition = "Professional" - environment = "Developer" + dc_region = "IN" + edition = "Free" + environment = "Production" refresh_token = "...my_refresh_token..." - start_datetime = "2000-01-01T13:00+00:00" + start_datetime = "2000-01-01T13:00:00-07:00" } - definition_id = "51f0c20e-4312-4d0c-bfe3-9df03e297d6f" - name = "Roxanne Yundt" + definition_id = "36ea6e2a-4934-453a-b987-b81a066eb5b6" + name = "Gabriel Hartmann" secret_id = "...my_secret_id..." - workspace_id = "b34f9589-f421-498f-b282-2b82a159ebc2" + workspace_id = "46aaeb18-d05d-49d9-a1d4-6fb619254e9e" } ``` @@ -54,8 +54,8 @@ resource "airbyte_source_zoho_crm" "my_source_zohocrm" { Required: -- `client_id` (String) OAuth2.0 Client ID -- `client_secret` (String) OAuth2.0 Client Secret +- `client_id` (String, Sensitive) OAuth2.0 Client ID +- `client_secret` (String, Sensitive) OAuth2.0 Client Secret - `dc_region` (String) Please choose the region of your Data Center location. More info by this Link. must be one of ["US", "AU", "EU", "IN", "CN", "JP"] - `environment` (String) Please choose the environment. must be one of ["Production", "Developer", "Sandbox"] - `refresh_token` (String, Sensitive) OAuth2.0 Refresh Token diff --git a/docs/resources/source_zoom.md b/docs/resources/source_zoom.md index c6a9fd3d2..c89990ad2 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 = "b7c1d354-0fbb-4e2d-8a9d-0010028d11c1" - name = "Leona Bechtelar" + definition_id = "7e57484d-e0ea-4ba6-b0f1-4e7378bf2375" + name = "Allison Ondricka" secret_id = "...my_secret_id..." - workspace_id = "07cdd8eb-8c75-4c46-9093-8eb2433624d8" + workspace_id = "8f4810e2-b60f-4065-9300-56f91ac7e123" } ``` @@ -53,7 +53,7 @@ Required: - `account_id` (String) The account ID for your Zoom account. You can find this in the Zoom Marketplace under the "Manage" tab for your app. - `client_id` (String) The client ID for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. -- `client_secret` (String) The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. +- `client_secret` (String, Sensitive) The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. Optional: diff --git a/docs/resources/workspace.md b/docs/resources/workspace.md index cd47df314..4b065239e 100644 --- a/docs/resources/workspace.md +++ b/docs/resources/workspace.md @@ -14,8 +14,8 @@ Workspace Resource ```terraform resource "airbyte_workspace" "my_workspace" { - name = "Floyd Schinner" - organization_id = "a0b5368b-26a5-468a-a6dc-340bb1546957" + name = "Leonard Hamill" + organization_id = "023c2b52-9d84-41a3-8ae3-ec6aa76308e2" } ``` diff --git a/examples/data-sources/airbyte_destination_langchain/data-source.tf b/examples/data-sources/airbyte_destination_langchain/data-source.tf deleted file mode 100644 index 25f13b411..000000000 --- a/examples/data-sources/airbyte_destination_langchain/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -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_destination_timeplus/data-source.tf b/examples/data-sources/airbyte_destination_timeplus/data-source.tf new file mode 100644 index 000000000..4c5035ea3 --- /dev/null +++ b/examples/data-sources/airbyte_destination_timeplus/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_destination_timeplus" "my_destination_timeplus" { + destination_id = "...my_destination_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_airbyte/data-source.tf b/examples/data-sources/airbyte_source_airbyte/data-source.tf new file mode 100644 index 000000000..d553ac3f6 --- /dev/null +++ b/examples/data-sources/airbyte_source_airbyte/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_airbyte" "my_source_airbyte" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_basecamp/data-source.tf b/examples/data-sources/airbyte_source_basecamp/data-source.tf new file mode 100644 index 000000000..be8789707 --- /dev/null +++ b/examples/data-sources/airbyte_source_basecamp/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_basecamp" "my_source_basecamp" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_breezy_hr/data-source.tf b/examples/data-sources/airbyte_source_breezy_hr/data-source.tf new file mode 100644 index 000000000..4dcc0af0f --- /dev/null +++ b/examples/data-sources/airbyte_source_breezy_hr/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_breezy_hr" "my_source_breezyhr" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_calendly/data-source.tf b/examples/data-sources/airbyte_source_calendly/data-source.tf new file mode 100644 index 000000000..78b543bef --- /dev/null +++ b/examples/data-sources/airbyte_source_calendly/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_calendly" "my_source_calendly" { + source_id = "...my_source_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 new file mode 100644 index 000000000..34e3942ea --- /dev/null +++ b/examples/data-sources/airbyte_source_clazar/data-source.tf @@ -0,0 +1,3 @@ +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_customer_io/data-source.tf b/examples/data-sources/airbyte_source_customer_io/data-source.tf new file mode 100644 index 000000000..e510ea135 --- /dev/null +++ b/examples/data-sources/airbyte_source_customer_io/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_customer_io" "my_source_customerio" { + 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 new file mode 100644 index 000000000..4fb25014d --- /dev/null +++ b/examples/data-sources/airbyte_source_datadog/data-source.tf @@ -0,0 +1,3 @@ +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_dbt/data-source.tf b/examples/data-sources/airbyte_source_dbt/data-source.tf new file mode 100644 index 000000000..3cf060e7a --- /dev/null +++ b/examples/data-sources/airbyte_source_dbt/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_dbt" "my_source_dbt" { + 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 new file mode 100644 index 000000000..eb645166a --- /dev/null +++ b/examples/data-sources/airbyte_source_goldcast/data-source.tf @@ -0,0 +1,3 @@ +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 deleted file mode 100644 index 0daf09530..000000000 --- a/examples/data-sources/airbyte_source_google_analytics_v4_service_account_only/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -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_hardcoded_records/data-source.tf b/examples/data-sources/airbyte_source_hardcoded_records/data-source.tf new file mode 100644 index 000000000..1a17865cf --- /dev/null +++ b/examples/data-sources/airbyte_source_hardcoded_records/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_hardcoded_records" "my_source_hardcodedrecords" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_hibob/data-source.tf b/examples/data-sources/airbyte_source_hibob/data-source.tf new file mode 100644 index 000000000..6c5bf5e5c --- /dev/null +++ b/examples/data-sources/airbyte_source_hibob/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_hibob" "my_source_hibob" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_high_level/data-source.tf b/examples/data-sources/airbyte_source_high_level/data-source.tf new file mode 100644 index 000000000..44488e3a1 --- /dev/null +++ b/examples/data-sources/airbyte_source_high_level/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_high_level" "my_source_highlevel" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_leadfeeder/data-source.tf b/examples/data-sources/airbyte_source_leadfeeder/data-source.tf new file mode 100644 index 000000000..5b612e8bd --- /dev/null +++ b/examples/data-sources/airbyte_source_leadfeeder/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_leadfeeder" "my_source_leadfeeder" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_looker/data-source.tf b/examples/data-sources/airbyte_source_looker/data-source.tf new file mode 100644 index 000000000..0ed2f55cc --- /dev/null +++ b/examples/data-sources/airbyte_source_looker/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_looker" "my_source_looker" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_luma/data-source.tf b/examples/data-sources/airbyte_source_luma/data-source.tf new file mode 100644 index 000000000..c8d74870d --- /dev/null +++ b/examples/data-sources/airbyte_source_luma/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_luma" "my_source_luma" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_mongodb_internal_poc/data-source.tf b/examples/data-sources/airbyte_source_mongodb_internal_poc/data-source.tf deleted file mode 100644 index 6c8e41b80..000000000 --- a/examples/data-sources/airbyte_source_mongodb_internal_poc/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -data "airbyte_source_mongodb_internal_poc" "my_source_mongodbinternalpoc" { - source_id = "...my_source_id..." -} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_northpass_lms/data-source.tf b/examples/data-sources/airbyte_source_northpass_lms/data-source.tf new file mode 100644 index 000000000..94580617b --- /dev/null +++ b/examples/data-sources/airbyte_source_northpass_lms/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_northpass_lms" "my_source_northpasslms" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_pennylane/data-source.tf b/examples/data-sources/airbyte_source_pennylane/data-source.tf new file mode 100644 index 000000000..719543ee8 --- /dev/null +++ b/examples/data-sources/airbyte_source_pennylane/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_pennylane" "my_source_pennylane" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_planhat/data-source.tf b/examples/data-sources/airbyte_source_planhat/data-source.tf new file mode 100644 index 000000000..525101cb5 --- /dev/null +++ b/examples/data-sources/airbyte_source_planhat/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_planhat" "my_source_planhat" { + 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 deleted file mode 100644 index 098a08a1a..000000000 --- a/examples/data-sources/airbyte_source_punk_api/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -data "airbyte_source_punk_api" "my_source_punkapi" { - source_id = "...my_source_id..." -} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_reddit/data-source.tf b/examples/data-sources/airbyte_source_reddit/data-source.tf new file mode 100644 index 000000000..7978f0e57 --- /dev/null +++ b/examples/data-sources/airbyte_source_reddit/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_reddit" "my_source_reddit" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_savvycal/data-source.tf b/examples/data-sources/airbyte_source_savvycal/data-source.tf new file mode 100644 index 000000000..1270f9135 --- /dev/null +++ b/examples/data-sources/airbyte_source_savvycal/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_savvycal" "my_source_savvycal" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_scryfall/data-source.tf b/examples/data-sources/airbyte_source_scryfall/data-source.tf new file mode 100644 index 000000000..d02ed5db5 --- /dev/null +++ b/examples/data-sources/airbyte_source_scryfall/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_scryfall" "my_source_scryfall" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 4c8e66289..d583f70fa 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { airbyte = { source = "airbytehq/airbyte" - version = "0.9.0" + version = "0.11.0" } } } diff --git a/examples/resources/airbyte_destination_bigquery/resource.tf b/examples/resources/airbyte_destination_bigquery/resource.tf index f9c39e9a0..110ceba00 100644 --- a/examples/resources/airbyte_destination_bigquery/resource.tf +++ b/examples/resources/airbyte_destination_bigquery/resource.tf @@ -6,23 +6,13 @@ resource "airbyte_destination_bigquery" "my_destination_bigquery" { dataset_location = "southamerica-west1" disable_type_dedupe = true loading_method = { - gcs_staging = { - credential = { - hmac_key = { - hmac_key_access_id = "1234567890abcdefghij1234" - hmac_key_secret = "1234567890abcdefghij1234567890ABCDEFGHIJ" - } - } - gcs_bucket_name = "airbyte_sync" - gcs_bucket_path = "data_sync/test" - keep_files_in_gcs_bucket = "Keep all tmp files in GCS" - } + batched_standard_inserts = {} } project_id = "...my_project_id..." raw_data_dataset = "...my_raw_data_dataset..." - transformation_priority = "interactive" + transformation_priority = "batch" } - definition_id = "5759d85e-2c27-4639-8b46-88adb42653c3" - name = "Stella Zulauf IV" - workspace_id = "b5ab2eb4-f41e-422e-b9b6-61a09af71290" + definition_id = "15759d85-e2c2-4763-98b4-688adb42653c" + name = "Lori Kunde" + workspace_id = "18b5ab2e-b4f4-41e2-ae39-b661a09af712" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_clickhouse/resource.tf b/examples/resources/airbyte_destination_clickhouse/resource.tf index 925d34fb5..b55cf48ac 100644 --- a/examples/resources/airbyte_destination_clickhouse/resource.tf +++ b/examples/resources/airbyte_destination_clickhouse/resource.tf @@ -9,9 +9,9 @@ resource "airbyte_destination_clickhouse" "my_destination_clickhouse" { tunnel_method = { no_tunnel = {} } - username = "Carmelo_Rosenbaum" + username = "Adah75" } - definition_id = "65d335e0-3abe-4bb7-9b58-e872ec68b6d2" - name = "Wade Schimmel" - workspace_id = "b5369415-66f2-42fd-b0a2-8af8c1d27b3e" + definition_id = "6d65d335-e03a-4beb-b71b-58e872ec68b6" + name = "Shawn Olson" + workspace_id = "48b53694-1566-4f22-bd30-a28af8c1d27b" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_convex/resource.tf b/examples/resources/airbyte_destination_convex/resource.tf index 6c37af9d0..f556b5045 100644 --- a/examples/resources/airbyte_destination_convex/resource.tf +++ b/examples/resources/airbyte_destination_convex/resource.tf @@ -3,7 +3,7 @@ resource "airbyte_destination_convex" "my_destination_convex" { access_key = "...my_access_key..." deployment_url = "https://murky-swan-635.convex.cloud" } - definition_id = "73c0eb82-2361-43d2-bce8-75293aec4aa1" - name = "Jennifer Rogahn I" - workspace_id = "922581a8-8452-4de7-835e-b92a9e952da2" + definition_id = "e573c0eb-8223-4613-923c-e875293aec4a" + name = "Miss Peter Abernathy" + workspace_id = "23922581-a884-452d-a7c3-5eb92a9e952d" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_custom/resource.tf b/examples/resources/airbyte_destination_custom/resource.tf index 2a8653b2f..0aaf7a863 100644 --- a/examples/resources/airbyte_destination_custom/resource.tf +++ b/examples/resources/airbyte_destination_custom/resource.tf @@ -1,6 +1,6 @@ resource "airbyte_destination_custom" "my_destination_custom" { configuration = { "user" : "charles" } - definition_id = "93962c00-6aec-4ee7-8884-619655998ae2" - name = "Gwen Tillman" - workspace_id = "60fc4948-d719-417b-9771-58c7e04c5798" + definition_id = "a293962c-006a-4ece-a7c8-84619655998a" + name = "Roy Grimes" + workspace_id = "c560fc49-48d7-4191-bbd7-7158c7e04c57" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_databricks/resource.tf b/examples/resources/airbyte_destination_databricks/resource.tf index 61fedfa58..b85b0ee09 100644 --- a/examples/resources/airbyte_destination_databricks/resource.tf +++ b/examples/resources/airbyte_destination_databricks/resource.tf @@ -1,17 +1,19 @@ resource "airbyte_destination_databricks" "my_destination_databricks" { configuration = { - accept_terms = true - data_source = { - recommended_managed_tables = {} + accept_terms = false + authentication = { + o_auth2_recommended = { + client_id = "...my_client_id..." + secret = "...my_secret..." + } } - database = "...my_database..." - databricks_http_path = "sql/protocolvx/o/1234567489/0000-1111111-abcd90" - databricks_personal_access_token = "dapi0123456789abcdefghij0123456789AB" - databricks_port = "443" - databricks_server_hostname = "abc-12345678-wxyz.cloud.databricks.com" - enable_schema_evolution = false - purge_staging_data = true - schema = "default" + database = "...my_database..." + hostname = "abc-12345678-wxyz.cloud.databricks.com" + http_path = "sql/1.0/warehouses/0000-1111111-abcd90" + port = "443" + purge_staging_data = true + raw_schema_override = "...my_raw_schema_override..." + schema = "default" } definition_id = "bfbb5605-d730-46cf-a6f6-0bfc11e74f73" name = "Janis Kohler" diff --git a/examples/resources/airbyte_destination_langchain/import.sh b/examples/resources/airbyte_destination_langchain/import.sh deleted file mode 100644 index 1d914714b..000000000 --- a/examples/resources/airbyte_destination_langchain/import.sh +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 0b29648b2..000000000 --- a/examples/resources/airbyte_destination_langchain/resource.tf +++ /dev/null @@ -1,23 +0,0 @@ -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 057bfc4e3..d0f21b896 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://my-local-milvus:19530" + host = "tcp://host.docker.internal:19530" text_field = "...my_text_field..." vector_field = "...my_vector_field..." } - omit_raw_text = false + omit_raw_text = true processing = { - chunk_overlap = 1 - chunk_size = 10 + chunk_overlap = 6 + chunk_size = 4 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 = 6 + split_level = 2 } } } } - definition_id = "2248d601-2833-484b-987b-5cce36148543" - name = "Sylvia Smitham" - workspace_id = "3c5e509f-4525-421a-8478-78c254cd184f" + definition_id = "5a4e1801-23f0-4d76-bb78-bf74fa22de12" + name = "Jenny Braun" + workspace_id = "f134d000-7497-474a-a87c-30892ffb0f41" } \ 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 964c8daf6..0e99749fb 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 = "Ryleigh43" + username = "Ubaldo12" } } database = "...my_database..." @@ -17,7 +17,7 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { no_tunnel = {} } } - definition_id = "e75f1c50-c9ec-4767-87b0-6cf86fe4a6f8" - name = "Mr. Malcolm Lubowitz" - workspace_id = "d646f802-e7b2-4183-b2bc-4f6db7afdaca" + definition_id = "48d60128-3384-4bd8-bb5c-ce3614854333" + name = "Courtney Considine" + workspace_id = "5e509f45-2521-4a04-b878-c254cd184fd1" } \ 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 216cd4f71..a8d18de0f 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 = "Brian25" + username = "Hope.Toy" } - definition_id = "cf17a668-3bb7-46cb-9d42-c04b7b603cc8" - name = "Bryant Lynch" - workspace_id = "e7603813-ef7f-4c0d-976e-5f414549f124" + definition_id = "f1c50c9e-c767-447b-86cf-86fe4a6f8bb8" + name = "Lisa Von" + workspace_id = "46f802e7-b218-43b2-bc4f-6db7afdacad2" } \ 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 6d25fea96..ac85f61c3 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 = true + disable_type_dedupe = false 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 = "Jimmy.Cummings31" + username = "Deon.Russel49" } - definition_id = "ef4e895c-9212-4618-852d-1432f33897fe" - name = "Francis Rutherford" - workspace_id = "c8c4bf88-2725-4c3c-abc3-9a6d3f396b39" + definition_id = "a6683bb7-6cbd-4d42-804b-7b603cc8cd88" + name = "Tricia Klocko I" + workspace_id = "813ef7fc-0d17-46e5-b414-549f1242182d" } \ 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 3e5c9201e..1ab3c8868 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 = "Louvenia.Bartell4" + username = "Emmalee.Towne89" } - definition_id = "16590e1a-2bc7-4de0-bf63-7374915d3efc" - name = "Kara Stroman" - workspace_id = "0e36acc1-e6f1-4291-9604-b55b326e06d2" + definition_id = "895c9212-6184-452d-9432-f33897fec4ca" + name = "Adrienne Lockman" + workspace_id = "bf882725-c3c6-4bc3-9a6d-3f396b39ea0e" } \ 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 3e1e672b8..4d03ebcc1 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 = false + omit_raw_text = true processing = { - chunk_overlap = 5 - chunk_size = 9 + chunk_overlap = 0 + chunk_size = 4 field_name_mappings = [ { from_field = "...my_from_field..." @@ -35,7 +35,7 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { } } } - definition_id = "e42a5305-0a9a-4fbc-a6c9-13a5b78062a6" - name = "Gregory Flatley" - workspace_id = "b7f63598-ffb0-4429-a4fa-eae5018c3193" + definition_id = "90e1a2bc-7de0-4ff6-b737-4915d3efc2cd" + name = "Jorge Beahan" + workspace_id = "6acc1e6f-1291-4560-8b55-b326e06d2448" } \ 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 811419d1f..46d2472ef 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 = false - drop_cascade = true + disable_type_dedupe = true + drop_cascade = false 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 = "Ladarius_Abernathy72" + username = "Ed.Crooks" } - definition_id = "22db6fe0-864a-4856-a041-70ff8566dc32" - name = "Gladys Hintz" - workspace_id = "7b07bf07-28b7-4077-958c-67348eaa4356" + definition_id = "3050a9af-bc66-4c91-ba5b-78062a6a13d9" + name = "Cody Williamson" + workspace_id = "598ffb04-2924-4fae-ae50-18c319374090" } \ 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 60eba7882..b8419cad9 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 = 2 - batching_enabled = true - batching_request_bytes_threshold = 6 + batching_element_count_threshold = 10 + batching_enabled = false + batching_request_bytes_threshold = 1 credentials_json = "...my_credentials_json..." - ordering_enabled = true + ordering_enabled = false project_id = "...my_project_id..." topic_id = "...my_topic_id..." } - definition_id = "d49dbc4f-abbf-4199-8382-023b4de2c1a7" - name = "Bobby Lemke" - workspace_id = "d3cde3c9-d6fa-494b-b4b9-38f85ce1dfc1" + definition_id = "db6fe086-4a85-46a0-8170-ff8566dc3233" + name = "Belinda Kuhn" + workspace_id = "07bf0728-b707-4755-8c67-348eaa4356f3" } \ 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 754c13a5f..ffb43bb7d 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 = "euc" + distance_metric = "cos" prefer_grpc = true text_field = "...my_text_field..." url = "...my_url..." } - omit_raw_text = false + omit_raw_text = true processing = { - chunk_overlap = 6 - chunk_size = 5 + chunk_overlap = 9 + chunk_size = 2 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 = 9 + split_level = 6 } } } } - definition_id = "b19e64b8-3f63-4d34-8370-e173ec9d4f32" - name = "Ms. Antonio Thiel" - workspace_id = "a8a43c0f-29f7-4cbd-92b3-20943801c367" + definition_id = "dbc4fabb-f199-4438-a023-b4de2c1a7f28" + name = "Gerard Simonis" + workspace_id = "de3c9d6f-a94b-474b-938f-85ce1dfc1b27" } \ 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 98db444d4..1ca624220 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 = 5 + port = 6 ssl = true ssl_mode = { disable = {} @@ -11,9 +11,9 @@ resource "airbyte_destination_redis" "my_destination_redis" { tunnel_method = { no_tunnel = {} } - username = "Ellen.Champlin16" + username = "Salma59" } - definition_id = "94a31a29-aaf3-4c68-870e-ca1537042295" - name = "Hector Turner" - workspace_id = "dc306165-86b7-4399-8fea-69beba7dc7cd" + definition_id = "e64b83f6-3d34-4837-8e17-3ec9d4f32d3e" + name = "Shelly Connelly" + workspace_id = "a43c0f29-f7cb-4d12-b320-943801c3678d" } \ 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 323fc1012..0b8a2eb01 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 = false + disable_type_dedupe = true drop_cascade = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." @@ -14,23 +14,18 @@ resource "airbyte_destination_redshift" "my_destination_redshift" { } uploading_method = { awss3_staging = { - access_key_id = "...my_access_key_id..." - encryption = { - aescbc_envelope_encryption = { - key_encrypting_key = "...my_key_encrypting_key..." - } - } + access_key_id = "...my_access_key_id..." file_name_pattern = "{timestamp}" purge_staging_data = false s3_bucket_name = "airbyte.staging" s3_bucket_path = "data_sync/test" - s3_bucket_region = "eu-central-2" + s3_bucket_region = "eu-south-2" secret_access_key = "...my_secret_access_key..." } } - username = "Clark65" + username = "Devante10" } - definition_id = "ab15fb45-8bad-49ea-b671-d5852a459de5" - name = "Jessica Runolfsdottir" - workspace_id = "420a295e-5c09-4962-877b-187a09875344" + definition_id = "a29aaf3c-6807-40ec-a153-7042295e6e54" + name = "Ms. Edmund Douglas III" + workspace_id = "586b7399-0fea-469b-aba7-dc7cde8f8d83" } \ 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 127aeb8d5..e0b503a64 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 = "{date}" + file_name_pattern = "{timestamp}" 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 = "bc3217ac-be2a-4d9f-b186-486fc7b23d6b" - name = "Kyle Luettgen" - workspace_id = "0346c04b-193f-4b28-918e-382726ed560c" + definition_id = "aab15fb4-58ba-4d9e-a767-1d5852a459de" + name = "Bonnie Beatty" + workspace_id = "3420a295-e5c0-4996-a877-b187a0987534" } \ 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 1d43fe22f..0ce1e1c17 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 = "{sync_id}" + file_name_pattern = "{date:yyyy_MM}" 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.apache.hive.hcatalog.data.JsonSerDe" + glue_serialization_library = "org.openx.data.jsonserde.JsonSerDe" s3_bucket_name = "airbyte_sync" s3_bucket_path = "data_sync/test" - s3_bucket_region = "eu-south-1" + s3_bucket_region = "me-central-1" s3_endpoint = "http://localhost:9000" s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "e1f9eaf9-a8e2-4157-a856-0c89e77fd0c2" - name = "Marilyn Abshire" - workspace_id = "d396de60-f942-4f93-ba3c-59508dd11c7e" + definition_id = "c3217acb-e2ad-49f3-9864-86fc7b23d6b8" + name = "Billie Wisoky I" + workspace_id = "46c04b19-3fb2-4891-8e38-2726ed560cd3" } \ 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 a17b282b3..c2068361b 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 = "Araceli.Kiehn85" + username = "Kristin95" } - definition_id = "5b00289a-0dc0-4232-9a5c-ae9f3888495e" - name = "Dr. Bennie Cassin" - workspace_id = "b305f362-4c43-4900-b25f-a3e33722ced9" + definition_id = "9eaf9a8e-2157-4a85-a0c8-9e77fd0c2020" + name = "Rick Sporer" + workspace_id = "6de60f94-2f93-47a3-8595-08dd11c7ed17" } \ 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 0cd1e5a59..cd335ec77 100644 --- a/examples/resources/airbyte_destination_snowflake/resource.tf +++ b/examples/resources/airbyte_destination_snowflake/resource.tf @@ -8,16 +8,17 @@ resource "airbyte_destination_snowflake" "my_destination_snowflake" { } database = "AIRBYTE_DATABASE" disable_type_dedupe = false - host = "accountname.snowflakecomputing.com" + host = "accountname.us-east-2.aws.snowflakecomputing.com" jdbc_url_params = "...my_jdbc_url_params..." raw_data_schema = "...my_raw_data_schema..." - retention_period_days = 5 + retention_period_days = 9 role = "AIRBYTE_ROLE" schema = "AIRBYTE_SCHEMA" + use_merge_for_upsert = false username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "f6fed365-1e7d-4549-a735-da213c86a8b9" - name = "Santiago Will" - workspace_id = "53876e3d-e30a-486e-8df1-9faac84c3184" + definition_id = "89a0dc02-329a-45ca-a9f3-888495eab20e" + name = "Mrs. Kelvin Dickens" + workspace_id = "3624c439-0072-45fa-be33-722ced92f8e0" } \ 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 0de2a8986..501c72446 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 = false + omit_raw_text = true processing = { - chunk_overlap = 2 - chunk_size = 0 + chunk_overlap = 9 + chunk_size = 2 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 = 6 + split_level = 4 } } } } - definition_id = "6a04bb96-66e7-4d15-a7ee-dd4643586b68" - name = "Tommie Sporer I" - workspace_id = "c292fcfa-b73b-49ba-9d30-45674ad28dce" + definition_id = "51e7d549-6735-4da2-93c8-6a8b9fef8f53" + name = "Jessie Jones" + workspace_id = "de30a86e-4df1-49fa-ac84-c31846ef3644" } \ 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 6462e02c6..e17fb737d 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 = "Arch_Stehr" + username = "Lillian.Keebler" } - definition_id = "d713664c-8ab0-488c-a48e-91396f340754" - name = "Mr. Eula Heidenreich" - workspace_id = "86d04e60-8039-4bc7-ab07-32a47524bb49" + definition_id = "4bb9666e-7d15-4e7e-add4-643586b689fd" + name = "Eric Fadel" + workspace_id = "92fcfab7-3b9b-4a5d-b045-674ad28dce71" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_timeplus/import.sh b/examples/resources/airbyte_destination_timeplus/import.sh new file mode 100644 index 000000000..891a33cfa --- /dev/null +++ b/examples/resources/airbyte_destination_timeplus/import.sh @@ -0,0 +1 @@ +terraform import airbyte_destination_timeplus.my_airbyte_destination_timeplus "" diff --git a/examples/resources/airbyte_destination_timeplus/resource.tf b/examples/resources/airbyte_destination_timeplus/resource.tf new file mode 100644 index 000000000..1faf861e2 --- /dev/null +++ b/examples/resources/airbyte_destination_timeplus/resource.tf @@ -0,0 +1,9 @@ +resource "airbyte_destination_timeplus" "my_destination_timeplus" { + configuration = { + apikey = "...my_apikey..." + endpoint = "https://us-west-2.timeplus.cloud/workspace_id" + } + definition_id = "d7fd7136-64c8-4ab0-88c2-48e91396f340" + name = "Samantha Gleason" + workspace_id = "500686d0-4e60-4803-9bc7-eb0732a47524" +} \ 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 6151c2792..69f43fe83 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 = 0 + batch_size = 7 host = "...my_host..." path = "...my_path..." port = "...my_port..." protocol = "...my_protocol..." } - definition_id = "aa753ad1-1902-4ba1-8886-0231ad193af4" - name = "Raymond McDermott" - workspace_id = "c92d33ca-e7ed-4b40-9c23-9e69c6f21d65" + definition_id = "b490aa75-3ad1-4190-aba1-88860231ad19" + name = "Sandy Wuckert" + workspace_id = "1985c92d-33ca-4e7e-9b40-1c239e69c6f2" } \ 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 4bc1f2c19..5a9e8d0a8 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 = "173cccbb-c51a-43ca-a62e-557cba0d3380" - name = "Beverly Murray" - workspace_id = "67fcf379-fa40-411e-ae8d-b1144f7f4dcb" + definition_id = "d654173c-ccbb-4c51-a3ca-a62e557cba0d" + name = "Mr. Sherry Leuschke" + workspace_id = "a5767fcf-379f-4a40-91ea-e8db1144f7f4" } \ 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 2514d9359..46d876414 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 = 1 - default_vectorizer = "text2vec-palm" + batch_size = 9 + default_vectorizer = "text2vec-transformers" host = "https://my-cluster.weaviate.network" tenant_id = "...my_tenant_id..." text_field = "...my_text_field..." } - omit_raw_text = false + omit_raw_text = true processing = { - chunk_overlap = 0 - chunk_size = 5 + chunk_overlap = 1 + chunk_size = 6 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 = 4 + split_level = 0 } } } } - definition_id = "8467e5cd-3332-485c-bcc3-fde334f786aa" - name = "Dale Padberg" - workspace_id = "527fe19e-b1bf-48ee-a339-467597e801e6" + definition_id = "0858467e-5cd3-4332-85c7-cc3fde334f78" + name = "Maggie Nolan" + workspace_id = "aaf527fe-19eb-41bf-8ee2-339467597e80" } \ 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 59806f513..e8cfd16c7 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 = "Jonathan.Mante" + username = "Heath_Klocko" } - definition_id = "6f396c7c-6bf7-4372-8213-ca1059f1e303" - name = "Nancy Weimann PhD" - workspace_id = "aa50681b-c3ad-4b09-8c01-3842c101e265" + definition_id = "9a46f396-c7c6-4bf7-b724-213ca1059f1e" + name = "Patricia Franecki DVM" + workspace_id = "c0eaa506-81bc-43ad-b090-c013842c101e" } \ No newline at end of file diff --git a/examples/resources/airbyte_permission/resource.tf b/examples/resources/airbyte_permission/resource.tf index c074b4b46..2b302b5a6 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 = "eebc230b-1509-44cc-a185-4edb75e7d1c9" - permission_type = "workspace_reader" - user_id = "dc2da362-faf1-4b28-be26-cb1bb0550b4e" - workspace_id = "344126e7-f293-436e-a378-18d15373da8d" + organization_id = "265eebc2-30b1-4509-8cc2-1854edb75e7d" + permission_type = "organization_admin" + user_id = "c9ddc2da-362f-4af1-b28f-e26cb1bb0550" + workspace_id = "b4e34412-6e7f-4293-b6e2-37818d15373d" } \ 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 b89daf43f..5169ab2e5 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 = "6eef0475-7630-4ddb-82db-f188dfabd571" - name = "Joyce Pagac" + definition_id = "a8d6eef0-4757-4630-9dbc-2dbf188dfabd" + name = "Mr. Colleen Botsford" secret_id = "...my_secret_id..." - workspace_id = "1dffa69f-e714-43a3-a9a2-44d7bc1a5a6e" + workspace_id = "c61dffa6-9fe7-4143-a3e9-a244d7bc1a5a" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_airbyte/import.sh b/examples/resources/airbyte_source_airbyte/import.sh new file mode 100644 index 000000000..752a12393 --- /dev/null +++ b/examples/resources/airbyte_source_airbyte/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_airbyte.my_airbyte_source_airbyte "" diff --git a/examples/resources/airbyte_source_airbyte/resource.tf b/examples/resources/airbyte_source_airbyte/resource.tf new file mode 100644 index 000000000..0a9f191da --- /dev/null +++ b/examples/resources/airbyte_source_airbyte/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_airbyte" "my_source_airbyte" { + configuration = { + client_id = "...my_client_id..." + client_secret = "...my_client_secret..." + start_date = "2022-02-13T07:54:38.533Z" + } + definition_id = "1cc19313-7221-4402-bee7-1b638bd648d5" + name = "Nina Boyle" + secret_id = "...my_secret_id..." + workspace_id = "feb93d4b-bde9-4f2b-b80c-d3fe4ad28293" +} \ 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 f38abf691..b63f86891 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 = "c1931372-2140-427e-a71b-638bd648d548" - name = "Lucille O'Conner" + definition_id = "45275644-5179-430e-98d4-3c0dabba6ef9" + name = "Myron Emard" secret_id = "...my_secret_id..." - workspace_id = "b93d4bbd-e9f2-4bb8-8cd3-fe4ad282938c" + workspace_id = "744fd252-e57a-4a67-bd28-259f0c220e39" } \ 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 2b722b7bf..efa7969b6 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-08-20T20:34:02.471Z" + token_expiry_date = "2022-08-17T07:42:16.884Z" } } } - definition_id = "27564451-7930-4ed8-943c-0dabba6ef9fc" - name = "Krista Franecki" + definition_id = "0d6ef09f-b849-4b0b-9f3d-5ca96c63354a" + name = "Juan Smitham" secret_id = "...my_secret_id..." - workspace_id = "4fd252e5-7aa6-473d-a825-9f0c220e39e1" + workspace_id = "c3d11ff9-34df-40d7-96d8-b0d90daf9186" } \ 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 b6a19e264..ebf45edb6 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 = 3 + look_back_window = 10 marketplace_ids = [ "...", ] @@ -10,17 +10,17 @@ resource "airbyte_source_amazon_ads" "my_source_amazonads" { 4, ] refresh_token = "...my_refresh_token..." - region = "FE" + region = "NA" report_record_types = [ - "targets", + "keywords", ] start_date = "2022-10-10" state_filter = [ "archived", ] } - definition_id = "849b0bdf-3d5c-4a96-8633-54ae1d23c3d1" - name = "Jaime Weimann" + definition_id = "3879ec56-6b1d-41d8-bb57-bf001ddb3cf0" + name = "Hazel Stehr" secret_id = "...my_secret_id..." - workspace_id = "4df0d756-d8b0-4d90-9af9-186ab63a7b2e" + workspace_id = "7d201b0d-069b-4b26-a6b9-f25aa9f8c7d4" } \ 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 37d870f68..cd6afd823 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 = "Seller" - aws_environment = "SANDBOX" + aws_environment = "PRODUCTION" lwa_app_id = "...my_lwa_app_id..." lwa_client_secret = "...my_lwa_client_secret..." period_in_days = 5 refresh_token = "...my_refresh_token..." - region = "MX" + region = "AU" replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" report_options_list = [ @@ -17,13 +17,14 @@ resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" option_value = "...my_option_value..." }, ] - report_name = "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING" + report_name = "GET_XML_BROWSE_TREE_DATA" stream_name = "...my_stream_name..." }, ] + wait_to_avoid_fatal_errors = false } - definition_id = "b1d1d8bb-57bf-4001-9db3-cf074d627d20" - name = "Karla Adams III" + definition_id = "e8959afe-ef69-4ead-9e5d-3690efc6e828" + name = "Walter Spinka" secret_id = "...my_secret_id..." - workspace_id = "9bb26e6b-9f25-4aa9-b8c7-d4107048d9ff" + workspace_id = "db5daa9e-a927-4cae-bb29-c85e6b856286" } \ 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 5dbac793c..0be466cc9 100644 --- a/examples/resources/airbyte_source_amazon_sqs/resource.tf +++ b/examples/resources/airbyte_source_amazon_sqs/resource.tf @@ -2,16 +2,16 @@ resource "airbyte_source_amazon_sqs" "my_source_amazonsqs" { configuration = { access_key = "xxxxxHRNxxx3TBxxxxxx" attributes_to_return = "attr1,attr2" - delete_messages = true + delete_messages = false max_batch_size = 5 max_wait_time = 5 queue_url = "https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue" - region = "ap-southeast-4" + region = "ap-northeast-1" secret_key = "hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz" visibility_timeout = 15 } - definition_id = "afeef69e-ad1e-45d3-a90e-fc6e828b1d2d" - name = "Wm Herman" + definition_id = "f83c21b5-17b1-46f1-b884-6bcd51374519" + name = "Renee Schamberger" secret_id = "...my_secret_id..." - workspace_id = "a9ea927c-ae7b-429c-85e6-b85628652e0f" + workspace_id = "360526ae-8aa3-4c4f-a879-13b8668105e1" } \ 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 258606a20..379514dae 100644 --- a/examples/resources/airbyte_source_amplitude/resource.tf +++ b/examples/resources/airbyte_source_amplitude/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_amplitude" "my_source_amplitude" { configuration = { api_key = "...my_api_key..." - data_region = "EU Residency Server" + data_region = "Standard Server" request_time_range = 5 secret_key = "...my_secret_key..." start_date = "2021-01-25T00:00:00Z" } - definition_id = "21b517b1-6f1f-4884-abcd-5137451945c4" - name = "Mrs. Sylvia Howe" + definition_id = "b2a875a1-ca19-40e9-9bd1-182a17eb0af6" + name = "Teri Wehner" secret_id = "...my_secret_id..." - workspace_id = "6ae8aa3c-4f28-4791-bb86-68105e1180fb" + workspace_id = "73356f39-bea5-4e20-89f0-e8905c8543b9" } \ 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 836f3c03a..e6dd158ba 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 = "2a875a1c-a190-4e95-bd11-82a17eb0af63" - name = "Darin Windler" + definition_id = "184cac7d-cada-4d29-b8da-5765e7880f00" + name = "Curtis Berge" secret_id = "...my_secret_id..." - workspace_id = "3356f39b-ea5e-4208-9f0e-8905c8543b91" + workspace_id = "ef9a90fa-7f8f-4441-b58d-fc559a0bee1c" } \ 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 875c99c4b..33e79e701 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 = "84cac7dc-adad-4293-8da5-765e7880f00a" - name = "Brenda Stanton" + definition_id = "5ff22338-9204-4226-9684-e73ef602c915" + name = "Vernon Mills" secret_id = "...my_secret_id..." - workspace_id = "f9a90fa7-f8f4-441b-98df-c559a0bee1c5" + workspace_id = "f5896557-ce17-4ccd-ab10-d6388d4fdfb9" } \ 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 08b38dd65..9302d1fc2 100644 --- a/examples/resources/airbyte_source_asana/resource.tf +++ b/examples/resources/airbyte_source_asana/resource.tf @@ -12,8 +12,8 @@ resource "airbyte_source_asana" "my_source_asana" { ] test_mode = true } - definition_id = "f2233892-0422-4616-84e7-3ef602c915f5" - name = "Ron Schimmel" + definition_id = "f007bc04-191b-4eb0-97f0-7c546621bdba" + name = "Robert Feeney" secret_id = "...my_secret_id..." - workspace_id = "896557ce-17cc-4d6b-90d6-388d4fdfb9af" + workspace_id = "f51ed0a8-181e-46e5-9fd9-ebe7b2f5ca6e" } \ 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 e1f308e30..e13df62eb 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 = "007bc041-91be-4b05-bf07-c546621bdba9" - name = "Victoria Haley" + definition_id = "cdfaf2b0-5210-4208-a036-b268d758466c" + name = "Hector Ebert Jr." secret_id = "...my_secret_id..." - workspace_id = "51ed0a81-81e6-4e55-bd9e-be7b2f5ca6ec" + workspace_id = "b1b394b8-4acd-4f8d-b6a4-f7e23711b260" } \ 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 bc82603df..e77886ba2 100644 --- a/examples/resources/airbyte_source_aws_cloudtrail/resource.tf +++ b/examples/resources/airbyte_source_aws_cloudtrail/resource.tf @@ -3,10 +3,14 @@ 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..." - start_date = "2021-01-01" + lookup_attributes_filter = { + attribute_key = "EventName" + attribute_value = "ConsoleLogin" + } + start_date = "2021-01-01" } - definition_id = "af2b0521-0208-4e03-ab26-8d758466c963" - name = "Justin Bauch MD" + definition_id = "38a1edcb-36cd-4a3d-91cb-c15623ec6453" + name = "Doyle Hirthe" secret_id = "...my_secret_id..." - workspace_id = "394b84ac-df8d-4b6a-8f7e-23711b260f5d" + workspace_id = "cf0d0e20-de16-4b8d-a7b8-143f851cf99c" } \ 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 aa465b413..388785e66 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 = 7 + days_to_sync_if_history_is_full = 9 format = { avro_format = { - double_as_string = true + double_as_string = false } } 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 = "Al Sanford" + name = "Mrs. Olive Hills" primary_key = "...my_primary_key..." schemaless = true validation_policy = "Wait for Discover" }, ] } - definition_id = "da3d51cb-c156-423e-8645-3ce6c3cf0d0e" - name = "Sandra Stroman III" + definition_id = "cf4f6487-4e62-4c58-9879-2fd48887cb19" + name = "Jim Kuvalis" secret_id = "...my_secret_id..." - workspace_id = "b8da7b81-43f8-451c-b99c-7fd70e50457d" + workspace_id = "8b4573d6-6d00-47e5-aa2e-4396e7403ea2" } \ 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 a83515de6..553cc97aa 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 = "f4f64874-e62c-458d-8792-fd48887cb19c" - name = "Vickie Ullrich" + definition_id = "50959a4f-a50e-4807-886b-d0cbf5314eea" + name = "Lana Nienow MD" secret_id = "...my_secret_id..." - workspace_id = "b4573d66-d007-4e52-a2e4-396e7403ea2d" + workspace_id = "a3736727-1c78-4a9a-a960-3df323c7d784" } \ 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 61bd773c6..da30ce571 100644 --- a/examples/resources/airbyte_source_bamboo_hr/resource.tf +++ b/examples/resources/airbyte_source_bamboo_hr/resource.tf @@ -2,11 +2,12 @@ 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 = false + custom_reports_include_default_fields = true + start_date = "2022-01-27T18:56:04.985Z" subdomain = "...my_subdomain..." } - definition_id = "0959a4fa-50e8-407c-86bd-0cbf5314eea0" - name = "Miss Oliver Crooks" + definition_id = "f8882a19-738b-4218-b704-94da21b79cfd" + name = "Ira Padberg" secret_id = "...my_secret_id..." - workspace_id = "37367271-c78a-49aa-9603-df323c7d7845" + workspace_id = "821deb72-64da-4d9e-9fb5-3126691bfb5d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_basecamp/import.sh b/examples/resources/airbyte_source_basecamp/import.sh new file mode 100644 index 000000000..89abab22c --- /dev/null +++ b/examples/resources/airbyte_source_basecamp/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_basecamp.my_airbyte_source_basecamp "" diff --git a/examples/resources/airbyte_source_basecamp/resource.tf b/examples/resources/airbyte_source_basecamp/resource.tf new file mode 100644 index 000000000..e937bd835 --- /dev/null +++ b/examples/resources/airbyte_source_basecamp/resource.tf @@ -0,0 +1,13 @@ +resource "airbyte_source_basecamp" "my_source_basecamp" { + configuration = { + account_id = 73.8 + client_id = "...my_client_id..." + client_refresh_token_2 = "...my_client_refresh_token_2..." + client_secret = "...my_client_secret..." + start_date = "2021-03-02T21:10:19.438Z" + } + definition_id = "a24da51f-b73f-4472-b2e8-bbfe18227a33" + name = "Shirley Lesch" + secret_id = "...my_secret_id..." + workspace_id = "445f49be-6259-49f1-bb5c-61c8d2f7dd6e" +} \ 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 36bb2e4db..0e3cfb5f2 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 = "b7f8882a-1973-48b2-98b7-0494da21b79c" - name = "Lionel McKenzie" + definition_id = "e9c7e740-1902-4821-9543-0f8964a321f4" + name = "Mildred Weimann" secret_id = "...my_secret_id..." - workspace_id = "f3821deb-7264-4dad-9e5f-b53126691bfb" + workspace_id = "aad078a3-612f-4cb5-a7fd-d854e0c39c22" } \ 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 6e96a442d..bd6b3831e 100644 --- a/examples/resources/airbyte_source_bing_ads/resource.tf +++ b/examples/resources/airbyte_source_bing_ads/resource.tf @@ -2,7 +2,7 @@ resource "airbyte_source_bing_ads" "my_source_bingads" { configuration = { account_names = [ { - name = "Eula Ritchie" + name = "Bert Bins" operator = "Equals" }, ] @@ -10,22 +10,22 @@ resource "airbyte_source_bing_ads" "my_source_bingads" { client_secret = "...my_client_secret..." custom_reports = [ { - name = "Account Performance" + name = "AdDynamicTextPerformanceReport" report_aggregation = "...my_report_aggregation..." report_columns = [ "...", ] - reporting_object = "ProductNegativeKeywordConflictReportRequest" + reporting_object = "GeographicPerformanceReportRequest" }, ] developer_token = "...my_developer_token..." - lookback_window = 5 + lookback_window = 1 refresh_token = "...my_refresh_token..." - reports_start_date = "2022-01-16" + reports_start_date = "2022-01-11" tenant_id = "...my_tenant_id..." } - definition_id = "472f2e8b-bfe1-4822-ba33-308df445f49b" - name = "Chester Dach" + definition_id = "f7f1a27e-8fd2-4f19-bd4f-9ab29a2f8317" + name = "Frankie Runte" secret_id = "...my_secret_id..." - workspace_id = "9f17b5c6-1c8d-42f7-9d6e-e9c7e7401902" + workspace_id = "3eab02cc-b908-4523-9f16-a0cc4991982a" } \ 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 4323292f8..d6a7ce912 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 = "Development" + environment = "Qa" merchant_id = "...my_merchant_id..." private_key = "...my_private_key..." public_key = "...my_public_key..." start_date = "2020" } - definition_id = "430f8964-a321-4f43-9fb3-aad078a3612f" - name = "Abraham Herzog" + definition_id = "a7074f01-6f72-4127-b33f-8652b2551b02" + name = "Mr. Jana Runolfsson" secret_id = "...my_secret_id..." - workspace_id = "fdd854e0-c39c-422f-a17d-f57adf10725f" + workspace_id = "4a7ffb26-8dc1-4870-87d3-7ac99fd78516" } \ 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 71884f9ab..1d5b116f1 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 = "2021-08-21" + start_date = "2022-10-27" url = "...my_url..." } - definition_id = "f1a27e8f-d2f1-493d-8f9a-b29a2f8317de" - name = "Herbert Torphy" + definition_id = "305e0c1f-4b65-4d9e-bd75-7e5946981cb4" + name = "Maria Lubowitz" secret_id = "...my_secret_id..." - workspace_id = "ab02ccb9-0852-43df-96a0-cc4991982a68" + workspace_id = "1686308e-adb7-43c3-a9be-0c12ece59b9f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_breezy_hr/import.sh b/examples/resources/airbyte_source_breezy_hr/import.sh new file mode 100644 index 000000000..9fd85e7ef --- /dev/null +++ b/examples/resources/airbyte_source_breezy_hr/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_breezy_hr.my_airbyte_source_breezy_hr "" diff --git a/examples/resources/airbyte_source_breezy_hr/resource.tf b/examples/resources/airbyte_source_breezy_hr/resource.tf new file mode 100644 index 000000000..03237e8c1 --- /dev/null +++ b/examples/resources/airbyte_source_breezy_hr/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_breezy_hr" "my_source_breezyhr" { + configuration = { + api_key = "...my_api_key..." + company_id = "...my_company_id..." + } + 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_calendly/import.sh b/examples/resources/airbyte_source_calendly/import.sh new file mode 100644 index 000000000..f4520e70a --- /dev/null +++ b/examples/resources/airbyte_source_calendly/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_calendly.my_airbyte_source_calendly "" diff --git a/examples/resources/airbyte_source_calendly/resource.tf b/examples/resources/airbyte_source_calendly/resource.tf new file mode 100644 index 000000000..466b618f1 --- /dev/null +++ b/examples/resources/airbyte_source_calendly/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_calendly" "my_source_calendly" { + configuration = { + api_key = "...my_api_key..." + start_date = "2022-09-12T17:45:07.121Z" + } + definition_id = "ebc3680a-bb37-46bc-a66a-7c0ce20da3e9" + name = "Donnie Price II" + secret_id = "...my_secret_id..." + workspace_id = "54cb2418-93e1-4da4-ac4f-685d205011b8" +} \ 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 b25f6ddc4..b7b177353 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 = "Ceasar63" + user_name = "Joelle30" user_secret = "...my_user_secret..." } } start_date = "2021-01-01T00:00:00Z" } - definition_id = "7074f016-f721-427f-b3f8-652b2551b023" - name = "Mr. Spencer Casper" + definition_id = "73b75739-1086-418e-9144-5d83c494a849" + name = "Ms. Kristopher Hammes" secret_id = "...my_secret_id..." - workspace_id = "a7ffb268-dc18-4708-bd37-ac99fd785161" + workspace_id = "0e32c2e3-02e6-4de9-ab3e-43098446f983" } \ 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 909547d23..9b9bc0c2e 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 = "5e0c1f4b-65d9-4ebd-b57e-5946981cb460" - name = "Ms. Franklin Mraz" + definition_id = "422d15b8-2862-41a8-b7d2-e625cdd80ba5" + name = "Aubrey Harber" secret_id = "...my_secret_id..." - workspace_id = "6308eadb-73c3-469b-a0c1-2ece59b9fbae" + workspace_id = "6fc10ca6-7a82-47c3-9349-f444d8a8589d" } \ 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 b9eb66f19..227b80d57 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 = "e4749058-8d0e-4293-9574-a681eea74b87" - name = "Harold Willms IV" + definition_id = "94dcfaea-5500-4380-9e9f-446900c8feba" + name = "Mamie Green" secret_id = "...my_secret_id..." - workspace_id = "7d33223d-80bb-4993-a2d2-f45974a2ebc3" + workspace_id = "fea08abd-da32-48f6-8373-e06663420a6a" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_clazar/import.sh b/examples/resources/airbyte_source_clazar/import.sh new file mode 100644 index 000000000..3f6d9cf82 --- /dev/null +++ b/examples/resources/airbyte_source_clazar/import.sh @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..8102eaf55 --- /dev/null +++ b/examples/resources/airbyte_source_clazar/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_clazar" "my_source_clazar" { + configuration = { + client_id = "...my_client_id..." + client_secret = "...my_client_secret..." + } + definition_id = "3ab4d447-55b9-410e-9c99-9e89cbd0e8f2" + name = "Vincent Kshlerin" + secret_id = "...my_secret_id..." + workspace_id = "1fbec883-da2f-4ecd-acab-29e0bc6002c3" +} \ 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 873b8e3a0..3431ac94d 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 = "Johnpaul_Barton69" + username = "Otho19" } - definition_id = "376bce66-a7c0-4ce2-8da3-e9aab71454cb" - name = "Charlotte Blick" + definition_id = "e8783d50-d4d2-4b80-850d-c344f66cbf0e" + name = "Trevor Bednar" secret_id = "...my_secret_id..." - workspace_id = "3e1da46c-4f68-45d2-8501-1b8862473b75" + workspace_id = "994ace41-dc5b-442f-aa22-8e88647f2d42" } \ 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 5a2927679..6ee8b9b22 100644 --- a/examples/resources/airbyte_source_clickup_api/resource.tf +++ b/examples/resources/airbyte_source_clickup_api/resource.tf @@ -1,14 +1,10 @@ resource "airbyte_source_clickup_api" "my_source_clickupapi" { configuration = { api_token = "...my_api_token..." - folder_id = "...my_folder_id..." - include_closed_tasks = false - list_id = "...my_list_id..." - space_id = "...my_space_id..." - team_id = "...my_team_id..." + include_closed_tasks = true } - definition_id = "39108618-e914-445d-83c4-94a849cd517f" - name = "Sonja Douglas" + definition_id = "506042c1-c656-461b-a485-a060238eba13" + name = "Joyce Shields" secret_id = "...my_secret_id..." - workspace_id = "2e302e6d-e92b-43e4-b098-446f9835e642" + workspace_id = "00cfe1ba-68d3-4405-82b9-6029febd39e6" } \ 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 a0df7f62b..907e06ddd 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 = "2d15b828-621a-4877-92e6-25cdd80ba5ff" - name = "Tiffany Runolfsdottir" + definition_id = "abf17c2d-50cb-46e6-bf33-2bdf145775fc" + name = "Miss Ira Lesch" secret_id = "...my_secret_id..." - workspace_id = "c10ca67a-827c-43d3-89f4-44d8a8589d84" + workspace_id = "466bf78b-3b7d-4ede-947f-c7c1cb53c351" } \ 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 a2fa1e600..c4293170d 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 = "dcfaea55-0038-401e-9f44-6900c8feba7b" - name = "Annette Schiller" + definition_id = "9ddb3b3d-7401-439d-82cf-2cb416442d85" + name = "Vernon Ratke" secret_id = "...my_secret_id..." - workspace_id = "a08abdda-328f-46c3-b3e0-6663420a6a3a" + workspace_id = "82e70e18-a817-42f9-b227-1c9f9cbaa542" } \ 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 2fff02eac..207bbf235 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 = "b4d44755-b910-4e5c-999e-89cbd0e8f2a3" - name = "Dr. Alexandra Runolfsson" + definition_id = "e6e08096-1d84-4c3f-bc24-f860fce85198" + name = "Andrew Cartwright" secret_id = "...my_secret_id..." - workspace_id = "ec883da2-fecd-42ca-b29e-0bc6002c3cc1" + workspace_id = "726581ee-6770-4fa8-ac1b-a804bd6457a4" } \ 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 22059af01..f7a60d3f0 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 = 2 + limit = 10 period = "2MTH" start_date = "2019-01-01T00:00:00" symbol_id = "...my_symbol_id..." } - definition_id = "8783d50d-4d2b-480c-90dc-344f66cbf0e9" - name = "Larry Hayes" + definition_id = "851a3541-ba6f-45d9-8d5a-8a349e2072bd" + name = "Jan DuBuque IV" secret_id = "...my_secret_id..." - workspace_id = "94ace41d-c5b4-42f2-a228-e88647f2d427" + workspace_id = "dbe50fcb-32a7-4817-babb-82e6a7189e92" } \ 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 8dc0d30dd..da3b5294a 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 = "06042c1c-6566-41b2-885a-060238eba136" - name = "Angelina Feeney Jr." + definition_id = "6d74638d-1409-4463-9cf5-dd4a0c05f536" + name = "Reginald Rath" secret_id = "...my_secret_id..." - workspace_id = "cfe1ba68-d340-4502-b960-29febd39e6ab" + workspace_id = "8b8f8f6a-fbf3-465d-a87e-087e3905b6a4" } \ 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 e879e0864..93892bbf1 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 = "Wilmer_Bernier" + username = "Barney_Koss91" } - definition_id = "2d50cb6e-6ff3-432b-9f14-5775fcbb81a7" - name = "Tonya Kautzer" + definition_id = "b4f73b7e-8dc3-471e-8bee-10511b439ed1" + name = "Stephanie Runte" secret_id = "...my_secret_id..." - workspace_id = "78b3b7de-de54-47fc-bc1c-b53c351689dd" + workspace_id = "9f9b4783-ac23-42bf-a41c-80b23345c949" } \ 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 3287549fd..2ad769560 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 = "740139dc-2cf2-4cb4-9644-2d85f5b6382e" - name = "Ms. Laura Upton" + definition_id = "9f5a34ff-680c-488d-8e9f-7431721e4227" + name = "Miss Dewey Hintz" secret_id = "...my_secret_id..." - workspace_id = "8172f932-271c-49f9-8baa-542e6e080961" + workspace_id = "6ec345b5-c1ba-4e74-b26a-8cd9c5aad47a" } \ 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 c33357395..ec91e62c1 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 = "84c3fbc2-4f86-40fc-a851-98c116e72658" - name = "Kellie Torphy" + definition_id = "da11e10d-002e-41c7-bf9b-a1e39a63be20" + name = "Jermaine Ortiz" secret_id = "...my_secret_id..." - workspace_id = "70fa8ec1-ba80-44bd-a457-a40e8851a354" + workspace_id = "93eb808e-c8c0-4a1f-9167-1a56d068f4b5" } \ 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 1b393e5df..76acc6307 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 = "1ba6f5d9-0d5a-48a3-89e2-072bdff3818d" - name = "Dr. Rogelio Harris" + definition_id = "e4c19596-433e-41d5-9484-aac586d05524" + name = "Lynne Hartmann" secret_id = "...my_secret_id..." - workspace_id = "b32a7817-3abb-482e-aa71-89e9256d7463" + workspace_id = "5b457a2c-2618-4fe1-b91d-cce8e649d767" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_customer_io/import.sh b/examples/resources/airbyte_source_customer_io/import.sh new file mode 100644 index 000000000..250d86ee2 --- /dev/null +++ b/examples/resources/airbyte_source_customer_io/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_customer_io.my_airbyte_source_customer_io "" diff --git a/examples/resources/airbyte_source_customer_io/resource.tf b/examples/resources/airbyte_source_customer_io/resource.tf new file mode 100644 index 000000000..c1be42997 --- /dev/null +++ b/examples/resources/airbyte_source_customer_io/resource.tf @@ -0,0 +1,9 @@ +resource "airbyte_source_customer_io" "my_source_customerio" { + configuration = { + app_api_key = "...my_app_api_key..." + } + definition_id = "5fb58122-af6a-48ac-a553-6a205f1e4d30" + name = "Alonzo Parker" + secret_id = "...my_secret_id..." + workspace_id = "00594fbd-8663-414c-ace0-2f96b833556f" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_datadog/import.sh b/examples/resources/airbyte_source_datadog/import.sh new file mode 100644 index 000000000..b7fba3c46 --- /dev/null +++ b/examples/resources/airbyte_source_datadog/import.sh @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..164df7551 --- /dev/null +++ b/examples/resources/airbyte_source_datadog/resource.tf @@ -0,0 +1,22 @@ +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 = "Miss Carolyn MacGyver" + query = "...my_query..." + }, + ] + query = "...my_query..." + site = "us5.datadoghq.com" + start_date = "2022-10-01T00:00:00Z" + } + definition_id = "cf1afcf9-4e3c-479c-beca-1c7573a5bbba" + name = "Howard Stoltenberg" + secret_id = "...my_secret_id..." + workspace_id = "0a2cef78-1247-45bc-a9a4-804a9e0ddc31" +} \ 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 a657b7296..8c00856b6 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 = "8d140946-39cf-45dd-8a0c-05f536f6b9b8" - name = "Dave Willms" + definition_id = "56b2ffd5-d6c6-49da-9497-add71ffdea58" + name = "Kristi Beahan" secret_id = "...my_secret_id..." - workspace_id = "6afbf365-d687-4e08-be39-05b6a417faeb" + workspace_id = "09edcef2-c435-47e7-ab14-9e6fe9a76bd2" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_dbt/import.sh b/examples/resources/airbyte_source_dbt/import.sh new file mode 100644 index 000000000..46590c96d --- /dev/null +++ b/examples/resources/airbyte_source_dbt/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_dbt.my_airbyte_source_dbt "" diff --git a/examples/resources/airbyte_source_dbt/resource.tf b/examples/resources/airbyte_source_dbt/resource.tf new file mode 100644 index 000000000..b3f6ccccf --- /dev/null +++ b/examples/resources/airbyte_source_dbt/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_dbt" "my_source_dbt" { + configuration = { + account_id = "...my_account_id..." + api_key_2 = "...my_api_key_2..." + } + definition_id = "71d6f7a7-7e51-4b04-b8d5-2e6bc1e22381" + name = "Clint Sanford" + secret_id = "...my_secret_id..." + workspace_id = "9642f3c2-fe19-4c32-adfe-e92bc3373ad2" +} \ 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 79cc1f88f..38b303140 100644 --- a/examples/resources/airbyte_source_delighted/resource.tf +++ b/examples/resources/airbyte_source_delighted/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_delighted" "my_source_delighted" { configuration = { api_key = "...my_api_key..." - since = "2022-05-30T04:50:23Z" + since = "2022-05-30 04:50:23" } - definition_id = "3b7e8dc3-71ec-4bee-9051-1b439ed171c9" - name = "Kirk Windler" + definition_id = "7f28ef97-5a7b-4102-a548-7915a2f449e5" + name = "Jose Price" secret_id = "...my_secret_id..." - workspace_id = "4783ac23-2bfa-441c-80b2-3345c949a955" + workspace_id = "d5fb4b99-e2f7-4dc2-833c-76bbd55f566b" } \ 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 c5d90898e..2250840ef 100644 --- a/examples/resources/airbyte_source_dixa/resource.tf +++ b/examples/resources/airbyte_source_dixa/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_dixa" "my_source_dixa" { batch_size = 1 start_date = "YYYY-MM-DD" } - definition_id = "a34ff680-c88d-48e9-b743-1721e4227fd5" - name = "Patty Huel" + definition_id = "0498ec40-fd8a-4d91-a1a0-5c5e889977ea" + name = "Gary Little" secret_id = "...my_secret_id..." - workspace_id = "c345b5c1-bae7-4472-aa8c-d9c5aad47afd" + workspace_id = "3c2d3308-2ab8-440e-9611-2c1fda0210a5" } \ 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 2c0c889df..544c7928e 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 = "a11e10d0-02e1-4c73-b9ba-1e39a63be209" - name = "Ernesto Murazik" + definition_id = "cfbec287-654f-412b-8840-28fbb0cddcf8" + name = "Julia Watsica" secret_id = "...my_secret_id..." - workspace_id = "3eb808ec-8c0a-41f1-9671-a56d068f4b5e" + workspace_id = "60165466-352d-4a9b-84e2-6c5d5cf50fbf" } \ 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 97063d51b..8d20e8a59 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 = "4c195964-33e1-4d51-884a-ac586d055244" - name = "Floyd Hackett" + definition_id = "713464ed-5bf6-4d67-b06c-c548e68cfaef" + name = "Dr. Tom Langworth" secret_id = "...my_secret_id..." - workspace_id = "b457a2c2-618f-4e1b-91dc-ce8e649d7675" + workspace_id = "143ee10f-8279-4e42-bb2c-340e1d4b428b" } \ 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 937bba1d8..d52d7ae5f 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 = "me-central-1" + region = "af-south-1" reserved_attribute_names = "name, field_name, field-name" } - definition_id = "58122af6-a8ac-4655-b6a2-05f1e4d309ea" - name = "Mrs. Carole Beer" + definition_id = "c62aeeab-6a16-4bc0-b1be-5567777324c6" + name = "Horace Kunde" secret_id = "...my_secret_id..." - workspace_id = "4fbd8663-14ca-4ce0-af96-b833556f7e41" + workspace_id = "dac63878-54b6-49c4-ae8b-9a534c06fe5a" } \ 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 b66e49596..4c8a6e08e 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 = "81b36cf1-afcf-494e-bc79-cbeca1c7573a" - name = "Candice Rath" + definition_id = "2e94eff2-11ad-4fc7-a1dd-1f80239a9296" + name = "Kimberly Schamberger" secret_id = "...my_secret_id..." - workspace_id = "82d4c0a2-cef7-4812-875b-ca9a4804a9e0" + workspace_id = "eb11448c-1cd3-4afe-9ef8-5381e22d9fe1" } \ 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 e7f64e5d0..1a453f64e 100644 --- a/examples/resources/airbyte_source_exchange_rates/resource.tf +++ b/examples/resources/airbyte_source_exchange_rates/resource.tf @@ -2,11 +2,11 @@ resource "airbyte_source_exchange_rates" "my_source_exchangerates" { configuration = { access_key = "...my_access_key..." base = "USD" - ignore_weekends = false + ignore_weekends = true start_date = "YYYY-MM-DD" } - definition_id = "156b2ffd-5d6c-469d-a549-7add71ffdea5" - name = "Ms. Reginald Nienow" + definition_id = "24121e63-15be-4306-a4e8-3994413a7c75" + name = "Alexander Schroeder MD" secret_id = "...my_secret_id..." - workspace_id = "09edcef2-c435-47e7-ab14-9e6fe9a76bd2" + workspace_id = "5882c881-a087-48bf-9f7e-2fa4a63623e3" } \ 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 e6b2a8605..790f15902 100644 --- a/examples/resources/airbyte_source_facebook_marketing/resource.tf +++ b/examples/resources/airbyte_source_facebook_marketing/resource.tf @@ -6,46 +6,53 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { ] action_breakdowns_allow_empty = true ad_statuses = [ - "ADSET_PAUSED", + "PENDING_BILLING_INFO", ] adset_statuses = [ "PAUSED", ] campaign_statuses = [ - "DELETED", + "IN_PROCESS", ] 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 = [ - "standard_event_content_type", + "action_destination", ] action_report_time = "impression" breakdowns = [ - "media_text_content", + "skan_conversion_id", ] end_date = "2017-01-26T00:00:00Z" fields = [ - "video_play_curve_actions", + "video_avg_time_watched_actions", ] - insights_job_timeout = 3 - insights_lookback_window = 1 + insights_job_timeout = 0 + insights_lookback_window = 10 level = "campaign" - name = "Eleanor Prosacco" + name = "Darryl Wunsch" start_date = "2017-01-25T00:00:00Z" - time_increment = 10 + time_increment = 8 }, ] end_date = "2017-01-26T00:00:00Z" - fetch_thumbnail_images = false - insights_job_timeout = 1 - insights_lookback_window = 9 - page_size = 2 + fetch_thumbnail_images = true + insights_job_timeout = 10 + insights_lookback_window = 6 + page_size = 8 start_date = "2017-01-25T00:00:00Z" } - definition_id = "81cdc2e9-642f-43c2-be19-c32edfee92bc" - name = "Wendy Kunze" + definition_id = "a3dd0007-daef-4770-881f-95c5b8dd2d32" + name = "Stanley Kutch" secret_id = "...my_secret_id..." - workspace_id = "d2c887f2-8ef9-475a-bb10-2e5487915a2f" + workspace_id = "fec5cd0a-4fda-452f-a954-3b8620d9bb50" } \ 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 cc98bc688..32b157121 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 = false - count = 2 - parallelism = 6 - records_per_slice = 9 - seed = 3 + always_updated = true + count = 6 + parallelism = 0 + records_per_slice = 7 + seed = 6 } - definition_id = "b0b68d5f-b4b9-49e2-b7dc-2833c76bbd55" - name = "Jon Howell" + definition_id = "af77ae08-fd2c-4af8-bf04-5910a7c57057" + name = "Latoya Kuvalis" secret_id = "...my_secret_id..." - workspace_id = "4ade0498-ec40-4fd8-ad91-61a05c5e8899" + workspace_id = "169da4e6-d7c2-4fca-a386-da1d2ddf0351" } \ 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 f500a88db..ed051cff0 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 = 5 + page_size = 8 } domain = "...my_domain..." - port = 5 + port = 3 scheme = "...my_scheme..." secret = "...my_secret..." } - definition_id = "eae086e3-c2d3-4308-aab8-40e56112c1fd" - name = "Mr. Kenneth Corkery" + definition_id = "9c686900-5174-4142-9e4d-38a30ea56cdf" + name = "Todd Kuhlman" secret_id = "...my_secret_id..." - workspace_id = "5cfbec28-7654-4f12-bc84-028fbb0cddcf" + workspace_id = "f6225b4b-ae61-4112-a113-e87b490ecc6b" } \ 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 1f8fbde28..01b5be54e 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 = "excel_binary" + format = "yaml" provider = { az_blob_azure_blob_storage = { sas_token = "...my_sas_token..." @@ -9,11 +9,11 @@ resource "airbyte_source_file" "my_source_file" { storage_account = "...my_storage_account..." } } - reader_options = "{}" - url = "https://storage.googleapis.com/covid19-open-data/v2/latest/epidemiology.csv" + reader_options = "{\"sep\": \" \"}" + url = "gs://my-google-bucket/data.csv" } - definition_id = "e3e60165-4663-452d-a9b0-4e26c5d5cf50" - name = "Robin Wolf I" + definition_id = "16116fc8-03c8-4311-a97a-1ae894962943" + name = "Kristine Bailey" secret_id = "...my_secret_id..." - workspace_id = "464ed5bf-6d67-4306-8c54-8e68cfaeff48" + workspace_id = "eacfe7e0-17f9-4052-b204-0e069282dd6a" } \ 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 c704130e3..daf9468b1 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 = "0df143ee-10f8-4279-a427-b2c340e1d4b4" - name = "Mr. Carole Predovic" + definition_id = "12cb01cb-d9fa-4eed-a058-28527913edfc" + name = "Virgil Rosenbaum II" secret_id = "...my_secret_id..." - workspace_id = "62aeeab6-a16b-4c0f-9be5-567777324c6c" + workspace_id = "8e69d20e-e3e4-4cb5-9c69-5e2f08eb76e3" } \ 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 2c7ace2e7..cadcfeae0 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 = "a7fcdac6-3878-454b-a9c4-2e8b9a534c06" - name = "Merle Hills" + definition_id = "51cef20d-e4cf-4c33-ab42-c84cd8bc6076" + name = "Julio Bode" secret_id = "...my_secret_id..." - workspace_id = "e94eff21-1adf-4c72-9dd1-f80239a92966" + workspace_id = "bf0cfd3a-ed54-4ef2-8d0d-e80e3db90502" } \ 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 d157af961..d5c267f6a 100644 --- a/examples/resources/airbyte_source_freshcaller/resource.tf +++ b/examples/resources/airbyte_source_freshcaller/resource.tf @@ -4,10 +4,10 @@ resource "airbyte_source_freshcaller" "my_source_freshcaller" { domain = "snaptravel" requests_per_minute = 0 start_date = "2022-01-01T12:00:00Z" - sync_lag_minutes = 2 + sync_lag_minutes = 9 } - definition_id = "eb11448c-1cd3-4afe-9ef8-5381e22d9fe1" - name = "Kristopher Champlin" + definition_id = "2de4b8db-33d2-4b3a-a7b0-b342a10fbc47" + name = "Ms. Grant Krajcik I" secret_id = "...my_secret_id..." - workspace_id = "4121e631-5be3-406a-8e83-994413a7c75d" + workspace_id = "9037c7ee-f972-4df3-814a-349fde89ab27" } \ 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 b3f09db5f..2ba37d1a6 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 = 3 + lookback_window_in_days = 4 requests_per_minute = 8 start_date = "2020-12-01T00:00:00Z" } - definition_id = "b5882c88-1a08-478b-bdf7-e2fa4a63623e" - name = "Lucille Purdy" + definition_id = "d00caee1-2c4e-465b-97e5-4a27b617a012" + name = "Ramon Robel" secret_id = "...my_secret_id..." - workspace_id = "48ed6d0e-af7f-454c-bc36-9f9cb0a3dd00" + workspace_id = "8e1922df-283a-4614-b13a-52314031fd7b" } \ 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 9eb1c346b..ae6e9ac76 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 = "07daef77-0c81-4f95-85b8-dd2d32b37f6f" - name = "Wilbert Hettinger" + definition_id = "82b3c164-c195-40da-b1eb-ecd9b5a75a7c" + name = "Shari Rutherford PhD" secret_id = "...my_secret_id..." - workspace_id = "0a4fda52-f695-443b-8620-d9bb50480aaa" + workspace_id = "722b310b-676f-4b73-9c6d-5241e9821d4f" } \ 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 074816e53..c006c3ee6 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 = "f77ae08f-d2ca-4f83-b045-910a7c570570" - name = "Guy Langosh III" + definition_id = "c03242cc-d276-43a0-930e-b91c3df25934" + name = "Lloyd Herzog" secret_id = "...my_secret_id..." - workspace_id = "9da4e6d7-c2fc-4aa3-86da-1d2ddf0351c4" + workspace_id = "c8258f30-a271-483b-80ec-7045956c03ec" } \ 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 4b001a5d9..c3552030c 100644 --- a/examples/resources/airbyte_source_gcs/resource.tf +++ b/examples/resources/airbyte_source_gcs/resource.tf @@ -5,47 +5,27 @@ resource "airbyte_source_gcs" "my_source_gcs" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 4 + days_to_sync_if_history_is_full = 6 format = { - csv_format = { - delimiter = "...my_delimiter..." - double_quote = true - encoding = "...my_encoding..." - escape_char = "...my_escape_char..." - false_values = [ - "...", - ] - header_definition = { - autogenerated = {} - } - ignore_errors_on_fields_mismatch = true - inference_type = "Primitive Types Only" - null_values = [ - "...", - ] - quote_char = "...my_quote_char..." - skip_rows_after_header = 0 - skip_rows_before_header = 0 - strings_can_be_null = true - true_values = [ - "...", - ] + avro_format = { + double_as_string = true } } globs = [ "...", ] - input_schema = "...my_input_schema..." - legacy_prefix = "...my_legacy_prefix..." - name = "Mrs. Colleen Gusikowski" - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Wait for Discover" + input_schema = "...my_input_schema..." + legacy_prefix = "...my_legacy_prefix..." + name = "Olga Witting" + primary_key = "...my_primary_key..." + recent_n_files_to_read_for_schema_discovery = 8 + schemaless = true + validation_policy = "Skip Record" }, ] } - definition_id = "4d38a30e-a56c-4dfa-a7fb-f6225b4bae61" - name = "Anna Collier Sr." + definition_id = "92b4fd67-3f59-4a8d-8acc-9948b0061059" + name = "Dr. Cameron Rosenbaum" secret_id = "...my_secret_id..." - workspace_id = "3e87b490-ecc6-4bf7-9161-16fc803c8311" + workspace_id = "c9b0f0f3-5d94-4270-8e93-ebb36d8aaea0" } \ 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 6b96fad26..d330f67a6 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 = "a97a1ae8-9496-4294-b2a0-2ceacfe7e017" - name = "Fredrick Ankunding" + definition_id = "0f0c4c84-b89e-4625-bae8-76a32dc31e1b" + name = "Yvette Howell" secret_id = "...my_secret_id..." - workspace_id = "f2040e06-9282-4dd6-a12c-b01cbd9faeed" + workspace_id = "953bf2de-fea2-4fd1-85f4-8d3631398553" } \ 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 dc23c8c6c..54967b9d0 100644 --- a/examples/resources/airbyte_source_github/resource.tf +++ b/examples/resources/airbyte_source_github/resource.tf @@ -12,15 +12,15 @@ resource "airbyte_source_github" "my_source_github" { client_secret = "...my_client_secret..." } } - max_waiting_time = 10 + max_waiting_time = 60 repositories = [ "...", ] repository = "airbytehq/*" start_date = "2021-03-01T00:00:00Z" } - definition_id = "527913ed-fcf9-4c90-98e6-9d20ee3e4cb5" - name = "Rosalie Hoppe" + definition_id = "3206afb3-a724-4a60-9401-34e58876cb03" + name = "Jan Bernier" secret_id = "...my_secret_id..." - workspace_id = "e2f08eb7-6e35-41ce-b20d-e4cfc332b42c" + workspace_id = "ae06a57c-7c57-47af-9e5b-addd2747bbc7" } \ 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 ec3f7bd0e..fc9c8c974 100644 --- a/examples/resources/airbyte_source_gitlab/resource.tf +++ b/examples/resources/airbyte_source_gitlab/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_gitlab" "my_source_gitlab" { configuration = { - api_url = "https://gitlab.com" + api_url = "https://gitlab.company.org" credentials = { o_auth20 = { access_token = "...my_access_token..." client_id = "...my_client_id..." client_secret = "...my_client_secret..." refresh_token = "...my_refresh_token..." - token_expiry_date = "2022-03-12T08:01:10.085Z" + token_expiry_date = "2022-09-22T11:58:26.764Z" } } groups = "airbyte.io" @@ -20,8 +20,8 @@ resource "airbyte_source_gitlab" "my_source_gitlab" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "bc6076e7-14fb-4f0c-bd3a-ed54ef24d0de" - name = "Jeffrey Terry" + definition_id = "09ce4fe1-65bc-4484-8e7f-b5df25477f37" + name = "Hannah Becker" secret_id = "...my_secret_id..." - workspace_id = "b9050201-5d2d-4e4b-8db3-3d2b3a27b0b3" + workspace_id = "7c89bfb0-cb9d-48df-827a-8c72c3eb5dc5" } \ 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 b3d9d1596..ff65c1107 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 = "42a10fbc-47ca-4706-9390-37c7eef972df" - name = "Rachael Boyer" + definition_id = "5714db07-d769-4873-b386-b53a479a0805" + name = "Emmett Bruen" secret_id = "...my_secret_id..." - workspace_id = "349fde89-ab27-46cb-ad00-caee12c4e65b" + workspace_id = "3bf9b799-d631-499b-96b4-68c85ec21a9a" } \ 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 ee1296930..b0374bbde 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 = "in" + country = "ru" end_date = "2022-08-21 16:27:09" in = [ - "description", + "title", ] - language = "te" + language = "hi" nullable = [ "description", ] - query = "Apple OR Microsoft" - sortby = "relevance" + query = "Intel AND (i7 OR i9)" + sortby = "publishedAt" start_date = "2022-08-21 16:27:09" - top_headlines_query = "Microsoft Windows 10" - top_headlines_topic = "technology" + top_headlines_query = "Apple OR Microsoft" + top_headlines_topic = "sports" } - definition_id = "b617a012-e6bf-468e-9922-df283a614313" - name = "Darrell Cummerata II" + definition_id = "77e51fa7-73fc-4f1a-8306-e082909d97bf" + name = "Kerry Reinger" secret_id = "...my_secret_id..." - workspace_id = "031fd7b8-2b3c-4164-8195-0da31ebecd9b" + workspace_id = "3671a9ca-1d9c-4174-bee4-145562d27576" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_goldcast/import.sh b/examples/resources/airbyte_source_goldcast/import.sh new file mode 100644 index 000000000..cc9ca168b --- /dev/null +++ b/examples/resources/airbyte_source_goldcast/import.sh @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..bcc3c764b --- /dev/null +++ b/examples/resources/airbyte_source_goldcast/resource.tf @@ -0,0 +1,9 @@ +resource "airbyte_source_goldcast" "my_source_goldcast" { + configuration = { + access_key = "...my_access_key..." + } + definition_id = "235e52bb-8adc-48fd-aa7f-940dec44e216" + name = "Moses Wolf" + secret_id = "...my_secret_id..." + workspace_id = "29e4d23a-00b4-494f-bd68-d64a810b2959" +} \ 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 0bbaafbbb..0b2f1e34b 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 = [ - "SUSPENDED", + "CANCELED", ] end_date = "2017-01-30" start_date = "2017-01-25" } - definition_id = "c5fc21d7-22b3-410b-a76f-b731c6d5241e" - name = "Dr. Armando Dibbert" + definition_id = "c47c0f9c-e33c-40f2-94c1-1e4e993d2947" + name = "Miss Andrea Lind" secret_id = "...my_secret_id..." - workspace_id = "fc03242c-cd27-463a-8d30-eb91c3df2593" + workspace_id = "54dff6cf-9b79-4e23-a888-b6bde25154a5" } \ 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 0bfdc6e86..1865c176e 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 = 57.56 + value = 82.98 } } to_value = { double_value = { - value = 31.93 + value = 63.94 } } } @@ -49,12 +49,12 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda between_filter = { from_value = { double_value = { - value = 35.8 + value = 51.9 } } to_value = { double_value = { - value = 18.49 + value = 4.5 } } } @@ -66,19 +66,19 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda metrics = [ "...", ] - name = "Edmund Legros" + name = "Todd Rodriguez" }, ] date_ranges_start_date = "2021-01-01" keep_empty_rows = false - lookback_window = 2 + lookback_window = 4 property_ids = [ "...", ] - window_in_days = 30 + window_in_days = 120 } - definition_id = "183b00ec-7045-4956-803e-c7b8b68fdfc0" - name = "Miriam Deckow" + definition_id = "950935ad-536c-4500-8734-e30b46b959e4" + name = "Julio Harber" secret_id = "...my_secret_id..." - workspace_id = "fd673f59-a8d0-4acc-9948-b0061059fac1" + workspace_id = "c0922711-9b95-4b60-898b-b7037ab5561c" } \ 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 deleted file mode 100644 index 514230082..000000000 --- a/examples/resources/airbyte_source_google_analytics_v4_service_account_only/import.sh +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 46e409df2..000000000 --- a/examples/resources/airbyte_source_google_analytics_v4_service_account_only/resource.tf +++ /dev/null @@ -1,18 +0,0 @@ -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 79c9de0dc..e2632caba 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 = "Brittany_Steuber89@hotmail.com" + email = "Aniya.Prohaska79@hotmail.com" } } } - definition_id = "a2fd145f-48d3-4631-b985-539f352d3206" - name = "Amos Rath" + definition_id = "adaa0e32-8a3b-4d55-a3e0-4de287b75265" + name = "Mack Wisozk" secret_id = "...my_secret_id..." - workspace_id = "724a60d4-0134-4e58-876c-b030a128ae06" + workspace_id = "deb8cbf2-674a-4920-b3b1-7bfcc526af10" } \ 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 51f326604..907620a3e 100644 --- a/examples/resources/airbyte_source_google_drive/resource.tf +++ b/examples/resources/airbyte_source_google_drive/resource.tf @@ -11,25 +11,25 @@ resource "airbyte_source_google_drive" "my_source_googledrive" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 5 + days_to_sync_if_history_is_full = 3 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] input_schema = "...my_input_schema..." - name = "Marianne Hartmann" + name = "Dr. Shawna Robel" primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Wait for Discover" + schemaless = false + validation_policy = "Emit Record" }, ] } - definition_id = "1e5baddd-2747-4bbc-bf24-1709ce4fe165" - name = "Edmund Gleichner" + definition_id = "730b3999-4a41-4e4a-8985-c78fa7d86bdf" + name = "Kristy Wilderman MD" secret_id = "...my_secret_id..." - workspace_id = "0e7fb5df-2547-47f3-b0b0-ec7c89bfb0cb" + workspace_id = "cb121083-728d-489e-b51e-868df1f2c5ad" } \ 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 1f425534b..0b9fb7d11 100644 --- a/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf +++ b/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf @@ -5,14 +5,14 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin "performance", ] strategies = [ - "mobile", + "desktop", ] urls = [ "...", ] } - definition_id = "8dfc27a8-c72c-43eb-9dc5-5714db07d769" - name = "Lance Dicki" + definition_id = "a46153eb-240d-4626-9488-7ccaaf58e0f5" + name = "Lawrence Casper" secret_id = "...my_secret_id..." - workspace_id = "86b53a47-9a08-405f-b179-3bf9b799d631" + workspace_id = "d6014991-0eec-4fc7-b384-ec604057d045" } \ 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 b845071de..4406793cd 100644 --- a/examples/resources/airbyte_source_google_search_console/resource.tf +++ b/examples/resources/airbyte_source_google_search_console/resource.tf @@ -12,9 +12,9 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" custom_reports_array = [ { dimensions = [ - "page", + "country", ] - name = "Randolph Stanton" + name = "Peter Luettgen" }, ] data_state = "final" @@ -22,10 +22,10 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" site_urls = [ "...", ] - start_date = "2021-06-12" + start_date = "2020-11-18" } - definition_id = "5ec21a9a-b567-4f13-877e-51fa773fcf1a" - name = "Connie Baumbach" + definition_id = "bbdb3119-64f9-49d6-b745-afb65f1720bd" + name = "Harriet Kiehn" secret_id = "...my_secret_id..." - workspace_id = "082909d9-7bfa-4bba-9367-1a9ca1d9c174" + workspace_id = "19162647-e680-4e44-97c6-f4b509c8206a" } \ 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 3cbb37713..1ce610fe2 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 = 10 + batch_size = 2 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 = "e4145562-d275-4762-b5e5-2bb8adc8fd2a" - name = "Ebony McDermott PhD" + definition_id = "043ef09e-61b7-45b7-a676-5eab1ad84295" + name = "Juana Stroman" secret_id = "...my_secret_id..." - workspace_id = "ec44e216-dff8-4929-a4d2-3a00b494f7d6" + workspace_id = "9bdc8b93-f80b-47f5-9709-4a97b6356d53" } \ 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 1527c34af..09d1de4ce 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 = "8d64a810-b295-4958-bed0-c47c0f9ce33c" - name = "Kristie Davis" + definition_id = "391630fd-2f13-41d4-bbef-253f33ac135d" + name = "Jackie Bayer" secret_id = "...my_secret_id..." - workspace_id = "c11e4e99-3d29-4474-a81b-b54dff6cf9b7" + workspace_id = "3794a97d-5acf-4562-93a6-6e5ad3919293" } \ 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 bde76d285..63024d4c6 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 = "9e232888-b6bd-4e25-954a-52da80f2bfa4" - name = "Isaac Hessel" + definition_id = "14c65ed7-0eb1-47cb-8fc2-4002ca0d0171" + name = "Ollie Cummerata" secret_id = "...my_secret_id..." - workspace_id = "6950935a-d536-4c50-8473-4e30b46b959e" + workspace_id = "28dde04a-9ce3-4be5-bbfa-46127442775e" } \ 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 15535fb1d..a701eedc8 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 = "4e758ac0-9227-4119-b95b-60c98bb7037a" - name = "Floyd Hermann DDS" + definition_id = "d08074e1-7a64-4885-b11a-b94fe75a513e" + name = "Ruth Marquardt" secret_id = "...my_secret_id..." - workspace_id = "e1bb1cad-aa0e-4328-a3bd-5563e04de287" + workspace_id = "793827c0-6dd8-46b4-bbde-6ae53955108c" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_hardcoded_records/import.sh b/examples/resources/airbyte_source_hardcoded_records/import.sh new file mode 100644 index 000000000..4bf892815 --- /dev/null +++ b/examples/resources/airbyte_source_hardcoded_records/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_hardcoded_records.my_airbyte_source_hardcoded_records "" diff --git a/examples/resources/airbyte_source_hardcoded_records/resource.tf b/examples/resources/airbyte_source_hardcoded_records/resource.tf new file mode 100644 index 000000000..afae1c767 --- /dev/null +++ b/examples/resources/airbyte_source_hardcoded_records/resource.tf @@ -0,0 +1,9 @@ +resource "airbyte_source_hardcoded_records" "my_source_hardcodedrecords" { + configuration = { + count = 9 + } + definition_id = "8df8fdda-cae8-4261-af8b-9bb4850d654b" + name = "Albert Tromp" + secret_id = "...my_secret_id..." + workspace_id = "5de7e327-e778-4751-a6eb-56944312d5d5" +} \ 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 ffe8c27e6..9ae7513a8 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 = "65fdff2d-eb8c-4bf2-a74a-92033b17bfcc" - name = "Theresa Kertzmann" + definition_id = "d83c0cc9-8dd5-4412-a565-139361b04889" + name = "Stacey O'Keefe" secret_id = "...my_secret_id..." - workspace_id = "10da401f-b0fc-4527-b0b3-9994a41e4a89" + workspace_id = "cfe2e85a-fcc9-4acc-ae7e-95c9a7c9f197" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_hibob/import.sh b/examples/resources/airbyte_source_hibob/import.sh new file mode 100644 index 000000000..ae50ae4c4 --- /dev/null +++ b/examples/resources/airbyte_source_hibob/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_hibob.my_airbyte_source_hibob "" diff --git a/examples/resources/airbyte_source_hibob/resource.tf b/examples/resources/airbyte_source_hibob/resource.tf new file mode 100644 index 000000000..14b1baa7f --- /dev/null +++ b/examples/resources/airbyte_source_hibob/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_hibob" "my_source_hibob" { + configuration = { + is_sandbox = false + password = "...my_password..." + username = "Anissa.Boyle17" + } + definition_id = "47965850-9500-41aa-95e5-f9cfb0d1e8d3" + name = "Forrest Schmitt" + secret_id = "...my_secret_id..." + workspace_id = "0aeed108-7b98-482d-94ce-598cc59eb952" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_high_level/import.sh b/examples/resources/airbyte_source_high_level/import.sh new file mode 100644 index 000000000..3316aa7ee --- /dev/null +++ b/examples/resources/airbyte_source_high_level/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_high_level.my_airbyte_source_high_level "" diff --git a/examples/resources/airbyte_source_high_level/resource.tf b/examples/resources/airbyte_source_high_level/resource.tf new file mode 100644 index 000000000..370e1ddd0 --- /dev/null +++ b/examples/resources/airbyte_source_high_level/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_high_level" "my_source_highlevel" { + configuration = { + api_key = "...my_api_key..." + location_id = "...my_location_id..." + start_date = "2022-12-22T20:21:14.303Z" + } + definition_id = "6231c57f-d8f9-4d1b-aac6-e05b1e50c144" + name = "Marsha Stamm" + secret_id = "...my_secret_id..." + workspace_id = "1cdd98f8-1ede-4ee1-be4e-723eeaf419bc" +} \ 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 581810858..0265b376e 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 = "85c78fa7-d86b-4df5-bf91-acb121083728" - name = "Johnnie Maggio" + definition_id = "59e04a86-9e9d-4149-b3b0-4e32dc649b6b" + name = "Dwight Ward" secret_id = "...my_secret_id..." - workspace_id = "51e868df-1f2c-45ad-84a4-6153eb240d62" + workspace_id = "7d0de0f8-a2b5-47ad-9e20-e75111fd0612" } \ 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 81a2a1e28..9bb53f957 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 = "887ccaaf-58e0-4f5c-9159-d60149910eec" - name = "Leland Kshlerin" + definition_id = "3df11978-b385-4957-a3c9-21cc9284a211" + name = "Annette Runolfsson" secret_id = "...my_secret_id..." - workspace_id = "84ec6040-57d0-4451-918d-b5cccbbbdb31" + workspace_id = "910609be-9a98-44e4-b07b-caf13ed5606a" } \ 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 20c33dac7..1c3bc9cb6 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 = "64f99d67-745a-4fb6-9f17-20bd7a7ec191" - name = "Irene Huels" + definition_id = "9e7c8aee-eb09-4ffd-b753-fe46a1403ba1" + name = "Mr. Gilberto Lebsack" secret_id = "...my_secret_id..." - workspace_id = "e680e441-7c6f-44b5-89c8-206a4b043ef0" + workspace_id = "cfb42284-9b58-4575-9fd7-9d74aa20ea69" } \ 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 f48515dac..b4e5063ce 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 = "61b75b72-6765-4eab-9ad8-42954bd759bd" - name = "Clayton Prosacco" + definition_id = "b1a975dd-1b5a-4029-9b19-7bbb0227d625" + name = "Earl Bruen" secret_id = "...my_secret_id..." - workspace_id = "f80b7f55-7094-4a97-b635-6d53391630fd" + workspace_id = "f731c6e6-bc1c-4af1-a6ae-e78925477f38" } \ 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 b1fd766d7..47f278d98 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 = "2f131d4f-bef2-453f-b3ac-135dc90f6379" - name = "Eunice Mayert" + definition_id = "7c53022b-a4ae-4d29-95c6-63b6d13c6e3b" + name = "Pete McDermott" secret_id = "...my_secret_id..." - workspace_id = "5acf5625-3a66-4e5a-9391-929314c65ed7" + workspace_id = "d413d75c-6693-4a6b-92ef-16650e4c3120" } \ 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 93f8d3d9a..09f1e2538 100644 --- a/examples/resources/airbyte_source_intercom/resource.tf +++ b/examples/resources/airbyte_source_intercom/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_intercom" "my_source_intercom" { configuration = { access_token = "...my_access_token..." - activity_logs_time_step = 30 + activity_logs_time_step = 5 client_id = "...my_client_id..." client_secret = "...my_client_secret..." start_date = "2020-11-16T00:00:00Z" } - definition_id = "7cb4fc24-002c-4a0d-8171-1f25a28dde04" - name = "Marshall Schinner" + definition_id = "566ac796-fdac-41f4-8b8f-86701054c1db" + name = "Vicky Torphy" secret_id = "...my_secret_id..." - workspace_id = "be57bfa4-6127-4442-b75e-d08074e17a64" + workspace_id = "a8fc7f8e-2467-4264-9cfb-2449eef8764e" } \ 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 d3b0a25ea..a3307b6b5 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 = "85711ab9-4fe7-45a5-93e0-0977793827c0" - name = "Mable Stroman" + definition_id = "4b875ea1-fa63-4f6c-8fac-1403cfd915cc" + name = "Victoria Murazik DVM" secret_id = "...my_secret_id..." - workspace_id = "b4fbde6a-e539-4551-88cd-8df8fddacae8" + workspace_id = "1c37b350-ebb3-4981-889f-963f1e6164cc" } \ 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 ef9b5dd99..cc6e44a05 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 = "1af8b9bb-4850-4d65-8be1-e785de7e327e" - name = "Georgia Ledner" + definition_id = "88ff77a5-8933-4f77-b8d6-3dc7b7f8b16c" + name = "Janet Hodkiewicz" secret_id = "...my_secret_id..." - workspace_id = "126eb569-4431-42d5-95e6-a2d83c0cc98d" + workspace_id = "1e8f0042-f922-410b-9c8f-204e6a775647" } \ 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 1a9c75c8d..bd46ebc5c 100644 --- a/examples/resources/airbyte_source_jira/resource.tf +++ b/examples/resources/airbyte_source_jira/resource.tf @@ -2,12 +2,12 @@ resource "airbyte_source_jira" "my_source_jira" { configuration = { api_token = "...my_api_token..." domain = "jira..com" - email = "Efren18@yahoo.com" + email = "Hayley_Rohan@hotmail.com" enable_experimental_streams = false - expand_issue_changelog = false - expand_issue_transition = false + expand_issue_changelog = true + expand_issue_transition = true issues_stream_expand_with = [ - "renderedFields", + "transitions", ] lookback_window_minutes = 60 projects = [ @@ -16,8 +16,8 @@ resource "airbyte_source_jira" "my_source_jira" { render_fields = false start_date = "2021-03-01T00:00:00Z" } - definition_id = "1b048892-6ab9-4cfe-ae85-afcc9acc6e7e" - name = "Herman Schowalter" + definition_id = "2eafdc45-3fb6-4a01-92c4-47712b4a0208" + name = "Lee Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "7c9f1975-11d6-4247-9658-5095001aad5e" + workspace_id = "beffb8d9-7651-4059-b440-a5f2f61a4e46" } \ 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 ce89a34d8..39b76acc5 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 = "5f9cfb0d-1e8d-43ac-8e90-aeed1087b988" - name = "Eula Hane" + definition_id = "6849f7bb-eaae-4f52-8043-cb4c473e8c7b" + name = "Mrs. Bill Mosciski IV" secret_id = "...my_secret_id..." - workspace_id = "e598cc59-eb95-42f0-a231-c57fd8f9d1ba" + workspace_id = "4a553fda-41da-4f76-a6ef-51c5fa52e0c6" } \ 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 05fd1f91d..543600b09 100644 --- a/examples/resources/airbyte_source_klarna/resource.tf +++ b/examples/resources/airbyte_source_klarna/resource.tf @@ -2,11 +2,11 @@ resource "airbyte_source_klarna" "my_source_klarna" { configuration = { password = "...my_password..." playground = true - region = "oc" - username = "Gretchen35" + region = "eu" + username = "Orland.Schmeler" } - definition_id = "b1e50c14-468d-4231-8dd9-8f81edeee1be" - name = "Sophia Kunze" + definition_id = "e76e9fde-f541-4f06-8a13-b1e89c1488fa" + name = "Dr. Randall Casper" secret_id = "...my_secret_id..." - workspace_id = "eeaf419b-c59e-404a-869e-9d149f3b04e3" + workspace_id = "d922269c-9d64-48f0-bccd-d2e95af6ed3c" } \ 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 ef26c51b9..834184273 100644 --- a/examples/resources/airbyte_source_klaviyo/resource.tf +++ b/examples/resources/airbyte_source_klaviyo/resource.tf @@ -1,10 +1,11 @@ resource "airbyte_source_klaviyo" "my_source_klaviyo" { configuration = { - api_key = "...my_api_key..." - start_date = "2017-01-25T00:00:00Z" + api_key = "...my_api_key..." + disable_fetching_predictive_analytics = true + start_date = "2017-01-25T00:00:00Z" } - definition_id = "c649b6bc-8e2c-47d0-9e0f-8a2b57adde20" - name = "Mr. Erik Heathcote DVM" + definition_id = "14160113-c2d3-4cb5-aaa6-4b86a42dbbb8" + name = "Rosa VonRueden" secret_id = "...my_secret_id..." - workspace_id = "d0612ffd-3df1-4197-8b38-5957e3c921cc" + workspace_id = "b5e6a18b-0d79-4003-9e8d-a443bfaadd29" } \ 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 2ce3ed528..3d92df01e 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 = 6 - page_size = 1 + max_pages = 7 + page_size = 4 pool_ids = "0,1" - start_ids = "0" + start_ids = "0,0" url_base = "https://api.korellia.kyve.network/" } - definition_id = "21155c54-9106-409b-a9a9-84e4b07bcaf1" - name = "Gwen Stark" + definition_id = "6cb6bf32-faf8-425b-aa4e-c87aaffeb9ea" + name = "Geneva Abshire" secret_id = "...my_secret_id..." - workspace_id = "06ac59e7-c8ae-4eeb-89ff-d3753fe46a14" + workspace_id = "e9f4166b-42b6-49c6-9d27-bbad3f0bf8ca" } \ 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 fbcea9451..49625ce72 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 = "03ba1bd8-103c-4fb4-a284-9b585759fd79" - name = "Neil Gleichner" + definition_id = "743bfb15-06e5-4d6d-ab8b-49c82f283fdf" + name = "Yvette Effertz MD" secret_id = "...my_secret_id..." - workspace_id = "20ea69f1-b1a9-475d-91b5-a0295b197bbb" + workspace_id = "3ef9cacc-879b-4a7a-8016-47dc7c271c50" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_leadfeeder/import.sh b/examples/resources/airbyte_source_leadfeeder/import.sh new file mode 100644 index 000000000..b37c6f426 --- /dev/null +++ b/examples/resources/airbyte_source_leadfeeder/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_leadfeeder.my_airbyte_source_leadfeeder "" diff --git a/examples/resources/airbyte_source_leadfeeder/resource.tf b/examples/resources/airbyte_source_leadfeeder/resource.tf new file mode 100644 index 000000000..7bb540c17 --- /dev/null +++ b/examples/resources/airbyte_source_leadfeeder/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_leadfeeder" "my_source_leadfeeder" { + configuration = { + api_token = "...my_api_token..." + start_date = "2022-09-13T08:51:10.446Z" + } + definition_id = "a25a4f7e-4eab-4e3a-9776-8e79345d1446" + name = "Ruth Dooley IV" + secret_id = "...my_secret_id..." + workspace_id = "f29cf10b-0742-4b93-b499-111a320ccad5" +} \ 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 07cc6932b..114fef388 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 = "0227d625-c315-45f7-b1c6-e6bc1caf166a" - name = "Bert Kohler" + definition_id = "adc1330e-f574-4883-95b5-ae0423a6249a" + name = "Gloria Green" secret_id = "...my_secret_id..." - workspace_id = "25477f38-7c53-4022-ba4a-ed2995c663b6" + workspace_id = "5fa2ea25-a51d-4762-ae38-9cc4200a4abb" } \ 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 8cde45f23..e784f79cc 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 = "Sandbox" + environment = "Production" start_date = "2021-03-01T00:00:00Z" } - definition_id = "13c6e3bb-b93b-4d41-bd75-c6693a6b92ef" - name = "Rosemary Hyatt PhD" + definition_id = "299a611c-c7be-43e8-ba71-88dc05c92c20" + name = "Linda White" secret_id = "...my_secret_id..." - workspace_id = "4c3120d7-7a56-46ac-b96f-dac1f48b8f86" + workspace_id = "2ba7d43d-20d3-4384-a15e-d53522788fae" } \ 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 d3022deff..91916efe7 100644 --- a/examples/resources/airbyte_source_linkedin_ads/resource.tf +++ b/examples/resources/airbyte_source_linkedin_ads/resource.tf @@ -1,12 +1,12 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { configuration = { account_ids = [ - 4, + 6, ] ad_analytics_reports = [ { - name = "Carolyn Bednar" - pivot_by = "MEMBER_COUNTRY_V2" + name = "Orlando Schuppe" + pivot_by = "MEMBER_INDUSTRY" time_granularity = "ALL" }, ] @@ -17,8 +17,8 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { } start_date = "2021-05-17" } - definition_id = "1ce49a8f-c7f8-4e24-a726-45cfb2449eef" - name = "Cory Johnson" + definition_id = "72879b60-69b6-4a28-9f31-96ea9203cb78" + name = "Kristen Toy" secret_id = "...my_secret_id..." - workspace_id = "b4b875ea-1fa6-43f6-80fa-c1403cfd915c" + workspace_id = "a531f3b4-802a-43b9-9674-976dbe116c78" } \ 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 a4da0860f..d3eb35a20 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-01-06T04:41:29.233Z" + start_date = "2022-11-26T15:57:22.522Z" time_granularity_type = "DAY" } - definition_id = "ae1f1c37-b350-4ebb-b981-c89f963f1e61" - name = "Anita Ryan" + definition_id = "c70bfb32-667c-447d-9036-16107c03f839" + name = "Donna Jerde" secret_id = "...my_secret_id..." - workspace_id = "788ff77a-5893-43f7-b38d-63dc7b7f8b16" + workspace_id = "c9db1c42-6709-4282-b0b3-08e78729ff50" } \ 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 2be182820..d1c4b9917 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 = "2021-09-13T06:35:49.884Z" + start_date = "2022-09-29T12:33:06.148Z" token = "...my_token..." } - definition_id = "167f1e8f-0042-4f92-a10b-5c8f204e6a77" - name = "Gertrude Gutkowski" + definition_id = "b690b273-6f2f-47a3-b95d-4abcb3edfbba" + name = "Franklin O'Reilly PhD" secret_id = "...my_secret_id..." - workspace_id = "b6babc0f-9b18-4b2e-afdc-453fb6a0192c" + workspace_id = "44a4dc97-0c07-4857-ba20-ac990f9b2ce7" } \ 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 1863e07d3..91adae6e3 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 = "447712b4-a020-4883-8aab-effb8d976510" - name = "Lindsey Pouros" + definition_id = "a67a8515-0ea8-4612-8cd6-18d742806812" + name = "Luke King" secret_id = "...my_secret_id..." - workspace_id = "0a5f2f61-a4e4-4668-89f7-bbeaaef52404" + workspace_id = "69526155-53a7-4134-98a3-f9799a12d6e3" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_looker/import.sh b/examples/resources/airbyte_source_looker/import.sh new file mode 100644 index 000000000..c7600def9 --- /dev/null +++ b/examples/resources/airbyte_source_looker/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_looker.my_airbyte_source_looker "" diff --git a/examples/resources/airbyte_source_looker/resource.tf b/examples/resources/airbyte_source_looker/resource.tf new file mode 100644 index 000000000..0624ca711 --- /dev/null +++ b/examples/resources/airbyte_source_looker/resource.tf @@ -0,0 +1,14 @@ +resource "airbyte_source_looker" "my_source_looker" { + configuration = { + client_id = "...my_client_id..." + client_secret = "...my_client_secret..." + domain = "domainname.looker.com" + run_look_ids = [ + "...", + ] + } + definition_id = "e66d700d-4772-4456-90d2-6d9147bb3566" + name = "Cameron Howe" + secret_id = "...my_secret_id..." + workspace_id = "ba4f7aab-a257-4841-81a2-1c8938ad6fcb" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_luma/import.sh b/examples/resources/airbyte_source_luma/import.sh new file mode 100644 index 000000000..23e08903a --- /dev/null +++ b/examples/resources/airbyte_source_luma/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_luma.my_airbyte_source_luma "" diff --git a/examples/resources/airbyte_source_luma/resource.tf b/examples/resources/airbyte_source_luma/resource.tf new file mode 100644 index 000000000..f4537e15a --- /dev/null +++ b/examples/resources/airbyte_source_luma/resource.tf @@ -0,0 +1,9 @@ +resource "airbyte_source_luma" "my_source_luma" { + configuration = { + api_key = "...my_api_key..." + } + definition_id = "b78bed98-212c-4704-ae19-387527d5e3ef" + name = "Sara Gibson" + secret_id = "...my_secret_id..." + workspace_id = "0c0b7968-b724-4213-bfe2-e9e26c4c104f" +} \ 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 2493fe62c..df947245c 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 = "b4c473e8-c7bd-4591-9174-a553fda41daf" - name = "Agnes Cronin" + definition_id = "be3b1f29-0447-4757-b847-65c77418014d" + name = "Tabitha D'Amore" secret_id = "...my_secret_id..." - workspace_id = "f51c5fa5-2e0c-46c0-8c93-e76e9fdef541" + workspace_id = "651b77f9-fe0e-45e5-b386-d0ac5af3c655" } \ 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 b80304e62..4aa8b7849 100644 --- a/examples/resources/airbyte_source_mailgun/resource.tf +++ b/examples/resources/airbyte_source_mailgun/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_mailgun" "my_source_mailgun" { private_key = "...my_private_key..." start_date = "2023-08-01T00:00:00Z" } - definition_id = "ca13b1e8-9c14-488f-aa41-1d9d922269c9" - name = "Ricardo Gutmann" + definition_id = "b03d25be-e3db-4adc-877c-b62b59b9f1ee" + name = "Wanda Greenfelder" secret_id = "...my_secret_id..." - workspace_id = "0bccdd2e-95af-46ed-bc47-c14160113c2d" + workspace_id = "78a5bcbb-c2cb-483b-ac4d-d4d42907741e" } \ 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 a56f26343..f345777f2 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 = "b5eaa64b-86a4-42db-bb85-3ec4b5e6a18b" - name = "Christie Kshlerin Jr." + definition_id = "bbab0457-d926-4398-a6ec-d841e72a766a" + name = "Cassandra Hoppe" secret_id = "...my_secret_id..." - workspace_id = "3de8da44-3bfa-4add-a9a6-dff6cb6bf32f" + workspace_id = "a512d804-4b05-4c5b-b112-361f26d47b86" } \ 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 6d1ed302c..0ebaa2270 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 = "825bea4e-c87a-4aff-ab9e-a290f7e9f416" - name = "Bridget Gutmann" + definition_id = "ec1a2bc2-b81e-445e-bceb-6c910dc95a96" + name = "Marco Hermann" secret_id = "...my_secret_id..." - workspace_id = "69c61d27-bbad-43f0-bf8c-a743bfb1506e" + workspace_id = "bc4b3253-e6bd-4591-a254-44d2234fd1d8" } \ 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 64be5e355..563381de7 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 = "Fatima_Simonis" + username = "Shaniya80" } - definition_id = "eb8b49c8-2f28-43fd-b1b3-62a3ef9cacc8" - name = "Misty Price" + definition_id = "7d43320f-ac9c-41a8-9ab7-e73a5971814e" + name = "Dr. Muriel Ryan" secret_id = "...my_secret_id..." - workspace_id = "ac01647d-c7c2-471c-9044-a25a4f7e4eab" + workspace_id = "33abc58a-542d-4517-bc88-bc4998d75efe" } \ 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 e02466bc2..9725ae0a6 100644 --- a/examples/resources/airbyte_source_microsoft_onedrive/resource.tf +++ b/examples/resources/airbyte_source_microsoft_onedrive/resource.tf @@ -14,25 +14,25 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 6 + days_to_sync_if_history_is_full = 2 format = { avro_format = { - double_as_string = true + double_as_string = false } } globs = [ "...", ] input_schema = "...my_input_schema..." - name = "Jeanette Larson" + name = "Krystal Hamill" primary_key = "...my_primary_key..." schemaless = true validation_policy = "Emit Record" }, ] } - definition_id = "45d14463-0331-48f2-9cf1-0b0742b93b49" - name = "Miss Joshua Brekke" + definition_id = "598db92c-72d5-441f-9389-28a50561c1cc" + name = "Miss Judith McGlynn MD" secret_id = "...my_secret_id..." - workspace_id = "20ccad5a-dc13-430e-b574-88395b5ae042" + workspace_id = "d7b3d761-e29e-4f26-ae07-d2b59ab56edb" } \ 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 3695b0926..24951c451 100644 --- a/examples/resources/airbyte_source_microsoft_sharepoint/resource.tf +++ b/examples/resources/airbyte_source_microsoft_sharepoint/resource.tf @@ -9,11 +9,11 @@ resource "airbyte_source_microsoft_sharepoint" "my_source_microsoftsharepoint" { } } folder_path = "...my_folder_path..." - search_scope = "ACCESSIBLE_DRIVES" + search_scope = "SHARED_ITEMS" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 1 + days_to_sync_if_history_is_full = 0 format = { avro_format = { double_as_string = false @@ -22,16 +22,17 @@ resource "airbyte_source_microsoft_sharepoint" "my_source_microsoftsharepoint" { globs = [ "...", ] - input_schema = "...my_input_schema..." - name = "Mrs. Alfonso Hayes" - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Skip Record" + input_schema = "...my_input_schema..." + name = "Rosalie Schmitt" + primary_key = "...my_primary_key..." + recent_n_files_to_read_for_schema_discovery = 9 + schemaless = false + validation_policy = "Emit Record" }, ] } - definition_id = "fa2ea25a-51d7-4622-a389-cc4200a4abb3" - name = "Bobbie McCullough" + definition_id = "2bd5eb73-d022-4a60-8737-f9f9cf17c9c1" + name = "Jackie Bergstrom" secret_id = "...my_secret_id..." - workspace_id = "11cc7be3-e8ba-4718-8dc0-5c92c2050fdf" + workspace_id = "61900dfc-3504-41fc-9cac-22262ef24d92" } \ 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 7afd53ddd..b5bf6a6dd 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 = "2ba7d43d-20d3-4384-a15e-d53522788fae" - name = "Ed Ondricka" + definition_id = "369b1ff5-a7ba-4288-b10a-0635ff19f388" + name = "Margie Heidenreich" secret_id = "...my_secret_id..." - workspace_id = "b93c7728-79b6-4069-b6a2-8df3196ea920" + workspace_id = "941e7db0-723f-4947-b9cc-80ee5b712257" } \ 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 df940dee3..f0ba58d6a 100644 --- a/examples/resources/airbyte_source_mixpanel/resource.tf +++ b/examples/resources/airbyte_source_mixpanel/resource.tf @@ -1,20 +1,21 @@ resource "airbyte_source_mixpanel" "my_source_mixpanel" { configuration = { - attribution_window = 2 + attribution_window = 5 credentials = { project_secret = { api_secret = "...my_api_secret..." } } - date_window_size = 8 + date_window_size = 5 end_date = "2021-11-16" - project_timezone = "UTC" + page_size = 6 + project_timezone = "US/Pacific" region = "US" select_properties_by_default = false start_date = "2021-11-16" } - definition_id = "5a531f3b-4802-4a3b-9d67-4976dbe116c7" - name = "Raymond Boyer" + definition_id = "e08d80f6-94c4-48e9-90f8-4ccbad71dab0" + name = "Mrs. Vickie Barrows" secret_id = "...my_secret_id..." - workspace_id = "70bfb326-67c4-47d5-8361-6107c03f8392" + workspace_id = "124b6e7b-2083-4a37-b0c9-92762a38aa73" } \ 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 8d0b26950..e1d19f404 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 = "0634c9db-1c42-4670-9282-f0b308e78729" - name = "Mr. Emmett Hermiston" + definition_id = "d79a85cb-7246-4518-8216-19872363e09a" + name = "Monique Nitzsche" secret_id = "...my_secret_id..." - workspace_id = "b690b273-6f2f-47a3-b95d-4abcb3edfbba" + workspace_id = "2d9d7702-5755-4e69-95c5-7652df199422" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_mongodb_internal_poc/import.sh b/examples/resources/airbyte_source_mongodb_internal_poc/import.sh deleted file mode 100644 index c862ab6ac..000000000 --- a/examples/resources/airbyte_source_mongodb_internal_poc/import.sh +++ /dev/null @@ -1 +0,0 @@ -terraform import airbyte_source_mongodb_internal_poc.my_airbyte_source_mongodb_internal_poc "" diff --git a/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf b/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf deleted file mode 100644 index ae3520b7d..000000000 --- a/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf +++ /dev/null @@ -1,13 +0,0 @@ -resource "airbyte_source_mongodb_internal_poc" "my_source_mongodbinternalpoc" { - configuration = { - auth_source = "admin" - connection_string = "mongodb://example.host.com:27017" - password = "...my_password..." - replica_set = "...my_replica_set..." - user = "...my_user..." - } - definition_id = "6ad0e44a-4dc9-470c-8785-73a20ac990f9" - name = "Steve Sauer" - secret_id = "...my_secret_id..." - 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 8c6adfc01..61c5b1cc7 100644 --- a/examples/resources/airbyte_source_mongodb_v2/resource.tf +++ b/examples/resources/airbyte_source_mongodb_v2/resource.tf @@ -8,17 +8,18 @@ resource "airbyte_source_mongodb_v2" "my_source_mongodbv2" { database = "...my_database..." password = "...my_password..." schema_enforced = false - username = "Luciano.King42" + username = "Cole62" } } discover_sample_size = 6 + initial_load_timeout_hours = 5 initial_waiting_seconds = 4 - invalid_cdc_cursor_position_behavior = "Fail sync" - queue_size = 4 + invalid_cdc_cursor_position_behavior = "Re-sync data" + queue_size = 5 update_capture_mode = "Lookup" } - definition_id = "5553a713-498a-43f9-b99a-12d6e33e66d7" - name = "Melissa Stoltenberg" + definition_id = "1dbfafbd-d349-4afd-8cd9-5bcfe3342dc4" + name = "Anne Nienow" secret_id = "...my_secret_id..." - workspace_id = "72456d0d-26d9-4147-bb35-66ca647ba4f7" + workspace_id = "61635af9-f94f-4985-aa22-e677c77be4e4" } \ 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 147c425fd..41ee3b99d 100644 --- a/examples/resources/airbyte_source_mssql/resource.tf +++ b/examples/resources/airbyte_source_mssql/resource.tf @@ -7,9 +7,10 @@ resource "airbyte_source_mssql" "my_source_mssql" { port = 1433 replication_method = { read_changes_using_change_data_capture_cdc = { - initial_waiting_seconds = 7 + initial_load_timeout_hours = 3 + initial_waiting_seconds = 2 invalid_cdc_cursor_position_behavior = "Re-sync data" - queue_size = 7 + queue_size = 3 } } schemas = [ @@ -21,10 +22,10 @@ resource "airbyte_source_mssql" "my_source_mssql" { tunnel_method = { no_tunnel = {} } - username = "Caroline_Harvey" + username = "Ayden.Sanford17" } - definition_id = "4141a21c-8938-4ad6-bcbb-78bed98212c7" - name = "Eleanor O'Hara V" + definition_id = "5b489304-8e9c-41af-9961-b1c883a57271" + name = "Kari Lemke" secret_id = "...my_secret_id..." - workspace_id = "387527d5-e3ef-4724-ad0c-0b7968b72421" + workspace_id = "b6433cb8-2b32-4ad0-bfd9-a9d8ba9b0df8" } \ 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 87a964570..294d537f7 100644 --- a/examples/resources/airbyte_source_my_hours/resource.tf +++ b/examples/resources/airbyte_source_my_hours/resource.tf @@ -3,10 +3,10 @@ resource "airbyte_source_my_hours" "my_source_myhours" { email = "john@doe.com" logs_batch_size = 30 password = "...my_password..." - start_date = "2016-01-01" + start_date = "%Y-%m-%d" } - definition_id = "26c4c104-f1db-4e3b-9f29-044775738476" - name = "Brooke Kihn" + definition_id = "43ee79bd-13e2-4046-99bb-dc56c2f2e202" + name = "Lindsey Schinner" secret_id = "...my_secret_id..." - workspace_id = "18014d1f-2636-451b-b7f9-fe0e5e5f386d" + workspace_id = "13998d3f-c543-40ae-866d-4a91bbbc35ba" } \ 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 0b2c017b4..d1b2dec87 100644 --- a/examples/resources/airbyte_source_mysql/resource.tf +++ b/examples/resources/airbyte_source_mysql/resource.tf @@ -7,7 +7,8 @@ resource "airbyte_source_mysql" "my_source_mysql" { port = 3306 replication_method = { read_changes_using_binary_log_cdc = { - initial_waiting_seconds = 7 + initial_load_timeout_hours = 6 + initial_waiting_seconds = 1 invalid_cdc_cursor_position_behavior = "Re-sync data" server_time_zone = "...my_server_time_zone..." } @@ -18,10 +19,10 @@ resource "airbyte_source_mysql" "my_source_mysql" { tunnel_method = { no_tunnel = {} } - username = "Flossie.Padberg78" + username = "Harrison_Steuber" } - definition_id = "6558d9b0-3d25-4bee-bdba-dc477cb62b59" - name = "Dr. Kirk Welch" + definition_id = "05ab7b93-31a5-4dda-bad6-ab5ec8caacd8" + name = "Victor Pacocha" secret_id = "...my_secret_id..." - workspace_id = "4249578a-5bcb-4bc2-8b83-b2c4dd4d4290" + workspace_id = "dc0f3381-1dda-4d7d-b9aa-2af68e00dcda" } \ 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 ab74903dd..55dfa1515 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 = 5 + window_in_days = 9 } - definition_id = "741ee0bb-ab04-457d-9263-98e6ecd841e7" - name = "Jan Kub" + definition_id = "d4796116-8b4f-4a72-a2d2-a48f976dd11d" + name = "Brian Marvin" secret_id = "...my_secret_id..." - workspace_id = "a686faa5-12d8-4044-b05c-5b7112361f26" + workspace_id = "9375f622-7890-4d41-b139-19c925e38651" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_northpass_lms/import.sh b/examples/resources/airbyte_source_northpass_lms/import.sh new file mode 100644 index 000000000..46b690504 --- /dev/null +++ b/examples/resources/airbyte_source_northpass_lms/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_northpass_lms.my_airbyte_source_northpass_lms "" diff --git a/examples/resources/airbyte_source_northpass_lms/resource.tf b/examples/resources/airbyte_source_northpass_lms/resource.tf new file mode 100644 index 000000000..d71104fc8 --- /dev/null +++ b/examples/resources/airbyte_source_northpass_lms/resource.tf @@ -0,0 +1,9 @@ +resource "airbyte_source_northpass_lms" "my_source_northpasslms" { + configuration = { + api_key = "...my_api_key..." + } + definition_id = "7a801121-66a5-4ec4-af2b-ce2e77bbccef" + name = "Jennie Leuschke" + secret_id = "...my_secret_id..." + workspace_id = "548be8a7-a9db-4f52-8792-93e28aa81903" +} \ 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 6e79a5013..c46db22df 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 = "7b86cdec-1a2b-4c2b-81e4-5e3ceb6c910d" - name = "Terrence Haley" + definition_id = "8b38fe3b-5201-4125-b292-52a784d2d0f1" + name = "Sharon Koss" secret_id = "...my_secret_id..." - workspace_id = "6cb5f3bc-4b32-453e-abd5-91e25444d223" + workspace_id = "5e2d6a49-780b-4a1d-aa28-c6eefe59b72d" } \ 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 a3e9fa7a0..6f2f925d1 100644 --- a/examples/resources/airbyte_source_nytimes/resource.tf +++ b/examples/resources/airbyte_source_nytimes/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_nytimes" "my_source_nytimes" { configuration = { api_key = "...my_api_key..." - end_date = "2022-08" + end_date = "1851-01" period = "1" share_type = "facebook" - start_date = "1851-01" + start_date = "2022-08" } - definition_id = "a1c7d433-20fa-4c9c-9a8d-ab7e73a59718" - name = "Suzanne Terry" + definition_id = "407ce310-da76-4331-90ac-fec241f73646" + name = "Albert Ryan" secret_id = "...my_secret_id..." - workspace_id = "c1f633ab-c58a-4542-9517-fc88bc4998d7" + workspace_id = "9583a59a-8255-4310-9401-78456a4c1173" } \ 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 eb52154e4..cf2b51c40 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 = "fedea337-d55b-4155-98db-92c72d541f53" - name = "Marion Champlin" + definition_id = "2c277a8e-2388-4fd0-920f-62c51a2676b4" + name = "Sergio Crooks" secret_id = "...my_secret_id..." - workspace_id = "50561c1c-c629-41a1-ad7b-3d761e29ef26" + workspace_id = "ad19d25d-5253-4fa0-aef0-08f118d81572" } \ 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 369e57845..9590408d1 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 = "ae07d2b5-9ab5-46ed-b57c-000ccdeed12b" - name = "Corey Walker" + definition_id = "f724d1e0-e7e7-408b-9f81-5bf9f1370c28" + name = "Wayne Klein" secret_id = "...my_secret_id..." - workspace_id = "3d022a60-8737-4f9f-9cf1-7c9c1c918861" + workspace_id = "25e4ee4a-51ab-4e7b-be4e-8da5f867ba5c" } \ 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 a530d9f03..35d1cb280 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 = "0dfc3504-1fcd-4cac-a226-2ef24d92369b" - name = "Shawna Wilkinson" + definition_id = "db48a2cc-4047-4b12-8c3e-cc1558e983f3" + name = "Patty Powlowski" secret_id = "...my_secret_id..." - workspace_id = "7ba288f1-0a06-435f-b19f-388685d8941e" + workspace_id = "f8e75b95-ee5d-4d11-877a-4e3aa4d1c74f" } \ 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 cfbab523c..7dfd5b7e6 100644 --- a/examples/resources/airbyte_source_oracle/resource.tf +++ b/examples/resources/airbyte_source_oracle/resource.tf @@ -7,7 +7,7 @@ resource "airbyte_source_oracle" "my_source_oracle" { } encryption = { native_network_encryption_nne = { - encryption_algorithm = "RC4_56" + encryption_algorithm = "3DES168" } } host = "...my_host..." @@ -20,10 +20,10 @@ resource "airbyte_source_oracle" "my_source_oracle" { tunnel_method = { no_tunnel = {} } - username = "Neha.Abbott" + username = "Jammie.Steuber" } - definition_id = "3f94739c-c80e-4e5b-b122-5778f7a023c1" - name = "Charles Littel" + definition_id = "9b8b6b2c-0920-4aa8-be08-607521b21ea9" + name = "Edmund Mraz DDS" secret_id = "...my_secret_id..." - workspace_id = "0f694c48-e9d0-4f84-8cba-d71dab038014" + workspace_id = "88f1ee12-f8a7-4db0-98a7-41266a87d389" } \ 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 5f145d81e..ad4447fb4 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 = 7 + lookback_window_days = 0 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 = "124b6e7b-2083-4a37-b0c9-92762a38aa73" - name = "Julio Mayer" + definition_id = "efa67bbe-a9f5-4a35-91bd-0fb6321f6b4c" + name = "Nathaniel Gorczany" secret_id = "...my_secret_id..." - workspace_id = "5cb72465-1802-4161-9872-363e09a2aae6" + workspace_id = "a5f8aec8-fedb-48fc-b536-7bfee523e36b" } \ 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 95bc54c6e..acd5ad739 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 = "2d9d7702-5755-4e69-95c5-7652df199422" - name = "Danny Jakubowski" + definition_id = "74e8f7b8-37d7-46b0-aa3d-797c2fd02395" + name = "Glenda Boyer" secret_id = "...my_secret_id..." - workspace_id = "976b741d-bfaf-4bdd-b49a-fd0cd95bcfe3" + workspace_id = "206b8fda-8b48-4bf3-b0e9-631ebcafaa2e" } \ 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 26c6e0f81..999c7affb 100644 --- a/examples/resources/airbyte_source_outbrain_amplify/resource.tf +++ b/examples/resources/airbyte_source_outbrain_amplify/resource.tf @@ -6,12 +6,12 @@ resource "airbyte_source_outbrain_amplify" "my_source_outbrainamplify" { } } end_date = "...my_end_date..." - geo_location_breakdown = "country" - report_granularity = "daily" + geo_location_breakdown = "subregion" + report_granularity = "weekly" start_date = "...my_start_date..." } - definition_id = "2dc402ae-f616-435a-b9f9-4f985aa22e67" - name = "Della Koepp" + definition_id = "a1e0cb61-9709-45b9-9e12-6100f09eb706" + name = "Mrs. Randolph Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "e4e4244a-41ce-4525-b489-3048e9c1af99" + workspace_id = "a0ac6bfa-e2b4-40c1-b3d4-d61133ddb2a9" } \ 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 213cd94bd..5673b28bb 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 = "61b1c883-a572-4712-98f3-b6433cb82b32" - name = "Sammy Aufderhar" + definition_id = "5937ced0-062e-47b5-9a4e-78152cbd266e" + name = "Bernadette Carter" secret_id = "...my_secret_id..." - workspace_id = "d9a9d8ba-9b0d-4f86-903c-4743ee79bd13" + workspace_id = "05e7f58d-4a06-425c-bff5-b31f2b9304d3" } \ 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 94a1f7389..66860c498 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:59Z" + end_date = "2021-06-11T23:59:59+00:00" is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-06-11T23:59:59+00:00" + start_date = "2021-06-11T23:59:59Z" time_window = 9 } - definition_id = "c56c2f2e-2025-49c6-b139-98d3fc5430ae" - name = "Jeanette Howe" + definition_id = "61711be8-8292-44ee-80aa-2980d84713eb" + name = "Mrs. Darnell Adams" secret_id = "...my_secret_id..." - workspace_id = "a91bbbc3-5ba8-492b-ad58-05ab7b9331a5" + workspace_id = "d9af7c7e-9c46-4209-aa52-c707cb05c4a8" } \ 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 875377dc1..ed7a8c963 100644 --- a/examples/resources/airbyte_source_paystack/resource.tf +++ b/examples/resources/airbyte_source_paystack/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_paystack" "my_source_paystack" { secret_key = "...my_secret_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "fad6ab5e-c8ca-4acd-8d2a-bfdc0f33811d" - name = "Omar Sporer" + definition_id = "cf34658e-520f-4854-a567-309cc0ee4bba" + name = "Shari Orn" secret_id = "...my_secret_id..." - workspace_id = "79aa2af6-8e00-4dcd-add4-7961168b4fa7" + workspace_id = "572054da-a84a-44e2-8fea-10a8a64b77a4" } \ 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 886cd2c11..9dd8626c2 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 = "262d2a48-f976-4dd1-9df0-9849375f6227" - name = "Terrence Anderson" + definition_id = "fe630392-88c9-4500-9e51-5b2e740522a6" + name = "Angel Oberbrunner" secret_id = "...my_secret_id..." - workspace_id = "1f13919c-925e-4386-917a-80112166a5ec" + workspace_id = "5e8ae1d2-17c0-4fcb-a7d2-d3433ea86279" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_pennylane/import.sh b/examples/resources/airbyte_source_pennylane/import.sh new file mode 100644 index 000000000..4950aa7a9 --- /dev/null +++ b/examples/resources/airbyte_source_pennylane/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_pennylane.my_airbyte_source_pennylane "" diff --git a/examples/resources/airbyte_source_pennylane/resource.tf b/examples/resources/airbyte_source_pennylane/resource.tf new file mode 100644 index 000000000..0280d72fd --- /dev/null +++ b/examples/resources/airbyte_source_pennylane/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_pennylane" "my_source_pennylane" { + configuration = { + api_key = "...my_api_key..." + start_time = "2021-06-24T10:30:39.947Z" + } + definition_id = "ad5c4b83-3469-4d34-90e3-95a0aac55dc9" + name = "Richard Moen" + secret_id = "...my_secret_id..." + workspace_id = "82142799-2f65-4a71-85f2-e570ad372ede" +} \ 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 22d4f233a..32e6ae069 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 = "46f2bce2-e77b-4bcc-af58-8ac548be8a7a" - name = "Wilfred Quitzon" + definition_id = "1299d484-1410-4fd6-a7ec-48816b0c62b8" + name = "Mrs. Claude Hand" secret_id = "...my_secret_id..." - workspace_id = "2c79293e-28aa-4819-8334-8b38fe3b5201" + workspace_id = "c3e6c8bd-1ccc-4ad3-b1c4-065293193648" } \ 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 89be8e0ba..de3bc8a38 100644 --- a/examples/resources/airbyte_source_pexels_api/resource.tf +++ b/examples/resources/airbyte_source_pexels_api/resource.tf @@ -1,14 +1,14 @@ resource "airbyte_source_pexels_api" "my_source_pexelsapi" { configuration = { api_key = "...my_api_key..." - color = "red" - locale = "en-US" + color = "orange" + locale = "pt-BR" orientation = "square" query = "oceans" size = "large" } - definition_id = "9252a784-d2d0-4f17-8747-5e2d6a49780b" - name = "Jack Swaniawski" + definition_id = "b5865238-4bdb-4821-b9c8-efa40dc207c5" + name = "Raquel Jakubowski Sr." secret_id = "...my_secret_id..." - workspace_id = "28c6eefe-59b7-42db-a240-7ce310da7633" + workspace_id = "11e1fcb2-6b90-4cc0-9f94-1919892a209c" } \ 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 fc450e669..d4a474dc3 100644 --- a/examples/resources/airbyte_source_pinterest/resource.tf +++ b/examples/resources/airbyte_source_pinterest/resource.tf @@ -12,24 +12,24 @@ resource "airbyte_source_pinterest" "my_source_pinterest" { ] click_window_days = "7" columns = [ - "CAMPAIGN_DAILY_SPEND_CAP", + "TOTAL_CLICK_CHECKOUT_VALUE_IN_MICRO_DOLLAR", ] conversion_report_time = "TIME_OF_CONVERSION" - engagement_window_days = "30" - granularity = "MONTH" - level = "PRODUCT_GROUP_TARGETING" - name = "Dr. Fred Grady" + engagement_window_days = "60" + granularity = "HOUR" + level = "KEYWORD" + name = "Stanley Green" start_date = "2022-07-28" - view_window_days = "1" + view_window_days = "30" }, ] start_date = "2022-07-28" status = [ - "ACTIVE", + "PAUSED", ] } - definition_id = "c879583a-59a8-4255-b101-40178456a4c1" - name = "Bessie Emard" + definition_id = "dc5f9765-35f7-43a4-9535-fff5d1d34f0c" + name = "Conrad Hane" secret_id = "...my_secret_id..." - workspace_id = "2c277a8e-2388-4fd0-920f-62c51a2676b4" + workspace_id = "6a3a161d-c53f-4641-88ac-b8b41d5bf94a" } \ 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 9b96c9107..3343a7c8c 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 = "d9282ad1-9d25-4d52-93fa-02ef008f118d" - name = "Peter Hilll" + definition_id = "01397d3d-fd90-4aff-a604-97cb974a7d80" + name = "Kathleen Schiller" secret_id = "...my_secret_id..." - workspace_id = "f724d1e0-e7e7-408b-9f81-5bf9f1370c28" + workspace_id = "4b7daa2d-7b02-4155-8aad-a4df01cf56ee" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_planhat/import.sh b/examples/resources/airbyte_source_planhat/import.sh new file mode 100644 index 000000000..5e433b1e9 --- /dev/null +++ b/examples/resources/airbyte_source_planhat/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_planhat.my_airbyte_source_planhat "" diff --git a/examples/resources/airbyte_source_planhat/resource.tf b/examples/resources/airbyte_source_planhat/resource.tf new file mode 100644 index 000000000..9c78b8454 --- /dev/null +++ b/examples/resources/airbyte_source_planhat/resource.tf @@ -0,0 +1,9 @@ +resource "airbyte_source_planhat" "my_source_planhat" { + configuration = { + api_token = "...my_api_token..." + } + definition_id = "294adbc5-bd34-4078-9cf0-b8d2c0412443" + name = "Vivian Kassulke" + secret_id = "...my_secret_id..." + workspace_id = "d64cd2bc-f08a-4635-97a8-c386ceccfae9" +} \ 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 7a7ad33b9..54e3a6ae1 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 = "image" - detail_type = "simple" + content_type = "article" + detail_type = "complete" domain = "...my_domain..." - favorite = false + favorite = true search = "...my_search..." since = "2022-10-20 14:14:14" - sort = "title" - state = "all" + sort = "site" + state = "unread" tag = "...my_tag..." } - definition_id = "25e4ee4a-51ab-4e7b-be4e-8da5f867ba5c" - name = "Felix Swaniawski" + definition_id = "f8c4b4f8-d4f6-4833-a1f3-303ab045c891" + name = "Ramiro Mayer" secret_id = "...my_secret_id..." - workspace_id = "8a2cc404-7b12-40c3-acc1-558e983f33bb" + workspace_id = "dcb6cc1c-d73d-42cf-8013-6d5989e7dbac" } \ 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 ce4ce8d66..a31de5a4b 100644 --- a/examples/resources/airbyte_source_pokeapi/resource.tf +++ b/examples/resources/airbyte_source_pokeapi/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_pokeapi" "my_source_pokeapi" { configuration = { pokemon_name = "snorlax" } - definition_id = "2f8e75b9-5ee5-4dd1-9c77-a4e3aa4d1c74" - name = "Gregg Smitham" + definition_id = "4005a630-7276-4c58-b5da-21f73986a71e" + name = "Stuart Corwin" secret_id = "...my_secret_id..." - workspace_id = "939b8b6b-2c09-420a-a8be-08607521b21e" + workspace_id = "b81056bc-977a-43bf-8dff-8dd835d80427" } \ 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 015acdb1d..fa219c29e 100644 --- a/examples/resources/airbyte_source_polygon_stock_api/resource.tf +++ b/examples/resources/airbyte_source_polygon_stock_api/resource.tf @@ -7,11 +7,11 @@ resource "airbyte_source_polygon_stock_api" "my_source_polygonstockapi" { multiplier = 2 sort = "desc" start_date = "2020-10-14" - stocks_ticker = "MSFT" + stocks_ticker = "IBM" timespan = "day" } - definition_id = "1ee12f8a-7db0-498a-b412-66a87d389094" - name = "Emanuel Paucek" + definition_id = "23c8e5e2-59fe-44ef-a493-875b5a324c61" + name = "Tracey Paucek" secret_id = "...my_secret_id..." - workspace_id = "bbea9f5a-35d1-4bd0-bb63-21f6b4ca6472" + workspace_id = "bad07307-82c3-4e82-a825-101e3e25c699" } \ 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 f2ac50d3b..881fb9a62 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 = "Era_Wisoky" + username = "Kaylee22" } - definition_id = "ec8fedb8-fc35-4367-bfee-523e36b74e8f" - name = "Lula Lemke" + definition_id = "88851ec0-6fd3-4b8c-864e-95a7a3692db0" + name = "Cristina Franey" secret_id = "...my_secret_id..." - workspace_id = "d76b02a3-d797-4c2f-9023-950717b206b8" + workspace_id = "99dcbdae-34af-4cb0-a318-40729444d2b8" } \ 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 e00b67b0b..9c9c26202 100644 --- a/examples/resources/airbyte_source_posthog/resource.tf +++ b/examples/resources/airbyte_source_posthog/resource.tf @@ -2,11 +2,11 @@ resource "airbyte_source_posthog" "my_source_posthog" { configuration = { api_key = "...my_api_key..." base_url = "https://posthog.example.com" - events_time_step = 5 + events_time_step = 10 start_date = "2021-01-01T00:00:00Z" } - definition_id = "b48bf3f0-e963-41eb-8afa-a2ee7a1e0cb6" - name = "Ms. Jenny Konopelski" + definition_id = "aababee9-d637-48e7-a43c-021bc073abf4" + name = "Edmond Thiel" secret_id = "...my_secret_id..." - workspace_id = "b91e1261-00f0-49eb-b06b-b016ea0ac6bf" + workspace_id = "414e5a60-3e6b-43fc-a03d-92cb14510264" } \ 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 0de034252..65040c4c3 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 = "ae2b40c1-73d4-4d61-933d-db2a95937ced" - name = "Sandra Hodkiewicz" + definition_id = "179a4030-1bb8-47b1-ba43-b1ead703a4ee" + name = "Russell Ernser" secret_id = "...my_secret_id..." - workspace_id = "7b59a4e7-8152-4cbd-a66e-4c12d05e7f58" + workspace_id = "553942b5-8b6d-40d2-8932-d7e88d8619ec" } \ 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 ae196b8c7..9e057216b 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 = "a0625cbf-f5b3-41f2-b930-4d3ebf32902d" - name = "Hector Breitenberg Jr." + definition_id = "811786e4-4e52-472c-a097-1d544a65a7d2" + name = "Miss Herbert Kerluke" secret_id = "...my_secret_id..." - workspace_id = "be882924-ee80-4aa2-980d-84713ebef014" + workspace_id = "4ec6467c-968c-4ce9-b394-d8a35db32f90" } \ 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 deleted file mode 100644 index 384b1d6ca..000000000 --- a/examples/resources/airbyte_source_punk_api/import.sh +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index fb7288cb0..000000000 --- a/examples/resources/airbyte_source_punk_api/resource.tf +++ /dev/null @@ -1,11 +0,0 @@ -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 0d2c4f56b..a75aa4da7 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 = "7a4fe630-3928-48c9-9001-e515b2e74052" - name = "Sandy Homenick" + definition_id = "0f8cfe73-78a5-4877-8229-72e237ec3d2a" + name = "Bernard Cartwright" secret_id = "...my_secret_id..." - workspace_id = "ad65e8ae-1d21-47c0-bcbe-7d2d3433ea86" + workspace_id = "d2efe5e3-4c93-41e7-a72e-f9ee22c4d080" } \ 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 3a27872a9..89465ebe6 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 = "2799cad5-c4b8-4334-a9d3-410e395a0aac" - name = "Beatrice Stamm" + definition_id = "cde039dd-5e8c-4577-8ddd-10910de87dfe" + name = "Elizabeth Bruen" secret_id = "...my_secret_id..." - workspace_id = "d0978821-4279-492f-a5a7-105f2e570ad3" + workspace_id = "bd0d10cf-57eb-4672-b8aa-55d63fb2a63d" } \ 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 accdc9719..a254df981 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 = "72ede129-9d48-4414-90fd-6e7ec48816b0" - name = "Reginald Dibbert" + definition_id = "a0917a61-51fa-4c3e-8ec6-9babb338974c" + name = "Paul Spencer" secret_id = "...my_secret_id..." - workspace_id = "975147c3-e6c8-4bd1-8cca-d3b1c4065293" + workspace_id = "9af2319a-6f88-498d-b4d7-cd0670b63c63" } \ 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 71955ca75..aa4d6ce68 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 = "648ca783-b586-4523-84bd-b821f9c8efa4" - name = "Christie Schiller IV" + definition_id = "1f6c544c-20e7-43f2-bdc4-6e62d66e7277" + name = "Drew Herman" secret_id = "...my_secret_id..." - workspace_id = "c50e6f12-11e1-4fcb-a6b9-0cc0df941919" + workspace_id = "92d16e1d-cb06-4fc1-b7a1-71f7c1d8bfdd" } \ 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 1b06c05c4..cba642ee3 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 = "892a209c-167a-4f7b-834c-463b838dc5f9" - name = "Vanessa Hammes" + definition_id = "b09b9a90-3f60-4eb4-a54b-7cf533c55d68" + name = "Lloyd Kertzmann DVM" secret_id = "...my_secret_id..." - workspace_id = "f73a4553-5fff-45d1-934f-0cce5486a3a1" + workspace_id = "7b10c6dd-1e62-4eb5-bcf3-65dccaec2ce4" } \ 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 5d3bff288..2c1b5fa2f 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 = 4 + company_id = 0 } - definition_id = "1dc53f64-148a-4cb8-b41d-5bf94a01397d" - name = "Muriel Wunsch" + definition_id = "cbe1d2ec-d015-401d-92f6-c56d3cf89e69" + name = "Jean Rutherford DDS" secret_id = "...my_secret_id..." - workspace_id = "0aff6604-97cb-4974-a7d8-001cbe4b7daa" + workspace_id = "7a6ecf05-091d-4908-99d0-017533842973" } \ 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 2a56e3ffb..592a53e9e 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 = "2d7b0215-50aa-4da4-9f01-cf56ee294adb" - name = "Pedro Rodriguez" + definition_id = "372c40ec-9291-4353-b954-9bcc34d389bb" + name = "Corey Sporer" secret_id = "...my_secret_id..." - workspace_id = "40789cf0-b8d2-4c04-9244-36569fd64cd2" + workspace_id = "f5b1164e-1dc4-4a01-944f-b97610a4d0de" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_reddit/import.sh b/examples/resources/airbyte_source_reddit/import.sh new file mode 100644 index 000000000..33aff9da2 --- /dev/null +++ b/examples/resources/airbyte_source_reddit/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_reddit.my_airbyte_source_reddit "" diff --git a/examples/resources/airbyte_source_reddit/resource.tf b/examples/resources/airbyte_source_reddit/resource.tf new file mode 100644 index 000000000..8ab9d057f --- /dev/null +++ b/examples/resources/airbyte_source_reddit/resource.tf @@ -0,0 +1,17 @@ +resource "airbyte_source_reddit" "my_source_reddit" { + configuration = { + api_key = "...my_api_key..." + exact = false + include_over_18 = false + limit = 88.51 + query = "...my_query..." + start_date = "2021-09-11T03:28:56.693Z" + subreddits = [ + "{ \"see\": \"documentation\" }", + ] + } + definition_id = "4a70c9cb-870e-4b98-850c-39e7450657bf" + name = "Dennis Rutherford" + secret_id = "...my_secret_id..." + workspace_id = "db2aae6c-20ac-49c1-9db3-e1c883c55acc" +} \ 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 0c4099977..47ed99e05 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 = "Ralph52" + username = "Garnett44" } - definition_id = "a635d7a8-c386-4cec-8fae-93f7f0f8c4b4" - name = "Ivan Stanton" + definition_id = "529a15c3-6062-4a63-b571-6d2b265f2af5" + name = "Faith Schmidt" secret_id = "...my_secret_id..." - workspace_id = "6833e1f3-303a-4b04-9c89-1fe9c8dcb6cc" + workspace_id = "bdd581ac-6487-4876-bcad-615bcace687b" } \ 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 891f12097..9ac1b0efa 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 = "1cd73d2c-f401-436d-9989-e7dbace4005a" - name = "Sheila Bahringer" + definition_id = "33710669-86a7-4b02-bd25-c7727b363542" + name = "Eric Sporer" secret_id = "...my_secret_id..." - workspace_id = "76c58b5d-a21f-4739-86a7-1e992c2b8105" + workspace_id = "7f0bc649-fe5b-408c-82dc-40ca1ab76639" } \ 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 2e7dc6bde..6f298b843 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 = "6bc977a3-bf4d-4ff8-9d83-5d80427d23a4" - name = "Gerald Stoltenberg" + definition_id = "716f1b83-31df-4025-a154-586c7cdfb558" + name = "Wallace Kuhlman V" secret_id = "...my_secret_id..." - workspace_id = "723c8e5e-259f-4e4e-b649-3875b5a324c6" + workspace_id = "d3d1fcf2-b675-4511-890e-c6c18f2017e8" } \ 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 86d6c0523..2f8878024 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 = "128aabba-d073-4078-ac3e-822825101e3e" - name = "Joann Runolfsson" + definition_id = "8b7a8364-f95e-484e-bb6a-9353261882dc" + name = "Sophie O'Conner" secret_id = "...my_secret_id..." - workspace_id = "948d0388-851e-4c06-bd3b-8cc64e95a7a3" + workspace_id = "7e2f3a67-4484-48ac-ab04-beae9e175304" } \ 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 ec678fb57..f2c14965f 100644 --- a/examples/resources/airbyte_source_s3/resource.tf +++ b/examples/resources/airbyte_source_s3/resource.tf @@ -8,7 +8,7 @@ resource "airbyte_source_s3" "my_source_s3" { format = { avro = {} } - path_pattern = "myFolder/myTableFiles/*.csv|myFolder/myOtherTableFiles/*.csv" + path_pattern = "**" provider = { aws_access_key_id = "...my_aws_access_key_id..." aws_secret_access_key = "...my_aws_secret_access_key..." @@ -28,23 +28,24 @@ resource "airbyte_source_s3" "my_source_s3" { days_to_sync_if_history_is_full = 4 format = { avro_format = { - double_as_string = true + double_as_string = false } } globs = [ "...", ] - input_schema = "...my_input_schema..." - legacy_prefix = "...my_legacy_prefix..." - name = "Pam Goldner" - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Wait for Discover" + input_schema = "...my_input_schema..." + legacy_prefix = "...my_legacy_prefix..." + name = "Mr. Gladys Metz" + primary_key = "...my_primary_key..." + recent_n_files_to_read_for_schema_discovery = 6 + schemaless = true + validation_policy = "Wait for Discover" }, ] } - definition_id = "bdae34af-cb06-4318-8072-9444d2b8965c" - name = "Julius Rau" + definition_id = "9df1af8f-5013-4d5d-8cf4-03b2856e98a6" + name = "Herman Bartoletti Jr." secret_id = "...my_secret_id..." - workspace_id = "ee9d6378-e724-43c0-a1bc-073abf4dfebd" + workspace_id = "07e33047-d953-458a-9681-9d2abec21d7e" } \ 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 0bd94a561..fb06a03ce 100644 --- a/examples/resources/airbyte_source_salesforce/resource.tf +++ b/examples/resources/airbyte_source_salesforce/resource.tf @@ -6,16 +6,16 @@ resource "airbyte_source_salesforce" "my_source_salesforce" { is_sandbox = false refresh_token = "...my_refresh_token..." start_date = "2021-07-25" - stream_slice_step = "P1M" + stream_slice_step = "P1Y" streams_criteria = [ { - criteria = "exacts" + criteria = "not contains" value = "...my_value..." }, ] } - definition_id = "03e6b3fc-a03d-492c-b145-10264179a403" - name = "Jean Prosacco" + definition_id = "3d512342-f997-4d05-9d38-a2e5fcf99c41" + name = "Jessie Howe" secret_id = "...my_secret_id..." - workspace_id = "7b13a43b-1ead-4703-a4ee-b23fe553942b" + workspace_id = "0cbc1b99-ee1e-4960-9660-5b0d51b3114e" } \ 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 9540624fb..f07c109c7 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 = "b6d0d209-32d7-4e88-9861-9ec39811786e" - name = "Darlene Vandervort" + definition_id = "d57541c3-612b-40e8-88cf-11a0d259943d" + name = "Shannon Heller" secret_id = "...my_secret_id..." - workspace_id = "72c20971-d544-4a65-a7d2-b4609d4ec646" + workspace_id = "9e475abf-fba2-4c1e-bb69-08ecd761f19b" } \ 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 76318fe2b..b5ca3dd55 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 = "7c968cce-9339-44d8-a35d-b32f900f8cfe" - name = "Ethel Kulas" + definition_id = "60aa0804-c971-4e60-a35d-c09fadad73b7" + name = "Miss Taylor Cassin" secret_id = "...my_secret_id..." - workspace_id = "58770229-72e2-437e-83d2-ab4198d2efe5" + workspace_id = "8acfdc6f-b504-4a12-b772-3cbf0223ae82" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_savvycal/import.sh b/examples/resources/airbyte_source_savvycal/import.sh new file mode 100644 index 000000000..2547d61a0 --- /dev/null +++ b/examples/resources/airbyte_source_savvycal/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_savvycal.my_airbyte_source_savvycal "" diff --git a/examples/resources/airbyte_source_savvycal/resource.tf b/examples/resources/airbyte_source_savvycal/resource.tf new file mode 100644 index 000000000..1a68c7489 --- /dev/null +++ b/examples/resources/airbyte_source_savvycal/resource.tf @@ -0,0 +1,9 @@ +resource "airbyte_source_savvycal" "my_source_savvycal" { + configuration = { + api_key = "...my_api_key..." + } + definition_id = "2e5327d8-cbc0-4547-9c93-d7d7628c4781" + name = "Sally Lockman" + secret_id = "...my_secret_id..." + workspace_id = "6f537d9d-fc7f-4458-965e-7155c9f06b54" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_scryfall/import.sh b/examples/resources/airbyte_source_scryfall/import.sh new file mode 100644 index 000000000..255d6141b --- /dev/null +++ b/examples/resources/airbyte_source_scryfall/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_scryfall.my_airbyte_source_scryfall "" diff --git a/examples/resources/airbyte_source_scryfall/resource.tf b/examples/resources/airbyte_source_scryfall/resource.tf new file mode 100644 index 000000000..b01a9037b --- /dev/null +++ b/examples/resources/airbyte_source_scryfall/resource.tf @@ -0,0 +1,7 @@ +resource "airbyte_source_scryfall" "my_source_scryfall" { + configuration = {} + definition_id = "82c9eb77-003d-4033-bf10-a64369e4ee32" + name = "Clark Reichel" + secret_id = "...my_secret_id..." + workspace_id = "52da6128-f243-46a1-a2e3-949c8198a6bf" +} \ 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 cefbc72e9..5c13a20cb 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 = "e34c931e-7a72-4ef9-ae22-c4d080cde039" - name = "Marcos Hilll" + definition_id = "6f1cbdb3-5a96-4cd0-a48f-1e4b30469b6c" + name = "George Ritchie I" secret_id = "...my_secret_id..." - workspace_id = "c5778ddd-1091-40de-87df-e701edbd0d10" + workspace_id = "cf017cd9-7836-43f1-be7e-9b4aabfc5ff7" } \ 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 0054d05e5..4dc70ca08 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 = "2020-02-29T00:35:24.807Z" + start_date = "2022-09-11T05:44:36.588Z" } - definition_id = "57eb672b-8aa5-45d6-bfb2-a63da0917a61" - name = "Christine Weimann" + definition_id = "6c36bb73-37bf-40be-8a93-a8ae78e1e537" + name = "Julius Kemmer" secret_id = "...my_secret_id..." - workspace_id = "3e8ec69b-abb3-4389-b4cd-0d539af2319a" + workspace_id = "6d5dc1e2-50f8-40fb-8595-c3777bccfe70" } \ 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 b6fd42107..7acafbc6e 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 = "6f8898d7-4d7c-4d06-b0b6-3c633751f6c5" - name = "Debbie Sanford PhD" + definition_id = "cf147e29-3c7a-44b2-97bb-c290ef00ad53" + name = "Ruby Davis" secret_id = "...my_secret_id..." - workspace_id = "73f23dc4-6e62-4d66-a727-78d5db92d16e" + workspace_id = "fe50a2e7-cfe6-4f34-acc6-5c56f5fa6778" } \ 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 a2a592af9..3a90a0bf7 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 = 1 + slice_range = 360 start_date = "2017-01-25" } - definition_id = "06fc1f7a-171f-47c1-98bf-ddb09b9a903f" - name = "Brenda Toy" + definition_id = "91c615d1-2804-40ba-83eb-3c0afcc3c8fa" + name = "Kellie Olson" secret_id = "...my_secret_id..." - workspace_id = "a54b7cf5-33c5-45d6-8a56-e1f7b10c6dd1" + workspace_id = "bc8e3e7d-b5a3-4e44-afc1-e0fa91f7ef5f" } \ 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 065d7c9d9..82d76e999 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 = "unimportant-glacier.biz" + hostname = "firsthand-hospice.com" organization = "...my_organization..." project = "...my_project..." } - definition_id = "eb5fcf36-5dcc-4aec-ace4-1cbe1d2ecd01" - name = "Angela Boehm" + definition_id = "d7c84461-977a-41b2-b1a5-b009f29606a3" + name = "Estelle Murray" secret_id = "...my_secret_id..." - workspace_id = "2f6c56d3-cf89-4e69-a1ce-0c7a6ecf0509" + workspace_id = "9592aaeb-21d8-49b3-9b55-8d4aa1770fe2" } \ 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 a2b813165..df2e4f611 100644 --- a/examples/resources/airbyte_source_sftp/resource.tf +++ b/examples/resources/airbyte_source_sftp/resource.tf @@ -12,8 +12,8 @@ resource "airbyte_source_sftp" "my_source_sftp" { port = 22 user = "...my_user..." } - definition_id = "08d9d001-7533-4842-9733-72c40ec92913" - name = "Gladys Zemlak" + definition_id = "b03b315a-f19b-4c4a-9418-c27e2e49fbe8" + name = "Stella Hammes" secret_id = "...my_secret_id..." - workspace_id = "49bcc34d-389b-4bf5-924f-5b1164e1dc4a" + workspace_id = "48e30ccc-b1d3-49dd-bc64-9b7a58a56364" } \ 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 4e39dfe23..b2ac309a4 100644 --- a/examples/resources/airbyte_source_sftp_bulk/resource.tf +++ b/examples/resources/airbyte_source_sftp_bulk/resource.tf @@ -14,24 +14,25 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { days_to_sync_if_history_is_full = 2 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] - input_schema = "...my_input_schema..." - legacy_prefix = "...my_legacy_prefix..." - name = "Rene Kunze Jr." - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Emit Record" + input_schema = "...my_input_schema..." + legacy_prefix = "...my_legacy_prefix..." + name = "Tony Collier" + primary_key = "...my_primary_key..." + recent_n_files_to_read_for_schema_discovery = 4 + schemaless = true + validation_policy = "Wait for Discover" }, ] - username = "Rose_Abshire56" + username = "Santos_Leuschke" } - definition_id = "1eaa4a70-c9cb-4870-ab98-050c39e74506" - name = "Marlene Reichel" + definition_id = "7e494b9e-5830-4e9e-bbf4-12cdcae9f85c" + name = "Maria Bernhard" secret_id = "...my_secret_id..." - workspace_id = "1cb4db2a-ae6c-420a-89c1-9db3e1c883c5" + workspace_id = "80526f88-56cd-4f3f-9efb-e1999214f3ff" } \ 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 491d991cf..82a148f7e 100644 --- a/examples/resources/airbyte_source_shopify/resource.tf +++ b/examples/resources/airbyte_source_shopify/resource.tf @@ -1,17 +1,20 @@ resource "airbyte_source_shopify" "my_source_shopify" { configuration = { - bulk_window_in_days = 3 + bulk_window_in_days = 7 credentials = { api_password = { api_password = "...my_api_password..." } } - fetch_transactions_user_id = false - shop = "my-store.myshopify.com" - start_date = "2020-04-28" + fetch_transactions_user_id = true + job_checkpoint_interval = 6 + job_product_variants_include_pres_prices = false + job_termination_threshold = 8 + shop = "my-store.myshopify.com" + start_date = "2020-08-16" } - definition_id = "5c37529a-15c3-4606-aa63-f5716d2b265f" - name = "Marguerite Will" + definition_id = "06400b7b-58d1-43a2-8cf2-b1ade2f4984b" + name = "Ed Baumbach MD" secret_id = "...my_secret_id..." - workspace_id = "fce7bdd5-81ac-4648-b876-fcad615bcace" + workspace_id = "3d2b89b2-6a88-438c-b8d2-27f318d42406" } \ 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 6922a6f18..0cb7b33ba 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 = "687b3371-0669-486a-bb02-fd25c7727b36" - name = "Yvonne Glover" + definition_id = "54f47827-40a2-4b5a-8624-28ebc5c77ead" + name = "Kenneth Rutherford" secret_id = "...my_secret_id..." - workspace_id = "1d3e7f0b-c649-4fe5-b08c-82dc40ca1ab7" + workspace_id = "e16ebe85-fa64-4aee-8d2b-de48eefceb9e" } \ 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 0d8a41458..1ad0061d3 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 = false - join_channels = true + include_private_channels = true + join_channels = false lookback_window = 7 start_date = "2017-01-25T00:00:00Z" } - definition_id = "6f1b8331-df02-45a1-9458-6c7cdfb558f8" - name = "Kay Bauch" + definition_id = "894bdd98-fe3f-492c-86a9-aa72702875ab" + name = "Everett Leuschke" secret_id = "...my_secret_id..." - workspace_id = "3d1fcf2b-6755-4110-90ec-6c18f2017e88" + workspace_id = "98d79666-080f-43ec-ae3c-b491ea7992cd" } \ 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 5aeb28f39..addc8276d 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 = "b7a8364f-95e8-44ef-b6a9-353261882dc6" - name = "Hubert Dickens" + definition_id = "63d3381e-fe3f-47d5-a433-d30ca4aa9f68" + name = "Elena Miller" secret_id = "...my_secret_id..." - workspace_id = "e2f3a674-4848-4ac2-b04b-eae9e1753040" + workspace_id = "345ef318-3cb2-4e52-a86a-dbb57c5cbe7c" } \ 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 313dcb670..c3abb7afa 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 = "65f64672-3901-4f87-89df-1af8f5013d5d" - name = "Robyn Weimann I" + definition_id = "cff9d072-4747-4a4b-b7eb-205ddb7f1b71" + name = "Belinda Hilll IV" secret_id = "...my_secret_id..." - workspace_id = "b2856e98-a695-40f0-807e-33047d95358a" + workspace_id = "e103643a-6dfd-42a6-8225-b2ac62eb10f1" } \ 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 efca0d9fa..416cb71db 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 = [ - "sheetversion", + "row_created_by", ] spreadsheet_id = "...my_spreadsheet_id..." start_datetime = "2000-01-01T13:00:00" } - definition_id = "9d2abec2-1d7e-43d2-8dfd-3d512342f997" - name = "Jose Hilpert" + definition_id = "1fb8be04-16cb-449d-a06c-239e7af3ca2c" + name = "Shawn Pfannerstill" secret_id = "...my_secret_id..." - workspace_id = "38a2e5fc-f99c-4418-b6fa-0cbc1b99ee1e" + workspace_id = "92d74588-9040-4904-b267-ce86a322e02b" } \ 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 5d5b3d6d3..1af386b1d 100644 --- a/examples/resources/airbyte_source_snapchat_marketing/resource.tf +++ b/examples/resources/airbyte_source_snapchat_marketing/resource.tf @@ -1,16 +1,16 @@ resource "airbyte_source_snapchat_marketing" "my_source_snapchatmarketing" { configuration = { - action_report_time = "impression" + action_report_time = "conversion" client_id = "...my_client_id..." client_secret = "...my_client_secret..." end_date = "2022-01-30" refresh_token = "...my_refresh_token..." start_date = "2022-01-01" - swipe_up_attribution_window = "7_DAY" - view_attribution_window = "1_HOUR" + swipe_up_attribution_window = "1_DAY" + view_attribution_window = "1_DAY" } - definition_id = "5b0d51b3-114e-49ed-9754-1c3612b0e8c8" - name = "Miss Emilio Botsford PhD" + definition_id = "df5c3592-a5dd-47dd-bd79-7d2eb894fd68" + name = "Lynda Keebler" secret_id = "...my_secret_id..." - workspace_id = "259943df-a52a-49e4-b5ab-ffba2c1e7b69" + workspace_id = "b1b8dbba-eb9b-45c2-a2ee-8b85f41cf2ef" } \ 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 b06d73b64..4f1d2f6a6 100644 --- a/examples/resources/airbyte_source_snowflake/resource.tf +++ b/examples/resources/airbyte_source_snowflake/resource.tf @@ -1,11 +1,10 @@ resource "airbyte_source_snowflake" "my_source_snowflake" { configuration = { credentials = { - o_auth20 = { - access_token = "...my_access_token..." - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." - refresh_token = "...my_refresh_token..." + key_pair_authentication = { + private_key = "...my_private_key..." + private_key_password = "...my_private_key_password..." + username = "AIRBYTE_USER" } } database = "AIRBYTE_DATABASE" @@ -15,8 +14,8 @@ resource "airbyte_source_snowflake" "my_source_snowflake" { schema = "AIRBYTE_SCHEMA" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "08ecd761-f19b-460a-a080-4c971e60235d" - name = "Frank Marquardt" + definition_id = "05e9e4de-da30-4dd3-8fb0-aa2fad058413" + name = "Penny Franecki" secret_id = "...my_secret_id..." - workspace_id = "dad73b79-d20b-448a-8fdc-6fb504a12b77" + workspace_id = "3e5de43c-907f-463c-802b-c2f7f5dfb2c2" } \ 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 b3c2de577..2f9486884 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 = "f0223ae8-22e5-4327-98cb-c0547dc93d7d" - name = "Katie Deckow" + definition_id = "86915d33-24b4-4819-bf39-3429d3165dd8" + name = "Erika Hills" secret_id = "...my_secret_id..." - workspace_id = "47813582-a6f5-437d-9dfc-7f458565e715" + workspace_id = "c61e20db-5f4b-4b11-860c-3a7ba336248b" } \ 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 0f1723f1c..9d0e1ba90 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 = "5c9f06b5-482c-49eb-b700-3d0337f10a64" + id = "e45dfad9-324f-46ab-9f83-34526eae71eb" options = "...my_options..." } - definition_id = "369e4ee3-2ccb-44d5-ada6-128f2436a122" - name = "Travis McCullough" + definition_id = "759d7dd0-bf2f-4572-9957-8fbbe9226a95" + name = "Elisa Wunsch" secret_id = "...my_secret_id..." - workspace_id = "c8198a6b-f6f1-4cbd-b35a-96cd0e48f1e4" + workspace_id = "3d12e392-ce90-4b91-a9fb-30db2efb21ef" } \ 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 cfc014e6c..73be8975a 100644 --- a/examples/resources/airbyte_source_square/resource.tf +++ b/examples/resources/airbyte_source_square/resource.tf @@ -7,10 +7,10 @@ resource "airbyte_source_square" "my_source_square" { } include_deleted_objects = true is_sandbox = true - start_date = "2022-09-30" + start_date = "2022-03-17" } - definition_id = "69b6ca0b-303c-4f01-bcd9-78363f1be7e9" - name = "Tom O'Keefe" + definition_id = "8bf07f2e-7721-4366-a46f-a9b2db7532b2" + name = "Edmund Reynolds" secret_id = "...my_secret_id..." - workspace_id = "fc5ff714-6c36-4bb7-b37b-f0beca93a8ae" + workspace_id = "5b8d4ad9-bb4c-42d0-8c6c-eb0e4409659d" } \ 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 03c3fe867..07e65e4be 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 = "1e537d96-eb6d-45dc-9e25-0f80fbc595c3" - name = "Jackie Krajcik" + definition_id = "ecaf35c1-5b37-479d-be3d-ccb9fd6e1ad7" + name = "Stella Balistreri" secret_id = "...my_secret_id..." - workspace_id = "cfe70cf1-47e2-493c-ba4b-2d7bbc290ef0" + workspace_id = "320ef50a-8ca7-46b0-83ea-280df1804a67" } \ 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 d953bc922..43f39cc66 100644 --- a/examples/resources/airbyte_source_stripe/resource.tf +++ b/examples/resources/airbyte_source_stripe/resource.tf @@ -1,15 +1,15 @@ resource "airbyte_source_stripe" "my_source_stripe" { configuration = { account_id = "...my_account_id..." - call_rate_limit = 25 + call_rate_limit = 100 client_secret = "...my_client_secret..." - lookback_window_days = 9 + lookback_window_days = 10 num_workers = 1 slice_range = 10 start_date = "2017-01-25T00:00:00Z" } - definition_id = "6fe50a2e-7cfe-46f3-8acc-65c56f5fa677" - name = "Sheldon Gerlach" + definition_id = "9512957c-2986-4967-96fe-05881022b8ad" + name = "Joann Schuster IV" secret_id = "...my_secret_id..." - workspace_id = "91c615d1-2804-40ba-83eb-3c0afcc3c8fa" + workspace_id = "88754523-f36d-4ab5-9228-90f3e992c2a3" } \ 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 896f45031..d87832af8 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 = "6dac9959-2aae-4b21-989b-3db558d4aa17" - name = "Margaret Wiza" + definition_id = "f1f04aee-bc30-46c4-b339-7c20475faade" + name = "Wilbur Gleichner DVM" secret_id = "...my_secret_id..." - workspace_id = "1a7b03b3-15af-419b-84a1-418c27e2e49f" + workspace_id = "413dd760-cc3a-4e1d-b75e-e978f160f457" } \ 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 45d51dd7f..3af8f00e4 100644 --- a/examples/resources/airbyte_source_surveymonkey/resource.tf +++ b/examples/resources/airbyte_source_surveymonkey/resource.tf @@ -5,14 +5,14 @@ resource "airbyte_source_surveymonkey" "my_source_surveymonkey" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." } - origin = "Europe" + origin = "Canada" start_date = "2021-01-01T00:00:00Z" survey_ids = [ "...", ] } - definition_id = "fbbc8e3e-7db5-4a3e-846f-c1e0fa91f7ef" - name = "Winifred Graham" + definition_id = "8fc026c7-cc4e-4afd-ab4c-1bcaf66c1286" + name = "Jerald Mertz" secret_id = "...my_secret_id..." - workspace_id = "d7c84461-977a-41b2-b1a5-b009f29606a3" + workspace_id = "d6138285-42bb-437a-858f-acd1771a16ff" } \ 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 bdd88108c..fdbe524fd 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 = "be84753d-48e3-40cc-8b1d-39ddfc649b7a" - name = "Cassandra O'Reilly" + definition_id = "46ac11eb-0243-4724-82fa-90b3fc58aed9" + name = "Kristen Erdman IV" secret_id = "...my_secret_id..." - workspace_id = "3641fd33-8f32-4285-acd8-8e7e494b9e58" + workspace_id = "de960972-5c6d-45a5-9a35-039f4e4098bb" } \ 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 181d73eb6..dd464e0b7 100644 --- a/examples/resources/airbyte_source_the_guardian_api/resource.tf +++ b/examples/resources/airbyte_source_the_guardian_api/resource.tf @@ -2,13 +2,13 @@ resource "airbyte_source_the_guardian_api" "my_source_theguardianapi" { configuration = { api_key = "...my_api_key..." end_date = "YYYY-MM-DD" - query = "environment AND NOT water" - section = "media" + query = "amusement park" + section = "housing-network" start_date = "YYYY-MM-DD" - tag = "environment/energyefficiency" + tag = "environment/recycling" } - definition_id = "9efbf412-cdca-4e9f-85c7-017380526f88" - name = "Laurie Schiller" + definition_id = "a23b3c01-3462-4186-acf5-18dbd5ebee01" + name = "Sonja Abshire" secret_id = "...my_secret_id..." - workspace_id = "3fdefbe1-9992-414f-bffa-48acadc06400" + workspace_id = "adc6f53d-253d-4b8b-9e39-d437be8f4cf7" } \ 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 8045d89f7..53e80101b 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 = 8 + attribution_window = 6 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 = "2022-04-17" + end_date = "2022-01-13" include_deleted = true - start_date = "2021-05-10" + start_date = "2021-09-07" } - definition_id = "13a2ccf2-b1ad-4e2f-8984-bfb0e1b3d2b8" - name = "Jean Dare" + definition_id = "e012beba-22c9-4964-9ef6-30f5d8739c0e" + name = "Hazel Pfeffer" secret_id = "...my_secret_id..." - workspace_id = "8838cf8d-227f-4318-9424-0654f4782740" + workspace_id = "2ddb04c9-bce3-487d-a644-4a186797a763" } \ 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 52829eb3c..6f2db6cae 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 = "b5a46242-8ebc-45c7-bead-f0c9ce16ebe8" - name = "Josefina Pacocha" + definition_id = "0f99e008-79e4-4948-8a74-85520644aee4" + name = "Melinda Zboncak" secret_id = "...my_secret_id..." - workspace_id = "aee8d2bd-e48e-4efc-ab9e-0d54b0894bdd" + workspace_id = "df9bf84b-784e-4daa-b2f4-24ed308606f0" } \ 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 b375fb523..e222b101a 100644 --- a/examples/resources/airbyte_source_trustpilot/resource.tf +++ b/examples/resources/airbyte_source_trustpilot/resource.tf @@ -8,10 +8,10 @@ resource "airbyte_source_trustpilot" "my_source_trustpilot" { client_id = "...my_client_id..." } } - start_date = "%Y-%m-%dT%H:%M:%S" + start_date = "%Y-%m-%dT%H:%M:%SZ" } - definition_id = "98fe3f92-c06a-49aa-b270-2875abb88c39" - name = "Marcos Kuhic" + definition_id = "992622de-7b1a-493e-9915-fe5844c8d7f9" + name = "Reginald Kreiger" secret_id = "...my_secret_id..." - workspace_id = "66080f3e-cae3-4cb4-91ea-7992cd63d338" + workspace_id = "df74d23a-87a4-42ab-b6ae-57802daa8219" } \ 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 9f8bc3aed..f8d5c35a4 100644 --- a/examples/resources/airbyte_source_tvmaze_schedule/resource.tf +++ b/examples/resources/airbyte_source_tvmaze_schedule/resource.tf @@ -1,12 +1,12 @@ resource "airbyte_source_tvmaze_schedule" "my_source_tvmazeschedule" { configuration = { - domestic_schedule_country_code = "US" + domestic_schedule_country_code = "GB" end_date = "...my_end_date..." start_date = "...my_start_date..." - web_schedule_country_code = "global" + web_schedule_country_code = "GB" } - definition_id = "fe3f7d5a-433d-430c-a4aa-9f684d9ab345" - name = "Ms. Moses Dibbert" + definition_id = "eac7526c-0e68-4d41-b294-78bd831a4caf" + name = "Hattie Beer DVM" secret_id = "...my_secret_id..." - workspace_id = "cb2e52a8-6adb-4b57-85cb-e7ccff9d0724" + workspace_id = "2320a84c-82fe-4ed3-9fd4-712605259781" } \ 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 c2f55370e..9118ede2c 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 = "a4b37eb2-05dd-4b7f-9b71-195e07e10364" - name = "Angie Jenkins" + definition_id = "214e979a-9787-43ec-aec2-3f8936834bb7" + name = "Howard Herman" secret_id = "...my_secret_id..." - workspace_id = "d2a60225-b2ac-462e-b10f-1a0d51fb8be0" + workspace_id = "a2eed97a-7ac9-43ce-a101-f692eff8de56" } \ 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 7567a159f..4116fa342 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 = "416cb49d-a06c-4239-a7af-3ca2cc2a5392" - name = "Julio Gutmann" + definition_id = "50472830-aace-4290-97b3-b358aff5206e" + name = "Angelica Huels" secret_id = "...my_secret_id..." - workspace_id = "89040904-7267-4ce8-aa32-2e02b7e6dd49" + workspace_id = "12764ede-9cd8-419e-8c37-ba1700ba64da" } \ 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 6f94c6735..76d531462 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 = "2020-01-18T12:46:16.717Z" + end_date = "2022-07-12T09:29:20.072Z" query = "...my_query..." - start_date = "2022-03-25T00:43:50.915Z" + start_date = "2020-06-17T06:17:32.127Z" } - definition_id = "3592a5dd-7ddb-4d79-bd2e-b894fd682a67" - name = "Whitney Casper" + definition_id = "7c8fe575-7a30-4644-ba75-bcf4e2e1378d" + name = "Steven Brown" secret_id = "...my_secret_id..." - workspace_id = "dbbaeb9b-5c2e-42ee-8b85-f41cf2efd5ed" + workspace_id = "6f7dd27a-a6e5-41f0-820e-4312d0cbfe39" } \ 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 63c1a3c00..26078ce2f 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 = "2022-12-23T20:48:01.588Z" + token_expiry_date = "2020-01-31T16:32:17.420Z" } } form_ids = [ @@ -14,8 +14,8 @@ resource "airbyte_source_typeform" "my_source_typeform" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "9e4deda3-0dd3-4cfb-8aa2-fad058413083" - name = "Krystal Dietrich" + definition_id = "e297d6f5-cf39-4b34-b958-9f42198f3282" + name = "Latoya Leuschke" secret_id = "...my_secret_id..." - workspace_id = "de43c907-f63c-4c02-bc2f-7f5dfb2c26b4" + workspace_id = "159ebc2b-7c1d-4354-8fbb-e2d8a9d00100" } \ 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 84b1bea1f..d41252f14 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=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:*" + 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/2018/acs" } - definition_id = "6915d332-4b48-419f-b393-429d3165dd85" - name = "Vernon Tillman" + definition_id = "d11c1280-d807-4cdd-8eb8-c75c4610938e" + name = "Benjamin Greenholt" secret_id = "...my_secret_id..." - workspace_id = "61e20db5-f4bb-411c-a0c3-a7ba336248be" + workspace_id = "624d8c5c-5aa0-4b53-a8b2-6a568aa6dc34" } \ 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 a5f13d359..671228f4c 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 = "45dfad93-24f6-4ab9-b833-4526eae71eb7" - name = "Sheryl Stroman" + definition_id = "0bb15469-57c1-4238-9870-2998d832c86d" + name = "Ms. Wilfred Larkin" secret_id = "...my_secret_id..." - workspace_id = "d0bf2f57-2195-478f-bbe9-226a954fff93" + workspace_id = "f75b417c-7a0b-47eb-b790-1b079c0c4f41" } \ 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 05a1a9bdb..d4fb0fbd4 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 = "d12e392c-e90b-4916-9fb3-0db2efb21ef2" - name = "Israel Gleason" + definition_id = "1920e562-c711-4d3e-b646-ca6a0584e97a" + name = "Leon Corkery DDS" secret_id = "...my_secret_id..." - workspace_id = "f07f2e77-2136-4664-afa9-b2db7532b28c" + workspace_id = "d22882d9-facb-48ad-8cb7-919041885bed" } \ 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 bcd001fef..81a689e54 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 = "b785b8d4-ad9b-4b4c-ad04-c6ceb0e44096" - name = "Jenny Strosin" + definition_id = "f1b6a60e-d146-42f4-91dc-6a0a7c772330" + name = "Clara Shanahan" secret_id = "...my_secret_id..." - workspace_id = "6ecaf35c-15b3-4779-97e3-dccb9fd6e1ad" + workspace_id = "7177b9cd-d675-4dcd-9c0f-a1c232938176" } \ 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 a169b4439..4a1424b3f 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 = "desktop" + access = "mobile-web" agent = "user" article = "Are_You_the_One%3F" - country = "FR" + country = "IN" end = "...my_end..." - project = "commons.wikimedia.org" + project = "en.wikipedia.org" start = "...my_start..." } - definition_id = "8320ef50-a8ca-476b-883e-a280df1804a6" - name = "Hannah Moore" + definition_id = "ac70a337-a3d1-431b-9bdf-0c811e90b6ae" + name = "Lee Deckow" secret_id = "...my_secret_id..." - workspace_id = "e5814951-2957-4c29-8696-756fe0588102" + workspace_id = "138174cf-a455-4367-8966-ff0c6426b6cd" } \ 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 18f637e79..b59f9f3e2 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 = "8ad45dc0-7887-4545-a3f3-6dab5122890f" - name = "Cecelia McClure" + definition_id = "bc947d1a-36d8-4135-b42d-9b671ba3daf1" + name = "Faith Watsica" secret_id = "...my_secret_id..." - workspace_id = "c2a3f4c8-fc02-46c7-8c4e-afdab4c1bcaf" + workspace_id = "d62693dd-fcad-432b-811f-0852299485bd" } \ 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 efb69375a..48ca653a5 100644 --- a/examples/resources/airbyte_source_xkcd/resource.tf +++ b/examples/resources/airbyte_source_xkcd/resource.tf @@ -1,7 +1,9 @@ resource "airbyte_source_xkcd" "my_source_xkcd" { - configuration = {} - definition_id = "66c12869-f984-4d61-b828-542bb37a458f" - name = "Ms. Lowell Stiedemann" + configuration = { + comic_number = "...my_comic_number..." + } + definition_id = "5b511296-6924-4cde-8b86-7ddcc8cc1e1e" + name = "Dana Hickle" secret_id = "...my_secret_id..." - workspace_id = "1a16fff1-f04a-4eeb-8306-c4f3397c2047" + workspace_id = "c4c80fc9-04e1-4374-8425-fe8edba3050b" } \ 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 b9781e76c..2d3ceec6c 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 = "deba481e-413d-4d76-8cc3-ae1d775ee978" - name = "Dr. Lawrence Howe" + definition_id = "579b424a-0569-4229-a6de-0331191cf44b" + name = "Jacob Bergnaum" secret_id = "...my_secret_id..." - workspace_id = "5746ac11-eb02-4437-a4c2-fa90b3fc58ae" + workspace_id = "c75cd175-6719-46a7-941f-a2a7924db04e" } \ 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 c229f8152..6bdda1726 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 = "Leta.Jakubowski@hotmail.com" + email = "Santiago_Von2@hotmail.com" start_date = "2022-03-01T00:00:00.000Z" } - definition_id = "7de96097-25c6-4d5a-9da3-5039f4e4098b" - name = "Morris Schimmel" + definition_id = "77895426-7034-4f3e-8d74-96d90ab23438" + name = "Walter Wintheiser" secret_id = "...my_secret_id..." - workspace_id = "23b3c013-4621-4866-8f51-8dbd5ebee014" + workspace_id = "9697c812-8b04-429b-90eb-a2d38220deac" } \ 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 99a9589f8..5c6c4d783 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 = "e07eadc6-f53d-4253-9b8b-1e39d437be8f" - name = "Vicky Welch" + definition_id = "9bb7b45d-9607-443b-824b-c119f8fb36f9" + name = "Ms. Marie Cummings" secret_id = "...my_secret_id..." - workspace_id = "7fa8ae01-2beb-4a22-8996-41ef630f5d87" + workspace_id = "49978c5f-0c0b-470c-9d08-d732ef691ae1" } \ 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 47551dbd4..4d40714de 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 = "c0e34b35-2ddb-404c-9bce-387d66444a18" - name = "Claudia Mills" + definition_id = "6e65b76b-dc3f-49ea-a358-d5b4415ac58f" + name = "Kristine Yundt" secret_id = "...my_secret_id..." - workspace_id = "763e10f9-9e00-4879-a494-84a748552064" + workspace_id = "370ea7b0-2059-4e2e-b23f-c13e66cf8aae" } \ 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 eb2fd8777..14f339016 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 = "4aee427f-93df-49bf-84b7-84edaaf2f424" - name = "Ms. Marcos Ebert" + definition_id = "95489f10-b55b-4793-92be-b1b52fdccb22" + name = "Ernest Weimann" secret_id = "...my_secret_id..." - workspace_id = "06f09926-22de-47b1-a93e-5915fe5844c8" + workspace_id = "f127a6aa-10ba-476f-bfe0-de8798ad00b4" } \ 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 c65f22ac1..4ae5a5d31 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 = "Jannie_Zulauf@hotmail.com" + email = "Gracie_Howell@gmail.com" } } start_date = "2021-01-01T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "badf74d2-3a87-4a42-abf6-ae57802daa82" - name = "Ramona Marvin" + definition_id = "7c9141ac-8dcf-4207-806d-a07742c26203" + name = "Felix Beer II" secret_id = "...my_secret_id..." - workspace_id = "ac7526c0-e68d-441f-a947-8bd831a4caf6" + workspace_id = "4956e9a2-d9da-4eda-9833-c055c950c18b" } \ 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 f1c14eaba..f35dfe9cf 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 = "Anastacio94@yahoo.com" + email = "Priscilla.Bergstrom51@hotmail.com" } } ignore_pagination = true start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "0a84c82f-eed3-45fd-8712-605259781224" - name = "Kathleen Greenfelder" + definition_id = "00a18f6f-5072-4b63-af98-b5cd0fbbcc17" + name = "Katie Bartoletti" secret_id = "...my_secret_id..." - workspace_id = "79a97873-ec6e-4c23-b893-6834bb7f256a" + workspace_id = "ebd0cf43-5b72-4f05-818a-11c8951c09c2" } \ 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 7cd8470cb..151c25d6b 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 = "Carolyne_Turcotte57@hotmail.com" + email = "Jan.OConner@hotmail.com" } } start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "7ac93ce2-101f-4692-aff8-de5650472830" - name = "Grant Schmitt V" + definition_id = "89949514-7b12-4e2d-8774-d24e5a5b3df8" + name = "Kerry Lynch" secret_id = "...my_secret_id..." - workspace_id = "0d7b3b35-8aff-4520-ae7c-66512764ede9" + workspace_id = "c48d7309-6598-4895-bdb7-81b6d18174b5" } \ 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 91500588b..73d93cd3b 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 = "cd819ecc-37ba-4170-8ba6-4daf2cd7c8fe" - name = "Delores Hamill" + definition_id = "fdf3211f-15e0-4b96-bac0-fe887647e848" + name = "Pauline Bechtelar" secret_id = "...my_secret_id..." - workspace_id = "306443a7-5bcf-44e2-a137-8db01d76f7dd" + workspace_id = "f14991dd-b8a5-49a6-bc83-fdb6d5a0b32f" } \ 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 0c06fa5e3..f44889fe9 100644 --- a/examples/resources/airbyte_source_zoho_crm/resource.tf +++ b/examples/resources/airbyte_source_zoho_crm/resource.tf @@ -2,14 +2,14 @@ resource "airbyte_source_zoho_crm" "my_source_zohocrm" { configuration = { client_id = "...my_client_id..." client_secret = "...my_client_secret..." - dc_region = "US" - edition = "Professional" - environment = "Developer" + dc_region = "IN" + edition = "Free" + environment = "Production" refresh_token = "...my_refresh_token..." - start_datetime = "2000-01-01T13:00+00:00" + start_datetime = "2000-01-01T13:00:00-07:00" } - definition_id = "51f0c20e-4312-4d0c-bfe3-9df03e297d6f" - name = "Roxanne Yundt" + definition_id = "36ea6e2a-4934-453a-b987-b81a066eb5b6" + name = "Gabriel Hartmann" secret_id = "...my_secret_id..." - workspace_id = "b34f9589-f421-498f-b282-2b82a159ebc2" + workspace_id = "46aaeb18-d05d-49d9-a1d4-6fb619254e9e" } \ 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 fea40f666..20cb97afe 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 = "b7c1d354-0fbb-4e2d-8a9d-0010028d11c1" - name = "Leona Bechtelar" + definition_id = "7e57484d-e0ea-4ba6-b0f1-4e7378bf2375" + name = "Allison Ondricka" secret_id = "...my_secret_id..." - workspace_id = "07cdd8eb-8c75-4c46-9093-8eb2433624d8" + workspace_id = "8f4810e2-b60f-4065-9300-56f91ac7e123" } \ No newline at end of file diff --git a/examples/resources/airbyte_workspace/resource.tf b/examples/resources/airbyte_workspace/resource.tf index 08ee8f291..425ea02fa 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 = "Floyd Schinner" - organization_id = "a0b5368b-26a5-468a-a6dc-340bb1546957" + name = "Leonard Hamill" + organization_id = "023c2b52-9d84-41a3-8ae3-ec6aa76308e2" } \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 5a5d2edbd..68923e30a 100755 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: oAuth2ClientCredentialsEnabled: true telemetryEnabled: true terraform: - version: 0.9.0 + version: 0.11.0 additionalDataSources: [] additionalDependencies: {} additionalResources: [] diff --git a/go.mod b/go.mod index 7771805a1..8655c129a 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/airbytehq/terraform-provider-airbyte go 1.21 -toolchain go1.22.6 +toolchain go1.22.7 require ( github.com/cenkalti/backoff/v4 v4.2.0 diff --git a/internal/provider/connection_data_source.go b/internal/provider/connection_data_source.go index 00c65f324..952c8fe6e 100644 --- a/internal/provider/connection_data_source.go +++ b/internal/provider/connection_data_source.go @@ -58,7 +58,7 @@ func (r *ConnectionDataSource) Schema(ctx context.Context, req datasource.Schema "configurations": schema.SingleNestedAttribute{ Computed: true, Attributes: map[string]schema.Attribute{ - "streams": schema.SetNestedAttribute{ + "streams": schema.ListNestedAttribute{ Computed: true, NestedObject: schema.NestedAttributeObject{ Attributes: map[string]schema.Attribute{ diff --git a/internal/provider/destination_astra_resource.go b/internal/provider/destination_astra_resource.go index da391a8e7..7240f6acb 100644 --- a/internal/provider/destination_astra_resource.go +++ b/internal/provider/destination_astra_resource.go @@ -197,7 +197,6 @@ func (r *DestinationAstraResource) Schema(ctx context.Context, req resource.Sche }, "astra_db_keyspace": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created for you when you create a Vector Database in Astra DB.`, }, "collection": schema.StringAttribute{ diff --git a/internal/provider/destination_awsdatalake_resource.go b/internal/provider/destination_awsdatalake_resource.go index 4bface645..f824eca07 100644 --- a/internal/provider/destination_awsdatalake_resource.go +++ b/internal/provider/destination_awsdatalake_resource.go @@ -82,6 +82,7 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc Attributes: map[string]schema.Attribute{ "role_arn": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Will assume this role to write data to s3`, }, }, @@ -202,7 +203,6 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc }, "lakeformation_database_default_tag_key": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `Add a default tag key to databases created by this destination`, }, "lakeformation_database_default_tag_values": schema.StringAttribute{ diff --git a/internal/provider/destination_bigquery_resource.go b/internal/provider/destination_bigquery_resource.go index 8b95ae29b..0af521104 100644 --- a/internal/provider/destination_bigquery_resource.go +++ b/internal/provider/destination_bigquery_resource.go @@ -71,6 +71,7 @@ func (r *DestinationBigqueryResource) Schema(ctx context.Context, req resource.S }, "credentials_json": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.`, }, "dataset_id": schema.StringAttribute{ @@ -138,6 +139,16 @@ func (r *DestinationBigqueryResource) Schema(ctx context.Context, req resource.S "loading_method": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ + "batched_standard_inserts": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Description: `Direct loading using batched SQL INSERT statements. This method uses the BigQuery driver to convert large INSERT statements into file uploads automatically.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("gcs_staging"), + }...), + }, + }, "gcs_staging": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ @@ -186,20 +197,10 @@ func (r *DestinationBigqueryResource) Schema(ctx context.Context, req resource.S }, }, }, - Description: `(recommended) Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. Provides best-in-class speed, reliability and scalability. Read more about GCS Staging here.`, + Description: `Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery.`, Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("standard_inserts"), - }...), - }, - }, - "standard_inserts": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{}, - Description: `(not recommended) Direct loading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In all other cases, you should use GCS staging.`, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("gcs_staging"), + path.MatchRelative().AtParent().AtName("batched_standard_inserts"), }...), }, }, diff --git a/internal/provider/destination_bigquery_resource_sdk.go b/internal/provider/destination_bigquery_resource_sdk.go index ed4757e0d..d9c8ba606 100644 --- a/internal/provider/destination_bigquery_resource_sdk.go +++ b/internal/provider/destination_bigquery_resource_sdk.go @@ -30,6 +30,15 @@ func (r *DestinationBigqueryResourceModel) ToSharedDestinationBigqueryCreateRequ } var loadingMethod *shared.DestinationBigqueryLoadingMethod if r.Configuration.LoadingMethod != nil { + var destinationBigqueryBatchedStandardInserts *shared.DestinationBigqueryBatchedStandardInserts + if r.Configuration.LoadingMethod.BatchedStandardInserts != nil { + destinationBigqueryBatchedStandardInserts = &shared.DestinationBigqueryBatchedStandardInserts{} + } + if destinationBigqueryBatchedStandardInserts != nil { + loadingMethod = &shared.DestinationBigqueryLoadingMethod{ + DestinationBigqueryBatchedStandardInserts: destinationBigqueryBatchedStandardInserts, + } + } var destinationBigqueryGCSStaging *shared.DestinationBigqueryGCSStaging if r.Configuration.LoadingMethod.GCSStaging != nil { var credential shared.DestinationBigqueryCredential @@ -67,15 +76,6 @@ func (r *DestinationBigqueryResourceModel) ToSharedDestinationBigqueryCreateRequ DestinationBigqueryGCSStaging: destinationBigqueryGCSStaging, } } - var destinationBigqueryStandardInserts *shared.DestinationBigqueryStandardInserts - if r.Configuration.LoadingMethod.StandardInserts != nil { - destinationBigqueryStandardInserts = &shared.DestinationBigqueryStandardInserts{} - } - if destinationBigqueryStandardInserts != nil { - loadingMethod = &shared.DestinationBigqueryLoadingMethod{ - DestinationBigqueryStandardInserts: destinationBigqueryStandardInserts, - } - } } projectID := r.Configuration.ProjectID.ValueString() rawDataDataset := new(string) @@ -150,6 +150,15 @@ func (r *DestinationBigqueryResourceModel) ToSharedDestinationBigqueryPutRequest } var loadingMethod *shared.LoadingMethod if r.Configuration.LoadingMethod != nil { + var batchedStandardInserts *shared.BatchedStandardInserts + if r.Configuration.LoadingMethod.BatchedStandardInserts != nil { + batchedStandardInserts = &shared.BatchedStandardInserts{} + } + if batchedStandardInserts != nil { + loadingMethod = &shared.LoadingMethod{ + BatchedStandardInserts: batchedStandardInserts, + } + } var gcsStaging *shared.GCSStaging if r.Configuration.LoadingMethod.GCSStaging != nil { var credential shared.Credential @@ -187,15 +196,6 @@ func (r *DestinationBigqueryResourceModel) ToSharedDestinationBigqueryPutRequest GCSStaging: gcsStaging, } } - var standardInserts *shared.StandardInserts - if r.Configuration.LoadingMethod.StandardInserts != nil { - standardInserts = &shared.StandardInserts{} - } - if standardInserts != nil { - loadingMethod = &shared.LoadingMethod{ - StandardInserts: standardInserts, - } - } } projectID := r.Configuration.ProjectID.ValueString() rawDataDataset := new(string) diff --git a/internal/provider/destination_databricks_resource.go b/internal/provider/destination_databricks_resource.go index 387c56844..6733fd1c2 100644 --- a/internal/provider/destination_databricks_resource.go +++ b/internal/provider/destination_databricks_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/objectvalidator" - "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" @@ -68,159 +67,76 @@ func (r *DestinationDatabricksResource) Schema(ctx context.Context, req resource Default: booldefault.StaticBool(false), Description: `You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. Default: false`, }, - "data_source": schema.SingleNestedAttribute{ + "authentication": schema.SingleNestedAttribute{ Required: true, Attributes: map[string]schema.Attribute{ - "recommended_managed_tables": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{}, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("amazon_s3"), - path.MatchRelative().AtParent().AtName("azure_blob_storage"), - }...), - }, - }, - "amazon_s3": schema.SingleNestedAttribute{ + "o_auth2_recommended": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ - "file_name_pattern": schema.StringAttribute{ - Optional: true, - Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`, - }, - "s3_access_key_id": schema.StringAttribute{ - Required: true, - Sensitive: true, - Description: `The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket.`, - }, - "s3_bucket_name": schema.StringAttribute{ - Required: true, - Description: `The name of the S3 bucket to use for intermittent staging of the data.`, + "client_id": schema.StringAttribute{ + Required: true, }, - "s3_bucket_path": schema.StringAttribute{ - Required: true, - Description: `The directory under the S3 bucket where data will be written.`, - }, - "s3_bucket_region": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString(""), - Description: `The region of the S3 staging bucket to use if utilising a copy strategy. must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]; Default: ""`, - Validators: []validator.String{ - stringvalidator.OneOf( - "", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - "af-south-1", - "ap-east-1", - "ap-south-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-southeast-1", - "ap-southeast-2", - "ca-central-1", - "cn-north-1", - "cn-northwest-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "sa-east-1", - "me-south-1", - "us-gov-east-1", - "us-gov-west-1", - ), - }, - }, - "s3_secret_access_key": schema.StringAttribute{ - Required: true, - Sensitive: true, - Description: `The corresponding secret to the above access key id.`, + "secret": schema.StringAttribute{ + Required: true, + Sensitive: true, }, }, Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("recommended_managed_tables"), - path.MatchRelative().AtParent().AtName("azure_blob_storage"), + path.MatchRelative().AtParent().AtName("personal_access_token"), }...), }, }, - "azure_blob_storage": schema.SingleNestedAttribute{ + "personal_access_token": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ - "azure_blob_storage_account_name": schema.StringAttribute{ - Required: true, - Description: `The account's name of the Azure Blob Storage.`, - }, - "azure_blob_storage_container_name": schema.StringAttribute{ - Required: true, - Description: `The name of the Azure blob storage container.`, - }, - "azure_blob_storage_endpoint_domain_name": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("blob.core.windows.net"), - Description: `This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. Default: "blob.core.windows.net"`, - }, - "azure_blob_storage_sas_token": schema.StringAttribute{ - Required: true, - Sensitive: true, - Description: `Shared access signature (SAS) token to grant limited access to objects in your storage account.`, + "personal_access_token": schema.StringAttribute{ + Required: true, + Sensitive: true, }, }, Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("recommended_managed_tables"), - path.MatchRelative().AtParent().AtName("amazon_s3"), + path.MatchRelative().AtParent().AtName("o_auth2_recommended"), }...), }, }, }, - Description: `Storage on which the delta lake is built.`, + Description: `Authentication mechanism for Staging files and running queries`, Validators: []validator.Object{ validators.ExactlyOneChild(), }, }, "database": schema.StringAttribute{ - Optional: true, - Description: `The name of the catalog. If not specified otherwise, the "hive_metastore" will be used.`, + Required: true, + Description: `The name of the unity catalog for the database`, }, - "databricks_http_path": schema.StringAttribute{ + "hostname": schema.StringAttribute{ Required: true, - Description: `Databricks Cluster HTTP Path.`, + Description: `Databricks Cluster Server Hostname.`, }, - "databricks_personal_access_token": schema.StringAttribute{ + "http_path": schema.StringAttribute{ Required: true, - Sensitive: true, - Description: `Databricks Personal Access Token for making authenticated requests.`, + Description: `Databricks Cluster HTTP Path.`, }, - "databricks_port": schema.StringAttribute{ + "port": schema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("443"), Description: `Databricks Cluster Port. Default: "443"`, }, - "databricks_server_hostname": schema.StringAttribute{ - Required: true, - Description: `Databricks Cluster Server Hostname.`, - }, - "enable_schema_evolution": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. Default: false`, - }, "purge_staging_data": schema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(true), Description: `Default to 'true'. Switch it to 'false' for debugging purpose. Default: true`, }, + "raw_schema_override": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("airbyte_internal"), + Description: `The schema to write raw tables into (default: airbyte_internal). Default: "airbyte_internal"`, + }, "schema": schema.StringAttribute{ Computed: true, Optional: true, diff --git a/internal/provider/destination_databricks_resource_sdk.go b/internal/provider/destination_databricks_resource_sdk.go index a4d2e21be..39eecb303 100644 --- a/internal/provider/destination_databricks_resource_sdk.go +++ b/internal/provider/destination_databricks_resource_sdk.go @@ -14,91 +14,41 @@ func (r *DestinationDatabricksResourceModel) ToSharedDestinationDatabricksCreate } else { acceptTerms = nil } - var dataSource shared.DestinationDatabricksDataSource - var destinationDatabricksRecommendedManagedTables *shared.DestinationDatabricksRecommendedManagedTables - if r.Configuration.DataSource.RecommendedManagedTables != nil { - destinationDatabricksRecommendedManagedTables = &shared.DestinationDatabricksRecommendedManagedTables{} - } - if destinationDatabricksRecommendedManagedTables != nil { - dataSource = shared.DestinationDatabricksDataSource{ - DestinationDatabricksRecommendedManagedTables: destinationDatabricksRecommendedManagedTables, - } - } - var destinationDatabricksAmazonS3 *shared.DestinationDatabricksAmazonS3 - if r.Configuration.DataSource.AmazonS3 != nil { - fileNamePattern := new(string) - if !r.Configuration.DataSource.AmazonS3.FileNamePattern.IsUnknown() && !r.Configuration.DataSource.AmazonS3.FileNamePattern.IsNull() { - *fileNamePattern = r.Configuration.DataSource.AmazonS3.FileNamePattern.ValueString() - } else { - fileNamePattern = nil - } - s3AccessKeyID := r.Configuration.DataSource.AmazonS3.S3AccessKeyID.ValueString() - s3BucketName := r.Configuration.DataSource.AmazonS3.S3BucketName.ValueString() - s3BucketPath := r.Configuration.DataSource.AmazonS3.S3BucketPath.ValueString() - s3BucketRegion := new(shared.DestinationDatabricksS3BucketRegion) - if !r.Configuration.DataSource.AmazonS3.S3BucketRegion.IsUnknown() && !r.Configuration.DataSource.AmazonS3.S3BucketRegion.IsNull() { - *s3BucketRegion = shared.DestinationDatabricksS3BucketRegion(r.Configuration.DataSource.AmazonS3.S3BucketRegion.ValueString()) - } else { - s3BucketRegion = nil - } - s3SecretAccessKey := r.Configuration.DataSource.AmazonS3.S3SecretAccessKey.ValueString() - destinationDatabricksAmazonS3 = &shared.DestinationDatabricksAmazonS3{ - FileNamePattern: fileNamePattern, - S3AccessKeyID: s3AccessKeyID, - S3BucketName: s3BucketName, - S3BucketPath: s3BucketPath, - S3BucketRegion: s3BucketRegion, - S3SecretAccessKey: s3SecretAccessKey, + var authentication shared.DestinationDatabricksAuthentication + var destinationDatabricksOAuth2Recommended *shared.DestinationDatabricksOAuth2Recommended + if r.Configuration.Authentication.OAuth2Recommended != nil { + clientID := r.Configuration.Authentication.OAuth2Recommended.ClientID.ValueString() + secret := r.Configuration.Authentication.OAuth2Recommended.Secret.ValueString() + destinationDatabricksOAuth2Recommended = &shared.DestinationDatabricksOAuth2Recommended{ + ClientID: clientID, + Secret: secret, } } - if destinationDatabricksAmazonS3 != nil { - dataSource = shared.DestinationDatabricksDataSource{ - DestinationDatabricksAmazonS3: destinationDatabricksAmazonS3, + if destinationDatabricksOAuth2Recommended != nil { + authentication = shared.DestinationDatabricksAuthentication{ + DestinationDatabricksOAuth2Recommended: destinationDatabricksOAuth2Recommended, } } - var destinationDatabricksAzureBlobStorage *shared.DestinationDatabricksAzureBlobStorage - if r.Configuration.DataSource.AzureBlobStorage != nil { - azureBlobStorageAccountName := r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageAccountName.ValueString() - azureBlobStorageContainerName := r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageContainerName.ValueString() - azureBlobStorageEndpointDomainName := new(string) - if !r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageEndpointDomainName.IsUnknown() && !r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageEndpointDomainName.IsNull() { - *azureBlobStorageEndpointDomainName = r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageEndpointDomainName.ValueString() - } else { - azureBlobStorageEndpointDomainName = nil - } - azureBlobStorageSasToken := r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageSasToken.ValueString() - destinationDatabricksAzureBlobStorage = &shared.DestinationDatabricksAzureBlobStorage{ - AzureBlobStorageAccountName: azureBlobStorageAccountName, - AzureBlobStorageContainerName: azureBlobStorageContainerName, - AzureBlobStorageEndpointDomainName: azureBlobStorageEndpointDomainName, - AzureBlobStorageSasToken: azureBlobStorageSasToken, + var destinationDatabricksPersonalAccessToken *shared.DestinationDatabricksPersonalAccessToken + if r.Configuration.Authentication.PersonalAccessToken != nil { + personalAccessToken := r.Configuration.Authentication.PersonalAccessToken.PersonalAccessToken.ValueString() + destinationDatabricksPersonalAccessToken = &shared.DestinationDatabricksPersonalAccessToken{ + PersonalAccessToken: personalAccessToken, } } - if destinationDatabricksAzureBlobStorage != nil { - dataSource = shared.DestinationDatabricksDataSource{ - DestinationDatabricksAzureBlobStorage: destinationDatabricksAzureBlobStorage, + if destinationDatabricksPersonalAccessToken != nil { + authentication = shared.DestinationDatabricksAuthentication{ + DestinationDatabricksPersonalAccessToken: destinationDatabricksPersonalAccessToken, } } - database := new(string) - if !r.Configuration.Database.IsUnknown() && !r.Configuration.Database.IsNull() { - *database = r.Configuration.Database.ValueString() + database := r.Configuration.Database.ValueString() + hostname := r.Configuration.Hostname.ValueString() + httpPath := r.Configuration.HTTPPath.ValueString() + port := new(string) + if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() { + *port = r.Configuration.Port.ValueString() } else { - database = nil - } - databricksHTTPPath := r.Configuration.DatabricksHTTPPath.ValueString() - databricksPersonalAccessToken := r.Configuration.DatabricksPersonalAccessToken.ValueString() - databricksPort := new(string) - if !r.Configuration.DatabricksPort.IsUnknown() && !r.Configuration.DatabricksPort.IsNull() { - *databricksPort = r.Configuration.DatabricksPort.ValueString() - } else { - databricksPort = nil - } - databricksServerHostname := r.Configuration.DatabricksServerHostname.ValueString() - enableSchemaEvolution := new(bool) - if !r.Configuration.EnableSchemaEvolution.IsUnknown() && !r.Configuration.EnableSchemaEvolution.IsNull() { - *enableSchemaEvolution = r.Configuration.EnableSchemaEvolution.ValueBool() - } else { - enableSchemaEvolution = nil + port = nil } purgeStagingData := new(bool) if !r.Configuration.PurgeStagingData.IsUnknown() && !r.Configuration.PurgeStagingData.IsNull() { @@ -106,6 +56,12 @@ func (r *DestinationDatabricksResourceModel) ToSharedDestinationDatabricksCreate } else { purgeStagingData = nil } + rawSchemaOverride := new(string) + if !r.Configuration.RawSchemaOverride.IsUnknown() && !r.Configuration.RawSchemaOverride.IsNull() { + *rawSchemaOverride = r.Configuration.RawSchemaOverride.ValueString() + } else { + rawSchemaOverride = nil + } schema := new(string) if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() { *schema = r.Configuration.Schema.ValueString() @@ -113,16 +69,15 @@ func (r *DestinationDatabricksResourceModel) ToSharedDestinationDatabricksCreate schema = nil } configuration := shared.DestinationDatabricks{ - AcceptTerms: acceptTerms, - DataSource: dataSource, - Database: database, - DatabricksHTTPPath: databricksHTTPPath, - DatabricksPersonalAccessToken: databricksPersonalAccessToken, - DatabricksPort: databricksPort, - DatabricksServerHostname: databricksServerHostname, - EnableSchemaEvolution: enableSchemaEvolution, - PurgeStagingData: purgeStagingData, - Schema: schema, + AcceptTerms: acceptTerms, + Authentication: authentication, + Database: database, + Hostname: hostname, + HTTPPath: httpPath, + Port: port, + PurgeStagingData: purgeStagingData, + RawSchemaOverride: rawSchemaOverride, + Schema: schema, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -157,91 +112,41 @@ func (r *DestinationDatabricksResourceModel) ToSharedDestinationDatabricksPutReq } else { acceptTerms = nil } - var dataSource shared.DataSource - var recommendedManagedTables *shared.RecommendedManagedTables - if r.Configuration.DataSource.RecommendedManagedTables != nil { - recommendedManagedTables = &shared.RecommendedManagedTables{} - } - if recommendedManagedTables != nil { - dataSource = shared.DataSource{ - RecommendedManagedTables: recommendedManagedTables, - } - } - var amazonS3 *shared.AmazonS3 - if r.Configuration.DataSource.AmazonS3 != nil { - fileNamePattern := new(string) - if !r.Configuration.DataSource.AmazonS3.FileNamePattern.IsUnknown() && !r.Configuration.DataSource.AmazonS3.FileNamePattern.IsNull() { - *fileNamePattern = r.Configuration.DataSource.AmazonS3.FileNamePattern.ValueString() - } else { - fileNamePattern = nil - } - s3AccessKeyID := r.Configuration.DataSource.AmazonS3.S3AccessKeyID.ValueString() - s3BucketName := r.Configuration.DataSource.AmazonS3.S3BucketName.ValueString() - s3BucketPath := r.Configuration.DataSource.AmazonS3.S3BucketPath.ValueString() - s3BucketRegion := new(shared.DestinationDatabricksUpdateS3BucketRegion) - if !r.Configuration.DataSource.AmazonS3.S3BucketRegion.IsUnknown() && !r.Configuration.DataSource.AmazonS3.S3BucketRegion.IsNull() { - *s3BucketRegion = shared.DestinationDatabricksUpdateS3BucketRegion(r.Configuration.DataSource.AmazonS3.S3BucketRegion.ValueString()) - } else { - s3BucketRegion = nil - } - s3SecretAccessKey := r.Configuration.DataSource.AmazonS3.S3SecretAccessKey.ValueString() - amazonS3 = &shared.AmazonS3{ - FileNamePattern: fileNamePattern, - S3AccessKeyID: s3AccessKeyID, - S3BucketName: s3BucketName, - S3BucketPath: s3BucketPath, - S3BucketRegion: s3BucketRegion, - S3SecretAccessKey: s3SecretAccessKey, + var authentication shared.Authentication + var oAuth2Recommended *shared.OAuth2Recommended + if r.Configuration.Authentication.OAuth2Recommended != nil { + clientID := r.Configuration.Authentication.OAuth2Recommended.ClientID.ValueString() + secret := r.Configuration.Authentication.OAuth2Recommended.Secret.ValueString() + oAuth2Recommended = &shared.OAuth2Recommended{ + ClientID: clientID, + Secret: secret, } } - if amazonS3 != nil { - dataSource = shared.DataSource{ - AmazonS3: amazonS3, + if oAuth2Recommended != nil { + authentication = shared.Authentication{ + OAuth2Recommended: oAuth2Recommended, } } - var destinationDatabricksUpdateAzureBlobStorage *shared.DestinationDatabricksUpdateAzureBlobStorage - if r.Configuration.DataSource.AzureBlobStorage != nil { - azureBlobStorageAccountName := r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageAccountName.ValueString() - azureBlobStorageContainerName := r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageContainerName.ValueString() - azureBlobStorageEndpointDomainName := new(string) - if !r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageEndpointDomainName.IsUnknown() && !r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageEndpointDomainName.IsNull() { - *azureBlobStorageEndpointDomainName = r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageEndpointDomainName.ValueString() - } else { - azureBlobStorageEndpointDomainName = nil - } - azureBlobStorageSasToken := r.Configuration.DataSource.AzureBlobStorage.AzureBlobStorageSasToken.ValueString() - destinationDatabricksUpdateAzureBlobStorage = &shared.DestinationDatabricksUpdateAzureBlobStorage{ - AzureBlobStorageAccountName: azureBlobStorageAccountName, - AzureBlobStorageContainerName: azureBlobStorageContainerName, - AzureBlobStorageEndpointDomainName: azureBlobStorageEndpointDomainName, - AzureBlobStorageSasToken: azureBlobStorageSasToken, + var personalAccessToken *shared.PersonalAccessToken + if r.Configuration.Authentication.PersonalAccessToken != nil { + personalAccessToken1 := r.Configuration.Authentication.PersonalAccessToken.PersonalAccessToken.ValueString() + personalAccessToken = &shared.PersonalAccessToken{ + PersonalAccessToken: personalAccessToken1, } } - if destinationDatabricksUpdateAzureBlobStorage != nil { - dataSource = shared.DataSource{ - DestinationDatabricksUpdateAzureBlobStorage: destinationDatabricksUpdateAzureBlobStorage, + if personalAccessToken != nil { + authentication = shared.Authentication{ + PersonalAccessToken: personalAccessToken, } } - database := new(string) - if !r.Configuration.Database.IsUnknown() && !r.Configuration.Database.IsNull() { - *database = r.Configuration.Database.ValueString() + database := r.Configuration.Database.ValueString() + hostname := r.Configuration.Hostname.ValueString() + httpPath := r.Configuration.HTTPPath.ValueString() + port := new(string) + if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() { + *port = r.Configuration.Port.ValueString() } else { - database = nil - } - databricksHTTPPath := r.Configuration.DatabricksHTTPPath.ValueString() - databricksPersonalAccessToken := r.Configuration.DatabricksPersonalAccessToken.ValueString() - databricksPort := new(string) - if !r.Configuration.DatabricksPort.IsUnknown() && !r.Configuration.DatabricksPort.IsNull() { - *databricksPort = r.Configuration.DatabricksPort.ValueString() - } else { - databricksPort = nil - } - databricksServerHostname := r.Configuration.DatabricksServerHostname.ValueString() - enableSchemaEvolution := new(bool) - if !r.Configuration.EnableSchemaEvolution.IsUnknown() && !r.Configuration.EnableSchemaEvolution.IsNull() { - *enableSchemaEvolution = r.Configuration.EnableSchemaEvolution.ValueBool() - } else { - enableSchemaEvolution = nil + port = nil } purgeStagingData := new(bool) if !r.Configuration.PurgeStagingData.IsUnknown() && !r.Configuration.PurgeStagingData.IsNull() { @@ -249,6 +154,12 @@ func (r *DestinationDatabricksResourceModel) ToSharedDestinationDatabricksPutReq } else { purgeStagingData = nil } + rawSchemaOverride := new(string) + if !r.Configuration.RawSchemaOverride.IsUnknown() && !r.Configuration.RawSchemaOverride.IsNull() { + *rawSchemaOverride = r.Configuration.RawSchemaOverride.ValueString() + } else { + rawSchemaOverride = nil + } schema := new(string) if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() { *schema = r.Configuration.Schema.ValueString() @@ -256,16 +167,15 @@ func (r *DestinationDatabricksResourceModel) ToSharedDestinationDatabricksPutReq schema = nil } configuration := shared.DestinationDatabricksUpdate{ - AcceptTerms: acceptTerms, - DataSource: dataSource, - Database: database, - DatabricksHTTPPath: databricksHTTPPath, - DatabricksPersonalAccessToken: databricksPersonalAccessToken, - DatabricksPort: databricksPort, - DatabricksServerHostname: databricksServerHostname, - EnableSchemaEvolution: enableSchemaEvolution, - PurgeStagingData: purgeStagingData, - Schema: schema, + AcceptTerms: acceptTerms, + Authentication: authentication, + Database: database, + Hostname: hostname, + HTTPPath: httpPath, + Port: port, + PurgeStagingData: purgeStagingData, + RawSchemaOverride: rawSchemaOverride, + Schema: schema, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/destination_elasticsearch_resource.go b/internal/provider/destination_elasticsearch_resource.go index c9d9699c0..81cfb9892 100644 --- a/internal/provider/destination_elasticsearch_resource.go +++ b/internal/provider/destination_elasticsearch_resource.go @@ -72,6 +72,7 @@ func (r *DestinationElasticsearchResource) Schema(ctx context.Context, req resou }, "api_key_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The secret associated with the API Key ID.`, }, }, @@ -110,6 +111,7 @@ func (r *DestinationElasticsearchResource) Schema(ctx context.Context, req resou }, "ca_certificate": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `CA certificate`, }, "endpoint": schema.StringAttribute{ diff --git a/internal/provider/destination_firebolt_resource.go b/internal/provider/destination_firebolt_resource.go index 413dbceb4..93eecef8a 100644 --- a/internal/provider/destination_firebolt_resource.go +++ b/internal/provider/destination_firebolt_resource.go @@ -69,6 +69,7 @@ func (r *DestinationFireboltResource) Schema(ctx context.Context, req resource.S }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Firebolt secret, corresponding to the service account ID.`, }, "database": schema.StringAttribute{ diff --git a/internal/provider/destination_firestore_resource.go b/internal/provider/destination_firestore_resource.go index a860996e8..22c291e52 100644 --- a/internal/provider/destination_firestore_resource.go +++ b/internal/provider/destination_firestore_resource.go @@ -58,6 +58,7 @@ func (r *DestinationFirestoreResource) Schema(ctx context.Context, req resource. Attributes: map[string]schema.Attribute{ "credentials_json": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.`, }, "project_id": schema.StringAttribute{ diff --git a/internal/provider/destination_gcs_resource_sdk.go b/internal/provider/destination_gcs_resource_sdk.go index 16af872aa..a1c45778b 100644 --- a/internal/provider/destination_gcs_resource_sdk.go +++ b/internal/provider/destination_gcs_resource_sdk.go @@ -398,7 +398,7 @@ func (r *DestinationGcsResourceModel) RefreshFromSharedDestinationResponse(resp } func (r *DestinationGcsResourceModel) ToSharedDestinationGcsPutRequest() *shared.DestinationGcsPutRequest { - var credential shared.Authentication + var credential shared.DestinationGcsUpdateAuthentication var hmacKey *shared.HMACKey if r.Configuration.Credential.HMACKey != nil { credentialType := new(shared.CredentialType) @@ -416,7 +416,7 @@ func (r *DestinationGcsResourceModel) ToSharedDestinationGcsPutRequest() *shared } } if hmacKey != nil { - credential = shared.Authentication{ + credential = shared.DestinationGcsUpdateAuthentication{ HMACKey: hmacKey, } } diff --git a/internal/provider/destination_googlesheets_resource.go b/internal/provider/destination_googlesheets_resource.go index 48315a33b..0c1d28ade 100644 --- a/internal/provider/destination_googlesheets_resource.go +++ b/internal/provider/destination_googlesheets_resource.go @@ -61,10 +61,12 @@ func (r *DestinationGoogleSheetsResource) Schema(ctx context.Context, req resour Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your Google Sheets developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Google Sheets developer application.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/destination_langchain_resource_sdk.go b/internal/provider/destination_langchain_resource_sdk.go deleted file mode 100644 index 767048f52..000000000 --- a/internal/provider/destination_langchain_resource_sdk.go +++ /dev/null @@ -1,228 +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 *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_postgres_resource.go b/internal/provider/destination_postgres_resource.go index 5c164c6a1..4e6f4124a 100644 --- a/internal/provider/destination_postgres_resource.go +++ b/internal/provider/destination_postgres_resource.go @@ -171,6 +171,7 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S Attributes: map[string]schema.Attribute{ "ca_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `CA certificate`, }, "client_key_password": schema.StringAttribute{ @@ -195,10 +196,12 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S Attributes: map[string]schema.Attribute{ "ca_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `CA certificate`, }, "client_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client certificate`, }, "client_key": schema.StringAttribute{ diff --git a/internal/provider/destination_pubsub_resource.go b/internal/provider/destination_pubsub_resource.go index fb815010a..2cd1483cd 100644 --- a/internal/provider/destination_pubsub_resource.go +++ b/internal/provider/destination_pubsub_resource.go @@ -84,6 +84,7 @@ func (r *DestinationPubsubResource) Schema(ctx context.Context, req resource.Sch }, "credentials_json": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The contents of the JSON service account key. Check out the docs if you need help generating this key.`, }, "ordering_enabled": schema.BoolAttribute{ diff --git a/internal/provider/destination_redis_resource.go b/internal/provider/destination_redis_resource.go index 16abcb1b2..6b5a1f4f9 100644 --- a/internal/provider/destination_redis_resource.go +++ b/internal/provider/destination_redis_resource.go @@ -113,10 +113,12 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche Attributes: map[string]schema.Attribute{ "ca_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `CA certificate`, }, "client_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client certificate`, }, "client_key": schema.StringAttribute{ diff --git a/internal/provider/destination_redshift_resource.go b/internal/provider/destination_redshift_resource.go index 00b7b240c..88bf8d4e8 100644 --- a/internal/provider/destination_redshift_resource.go +++ b/internal/provider/destination_redshift_resource.go @@ -198,41 +198,6 @@ 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 1c96310a4..8ed029320 100644 --- a/internal/provider/destination_redshift_resource_sdk.go +++ b/internal/provider/destination_redshift_resource_sdk.go @@ -110,35 +110,6 @@ 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() @@ -167,7 +138,6 @@ func (r *DestinationRedshiftResourceModel) ToSharedDestinationRedshiftCreateRequ secretAccessKey := r.Configuration.UploadingMethod.AWSS3Staging.SecretAccessKey.ValueString() destinationRedshiftAWSS3Staging = &shared.DestinationRedshiftAWSS3Staging{ AccessKeyID: accessKeyID, - Encryption: encryption, FileNamePattern: fileNamePattern, PurgeStagingData: purgeStagingData, S3BucketName: s3BucketName, @@ -326,35 +296,6 @@ 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() @@ -383,7 +324,6 @@ 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 5c1916f21..1c5990b8a 100644 --- a/internal/provider/destination_snowflake_resource.go +++ b/internal/provider/destination_snowflake_resource.go @@ -95,10 +95,12 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource. }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Enter your application's Client ID`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Enter your application's Client secret`, }, "refresh_token": schema.StringAttribute{ @@ -171,13 +173,19 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource. Required: true, Description: `Enter the name of the default schema`, }, + "use_merge_for_upsert": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE. Default: false`, + }, "username": schema.StringAttribute{ Required: true, Description: `Enter the name of the user you want to use to access the database`, }, "warehouse": schema.StringAttribute{ Required: true, - Description: `Enter the name of the warehouse that you want to sync data into`, + Description: `Enter the name of the warehouse that you want to use as a compute cluster`, }, }, }, diff --git a/internal/provider/destination_snowflake_resource_sdk.go b/internal/provider/destination_snowflake_resource_sdk.go index a940acb1a..e26cada10 100644 --- a/internal/provider/destination_snowflake_resource_sdk.go +++ b/internal/provider/destination_snowflake_resource_sdk.go @@ -98,6 +98,12 @@ func (r *DestinationSnowflakeResourceModel) ToSharedDestinationSnowflakeCreateRe } role := r.Configuration.Role.ValueString() schema := r.Configuration.Schema.ValueString() + useMergeForUpsert := new(bool) + if !r.Configuration.UseMergeForUpsert.IsUnknown() && !r.Configuration.UseMergeForUpsert.IsNull() { + *useMergeForUpsert = r.Configuration.UseMergeForUpsert.ValueBool() + } else { + useMergeForUpsert = nil + } username := r.Configuration.Username.ValueString() warehouse := r.Configuration.Warehouse.ValueString() configuration := shared.DestinationSnowflake{ @@ -110,6 +116,7 @@ func (r *DestinationSnowflakeResourceModel) ToSharedDestinationSnowflakeCreateRe RetentionPeriodDays: retentionPeriodDays, Role: role, Schema: schema, + UseMergeForUpsert: useMergeForUpsert, Username: username, Warehouse: warehouse, } @@ -230,6 +237,12 @@ func (r *DestinationSnowflakeResourceModel) ToSharedDestinationSnowflakePutReque } role := r.Configuration.Role.ValueString() schema := r.Configuration.Schema.ValueString() + useMergeForUpsert := new(bool) + if !r.Configuration.UseMergeForUpsert.IsUnknown() && !r.Configuration.UseMergeForUpsert.IsNull() { + *useMergeForUpsert = r.Configuration.UseMergeForUpsert.ValueBool() + } else { + useMergeForUpsert = nil + } username := r.Configuration.Username.ValueString() warehouse := r.Configuration.Warehouse.ValueString() configuration := shared.DestinationSnowflakeUpdate{ @@ -242,6 +255,7 @@ func (r *DestinationSnowflakeResourceModel) ToSharedDestinationSnowflakePutReque RetentionPeriodDays: retentionPeriodDays, Role: role, Schema: schema, + UseMergeForUpsert: useMergeForUpsert, Username: username, Warehouse: warehouse, } diff --git a/internal/provider/destination_snowflakecortex_resource.go b/internal/provider/destination_snowflakecortex_resource.go index 8b6900bb5..7812b7ea0 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 sync data into`, + Description: `Enter the name of the warehouse that you want to use as a compute cluster`, }, }, Description: `Snowflake can be used to store vector data and retrieve embeddings.`, diff --git a/internal/provider/destination_teradata_resource.go b/internal/provider/destination_teradata_resource.go index f9b811a46..c85248f15 100644 --- a/internal/provider/destination_teradata_resource.go +++ b/internal/provider/destination_teradata_resource.go @@ -149,7 +149,8 @@ func (r *DestinationTeradataResource) Schema(ctx context.Context, req resource.S Optional: true, Attributes: map[string]schema.Attribute{ "ssl_ca_certificate": schema.StringAttribute{ - Required: true, + Required: true, + Sensitive: true, MarkdownDescription: `Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-ca.` + "\n" + ` See more information - in the docs.`, }, @@ -169,7 +170,8 @@ func (r *DestinationTeradataResource) Schema(ctx context.Context, req resource.S Optional: true, Attributes: map[string]schema.Attribute{ "ssl_ca_certificate": schema.StringAttribute{ - Required: true, + Required: true, + Sensitive: true, MarkdownDescription: `Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-full.` + "\n" + ` See more information - in the docs.`, }, diff --git a/internal/provider/destination_langchain_data_source.go b/internal/provider/destination_timeplus_data_source.go similarity index 71% rename from internal/provider/destination_langchain_data_source.go rename to internal/provider/destination_timeplus_data_source.go index 0e2659833..d6dbab015 100644 --- a/internal/provider/destination_langchain_data_source.go +++ b/internal/provider/destination_timeplus_data_source.go @@ -14,20 +14,20 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ datasource.DataSource = &DestinationLangchainDataSource{} -var _ datasource.DataSourceWithConfigure = &DestinationLangchainDataSource{} +var _ datasource.DataSource = &DestinationTimeplusDataSource{} +var _ datasource.DataSourceWithConfigure = &DestinationTimeplusDataSource{} -func NewDestinationLangchainDataSource() datasource.DataSource { - return &DestinationLangchainDataSource{} +func NewDestinationTimeplusDataSource() datasource.DataSource { + return &DestinationTimeplusDataSource{} } -// DestinationLangchainDataSource is the data source implementation. -type DestinationLangchainDataSource struct { +// DestinationTimeplusDataSource is the data source implementation. +type DestinationTimeplusDataSource struct { client *sdk.SDK } -// DestinationLangchainDataSourceModel describes the data model. -type DestinationLangchainDataSourceModel struct { +// DestinationTimeplusDataSourceModel describes the data model. +type DestinationTimeplusDataSourceModel struct { Configuration types.String `tfsdk:"configuration"` DestinationID types.String `tfsdk:"destination_id"` DestinationType types.String `tfsdk:"destination_type"` @@ -36,14 +36,14 @@ type DestinationLangchainDataSourceModel struct { } // Metadata returns the data source type name. -func (r *DestinationLangchainDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_destination_langchain" +func (r *DestinationTimeplusDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_destination_timeplus" } // Schema defines the schema for the data source. -func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { +func (r *DestinationTimeplusDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "DestinationLangchain DataSource", + MarkdownDescription: "DestinationTimeplus DataSource", Attributes: map[string]schema.Attribute{ "configuration": schema.StringAttribute{ @@ -66,7 +66,7 @@ func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasou } } -func (r *DestinationLangchainDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { +func (r *DestinationTimeplusDataSource) 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 *DestinationLangchainDataSource) Configure(ctx context.Context, req data r.client = client } -func (r *DestinationLangchainDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data *DestinationLangchainDataSourceModel +func (r *DestinationTimeplusDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *DestinationTimeplusDataSourceModel var item types.Object resp.Diagnostics.Append(req.Config.Get(ctx, &item)...) @@ -105,10 +105,10 @@ func (r *DestinationLangchainDataSource) Read(ctx context.Context, req datasourc } destinationID := data.DestinationID.ValueString() - request := operations.GetDestinationLangchainRequest{ + request := operations.GetDestinationTimeplusRequest{ DestinationID: destinationID, } - res, err := r.client.Destinations.GetDestinationLangchain(ctx, request) + res, err := r.client.Destinations.GetDestinationTimeplus(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/destination_langchain_data_source_sdk.go b/internal/provider/destination_timeplus_data_source_sdk.go similarity index 83% rename from internal/provider/destination_langchain_data_source_sdk.go rename to internal/provider/destination_timeplus_data_source_sdk.go index 8d280d71f..22700d517 100644 --- a/internal/provider/destination_langchain_data_source_sdk.go +++ b/internal/provider/destination_timeplus_data_source_sdk.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *DestinationLangchainDataSourceModel) RefreshFromSharedDestinationResponse(resp *shared.DestinationResponse) { +func (r *DestinationTimeplusDataSourceModel) RefreshFromSharedDestinationResponse(resp *shared.DestinationResponse) { if resp != nil { configurationResult, _ := json.Marshal(resp.Configuration) r.Configuration = types.StringValue(string(configurationResult)) diff --git a/internal/provider/destination_langchain_resource.go b/internal/provider/destination_timeplus_resource.go similarity index 50% rename from internal/provider/destination_langchain_resource.go rename to internal/provider/destination_timeplus_resource.go index e29a2d9c7..1ee457b2b 100644 --- a/internal/provider/destination_langchain_resource.go +++ b/internal/provider/destination_timeplus_resource.go @@ -10,50 +10,46 @@ 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/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{} +var _ resource.Resource = &DestinationTimeplusResource{} +var _ resource.ResourceWithImportState = &DestinationTimeplusResource{} -func NewDestinationLangchainResource() resource.Resource { - return &DestinationLangchainResource{} +func NewDestinationTimeplusResource() resource.Resource { + return &DestinationTimeplusResource{} } -// DestinationLangchainResource defines the resource implementation. -type DestinationLangchainResource struct { +// DestinationTimeplusResource defines the resource implementation. +type DestinationTimeplusResource 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"` +// DestinationTimeplusResourceModel describes the resource data model. +type DestinationTimeplusResourceModel struct { + Configuration tfTypes.DestinationTimeplus `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 *DestinationTimeplusResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_destination_timeplus" } -func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { +func (r *DestinationTimeplusResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "DestinationLangchain Resource", + MarkdownDescription: "DestinationTimeplus Resource", Attributes: map[string]schema.Attribute{ "configuration": schema.SingleNestedAttribute{ PlanModifiers: []planmodifier.Object{ @@ -61,130 +57,16 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource. }, 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(), - }, + "apikey": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `Personal API key`, }, - "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.`, - }, - }, + "endpoint": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("https://us-west-2.timeplus.cloud/"), + Description: `Timeplus workspace endpoint. Default: "https://us-west-2.timeplus.cloud/"`, }, }, }, @@ -224,7 +106,7 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource. } } -func (r *DestinationLangchainResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { +func (r *DestinationTimeplusResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -244,8 +126,8 @@ func (r *DestinationLangchainResource) Configure(ctx context.Context, req resour r.client = client } -func (r *DestinationLangchainResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *DestinationLangchainResourceModel +func (r *DestinationTimeplusResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *DestinationTimeplusResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -262,8 +144,8 @@ func (r *DestinationLangchainResource) Create(ctx context.Context, req resource. return } - request := data.ToSharedDestinationLangchainCreateRequest() - res, err := r.client.Destinations.CreateDestinationLangchain(ctx, request) + request := data.ToSharedDestinationTimeplusCreateRequest() + res, err := r.client.Destinations.CreateDestinationTimeplus(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -286,10 +168,10 @@ func (r *DestinationLangchainResource) Create(ctx context.Context, req resource. data.RefreshFromSharedDestinationResponse(res.DestinationResponse) refreshPlan(ctx, plan, &data, resp.Diagnostics) destinationID := data.DestinationID.ValueString() - request1 := operations.GetDestinationLangchainRequest{ + request1 := operations.GetDestinationTimeplusRequest{ DestinationID: destinationID, } - res1, err := r.client.Destinations.GetDestinationLangchain(ctx, request1) + res1, err := r.client.Destinations.GetDestinationTimeplus(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -316,8 +198,8 @@ func (r *DestinationLangchainResource) Create(ctx context.Context, req resource. resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *DestinationLangchainResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *DestinationLangchainResourceModel +func (r *DestinationTimeplusResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *DestinationTimeplusResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -335,10 +217,10 @@ func (r *DestinationLangchainResource) Read(ctx context.Context, req resource.Re } destinationID := data.DestinationID.ValueString() - request := operations.GetDestinationLangchainRequest{ + request := operations.GetDestinationTimeplusRequest{ DestinationID: destinationID, } - res, err := r.client.Destinations.GetDestinationLangchain(ctx, request) + res, err := r.client.Destinations.GetDestinationTimeplus(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -368,8 +250,8 @@ func (r *DestinationLangchainResource) Read(ctx context.Context, req resource.Re resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *DestinationLangchainResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *DestinationLangchainResourceModel +func (r *DestinationTimeplusResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *DestinationTimeplusResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -382,13 +264,13 @@ func (r *DestinationLangchainResource) Update(ctx context.Context, req resource. return } - destinationLangchainPutRequest := data.ToSharedDestinationLangchainPutRequest() + destinationTimeplusPutRequest := data.ToSharedDestinationTimeplusPutRequest() destinationID := data.DestinationID.ValueString() - request := operations.PutDestinationLangchainRequest{ - DestinationLangchainPutRequest: destinationLangchainPutRequest, - DestinationID: destinationID, + request := operations.PutDestinationTimeplusRequest{ + DestinationTimeplusPutRequest: destinationTimeplusPutRequest, + DestinationID: destinationID, } - res, err := r.client.Destinations.PutDestinationLangchain(ctx, request) + res, err := r.client.Destinations.PutDestinationTimeplus(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -406,10 +288,10 @@ func (r *DestinationLangchainResource) Update(ctx context.Context, req resource. } refreshPlan(ctx, plan, &data, resp.Diagnostics) destinationId1 := data.DestinationID.ValueString() - request1 := operations.GetDestinationLangchainRequest{ + request1 := operations.GetDestinationTimeplusRequest{ DestinationID: destinationId1, } - res1, err := r.client.Destinations.GetDestinationLangchain(ctx, request1) + res1, err := r.client.Destinations.GetDestinationTimeplus(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -436,8 +318,8 @@ func (r *DestinationLangchainResource) Update(ctx context.Context, req resource. resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *DestinationLangchainResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *DestinationLangchainResourceModel +func (r *DestinationTimeplusResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *DestinationTimeplusResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -455,10 +337,10 @@ func (r *DestinationLangchainResource) Delete(ctx context.Context, req resource. } destinationID := data.DestinationID.ValueString() - request := operations.DeleteDestinationLangchainRequest{ + request := operations.DeleteDestinationTimeplusRequest{ DestinationID: destinationID, } - res, err := r.client.Destinations.DeleteDestinationLangchain(ctx, request) + res, err := r.client.Destinations.DeleteDestinationTimeplus(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -477,6 +359,6 @@ func (r *DestinationLangchainResource) Delete(ctx context.Context, req resource. } -func (r *DestinationLangchainResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { +func (r *DestinationTimeplusResource) 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_timeplus_resource_sdk.go b/internal/provider/destination_timeplus_resource_sdk.go new file mode 100644 index 000000000..af6d94575 --- /dev/null +++ b/internal/provider/destination_timeplus_resource_sdk.go @@ -0,0 +1,68 @@ +// 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 *DestinationTimeplusResourceModel) ToSharedDestinationTimeplusCreateRequest() *shared.DestinationTimeplusCreateRequest { + apikey := r.Configuration.Apikey.ValueString() + endpoint := new(string) + if !r.Configuration.Endpoint.IsUnknown() && !r.Configuration.Endpoint.IsNull() { + *endpoint = r.Configuration.Endpoint.ValueString() + } else { + endpoint = nil + } + configuration := shared.DestinationTimeplus{ + Apikey: apikey, + Endpoint: endpoint, + } + 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.DestinationTimeplusCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *DestinationTimeplusResourceModel) 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 *DestinationTimeplusResourceModel) ToSharedDestinationTimeplusPutRequest() *shared.DestinationTimeplusPutRequest { + apikey := r.Configuration.Apikey.ValueString() + endpoint := new(string) + if !r.Configuration.Endpoint.IsUnknown() && !r.Configuration.Endpoint.IsNull() { + *endpoint = r.Configuration.Endpoint.ValueString() + } else { + endpoint = nil + } + configuration := shared.DestinationTimeplusUpdate{ + Apikey: apikey, + Endpoint: endpoint, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.DestinationTimeplusPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/destination_typesense_resource.go b/internal/provider/destination_typesense_resource.go index 96410c4a5..244b14314 100644 --- a/internal/provider/destination_typesense_resource.go +++ b/internal/provider/destination_typesense_resource.go @@ -58,7 +58,6 @@ func (r *DestinationTypesenseResource) Schema(ctx context.Context, req resource. Attributes: map[string]schema.Attribute{ "api_key": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `Typesense API Key`, }, "batch_size": schema.Int64Attribute{ @@ -67,7 +66,7 @@ func (r *DestinationTypesenseResource) Schema(ctx context.Context, req resource. }, "host": schema.StringAttribute{ Required: true, - Description: `Hostname of the Typesense instance without protocol.`, + Description: `Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma.`, }, "path": schema.StringAttribute{ Optional: true, diff --git a/internal/provider/destination_vectara_resource.go b/internal/provider/destination_vectara_resource.go index 4aca87b0c..06b8a7b5f 100644 --- a/internal/provider/destination_vectara_resource.go +++ b/internal/provider/destination_vectara_resource.go @@ -80,6 +80,7 @@ func (r *DestinationVectaraResource) Schema(ctx context.Context, req resource.Sc }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `OAuth2.0 client secret`, }, }, diff --git a/internal/provider/destination_weaviate_resource.go b/internal/provider/destination_weaviate_resource.go index 747305949..68d09bcac 100644 --- a/internal/provider/destination_weaviate_resource.go +++ b/internal/provider/destination_weaviate_resource.go @@ -240,11 +240,11 @@ func (r *DestinationWeaviateResource) Schema(ctx context.Context, req resource.S NestedObject: schema.NestedAttributeObject{ Attributes: map[string]schema.Attribute{ "header_key": schema.StringAttribute{ - Required: true, - Sensitive: true, + Required: true, }, "value": schema.StringAttribute{ - Required: true, + Required: true, + Sensitive: true, }, }, }, @@ -339,6 +339,7 @@ func (r *DestinationWeaviateResource) Schema(ctx context.Context, req resource.S "tenant_id": schema.StringAttribute{ Computed: true, Optional: true, + Sensitive: true, Default: stringdefault.StaticString(""), Description: `The tenant ID to use for multi tenancy. Default: ""`, }, diff --git a/internal/provider/destination_yellowbrick_resource.go b/internal/provider/destination_yellowbrick_resource.go index 7e56856a1..ca9501770 100644 --- a/internal/provider/destination_yellowbrick_resource.go +++ b/internal/provider/destination_yellowbrick_resource.go @@ -161,6 +161,7 @@ func (r *DestinationYellowbrickResource) Schema(ctx context.Context, req resourc Attributes: map[string]schema.Attribute{ "ca_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `CA certificate`, }, "client_key_password": schema.StringAttribute{ @@ -185,10 +186,12 @@ func (r *DestinationYellowbrickResource) Schema(ctx context.Context, req resourc Attributes: map[string]schema.Attribute{ "ca_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `CA certificate`, }, "client_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client certificate`, }, "client_key": schema.StringAttribute{ diff --git a/internal/provider/provider.go b/internal/provider/provider.go index e0fe2251b..e63aa4bdb 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -144,7 +144,6 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewDestinationFirestoreResource, NewDestinationGcsResource, NewDestinationGoogleSheetsResource, - NewDestinationLangchainResource, NewDestinationMilvusResource, NewDestinationMongodbResource, NewDestinationMssqlResource, @@ -162,12 +161,14 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewDestinationSnowflakeResource, NewDestinationSnowflakeCortexResource, NewDestinationTeradataResource, + NewDestinationTimeplusResource, NewDestinationTypesenseResource, NewDestinationVectaraResource, NewDestinationWeaviateResource, NewDestinationYellowbrickResource, NewPermissionResource, NewSourceAhaResource, + NewSourceAirbyteResource, NewSourceAircallResource, NewSourceAirtableResource, NewSourceAmazonAdsResource, @@ -182,13 +183,17 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceAzureBlobStorageResource, NewSourceAzureTableResource, NewSourceBambooHrResource, + NewSourceBasecampResource, NewSourceBigqueryResource, NewSourceBingAdsResource, NewSourceBraintreeResource, NewSourceBrazeResource, + NewSourceBreezyHrResource, + NewSourceCalendlyResource, NewSourceCartResource, NewSourceChargebeeResource, NewSourceChartmogulResource, + NewSourceClazarResource, NewSourceClickhouseResource, NewSourceClickupAPIResource, NewSourceClockifyResource, @@ -200,7 +205,10 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceConfluenceResource, NewSourceConvexResource, NewSourceCustomResource, + NewSourceCustomerIoResource, + NewSourceDatadogResource, NewSourceDatascopeResource, + NewSourceDbtResource, NewSourceDelightedResource, NewSourceDixaResource, NewSourceDockerhubResource, @@ -224,9 +232,9 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceGitlabResource, NewSourceGlassfrogResource, NewSourceGnewsResource, + NewSourceGoldcastResource, NewSourceGoogleAdsResource, NewSourceGoogleAnalyticsDataAPIResource, - NewSourceGoogleAnalyticsV4ServiceAccountOnlyResource, NewSourceGoogleDirectoryResource, NewSourceGoogleDriveResource, NewSourceGooglePagespeedInsightsResource, @@ -235,7 +243,10 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceGoogleWebfontsResource, NewSourceGreenhouseResource, NewSourceGridlyResource, + NewSourceHardcodedRecordsResource, NewSourceHarvestResource, + NewSourceHibobResource, + NewSourceHighLevelResource, NewSourceHubplannerResource, NewSourceHubspotResource, NewSourceInsightlyResource, @@ -250,12 +261,15 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceKlaviyoResource, NewSourceKyveResource, NewSourceLaunchdarklyResource, + NewSourceLeadfeederResource, NewSourceLemlistResource, NewSourceLeverHiringResource, NewSourceLinkedinAdsResource, NewSourceLinkedinPagesResource, NewSourceLinnworksResource, NewSourceLokaliseResource, + NewSourceLookerResource, + NewSourceLumaResource, NewSourceMailchimpResource, NewSourceMailgunResource, NewSourceMailjetSmsResource, @@ -266,12 +280,12 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceMicrosoftTeamsResource, NewSourceMixpanelResource, NewSourceMondayResource, - NewSourceMongodbInternalPocResource, NewSourceMongodbV2Resource, NewSourceMssqlResource, NewSourceMyHoursResource, NewSourceMysqlResource, NewSourceNetsuiteResource, + NewSourceNorthpassLmsResource, NewSourceNotionResource, NewSourceNytimesResource, NewSourceOktaResource, @@ -285,10 +299,12 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourcePaypalTransactionResource, NewSourcePaystackResource, NewSourcePendoResource, + NewSourcePennylaneResource, NewSourcePersistiqResource, NewSourcePexelsAPIResource, NewSourcePinterestResource, NewSourcePipedriveResource, + NewSourcePlanhatResource, NewSourcePocketResource, NewSourcePokeapiResource, NewSourcePolygonStockAPIResource, @@ -296,7 +312,6 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourcePosthogResource, NewSourcePostmarkappResource, NewSourcePrestashopResource, - NewSourcePunkAPIResource, NewSourcePypiResource, NewSourceQualarooResource, NewSourceRailzResource, @@ -304,6 +319,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceRecreationResource, NewSourceRecruiteeResource, NewSourceRecurlyResource, + NewSourceRedditResource, NewSourceRedshiftResource, NewSourceRetentlyResource, NewSourceRkiCovidResource, @@ -312,6 +328,8 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceSalesforceResource, NewSourceSalesloftResource, NewSourceSapFieldglassResource, + NewSourceSavvycalResource, + NewSourceScryfallResource, NewSourceSecodaResource, NewSourceSendgridResource, NewSourceSendinblueResource, @@ -385,7 +403,6 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewDestinationFirestoreDataSource, NewDestinationGcsDataSource, NewDestinationGoogleSheetsDataSource, - NewDestinationLangchainDataSource, NewDestinationMilvusDataSource, NewDestinationMongodbDataSource, NewDestinationMssqlDataSource, @@ -403,12 +420,14 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewDestinationSnowflakeDataSource, NewDestinationSnowflakeCortexDataSource, NewDestinationTeradataDataSource, + NewDestinationTimeplusDataSource, NewDestinationTypesenseDataSource, NewDestinationVectaraDataSource, NewDestinationWeaviateDataSource, NewDestinationYellowbrickDataSource, NewPermissionDataSource, NewSourceAhaDataSource, + NewSourceAirbyteDataSource, NewSourceAircallDataSource, NewSourceAirtableDataSource, NewSourceAmazonAdsDataSource, @@ -423,13 +442,17 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceAzureBlobStorageDataSource, NewSourceAzureTableDataSource, NewSourceBambooHrDataSource, + NewSourceBasecampDataSource, NewSourceBigqueryDataSource, NewSourceBingAdsDataSource, NewSourceBraintreeDataSource, NewSourceBrazeDataSource, + NewSourceBreezyHrDataSource, + NewSourceCalendlyDataSource, NewSourceCartDataSource, NewSourceChargebeeDataSource, NewSourceChartmogulDataSource, + NewSourceClazarDataSource, NewSourceClickhouseDataSource, NewSourceClickupAPIDataSource, NewSourceClockifyDataSource, @@ -441,7 +464,10 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceConfluenceDataSource, NewSourceConvexDataSource, NewSourceCustomDataSource, + NewSourceCustomerIoDataSource, + NewSourceDatadogDataSource, NewSourceDatascopeDataSource, + NewSourceDbtDataSource, NewSourceDelightedDataSource, NewSourceDixaDataSource, NewSourceDockerhubDataSource, @@ -465,9 +491,9 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceGitlabDataSource, NewSourceGlassfrogDataSource, NewSourceGnewsDataSource, + NewSourceGoldcastDataSource, NewSourceGoogleAdsDataSource, NewSourceGoogleAnalyticsDataAPIDataSource, - NewSourceGoogleAnalyticsV4ServiceAccountOnlyDataSource, NewSourceGoogleDirectoryDataSource, NewSourceGoogleDriveDataSource, NewSourceGooglePagespeedInsightsDataSource, @@ -476,7 +502,10 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceGoogleWebfontsDataSource, NewSourceGreenhouseDataSource, NewSourceGridlyDataSource, + NewSourceHardcodedRecordsDataSource, NewSourceHarvestDataSource, + NewSourceHibobDataSource, + NewSourceHighLevelDataSource, NewSourceHubplannerDataSource, NewSourceHubspotDataSource, NewSourceInsightlyDataSource, @@ -491,12 +520,15 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceKlaviyoDataSource, NewSourceKyveDataSource, NewSourceLaunchdarklyDataSource, + NewSourceLeadfeederDataSource, NewSourceLemlistDataSource, NewSourceLeverHiringDataSource, NewSourceLinkedinAdsDataSource, NewSourceLinkedinPagesDataSource, NewSourceLinnworksDataSource, NewSourceLokaliseDataSource, + NewSourceLookerDataSource, + NewSourceLumaDataSource, NewSourceMailchimpDataSource, NewSourceMailgunDataSource, NewSourceMailjetSmsDataSource, @@ -507,12 +539,12 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceMicrosoftTeamsDataSource, NewSourceMixpanelDataSource, NewSourceMondayDataSource, - NewSourceMongodbInternalPocDataSource, NewSourceMongodbV2DataSource, NewSourceMssqlDataSource, NewSourceMyHoursDataSource, NewSourceMysqlDataSource, NewSourceNetsuiteDataSource, + NewSourceNorthpassLmsDataSource, NewSourceNotionDataSource, NewSourceNytimesDataSource, NewSourceOktaDataSource, @@ -526,10 +558,12 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourcePaypalTransactionDataSource, NewSourcePaystackDataSource, NewSourcePendoDataSource, + NewSourcePennylaneDataSource, NewSourcePersistiqDataSource, NewSourcePexelsAPIDataSource, NewSourcePinterestDataSource, NewSourcePipedriveDataSource, + NewSourcePlanhatDataSource, NewSourcePocketDataSource, NewSourcePokeapiDataSource, NewSourcePolygonStockAPIDataSource, @@ -537,7 +571,6 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourcePosthogDataSource, NewSourcePostmarkappDataSource, NewSourcePrestashopDataSource, - NewSourcePunkAPIDataSource, NewSourcePypiDataSource, NewSourceQualarooDataSource, NewSourceRailzDataSource, @@ -545,6 +578,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceRecreationDataSource, NewSourceRecruiteeDataSource, NewSourceRecurlyDataSource, + NewSourceRedditDataSource, NewSourceRedshiftDataSource, NewSourceRetentlyDataSource, NewSourceRkiCovidDataSource, @@ -553,6 +587,8 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceSalesforceDataSource, NewSourceSalesloftDataSource, NewSourceSapFieldglassDataSource, + NewSourceSavvycalDataSource, + NewSourceScryfallDataSource, NewSourceSecodaDataSource, NewSourceSendgridDataSource, NewSourceSendinblueDataSource, diff --git a/internal/provider/source_punkapi_data_source.go b/internal/provider/source_airbyte_data_source.go similarity index 78% rename from internal/provider/source_punkapi_data_source.go rename to internal/provider/source_airbyte_data_source.go index 017c25811..d290c2bae 100644 --- a/internal/provider/source_punkapi_data_source.go +++ b/internal/provider/source_airbyte_data_source.go @@ -14,20 +14,20 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ datasource.DataSource = &SourcePunkAPIDataSource{} -var _ datasource.DataSourceWithConfigure = &SourcePunkAPIDataSource{} +var _ datasource.DataSource = &SourceAirbyteDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceAirbyteDataSource{} -func NewSourcePunkAPIDataSource() datasource.DataSource { - return &SourcePunkAPIDataSource{} +func NewSourceAirbyteDataSource() datasource.DataSource { + return &SourceAirbyteDataSource{} } -// SourcePunkAPIDataSource is the data source implementation. -type SourcePunkAPIDataSource struct { +// SourceAirbyteDataSource is the data source implementation. +type SourceAirbyteDataSource struct { client *sdk.SDK } -// SourcePunkAPIDataSourceModel describes the data model. -type SourcePunkAPIDataSourceModel struct { +// SourceAirbyteDataSourceModel describes the data model. +type SourceAirbyteDataSourceModel struct { Configuration types.String `tfsdk:"configuration"` Name types.String `tfsdk:"name"` SourceID types.String `tfsdk:"source_id"` @@ -36,14 +36,14 @@ type SourcePunkAPIDataSourceModel struct { } // Metadata returns the data source type name. -func (r *SourcePunkAPIDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_punk_api" +func (r *SourceAirbyteDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_airbyte" } // Schema defines the schema for the data source. -func (r *SourcePunkAPIDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { +func (r *SourceAirbyteDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourcePunkAPI DataSource", + MarkdownDescription: "SourceAirbyte DataSource", Attributes: map[string]schema.Attribute{ "configuration": schema.StringAttribute{ @@ -66,7 +66,7 @@ func (r *SourcePunkAPIDataSource) Schema(ctx context.Context, req datasource.Sch } } -func (r *SourcePunkAPIDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { +func (r *SourceAirbyteDataSource) 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 *SourcePunkAPIDataSource) Configure(ctx context.Context, req datasource. r.client = client } -func (r *SourcePunkAPIDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data *SourcePunkAPIDataSourceModel +func (r *SourceAirbyteDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceAirbyteDataSourceModel var item types.Object resp.Diagnostics.Append(req.Config.Get(ctx, &item)...) @@ -105,10 +105,10 @@ func (r *SourcePunkAPIDataSource) Read(ctx context.Context, req datasource.ReadR } sourceID := data.SourceID.ValueString() - request := operations.GetSourcePunkAPIRequest{ + request := operations.GetSourceAirbyteRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourcePunkAPI(ctx, request) + res, err := r.client.Sources.GetSourceAirbyte(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_punkapi_data_source_sdk.go b/internal/provider/source_airbyte_data_source_sdk.go similarity index 90% rename from internal/provider/source_punkapi_data_source_sdk.go rename to internal/provider/source_airbyte_data_source_sdk.go index 0ff63c7d4..613620546 100644 --- a/internal/provider/source_punkapi_data_source_sdk.go +++ b/internal/provider/source_airbyte_data_source_sdk.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *SourcePunkAPIDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *SourceAirbyteDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { if resp != nil { configurationResult, _ := json.Marshal(resp.Configuration) r.Configuration = types.StringValue(string(configurationResult)) diff --git a/internal/provider/source_airbyte_resource.go b/internal/provider/source_airbyte_resource.go new file mode 100644 index 000000000..c77648285 --- /dev/null +++ b/internal/provider/source_airbyte_resource.go @@ -0,0 +1,375 @@ +// 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/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/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 = &SourceAirbyteResource{} +var _ resource.ResourceWithImportState = &SourceAirbyteResource{} + +func NewSourceAirbyteResource() resource.Resource { + return &SourceAirbyteResource{} +} + +// SourceAirbyteResource defines the resource implementation. +type SourceAirbyteResource struct { + client *sdk.SDK +} + +// SourceAirbyteResourceModel describes the resource data model. +type SourceAirbyteResourceModel struct { + Configuration tfTypes.SourceAirbyte `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 *SourceAirbyteResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_airbyte" +} + +func (r *SourceAirbyteResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceAirbyte 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, + Sensitive: true, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + }, + }, + "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 *SourceAirbyteResource) 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 *SourceAirbyteResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceAirbyteResourceModel + 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.ToSharedSourceAirbyteCreateRequest() + res, err := r.client.Sources.CreateSourceAirbyte(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.GetSourceAirbyteRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceAirbyte(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 *SourceAirbyteResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceAirbyteResourceModel + 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.GetSourceAirbyteRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceAirbyte(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 *SourceAirbyteResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceAirbyteResourceModel + 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 + } + + sourceAirbytePutRequest := data.ToSharedSourceAirbytePutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceAirbyteRequest{ + SourceAirbytePutRequest: sourceAirbytePutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceAirbyte(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.GetSourceAirbyteRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceAirbyte(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 *SourceAirbyteResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceAirbyteResourceModel + 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.DeleteSourceAirbyteRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceAirbyte(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 *SourceAirbyteResource) 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_punkapi_resource_sdk.go b/internal/provider/source_airbyte_resource_sdk.go similarity index 51% rename from internal/provider/source_punkapi_resource_sdk.go rename to internal/provider/source_airbyte_resource_sdk.go index 8948185fd..520cd13ab 100644 --- a/internal/provider/source_punkapi_resource_sdk.go +++ b/internal/provider/source_airbyte_resource_sdk.go @@ -5,21 +5,17 @@ package provider import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" "github.com/hashicorp/terraform-plugin-framework/types" + "time" ) -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, +func (r *SourceAirbyteResourceModel) ToSharedSourceAirbyteCreateRequest() *shared.SourceAirbyteCreateRequest { + clientID := r.Configuration.ClientID.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceAirbyte{ + ClientID: clientID, + ClientSecret: clientSecret, + StartDate: startDate, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -35,7 +31,7 @@ func (r *SourcePunkAPIResourceModel) ToSharedSourcePunkAPICreateRequest() *share secretID = nil } workspaceID := r.WorkspaceID.ValueString() - out := shared.SourcePunkAPICreateRequest{ + out := shared.SourceAirbyteCreateRequest{ Configuration: configuration, DefinitionID: definitionID, Name: name, @@ -45,7 +41,7 @@ func (r *SourcePunkAPIResourceModel) ToSharedSourcePunkAPICreateRequest() *share return &out } -func (r *SourcePunkAPIResourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *SourceAirbyteResourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { if resp != nil { r.Name = types.StringValue(resp.Name) r.SourceID = types.StringValue(resp.SourceID) @@ -54,23 +50,18 @@ func (r *SourcePunkAPIResourceModel) RefreshFromSharedSourceResponse(resp *share } } -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, +func (r *SourceAirbyteResourceModel) ToSharedSourceAirbytePutRequest() *shared.SourceAirbytePutRequest { + clientID := r.Configuration.ClientID.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceAirbyteUpdate{ + ClientID: clientID, + ClientSecret: clientSecret, + StartDate: startDate, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() - out := shared.SourcePunkAPIPutRequest{ + out := shared.SourceAirbytePutRequest{ Configuration: configuration, Name: name, WorkspaceID: workspaceID, diff --git a/internal/provider/source_aircall_resource.go b/internal/provider/source_aircall_resource.go index 8ac5bcc05..b4756a89c 100644 --- a/internal/provider/source_aircall_resource.go +++ b/internal/provider/source_aircall_resource.go @@ -61,6 +61,7 @@ func (r *SourceAircallResource) Schema(ctx context.Context, req resource.SchemaR Attributes: map[string]schema.Attribute{ "api_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `App ID found at settings https://dashboard.aircall.io/integrations/api-keys`, }, "api_token": schema.StringAttribute{ diff --git a/internal/provider/source_airtable_resource.go b/internal/provider/source_airtable_resource.go index 00b62b415..3a7cfeeda 100644 --- a/internal/provider/source_airtable_resource.go +++ b/internal/provider/source_airtable_resource.go @@ -73,10 +73,12 @@ func (r *SourceAirtableResource) Schema(ctx context.Context, req resource.Schema }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client ID of the Airtable developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client secret the Airtable developer application.`, }, "refresh_token": schema.StringAttribute{ @@ -86,7 +88,6 @@ func (r *SourceAirtableResource) Schema(ctx context.Context, req resource.Schema }, "token_expiry_date": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `The date-time when the access token should be refreshed.`, Validators: []validator.String{ validators.IsRFC3339(), diff --git a/internal/provider/source_airtable_resource_sdk.go b/internal/provider/source_airtable_resource_sdk.go index 581f771ca..423495f8a 100644 --- a/internal/provider/source_airtable_resource_sdk.go +++ b/internal/provider/source_airtable_resource_sdk.go @@ -123,16 +123,16 @@ func (r *SourceAirtableResourceModel) ToSharedSourceAirtablePutRequest() *shared SourceAirtableUpdateOAuth20: sourceAirtableUpdateOAuth20, } } - var personalAccessToken *shared.PersonalAccessToken + var sourceAirtableUpdatePersonalAccessToken *shared.SourceAirtableUpdatePersonalAccessToken if r.Configuration.Credentials.PersonalAccessToken != nil { apiKey := r.Configuration.Credentials.PersonalAccessToken.APIKey.ValueString() - personalAccessToken = &shared.PersonalAccessToken{ + sourceAirtableUpdatePersonalAccessToken = &shared.SourceAirtableUpdatePersonalAccessToken{ APIKey: apiKey, } } - if personalAccessToken != nil { + if sourceAirtableUpdatePersonalAccessToken != nil { credentials = &shared.SourceAirtableUpdateAuthentication{ - PersonalAccessToken: personalAccessToken, + SourceAirtableUpdatePersonalAccessToken: sourceAirtableUpdatePersonalAccessToken, } } } diff --git a/internal/provider/source_amazonads_resource.go b/internal/provider/source_amazonads_resource.go index 98826bb5d..77e3a5a53 100644 --- a/internal/provider/source_amazonads_resource.go +++ b/internal/provider/source_amazonads_resource.go @@ -65,10 +65,12 @@ func (r *SourceAmazonAdsResource) Schema(ctx context.Context, req resource.Schem Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client ID of your Amazon Ads developer application. See the docs for more information.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client secret of your Amazon Ads developer application. See the docs for more information.`, }, "look_back_window": schema.Int64Attribute{ diff --git a/internal/provider/source_amazonsellerpartner_resource.go b/internal/provider/source_amazonsellerpartner_resource.go index 7216b0b01..dd6e747f9 100644 --- a/internal/provider/source_amazonsellerpartner_resource.go +++ b/internal/provider/source_amazonsellerpartner_resource.go @@ -15,6 +15,7 @@ import ( "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/booldefault" "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" @@ -88,10 +89,12 @@ func (r *SourceAmazonSellerPartnerResource) Schema(ctx context.Context, req reso }, "lwa_app_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Your Login with Amazon Client ID.`, }, "lwa_client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Your Login with Amazon Client Secret.`, }, "period_in_days": schema.Int64Attribute{ @@ -146,7 +149,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, 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 or older than 2 years ago from today, the date 2 years ago from today will be used.`, Validators: []validator.String{ validators.IsRFC3339(), }, @@ -221,6 +224,12 @@ func (r *SourceAmazonSellerPartnerResource) Schema(ctx context.Context, req reso }, Description: `Additional information passed to reports. This varies by report type.`, }, + "wait_to_avoid_fatal_errors": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See Troubleshooting section for more details. Default: false`, + }, }, }, "definition_id": schema.StringAttribute{ diff --git a/internal/provider/source_amazonsellerpartner_resource_sdk.go b/internal/provider/source_amazonsellerpartner_resource_sdk.go index a9d8b013f..3b0e6200d 100644 --- a/internal/provider/source_amazonsellerpartner_resource_sdk.go +++ b/internal/provider/source_amazonsellerpartner_resource_sdk.go @@ -67,17 +67,24 @@ func (r *SourceAmazonSellerPartnerResourceModel) ToSharedSourceAmazonSellerPartn StreamName: streamName, }) } + waitToAvoidFatalErrors := new(bool) + if !r.Configuration.WaitToAvoidFatalErrors.IsUnknown() && !r.Configuration.WaitToAvoidFatalErrors.IsNull() { + *waitToAvoidFatalErrors = r.Configuration.WaitToAvoidFatalErrors.ValueBool() + } else { + waitToAvoidFatalErrors = nil + } configuration := shared.SourceAmazonSellerPartner{ - AccountType: accountType, - AwsEnvironment: awsEnvironment, - LwaAppID: lwaAppID, - LwaClientSecret: lwaClientSecret, - PeriodInDays: periodInDays, - RefreshToken: refreshToken, - Region: region, - ReplicationEndDate: replicationEndDate, - ReplicationStartDate: replicationStartDate, - ReportOptionsList: reportOptionsList, + AccountType: accountType, + AwsEnvironment: awsEnvironment, + LwaAppID: lwaAppID, + LwaClientSecret: lwaClientSecret, + PeriodInDays: periodInDays, + RefreshToken: refreshToken, + Region: region, + ReplicationEndDate: replicationEndDate, + ReplicationStartDate: replicationStartDate, + ReportOptionsList: reportOptionsList, + WaitToAvoidFatalErrors: waitToAvoidFatalErrors, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -171,17 +178,24 @@ func (r *SourceAmazonSellerPartnerResourceModel) ToSharedSourceAmazonSellerPartn StreamName: streamName, }) } + waitToAvoidFatalErrors := new(bool) + if !r.Configuration.WaitToAvoidFatalErrors.IsUnknown() && !r.Configuration.WaitToAvoidFatalErrors.IsNull() { + *waitToAvoidFatalErrors = r.Configuration.WaitToAvoidFatalErrors.ValueBool() + } else { + waitToAvoidFatalErrors = nil + } configuration := shared.SourceAmazonSellerPartnerUpdate{ - AccountType: accountType, - AwsEnvironment: awsEnvironment, - LwaAppID: lwaAppID, - LwaClientSecret: lwaClientSecret, - PeriodInDays: periodInDays, - RefreshToken: refreshToken, - Region: region, - ReplicationEndDate: replicationEndDate, - ReplicationStartDate: replicationStartDate, - ReportOptionsList: reportOptionsList, + AccountType: accountType, + AwsEnvironment: awsEnvironment, + LwaAppID: lwaAppID, + LwaClientSecret: lwaClientSecret, + PeriodInDays: periodInDays, + RefreshToken: refreshToken, + Region: region, + ReplicationEndDate: replicationEndDate, + ReplicationStartDate: replicationStartDate, + ReportOptionsList: reportOptionsList, + WaitToAvoidFatalErrors: waitToAvoidFatalErrors, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/source_appfollow_resource.go b/internal/provider/source_appfollow_resource.go index 804c74944..275fc3363 100644 --- a/internal/provider/source_appfollow_resource.go +++ b/internal/provider/source_appfollow_resource.go @@ -59,6 +59,7 @@ func (r *SourceAppfollowResource) Schema(ctx context.Context, req resource.Schem Attributes: map[string]schema.Attribute{ "api_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `API Key provided by Appfollow`, }, }, diff --git a/internal/provider/source_asana_resource.go b/internal/provider/source_asana_resource.go index ae23b0164..5f31e8f76 100644 --- a/internal/provider/source_asana_resource.go +++ b/internal/provider/source_asana_resource.go @@ -68,10 +68,12 @@ func (r *SourceAsanaResource) Schema(ctx context.Context, req resource.SchemaReq Optional: true, Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ - Required: true, + Required: true, + Sensitive: true, }, "client_secret": schema.StringAttribute{ - Required: true, + Required: true, + Sensitive: true, }, "refresh_token": schema.StringAttribute{ Required: true, diff --git a/internal/provider/source_auth0_resource.go b/internal/provider/source_auth0_resource.go index 4e7076c42..ea4250fd7 100644 --- a/internal/provider/source_auth0_resource.go +++ b/internal/provider/source_auth0_resource.go @@ -96,6 +96,7 @@ func (r *SourceAuth0Resource) Schema(ctx context.Context, req resource.SchemaReq }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Your application's Client Secret. You can find this value on the application's settings tab after you login the admin portal.`, }, }, @@ -113,6 +114,7 @@ func (r *SourceAuth0Resource) Schema(ctx context.Context, req resource.SchemaReq "start_date": schema.StringAttribute{ Computed: true, Optional: true, + Sensitive: true, Default: stringdefault.StaticString("2023-08-05T00:43:59.244Z"), Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Default: "2023-08-05T00:43:59.244Z"`, }, diff --git a/internal/provider/source_awscloudtrail_resource.go b/internal/provider/source_awscloudtrail_resource.go index c1813bd22..004a47775 100644 --- a/internal/provider/source_awscloudtrail_resource.go +++ b/internal/provider/source_awscloudtrail_resource.go @@ -66,19 +66,36 @@ 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{ - 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.`, + 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"`, }, "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, + 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, - 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"`, + Description: `The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.`, Validators: []validator.String{ validators.IsValidDate(), }, diff --git a/internal/provider/source_awscloudtrail_resource_sdk.go b/internal/provider/source_awscloudtrail_resource_sdk.go index f75196b8e..ffca64da5 100644 --- a/internal/provider/source_awscloudtrail_resource_sdk.go +++ b/internal/provider/source_awscloudtrail_resource_sdk.go @@ -10,8 +10,32 @@ import ( func (r *SourceAwsCloudtrailResourceModel) ToSharedSourceAwsCloudtrailCreateRequest() *shared.SourceAwsCloudtrailCreateRequest { awsKeyID := r.Configuration.AwsKeyID.ValueString() - awsRegionName := r.Configuration.AwsRegionName.ValueString() + awsRegionName := new(string) + if !r.Configuration.AwsRegionName.IsUnknown() && !r.Configuration.AwsRegionName.IsNull() { + *awsRegionName = r.Configuration.AwsRegionName.ValueString() + } else { + awsRegionName = nil + } 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()) @@ -19,10 +43,11 @@ func (r *SourceAwsCloudtrailResourceModel) ToSharedSourceAwsCloudtrailCreateRequ startDate = nil } configuration := shared.SourceAwsCloudtrail{ - AwsKeyID: awsKeyID, - AwsRegionName: awsRegionName, - AwsSecretKey: awsSecretKey, - StartDate: startDate, + AwsKeyID: awsKeyID, + AwsRegionName: awsRegionName, + AwsSecretKey: awsSecretKey, + LookupAttributesFilter: lookupAttributesFilter, + StartDate: startDate, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -59,8 +84,32 @@ func (r *SourceAwsCloudtrailResourceModel) RefreshFromSharedSourceResponse(resp func (r *SourceAwsCloudtrailResourceModel) ToSharedSourceAwsCloudtrailPutRequest() *shared.SourceAwsCloudtrailPutRequest { awsKeyID := r.Configuration.AwsKeyID.ValueString() - awsRegionName := r.Configuration.AwsRegionName.ValueString() + awsRegionName := new(string) + if !r.Configuration.AwsRegionName.IsUnknown() && !r.Configuration.AwsRegionName.IsNull() { + *awsRegionName = r.Configuration.AwsRegionName.ValueString() + } else { + awsRegionName = nil + } 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()) @@ -68,10 +117,11 @@ func (r *SourceAwsCloudtrailResourceModel) ToSharedSourceAwsCloudtrailPutRequest startDate = nil } configuration := shared.SourceAwsCloudtrailUpdate{ - AwsKeyID: awsKeyID, - AwsRegionName: awsRegionName, - AwsSecretKey: awsSecretKey, - StartDate: startDate, + AwsKeyID: awsKeyID, + AwsRegionName: awsRegionName, + AwsSecretKey: awsSecretKey, + LookupAttributesFilter: lookupAttributesFilter, + StartDate: startDate, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/source_azureblobstorage_resource.go b/internal/provider/source_azureblobstorage_resource.go index 5b01f9d14..2153294c7 100644 --- a/internal/provider/source_azureblobstorage_resource.go +++ b/internal/provider/source_azureblobstorage_resource.go @@ -85,10 +85,12 @@ func (r *SourceAzureBlobStorageResource) Schema(ctx context.Context, req resourc Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client ID of your Microsoft developer application`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client Secret of your Microsoft developer application`, }, "refresh_token": schema.StringAttribute{ @@ -98,6 +100,7 @@ func (r *SourceAzureBlobStorageResource) Schema(ctx context.Context, req resourc }, "tenant_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Tenant ID of the Microsoft Azure Application user`, }, }, @@ -417,7 +420,6 @@ func (r *SourceAzureBlobStorageResource) Schema(ctx context.Context, req resourc }, "primary_key": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key.`, }, "schemaless": schema.BoolAttribute{ diff --git a/internal/provider/source_azuretable_resource.go b/internal/provider/source_azuretable_resource.go index b3b970a18..f5f0c76e2 100644 --- a/internal/provider/source_azuretable_resource.go +++ b/internal/provider/source_azuretable_resource.go @@ -65,11 +65,13 @@ func (r *SourceAzureTableResource) Schema(ctx context.Context, req resource.Sche }, "storage_account_name": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The name of your storage account.`, }, "storage_endpoint_suffix": schema.StringAttribute{ Computed: true, Optional: true, + Sensitive: true, Default: stringdefault.StaticString("core.windows.net"), Description: `Azure Table Storage service account URL suffix. See the docs for more information on how to obtain endpoint suffix. Default: "core.windows.net"`, }, diff --git a/internal/provider/source_bamboohr_resource.go b/internal/provider/source_bamboohr_resource.go index 5852501f2..8886fbfbf 100644 --- a/internal/provider/source_bamboohr_resource.go +++ b/internal/provider/source_bamboohr_resource.go @@ -10,12 +10,14 @@ 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/booldefault" "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" ) @@ -73,6 +75,12 @@ func (r *SourceBambooHrResource) Schema(ctx context.Context, req resource.Schema Default: booldefault.StaticBool(true), Description: `If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. Default: true`, }, + "start_date": schema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, "subdomain": schema.StringAttribute{ Required: true, Description: `Sub Domain of bamboo hr`, diff --git a/internal/provider/source_bamboohr_resource_sdk.go b/internal/provider/source_bamboohr_resource_sdk.go index c61e7e7a2..3faf2ad47 100644 --- a/internal/provider/source_bamboohr_resource_sdk.go +++ b/internal/provider/source_bamboohr_resource_sdk.go @@ -5,6 +5,7 @@ package provider import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" "github.com/hashicorp/terraform-plugin-framework/types" + "time" ) func (r *SourceBambooHrResourceModel) ToSharedSourceBambooHrCreateRequest() *shared.SourceBambooHrCreateRequest { @@ -21,11 +22,18 @@ func (r *SourceBambooHrResourceModel) ToSharedSourceBambooHrCreateRequest() *sha } else { customReportsIncludeDefaultFields = nil } + startDate := new(time.Time) + if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { + *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + } else { + startDate = nil + } subdomain := r.Configuration.Subdomain.ValueString() configuration := shared.SourceBambooHr{ APIKey: apiKey, CustomReportsFields: customReportsFields, CustomReportsIncludeDefaultFields: customReportsIncludeDefaultFields, + StartDate: startDate, Subdomain: subdomain, } definitionID := new(string) @@ -75,11 +83,18 @@ func (r *SourceBambooHrResourceModel) ToSharedSourceBambooHrPutRequest() *shared } else { customReportsIncludeDefaultFields = nil } + startDate := new(time.Time) + if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { + *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + } else { + startDate = nil + } subdomain := r.Configuration.Subdomain.ValueString() configuration := shared.SourceBambooHrUpdate{ APIKey: apiKey, CustomReportsFields: customReportsFields, CustomReportsIncludeDefaultFields: customReportsIncludeDefaultFields, + StartDate: startDate, Subdomain: subdomain, } name := r.Name.ValueString() diff --git a/internal/provider/source_basecamp_data_source.go b/internal/provider/source_basecamp_data_source.go new file mode 100644 index 000000000..52547066b --- /dev/null +++ b/internal/provider/source_basecamp_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceBasecampDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceBasecampDataSource{} + +func NewSourceBasecampDataSource() datasource.DataSource { + return &SourceBasecampDataSource{} +} + +// SourceBasecampDataSource is the data source implementation. +type SourceBasecampDataSource struct { + client *sdk.SDK +} + +// SourceBasecampDataSourceModel describes the data model. +type SourceBasecampDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceBasecampDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_basecamp" +} + +// Schema defines the schema for the data source. +func (r *SourceBasecampDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBasecamp DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceBasecampDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceBasecampDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceBasecampDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceBasecampRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBasecamp(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)...) +} diff --git a/internal/provider/source_mongodbinternalpoc_data_source_sdk.go b/internal/provider/source_basecamp_data_source_sdk.go similarity index 84% rename from internal/provider/source_mongodbinternalpoc_data_source_sdk.go rename to internal/provider/source_basecamp_data_source_sdk.go index f76f53482..f28ff4d5a 100644 --- a/internal/provider/source_mongodbinternalpoc_data_source_sdk.go +++ b/internal/provider/source_basecamp_data_source_sdk.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *SourceMongodbInternalPocDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *SourceBasecampDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { if resp != nil { configurationResult, _ := json.Marshal(resp.Configuration) r.Configuration = types.StringValue(string(configurationResult)) diff --git a/internal/provider/source_basecamp_resource.go b/internal/provider/source_basecamp_resource.go new file mode 100644 index 000000000..fbe0468a3 --- /dev/null +++ b/internal/provider/source_basecamp_resource.go @@ -0,0 +1,383 @@ +// 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/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/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 = &SourceBasecampResource{} +var _ resource.ResourceWithImportState = &SourceBasecampResource{} + +func NewSourceBasecampResource() resource.Resource { + return &SourceBasecampResource{} +} + +// SourceBasecampResource defines the resource implementation. +type SourceBasecampResource struct { + client *sdk.SDK +} + +// SourceBasecampResourceModel describes the resource data model. +type SourceBasecampResourceModel struct { + Configuration tfTypes.SourceBasecamp `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 *SourceBasecampResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_basecamp" +} + +func (r *SourceBasecampResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBasecamp 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{ + "account_id": schema.NumberAttribute{ + Required: true, + }, + "client_id": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "client_refresh_token_2": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "client_secret": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + }, + }, + "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 *SourceBasecampResource) 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 *SourceBasecampResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceBasecampResourceModel + 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.ToSharedSourceBasecampCreateRequest() + res, err := r.client.Sources.CreateSourceBasecamp(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.GetSourceBasecampRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceBasecamp(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 *SourceBasecampResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceBasecampResourceModel + 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.GetSourceBasecampRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBasecamp(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 *SourceBasecampResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceBasecampResourceModel + 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 + } + + sourceBasecampPutRequest := data.ToSharedSourceBasecampPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceBasecampRequest{ + SourceBasecampPutRequest: sourceBasecampPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceBasecamp(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.GetSourceBasecampRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceBasecamp(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 *SourceBasecampResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceBasecampResourceModel + 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.DeleteSourceBasecampRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceBasecamp(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 *SourceBasecampResource) 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_basecamp_resource_sdk.go b/internal/provider/source_basecamp_resource_sdk.go new file mode 100644 index 000000000..dc8839ab4 --- /dev/null +++ b/internal/provider/source_basecamp_resource_sdk.go @@ -0,0 +1,78 @@ +// 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" + "time" +) + +func (r *SourceBasecampResourceModel) ToSharedSourceBasecampCreateRequest() *shared.SourceBasecampCreateRequest { + accountID, _ := r.Configuration.AccountID.ValueBigFloat().Float64() + clientID := r.Configuration.ClientID.ValueString() + clientRefreshToken2 := r.Configuration.ClientRefreshToken2.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBasecamp{ + AccountID: accountID, + ClientID: clientID, + ClientRefreshToken2: clientRefreshToken2, + ClientSecret: clientSecret, + StartDate: startDate, + } + 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.SourceBasecampCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceBasecampResourceModel) 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 *SourceBasecampResourceModel) ToSharedSourceBasecampPutRequest() *shared.SourceBasecampPutRequest { + accountID, _ := r.Configuration.AccountID.ValueBigFloat().Float64() + clientID := r.Configuration.ClientID.ValueString() + clientRefreshToken2 := r.Configuration.ClientRefreshToken2.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBasecampUpdate{ + AccountID: accountID, + ClientID: clientID, + ClientRefreshToken2: clientRefreshToken2, + ClientSecret: clientSecret, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceBasecampPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_bigquery_resource.go b/internal/provider/source_bigquery_resource.go index 7f4e2752c..f0360f841 100644 --- a/internal/provider/source_bigquery_resource.go +++ b/internal/provider/source_bigquery_resource.go @@ -59,6 +59,7 @@ func (r *SourceBigqueryResource) Schema(ctx context.Context, req resource.Schema Attributes: map[string]schema.Attribute{ "credentials_json": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The contents of your Service Account Key JSON file. See the docs for more information on how to obtain this key.`, }, "dataset_id": schema.StringAttribute{ diff --git a/internal/provider/source_bingads_resource.go b/internal/provider/source_bingads_resource.go index f3c219538..f59a899ab 100644 --- a/internal/provider/source_bingads_resource.go +++ b/internal/provider/source_bingads_resource.go @@ -87,11 +87,13 @@ func (r *SourceBingAdsResource) Schema(ctx context.Context, req resource.SchemaR }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your Microsoft Advertising developer application.`, }, "client_secret": schema.StringAttribute{ Computed: true, Optional: true, + Sensitive: true, Default: stringdefault.StaticString(""), Description: `The Client Secret of your Microsoft Advertising developer application. Default: ""`, }, @@ -189,6 +191,7 @@ func (r *SourceBingAdsResource) Schema(ctx context.Context, req resource.SchemaR "tenant_id": schema.StringAttribute{ Computed: true, Optional: true, + Sensitive: true, Default: stringdefault.StaticString("common"), Description: `The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value. Default: "common"`, }, diff --git a/internal/provider/source_braintree_resource.go b/internal/provider/source_braintree_resource.go index 9ffa868c0..c8526f199 100644 --- a/internal/provider/source_braintree_resource.go +++ b/internal/provider/source_braintree_resource.go @@ -83,7 +83,6 @@ func (r *SourceBraintreeResource) Schema(ctx context.Context, req resource.Schem }, "public_key": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `Braintree Public Key. See the docs for more information on how to obtain this key.`, }, "start_date": schema.StringAttribute{ diff --git a/internal/provider/source_breezyhr_data_source.go b/internal/provider/source_breezyhr_data_source.go new file mode 100644 index 000000000..c1e21d96f --- /dev/null +++ b/internal/provider/source_breezyhr_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceBreezyHrDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceBreezyHrDataSource{} + +func NewSourceBreezyHrDataSource() datasource.DataSource { + return &SourceBreezyHrDataSource{} +} + +// SourceBreezyHrDataSource is the data source implementation. +type SourceBreezyHrDataSource struct { + client *sdk.SDK +} + +// SourceBreezyHrDataSourceModel describes the data model. +type SourceBreezyHrDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceBreezyHrDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_breezy_hr" +} + +// Schema defines the schema for the data source. +func (r *SourceBreezyHrDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBreezyHr DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceBreezyHrDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceBreezyHrDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceBreezyHrDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceBreezyHrRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBreezyHr(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)...) +} diff --git a/internal/provider/source_googleanalyticsv4serviceaccountonly_data_source_sdk.go b/internal/provider/source_breezyhr_data_source_sdk.go similarity index 82% rename from internal/provider/source_googleanalyticsv4serviceaccountonly_data_source_sdk.go rename to internal/provider/source_breezyhr_data_source_sdk.go index 3b1d21247..3b608ea65 100644 --- a/internal/provider/source_googleanalyticsv4serviceaccountonly_data_source_sdk.go +++ b/internal/provider/source_breezyhr_data_source_sdk.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *SourceBreezyHrDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { if resp != nil { configurationResult, _ := json.Marshal(resp.Configuration) r.Configuration = types.StringValue(string(configurationResult)) diff --git a/internal/provider/source_breezyhr_resource.go b/internal/provider/source_breezyhr_resource.go new file mode 100644 index 000000000..55ba0ccc1 --- /dev/null +++ b/internal/provider/source_breezyhr_resource.go @@ -0,0 +1,368 @@ +// 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 = &SourceBreezyHrResource{} +var _ resource.ResourceWithImportState = &SourceBreezyHrResource{} + +func NewSourceBreezyHrResource() resource.Resource { + return &SourceBreezyHrResource{} +} + +// SourceBreezyHrResource defines the resource implementation. +type SourceBreezyHrResource struct { + client *sdk.SDK +} + +// SourceBreezyHrResourceModel describes the resource data model. +type SourceBreezyHrResourceModel struct { + Configuration tfTypes.SourceBreezyHr `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 *SourceBreezyHrResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_breezy_hr" +} + +func (r *SourceBreezyHrResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBreezyHr 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{ + "api_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "company_id": schema.StringAttribute{ + Required: true, + Sensitive: 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 *SourceBreezyHrResource) 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 *SourceBreezyHrResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceBreezyHrResourceModel + 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.ToSharedSourceBreezyHrCreateRequest() + res, err := r.client.Sources.CreateSourceBreezyHr(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.GetSourceBreezyHrRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceBreezyHr(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 *SourceBreezyHrResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceBreezyHrResourceModel + 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.GetSourceBreezyHrRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBreezyHr(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 *SourceBreezyHrResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceBreezyHrResourceModel + 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 + } + + sourceBreezyHrPutRequest := data.ToSharedSourceBreezyHrPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceBreezyHrRequest{ + SourceBreezyHrPutRequest: sourceBreezyHrPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceBreezyHr(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.GetSourceBreezyHrRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceBreezyHr(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 *SourceBreezyHrResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceBreezyHrResourceModel + 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.DeleteSourceBreezyHrRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceBreezyHr(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 *SourceBreezyHrResource) 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_breezyhr_resource_sdk.go b/internal/provider/source_breezyhr_resource_sdk.go new file mode 100644 index 000000000..940b39e54 --- /dev/null +++ b/internal/provider/source_breezyhr_resource_sdk.go @@ -0,0 +1,65 @@ +// 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 *SourceBreezyHrResourceModel) ToSharedSourceBreezyHrCreateRequest() *shared.SourceBreezyHrCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + companyID := r.Configuration.CompanyID.ValueString() + configuration := shared.SourceBreezyHr{ + APIKey: apiKey, + CompanyID: companyID, + } + 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.SourceBreezyHrCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceBreezyHrResourceModel) 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 *SourceBreezyHrResourceModel) ToSharedSourceBreezyHrPutRequest() *shared.SourceBreezyHrPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + companyID := r.Configuration.CompanyID.ValueString() + configuration := shared.SourceBreezyHrUpdate{ + APIKey: apiKey, + CompanyID: companyID, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceBreezyHrPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_calendly_data_source.go b/internal/provider/source_calendly_data_source.go new file mode 100644 index 000000000..528bb24c5 --- /dev/null +++ b/internal/provider/source_calendly_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceCalendlyDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceCalendlyDataSource{} + +func NewSourceCalendlyDataSource() datasource.DataSource { + return &SourceCalendlyDataSource{} +} + +// SourceCalendlyDataSource is the data source implementation. +type SourceCalendlyDataSource struct { + client *sdk.SDK +} + +// SourceCalendlyDataSourceModel describes the data model. +type SourceCalendlyDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceCalendlyDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_calendly" +} + +// Schema defines the schema for the data source. +func (r *SourceCalendlyDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceCalendly DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceCalendlyDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceCalendlyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceCalendlyDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceCalendlyRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceCalendly(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)...) +} diff --git a/internal/provider/source_calendly_data_source_sdk.go b/internal/provider/source_calendly_data_source_sdk.go new file mode 100644 index 000000000..e15016b0b --- /dev/null +++ b/internal/provider/source_calendly_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceCalendlyDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_calendly_resource.go b/internal/provider/source_calendly_resource.go new file mode 100644 index 000000000..667d3a901 --- /dev/null +++ b/internal/provider/source_calendly_resource.go @@ -0,0 +1,373 @@ +// 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/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/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 = &SourceCalendlyResource{} +var _ resource.ResourceWithImportState = &SourceCalendlyResource{} + +func NewSourceCalendlyResource() resource.Resource { + return &SourceCalendlyResource{} +} + +// SourceCalendlyResource defines the resource implementation. +type SourceCalendlyResource struct { + client *sdk.SDK +} + +// SourceCalendlyResourceModel describes the resource data model. +type SourceCalendlyResourceModel struct { + Configuration tfTypes.SourceCalendly `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 *SourceCalendlyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_calendly" +} + +func (r *SourceCalendlyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceCalendly 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{ + "api_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks`, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + }, + }, + "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 *SourceCalendlyResource) 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 *SourceCalendlyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceCalendlyResourceModel + 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.ToSharedSourceCalendlyCreateRequest() + res, err := r.client.Sources.CreateSourceCalendly(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.GetSourceCalendlyRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceCalendly(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 *SourceCalendlyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceCalendlyResourceModel + 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.GetSourceCalendlyRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceCalendly(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 *SourceCalendlyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceCalendlyResourceModel + 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 + } + + sourceCalendlyPutRequest := data.ToSharedSourceCalendlyPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceCalendlyRequest{ + SourceCalendlyPutRequest: sourceCalendlyPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceCalendly(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.GetSourceCalendlyRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceCalendly(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 *SourceCalendlyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceCalendlyResourceModel + 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.DeleteSourceCalendlyRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceCalendly(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 *SourceCalendlyResource) 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_calendly_resource_sdk.go b/internal/provider/source_calendly_resource_sdk.go new file mode 100644 index 000000000..6dae19b6f --- /dev/null +++ b/internal/provider/source_calendly_resource_sdk.go @@ -0,0 +1,66 @@ +// 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" + "time" +) + +func (r *SourceCalendlyResourceModel) ToSharedSourceCalendlyCreateRequest() *shared.SourceCalendlyCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceCalendly{ + APIKey: apiKey, + StartDate: startDate, + } + 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.SourceCalendlyCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceCalendlyResourceModel) 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 *SourceCalendlyResourceModel) ToSharedSourceCalendlyPutRequest() *shared.SourceCalendlyPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceCalendlyUpdate{ + APIKey: apiKey, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceCalendlyPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_cart_resource.go b/internal/provider/source_cart_resource.go index 4a0feced5..cf9ccd8af 100644 --- a/internal/provider/source_cart_resource.go +++ b/internal/provider/source_cart_resource.go @@ -68,14 +68,17 @@ func (r *SourceCartResource) Schema(ctx context.Context, req resource.SchemaRequ Attributes: map[string]schema.Attribute{ "site_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and reading the response param PSID`, }, "user_name": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Enter your application's User Name`, }, "user_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Enter your application's User Secret`, }, }, diff --git a/internal/provider/source_chartmogul_resource.go b/internal/provider/source_chartmogul_resource.go index f55537b2e..09515a704 100644 --- a/internal/provider/source_chartmogul_resource.go +++ b/internal/provider/source_chartmogul_resource.go @@ -36,13 +36,13 @@ type SourceChartmogulResource struct { // SourceChartmogulResourceModel describes the resource data model. type SourceChartmogulResourceModel struct { - Configuration tfTypes.SourceChartmogul `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"` + Configuration tfTypes.SourceCalendly `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 *SourceChartmogulResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { diff --git a/internal/provider/source_clazar_data_source.go b/internal/provider/source_clazar_data_source.go new file mode 100644 index 000000000..c905a10fd --- /dev/null +++ b/internal/provider/source_clazar_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceClazarDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceClazarDataSource{} + +func NewSourceClazarDataSource() datasource.DataSource { + return &SourceClazarDataSource{} +} + +// SourceClazarDataSource is the data source implementation. +type SourceClazarDataSource 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"` +} + +// 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" +} + +// Schema defines the schema for the data source. +func (r *SourceClazarDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceClazar DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceClazarDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceClazarDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceClazarDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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)...) +} diff --git a/internal/provider/source_clazar_data_source_sdk.go b/internal/provider/source_clazar_data_source_sdk.go new file mode 100644 index 000000000..1a271d52b --- /dev/null +++ b/internal/provider/source_clazar_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceClazarDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_clazar_resource.go b/internal/provider/source_clazar_resource.go new file mode 100644 index 000000000..59045b121 --- /dev/null +++ b/internal/provider/source_clazar_resource.go @@ -0,0 +1,368 @@ +// 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, + Sensitive: true, + }, + "client_secret": schema.StringAttribute{ + Required: true, + Sensitive: 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_clazar_resource_sdk.go b/internal/provider/source_clazar_resource_sdk.go new file mode 100644 index 000000000..04fafc5b2 --- /dev/null +++ b/internal/provider/source_clazar_resource_sdk.go @@ -0,0 +1,65 @@ +// 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 *SourceClazarResourceModel) ToSharedSourceClazarCreateRequest() *shared.SourceClazarCreateRequest { + clientID := r.Configuration.ClientID.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + configuration := shared.SourceClazar{ + ClientID: clientID, + ClientSecret: clientSecret, + } + 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.SourceClazarCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceClazarResourceModel) 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 *SourceClazarResourceModel) ToSharedSourceClazarPutRequest() *shared.SourceClazarPutRequest { + clientID := r.Configuration.ClientID.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + configuration := shared.SourceClazarUpdate{ + ClientID: clientID, + ClientSecret: clientSecret, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceClazarPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_clickupapi_resource.go b/internal/provider/source_clickupapi_resource.go index 005e630d8..fba90b2ab 100644 --- a/internal/provider/source_clickupapi_resource.go +++ b/internal/provider/source_clickupapi_resource.go @@ -63,28 +63,12 @@ func (r *SourceClickupAPIResource) Schema(ctx context.Context, req resource.Sche Sensitive: true, Description: `Every ClickUp API call required authentication. This field is your personal API token. See here.`, }, - "folder_id": schema.StringAttribute{ - Optional: true, - Description: `The ID of your folder in your space. Retrieve it from the ` + "`" + `/space/{space_id}/folder` + "`" + ` of the ClickUp API. See here.`, - }, "include_closed_tasks": schema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), Description: `Include or exclude closed tasks. By default, they are excluded. See here. Default: false`, }, - "list_id": schema.StringAttribute{ - Optional: true, - Description: `The ID of your list in your folder. Retrieve it from the ` + "`" + `/folder/{folder_id}/list` + "`" + ` of the ClickUp API. See here.`, - }, - "space_id": schema.StringAttribute{ - Optional: true, - Description: `The ID of your space in your workspace. Retrieve it from the ` + "`" + `/team/{team_id}/space` + "`" + ` of the ClickUp API. See here.`, - }, - "team_id": schema.StringAttribute{ - Optional: true, - Description: `The ID of your team in ClickUp. Retrieve it from the ` + "`" + `/team` + "`" + ` of the ClickUp API. See here.`, - }, }, }, "definition_id": schema.StringAttribute{ diff --git a/internal/provider/source_clickupapi_resource_sdk.go b/internal/provider/source_clickupapi_resource_sdk.go index 4e93b8c3a..3fb8615b9 100644 --- a/internal/provider/source_clickupapi_resource_sdk.go +++ b/internal/provider/source_clickupapi_resource_sdk.go @@ -9,43 +9,15 @@ import ( func (r *SourceClickupAPIResourceModel) ToSharedSourceClickupAPICreateRequest() *shared.SourceClickupAPICreateRequest { apiToken := r.Configuration.APIToken.ValueString() - folderID := new(string) - if !r.Configuration.FolderID.IsUnknown() && !r.Configuration.FolderID.IsNull() { - *folderID = r.Configuration.FolderID.ValueString() - } else { - folderID = nil - } includeClosedTasks := new(bool) if !r.Configuration.IncludeClosedTasks.IsUnknown() && !r.Configuration.IncludeClosedTasks.IsNull() { *includeClosedTasks = r.Configuration.IncludeClosedTasks.ValueBool() } else { includeClosedTasks = nil } - listID := new(string) - if !r.Configuration.ListID.IsUnknown() && !r.Configuration.ListID.IsNull() { - *listID = r.Configuration.ListID.ValueString() - } else { - listID = nil - } - spaceID := new(string) - if !r.Configuration.SpaceID.IsUnknown() && !r.Configuration.SpaceID.IsNull() { - *spaceID = r.Configuration.SpaceID.ValueString() - } else { - spaceID = nil - } - teamID := new(string) - if !r.Configuration.TeamID.IsUnknown() && !r.Configuration.TeamID.IsNull() { - *teamID = r.Configuration.TeamID.ValueString() - } else { - teamID = nil - } configuration := shared.SourceClickupAPI{ APIToken: apiToken, - FolderID: folderID, IncludeClosedTasks: includeClosedTasks, - ListID: listID, - SpaceID: spaceID, - TeamID: teamID, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -82,43 +54,15 @@ func (r *SourceClickupAPIResourceModel) RefreshFromSharedSourceResponse(resp *sh func (r *SourceClickupAPIResourceModel) ToSharedSourceClickupAPIPutRequest() *shared.SourceClickupAPIPutRequest { apiToken := r.Configuration.APIToken.ValueString() - folderID := new(string) - if !r.Configuration.FolderID.IsUnknown() && !r.Configuration.FolderID.IsNull() { - *folderID = r.Configuration.FolderID.ValueString() - } else { - folderID = nil - } includeClosedTasks := new(bool) if !r.Configuration.IncludeClosedTasks.IsUnknown() && !r.Configuration.IncludeClosedTasks.IsNull() { *includeClosedTasks = r.Configuration.IncludeClosedTasks.ValueBool() } else { includeClosedTasks = nil } - listID := new(string) - if !r.Configuration.ListID.IsUnknown() && !r.Configuration.ListID.IsNull() { - *listID = r.Configuration.ListID.ValueString() - } else { - listID = nil - } - spaceID := new(string) - if !r.Configuration.SpaceID.IsUnknown() && !r.Configuration.SpaceID.IsNull() { - *spaceID = r.Configuration.SpaceID.ValueString() - } else { - spaceID = nil - } - teamID := new(string) - if !r.Configuration.TeamID.IsUnknown() && !r.Configuration.TeamID.IsNull() { - *teamID = r.Configuration.TeamID.ValueString() - } else { - teamID = nil - } configuration := shared.SourceClickupAPIUpdate{ APIToken: apiToken, - FolderID: folderID, IncludeClosedTasks: includeClosedTasks, - ListID: listID, - SpaceID: spaceID, - TeamID: teamID, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/source_googleanalyticsv4serviceaccountonly_data_source.go b/internal/provider/source_customerio_data_source.go similarity index 65% rename from internal/provider/source_googleanalyticsv4serviceaccountonly_data_source.go rename to internal/provider/source_customerio_data_source.go index a40ed54d1..da1497fe7 100644 --- a/internal/provider/source_googleanalyticsv4serviceaccountonly_data_source.go +++ b/internal/provider/source_customerio_data_source.go @@ -14,20 +14,20 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ datasource.DataSource = &SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource{} -var _ datasource.DataSourceWithConfigure = &SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource{} +var _ datasource.DataSource = &SourceCustomerIoDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceCustomerIoDataSource{} -func NewSourceGoogleAnalyticsV4ServiceAccountOnlyDataSource() datasource.DataSource { - return &SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource{} +func NewSourceCustomerIoDataSource() datasource.DataSource { + return &SourceCustomerIoDataSource{} } -// SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource is the data source implementation. -type SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource struct { +// SourceCustomerIoDataSource is the data source implementation. +type SourceCustomerIoDataSource struct { client *sdk.SDK } -// SourceGoogleAnalyticsV4ServiceAccountOnlyDataSourceModel describes the data model. -type SourceGoogleAnalyticsV4ServiceAccountOnlyDataSourceModel struct { +// SourceCustomerIoDataSourceModel describes the data model. +type SourceCustomerIoDataSourceModel struct { Configuration types.String `tfsdk:"configuration"` Name types.String `tfsdk:"name"` SourceID types.String `tfsdk:"source_id"` @@ -36,14 +36,14 @@ type SourceGoogleAnalyticsV4ServiceAccountOnlyDataSourceModel struct { } // Metadata returns the data source type name. -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_google_analytics_v4_service_account_only" +func (r *SourceCustomerIoDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_customer_io" } // Schema defines the schema for the data source. -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { +func (r *SourceCustomerIoDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceGoogleAnalyticsV4ServiceAccountOnly DataSource", + MarkdownDescription: "SourceCustomerIo DataSource", Attributes: map[string]schema.Attribute{ "configuration": schema.StringAttribute{ @@ -66,7 +66,7 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Schema(ctx context } } -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { +func (r *SourceCustomerIoDataSource) 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 *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Configure(ctx cont r.client = client } -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSourceModel +func (r *SourceCustomerIoDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceCustomerIoDataSourceModel var item types.Object resp.Diagnostics.Append(req.Config.Get(ctx, &item)...) @@ -105,10 +105,10 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Read(ctx context.C } sourceID := data.SourceID.ValueString() - request := operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ + request := operations.GetSourceCustomerIoRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) + res, err := r.client.Sources.GetSourceCustomerIo(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_customerio_data_source_sdk.go b/internal/provider/source_customerio_data_source_sdk.go new file mode 100644 index 000000000..f0cb3a58f --- /dev/null +++ b/internal/provider/source_customerio_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceCustomerIoDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_customerio_resource.go b/internal/provider/source_customerio_resource.go new file mode 100644 index 000000000..c62036902 --- /dev/null +++ b/internal/provider/source_customerio_resource.go @@ -0,0 +1,364 @@ +// 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 = &SourceCustomerIoResource{} +var _ resource.ResourceWithImportState = &SourceCustomerIoResource{} + +func NewSourceCustomerIoResource() resource.Resource { + return &SourceCustomerIoResource{} +} + +// SourceCustomerIoResource defines the resource implementation. +type SourceCustomerIoResource struct { + client *sdk.SDK +} + +// SourceCustomerIoResourceModel describes the resource data model. +type SourceCustomerIoResourceModel struct { + Configuration tfTypes.SourceCustomerIo `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 *SourceCustomerIoResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_customer_io" +} + +func (r *SourceCustomerIoResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceCustomerIo 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{ + "app_api_key": schema.StringAttribute{ + Required: true, + Sensitive: 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 *SourceCustomerIoResource) 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 *SourceCustomerIoResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceCustomerIoResourceModel + 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.ToSharedSourceCustomerIoCreateRequest() + res, err := r.client.Sources.CreateSourceCustomerIo(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.GetSourceCustomerIoRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceCustomerIo(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 *SourceCustomerIoResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceCustomerIoResourceModel + 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.GetSourceCustomerIoRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceCustomerIo(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 *SourceCustomerIoResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceCustomerIoResourceModel + 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 + } + + sourceCustomerIoPutRequest := data.ToSharedSourceCustomerIoPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceCustomerIoRequest{ + SourceCustomerIoPutRequest: sourceCustomerIoPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceCustomerIo(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.GetSourceCustomerIoRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceCustomerIo(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 *SourceCustomerIoResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceCustomerIoResourceModel + 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.DeleteSourceCustomerIoRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceCustomerIo(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 *SourceCustomerIoResource) 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_customerio_resource_sdk.go b/internal/provider/source_customerio_resource_sdk.go new file mode 100644 index 000000000..390597caf --- /dev/null +++ b/internal/provider/source_customerio_resource_sdk.go @@ -0,0 +1,61 @@ +// 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 *SourceCustomerIoResourceModel) ToSharedSourceCustomerIoCreateRequest() *shared.SourceCustomerIoCreateRequest { + appAPIKey := r.Configuration.AppAPIKey.ValueString() + configuration := shared.SourceCustomerIo{ + AppAPIKey: appAPIKey, + } + 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.SourceCustomerIoCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceCustomerIoResourceModel) 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 *SourceCustomerIoResourceModel) ToSharedSourceCustomerIoPutRequest() *shared.SourceCustomerIoPutRequest { + appAPIKey := r.Configuration.AppAPIKey.ValueString() + configuration := shared.SourceCustomerIoUpdate{ + AppAPIKey: appAPIKey, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceCustomerIoPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_datadog_data_source.go b/internal/provider/source_datadog_data_source.go new file mode 100644 index 000000000..1ef35c65f --- /dev/null +++ b/internal/provider/source_datadog_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceDatadogDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceDatadogDataSource{} + +func NewSourceDatadogDataSource() datasource.DataSource { + return &SourceDatadogDataSource{} +} + +// SourceDatadogDataSource is the data source implementation. +type SourceDatadogDataSource struct { + client *sdk.SDK +} + +// SourceDatadogDataSourceModel describes the data model. +type SourceDatadogDataSourceModel 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"` +} + +// 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" +} + +// Schema defines the schema for the data source. +func (r *SourceDatadogDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceDatadog DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceDatadogDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceDatadogDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceDatadogDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceDatadogRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceDatadog(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)...) +} diff --git a/internal/provider/source_datadog_data_source_sdk.go b/internal/provider/source_datadog_data_source_sdk.go new file mode 100644 index 000000000..8384a4fbd --- /dev/null +++ b/internal/provider/source_datadog_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceDatadogDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_googleanalyticsv4serviceaccountonly_resource.go b/internal/provider/source_datadog_resource.go similarity index 61% rename from internal/provider/source_googleanalyticsv4serviceaccountonly_resource.go rename to internal/provider/source_datadog_resource.go index d4c464b2a..74b6d4252 100644 --- a/internal/provider/source_googleanalyticsv4serviceaccountonly_resource.go +++ b/internal/provider/source_datadog_resource.go @@ -10,12 +10,13 @@ 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/stringvalidator" "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" @@ -23,36 +24,36 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ resource.Resource = &SourceGoogleAnalyticsV4ServiceAccountOnlyResource{} -var _ resource.ResourceWithImportState = &SourceGoogleAnalyticsV4ServiceAccountOnlyResource{} +var _ resource.Resource = &SourceDatadogResource{} +var _ resource.ResourceWithImportState = &SourceDatadogResource{} -func NewSourceGoogleAnalyticsV4ServiceAccountOnlyResource() resource.Resource { - return &SourceGoogleAnalyticsV4ServiceAccountOnlyResource{} +func NewSourceDatadogResource() resource.Resource { + return &SourceDatadogResource{} } -// SourceGoogleAnalyticsV4ServiceAccountOnlyResource defines the resource implementation. -type SourceGoogleAnalyticsV4ServiceAccountOnlyResource struct { +// SourceDatadogResource defines the resource implementation. +type SourceDatadogResource struct { client *sdk.SDK } -// 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"` +// 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"` } -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) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_datadog" } -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { +func (r *SourceDatadogResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceGoogleAnalyticsV4ServiceAccountOnly Resource", + MarkdownDescription: "SourceDatadog Resource", Attributes: map[string]schema.Attribute{ "configuration": schema.SingleNestedAttribute{ PlanModifiers: []planmodifier.Object{ @@ -60,51 +61,80 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Schema(ctx context.C }, Required: true, Attributes: map[string]schema.Attribute{ - "credentials": schema.SingleNestedAttribute{ + "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{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("2024-01-01T00:00:00Z"), + 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. Default: "2024-01-01T00:00:00Z"`, + }, + "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{ Optional: true, - 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`, + 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", + ), }, }, + "name": schema.StringAttribute{ + Required: true, + Description: `The variable name for use in queries.`, + }, + "query": schema.StringAttribute{ + Required: true, + Description: `A classic query string.`, + }, }, }, - Description: `Credentials for the service`, - Validators: []validator.Object{ - validators.ExactlyOneChild(), - }, + Description: `List of queries to be run and used as inputs.`, }, - "custom_reports": schema.StringAttribute{ + "query": schema.StringAttribute{ Optional: true, - 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.`, + Description: `The search query. This just applies to Incremental syncs. If empty, it'll collect all logs.`, }, - "end_date": schema.StringAttribute{ + "site": schema.StringAttribute{ + Computed: true, Optional: true, - Description: `The date in the format YYYY-MM-DD. Any data after this date will not be replicated.`, + 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"`, Validators: []validator.String{ - validators.IsValidDate(), + stringvalidator.OneOf( + "datadoghq.com", + "us3.datadoghq.com", + "us5.datadoghq.com", + "datadoghq.eu", + "ddog-gov.com", + ), }, }, "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, - 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`, + Default: stringdefault.StaticString("2023-12-01T00:00:00Z"), + 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: "2023-12-01T00:00:00Z"`, }, }, }, @@ -151,7 +181,7 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Schema(ctx context.C } } -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { +func (r *SourceDatadogResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -171,8 +201,8 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Configure(ctx contex r.client = client } -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel +func (r *SourceDatadogResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceDatadogResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -189,8 +219,8 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Create(ctx context.C return } - request := data.ToSharedSourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest() - res, err := r.client.Sources.CreateSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) + request := data.ToSharedSourceDatadogCreateRequest() + res, err := r.client.Sources.CreateSourceDatadog(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -213,10 +243,10 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Create(ctx context.C data.RefreshFromSharedSourceResponse(res.SourceResponse) refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceID := data.SourceID.ValueString() - request1 := operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ + request1 := operations.GetSourceDatadogRequest{ SourceID: sourceID, } - res1, err := r.client.Sources.GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request1) + res1, err := r.client.Sources.GetSourceDatadog(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -243,8 +273,8 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Create(ctx context.C resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel +func (r *SourceDatadogResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceDatadogResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -262,10 +292,10 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Read(ctx context.Con } sourceID := data.SourceID.ValueString() - request := operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ + request := operations.GetSourceDatadogRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) + res, err := r.client.Sources.GetSourceDatadog(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -295,8 +325,8 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Read(ctx context.Con resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel +func (r *SourceDatadogResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceDatadogResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -309,13 +339,13 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Update(ctx context.C return } - sourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest := data.ToSharedSourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest() + sourceDatadogPutRequest := data.ToSharedSourceDatadogPutRequest() sourceID := data.SourceID.ValueString() - request := operations.PutSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ - SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest: sourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest, - SourceID: sourceID, + request := operations.PutSourceDatadogRequest{ + SourceDatadogPutRequest: sourceDatadogPutRequest, + SourceID: sourceID, } - res, err := r.client.Sources.PutSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) + res, err := r.client.Sources.PutSourceDatadog(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -333,10 +363,10 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Update(ctx context.C } refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceId1 := data.SourceID.ValueString() - request1 := operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ + request1 := operations.GetSourceDatadogRequest{ SourceID: sourceId1, } - res1, err := r.client.Sources.GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request1) + res1, err := r.client.Sources.GetSourceDatadog(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -363,8 +393,8 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Update(ctx context.C resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel +func (r *SourceDatadogResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceDatadogResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -382,10 +412,10 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Delete(ctx context.C } sourceID := data.SourceID.ValueString() - request := operations.DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ + request := operations.DeleteSourceDatadogRequest{ SourceID: sourceID, } - res, err := r.client.Sources.DeleteSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) + res, err := r.client.Sources.DeleteSourceDatadog(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -404,6 +434,6 @@ func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Delete(ctx context.C } -func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { +func (r *SourceDatadogResource) 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 new file mode 100644 index 000000000..bffe56758 --- /dev/null +++ b/internal/provider/source_datadog_resource_sdk.go @@ -0,0 +1,159 @@ +// 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.DataSource(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_dbt_data_source.go b/internal/provider/source_dbt_data_source.go new file mode 100644 index 000000000..934dff8ec --- /dev/null +++ b/internal/provider/source_dbt_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceDbtDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceDbtDataSource{} + +func NewSourceDbtDataSource() datasource.DataSource { + return &SourceDbtDataSource{} +} + +// SourceDbtDataSource is the data source implementation. +type SourceDbtDataSource struct { + client *sdk.SDK +} + +// SourceDbtDataSourceModel describes the data model. +type SourceDbtDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceDbtDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_dbt" +} + +// Schema defines the schema for the data source. +func (r *SourceDbtDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceDbt DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceDbtDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceDbtDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceDbtDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceDbtRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceDbt(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)...) +} diff --git a/internal/provider/source_dbt_data_source_sdk.go b/internal/provider/source_dbt_data_source_sdk.go new file mode 100644 index 000000000..e63065752 --- /dev/null +++ b/internal/provider/source_dbt_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceDbtDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_dbt_resource.go b/internal/provider/source_dbt_resource.go new file mode 100644 index 000000000..f815d4ae6 --- /dev/null +++ b/internal/provider/source_dbt_resource.go @@ -0,0 +1,367 @@ +// 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 = &SourceDbtResource{} +var _ resource.ResourceWithImportState = &SourceDbtResource{} + +func NewSourceDbtResource() resource.Resource { + return &SourceDbtResource{} +} + +// SourceDbtResource defines the resource implementation. +type SourceDbtResource struct { + client *sdk.SDK +} + +// SourceDbtResourceModel describes the resource data model. +type SourceDbtResourceModel struct { + Configuration tfTypes.SourceDbt `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 *SourceDbtResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_dbt" +} + +func (r *SourceDbtResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceDbt 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{ + "account_id": schema.StringAttribute{ + Required: true, + }, + "api_key_2": schema.StringAttribute{ + Required: true, + Sensitive: 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 *SourceDbtResource) 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 *SourceDbtResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceDbtResourceModel + 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.ToSharedSourceDbtCreateRequest() + res, err := r.client.Sources.CreateSourceDbt(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.GetSourceDbtRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceDbt(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 *SourceDbtResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceDbtResourceModel + 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.GetSourceDbtRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceDbt(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 *SourceDbtResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceDbtResourceModel + 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 + } + + sourceDbtPutRequest := data.ToSharedSourceDbtPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceDbtRequest{ + SourceDbtPutRequest: sourceDbtPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceDbt(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.GetSourceDbtRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceDbt(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 *SourceDbtResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceDbtResourceModel + 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.DeleteSourceDbtRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceDbt(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 *SourceDbtResource) 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_dbt_resource_sdk.go b/internal/provider/source_dbt_resource_sdk.go new file mode 100644 index 000000000..c43e746ea --- /dev/null +++ b/internal/provider/source_dbt_resource_sdk.go @@ -0,0 +1,65 @@ +// 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 *SourceDbtResourceModel) ToSharedSourceDbtCreateRequest() *shared.SourceDbtCreateRequest { + accountID := r.Configuration.AccountID.ValueString() + apiKey2 := r.Configuration.APIKey2.ValueString() + configuration := shared.SourceDbt{ + AccountID: accountID, + APIKey2: apiKey2, + } + 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.SourceDbtCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceDbtResourceModel) 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 *SourceDbtResourceModel) ToSharedSourceDbtPutRequest() *shared.SourceDbtPutRequest { + accountID := r.Configuration.AccountID.ValueString() + apiKey2 := r.Configuration.APIKey2.ValueString() + configuration := shared.SourceDbtUpdate{ + AccountID: accountID, + APIKey2: apiKey2, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceDbtPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_dynamodb_resource.go b/internal/provider/source_dynamodb_resource.go index 20049101e..5b58a1431 100644 --- a/internal/provider/source_dynamodb_resource.go +++ b/internal/provider/source_dynamodb_resource.go @@ -174,6 +174,7 @@ func (r *SourceDynamodbResource) Schema(ctx context.Context, req resource.Schema }, "reserved_attribute_names": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Comma separated reserved attribute names present in your tables`, }, }, diff --git a/internal/provider/source_facebookmarketing_resource.go b/internal/provider/source_facebookmarketing_resource.go index cc4f3c674..beff2ab94 100644 --- a/internal/provider/source_facebookmarketing_resource.go +++ b/internal/provider/source_facebookmarketing_resource.go @@ -12,6 +12,7 @@ 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" @@ -101,12 +102,63 @@ func (r *SourceFacebookMarketingResource) Schema(ctx context.Context, req resour }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client Id for your OAuth app`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client Secret for your OAuth app`, }, + "credentials": schema.SingleNestedAttribute{ + Required: 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, + Sensitive: true, + Description: `Client ID for the Facebook Marketing API`, + }, + "client_secret": schema.StringAttribute{ + Required: true, + Sensitive: 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 8f8c7302f..486e2632a 100644 --- a/internal/provider/source_facebookmarketing_resource_sdk.go +++ b/internal/provider/source_facebookmarketing_resource_sdk.go @@ -49,6 +49,40 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingCr } else { clientSecret = nil } + var credentials shared.SourceFacebookMarketingAuthentication + 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{} @@ -165,6 +199,7 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingCr CampaignStatuses: campaignStatuses, ClientID: clientID, ClientSecret: clientSecret, + Credentials: credentials, CustomInsights: customInsights, EndDate: endDate1, FetchThumbnailImages: fetchThumbnailImages, @@ -247,6 +282,40 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingPu } else { clientSecret = nil } + var credentials shared.SourceFacebookMarketingUpdateAuthentication + 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{} @@ -363,6 +432,7 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingPu CampaignStatuses: campaignStatuses, ClientID: clientID, ClientSecret: clientSecret, + Credentials: credentials, CustomInsights: customInsights, EndDate: endDate1, FetchThumbnailImages: fetchThumbnailImages, diff --git a/internal/provider/source_fauna_resource.go b/internal/provider/source_fauna_resource.go index 0d624960c..a80934b83 100644 --- a/internal/provider/source_fauna_resource.go +++ b/internal/provider/source_fauna_resource.go @@ -134,6 +134,7 @@ func (r *SourceFaunaResource) Schema(ctx context.Context, req resource.SchemaReq }, "secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Fauna secret, used when authenticating with the database.`, }, }, diff --git a/internal/provider/source_file_resource.go b/internal/provider/source_file_resource.go index f14d05049..d8b8c63ab 100644 --- a/internal/provider/source_file_resource.go +++ b/internal/provider/source_file_resource.go @@ -123,6 +123,7 @@ func (r *SourceFileResource) Schema(ctx context.Context, req resource.SchemaRequ Attributes: map[string]schema.Attribute{ "service_account_json": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.`, }, }, @@ -163,7 +164,6 @@ func (r *SourceFileResource) Schema(ctx context.Context, req resource.SchemaRequ Attributes: map[string]schema.Attribute{ "aws_access_key_id": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.`, }, "aws_secret_access_key": schema.StringAttribute{ diff --git a/internal/provider/source_firebolt_resource.go b/internal/provider/source_firebolt_resource.go index cf36770a3..ecdee9ec7 100644 --- a/internal/provider/source_firebolt_resource.go +++ b/internal/provider/source_firebolt_resource.go @@ -67,6 +67,7 @@ func (r *SourceFireboltResource) Schema(ctx context.Context, req resource.Schema }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Firebolt secret, corresponding to the service account ID.`, }, "database": schema.StringAttribute{ diff --git a/internal/provider/source_gcs_resource.go b/internal/provider/source_gcs_resource.go index 4128cddd3..1dbcc9801 100644 --- a/internal/provider/source_gcs_resource.go +++ b/internal/provider/source_gcs_resource.go @@ -71,6 +71,7 @@ func (r *SourceGcsResource) Schema(ctx context.Context, req resource.SchemaReque }, "service_account": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Enter your Google Cloud service account key in JSON format`, }, "start_date": schema.StringAttribute{ @@ -93,6 +94,26 @@ func (r *SourceGcsResource) Schema(ctx context.Context, req resource.SchemaReque "format": schema.SingleNestedAttribute{ Required: true, Attributes: map[string]schema.Attribute{ + "avro_format": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "double_as_string": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. Default: false`, + }, + }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("excel_format"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + path.MatchRelative().AtParent().AtName("parquet_format"), + path.MatchRelative().AtParent().AtName("unstructured_document_format"), + }...), + }, + }, "csv_format": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ @@ -230,6 +251,155 @@ func (r *SourceGcsResource) Schema(ctx context.Context, req resource.SchemaReque }, }, }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("excel_format"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + path.MatchRelative().AtParent().AtName("parquet_format"), + path.MatchRelative().AtParent().AtName("unstructured_document_format"), + }...), + }, + }, + "excel_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("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("excel_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("excel_format"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + path.MatchRelative().AtParent().AtName("unstructured_document_format"), + }...), + }, + }, + "unstructured_document_format": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "processing": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "local": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Description: `Process files locally, supporting ` + "`" + `fast` + "`" + ` and ` + "`" + `ocr` + "`" + ` modes. This is the default option.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("via_api"), + }...), + }, + }, + "via_api": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "api_key": schema.StringAttribute{ + Computed: true, + Optional: true, + Sensitive: true, + Default: stringdefault.StaticString(""), + Description: `The API key to use matching the environment. Default: ""`, + }, + "api_url": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("https://api.unstructured.io"), + Description: `The URL of the unstructured API to use. Default: "https://api.unstructured.io"`, + }, + "parameters": schema.ListNestedAttribute{ + Optional: true, + NestedObject: schema.NestedAttributeObject{ + Attributes: map[string]schema.Attribute{ + "name": schema.StringAttribute{ + Required: true, + Description: `The name of the unstructured API parameter to use`, + }, + "value": schema.StringAttribute{ + Required: true, + Description: `The value of the parameter`, + }, + }, + }, + Description: `List of parameters send to the API`, + }, + }, + Description: `Process files via an API, using the ` + "`" + `hi_res` + "`" + ` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("local"), + }...), + }, + }, + }, + Description: `Processing configuration`, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, + }, + "skip_unprocessable_files": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + Description: `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": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("auto"), + Description: `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"`, + Validators: []validator.String{ + stringvalidator.OneOf( + "auto", + "fast", + "ocr_only", + "hi_res", + ), + }, + }, + }, + Description: `Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("excel_format"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + path.MatchRelative().AtParent().AtName("parquet_format"), + }...), + }, }, }, Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`, @@ -248,7 +418,7 @@ func (r *SourceGcsResource) Schema(ctx context.Context, req resource.SchemaReque }, "legacy_prefix": schema.StringAttribute{ Optional: true, - Description: `The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob.`, + Description: `The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob.`, }, "name": schema.StringAttribute{ Required: true, @@ -256,9 +426,12 @@ func (r *SourceGcsResource) Schema(ctx context.Context, req resource.SchemaReque }, "primary_key": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key.`, }, + "recent_n_files_to_read_for_schema_discovery": schema.Int64Attribute{ + Optional: true, + Description: `The number of resent files which will be used to discover the schema for this stream.`, + }, "schemaless": schema.BoolAttribute{ Computed: true, Optional: true, @@ -280,7 +453,7 @@ func (r *SourceGcsResource) Schema(ctx context.Context, req resource.SchemaReque }, }, }, - Description: `Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table.`, + Description: `Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table.`, }, }, MarkdownDescription: `NOTE: When this Spec is changed, legacy_config_transformer.py must also be` + "\n" + diff --git a/internal/provider/source_gcs_resource_sdk.go b/internal/provider/source_gcs_resource_sdk.go index 1266e8f63..dbb3379af 100644 --- a/internal/provider/source_gcs_resource_sdk.go +++ b/internal/provider/source_gcs_resource_sdk.go @@ -17,7 +17,7 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source } else { startDate = nil } - var streams []shared.SourceGCSSourceGCSStreamConfig = []shared.SourceGCSSourceGCSStreamConfig{} + var streams []shared.SourceGcsFileBasedStreamConfig = []shared.SourceGcsFileBasedStreamConfig{} for _, streamsItem := range r.Configuration.Streams { daysToSyncIfHistoryIsFull := new(int64) if !streamsItem.DaysToSyncIfHistoryIsFull.IsUnknown() && !streamsItem.DaysToSyncIfHistoryIsFull.IsNull() { @@ -26,6 +26,23 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source daysToSyncIfHistoryIsFull = nil } var format shared.SourceGcsFormat + var sourceGcsAvroFormat *shared.SourceGcsAvroFormat + if streamsItem.Format.AvroFormat != nil { + doubleAsString := new(bool) + if !streamsItem.Format.AvroFormat.DoubleAsString.IsUnknown() && !streamsItem.Format.AvroFormat.DoubleAsString.IsNull() { + *doubleAsString = streamsItem.Format.AvroFormat.DoubleAsString.ValueBool() + } else { + doubleAsString = nil + } + sourceGcsAvroFormat = &shared.SourceGcsAvroFormat{ + DoubleAsString: doubleAsString, + } + } + if sourceGcsAvroFormat != nil { + format = shared.SourceGcsFormat{ + SourceGcsAvroFormat: sourceGcsAvroFormat, + } + } var sourceGcsCSVFormat *shared.SourceGcsCSVFormat if streamsItem.Format.CSVFormat != nil { delimiter := new(string) @@ -158,6 +175,112 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source SourceGcsCSVFormat: sourceGcsCSVFormat, } } + var sourceGcsJsonlFormat *shared.SourceGcsJsonlFormat + if streamsItem.Format.JsonlFormat != nil { + sourceGcsJsonlFormat = &shared.SourceGcsJsonlFormat{} + } + if sourceGcsJsonlFormat != nil { + format = shared.SourceGcsFormat{ + SourceGcsJsonlFormat: sourceGcsJsonlFormat, + } + } + var sourceGcsParquetFormat *shared.SourceGcsParquetFormat + if streamsItem.Format.ParquetFormat != nil { + decimalAsFloat := new(bool) + if !streamsItem.Format.ParquetFormat.DecimalAsFloat.IsUnknown() && !streamsItem.Format.ParquetFormat.DecimalAsFloat.IsNull() { + *decimalAsFloat = streamsItem.Format.ParquetFormat.DecimalAsFloat.ValueBool() + } else { + decimalAsFloat = nil + } + sourceGcsParquetFormat = &shared.SourceGcsParquetFormat{ + DecimalAsFloat: decimalAsFloat, + } + } + if sourceGcsParquetFormat != nil { + format = shared.SourceGcsFormat{ + SourceGcsParquetFormat: sourceGcsParquetFormat, + } + } + var sourceGcsUnstructuredDocumentFormat *shared.SourceGcsUnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { + var processing *shared.SourceGcsProcessing + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { + var sourceGcsLocal *shared.SourceGcsLocal + if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { + sourceGcsLocal = &shared.SourceGcsLocal{} + } + if sourceGcsLocal != nil { + processing = &shared.SourceGcsProcessing{ + SourceGcsLocal: sourceGcsLocal, + } + } + var sourceGcsViaAPI *shared.SourceGcsViaAPI + if streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI != nil { + apiKey := new(string) + if !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.IsNull() { + *apiKey = streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.ValueString() + } else { + apiKey = nil + } + apiURL := new(string) + if !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.IsNull() { + *apiURL = streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.ValueString() + } else { + apiURL = nil + } + var parameters []shared.SourceGcsAPIParameterConfigModel = []shared.SourceGcsAPIParameterConfigModel{} + for _, parametersItem := range streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.Parameters { + name := parametersItem.Name.ValueString() + value := parametersItem.Value.ValueString() + parameters = append(parameters, shared.SourceGcsAPIParameterConfigModel{ + Name: name, + Value: value, + }) + } + sourceGcsViaAPI = &shared.SourceGcsViaAPI{ + APIKey: apiKey, + APIURL: apiURL, + Parameters: parameters, + } + } + if sourceGcsViaAPI != nil { + processing = &shared.SourceGcsProcessing{ + SourceGcsViaAPI: sourceGcsViaAPI, + } + } + } + skipUnprocessableFiles := new(bool) + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() + } else { + skipUnprocessableFiles = nil + } + strategy := new(shared.SourceGcsParsingStrategy) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceGcsParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) + } else { + strategy = nil + } + sourceGcsUnstructuredDocumentFormat = &shared.SourceGcsUnstructuredDocumentFormat{ + Processing: processing, + SkipUnprocessableFiles: skipUnprocessableFiles, + Strategy: strategy, + } + } + if sourceGcsUnstructuredDocumentFormat != nil { + format = shared.SourceGcsFormat{ + SourceGcsUnstructuredDocumentFormat: sourceGcsUnstructuredDocumentFormat, + } + } + var sourceGcsExcelFormat *shared.SourceGcsExcelFormat + if streamsItem.Format.ExcelFormat != nil { + sourceGcsExcelFormat = &shared.SourceGcsExcelFormat{} + } + if sourceGcsExcelFormat != nil { + format = shared.SourceGcsFormat{ + SourceGcsExcelFormat: sourceGcsExcelFormat, + } + } var globs []string = []string{} for _, globsItem := range streamsItem.Globs { globs = append(globs, globsItem.ValueString()) @@ -174,13 +297,19 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source } else { legacyPrefix = nil } - name := streamsItem.Name.ValueString() + name1 := streamsItem.Name.ValueString() primaryKey := new(string) if !streamsItem.PrimaryKey.IsUnknown() && !streamsItem.PrimaryKey.IsNull() { *primaryKey = streamsItem.PrimaryKey.ValueString() } else { primaryKey = nil } + recentNFilesToReadForSchemaDiscovery := new(int64) + if !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsUnknown() && !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsNull() { + *recentNFilesToReadForSchemaDiscovery = streamsItem.RecentNFilesToReadForSchemaDiscovery.ValueInt64() + } else { + recentNFilesToReadForSchemaDiscovery = nil + } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -193,16 +322,17 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source } else { validationPolicy = nil } - streams = append(streams, shared.SourceGCSSourceGCSStreamConfig{ - DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format, - Globs: globs, - InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, - Name: name, - PrimaryKey: primaryKey, - Schemaless: schemaless, - ValidationPolicy: validationPolicy, + streams = append(streams, shared.SourceGcsFileBasedStreamConfig{ + DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, + Format: format, + Globs: globs, + InputSchema: inputSchema, + LegacyPrefix: legacyPrefix, + Name: name1, + PrimaryKey: primaryKey, + RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, + Schemaless: schemaless, + ValidationPolicy: validationPolicy, }) } configuration := shared.SourceGcs{ @@ -217,7 +347,7 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source } else { definitionID = nil } - name1 := r.Name.ValueString() + name2 := r.Name.ValueString() secretID := new(string) if !r.SecretID.IsUnknown() && !r.SecretID.IsNull() { *secretID = r.SecretID.ValueString() @@ -228,7 +358,7 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source out := shared.SourceGcsCreateRequest{ Configuration: configuration, DefinitionID: definitionID, - Name: name1, + Name: name2, SecretID: secretID, WorkspaceID: workspaceID, } @@ -253,7 +383,7 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs } else { startDate = nil } - var streams []shared.SourceGCSStreamConfig = []shared.SourceGCSStreamConfig{} + var streams []shared.SourceGcsUpdateFileBasedStreamConfig = []shared.SourceGcsUpdateFileBasedStreamConfig{} for _, streamsItem := range r.Configuration.Streams { daysToSyncIfHistoryIsFull := new(int64) if !streamsItem.DaysToSyncIfHistoryIsFull.IsUnknown() && !streamsItem.DaysToSyncIfHistoryIsFull.IsNull() { @@ -262,6 +392,23 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs daysToSyncIfHistoryIsFull = nil } var format shared.SourceGcsUpdateFormat + var sourceGcsUpdateAvroFormat *shared.SourceGcsUpdateAvroFormat + if streamsItem.Format.AvroFormat != nil { + doubleAsString := new(bool) + if !streamsItem.Format.AvroFormat.DoubleAsString.IsUnknown() && !streamsItem.Format.AvroFormat.DoubleAsString.IsNull() { + *doubleAsString = streamsItem.Format.AvroFormat.DoubleAsString.ValueBool() + } else { + doubleAsString = nil + } + sourceGcsUpdateAvroFormat = &shared.SourceGcsUpdateAvroFormat{ + DoubleAsString: doubleAsString, + } + } + if sourceGcsUpdateAvroFormat != nil { + format = shared.SourceGcsUpdateFormat{ + SourceGcsUpdateAvroFormat: sourceGcsUpdateAvroFormat, + } + } var sourceGcsUpdateCSVFormat *shared.SourceGcsUpdateCSVFormat if streamsItem.Format.CSVFormat != nil { delimiter := new(string) @@ -394,6 +541,112 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs SourceGcsUpdateCSVFormat: sourceGcsUpdateCSVFormat, } } + var sourceGcsUpdateJsonlFormat *shared.SourceGcsUpdateJsonlFormat + if streamsItem.Format.JsonlFormat != nil { + sourceGcsUpdateJsonlFormat = &shared.SourceGcsUpdateJsonlFormat{} + } + if sourceGcsUpdateJsonlFormat != nil { + format = shared.SourceGcsUpdateFormat{ + SourceGcsUpdateJsonlFormat: sourceGcsUpdateJsonlFormat, + } + } + var sourceGcsUpdateParquetFormat *shared.SourceGcsUpdateParquetFormat + if streamsItem.Format.ParquetFormat != nil { + decimalAsFloat := new(bool) + if !streamsItem.Format.ParquetFormat.DecimalAsFloat.IsUnknown() && !streamsItem.Format.ParquetFormat.DecimalAsFloat.IsNull() { + *decimalAsFloat = streamsItem.Format.ParquetFormat.DecimalAsFloat.ValueBool() + } else { + decimalAsFloat = nil + } + sourceGcsUpdateParquetFormat = &shared.SourceGcsUpdateParquetFormat{ + DecimalAsFloat: decimalAsFloat, + } + } + if sourceGcsUpdateParquetFormat != nil { + format = shared.SourceGcsUpdateFormat{ + SourceGcsUpdateParquetFormat: sourceGcsUpdateParquetFormat, + } + } + var unstructuredDocumentFormat *shared.UnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { + var processing *shared.SourceGcsUpdateProcessing + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { + var sourceGcsUpdateLocal *shared.SourceGcsUpdateLocal + if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { + sourceGcsUpdateLocal = &shared.SourceGcsUpdateLocal{} + } + if sourceGcsUpdateLocal != nil { + processing = &shared.SourceGcsUpdateProcessing{ + SourceGcsUpdateLocal: sourceGcsUpdateLocal, + } + } + var viaAPI *shared.ViaAPI + if streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI != nil { + apiKey := new(string) + if !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.IsNull() { + *apiKey = streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.ValueString() + } else { + apiKey = nil + } + apiURL := new(string) + if !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.IsNull() { + *apiURL = streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.ValueString() + } else { + apiURL = nil + } + var parameters []shared.APIParameterConfigModel = []shared.APIParameterConfigModel{} + for _, parametersItem := range streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.Parameters { + name := parametersItem.Name.ValueString() + value := parametersItem.Value.ValueString() + parameters = append(parameters, shared.APIParameterConfigModel{ + Name: name, + Value: value, + }) + } + viaAPI = &shared.ViaAPI{ + APIKey: apiKey, + APIURL: apiURL, + Parameters: parameters, + } + } + if viaAPI != nil { + processing = &shared.SourceGcsUpdateProcessing{ + ViaAPI: viaAPI, + } + } + } + skipUnprocessableFiles := new(bool) + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() + } else { + skipUnprocessableFiles = nil + } + strategy := new(shared.SourceGcsUpdateParsingStrategy) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceGcsUpdateParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) + } else { + strategy = nil + } + unstructuredDocumentFormat = &shared.UnstructuredDocumentFormat{ + Processing: processing, + SkipUnprocessableFiles: skipUnprocessableFiles, + Strategy: strategy, + } + } + if unstructuredDocumentFormat != nil { + format = shared.SourceGcsUpdateFormat{ + UnstructuredDocumentFormat: unstructuredDocumentFormat, + } + } + var excelFormat *shared.ExcelFormat + if streamsItem.Format.ExcelFormat != nil { + excelFormat = &shared.ExcelFormat{} + } + if excelFormat != nil { + format = shared.SourceGcsUpdateFormat{ + ExcelFormat: excelFormat, + } + } var globs []string = []string{} for _, globsItem := range streamsItem.Globs { globs = append(globs, globsItem.ValueString()) @@ -410,13 +663,19 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs } else { legacyPrefix = nil } - name := streamsItem.Name.ValueString() + name1 := streamsItem.Name.ValueString() primaryKey := new(string) if !streamsItem.PrimaryKey.IsUnknown() && !streamsItem.PrimaryKey.IsNull() { *primaryKey = streamsItem.PrimaryKey.ValueString() } else { primaryKey = nil } + recentNFilesToReadForSchemaDiscovery := new(int64) + if !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsUnknown() && !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsNull() { + *recentNFilesToReadForSchemaDiscovery = streamsItem.RecentNFilesToReadForSchemaDiscovery.ValueInt64() + } else { + recentNFilesToReadForSchemaDiscovery = nil + } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -429,16 +688,17 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs } else { validationPolicy = nil } - streams = append(streams, shared.SourceGCSStreamConfig{ - DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format, - Globs: globs, - InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, - Name: name, - PrimaryKey: primaryKey, - Schemaless: schemaless, - ValidationPolicy: validationPolicy, + streams = append(streams, shared.SourceGcsUpdateFileBasedStreamConfig{ + DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, + Format: format, + Globs: globs, + InputSchema: inputSchema, + LegacyPrefix: legacyPrefix, + Name: name1, + PrimaryKey: primaryKey, + RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, + Schemaless: schemaless, + ValidationPolicy: validationPolicy, }) } configuration := shared.SourceGcsUpdate{ @@ -447,11 +707,11 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs StartDate: startDate, Streams: streams, } - name1 := r.Name.ValueString() + name2 := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() out := shared.SourceGcsPutRequest{ Configuration: configuration, - Name: name1, + Name: name2, WorkspaceID: workspaceID, } return &out diff --git a/internal/provider/source_github_resource.go b/internal/provider/source_github_resource.go index d440e760e..ecbef5e72 100644 --- a/internal/provider/source_github_resource.go +++ b/internal/provider/source_github_resource.go @@ -91,10 +91,12 @@ func (r *SourceGithubResource) Schema(ctx context.Context, req resource.SchemaRe }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `OAuth Client Id`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `OAuth Client secret`, }, }, diff --git a/internal/provider/source_gitlab_resource.go b/internal/provider/source_gitlab_resource.go index 3feda8754..ba18a4015 100644 --- a/internal/provider/source_gitlab_resource.go +++ b/internal/provider/source_gitlab_resource.go @@ -80,10 +80,12 @@ func (r *SourceGitlabResource) Schema(ctx context.Context, req resource.SchemaRe }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The API ID of the Gitlab developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The API Secret the Gitlab developer application.`, }, "refresh_token": schema.StringAttribute{ @@ -93,7 +95,6 @@ func (r *SourceGitlabResource) Schema(ctx context.Context, req resource.SchemaRe }, "token_expiry_date": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `The date-time when the access token should be refreshed.`, Validators: []validator.String{ validators.IsRFC3339(), diff --git a/internal/provider/source_goldcast_data_source.go b/internal/provider/source_goldcast_data_source.go new file mode 100644 index 000000000..2a1408b07 --- /dev/null +++ b/internal/provider/source_goldcast_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceGoldcastDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceGoldcastDataSource{} + +func NewSourceGoldcastDataSource() datasource.DataSource { + return &SourceGoldcastDataSource{} +} + +// SourceGoldcastDataSource is the data source implementation. +type SourceGoldcastDataSource struct { + client *sdk.SDK +} + +// SourceGoldcastDataSourceModel describes the data model. +type SourceGoldcastDataSourceModel 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"` +} + +// 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" +} + +// Schema defines the schema for the data source. +func (r *SourceGoldcastDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceGoldcast DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceGoldcastDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceGoldcastDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceGoldcastDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceGoldcastRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceGoldcast(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)...) +} diff --git a/internal/provider/source_goldcast_data_source_sdk.go b/internal/provider/source_goldcast_data_source_sdk.go new file mode 100644 index 000000000..9e5671d82 --- /dev/null +++ b/internal/provider/source_goldcast_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceGoldcastDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_goldcast_resource.go b/internal/provider/source_goldcast_resource.go new file mode 100644 index 000000000..c4d3e88d4 --- /dev/null +++ b/internal/provider/source_goldcast_resource.go @@ -0,0 +1,365 @@ +// 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 = &SourceGoldcastResource{} +var _ resource.ResourceWithImportState = &SourceGoldcastResource{} + +func NewSourceGoldcastResource() resource.Resource { + return &SourceGoldcastResource{} +} + +// SourceGoldcastResource defines the resource implementation. +type SourceGoldcastResource 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"` +} + +func (r *SourceGoldcastResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_goldcast" +} + +func (r *SourceGoldcastResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceGoldcast 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{ + "access_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `Your API Access Key. See here. The key is case sensitive.`, + }, + }, + }, + "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 *SourceGoldcastResource) 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 *SourceGoldcastResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceGoldcastResourceModel + 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.ToSharedSourceGoldcastCreateRequest() + res, err := r.client.Sources.CreateSourceGoldcast(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.GetSourceGoldcastRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceGoldcast(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 *SourceGoldcastResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceGoldcastResourceModel + 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.GetSourceGoldcastRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceGoldcast(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 *SourceGoldcastResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceGoldcastResourceModel + 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 + } + + sourceGoldcastPutRequest := data.ToSharedSourceGoldcastPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceGoldcastRequest{ + SourceGoldcastPutRequest: sourceGoldcastPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceGoldcast(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.GetSourceGoldcastRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceGoldcast(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 *SourceGoldcastResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceGoldcastResourceModel + 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.DeleteSourceGoldcastRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceGoldcast(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 *SourceGoldcastResource) 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_goldcast_resource_sdk.go b/internal/provider/source_goldcast_resource_sdk.go new file mode 100644 index 000000000..5a8c5c86c --- /dev/null +++ b/internal/provider/source_goldcast_resource_sdk.go @@ -0,0 +1,61 @@ +// 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_googleads_resource.go b/internal/provider/source_googleads_resource.go index fc4dacfca..197082f99 100644 --- a/internal/provider/source_googleads_resource.go +++ b/internal/provider/source_googleads_resource.go @@ -80,6 +80,7 @@ func (r *SourceGoogleAdsResource) Schema(ctx context.Context, req resource.Schem }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our documentation.`, }, "developer_token": schema.StringAttribute{ diff --git a/internal/provider/source_googleanalyticsdataapi_resource.go b/internal/provider/source_googleanalyticsdataapi_resource.go index 7632fa32d..aca6a8a8a 100644 --- a/internal/provider/source_googleanalyticsdataapi_resource.go +++ b/internal/provider/source_googleanalyticsdataapi_resource.go @@ -87,6 +87,7 @@ func (r *SourceGoogleAnalyticsDataAPIResource) Schema(ctx context.Context, req r }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Google Analytics developer application.`, }, "refresh_token": schema.StringAttribute{ @@ -106,6 +107,7 @@ func (r *SourceGoogleAnalyticsDataAPIResource) Schema(ctx context.Context, req r Attributes: map[string]schema.Attribute{ "credentials_json": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.`, }, }, diff --git a/internal/provider/source_googleanalyticsdataapi_resource_sdk.go b/internal/provider/source_googleanalyticsdataapi_resource_sdk.go index ecfd294cd..f8dd366af 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 serviceAccountKeyAuthentication *shared.ServiceAccountKeyAuthentication + var sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication if r.Configuration.Credentials.ServiceAccountKeyAuthentication != nil { credentialsJSON := r.Configuration.Credentials.ServiceAccountKeyAuthentication.CredentialsJSON.ValueString() - serviceAccountKeyAuthentication = &shared.ServiceAccountKeyAuthentication{ + sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication = &shared.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication{ CredentialsJSON: credentialsJSON, } } - if serviceAccountKeyAuthentication != nil { + if sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication != nil { credentials = &shared.SourceGoogleAnalyticsDataAPIUpdateCredentials{ - ServiceAccountKeyAuthentication: serviceAccountKeyAuthentication, + SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication: sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication, } } } diff --git a/internal/provider/source_googleanalyticsv4serviceaccountonly_resource_sdk.go b/internal/provider/source_googleanalyticsv4serviceaccountonly_resource_sdk.go deleted file mode 100644 index 33000ed6a..000000000 --- a/internal/provider/source_googleanalyticsv4serviceaccountonly_resource_sdk.go +++ /dev/null @@ -1,140 +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" - 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_googledirectory_resource.go b/internal/provider/source_googledirectory_resource.go index 666d51181..88cc96872 100644 --- a/internal/provider/source_googledirectory_resource.go +++ b/internal/provider/source_googledirectory_resource.go @@ -68,6 +68,7 @@ func (r *SourceGoogleDirectoryResource) Schema(ctx context.Context, req resource Attributes: map[string]schema.Attribute{ "credentials_json": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The contents of the JSON service account key. See the docs for more information on how to generate this key.`, }, "email": schema.StringAttribute{ @@ -87,10 +88,12 @@ func (r *SourceGoogleDirectoryResource) Schema(ctx context.Context, req resource Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of the developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of the developer application.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_googledrive_resource.go b/internal/provider/source_googledrive_resource.go index 0955ee44c..21d9c38e5 100644 --- a/internal/provider/source_googledrive_resource.go +++ b/internal/provider/source_googledrive_resource.go @@ -73,10 +73,12 @@ func (r *SourceGoogleDriveResource) Schema(ctx context.Context, req resource.Sch Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client ID for the Google Drive API`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client Secret for the Google Drive API`, }, "refresh_token": schema.StringAttribute{ @@ -96,6 +98,7 @@ func (r *SourceGoogleDriveResource) Schema(ctx context.Context, req resource.Sch Attributes: map[string]schema.Attribute{ "service_account_info": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The JSON key of the service account to use for authorization. Read more here.`, }, }, @@ -388,7 +391,6 @@ func (r *SourceGoogleDriveResource) Schema(ctx context.Context, req resource.Sch }, "primary_key": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key.`, }, "schemaless": schema.BoolAttribute{ diff --git a/internal/provider/source_googlesearchconsole_resource.go b/internal/provider/source_googlesearchconsole_resource.go index f0a5054f6..dbd032ae4 100644 --- a/internal/provider/source_googlesearchconsole_resource.go +++ b/internal/provider/source_googlesearchconsole_resource.go @@ -75,10 +75,12 @@ func (r *SourceGoogleSearchConsoleResource) Schema(ctx context.Context, req reso }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client ID of your Google Search Console developer application. Read more here.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client secret of your Google Search Console developer application. Read more here.`, }, "refresh_token": schema.StringAttribute{ @@ -102,6 +104,7 @@ func (r *SourceGoogleSearchConsoleResource) Schema(ctx context.Context, req reso }, "service_account_info": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The JSON key of the service account to use for authorization. Read more here.`, }, }, diff --git a/internal/provider/source_googlesheets_resource.go b/internal/provider/source_googlesheets_resource.go index 6c8190552..e41f00f49 100644 --- a/internal/provider/source_googlesheets_resource.go +++ b/internal/provider/source_googlesheets_resource.go @@ -76,10 +76,12 @@ func (r *SourceGoogleSheetsResource) Schema(ctx context.Context, req resource.Sc Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Enter your Google application's Client ID. See Google's documentation for more information.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Enter your Google application's Client Secret. See Google's documentation for more information.`, }, "refresh_token": schema.StringAttribute{ @@ -99,6 +101,7 @@ func (r *SourceGoogleSheetsResource) Schema(ctx context.Context, req resource.Sc Attributes: map[string]schema.Attribute{ "service_account_info": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The JSON key of the service account to use for authorization. Read more here.`, }, }, diff --git a/internal/provider/source_hardcodedrecords_data_source.go b/internal/provider/source_hardcodedrecords_data_source.go new file mode 100644 index 000000000..4a74d0434 --- /dev/null +++ b/internal/provider/source_hardcodedrecords_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceHardcodedRecordsDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceHardcodedRecordsDataSource{} + +func NewSourceHardcodedRecordsDataSource() datasource.DataSource { + return &SourceHardcodedRecordsDataSource{} +} + +// SourceHardcodedRecordsDataSource is the data source implementation. +type SourceHardcodedRecordsDataSource struct { + client *sdk.SDK +} + +// SourceHardcodedRecordsDataSourceModel describes the data model. +type SourceHardcodedRecordsDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceHardcodedRecordsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_hardcoded_records" +} + +// Schema defines the schema for the data source. +func (r *SourceHardcodedRecordsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceHardcodedRecords DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceHardcodedRecordsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceHardcodedRecordsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceHardcodedRecordsDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceHardcodedRecordsRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceHardcodedRecords(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)...) +} diff --git a/internal/provider/source_hardcodedrecords_data_source_sdk.go b/internal/provider/source_hardcodedrecords_data_source_sdk.go new file mode 100644 index 000000000..bf5182149 --- /dev/null +++ b/internal/provider/source_hardcodedrecords_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceHardcodedRecordsDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_hardcodedrecords_resource.go b/internal/provider/source_hardcodedrecords_resource.go new file mode 100644 index 000000000..f6def6d07 --- /dev/null +++ b/internal/provider/source_hardcodedrecords_resource.go @@ -0,0 +1,367 @@ +// 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/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/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ resource.Resource = &SourceHardcodedRecordsResource{} +var _ resource.ResourceWithImportState = &SourceHardcodedRecordsResource{} + +func NewSourceHardcodedRecordsResource() resource.Resource { + return &SourceHardcodedRecordsResource{} +} + +// SourceHardcodedRecordsResource defines the resource implementation. +type SourceHardcodedRecordsResource struct { + client *sdk.SDK +} + +// SourceHardcodedRecordsResourceModel describes the resource data model. +type SourceHardcodedRecordsResourceModel struct { + Configuration tfTypes.SourceHardcodedRecords `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 *SourceHardcodedRecordsResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_hardcoded_records" +} + +func (r *SourceHardcodedRecordsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceHardcodedRecords 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{ + "count": schema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(1000), + Description: `How many records per stream should be generated. Default: 1000`, + }, + }, + }, + "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 *SourceHardcodedRecordsResource) 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 *SourceHardcodedRecordsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceHardcodedRecordsResourceModel + 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.ToSharedSourceHardcodedRecordsCreateRequest() + res, err := r.client.Sources.CreateSourceHardcodedRecords(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.GetSourceHardcodedRecordsRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceHardcodedRecords(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 *SourceHardcodedRecordsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceHardcodedRecordsResourceModel + 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.GetSourceHardcodedRecordsRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceHardcodedRecords(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 *SourceHardcodedRecordsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceHardcodedRecordsResourceModel + 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 + } + + sourceHardcodedRecordsPutRequest := data.ToSharedSourceHardcodedRecordsPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceHardcodedRecordsRequest{ + SourceHardcodedRecordsPutRequest: sourceHardcodedRecordsPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceHardcodedRecords(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.GetSourceHardcodedRecordsRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceHardcodedRecords(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 *SourceHardcodedRecordsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceHardcodedRecordsResourceModel + 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.DeleteSourceHardcodedRecordsRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceHardcodedRecords(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 *SourceHardcodedRecordsResource) 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_hardcodedrecords_resource_sdk.go b/internal/provider/source_hardcodedrecords_resource_sdk.go new file mode 100644 index 000000000..64e307b82 --- /dev/null +++ b/internal/provider/source_hardcodedrecords_resource_sdk.go @@ -0,0 +1,71 @@ +// 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 *SourceHardcodedRecordsResourceModel) ToSharedSourceHardcodedRecordsCreateRequest() *shared.SourceHardcodedRecordsCreateRequest { + count := new(int64) + if !r.Configuration.Count.IsUnknown() && !r.Configuration.Count.IsNull() { + *count = r.Configuration.Count.ValueInt64() + } else { + count = nil + } + configuration := shared.SourceHardcodedRecords{ + Count: count, + } + 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.SourceHardcodedRecordsCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceHardcodedRecordsResourceModel) 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 *SourceHardcodedRecordsResourceModel) ToSharedSourceHardcodedRecordsPutRequest() *shared.SourceHardcodedRecordsPutRequest { + count := new(int64) + if !r.Configuration.Count.IsUnknown() && !r.Configuration.Count.IsNull() { + *count = r.Configuration.Count.ValueInt64() + } else { + count = nil + } + configuration := shared.SourceHardcodedRecordsUpdate{ + Count: count, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceHardcodedRecordsPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_harvest_resource.go b/internal/provider/source_harvest_resource.go index 035f20a11..e77b0f311 100644 --- a/internal/provider/source_harvest_resource.go +++ b/internal/provider/source_harvest_resource.go @@ -62,6 +62,7 @@ func (r *SourceHarvestResource) Schema(ctx context.Context, req resource.SchemaR Attributes: map[string]schema.Attribute{ "account_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Harvest account ID. Required for all Harvest requests in pair with Personal Access Token`, }, "credentials": schema.SingleNestedAttribute{ @@ -83,6 +84,7 @@ func (r *SourceHarvestResource) Schema(ctx context.Context, req resource.SchemaR }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Harvest developer application.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_hibob_data_source.go b/internal/provider/source_hibob_data_source.go new file mode 100644 index 000000000..ffd534757 --- /dev/null +++ b/internal/provider/source_hibob_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceHibobDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceHibobDataSource{} + +func NewSourceHibobDataSource() datasource.DataSource { + return &SourceHibobDataSource{} +} + +// SourceHibobDataSource is the data source implementation. +type SourceHibobDataSource struct { + client *sdk.SDK +} + +// SourceHibobDataSourceModel describes the data model. +type SourceHibobDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceHibobDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_hibob" +} + +// Schema defines the schema for the data source. +func (r *SourceHibobDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceHibob DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceHibobDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceHibobDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceHibobDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceHibobRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceHibob(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)...) +} diff --git a/internal/provider/source_hibob_data_source_sdk.go b/internal/provider/source_hibob_data_source_sdk.go new file mode 100644 index 000000000..4253dbf7d --- /dev/null +++ b/internal/provider/source_hibob_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceHibobDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_hibob_resource.go b/internal/provider/source_hibob_resource.go new file mode 100644 index 000000000..b05990fef --- /dev/null +++ b/internal/provider/source_hibob_resource.go @@ -0,0 +1,371 @@ +// 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 = &SourceHibobResource{} +var _ resource.ResourceWithImportState = &SourceHibobResource{} + +func NewSourceHibobResource() resource.Resource { + return &SourceHibobResource{} +} + +// SourceHibobResource defines the resource implementation. +type SourceHibobResource struct { + client *sdk.SDK +} + +// SourceHibobResourceModel describes the resource data model. +type SourceHibobResourceModel struct { + Configuration tfTypes.SourceHibob `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 *SourceHibobResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_hibob" +} + +func (r *SourceHibobResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceHibob 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{ + "is_sandbox": schema.BoolAttribute{ + Required: true, + Description: `Toggle true if this instance is a HiBob sandbox `, + }, + "password": schema.StringAttribute{ + Optional: true, + Sensitive: true, + }, + "username": 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 *SourceHibobResource) 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 *SourceHibobResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceHibobResourceModel + 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.ToSharedSourceHibobCreateRequest() + res, err := r.client.Sources.CreateSourceHibob(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.GetSourceHibobRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceHibob(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 *SourceHibobResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceHibobResourceModel + 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.GetSourceHibobRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceHibob(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 *SourceHibobResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceHibobResourceModel + 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 + } + + sourceHibobPutRequest := data.ToSharedSourceHibobPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceHibobRequest{ + SourceHibobPutRequest: sourceHibobPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceHibob(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.GetSourceHibobRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceHibob(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 *SourceHibobResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceHibobResourceModel + 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.DeleteSourceHibobRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceHibob(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 *SourceHibobResource) 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_hibob_resource_sdk.go b/internal/provider/source_hibob_resource_sdk.go new file mode 100644 index 000000000..de25bfc8c --- /dev/null +++ b/internal/provider/source_hibob_resource_sdk.go @@ -0,0 +1,79 @@ +// 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 *SourceHibobResourceModel) ToSharedSourceHibobCreateRequest() *shared.SourceHibobCreateRequest { + isSandbox := r.Configuration.IsSandbox.ValueBool() + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + username := r.Configuration.Username.ValueString() + configuration := shared.SourceHibob{ + IsSandbox: isSandbox, + Password: password, + Username: username, + } + 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.SourceHibobCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceHibobResourceModel) 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 *SourceHibobResourceModel) ToSharedSourceHibobPutRequest() *shared.SourceHibobPutRequest { + isSandbox := r.Configuration.IsSandbox.ValueBool() + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + username := r.Configuration.Username.ValueString() + configuration := shared.SourceHibobUpdate{ + IsSandbox: isSandbox, + Password: password, + Username: username, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceHibobPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_highlevel_data_source.go b/internal/provider/source_highlevel_data_source.go new file mode 100644 index 000000000..84c4a6707 --- /dev/null +++ b/internal/provider/source_highlevel_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceHighLevelDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceHighLevelDataSource{} + +func NewSourceHighLevelDataSource() datasource.DataSource { + return &SourceHighLevelDataSource{} +} + +// SourceHighLevelDataSource is the data source implementation. +type SourceHighLevelDataSource struct { + client *sdk.SDK +} + +// SourceHighLevelDataSourceModel describes the data model. +type SourceHighLevelDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceHighLevelDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_high_level" +} + +// Schema defines the schema for the data source. +func (r *SourceHighLevelDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceHighLevel DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceHighLevelDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceHighLevelDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceHighLevelDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceHighLevelRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceHighLevel(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)...) +} diff --git a/internal/provider/source_highlevel_data_source_sdk.go b/internal/provider/source_highlevel_data_source_sdk.go new file mode 100644 index 000000000..46fadcc31 --- /dev/null +++ b/internal/provider/source_highlevel_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceHighLevelDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_highlevel_resource.go b/internal/provider/source_highlevel_resource.go new file mode 100644 index 000000000..6f78d61ba --- /dev/null +++ b/internal/provider/source_highlevel_resource.go @@ -0,0 +1,375 @@ +// 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/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/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 = &SourceHighLevelResource{} +var _ resource.ResourceWithImportState = &SourceHighLevelResource{} + +func NewSourceHighLevelResource() resource.Resource { + return &SourceHighLevelResource{} +} + +// SourceHighLevelResource defines the resource implementation. +type SourceHighLevelResource struct { + client *sdk.SDK +} + +// SourceHighLevelResourceModel describes the resource data model. +type SourceHighLevelResourceModel struct { + Configuration tfTypes.SourceHighLevel `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 *SourceHighLevelResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_high_level" +} + +func (r *SourceHighLevelResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceHighLevel 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{ + "api_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "location_id": schema.StringAttribute{ + Required: true, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + }, + }, + "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 *SourceHighLevelResource) 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 *SourceHighLevelResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceHighLevelResourceModel + 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.ToSharedSourceHighLevelCreateRequest() + res, err := r.client.Sources.CreateSourceHighLevel(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.GetSourceHighLevelRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceHighLevel(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 *SourceHighLevelResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceHighLevelResourceModel + 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.GetSourceHighLevelRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceHighLevel(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 *SourceHighLevelResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceHighLevelResourceModel + 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 + } + + sourceHighLevelPutRequest := data.ToSharedSourceHighLevelPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceHighLevelRequest{ + SourceHighLevelPutRequest: sourceHighLevelPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceHighLevel(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.GetSourceHighLevelRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceHighLevel(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 *SourceHighLevelResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceHighLevelResourceModel + 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.DeleteSourceHighLevelRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceHighLevel(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 *SourceHighLevelResource) 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_highlevel_resource_sdk.go b/internal/provider/source_highlevel_resource_sdk.go new file mode 100644 index 000000000..0356c5e7f --- /dev/null +++ b/internal/provider/source_highlevel_resource_sdk.go @@ -0,0 +1,70 @@ +// 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" + "time" +) + +func (r *SourceHighLevelResourceModel) ToSharedSourceHighLevelCreateRequest() *shared.SourceHighLevelCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + locationID := r.Configuration.LocationID.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceHighLevel{ + APIKey: apiKey, + LocationID: locationID, + StartDate: startDate, + } + 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.SourceHighLevelCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceHighLevelResourceModel) 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 *SourceHighLevelResourceModel) ToSharedSourceHighLevelPutRequest() *shared.SourceHighLevelPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + locationID := r.Configuration.LocationID.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceHighLevelUpdate{ + APIKey: apiKey, + LocationID: locationID, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceHighLevelPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_hubspot_resource.go b/internal/provider/source_hubspot_resource.go index 908665bbe..e0daf87bd 100644 --- a/internal/provider/source_hubspot_resource.go +++ b/internal/provider/source_hubspot_resource.go @@ -73,6 +73,7 @@ func (r *SourceHubspotResource) Schema(ctx context.Context, req resource.SchemaR }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_instagram_resource.go b/internal/provider/source_instagram_resource.go index 8f710a1ce..62b09cea5 100644 --- a/internal/provider/source_instagram_resource.go +++ b/internal/provider/source_instagram_resource.go @@ -66,10 +66,12 @@ func (r *SourceInstagramResource) Schema(ctx context.Context, req resource.Schem }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client ID for your Oauth application`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client Secret for your Oauth application`, }, "start_date": schema.StringAttribute{ diff --git a/internal/provider/source_intercom_resource.go b/internal/provider/source_intercom_resource.go index 44a068ac1..3c7085da2 100644 --- a/internal/provider/source_intercom_resource.go +++ b/internal/provider/source_intercom_resource.go @@ -73,10 +73,12 @@ func (r *SourceIntercomResource) Schema(ctx context.Context, req resource.Schema }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Client Id for your Intercom application.`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Client Secret for your Intercom application.`, }, "start_date": schema.StringAttribute{ diff --git a/internal/provider/source_iterable_resource.go b/internal/provider/source_iterable_resource.go index c2beabd48..ecd6e26f3 100644 --- a/internal/provider/source_iterable_resource.go +++ b/internal/provider/source_iterable_resource.go @@ -36,13 +36,13 @@ type SourceIterableResource struct { // SourceIterableResourceModel describes the resource data model. type SourceIterableResourceModel struct { - Configuration tfTypes.SourceChartmogul `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"` + Configuration tfTypes.SourceCalendly `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 *SourceIterableResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { diff --git a/internal/provider/source_klaviyo_resource.go b/internal/provider/source_klaviyo_resource.go index 4830db010..8acd3fa82 100644 --- a/internal/provider/source_klaviyo_resource.go +++ b/internal/provider/source_klaviyo_resource.go @@ -64,6 +64,10 @@ func (r *SourceKlaviyoResource) Schema(ctx context.Context, req resource.SchemaR Sensitive: true, Description: `Klaviyo API Key. See our docs if you need help finding this key.`, }, + "disable_fetching_predictive_analytics": schema.BoolAttribute{ + Optional: true, + Description: `Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination.`, + }, "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. This field is optional - if not provided, all data will be replicated.`, diff --git a/internal/provider/source_klaviyo_resource_sdk.go b/internal/provider/source_klaviyo_resource_sdk.go index a8ba8823e..fa0f32d90 100644 --- a/internal/provider/source_klaviyo_resource_sdk.go +++ b/internal/provider/source_klaviyo_resource_sdk.go @@ -10,6 +10,12 @@ import ( func (r *SourceKlaviyoResourceModel) ToSharedSourceKlaviyoCreateRequest() *shared.SourceKlaviyoCreateRequest { apiKey := r.Configuration.APIKey.ValueString() + disableFetchingPredictiveAnalytics := new(bool) + if !r.Configuration.DisableFetchingPredictiveAnalytics.IsUnknown() && !r.Configuration.DisableFetchingPredictiveAnalytics.IsNull() { + *disableFetchingPredictiveAnalytics = r.Configuration.DisableFetchingPredictiveAnalytics.ValueBool() + } else { + disableFetchingPredictiveAnalytics = nil + } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -17,8 +23,9 @@ func (r *SourceKlaviyoResourceModel) ToSharedSourceKlaviyoCreateRequest() *share startDate = nil } configuration := shared.SourceKlaviyo{ - APIKey: apiKey, - StartDate: startDate, + APIKey: apiKey, + DisableFetchingPredictiveAnalytics: disableFetchingPredictiveAnalytics, + StartDate: startDate, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -55,6 +62,12 @@ func (r *SourceKlaviyoResourceModel) RefreshFromSharedSourceResponse(resp *share func (r *SourceKlaviyoResourceModel) ToSharedSourceKlaviyoPutRequest() *shared.SourceKlaviyoPutRequest { apiKey := r.Configuration.APIKey.ValueString() + disableFetchingPredictiveAnalytics := new(bool) + if !r.Configuration.DisableFetchingPredictiveAnalytics.IsUnknown() && !r.Configuration.DisableFetchingPredictiveAnalytics.IsNull() { + *disableFetchingPredictiveAnalytics = r.Configuration.DisableFetchingPredictiveAnalytics.ValueBool() + } else { + disableFetchingPredictiveAnalytics = nil + } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -62,8 +75,9 @@ func (r *SourceKlaviyoResourceModel) ToSharedSourceKlaviyoPutRequest() *shared.S startDate = nil } configuration := shared.SourceKlaviyoUpdate{ - APIKey: apiKey, - StartDate: startDate, + APIKey: apiKey, + DisableFetchingPredictiveAnalytics: disableFetchingPredictiveAnalytics, + StartDate: startDate, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/source_leadfeeder_data_source.go b/internal/provider/source_leadfeeder_data_source.go new file mode 100644 index 000000000..1092f7952 --- /dev/null +++ b/internal/provider/source_leadfeeder_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceLeadfeederDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceLeadfeederDataSource{} + +func NewSourceLeadfeederDataSource() datasource.DataSource { + return &SourceLeadfeederDataSource{} +} + +// SourceLeadfeederDataSource is the data source implementation. +type SourceLeadfeederDataSource struct { + client *sdk.SDK +} + +// SourceLeadfeederDataSourceModel describes the data model. +type SourceLeadfeederDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceLeadfeederDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_leadfeeder" +} + +// Schema defines the schema for the data source. +func (r *SourceLeadfeederDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceLeadfeeder DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceLeadfeederDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceLeadfeederDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceLeadfeederDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceLeadfeederRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceLeadfeeder(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)...) +} diff --git a/internal/provider/source_leadfeeder_data_source_sdk.go b/internal/provider/source_leadfeeder_data_source_sdk.go new file mode 100644 index 000000000..6cd327d12 --- /dev/null +++ b/internal/provider/source_leadfeeder_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceLeadfeederDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_leadfeeder_resource.go b/internal/provider/source_leadfeeder_resource.go new file mode 100644 index 000000000..7ff8cf746 --- /dev/null +++ b/internal/provider/source_leadfeeder_resource.go @@ -0,0 +1,372 @@ +// 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/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/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 = &SourceLeadfeederResource{} +var _ resource.ResourceWithImportState = &SourceLeadfeederResource{} + +func NewSourceLeadfeederResource() resource.Resource { + return &SourceLeadfeederResource{} +} + +// SourceLeadfeederResource defines the resource implementation. +type SourceLeadfeederResource struct { + client *sdk.SDK +} + +// SourceLeadfeederResourceModel describes the resource data model. +type SourceLeadfeederResourceModel struct { + Configuration tfTypes.SourceLeadfeeder `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 *SourceLeadfeederResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_leadfeeder" +} + +func (r *SourceLeadfeederResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceLeadfeeder 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{ + "api_token": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + }, + }, + "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 *SourceLeadfeederResource) 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 *SourceLeadfeederResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceLeadfeederResourceModel + 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.ToSharedSourceLeadfeederCreateRequest() + res, err := r.client.Sources.CreateSourceLeadfeeder(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.GetSourceLeadfeederRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceLeadfeeder(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 *SourceLeadfeederResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceLeadfeederResourceModel + 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.GetSourceLeadfeederRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceLeadfeeder(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 *SourceLeadfeederResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceLeadfeederResourceModel + 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 + } + + sourceLeadfeederPutRequest := data.ToSharedSourceLeadfeederPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceLeadfeederRequest{ + SourceLeadfeederPutRequest: sourceLeadfeederPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceLeadfeeder(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.GetSourceLeadfeederRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceLeadfeeder(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 *SourceLeadfeederResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceLeadfeederResourceModel + 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.DeleteSourceLeadfeederRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceLeadfeeder(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 *SourceLeadfeederResource) 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_leadfeeder_resource_sdk.go b/internal/provider/source_leadfeeder_resource_sdk.go new file mode 100644 index 000000000..0251baf76 --- /dev/null +++ b/internal/provider/source_leadfeeder_resource_sdk.go @@ -0,0 +1,66 @@ +// 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" + "time" +) + +func (r *SourceLeadfeederResourceModel) ToSharedSourceLeadfeederCreateRequest() *shared.SourceLeadfeederCreateRequest { + apiToken := r.Configuration.APIToken.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceLeadfeeder{ + APIToken: apiToken, + StartDate: startDate, + } + 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.SourceLeadfeederCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceLeadfeederResourceModel) 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 *SourceLeadfeederResourceModel) ToSharedSourceLeadfeederPutRequest() *shared.SourceLeadfeederPutRequest { + apiToken := r.Configuration.APIToken.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceLeadfeederUpdate{ + APIToken: apiToken, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceLeadfeederPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_leverhiring_resource.go b/internal/provider/source_leverhiring_resource.go index 04048fd54..239b4f603 100644 --- a/internal/provider/source_leverhiring_resource.go +++ b/internal/provider/source_leverhiring_resource.go @@ -89,6 +89,7 @@ func (r *SourceLeverHiringResource) Schema(ctx context.Context, req resource.Sch }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client Secret of your Lever Hiring developer application.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_linkedinads_resource.go b/internal/provider/source_linkedinads_resource.go index 2b9d62982..5e5c5f272 100644 --- a/internal/provider/source_linkedinads_resource.go +++ b/internal/provider/source_linkedinads_resource.go @@ -141,10 +141,12 @@ func (r *SourceLinkedinAdsResource) Schema(ctx context.Context, req resource.Sch Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client ID of your developer application. Refer to our documentation for more information.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client secret of your developer application. Refer to our documentation for more information.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_linkedinpages_resource.go b/internal/provider/source_linkedinpages_resource.go index 0a1011a4f..fe84865ba 100644 --- a/internal/provider/source_linkedinpages_resource.go +++ b/internal/provider/source_linkedinpages_resource.go @@ -85,10 +85,12 @@ func (r *SourceLinkedinPagesResource) Schema(ctx context.Context, req resource.S Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client ID of the LinkedIn developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client secret of the LinkedIn developer application.`, }, "refresh_token": schema.StringAttribute{ @@ -110,6 +112,7 @@ func (r *SourceLinkedinPagesResource) Schema(ctx context.Context, req resource.S }, "org_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Specify the Organization ID`, }, "start_date": schema.StringAttribute{ diff --git a/internal/provider/source_linnworks_resource.go b/internal/provider/source_linnworks_resource.go index 768c74a09..71b5c0ded 100644 --- a/internal/provider/source_linnworks_resource.go +++ b/internal/provider/source_linnworks_resource.go @@ -65,6 +65,7 @@ func (r *SourceLinnworksResource) Schema(ctx context.Context, req resource.Schem }, "application_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Linnworks Application Secret`, }, "start_date": schema.StringAttribute{ diff --git a/internal/provider/source_looker_data_source.go b/internal/provider/source_looker_data_source.go new file mode 100644 index 000000000..29149da7e --- /dev/null +++ b/internal/provider/source_looker_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceLookerDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceLookerDataSource{} + +func NewSourceLookerDataSource() datasource.DataSource { + return &SourceLookerDataSource{} +} + +// SourceLookerDataSource is the data source implementation. +type SourceLookerDataSource struct { + client *sdk.SDK +} + +// SourceLookerDataSourceModel describes the data model. +type SourceLookerDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceLookerDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_looker" +} + +// Schema defines the schema for the data source. +func (r *SourceLookerDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceLooker DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceLookerDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceLookerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceLookerDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceLookerRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceLooker(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)...) +} diff --git a/internal/provider/source_looker_data_source_sdk.go b/internal/provider/source_looker_data_source_sdk.go new file mode 100644 index 000000000..dbc959d83 --- /dev/null +++ b/internal/provider/source_looker_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceLookerDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_looker_resource.go b/internal/provider/source_looker_resource.go new file mode 100644 index 000000000..da777bde4 --- /dev/null +++ b/internal/provider/source_looker_resource.go @@ -0,0 +1,378 @@ +// 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 = &SourceLookerResource{} +var _ resource.ResourceWithImportState = &SourceLookerResource{} + +func NewSourceLookerResource() resource.Resource { + return &SourceLookerResource{} +} + +// SourceLookerResource defines the resource implementation. +type SourceLookerResource struct { + client *sdk.SDK +} + +// SourceLookerResourceModel describes the resource data model. +type SourceLookerResourceModel struct { + Configuration tfTypes.SourceLooker `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 *SourceLookerResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_looker" +} + +func (r *SourceLookerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceLooker 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, + Description: `The Client ID is first part of an API3 key that is specific to each Looker user. See the docs for more information on how to generate this key.`, + }, + "client_secret": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `The Client Secret is second part of an API3 key.`, + }, + "domain": schema.StringAttribute{ + Required: true, + Description: `Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address`, + }, + "run_look_ids": schema.ListAttribute{ + Optional: true, + ElementType: types.StringType, + Description: `The IDs of any Looks to run`, + }, + }, + }, + "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 *SourceLookerResource) 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 *SourceLookerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceLookerResourceModel + 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.ToSharedSourceLookerCreateRequest() + res, err := r.client.Sources.CreateSourceLooker(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.GetSourceLookerRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceLooker(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 *SourceLookerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceLookerResourceModel + 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.GetSourceLookerRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceLooker(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 *SourceLookerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceLookerResourceModel + 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 + } + + sourceLookerPutRequest := data.ToSharedSourceLookerPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceLookerRequest{ + SourceLookerPutRequest: sourceLookerPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceLooker(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.GetSourceLookerRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceLooker(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 *SourceLookerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceLookerResourceModel + 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.DeleteSourceLookerRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceLooker(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 *SourceLookerResource) 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_looker_resource_sdk.go b/internal/provider/source_looker_resource_sdk.go new file mode 100644 index 000000000..c33b13d5b --- /dev/null +++ b/internal/provider/source_looker_resource_sdk.go @@ -0,0 +1,79 @@ +// 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 *SourceLookerResourceModel) ToSharedSourceLookerCreateRequest() *shared.SourceLookerCreateRequest { + clientID := r.Configuration.ClientID.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + domain := r.Configuration.Domain.ValueString() + var runLookIds []string = []string{} + for _, runLookIdsItem := range r.Configuration.RunLookIds { + runLookIds = append(runLookIds, runLookIdsItem.ValueString()) + } + configuration := shared.SourceLooker{ + ClientID: clientID, + ClientSecret: clientSecret, + Domain: domain, + RunLookIds: runLookIds, + } + 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.SourceLookerCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceLookerResourceModel) 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 *SourceLookerResourceModel) ToSharedSourceLookerPutRequest() *shared.SourceLookerPutRequest { + clientID := r.Configuration.ClientID.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + domain := r.Configuration.Domain.ValueString() + var runLookIds []string = []string{} + for _, runLookIdsItem := range r.Configuration.RunLookIds { + runLookIds = append(runLookIds, runLookIdsItem.ValueString()) + } + configuration := shared.SourceLookerUpdate{ + ClientID: clientID, + ClientSecret: clientSecret, + Domain: domain, + RunLookIds: runLookIds, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceLookerPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_luma_data_source.go b/internal/provider/source_luma_data_source.go new file mode 100644 index 000000000..6d816d627 --- /dev/null +++ b/internal/provider/source_luma_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceLumaDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceLumaDataSource{} + +func NewSourceLumaDataSource() datasource.DataSource { + return &SourceLumaDataSource{} +} + +// SourceLumaDataSource is the data source implementation. +type SourceLumaDataSource struct { + client *sdk.SDK +} + +// SourceLumaDataSourceModel describes the data model. +type SourceLumaDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceLumaDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_luma" +} + +// Schema defines the schema for the data source. +func (r *SourceLumaDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceLuma DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceLumaDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceLumaDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceLumaDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceLumaRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceLuma(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)...) +} diff --git a/internal/provider/source_luma_data_source_sdk.go b/internal/provider/source_luma_data_source_sdk.go new file mode 100644 index 000000000..30e4f54c7 --- /dev/null +++ b/internal/provider/source_luma_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceLumaDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_luma_resource.go b/internal/provider/source_luma_resource.go new file mode 100644 index 000000000..190d79be7 --- /dev/null +++ b/internal/provider/source_luma_resource.go @@ -0,0 +1,365 @@ +// 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 = &SourceLumaResource{} +var _ resource.ResourceWithImportState = &SourceLumaResource{} + +func NewSourceLumaResource() resource.Resource { + return &SourceLumaResource{} +} + +// SourceLumaResource defines the resource implementation. +type SourceLumaResource struct { + client *sdk.SDK +} + +// SourceLumaResourceModel describes the resource data model. +type SourceLumaResourceModel struct { + Configuration tfTypes.APIKeyAuth `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 *SourceLumaResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_luma" +} + +func (r *SourceLumaResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceLuma 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{ + "api_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `Get your API key on lu.ma Calendars dashboard → Settings.`, + }, + }, + }, + "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 *SourceLumaResource) 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 *SourceLumaResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceLumaResourceModel + 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.ToSharedSourceLumaCreateRequest() + res, err := r.client.Sources.CreateSourceLuma(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.GetSourceLumaRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceLuma(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 *SourceLumaResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceLumaResourceModel + 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.GetSourceLumaRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceLuma(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 *SourceLumaResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceLumaResourceModel + 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 + } + + sourceLumaPutRequest := data.ToSharedSourceLumaPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceLumaRequest{ + SourceLumaPutRequest: sourceLumaPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceLuma(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.GetSourceLumaRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceLuma(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 *SourceLumaResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceLumaResourceModel + 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.DeleteSourceLumaRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceLuma(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 *SourceLumaResource) 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_luma_resource_sdk.go b/internal/provider/source_luma_resource_sdk.go new file mode 100644 index 000000000..1a493bf42 --- /dev/null +++ b/internal/provider/source_luma_resource_sdk.go @@ -0,0 +1,61 @@ +// 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 *SourceLumaResourceModel) ToSharedSourceLumaCreateRequest() *shared.SourceLumaCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + configuration := shared.SourceLuma{ + APIKey: apiKey, + } + 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.SourceLumaCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceLumaResourceModel) 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 *SourceLumaResourceModel) ToSharedSourceLumaPutRequest() *shared.SourceLumaPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + configuration := shared.SourceLumaUpdate{ + APIKey: apiKey, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceLumaPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_mailchimp_resource.go b/internal/provider/source_mailchimp_resource.go index e3d57e97b..be2bea13b 100644 --- a/internal/provider/source_mailchimp_resource.go +++ b/internal/provider/source_mailchimp_resource.go @@ -88,10 +88,12 @@ func (r *SourceMailchimpResource) Schema(ctx context.Context, req resource.Schem }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client ID of your OAuth application.`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client Secret of your OAuth application.`, }, }, diff --git a/internal/provider/source_marketo_resource.go b/internal/provider/source_marketo_resource.go index df61f4ce2..b07ddf97c 100644 --- a/internal/provider/source_marketo_resource.go +++ b/internal/provider/source_marketo_resource.go @@ -61,14 +61,17 @@ func (r *SourceMarketoResource) Schema(ctx context.Context, req resource.SchemaR Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your Marketo developer application. See the docs for info on how to obtain this.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Marketo developer application. See the docs for info on how to obtain this.`, }, "domain_url": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Your Marketo Base URL. See the docs for info on how to obtain this.`, }, "start_date": schema.StringAttribute{ diff --git a/internal/provider/source_metabase_resource.go b/internal/provider/source_metabase_resource.go index e3367a630..0560f02de 100644 --- a/internal/provider/source_metabase_resource.go +++ b/internal/provider/source_metabase_resource.go @@ -76,7 +76,7 @@ func (r *SourceMetabaseResource) Schema(ctx context.Context, req resource.Schema `Note that by default, sessions are good for 14 days and needs to be regenerated.`, }, "username": schema.StringAttribute{ - Optional: true, + Required: true, }, }, }, diff --git a/internal/provider/source_metabase_resource_sdk.go b/internal/provider/source_metabase_resource_sdk.go index 3741f0698..2a2e0ec7f 100644 --- a/internal/provider/source_metabase_resource_sdk.go +++ b/internal/provider/source_metabase_resource_sdk.go @@ -21,12 +21,7 @@ func (r *SourceMetabaseResourceModel) ToSharedSourceMetabaseCreateRequest() *sha } else { sessionToken = nil } - username := new(string) - if !r.Configuration.Username.IsUnknown() && !r.Configuration.Username.IsNull() { - *username = r.Configuration.Username.ValueString() - } else { - username = nil - } + username := r.Configuration.Username.ValueString() configuration := shared.SourceMetabase{ InstanceAPIURL: instanceAPIURL, Password: password, @@ -80,12 +75,7 @@ func (r *SourceMetabaseResourceModel) ToSharedSourceMetabasePutRequest() *shared } else { sessionToken = nil } - username := new(string) - if !r.Configuration.Username.IsUnknown() && !r.Configuration.Username.IsNull() { - *username = r.Configuration.Username.ValueString() - } else { - username = nil - } + username := r.Configuration.Username.ValueString() configuration := shared.SourceMetabaseUpdate{ InstanceAPIURL: instanceAPIURL, Password: password, diff --git a/internal/provider/source_microsoftonedrive_resource.go b/internal/provider/source_microsoftonedrive_resource.go index 868c377b2..f28fe5e2e 100644 --- a/internal/provider/source_microsoftonedrive_resource.go +++ b/internal/provider/source_microsoftonedrive_resource.go @@ -73,10 +73,12 @@ func (r *SourceMicrosoftOnedriveResource) Schema(ctx context.Context, req resour Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client ID of your Microsoft developer application`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client Secret of your Microsoft developer application`, }, "refresh_token": schema.StringAttribute{ @@ -86,6 +88,7 @@ func (r *SourceMicrosoftOnedriveResource) Schema(ctx context.Context, req resour }, "tenant_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Tenant ID of the Microsoft OneDrive user`, }, }, @@ -102,18 +105,22 @@ func (r *SourceMicrosoftOnedriveResource) Schema(ctx context.Context, req resour Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client ID of your Microsoft developer application`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client Secret of your Microsoft developer application`, }, "tenant_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Tenant ID of the Microsoft OneDrive user`, }, "user_principal_name": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls`, }, }, @@ -189,9 +196,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,13 +330,44 @@ 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"), }...), }, }, - "document_file_type_format_experimental": schema.SingleNestedAttribute{ + "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{ Optional: true, Attributes: map[string]schema.Attribute{ "processing": schema.SingleNestedAttribute{ @@ -377,37 +415,6 @@ 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{ @@ -429,7 +436,6 @@ func (r *SourceMicrosoftOnedriveResource) Schema(ctx context.Context, req resour }, "primary_key": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key.`, }, "schemaless": schema.BoolAttribute{ diff --git a/internal/provider/source_microsoftonedrive_resource_sdk.go b/internal/provider/source_microsoftonedrive_resource_sdk.go index c5e51a870..6ca5bf497 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 sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental *shared.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental - if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { + var sourceMicrosoftOnedriveUnstructuredDocumentFormat *shared.SourceMicrosoftOnedriveUnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { var processing *shared.SourceMicrosoftOnedriveProcessing - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { var sourceMicrosoftOnedriveLocal *shared.SourceMicrosoftOnedriveLocal - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { sourceMicrosoftOnedriveLocal = &shared.SourceMicrosoftOnedriveLocal{} } if sourceMicrosoftOnedriveLocal != nil { @@ -262,26 +262,26 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedriveCr } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceMicrosoftOnedriveParsingStrategy) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { - *strategy = shared.SourceMicrosoftOnedriveParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceMicrosoftOnedriveParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) } else { strategy = nil } - sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental = &shared.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental{ + sourceMicrosoftOnedriveUnstructuredDocumentFormat = &shared.SourceMicrosoftOnedriveUnstructuredDocumentFormat{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental != nil { + if sourceMicrosoftOnedriveUnstructuredDocumentFormat != nil { format = shared.SourceMicrosoftOnedriveFormat{ - SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental: sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental, + SourceMicrosoftOnedriveUnstructuredDocumentFormat: sourceMicrosoftOnedriveUnstructuredDocumentFormat, } } var globs []string = []string{} @@ -604,12 +604,12 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedrivePu SourceMicrosoftOnedriveUpdateParquetFormat: sourceMicrosoftOnedriveUpdateParquetFormat, } } - var sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental *shared.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental - if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { + var sourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat *shared.SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { var processing *shared.SourceMicrosoftOnedriveUpdateProcessing - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { var sourceMicrosoftOnedriveUpdateLocal *shared.SourceMicrosoftOnedriveUpdateLocal - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { sourceMicrosoftOnedriveUpdateLocal = &shared.SourceMicrosoftOnedriveUpdateLocal{} } if sourceMicrosoftOnedriveUpdateLocal != nil { @@ -619,26 +619,26 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedrivePu } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceMicrosoftOnedriveUpdateParsingStrategy) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { - *strategy = shared.SourceMicrosoftOnedriveUpdateParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceMicrosoftOnedriveUpdateParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) } else { strategy = nil } - sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental = &shared.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental{ + sourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat = &shared.SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental != nil { + if sourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat != nil { format = shared.SourceMicrosoftOnedriveUpdateFormat{ - SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental: sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental, + SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat: sourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat, } } var globs []string = []string{} diff --git a/internal/provider/source_microsoftsharepoint_resource.go b/internal/provider/source_microsoftsharepoint_resource.go index d63a7e9af..942c8305a 100644 --- a/internal/provider/source_microsoftsharepoint_resource.go +++ b/internal/provider/source_microsoftsharepoint_resource.go @@ -73,10 +73,12 @@ func (r *SourceMicrosoftSharepointResource) Schema(ctx context.Context, req reso Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client ID of your Microsoft developer application`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client Secret of your Microsoft developer application`, }, "refresh_token": schema.StringAttribute{ @@ -86,6 +88,7 @@ func (r *SourceMicrosoftSharepointResource) Schema(ctx context.Context, req reso }, "tenant_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Tenant ID of the Microsoft SharePoint user`, }, }, @@ -102,18 +105,22 @@ func (r *SourceMicrosoftSharepointResource) Schema(ctx context.Context, req reso Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client ID of your Microsoft developer application`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Client Secret of your Microsoft developer application`, }, "tenant_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Tenant ID of the Microsoft SharePoint user`, }, "user_principal_name": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls`, }, }, @@ -183,9 +190,10 @@ 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("excel_format"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_format"), + path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, @@ -317,13 +325,60 @@ 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("excel_format"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + path.MatchRelative().AtParent().AtName("parquet_format"), + path.MatchRelative().AtParent().AtName("unstructured_document_format"), + }...), + }, + }, + "excel_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("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("excel_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("excel_format"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, - "document_file_type_format_experimental": schema.SingleNestedAttribute{ + "unstructured_document_format": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ "processing": schema.SingleNestedAttribute{ @@ -366,42 +421,12 @@ func (r *SourceMicrosoftSharepointResource) Schema(ctx context.Context, req reso objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("avro_format"), path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("excel_format"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_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("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{ @@ -423,9 +448,12 @@ func (r *SourceMicrosoftSharepointResource) Schema(ctx context.Context, req reso }, "primary_key": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key.`, }, + "recent_n_files_to_read_for_schema_discovery": schema.Int64Attribute{ + Optional: true, + Description: `The number of resent files which will be used to discover the schema for this stream.`, + }, "schemaless": schema.BoolAttribute{ Computed: true, Optional: true, diff --git a/internal/provider/source_microsoftsharepoint_resource_sdk.go b/internal/provider/source_microsoftsharepoint_resource_sdk.go index 8c4be197e..c3cad36a0 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 sourceMicrosoftSharepointDocumentFileTypeFormatExperimental *shared.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental - if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { + var sourceMicrosoftSharepointUnstructuredDocumentFormat *shared.SourceMicrosoftSharepointUnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { var processing *shared.SourceMicrosoftSharepointProcessing - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { var sourceMicrosoftSharepointLocal *shared.SourceMicrosoftSharepointLocal - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { sourceMicrosoftSharepointLocal = &shared.SourceMicrosoftSharepointLocal{} } if sourceMicrosoftSharepointLocal != nil { @@ -261,26 +261,35 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceMicrosoftSharepointParsingStrategy) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { - *strategy = shared.SourceMicrosoftSharepointParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceMicrosoftSharepointParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) } else { strategy = nil } - sourceMicrosoftSharepointDocumentFileTypeFormatExperimental = &shared.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental{ + sourceMicrosoftSharepointUnstructuredDocumentFormat = &shared.SourceMicrosoftSharepointUnstructuredDocumentFormat{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceMicrosoftSharepointDocumentFileTypeFormatExperimental != nil { + if sourceMicrosoftSharepointUnstructuredDocumentFormat != nil { format = shared.SourceMicrosoftSharepointFormat{ - SourceMicrosoftSharepointDocumentFileTypeFormatExperimental: sourceMicrosoftSharepointDocumentFileTypeFormatExperimental, + SourceMicrosoftSharepointUnstructuredDocumentFormat: sourceMicrosoftSharepointUnstructuredDocumentFormat, + } + } + var sourceMicrosoftSharepointExcelFormat *shared.SourceMicrosoftSharepointExcelFormat + if streamsItem.Format.ExcelFormat != nil { + sourceMicrosoftSharepointExcelFormat = &shared.SourceMicrosoftSharepointExcelFormat{} + } + if sourceMicrosoftSharepointExcelFormat != nil { + format = shared.SourceMicrosoftSharepointFormat{ + SourceMicrosoftSharepointExcelFormat: sourceMicrosoftSharepointExcelFormat, } } var globs []string = []string{} @@ -300,6 +309,12 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi } else { primaryKey = nil } + recentNFilesToReadForSchemaDiscovery := new(int64) + if !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsUnknown() && !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsNull() { + *recentNFilesToReadForSchemaDiscovery = streamsItem.RecentNFilesToReadForSchemaDiscovery.ValueInt64() + } else { + recentNFilesToReadForSchemaDiscovery = nil + } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -313,14 +328,15 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi validationPolicy = nil } streams = append(streams, shared.SourceMicrosoftSharepointFileBasedStreamConfig{ - DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format, - Globs: globs, - InputSchema: inputSchema, - Name: name, - PrimaryKey: primaryKey, - Schemaless: schemaless, - ValidationPolicy: validationPolicy, + DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, + Format: format, + Globs: globs, + InputSchema: inputSchema, + Name: name, + PrimaryKey: primaryKey, + RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, + Schemaless: schemaless, + ValidationPolicy: validationPolicy, }) } configuration := shared.SourceMicrosoftSharepoint{ @@ -601,12 +617,12 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi SourceMicrosoftSharepointUpdateParquetFormat: sourceMicrosoftSharepointUpdateParquetFormat, } } - var sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental *shared.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental - if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { + var sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat *shared.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { var processing *shared.SourceMicrosoftSharepointUpdateProcessing - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { var sourceMicrosoftSharepointUpdateLocal *shared.SourceMicrosoftSharepointUpdateLocal - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { sourceMicrosoftSharepointUpdateLocal = &shared.SourceMicrosoftSharepointUpdateLocal{} } if sourceMicrosoftSharepointUpdateLocal != nil { @@ -616,26 +632,35 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceMicrosoftSharepointUpdateParsingStrategy) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { - *strategy = shared.SourceMicrosoftSharepointUpdateParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceMicrosoftSharepointUpdateParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) } else { strategy = nil } - sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental = &shared.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental{ + sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat = &shared.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental != nil { + if sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat != nil { format = shared.SourceMicrosoftSharepointUpdateFormat{ - SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental: sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental, + SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat: sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat, + } + } + var sourceMicrosoftSharepointUpdateExcelFormat *shared.SourceMicrosoftSharepointUpdateExcelFormat + if streamsItem.Format.ExcelFormat != nil { + sourceMicrosoftSharepointUpdateExcelFormat = &shared.SourceMicrosoftSharepointUpdateExcelFormat{} + } + if sourceMicrosoftSharepointUpdateExcelFormat != nil { + format = shared.SourceMicrosoftSharepointUpdateFormat{ + SourceMicrosoftSharepointUpdateExcelFormat: sourceMicrosoftSharepointUpdateExcelFormat, } } var globs []string = []string{} @@ -655,6 +680,12 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi } else { primaryKey = nil } + recentNFilesToReadForSchemaDiscovery := new(int64) + if !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsUnknown() && !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsNull() { + *recentNFilesToReadForSchemaDiscovery = streamsItem.RecentNFilesToReadForSchemaDiscovery.ValueInt64() + } else { + recentNFilesToReadForSchemaDiscovery = nil + } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -668,14 +699,15 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi validationPolicy = nil } streams = append(streams, shared.SourceMicrosoftSharepointUpdateFileBasedStreamConfig{ - DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format, - Globs: globs, - InputSchema: inputSchema, - Name: name, - PrimaryKey: primaryKey, - Schemaless: schemaless, - ValidationPolicy: validationPolicy, + DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, + Format: format, + Globs: globs, + InputSchema: inputSchema, + Name: name, + PrimaryKey: primaryKey, + RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, + Schemaless: schemaless, + ValidationPolicy: validationPolicy, }) } configuration := shared.SourceMicrosoftSharepointUpdate{ diff --git a/internal/provider/source_microsoftteams_resource.go b/internal/provider/source_microsoftteams_resource.go index f9a2f2df3..6cb836d94 100644 --- a/internal/provider/source_microsoftteams_resource.go +++ b/internal/provider/source_microsoftteams_resource.go @@ -72,10 +72,12 @@ func (r *SourceMicrosoftTeamsResource) Schema(ctx context.Context, req resource. }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Microsoft Teams developer application.`, }, "tenant_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL`, }, }, @@ -94,6 +96,7 @@ func (r *SourceMicrosoftTeamsResource) Schema(ctx context.Context, req resource. }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Microsoft Teams developer application.`, }, "refresh_token": schema.StringAttribute{ @@ -103,6 +106,7 @@ func (r *SourceMicrosoftTeamsResource) Schema(ctx context.Context, req resource. }, "tenant_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL`, }, }, diff --git a/internal/provider/source_mixpanel_resource.go b/internal/provider/source_mixpanel_resource.go index 932b41b71..4fb9b9f71 100644 --- a/internal/provider/source_mixpanel_resource.go +++ b/internal/provider/source_mixpanel_resource.go @@ -78,6 +78,7 @@ func (r *SourceMixpanelResource) Schema(ctx context.Context, req resource.Schema Attributes: map[string]schema.Attribute{ "api_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Mixpanel project secret. See the docs for more information on how to obtain this.`, }, }, @@ -96,6 +97,7 @@ func (r *SourceMixpanelResource) Schema(ctx context.Context, req resource.Schema }, "secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Mixpanel Service Account Secret. See the docs for more information on how to obtain this.`, }, "username": schema.StringAttribute{ @@ -128,6 +130,12 @@ func (r *SourceMixpanelResource) Schema(ctx context.Context, req resource.Schema validators.IsRFC3339(), }, }, + "page_size": schema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(1000), + Description: `The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. Default: 1000`, + }, "project_timezone": schema.StringAttribute{ Computed: true, Optional: true, diff --git a/internal/provider/source_mixpanel_resource_sdk.go b/internal/provider/source_mixpanel_resource_sdk.go index 4a93840f3..858f8694e 100644 --- a/internal/provider/source_mixpanel_resource_sdk.go +++ b/internal/provider/source_mixpanel_resource_sdk.go @@ -56,6 +56,12 @@ func (r *SourceMixpanelResourceModel) ToSharedSourceMixpanelCreateRequest() *sha } else { endDate = nil } + pageSize := new(int64) + if !r.Configuration.PageSize.IsUnknown() && !r.Configuration.PageSize.IsNull() { + *pageSize = r.Configuration.PageSize.ValueInt64() + } else { + pageSize = nil + } projectTimezone := new(string) if !r.Configuration.ProjectTimezone.IsUnknown() && !r.Configuration.ProjectTimezone.IsNull() { *projectTimezone = r.Configuration.ProjectTimezone.ValueString() @@ -85,6 +91,7 @@ func (r *SourceMixpanelResourceModel) ToSharedSourceMixpanelCreateRequest() *sha Credentials: credentials, DateWindowSize: dateWindowSize, EndDate: endDate, + PageSize: pageSize, ProjectTimezone: projectTimezone, Region: region, SelectPropertiesByDefault: selectPropertiesByDefault, @@ -171,6 +178,12 @@ func (r *SourceMixpanelResourceModel) ToSharedSourceMixpanelPutRequest() *shared } else { endDate = nil } + pageSize := new(int64) + if !r.Configuration.PageSize.IsUnknown() && !r.Configuration.PageSize.IsNull() { + *pageSize = r.Configuration.PageSize.ValueInt64() + } else { + pageSize = nil + } projectTimezone := new(string) if !r.Configuration.ProjectTimezone.IsUnknown() && !r.Configuration.ProjectTimezone.IsNull() { *projectTimezone = r.Configuration.ProjectTimezone.ValueString() @@ -200,6 +213,7 @@ func (r *SourceMixpanelResourceModel) ToSharedSourceMixpanelPutRequest() *shared Credentials: credentials, DateWindowSize: dateWindowSize, EndDate: endDate, + PageSize: pageSize, ProjectTimezone: projectTimezone, Region: region, SelectPropertiesByDefault: selectPropertiesByDefault, diff --git a/internal/provider/source_monday_resource.go b/internal/provider/source_monday_resource.go index 82b6b0d53..fa1764543 100644 --- a/internal/provider/source_monday_resource.go +++ b/internal/provider/source_monday_resource.go @@ -89,10 +89,12 @@ func (r *SourceMondayResource) Schema(ctx context.Context, req resource.SchemaRe }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your OAuth application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your OAuth application.`, }, "subdomain": schema.StringAttribute{ diff --git a/internal/provider/source_mongodbinternalpoc_resource_sdk.go b/internal/provider/source_mongodbinternalpoc_resource_sdk.go deleted file mode 100644 index 912459842..000000000 --- a/internal/provider/source_mongodbinternalpoc_resource_sdk.go +++ /dev/null @@ -1,127 +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 *SourceMongodbInternalPocResourceModel) ToSharedSourceMongodbInternalPocCreateRequest() *shared.SourceMongodbInternalPocCreateRequest { - authSource := new(string) - if !r.Configuration.AuthSource.IsUnknown() && !r.Configuration.AuthSource.IsNull() { - *authSource = r.Configuration.AuthSource.ValueString() - } else { - authSource = nil - } - connectionString := new(string) - if !r.Configuration.ConnectionString.IsUnknown() && !r.Configuration.ConnectionString.IsNull() { - *connectionString = r.Configuration.ConnectionString.ValueString() - } else { - connectionString = nil - } - password := new(string) - if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { - *password = r.Configuration.Password.ValueString() - } else { - password = nil - } - replicaSet := new(string) - if !r.Configuration.ReplicaSet.IsUnknown() && !r.Configuration.ReplicaSet.IsNull() { - *replicaSet = r.Configuration.ReplicaSet.ValueString() - } else { - replicaSet = nil - } - user := new(string) - if !r.Configuration.User.IsUnknown() && !r.Configuration.User.IsNull() { - *user = r.Configuration.User.ValueString() - } else { - user = nil - } - configuration := shared.SourceMongodbInternalPoc{ - AuthSource: authSource, - ConnectionString: connectionString, - Password: password, - ReplicaSet: replicaSet, - User: user, - } - 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.SourceMongodbInternalPocCreateRequest{ - Configuration: configuration, - DefinitionID: definitionID, - Name: name, - SecretID: secretID, - WorkspaceID: workspaceID, - } - return &out -} - -func (r *SourceMongodbInternalPocResourceModel) 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 *SourceMongodbInternalPocResourceModel) ToSharedSourceMongodbInternalPocPutRequest() *shared.SourceMongodbInternalPocPutRequest { - authSource := new(string) - if !r.Configuration.AuthSource.IsUnknown() && !r.Configuration.AuthSource.IsNull() { - *authSource = r.Configuration.AuthSource.ValueString() - } else { - authSource = nil - } - connectionString := new(string) - if !r.Configuration.ConnectionString.IsUnknown() && !r.Configuration.ConnectionString.IsNull() { - *connectionString = r.Configuration.ConnectionString.ValueString() - } else { - connectionString = nil - } - password := new(string) - if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { - *password = r.Configuration.Password.ValueString() - } else { - password = nil - } - replicaSet := new(string) - if !r.Configuration.ReplicaSet.IsUnknown() && !r.Configuration.ReplicaSet.IsNull() { - *replicaSet = r.Configuration.ReplicaSet.ValueString() - } else { - replicaSet = nil - } - user := new(string) - if !r.Configuration.User.IsUnknown() && !r.Configuration.User.IsNull() { - *user = r.Configuration.User.ValueString() - } else { - user = nil - } - configuration := shared.SourceMongodbInternalPocUpdate{ - AuthSource: authSource, - ConnectionString: connectionString, - Password: password, - ReplicaSet: replicaSet, - User: user, - } - name := r.Name.ValueString() - workspaceID := r.WorkspaceID.ValueString() - out := shared.SourceMongodbInternalPocPutRequest{ - Configuration: configuration, - Name: name, - WorkspaceID: workspaceID, - } - return &out -} diff --git a/internal/provider/source_mongodbv2_resource.go b/internal/provider/source_mongodbv2_resource.go index 378d7785c..977404821 100644 --- a/internal/provider/source_mongodbv2_resource.go +++ b/internal/provider/source_mongodbv2_resource.go @@ -173,6 +173,12 @@ func (r *SourceMongodbV2Resource) Schema(ctx context.Context, req resource.Schem Default: int64default.StaticInt64(10000), Description: `The maximum number of documents to sample when attempting to discover the unique fields for a collection. Default: 10000`, }, + "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_mongodbv2_resource_sdk.go b/internal/provider/source_mongodbv2_resource_sdk.go index 7835c4753..8c9b907a9 100644 --- a/internal/provider/source_mongodbv2_resource_sdk.go +++ b/internal/provider/source_mongodbv2_resource_sdk.go @@ -100,6 +100,12 @@ func (r *SourceMongodbV2ResourceModel) ToSharedSourceMongodbV2CreateRequest() *s } else { discoverSampleSize = nil } + initialLoadTimeoutHours := new(int64) + if !r.Configuration.InitialLoadTimeoutHours.IsUnknown() && !r.Configuration.InitialLoadTimeoutHours.IsNull() { + *initialLoadTimeoutHours = r.Configuration.InitialLoadTimeoutHours.ValueInt64() + } else { + initialLoadTimeoutHours = nil + } initialWaitingSeconds := new(int64) if !r.Configuration.InitialWaitingSeconds.IsUnknown() && !r.Configuration.InitialWaitingSeconds.IsNull() { *initialWaitingSeconds = r.Configuration.InitialWaitingSeconds.ValueInt64() @@ -127,6 +133,7 @@ func (r *SourceMongodbV2ResourceModel) ToSharedSourceMongodbV2CreateRequest() *s configuration := shared.SourceMongodbV2{ DatabaseConfig: databaseConfig, DiscoverSampleSize: discoverSampleSize, + InitialLoadTimeoutHours: initialLoadTimeoutHours, InitialWaitingSeconds: initialWaitingSeconds, InvalidCdcCursorPositionBehavior: invalidCdcCursorPositionBehavior, QueueSize: queueSize, @@ -257,6 +264,12 @@ func (r *SourceMongodbV2ResourceModel) ToSharedSourceMongodbV2PutRequest() *shar } else { discoverSampleSize = nil } + initialLoadTimeoutHours := new(int64) + if !r.Configuration.InitialLoadTimeoutHours.IsUnknown() && !r.Configuration.InitialLoadTimeoutHours.IsNull() { + *initialLoadTimeoutHours = r.Configuration.InitialLoadTimeoutHours.ValueInt64() + } else { + initialLoadTimeoutHours = nil + } initialWaitingSeconds := new(int64) if !r.Configuration.InitialWaitingSeconds.IsUnknown() && !r.Configuration.InitialWaitingSeconds.IsNull() { *initialWaitingSeconds = r.Configuration.InitialWaitingSeconds.ValueInt64() @@ -284,6 +297,7 @@ func (r *SourceMongodbV2ResourceModel) ToSharedSourceMongodbV2PutRequest() *shar configuration := shared.SourceMongodbV2Update{ DatabaseConfig: databaseConfig, DiscoverSampleSize: discoverSampleSize, + InitialLoadTimeoutHours: initialLoadTimeoutHours, InitialWaitingSeconds: initialWaitingSeconds, InvalidCdcCursorPositionBehavior: invalidCdcCursorPositionBehavior, QueueSize: queueSize, diff --git a/internal/provider/source_mssql_resource.go b/internal/provider/source_mssql_resource.go index e3cd2aac8..ccf34068a 100644 --- a/internal/provider/source_mssql_resource.go +++ b/internal/provider/source_mssql_resource.go @@ -91,6 +91,12 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq "read_changes_using_change_data_capture_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, @@ -166,6 +172,7 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq Attributes: map[string]schema.Attribute{ "certificate": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `certificate of the server, or of the CA that signed the server certificate`, }, "host_name_in_certificate": schema.StringAttribute{ diff --git a/internal/provider/source_mssql_resource_sdk.go b/internal/provider/source_mssql_resource_sdk.go index b43aeeb15..6bf4b0aaf 100644 --- a/internal/provider/source_mssql_resource_sdk.go +++ b/internal/provider/source_mssql_resource_sdk.go @@ -22,6 +22,12 @@ func (r *SourceMssqlResourceModel) ToSharedSourceMssqlCreateRequest() *shared.So if r.Configuration.ReplicationMethod != nil { var sourceMssqlReadChangesUsingChangeDataCaptureCDC *shared.SourceMssqlReadChangesUsingChangeDataCaptureCDC if r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC != nil { + initialLoadTimeoutHours := new(int64) + if !r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialLoadTimeoutHours.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialLoadTimeoutHours.IsNull() { + *initialLoadTimeoutHours = r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialLoadTimeoutHours.ValueInt64() + } else { + initialLoadTimeoutHours = nil + } initialWaitingSeconds := new(int64) if !r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialWaitingSeconds.IsNull() { *initialWaitingSeconds = r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialWaitingSeconds.ValueInt64() @@ -41,6 +47,7 @@ func (r *SourceMssqlResourceModel) ToSharedSourceMssqlCreateRequest() *shared.So queueSize = nil } sourceMssqlReadChangesUsingChangeDataCaptureCDC = &shared.SourceMssqlReadChangesUsingChangeDataCaptureCDC{ + InitialLoadTimeoutHours: initialLoadTimeoutHours, InitialWaitingSeconds: initialWaitingSeconds, InvalidCdcCursorPositionBehavior: invalidCdcCursorPositionBehavior, QueueSize: queueSize, @@ -229,6 +236,12 @@ func (r *SourceMssqlResourceModel) ToSharedSourceMssqlPutRequest() *shared.Sourc if r.Configuration.ReplicationMethod != nil { var readChangesUsingChangeDataCaptureCDC *shared.ReadChangesUsingChangeDataCaptureCDC if r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC != nil { + initialLoadTimeoutHours := new(int64) + if !r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialLoadTimeoutHours.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialLoadTimeoutHours.IsNull() { + *initialLoadTimeoutHours = r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialLoadTimeoutHours.ValueInt64() + } else { + initialLoadTimeoutHours = nil + } initialWaitingSeconds := new(int64) if !r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialWaitingSeconds.IsNull() { *initialWaitingSeconds = r.Configuration.ReplicationMethod.ReadChangesUsingChangeDataCaptureCDC.InitialWaitingSeconds.ValueInt64() @@ -248,6 +261,7 @@ func (r *SourceMssqlResourceModel) ToSharedSourceMssqlPutRequest() *shared.Sourc queueSize = nil } readChangesUsingChangeDataCaptureCDC = &shared.ReadChangesUsingChangeDataCaptureCDC{ + InitialLoadTimeoutHours: initialLoadTimeoutHours, InitialWaitingSeconds: initialWaitingSeconds, InvalidCdcCursorPositionBehavior: invalidCdcCursorPositionBehavior, QueueSize: queueSize, diff --git a/internal/provider/source_mysql_resource.go b/internal/provider/source_mysql_resource.go index 14bb6def0..de026639b 100644 --- a/internal/provider/source_mysql_resource.go +++ b/internal/provider/source_mysql_resource.go @@ -92,6 +92,12 @@ 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, @@ -170,10 +176,12 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq Attributes: map[string]schema.Attribute{ "ca_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `CA certificate`, }, "client_certificate": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well)`, }, "client_key": schema.StringAttribute{ @@ -201,10 +209,12 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq Attributes: map[string]schema.Attribute{ "ca_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `CA certificate`, }, "client_certificate": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well)`, }, "client_key": schema.StringAttribute{ diff --git a/internal/provider/source_mysql_resource_sdk.go b/internal/provider/source_mysql_resource_sdk.go index d3ced347f..9137c9bd9 100644 --- a/internal/provider/source_mysql_resource_sdk.go +++ b/internal/provider/source_mysql_resource_sdk.go @@ -31,6 +31,12 @@ 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() @@ -50,6 +56,7 @@ func (r *SourceMysqlResourceModel) ToSharedSourceMysqlCreateRequest() *shared.So serverTimeZone = nil } sourceMysqlReadChangesUsingBinaryLogCDC = &shared.SourceMysqlReadChangesUsingBinaryLogCDC{ + InitialLoadTimeoutHours: initialLoadTimeoutHours, InitialWaitingSeconds: initialWaitingSeconds, InvalidCdcCursorPositionBehavior: invalidCdcCursorPositionBehavior, ServerTimeZone: serverTimeZone, @@ -283,6 +290,12 @@ 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() @@ -302,6 +315,7 @@ 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_netsuite_resource.go b/internal/provider/source_netsuite_resource.go index 195a6af77..08a355c50 100644 --- a/internal/provider/source_netsuite_resource.go +++ b/internal/provider/source_netsuite_resource.go @@ -65,6 +65,7 @@ func (r *SourceNetsuiteResource) Schema(ctx context.Context, req resource.Schema }, "consumer_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Consumer secret associated with your integration`, }, "object_types": schema.ListAttribute{ @@ -74,6 +75,7 @@ func (r *SourceNetsuiteResource) Schema(ctx context.Context, req resource.Schema }, "realm": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Netsuite realm e.g. 2344535, as for ` + "`" + `production` + "`" + ` or 2344535_SB1, as for the ` + "`" + `sandbox` + "`" + ``, }, "start_datetime": schema.StringAttribute{ diff --git a/internal/provider/source_mongodbinternalpoc_data_source.go b/internal/provider/source_northpasslms_data_source.go similarity index 70% rename from internal/provider/source_mongodbinternalpoc_data_source.go rename to internal/provider/source_northpasslms_data_source.go index 23120abad..a1f3cf85a 100644 --- a/internal/provider/source_mongodbinternalpoc_data_source.go +++ b/internal/provider/source_northpasslms_data_source.go @@ -14,20 +14,20 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ datasource.DataSource = &SourceMongodbInternalPocDataSource{} -var _ datasource.DataSourceWithConfigure = &SourceMongodbInternalPocDataSource{} +var _ datasource.DataSource = &SourceNorthpassLmsDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceNorthpassLmsDataSource{} -func NewSourceMongodbInternalPocDataSource() datasource.DataSource { - return &SourceMongodbInternalPocDataSource{} +func NewSourceNorthpassLmsDataSource() datasource.DataSource { + return &SourceNorthpassLmsDataSource{} } -// SourceMongodbInternalPocDataSource is the data source implementation. -type SourceMongodbInternalPocDataSource struct { +// SourceNorthpassLmsDataSource is the data source implementation. +type SourceNorthpassLmsDataSource struct { client *sdk.SDK } -// SourceMongodbInternalPocDataSourceModel describes the data model. -type SourceMongodbInternalPocDataSourceModel struct { +// SourceNorthpassLmsDataSourceModel describes the data model. +type SourceNorthpassLmsDataSourceModel struct { Configuration types.String `tfsdk:"configuration"` Name types.String `tfsdk:"name"` SourceID types.String `tfsdk:"source_id"` @@ -36,14 +36,14 @@ type SourceMongodbInternalPocDataSourceModel struct { } // Metadata returns the data source type name. -func (r *SourceMongodbInternalPocDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_mongodb_internal_poc" +func (r *SourceNorthpassLmsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_northpass_lms" } // Schema defines the schema for the data source. -func (r *SourceMongodbInternalPocDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { +func (r *SourceNorthpassLmsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceMongodbInternalPoc DataSource", + MarkdownDescription: "SourceNorthpassLms DataSource", Attributes: map[string]schema.Attribute{ "configuration": schema.StringAttribute{ @@ -66,7 +66,7 @@ func (r *SourceMongodbInternalPocDataSource) Schema(ctx context.Context, req dat } } -func (r *SourceMongodbInternalPocDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { +func (r *SourceNorthpassLmsDataSource) 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 *SourceMongodbInternalPocDataSource) Configure(ctx context.Context, req r.client = client } -func (r *SourceMongodbInternalPocDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data *SourceMongodbInternalPocDataSourceModel +func (r *SourceNorthpassLmsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceNorthpassLmsDataSourceModel var item types.Object resp.Diagnostics.Append(req.Config.Get(ctx, &item)...) @@ -105,10 +105,10 @@ func (r *SourceMongodbInternalPocDataSource) Read(ctx context.Context, req datas } sourceID := data.SourceID.ValueString() - request := operations.GetSourceMongodbInternalPocRequest{ + request := operations.GetSourceNorthpassLmsRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceMongodbInternalPoc(ctx, request) + res, err := r.client.Sources.GetSourceNorthpassLms(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_northpasslms_data_source_sdk.go b/internal/provider/source_northpasslms_data_source_sdk.go new file mode 100644 index 000000000..e714eb92e --- /dev/null +++ b/internal/provider/source_northpasslms_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceNorthpassLmsDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_northpasslms_resource.go b/internal/provider/source_northpasslms_resource.go new file mode 100644 index 000000000..2597819c2 --- /dev/null +++ b/internal/provider/source_northpasslms_resource.go @@ -0,0 +1,364 @@ +// 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 = &SourceNorthpassLmsResource{} +var _ resource.ResourceWithImportState = &SourceNorthpassLmsResource{} + +func NewSourceNorthpassLmsResource() resource.Resource { + return &SourceNorthpassLmsResource{} +} + +// SourceNorthpassLmsResource defines the resource implementation. +type SourceNorthpassLmsResource struct { + client *sdk.SDK +} + +// SourceNorthpassLmsResourceModel describes the resource data model. +type SourceNorthpassLmsResourceModel struct { + Configuration tfTypes.APIKeyAuth `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 *SourceNorthpassLmsResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_northpass_lms" +} + +func (r *SourceNorthpassLmsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceNorthpassLms 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{ + "api_key": schema.StringAttribute{ + Required: true, + Sensitive: 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 *SourceNorthpassLmsResource) 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 *SourceNorthpassLmsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceNorthpassLmsResourceModel + 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.ToSharedSourceNorthpassLmsCreateRequest() + res, err := r.client.Sources.CreateSourceNorthpassLms(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.GetSourceNorthpassLmsRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceNorthpassLms(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 *SourceNorthpassLmsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceNorthpassLmsResourceModel + 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.GetSourceNorthpassLmsRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceNorthpassLms(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 *SourceNorthpassLmsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceNorthpassLmsResourceModel + 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 + } + + sourceNorthpassLmsPutRequest := data.ToSharedSourceNorthpassLmsPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceNorthpassLmsRequest{ + SourceNorthpassLmsPutRequest: sourceNorthpassLmsPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceNorthpassLms(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.GetSourceNorthpassLmsRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceNorthpassLms(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 *SourceNorthpassLmsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceNorthpassLmsResourceModel + 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.DeleteSourceNorthpassLmsRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceNorthpassLms(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 *SourceNorthpassLmsResource) 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_northpasslms_resource_sdk.go b/internal/provider/source_northpasslms_resource_sdk.go new file mode 100644 index 000000000..dc18fe1e4 --- /dev/null +++ b/internal/provider/source_northpasslms_resource_sdk.go @@ -0,0 +1,61 @@ +// 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 *SourceNorthpassLmsResourceModel) ToSharedSourceNorthpassLmsCreateRequest() *shared.SourceNorthpassLmsCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + configuration := shared.SourceNorthpassLms{ + APIKey: apiKey, + } + 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.SourceNorthpassLmsCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceNorthpassLmsResourceModel) 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 *SourceNorthpassLmsResourceModel) ToSharedSourceNorthpassLmsPutRequest() *shared.SourceNorthpassLmsPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + configuration := shared.SourceNorthpassLmsUpdate{ + APIKey: apiKey, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceNorthpassLmsPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_notion_resource.go b/internal/provider/source_notion_resource.go index c138b24c5..b5ac78882 100644 --- a/internal/provider/source_notion_resource.go +++ b/internal/provider/source_notion_resource.go @@ -88,10 +88,12 @@ func (r *SourceNotionResource) Schema(ctx context.Context, req resource.SchemaRe }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your Notion integration. See our docs for more information.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Notion integration. See our docs for more information.`, }, }, diff --git a/internal/provider/source_nytimes_resource.go b/internal/provider/source_nytimes_resource.go index 208853b9e..ff7437cfb 100644 --- a/internal/provider/source_nytimes_resource.go +++ b/internal/provider/source_nytimes_resource.go @@ -10,7 +10,6 @@ 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" @@ -69,9 +68,6 @@ 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, @@ -98,9 +94,6 @@ 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 66a157143..d6dd58610 100644 --- a/internal/provider/source_nytimes_resource_sdk.go +++ b/internal/provider/source_nytimes_resource_sdk.go @@ -4,15 +4,14 @@ 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(customTypes.Date) + endDate := new(string) if !r.Configuration.EndDate.IsUnknown() && !r.Configuration.EndDate.IsNull() { - endDate = customTypes.MustNewDateFromString(r.Configuration.EndDate.ValueString()) + *endDate = r.Configuration.EndDate.ValueString() } else { endDate = nil } @@ -23,7 +22,7 @@ func (r *SourceNytimesResourceModel) ToSharedSourceNytimesCreateRequest() *share } else { shareType = nil } - startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) + startDate := r.Configuration.StartDate.ValueString() configuration := shared.SourceNytimes{ APIKey: apiKey, EndDate: endDate, @@ -66,9 +65,9 @@ func (r *SourceNytimesResourceModel) RefreshFromSharedSourceResponse(resp *share func (r *SourceNytimesResourceModel) ToSharedSourceNytimesPutRequest() *shared.SourceNytimesPutRequest { apiKey := r.Configuration.APIKey.ValueString() - endDate := new(customTypes.Date) + endDate := new(string) if !r.Configuration.EndDate.IsUnknown() && !r.Configuration.EndDate.IsNull() { - endDate = customTypes.MustNewDateFromString(r.Configuration.EndDate.ValueString()) + *endDate = r.Configuration.EndDate.ValueString() } else { endDate = nil } @@ -79,7 +78,7 @@ func (r *SourceNytimesResourceModel) ToSharedSourceNytimesPutRequest() *shared.S } else { shareType = nil } - startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) + startDate := r.Configuration.StartDate.ValueString() configuration := shared.SourceNytimesUpdate{ APIKey: apiKey, EndDate: endDate, diff --git a/internal/provider/source_okta_resource.go b/internal/provider/source_okta_resource.go index e8c311ed3..c57983e7b 100644 --- a/internal/provider/source_okta_resource.go +++ b/internal/provider/source_okta_resource.go @@ -74,6 +74,37 @@ func (r *SourceOktaResource) Schema(ctx context.Context, req resource.SchemaRequ }, Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("o_auth20_with_private_key"), + path.MatchRelative().AtParent().AtName("o_auth20"), + }...), + }, + }, + "o_auth20_with_private_key": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "client_id": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `The Client ID of your OAuth application.`, + }, + "key_id": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `The key ID (kid).`, + }, + "private_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `The private key in PEM format`, + }, + "scope": schema.StringAttribute{ + Required: true, + Description: `The OAuth scope.`, + }, + }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("api_token"), path.MatchRelative().AtParent().AtName("o_auth20"), }...), }, @@ -83,10 +114,12 @@ func (r *SourceOktaResource) Schema(ctx context.Context, req resource.SchemaRequ Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your OAuth application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your OAuth application.`, }, "refresh_token": schema.StringAttribute{ @@ -98,6 +131,7 @@ func (r *SourceOktaResource) Schema(ctx context.Context, req resource.SchemaRequ Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("api_token"), + path.MatchRelative().AtParent().AtName("o_auth20_with_private_key"), }...), }, }, @@ -108,6 +142,7 @@ func (r *SourceOktaResource) Schema(ctx context.Context, req resource.SchemaRequ }, "domain": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Okta domain. See the docs for instructions on how to find it.`, }, "start_date": schema.StringAttribute{ diff --git a/internal/provider/source_okta_resource_sdk.go b/internal/provider/source_okta_resource_sdk.go index 0f5263b91..2803eb0ee 100644 --- a/internal/provider/source_okta_resource_sdk.go +++ b/internal/provider/source_okta_resource_sdk.go @@ -27,6 +27,24 @@ func (r *SourceOktaResourceModel) ToSharedSourceOktaCreateRequest() *shared.Sour SourceOktaOAuth20: sourceOktaOAuth20, } } + var sourceOktaOAuth20WithPrivateKey *shared.SourceOktaOAuth20WithPrivateKey + if r.Configuration.Credentials.OAuth20WithPrivateKey != nil { + clientId1 := r.Configuration.Credentials.OAuth20WithPrivateKey.ClientID.ValueString() + keyID := r.Configuration.Credentials.OAuth20WithPrivateKey.KeyID.ValueString() + privateKey := r.Configuration.Credentials.OAuth20WithPrivateKey.PrivateKey.ValueString() + scope := r.Configuration.Credentials.OAuth20WithPrivateKey.Scope.ValueString() + sourceOktaOAuth20WithPrivateKey = &shared.SourceOktaOAuth20WithPrivateKey{ + ClientID: clientId1, + KeyID: keyID, + PrivateKey: privateKey, + Scope: scope, + } + } + if sourceOktaOAuth20WithPrivateKey != nil { + credentials = &shared.SourceOktaAuthorizationMethod{ + SourceOktaOAuth20WithPrivateKey: sourceOktaOAuth20WithPrivateKey, + } + } var sourceOktaAPIToken *shared.SourceOktaAPIToken if r.Configuration.Credentials.APIToken != nil { apiToken := r.Configuration.Credentials.APIToken.APIToken.ValueString() @@ -109,6 +127,24 @@ func (r *SourceOktaResourceModel) ToSharedSourceOktaPutRequest() *shared.SourceO SourceOktaUpdateOAuth20: sourceOktaUpdateOAuth20, } } + var oAuth20WithPrivateKey *shared.OAuth20WithPrivateKey + if r.Configuration.Credentials.OAuth20WithPrivateKey != nil { + clientId1 := r.Configuration.Credentials.OAuth20WithPrivateKey.ClientID.ValueString() + keyID := r.Configuration.Credentials.OAuth20WithPrivateKey.KeyID.ValueString() + privateKey := r.Configuration.Credentials.OAuth20WithPrivateKey.PrivateKey.ValueString() + scope := r.Configuration.Credentials.OAuth20WithPrivateKey.Scope.ValueString() + oAuth20WithPrivateKey = &shared.OAuth20WithPrivateKey{ + ClientID: clientId1, + KeyID: keyID, + PrivateKey: privateKey, + Scope: scope, + } + } + if oAuth20WithPrivateKey != nil { + credentials = &shared.SourceOktaUpdateAuthorizationMethod{ + OAuth20WithPrivateKey: oAuth20WithPrivateKey, + } + } var sourceOktaUpdateAPIToken *shared.SourceOktaUpdateAPIToken if r.Configuration.Credentials.APIToken != nil { apiToken := r.Configuration.Credentials.APIToken.APIToken.ValueString() diff --git a/internal/provider/source_onesignal_resource.go b/internal/provider/source_onesignal_resource.go index bfd9bd568..ba00a1382 100644 --- a/internal/provider/source_onesignal_resource.go +++ b/internal/provider/source_onesignal_resource.go @@ -68,7 +68,8 @@ func (r *SourceOnesignalResource) Schema(ctx context.Context, req resource.Schem Sensitive: true, }, "app_id": schema.StringAttribute{ - Required: true, + Required: true, + Sensitive: true, }, "app_name": schema.StringAttribute{ Optional: true, diff --git a/internal/provider/source_oracle_resource.go b/internal/provider/source_oracle_resource.go index 06bf12578..b9696fd60 100644 --- a/internal/provider/source_oracle_resource.go +++ b/internal/provider/source_oracle_resource.go @@ -133,6 +133,7 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe Attributes: map[string]schema.Attribute{ "ssl_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.`, }, }, diff --git a/internal/provider/source_orb_resource.go b/internal/provider/source_orb_resource.go index 2954a3cc3..cf8fd7568 100644 --- a/internal/provider/source_orb_resource.go +++ b/internal/provider/source_orb_resource.go @@ -10,12 +10,14 @@ 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" ) @@ -75,7 +77,6 @@ func (r *SourceOrbResource) Schema(ctx context.Context, req resource.SchemaReque }, "numeric_event_properties_keys": schema.ListAttribute{ Optional: true, - Sensitive: true, ElementType: types.StringType, Description: `Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction.`, }, @@ -86,16 +87,17 @@ 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, - Sensitive: true, ElementType: types.StringType, Description: `Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction.`, }, "subscription_usage_grouping_key": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `Property key name to group subscription usage by.`, }, }, diff --git a/internal/provider/source_orb_resource_sdk.go b/internal/provider/source_orb_resource_sdk.go index 46902ed09..b6dbe5069 100644 --- a/internal/provider/source_orb_resource_sdk.go +++ b/internal/provider/source_orb_resource_sdk.go @@ -5,6 +5,7 @@ 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 { @@ -31,7 +32,7 @@ func (r *SourceOrbResourceModel) ToSharedSourceOrbCreateRequest() *shared.Source } else { planID = nil } - startDate := r.Configuration.StartDate.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) var stringEventPropertiesKeys []string = []string{} for _, stringEventPropertiesKeysItem := range r.Configuration.StringEventPropertiesKeys { stringEventPropertiesKeys = append(stringEventPropertiesKeys, stringEventPropertiesKeysItem.ValueString()) @@ -109,7 +110,7 @@ func (r *SourceOrbResourceModel) ToSharedSourceOrbPutRequest() *shared.SourceOrb } else { planID = nil } - startDate := r.Configuration.StartDate.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, 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_outreach_resource.go b/internal/provider/source_outreach_resource.go index 43fcb2760..6ccfa8ccc 100644 --- a/internal/provider/source_outreach_resource.go +++ b/internal/provider/source_outreach_resource.go @@ -63,6 +63,7 @@ func (r *SourceOutreachResource) Schema(ctx context.Context, req resource.Schema }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Outreach developer application.`, }, "redirect_uri": schema.StringAttribute{ diff --git a/internal/provider/source_paypaltransaction_resource.go b/internal/provider/source_paypaltransaction_resource.go index 484b6fe5c..4b308cf56 100644 --- a/internal/provider/source_paypaltransaction_resource.go +++ b/internal/provider/source_paypaltransaction_resource.go @@ -63,10 +63,12 @@ func (r *SourcePaypalTransactionResource) Schema(ctx context.Context, req resour Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your Paypal developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Paypal developer application.`, }, "dispute_start_date": schema.StringAttribute{ diff --git a/internal/provider/source_pennylane_data_source.go b/internal/provider/source_pennylane_data_source.go new file mode 100644 index 000000000..d92531244 --- /dev/null +++ b/internal/provider/source_pennylane_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourcePennylaneDataSource{} +var _ datasource.DataSourceWithConfigure = &SourcePennylaneDataSource{} + +func NewSourcePennylaneDataSource() datasource.DataSource { + return &SourcePennylaneDataSource{} +} + +// SourcePennylaneDataSource is the data source implementation. +type SourcePennylaneDataSource struct { + client *sdk.SDK +} + +// SourcePennylaneDataSourceModel describes the data model. +type SourcePennylaneDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourcePennylaneDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_pennylane" +} + +// Schema defines the schema for the data source. +func (r *SourcePennylaneDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourcePennylane DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourcePennylaneDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourcePennylaneDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourcePennylaneDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourcePennylaneRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourcePennylane(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)...) +} diff --git a/internal/provider/source_pennylane_data_source_sdk.go b/internal/provider/source_pennylane_data_source_sdk.go new file mode 100644 index 000000000..08eba1b64 --- /dev/null +++ b/internal/provider/source_pennylane_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourcePennylaneDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_pennylane_resource.go b/internal/provider/source_pennylane_resource.go new file mode 100644 index 000000000..c0c8045eb --- /dev/null +++ b/internal/provider/source_pennylane_resource.go @@ -0,0 +1,372 @@ +// 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/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/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 = &SourcePennylaneResource{} +var _ resource.ResourceWithImportState = &SourcePennylaneResource{} + +func NewSourcePennylaneResource() resource.Resource { + return &SourcePennylaneResource{} +} + +// SourcePennylaneResource defines the resource implementation. +type SourcePennylaneResource struct { + client *sdk.SDK +} + +// SourcePennylaneResourceModel describes the resource data model. +type SourcePennylaneResourceModel struct { + Configuration tfTypes.SourcePennylane `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 *SourcePennylaneResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_pennylane" +} + +func (r *SourcePennylaneResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourcePennylane 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{ + "api_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "start_time": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + }, + }, + "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 *SourcePennylaneResource) 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 *SourcePennylaneResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourcePennylaneResourceModel + 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.ToSharedSourcePennylaneCreateRequest() + res, err := r.client.Sources.CreateSourcePennylane(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.GetSourcePennylaneRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourcePennylane(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 *SourcePennylaneResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourcePennylaneResourceModel + 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.GetSourcePennylaneRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourcePennylane(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 *SourcePennylaneResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourcePennylaneResourceModel + 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 + } + + sourcePennylanePutRequest := data.ToSharedSourcePennylanePutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourcePennylaneRequest{ + SourcePennylanePutRequest: sourcePennylanePutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourcePennylane(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.GetSourcePennylaneRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourcePennylane(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 *SourcePennylaneResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourcePennylaneResourceModel + 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.DeleteSourcePennylaneRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourcePennylane(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 *SourcePennylaneResource) 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_pennylane_resource_sdk.go b/internal/provider/source_pennylane_resource_sdk.go new file mode 100644 index 000000000..8c10025df --- /dev/null +++ b/internal/provider/source_pennylane_resource_sdk.go @@ -0,0 +1,66 @@ +// 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" + "time" +) + +func (r *SourcePennylaneResourceModel) ToSharedSourcePennylaneCreateRequest() *shared.SourcePennylaneCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + startTime, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartTime.ValueString()) + configuration := shared.SourcePennylane{ + APIKey: apiKey, + StartTime: startTime, + } + 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.SourcePennylaneCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourcePennylaneResourceModel) 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 *SourcePennylaneResourceModel) ToSharedSourcePennylanePutRequest() *shared.SourcePennylanePutRequest { + apiKey := r.Configuration.APIKey.ValueString() + startTime, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartTime.ValueString()) + configuration := shared.SourcePennylaneUpdate{ + APIKey: apiKey, + StartTime: startTime, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourcePennylanePutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_pinterest_resource.go b/internal/provider/source_pinterest_resource.go index 50ab8dd7a..084045b53 100644 --- a/internal/provider/source_pinterest_resource.go +++ b/internal/provider/source_pinterest_resource.go @@ -69,10 +69,12 @@ func (r *SourcePinterestResource) Schema(ctx context.Context, req resource.Schem Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your OAuth application`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your OAuth application.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_planhat_data_source.go b/internal/provider/source_planhat_data_source.go new file mode 100644 index 000000000..101a8e959 --- /dev/null +++ b/internal/provider/source_planhat_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourcePlanhatDataSource{} +var _ datasource.DataSourceWithConfigure = &SourcePlanhatDataSource{} + +func NewSourcePlanhatDataSource() datasource.DataSource { + return &SourcePlanhatDataSource{} +} + +// SourcePlanhatDataSource is the data source implementation. +type SourcePlanhatDataSource struct { + client *sdk.SDK +} + +// SourcePlanhatDataSourceModel describes the data model. +type SourcePlanhatDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourcePlanhatDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_planhat" +} + +// Schema defines the schema for the data source. +func (r *SourcePlanhatDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourcePlanhat DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourcePlanhatDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourcePlanhatDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourcePlanhatDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourcePlanhatRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourcePlanhat(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)...) +} diff --git a/internal/provider/source_planhat_data_source_sdk.go b/internal/provider/source_planhat_data_source_sdk.go new file mode 100644 index 000000000..af159e9da --- /dev/null +++ b/internal/provider/source_planhat_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourcePlanhatDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_punkapi_resource.go b/internal/provider/source_planhat_resource.go similarity index 81% rename from internal/provider/source_punkapi_resource.go rename to internal/provider/source_planhat_resource.go index 8f10d4452..94a6efd37 100644 --- a/internal/provider/source_punkapi_resource.go +++ b/internal/provider/source_planhat_resource.go @@ -20,21 +20,21 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ resource.Resource = &SourcePunkAPIResource{} -var _ resource.ResourceWithImportState = &SourcePunkAPIResource{} +var _ resource.Resource = &SourcePlanhatResource{} +var _ resource.ResourceWithImportState = &SourcePlanhatResource{} -func NewSourcePunkAPIResource() resource.Resource { - return &SourcePunkAPIResource{} +func NewSourcePlanhatResource() resource.Resource { + return &SourcePlanhatResource{} } -// SourcePunkAPIResource defines the resource implementation. -type SourcePunkAPIResource struct { +// SourcePlanhatResource defines the resource implementation. +type SourcePlanhatResource struct { client *sdk.SDK } -// SourcePunkAPIResourceModel describes the resource data model. -type SourcePunkAPIResourceModel struct { - Configuration tfTypes.SourcePunkAPI `tfsdk:"configuration"` +// SourcePlanhatResourceModel describes the resource data model. +type SourcePlanhatResourceModel struct { + Configuration tfTypes.SourceK6Cloud `tfsdk:"configuration"` DefinitionID types.String `tfsdk:"definition_id"` Name types.String `tfsdk:"name"` SecretID types.String `tfsdk:"secret_id"` @@ -43,13 +43,13 @@ type SourcePunkAPIResourceModel struct { WorkspaceID types.String `tfsdk:"workspace_id"` } -func (r *SourcePunkAPIResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_punk_api" +func (r *SourcePlanhatResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_planhat" } -func (r *SourcePunkAPIResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { +func (r *SourcePlanhatResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourcePunkAPI Resource", + MarkdownDescription: "SourcePlanhat Resource", Attributes: map[string]schema.Attribute{ "configuration": schema.SingleNestedAttribute{ PlanModifiers: []planmodifier.Object{ @@ -57,17 +57,10 @@ func (r *SourcePunkAPIResource) Schema(ctx context.Context, req resource.SchemaR }, Required: true, Attributes: map[string]schema.Attribute{ - "brewed_after": schema.StringAttribute{ + "api_token": schema.StringAttribute{ Required: true, - 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`, + Sensitive: true, + Description: `Your Planhat API Access Token`, }, }, }, @@ -114,7 +107,7 @@ func (r *SourcePunkAPIResource) Schema(ctx context.Context, req resource.SchemaR } } -func (r *SourcePunkAPIResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { +func (r *SourcePlanhatResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -134,8 +127,8 @@ func (r *SourcePunkAPIResource) Configure(ctx context.Context, req resource.Conf r.client = client } -func (r *SourcePunkAPIResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *SourcePunkAPIResourceModel +func (r *SourcePlanhatResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourcePlanhatResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -152,8 +145,8 @@ func (r *SourcePunkAPIResource) Create(ctx context.Context, req resource.CreateR return } - request := data.ToSharedSourcePunkAPICreateRequest() - res, err := r.client.Sources.CreateSourcePunkAPI(ctx, request) + request := data.ToSharedSourcePlanhatCreateRequest() + res, err := r.client.Sources.CreateSourcePlanhat(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -176,10 +169,10 @@ func (r *SourcePunkAPIResource) Create(ctx context.Context, req resource.CreateR data.RefreshFromSharedSourceResponse(res.SourceResponse) refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceID := data.SourceID.ValueString() - request1 := operations.GetSourcePunkAPIRequest{ + request1 := operations.GetSourcePlanhatRequest{ SourceID: sourceID, } - res1, err := r.client.Sources.GetSourcePunkAPI(ctx, request1) + res1, err := r.client.Sources.GetSourcePlanhat(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -206,8 +199,8 @@ func (r *SourcePunkAPIResource) Create(ctx context.Context, req resource.CreateR resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourcePunkAPIResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *SourcePunkAPIResourceModel +func (r *SourcePlanhatResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourcePlanhatResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -225,10 +218,10 @@ func (r *SourcePunkAPIResource) Read(ctx context.Context, req resource.ReadReque } sourceID := data.SourceID.ValueString() - request := operations.GetSourcePunkAPIRequest{ + request := operations.GetSourcePlanhatRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourcePunkAPI(ctx, request) + res, err := r.client.Sources.GetSourcePlanhat(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -258,8 +251,8 @@ func (r *SourcePunkAPIResource) Read(ctx context.Context, req resource.ReadReque resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourcePunkAPIResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *SourcePunkAPIResourceModel +func (r *SourcePlanhatResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourcePlanhatResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -272,13 +265,13 @@ func (r *SourcePunkAPIResource) Update(ctx context.Context, req resource.UpdateR return } - sourcePunkAPIPutRequest := data.ToSharedSourcePunkAPIPutRequest() + sourcePlanhatPutRequest := data.ToSharedSourcePlanhatPutRequest() sourceID := data.SourceID.ValueString() - request := operations.PutSourcePunkAPIRequest{ - SourcePunkAPIPutRequest: sourcePunkAPIPutRequest, + request := operations.PutSourcePlanhatRequest{ + SourcePlanhatPutRequest: sourcePlanhatPutRequest, SourceID: sourceID, } - res, err := r.client.Sources.PutSourcePunkAPI(ctx, request) + res, err := r.client.Sources.PutSourcePlanhat(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -296,10 +289,10 @@ func (r *SourcePunkAPIResource) Update(ctx context.Context, req resource.UpdateR } refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceId1 := data.SourceID.ValueString() - request1 := operations.GetSourcePunkAPIRequest{ + request1 := operations.GetSourcePlanhatRequest{ SourceID: sourceId1, } - res1, err := r.client.Sources.GetSourcePunkAPI(ctx, request1) + res1, err := r.client.Sources.GetSourcePlanhat(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -326,8 +319,8 @@ func (r *SourcePunkAPIResource) Update(ctx context.Context, req resource.UpdateR resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourcePunkAPIResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *SourcePunkAPIResourceModel +func (r *SourcePlanhatResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourcePlanhatResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -345,10 +338,10 @@ func (r *SourcePunkAPIResource) Delete(ctx context.Context, req resource.DeleteR } sourceID := data.SourceID.ValueString() - request := operations.DeleteSourcePunkAPIRequest{ + request := operations.DeleteSourcePlanhatRequest{ SourceID: sourceID, } - res, err := r.client.Sources.DeleteSourcePunkAPI(ctx, request) + res, err := r.client.Sources.DeleteSourcePlanhat(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -367,6 +360,6 @@ func (r *SourcePunkAPIResource) Delete(ctx context.Context, req resource.DeleteR } -func (r *SourcePunkAPIResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { +func (r *SourcePlanhatResource) 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_planhat_resource_sdk.go b/internal/provider/source_planhat_resource_sdk.go new file mode 100644 index 000000000..f8bc54d18 --- /dev/null +++ b/internal/provider/source_planhat_resource_sdk.go @@ -0,0 +1,61 @@ +// 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 *SourcePlanhatResourceModel) ToSharedSourcePlanhatCreateRequest() *shared.SourcePlanhatCreateRequest { + apiToken := r.Configuration.APIToken.ValueString() + configuration := shared.SourcePlanhat{ + APIToken: apiToken, + } + 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.SourcePlanhatCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourcePlanhatResourceModel) 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 *SourcePlanhatResourceModel) ToSharedSourcePlanhatPutRequest() *shared.SourcePlanhatPutRequest { + apiToken := r.Configuration.APIToken.ValueString() + configuration := shared.SourcePlanhatUpdate{ + APIToken: apiToken, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourcePlanhatPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_polygonstockapi_resource.go b/internal/provider/source_polygonstockapi_resource.go index f154ac594..ff3b1076a 100644 --- a/internal/provider/source_polygonstockapi_resource.go +++ b/internal/provider/source_polygonstockapi_resource.go @@ -65,6 +65,7 @@ func (r *SourcePolygonStockAPIResource) Schema(ctx context.Context, req resource }, "api_key": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Your API ACCESS Key`, }, "end_date": schema.StringAttribute{ diff --git a/internal/provider/source_postgres_resource.go b/internal/provider/source_postgres_resource.go index beb2a09d8..fab7a7ec5 100644 --- a/internal/provider/source_postgres_resource.go +++ b/internal/provider/source_postgres_resource.go @@ -115,13 +115,19 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema Computed: true, Optional: true, Default: stringdefault.StaticString(""), - Description: `Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the setup guide for how and when to configure this setting. Default: ""`, + Description: `Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the setup guide for how and when to configure this setting. Default: ""`, + }, + "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, Default: int64default.StaticInt64(1200), - Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about initial waiting time. Default: 1200`, + Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about initial waiting time. Default: 1200`, }, "invalid_cdc_cursor_position_behavior": schema.StringAttribute{ Computed: true, @@ -309,10 +315,12 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema }, "ca_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `CA certificate`, }, "client_certificate": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Client certificate`, }, "client_key": schema.StringAttribute{ @@ -349,10 +357,12 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema }, "ca_certificate": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `CA certificate`, }, "client_certificate": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Client certificate`, }, "client_key": schema.StringAttribute{ diff --git a/internal/provider/source_postgres_resource_sdk.go b/internal/provider/source_postgres_resource_sdk.go index 9e914fc44..1150c3b11 100644 --- a/internal/provider/source_postgres_resource_sdk.go +++ b/internal/provider/source_postgres_resource_sdk.go @@ -43,6 +43,12 @@ func (r *SourcePostgresResourceModel) ToSharedSourcePostgresCreateRequest() *sha } else { heartbeatActionQuery = nil } + initialLoadTimeoutHours := new(int64) + if !r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialLoadTimeoutHours.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialLoadTimeoutHours.IsNull() { + *initialLoadTimeoutHours = r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialLoadTimeoutHours.ValueInt64() + } else { + initialLoadTimeoutHours = nil + } initialWaitingSeconds := new(int64) if !r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.IsNull() { *initialWaitingSeconds = r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.ValueInt64() @@ -78,6 +84,7 @@ func (r *SourcePostgresResourceModel) ToSharedSourcePostgresCreateRequest() *sha sourcePostgresReadChangesUsingWriteAheadLogCDC = &shared.SourcePostgresReadChangesUsingWriteAheadLogCDC{ AdditionalProperties: additionalProperties, HeartbeatActionQuery: heartbeatActionQuery, + InitialLoadTimeoutHours: initialLoadTimeoutHours, InitialWaitingSeconds: initialWaitingSeconds, InvalidCdcCursorPositionBehavior: invalidCdcCursorPositionBehavior, LsnCommitBehaviour: lsnCommitBehaviour, @@ -393,6 +400,12 @@ func (r *SourcePostgresResourceModel) ToSharedSourcePostgresPutRequest() *shared } else { heartbeatActionQuery = nil } + initialLoadTimeoutHours := new(int64) + if !r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialLoadTimeoutHours.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialLoadTimeoutHours.IsNull() { + *initialLoadTimeoutHours = r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialLoadTimeoutHours.ValueInt64() + } else { + initialLoadTimeoutHours = nil + } initialWaitingSeconds := new(int64) if !r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.IsNull() { *initialWaitingSeconds = r.Configuration.ReplicationMethod.ReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.ValueInt64() @@ -428,6 +441,7 @@ func (r *SourcePostgresResourceModel) ToSharedSourcePostgresPutRequest() *shared readChangesUsingWriteAheadLogCDC = &shared.ReadChangesUsingWriteAheadLogCDC{ AdditionalProperties: additionalProperties, HeartbeatActionQuery: heartbeatActionQuery, + InitialLoadTimeoutHours: initialLoadTimeoutHours, InitialWaitingSeconds: initialWaitingSeconds, InvalidCdcCursorPositionBehavior: invalidCdcCursorPositionBehavior, LsnCommitBehaviour: lsnCommitBehaviour, diff --git a/internal/provider/source_postmarkapp_resource.go b/internal/provider/source_postmarkapp_resource.go index 20c43f50c..e285f9518 100644 --- a/internal/provider/source_postmarkapp_resource.go +++ b/internal/provider/source_postmarkapp_resource.go @@ -59,10 +59,12 @@ func (r *SourcePostmarkappResource) Schema(ctx context.Context, req resource.Sch Attributes: map[string]schema.Attribute{ "x_postmark_account_token": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `API Key for account`, }, "x_postmark_server_token": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `API Key for server`, }, }, diff --git a/internal/provider/source_reddit_data_source.go b/internal/provider/source_reddit_data_source.go new file mode 100644 index 000000000..95c33e554 --- /dev/null +++ b/internal/provider/source_reddit_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceRedditDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceRedditDataSource{} + +func NewSourceRedditDataSource() datasource.DataSource { + return &SourceRedditDataSource{} +} + +// SourceRedditDataSource is the data source implementation. +type SourceRedditDataSource struct { + client *sdk.SDK +} + +// SourceRedditDataSourceModel describes the data model. +type SourceRedditDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceRedditDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_reddit" +} + +// Schema defines the schema for the data source. +func (r *SourceRedditDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceReddit DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceRedditDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceRedditDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceRedditDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceRedditRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceReddit(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)...) +} diff --git a/internal/provider/source_reddit_data_source_sdk.go b/internal/provider/source_reddit_data_source_sdk.go new file mode 100644 index 000000000..4e137c9fd --- /dev/null +++ b/internal/provider/source_reddit_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceRedditDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_mongodbinternalpoc_resource.go b/internal/provider/source_reddit_resource.go similarity index 70% rename from internal/provider/source_mongodbinternalpoc_resource.go rename to internal/provider/source_reddit_resource.go index 862cdb40a..cd44638bf 100644 --- a/internal/provider/source_mongodbinternalpoc_resource.go +++ b/internal/provider/source_reddit_resource.go @@ -10,47 +10,51 @@ 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/listvalidator" "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/booldefault" "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 = &SourceMongodbInternalPocResource{} -var _ resource.ResourceWithImportState = &SourceMongodbInternalPocResource{} +var _ resource.Resource = &SourceRedditResource{} +var _ resource.ResourceWithImportState = &SourceRedditResource{} -func NewSourceMongodbInternalPocResource() resource.Resource { - return &SourceMongodbInternalPocResource{} +func NewSourceRedditResource() resource.Resource { + return &SourceRedditResource{} } -// SourceMongodbInternalPocResource defines the resource implementation. -type SourceMongodbInternalPocResource struct { +// SourceRedditResource defines the resource implementation. +type SourceRedditResource struct { client *sdk.SDK } -// SourceMongodbInternalPocResourceModel describes the resource data model. -type SourceMongodbInternalPocResourceModel struct { - Configuration tfTypes.SourceMongodbInternalPoc `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"` +// SourceRedditResourceModel describes the resource data model. +type SourceRedditResourceModel struct { + Configuration tfTypes.SourceReddit `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 *SourceMongodbInternalPocResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_mongodb_internal_poc" +func (r *SourceRedditResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_reddit" } -func (r *SourceMongodbInternalPocResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { +func (r *SourceRedditResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceMongodbInternalPoc Resource", + MarkdownDescription: "SourceReddit Resource", Attributes: map[string]schema.Attribute{ "configuration": schema.SingleNestedAttribute{ PlanModifiers: []planmodifier.Object{ @@ -58,28 +62,44 @@ func (r *SourceMongodbInternalPocResource) Schema(ctx context.Context, req resou }, Required: true, Attributes: map[string]schema.Attribute{ - "auth_source": schema.StringAttribute{ - Computed: true, + "api_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "exact": schema.BoolAttribute{ Optional: true, - Default: stringdefault.StaticString("admin"), - Description: `The authentication source where the user information is stored. Default: "admin"`, + Description: `Specifies exact keyword and reduces distractions`, }, - "connection_string": schema.StringAttribute{ + "include_over_18": schema.BoolAttribute{ + Computed: true, Optional: true, - Description: `The connection string of the database that you want to replicate..`, + Default: booldefault.StaticBool(false), + Description: `Includes mature content. Default: false`, }, - "password": schema.StringAttribute{ + "limit": schema.NumberAttribute{ + Computed: true, Optional: true, - Sensitive: true, - Description: `The password associated with this username.`, + Description: `Max records per page limit. Default: "1000"`, }, - "replica_set": schema.StringAttribute{ + "query": schema.StringAttribute{ + Computed: true, Optional: true, - Description: `The name of the replica set to be replicated.`, + Default: stringdefault.StaticString("airbyte"), + Description: `Specifies the query for searching in reddits and subreddits. Default: "airbyte"`, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, }, - "user": schema.StringAttribute{ + "subreddits": schema.ListAttribute{ Optional: true, - Description: `The username which is used to access the database.`, + ElementType: types.StringType, + Description: `Subreddits for exploration`, + Validators: []validator.List{ + listvalidator.ValueStringsAre(validators.IsValidJSON()), + }, }, }, }, @@ -126,7 +146,7 @@ func (r *SourceMongodbInternalPocResource) Schema(ctx context.Context, req resou } } -func (r *SourceMongodbInternalPocResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { +func (r *SourceRedditResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -146,8 +166,8 @@ func (r *SourceMongodbInternalPocResource) Configure(ctx context.Context, req re r.client = client } -func (r *SourceMongodbInternalPocResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *SourceMongodbInternalPocResourceModel +func (r *SourceRedditResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceRedditResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -164,8 +184,8 @@ func (r *SourceMongodbInternalPocResource) Create(ctx context.Context, req resou return } - request := data.ToSharedSourceMongodbInternalPocCreateRequest() - res, err := r.client.Sources.CreateSourceMongodbInternalPoc(ctx, request) + request := data.ToSharedSourceRedditCreateRequest() + res, err := r.client.Sources.CreateSourceReddit(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -188,10 +208,10 @@ func (r *SourceMongodbInternalPocResource) Create(ctx context.Context, req resou data.RefreshFromSharedSourceResponse(res.SourceResponse) refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceID := data.SourceID.ValueString() - request1 := operations.GetSourceMongodbInternalPocRequest{ + request1 := operations.GetSourceRedditRequest{ SourceID: sourceID, } - res1, err := r.client.Sources.GetSourceMongodbInternalPoc(ctx, request1) + res1, err := r.client.Sources.GetSourceReddit(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -218,8 +238,8 @@ func (r *SourceMongodbInternalPocResource) Create(ctx context.Context, req resou resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceMongodbInternalPocResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *SourceMongodbInternalPocResourceModel +func (r *SourceRedditResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceRedditResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -237,10 +257,10 @@ func (r *SourceMongodbInternalPocResource) Read(ctx context.Context, req resourc } sourceID := data.SourceID.ValueString() - request := operations.GetSourceMongodbInternalPocRequest{ + request := operations.GetSourceRedditRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceMongodbInternalPoc(ctx, request) + res, err := r.client.Sources.GetSourceReddit(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -270,8 +290,8 @@ func (r *SourceMongodbInternalPocResource) Read(ctx context.Context, req resourc resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceMongodbInternalPocResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *SourceMongodbInternalPocResourceModel +func (r *SourceRedditResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceRedditResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -284,13 +304,13 @@ func (r *SourceMongodbInternalPocResource) Update(ctx context.Context, req resou return } - sourceMongodbInternalPocPutRequest := data.ToSharedSourceMongodbInternalPocPutRequest() + sourceRedditPutRequest := data.ToSharedSourceRedditPutRequest() sourceID := data.SourceID.ValueString() - request := operations.PutSourceMongodbInternalPocRequest{ - SourceMongodbInternalPocPutRequest: sourceMongodbInternalPocPutRequest, - SourceID: sourceID, + request := operations.PutSourceRedditRequest{ + SourceRedditPutRequest: sourceRedditPutRequest, + SourceID: sourceID, } - res, err := r.client.Sources.PutSourceMongodbInternalPoc(ctx, request) + res, err := r.client.Sources.PutSourceReddit(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -308,10 +328,10 @@ func (r *SourceMongodbInternalPocResource) Update(ctx context.Context, req resou } refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceId1 := data.SourceID.ValueString() - request1 := operations.GetSourceMongodbInternalPocRequest{ + request1 := operations.GetSourceRedditRequest{ SourceID: sourceId1, } - res1, err := r.client.Sources.GetSourceMongodbInternalPoc(ctx, request1) + res1, err := r.client.Sources.GetSourceReddit(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -338,8 +358,8 @@ func (r *SourceMongodbInternalPocResource) Update(ctx context.Context, req resou resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceMongodbInternalPocResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *SourceMongodbInternalPocResourceModel +func (r *SourceRedditResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceRedditResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -357,10 +377,10 @@ func (r *SourceMongodbInternalPocResource) Delete(ctx context.Context, req resou } sourceID := data.SourceID.ValueString() - request := operations.DeleteSourceMongodbInternalPocRequest{ + request := operations.DeleteSourceRedditRequest{ SourceID: sourceID, } - res, err := r.client.Sources.DeleteSourceMongodbInternalPoc(ctx, request) + res, err := r.client.Sources.DeleteSourceReddit(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -379,6 +399,6 @@ func (r *SourceMongodbInternalPocResource) Delete(ctx context.Context, req resou } -func (r *SourceMongodbInternalPocResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { +func (r *SourceRedditResource) 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_reddit_resource_sdk.go b/internal/provider/source_reddit_resource_sdk.go new file mode 100644 index 000000000..bfcee9ae3 --- /dev/null +++ b/internal/provider/source_reddit_resource_sdk.go @@ -0,0 +1,137 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" + "time" +) + +func (r *SourceRedditResourceModel) ToSharedSourceRedditCreateRequest() *shared.SourceRedditCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + exact := new(bool) + if !r.Configuration.Exact.IsUnknown() && !r.Configuration.Exact.IsNull() { + *exact = r.Configuration.Exact.ValueBool() + } else { + exact = nil + } + includeOver18 := new(bool) + if !r.Configuration.IncludeOver18.IsUnknown() && !r.Configuration.IncludeOver18.IsNull() { + *includeOver18 = r.Configuration.IncludeOver18.ValueBool() + } else { + includeOver18 = nil + } + limit := new(float64) + if !r.Configuration.Limit.IsUnknown() && !r.Configuration.Limit.IsNull() { + *limit, _ = r.Configuration.Limit.ValueBigFloat().Float64() + } else { + limit = nil + } + query := new(string) + if !r.Configuration.Query.IsUnknown() && !r.Configuration.Query.IsNull() { + *query = r.Configuration.Query.ValueString() + } else { + query = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + var subreddits []interface{} = []interface{}{} + for _, subredditsItem := range r.Configuration.Subreddits { + var subredditsTmp interface{} + _ = json.Unmarshal([]byte(subredditsItem.ValueString()), &subredditsTmp) + subreddits = append(subreddits, subredditsTmp) + } + configuration := shared.SourceReddit{ + APIKey: apiKey, + Exact: exact, + IncludeOver18: includeOver18, + Limit: limit, + Query: query, + StartDate: startDate, + Subreddits: subreddits, + } + 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.SourceRedditCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceRedditResourceModel) 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 *SourceRedditResourceModel) ToSharedSourceRedditPutRequest() *shared.SourceRedditPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + exact := new(bool) + if !r.Configuration.Exact.IsUnknown() && !r.Configuration.Exact.IsNull() { + *exact = r.Configuration.Exact.ValueBool() + } else { + exact = nil + } + includeOver18 := new(bool) + if !r.Configuration.IncludeOver18.IsUnknown() && !r.Configuration.IncludeOver18.IsNull() { + *includeOver18 = r.Configuration.IncludeOver18.ValueBool() + } else { + includeOver18 = nil + } + limit := new(float64) + if !r.Configuration.Limit.IsUnknown() && !r.Configuration.Limit.IsNull() { + *limit, _ = r.Configuration.Limit.ValueBigFloat().Float64() + } else { + limit = nil + } + query := new(string) + if !r.Configuration.Query.IsUnknown() && !r.Configuration.Query.IsNull() { + *query = r.Configuration.Query.ValueString() + } else { + query = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + var subreddits []interface{} = []interface{}{} + for _, subredditsItem := range r.Configuration.Subreddits { + var subredditsTmp interface{} + _ = json.Unmarshal([]byte(subredditsItem.ValueString()), &subredditsTmp) + subreddits = append(subreddits, subredditsTmp) + } + configuration := shared.SourceRedditUpdate{ + APIKey: apiKey, + Exact: exact, + IncludeOver18: includeOver18, + Limit: limit, + Query: query, + StartDate: startDate, + Subreddits: subreddits, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceRedditPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_retently_resource.go b/internal/provider/source_retently_resource.go index d0a5b5a58..82607a824 100644 --- a/internal/provider/source_retently_resource.go +++ b/internal/provider/source_retently_resource.go @@ -79,6 +79,7 @@ func (r *SourceRetentlyResource) Schema(ctx context.Context, req resource.Schema }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Retently developer application.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_s3_resource.go b/internal/provider/source_s3_resource.go index 3a7261415..953c47c40 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,13 +489,44 @@ 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"), }...), }, }, - "document_file_type_format_experimental": schema.SingleNestedAttribute{ + "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{ Optional: true, Attributes: map[string]schema.Attribute{ "processing": schema.SingleNestedAttribute{ @@ -543,37 +574,6 @@ 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{ @@ -599,9 +599,12 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques }, "primary_key": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key.`, }, + "recent_n_files_to_read_for_schema_discovery": schema.Int64Attribute{ + Optional: true, + Description: `The number of resent files which will be used to discover the schema for this stream.`, + }, "schemaless": schema.BoolAttribute{ Computed: true, Optional: true, diff --git a/internal/provider/source_s3_resource_sdk.go b/internal/provider/source_s3_resource_sdk.go index 47dfcc087..7a0c1ae01 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 sourceS3DocumentFileTypeFormatExperimental *shared.SourceS3DocumentFileTypeFormatExperimental - if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { + var sourceS3UnstructuredDocumentFormat *shared.SourceS3UnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { var processing *shared.SourceS3Processing - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { var sourceS3Local *shared.SourceS3Local - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { + if streamsItem.Format.UnstructuredDocumentFormat.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.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceS3ParsingStrategy) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { - *strategy = shared.SourceS3ParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceS3ParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) } else { strategy = nil } - sourceS3DocumentFileTypeFormatExperimental = &shared.SourceS3DocumentFileTypeFormatExperimental{ + sourceS3UnstructuredDocumentFormat = &shared.SourceS3UnstructuredDocumentFormat{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceS3DocumentFileTypeFormatExperimental != nil { + if sourceS3UnstructuredDocumentFormat != nil { format1 = shared.SourceS3Format{ - SourceS3DocumentFileTypeFormatExperimental: sourceS3DocumentFileTypeFormatExperimental, + SourceS3UnstructuredDocumentFormat: sourceS3UnstructuredDocumentFormat, } } var globs []string = []string{} @@ -521,6 +521,12 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } else { primaryKey = nil } + recentNFilesToReadForSchemaDiscovery := new(int64) + if !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsUnknown() && !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsNull() { + *recentNFilesToReadForSchemaDiscovery = streamsItem.RecentNFilesToReadForSchemaDiscovery.ValueInt64() + } else { + recentNFilesToReadForSchemaDiscovery = nil + } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -534,15 +540,16 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 validationPolicy = nil } streams = append(streams, shared.SourceS3FileBasedStreamConfig{ - DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format1, - Globs: globs, - InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, - Name: name, - PrimaryKey: primaryKey, - Schemaless: schemaless, - ValidationPolicy: validationPolicy, + DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, + Format: format1, + Globs: globs, + InputSchema: inputSchema, + LegacyPrefix: legacyPrefix, + Name: name, + PrimaryKey: primaryKey, + RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, + Schemaless: schemaless, + ValidationPolicy: validationPolicy, }) } configuration := shared.SourceS3{ @@ -1046,12 +1053,12 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put SourceS3UpdateParquetFormat: sourceS3UpdateParquetFormat, } } - var sourceS3UpdateDocumentFileTypeFormatExperimental *shared.SourceS3UpdateDocumentFileTypeFormatExperimental - if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { + var sourceS3UpdateUnstructuredDocumentFormat *shared.SourceS3UpdateUnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { var processing *shared.SourceS3UpdateProcessing - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { var sourceS3UpdateLocal *shared.SourceS3UpdateLocal - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { sourceS3UpdateLocal = &shared.SourceS3UpdateLocal{} } if sourceS3UpdateLocal != nil { @@ -1061,26 +1068,26 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceS3UpdateParsingStrategy) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { - *strategy = shared.SourceS3UpdateParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceS3UpdateParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) } else { strategy = nil } - sourceS3UpdateDocumentFileTypeFormatExperimental = &shared.SourceS3UpdateDocumentFileTypeFormatExperimental{ + sourceS3UpdateUnstructuredDocumentFormat = &shared.SourceS3UpdateUnstructuredDocumentFormat{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceS3UpdateDocumentFileTypeFormatExperimental != nil { + if sourceS3UpdateUnstructuredDocumentFormat != nil { format1 = shared.SourceS3UpdateFormat{ - SourceS3UpdateDocumentFileTypeFormatExperimental: sourceS3UpdateDocumentFileTypeFormatExperimental, + SourceS3UpdateUnstructuredDocumentFormat: sourceS3UpdateUnstructuredDocumentFormat, } } var globs []string = []string{} @@ -1106,6 +1113,12 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } else { primaryKey = nil } + recentNFilesToReadForSchemaDiscovery := new(int64) + if !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsUnknown() && !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsNull() { + *recentNFilesToReadForSchemaDiscovery = streamsItem.RecentNFilesToReadForSchemaDiscovery.ValueInt64() + } else { + recentNFilesToReadForSchemaDiscovery = nil + } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -1119,15 +1132,16 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put validationPolicy = nil } streams = append(streams, shared.SourceS3UpdateFileBasedStreamConfig{ - DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format1, - Globs: globs, - InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, - Name: name, - PrimaryKey: primaryKey, - Schemaless: schemaless, - ValidationPolicy: validationPolicy, + DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, + Format: format1, + Globs: globs, + InputSchema: inputSchema, + LegacyPrefix: legacyPrefix, + Name: name, + PrimaryKey: primaryKey, + RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, + Schemaless: schemaless, + ValidationPolicy: validationPolicy, }) } configuration := shared.SourceS3Update{ diff --git a/internal/provider/source_salesforce_resource.go b/internal/provider/source_salesforce_resource.go index 0063ad5ea..6121f3871 100644 --- a/internal/provider/source_salesforce_resource.go +++ b/internal/provider/source_salesforce_resource.go @@ -68,6 +68,7 @@ func (r *SourceSalesforceResource) Schema(ctx context.Context, req resource.Sche }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Enter your Salesforce developer application's Client secret`, }, "force_use_bulk_api": schema.BoolAttribute{ diff --git a/internal/provider/source_salesloft_resource.go b/internal/provider/source_salesloft_resource.go index 7e95386ec..94b9bfa5f 100644 --- a/internal/provider/source_salesloft_resource.go +++ b/internal/provider/source_salesloft_resource.go @@ -92,6 +92,7 @@ func (r *SourceSalesloftResource) Schema(ctx context.Context, req resource.Schem }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Salesloft developer application.`, }, "refresh_token": schema.StringAttribute{ @@ -101,7 +102,6 @@ func (r *SourceSalesloftResource) Schema(ctx context.Context, req resource.Schem }, "token_expiry_date": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `The date-time when the access token should be refreshed.`, Validators: []validator.String{ validators.IsRFC3339(), diff --git a/internal/provider/source_savvycal_data_source.go b/internal/provider/source_savvycal_data_source.go new file mode 100644 index 000000000..9c7f5c518 --- /dev/null +++ b/internal/provider/source_savvycal_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceSavvycalDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceSavvycalDataSource{} + +func NewSourceSavvycalDataSource() datasource.DataSource { + return &SourceSavvycalDataSource{} +} + +// SourceSavvycalDataSource is the data source implementation. +type SourceSavvycalDataSource struct { + client *sdk.SDK +} + +// SourceSavvycalDataSourceModel describes the data model. +type SourceSavvycalDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceSavvycalDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_savvycal" +} + +// Schema defines the schema for the data source. +func (r *SourceSavvycalDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceSavvycal DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceSavvycalDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceSavvycalDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceSavvycalDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceSavvycalRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceSavvycal(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)...) +} diff --git a/internal/provider/source_savvycal_data_source_sdk.go b/internal/provider/source_savvycal_data_source_sdk.go new file mode 100644 index 000000000..54e2302d9 --- /dev/null +++ b/internal/provider/source_savvycal_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceSavvycalDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_savvycal_resource.go b/internal/provider/source_savvycal_resource.go new file mode 100644 index 000000000..29b77c85e --- /dev/null +++ b/internal/provider/source_savvycal_resource.go @@ -0,0 +1,365 @@ +// 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 = &SourceSavvycalResource{} +var _ resource.ResourceWithImportState = &SourceSavvycalResource{} + +func NewSourceSavvycalResource() resource.Resource { + return &SourceSavvycalResource{} +} + +// SourceSavvycalResource defines the resource implementation. +type SourceSavvycalResource struct { + client *sdk.SDK +} + +// SourceSavvycalResourceModel describes the resource data model. +type SourceSavvycalResourceModel struct { + Configuration tfTypes.APIKeyAuth `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 *SourceSavvycalResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_savvycal" +} + +func (r *SourceSavvycalResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceSavvycal 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{ + "api_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private key. https://savvycal.com/developers`, + }, + }, + }, + "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 *SourceSavvycalResource) 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 *SourceSavvycalResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceSavvycalResourceModel + 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.ToSharedSourceSavvycalCreateRequest() + res, err := r.client.Sources.CreateSourceSavvycal(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.GetSourceSavvycalRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceSavvycal(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 *SourceSavvycalResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceSavvycalResourceModel + 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.GetSourceSavvycalRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceSavvycal(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 *SourceSavvycalResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceSavvycalResourceModel + 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 + } + + sourceSavvycalPutRequest := data.ToSharedSourceSavvycalPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceSavvycalRequest{ + SourceSavvycalPutRequest: sourceSavvycalPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceSavvycal(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.GetSourceSavvycalRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceSavvycal(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 *SourceSavvycalResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceSavvycalResourceModel + 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.DeleteSourceSavvycalRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceSavvycal(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 *SourceSavvycalResource) 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_savvycal_resource_sdk.go b/internal/provider/source_savvycal_resource_sdk.go new file mode 100644 index 000000000..3c92f4510 --- /dev/null +++ b/internal/provider/source_savvycal_resource_sdk.go @@ -0,0 +1,61 @@ +// 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 *SourceSavvycalResourceModel) ToSharedSourceSavvycalCreateRequest() *shared.SourceSavvycalCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + configuration := shared.SourceSavvycal{ + APIKey: apiKey, + } + 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.SourceSavvycalCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceSavvycalResourceModel) 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 *SourceSavvycalResourceModel) ToSharedSourceSavvycalPutRequest() *shared.SourceSavvycalPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + configuration := shared.SourceSavvycalUpdate{ + APIKey: apiKey, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceSavvycalPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_scryfall_data_source.go b/internal/provider/source_scryfall_data_source.go new file mode 100644 index 000000000..2ff25d02f --- /dev/null +++ b/internal/provider/source_scryfall_data_source.go @@ -0,0 +1,139 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ datasource.DataSource = &SourceScryfallDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceScryfallDataSource{} + +func NewSourceScryfallDataSource() datasource.DataSource { + return &SourceScryfallDataSource{} +} + +// SourceScryfallDataSource is the data source implementation. +type SourceScryfallDataSource struct { + client *sdk.SDK +} + +// SourceScryfallDataSourceModel describes the data model. +type SourceScryfallDataSourceModel 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"` +} + +// Metadata returns the data source type name. +func (r *SourceScryfallDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_scryfall" +} + +// Schema defines the schema for the data source. +func (r *SourceScryfallDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceScryfall DataSource", + + Attributes: map[string]schema.Attribute{ + "configuration": schema.StringAttribute{ + Computed: true, + Description: `The values required to configure the source. Parsed as JSON.`, + }, + "name": schema.StringAttribute{ + Computed: true, + }, + "source_id": schema.StringAttribute{ + Required: true, + }, + "source_type": schema.StringAttribute{ + Computed: true, + }, + "workspace_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *SourceScryfallDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.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 DataSource 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 *SourceScryfallDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceScryfallDataSourceModel + var item types.Object + + resp.Diagnostics.Append(req.Config.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.GetSourceScryfallRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceScryfall(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)...) +} diff --git a/internal/provider/source_scryfall_data_source_sdk.go b/internal/provider/source_scryfall_data_source_sdk.go new file mode 100644 index 000000000..88cd4a992 --- /dev/null +++ b/internal/provider/source_scryfall_data_source_sdk.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "encoding/json" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceScryfallDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + configurationResult, _ := json.Marshal(resp.Configuration) + r.Configuration = types.StringValue(string(configurationResult)) + 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/source_scryfall_resource.go b/internal/provider/source_scryfall_resource.go new file mode 100644 index 000000000..8b202162c --- /dev/null +++ b/internal/provider/source_scryfall_resource.go @@ -0,0 +1,333 @@ +// 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 = &SourceScryfallResource{} +var _ resource.ResourceWithImportState = &SourceScryfallResource{} + +func NewSourceScryfallResource() resource.Resource { + return &SourceScryfallResource{} +} + +// SourceScryfallResource defines the resource implementation. +type SourceScryfallResource struct { + client *sdk.SDK +} + +// SourceScryfallResourceModel describes the resource data model. +type SourceScryfallResourceModel struct { + Configuration tfTypes.Fake `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 *SourceScryfallResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_scryfall" +} + +func (r *SourceScryfallResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceScryfall 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{}, + }, + "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 *SourceScryfallResource) 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 *SourceScryfallResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceScryfallResourceModel + 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.ToSharedSourceScryfallCreateRequest() + res, err := r.client.Sources.CreateSourceScryfall(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.GetSourceScryfallRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceScryfall(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 *SourceScryfallResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceScryfallResourceModel + 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.GetSourceScryfallRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceScryfall(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 *SourceScryfallResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceScryfallResourceModel + 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 + } + + sourceScryfallPutRequest := data.ToSharedSourceScryfallPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceScryfallRequest{ + SourceScryfallPutRequest: sourceScryfallPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceScryfall(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) + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *SourceScryfallResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceScryfallResourceModel + 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.DeleteSourceScryfallRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceScryfall(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 *SourceScryfallResource) 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_scryfall_resource_sdk.go b/internal/provider/source_scryfall_resource_sdk.go new file mode 100644 index 000000000..3258e9102 --- /dev/null +++ b/internal/provider/source_scryfall_resource_sdk.go @@ -0,0 +1,55 @@ +// 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 *SourceScryfallResourceModel) ToSharedSourceScryfallCreateRequest() *shared.SourceScryfallCreateRequest { + configuration := shared.SourceScryfall{} + 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.SourceScryfallCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceScryfallResourceModel) 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 *SourceScryfallResourceModel) ToSharedSourceScryfallPutRequest() *shared.SourceScryfallPutRequest { + configuration := shared.SourceScryfallUpdate{} + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceScryfallPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_sendgrid_resource.go b/internal/provider/source_sendgrid_resource.go index d76cc6cf1..2deb1558d 100644 --- a/internal/provider/source_sendgrid_resource.go +++ b/internal/provider/source_sendgrid_resource.go @@ -36,13 +36,13 @@ type SourceSendgridResource struct { // SourceSendgridResourceModel describes the resource data model. type SourceSendgridResourceModel struct { - Configuration tfTypes.SourceChartmogul `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"` + Configuration tfTypes.SourceCalendly `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 *SourceSendgridResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { diff --git a/internal/provider/source_sftpbulk_resource.go b/internal/provider/source_sftpbulk_resource.go index 4e907cb96..e3a7a0104 100644 --- a/internal/provider/source_sftpbulk_resource.go +++ b/internal/provider/source_sftpbulk_resource.go @@ -88,7 +88,6 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema Attributes: map[string]schema.Attribute{ "private_key": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `The Private key`, }, }, @@ -153,9 +152,10 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema 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("excel_format"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_format"), + path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, @@ -299,13 +299,60 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema 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("excel_format"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + path.MatchRelative().AtParent().AtName("parquet_format"), + path.MatchRelative().AtParent().AtName("unstructured_document_format"), + }...), + }, + }, + "excel_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("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("excel_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("excel_format"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, - "document_file_type_format_experimental": schema.SingleNestedAttribute{ + "unstructured_document_format": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ "processing": schema.SingleNestedAttribute{ @@ -393,42 +440,12 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("avro_format"), path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("excel_format"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_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("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{ @@ -454,9 +471,12 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema }, "primary_key": schema.StringAttribute{ Optional: true, - Sensitive: true, Description: `The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key.`, }, + "recent_n_files_to_read_for_schema_discovery": schema.Int64Attribute{ + Optional: true, + Description: `The number of resent files which will be used to discover the schema for this stream.`, + }, "schemaless": schema.BoolAttribute{ Computed: true, Optional: true, diff --git a/internal/provider/source_sftpbulk_resource_sdk.go b/internal/provider/source_sftpbulk_resource_sdk.go index 325fd0c9b..81ac4dd68 100644 --- a/internal/provider/source_sftpbulk_resource_sdk.go +++ b/internal/provider/source_sftpbulk_resource_sdk.go @@ -237,12 +237,12 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkCreateRequest() *sha SourceSftpBulkParquetFormat: sourceSftpBulkParquetFormat, } } - var sourceSftpBulkDocumentFileTypeFormatExperimental *shared.SourceSftpBulkDocumentFileTypeFormatExperimental - if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { + var sourceSftpBulkUnstructuredDocumentFormat *shared.SourceSftpBulkUnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { var processing *shared.SourceSftpBulkProcessing - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { var sourceSftpBulkLocal *shared.SourceSftpBulkLocal - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { sourceSftpBulkLocal = &shared.SourceSftpBulkLocal{} } if sourceSftpBulkLocal != nil { @@ -251,21 +251,21 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkCreateRequest() *sha } } var sourceSftpBulkViaAPI *shared.SourceSftpBulkViaAPI - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI != nil { apiKey := new(string) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIKey.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIKey.IsNull() { - *apiKey = streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIKey.ValueString() + if !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.IsNull() { + *apiKey = streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.ValueString() } else { apiKey = nil } apiURL := new(string) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIURL.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIURL.IsNull() { - *apiURL = streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIURL.ValueString() + if !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.IsNull() { + *apiURL = streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.ValueString() } else { apiURL = nil } var parameters []shared.SourceSftpBulkAPIParameterConfigModel = []shared.SourceSftpBulkAPIParameterConfigModel{} - for _, parametersItem := range streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.Parameters { + for _, parametersItem := range streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.Parameters { name := parametersItem.Name.ValueString() value := parametersItem.Value.ValueString() parameters = append(parameters, shared.SourceSftpBulkAPIParameterConfigModel{ @@ -286,26 +286,35 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkCreateRequest() *sha } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceSftpBulkParsingStrategy) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { - *strategy = shared.SourceSftpBulkParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceSftpBulkParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) } else { strategy = nil } - sourceSftpBulkDocumentFileTypeFormatExperimental = &shared.SourceSftpBulkDocumentFileTypeFormatExperimental{ + sourceSftpBulkUnstructuredDocumentFormat = &shared.SourceSftpBulkUnstructuredDocumentFormat{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceSftpBulkDocumentFileTypeFormatExperimental != nil { + if sourceSftpBulkUnstructuredDocumentFormat != nil { format = shared.SourceSftpBulkFormat{ - SourceSftpBulkDocumentFileTypeFormatExperimental: sourceSftpBulkDocumentFileTypeFormatExperimental, + SourceSftpBulkUnstructuredDocumentFormat: sourceSftpBulkUnstructuredDocumentFormat, + } + } + var sourceSftpBulkExcelFormat *shared.SourceSftpBulkExcelFormat + if streamsItem.Format.ExcelFormat != nil { + sourceSftpBulkExcelFormat = &shared.SourceSftpBulkExcelFormat{} + } + if sourceSftpBulkExcelFormat != nil { + format = shared.SourceSftpBulkFormat{ + SourceSftpBulkExcelFormat: sourceSftpBulkExcelFormat, } } var globs []string = []string{} @@ -331,6 +340,12 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkCreateRequest() *sha } else { primaryKey = nil } + recentNFilesToReadForSchemaDiscovery := new(int64) + if !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsUnknown() && !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsNull() { + *recentNFilesToReadForSchemaDiscovery = streamsItem.RecentNFilesToReadForSchemaDiscovery.ValueInt64() + } else { + recentNFilesToReadForSchemaDiscovery = nil + } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -344,15 +359,16 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkCreateRequest() *sha validationPolicy = nil } streams = append(streams, shared.SourceSftpBulkFileBasedStreamConfig{ - DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format, - Globs: globs, - InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, - Name: name1, - PrimaryKey: primaryKey, - Schemaless: schemaless, - ValidationPolicy: validationPolicy, + DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, + Format: format, + Globs: globs, + InputSchema: inputSchema, + LegacyPrefix: legacyPrefix, + Name: name1, + PrimaryKey: primaryKey, + RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, + Schemaless: schemaless, + ValidationPolicy: validationPolicy, }) } username := r.Configuration.Username.ValueString() @@ -627,12 +643,12 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkPutRequest() *shared SourceSftpBulkUpdateParquetFormat: sourceSftpBulkUpdateParquetFormat, } } - var sourceSftpBulkUpdateDocumentFileTypeFormatExperimental *shared.SourceSftpBulkUpdateDocumentFileTypeFormatExperimental - if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { + var sourceSftpBulkUpdateUnstructuredDocumentFormat *shared.SourceSftpBulkUpdateUnstructuredDocumentFormat + if streamsItem.Format.UnstructuredDocumentFormat != nil { var processing *shared.SourceSftpBulkUpdateProcessing - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { var sourceSftpBulkUpdateLocal *shared.SourceSftpBulkUpdateLocal - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { + if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { sourceSftpBulkUpdateLocal = &shared.SourceSftpBulkUpdateLocal{} } if sourceSftpBulkUpdateLocal != nil { @@ -640,62 +656,71 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkPutRequest() *shared SourceSftpBulkUpdateLocal: sourceSftpBulkUpdateLocal, } } - var viaAPI *shared.ViaAPI - if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI != nil { + var sourceSftpBulkUpdateViaAPI *shared.SourceSftpBulkUpdateViaAPI + if streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI != nil { apiKey := new(string) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIKey.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIKey.IsNull() { - *apiKey = streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIKey.ValueString() + if !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.IsNull() { + *apiKey = streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIKey.ValueString() } else { apiKey = nil } apiURL := new(string) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIURL.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIURL.IsNull() { - *apiURL = streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.APIURL.ValueString() + if !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.IsNull() { + *apiURL = streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.APIURL.ValueString() } else { apiURL = nil } - var parameters []shared.APIParameterConfigModel = []shared.APIParameterConfigModel{} - for _, parametersItem := range streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.ViaAPI.Parameters { + var parameters []shared.SourceSftpBulkUpdateAPIParameterConfigModel = []shared.SourceSftpBulkUpdateAPIParameterConfigModel{} + for _, parametersItem := range streamsItem.Format.UnstructuredDocumentFormat.Processing.ViaAPI.Parameters { name := parametersItem.Name.ValueString() value := parametersItem.Value.ValueString() - parameters = append(parameters, shared.APIParameterConfigModel{ + parameters = append(parameters, shared.SourceSftpBulkUpdateAPIParameterConfigModel{ Name: name, Value: value, }) } - viaAPI = &shared.ViaAPI{ + sourceSftpBulkUpdateViaAPI = &shared.SourceSftpBulkUpdateViaAPI{ APIKey: apiKey, APIURL: apiURL, Parameters: parameters, } } - if viaAPI != nil { + if sourceSftpBulkUpdateViaAPI != nil { processing = &shared.SourceSftpBulkUpdateProcessing{ - ViaAPI: viaAPI, + SourceSftpBulkUpdateViaAPI: sourceSftpBulkUpdateViaAPI, } } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceSftpBulkUpdateParsingStrategy) - if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { - *strategy = shared.SourceSftpBulkUpdateParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) + if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { + *strategy = shared.SourceSftpBulkUpdateParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) } else { strategy = nil } - sourceSftpBulkUpdateDocumentFileTypeFormatExperimental = &shared.SourceSftpBulkUpdateDocumentFileTypeFormatExperimental{ + sourceSftpBulkUpdateUnstructuredDocumentFormat = &shared.SourceSftpBulkUpdateUnstructuredDocumentFormat{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceSftpBulkUpdateDocumentFileTypeFormatExperimental != nil { + if sourceSftpBulkUpdateUnstructuredDocumentFormat != nil { format = shared.SourceSftpBulkUpdateFormat{ - SourceSftpBulkUpdateDocumentFileTypeFormatExperimental: sourceSftpBulkUpdateDocumentFileTypeFormatExperimental, + SourceSftpBulkUpdateUnstructuredDocumentFormat: sourceSftpBulkUpdateUnstructuredDocumentFormat, + } + } + var sourceSftpBulkUpdateExcelFormat *shared.SourceSftpBulkUpdateExcelFormat + if streamsItem.Format.ExcelFormat != nil { + sourceSftpBulkUpdateExcelFormat = &shared.SourceSftpBulkUpdateExcelFormat{} + } + if sourceSftpBulkUpdateExcelFormat != nil { + format = shared.SourceSftpBulkUpdateFormat{ + SourceSftpBulkUpdateExcelFormat: sourceSftpBulkUpdateExcelFormat, } } var globs []string = []string{} @@ -721,6 +746,12 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkPutRequest() *shared } else { primaryKey = nil } + recentNFilesToReadForSchemaDiscovery := new(int64) + if !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsUnknown() && !streamsItem.RecentNFilesToReadForSchemaDiscovery.IsNull() { + *recentNFilesToReadForSchemaDiscovery = streamsItem.RecentNFilesToReadForSchemaDiscovery.ValueInt64() + } else { + recentNFilesToReadForSchemaDiscovery = nil + } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -734,15 +765,16 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkPutRequest() *shared validationPolicy = nil } streams = append(streams, shared.SourceSftpBulkUpdateFileBasedStreamConfig{ - DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format, - Globs: globs, - InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, - Name: name1, - PrimaryKey: primaryKey, - Schemaless: schemaless, - ValidationPolicy: validationPolicy, + DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, + Format: format, + Globs: globs, + InputSchema: inputSchema, + LegacyPrefix: legacyPrefix, + Name: name1, + PrimaryKey: primaryKey, + RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, + Schemaless: schemaless, + ValidationPolicy: validationPolicy, }) } username := r.Configuration.Username.ValueString() diff --git a/internal/provider/source_shopify_resource.go b/internal/provider/source_shopify_resource.go index 750874e3d..3d988014b 100644 --- a/internal/provider/source_shopify_resource.go +++ b/internal/provider/source_shopify_resource.go @@ -98,10 +98,12 @@ func (r *SourceShopifyResource) Schema(ctx context.Context, req resource.SchemaR }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client ID of the Shopify developer application.`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client Secret of the Shopify developer application.`, }, }, @@ -124,6 +126,24 @@ 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_checkpoint_interval": schema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(100000), + Description: `The threshold, after which the single BULK Job should be checkpointed. Default: 100000`, + }, + "job_product_variants_include_pres_prices": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + Description: `If enabled, the ` + "`" + `Product Variants` + "`" + ` stream attempts to include ` + "`" + `Presentment prices` + "`" + ` field (may affect the performance). Default: true`, + }, + "job_termination_threshold": schema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(7200), + 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: 7200`, + }, "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 817b741c3..34f4c1719 100644 --- a/internal/provider/source_shopify_resource_sdk.go +++ b/internal/provider/source_shopify_resource_sdk.go @@ -67,6 +67,24 @@ func (r *SourceShopifyResourceModel) ToSharedSourceShopifyCreateRequest() *share } else { fetchTransactionsUserID = nil } + jobCheckpointInterval := new(int64) + if !r.Configuration.JobCheckpointInterval.IsUnknown() && !r.Configuration.JobCheckpointInterval.IsNull() { + *jobCheckpointInterval = r.Configuration.JobCheckpointInterval.ValueInt64() + } else { + jobCheckpointInterval = nil + } + jobProductVariantsIncludePresPrices := new(bool) + if !r.Configuration.JobProductVariantsIncludePresPrices.IsUnknown() && !r.Configuration.JobProductVariantsIncludePresPrices.IsNull() { + *jobProductVariantsIncludePresPrices = r.Configuration.JobProductVariantsIncludePresPrices.ValueBool() + } else { + jobProductVariantsIncludePresPrices = 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() { @@ -75,11 +93,14 @@ func (r *SourceShopifyResourceModel) ToSharedSourceShopifyCreateRequest() *share startDate = nil } configuration := shared.SourceShopify{ - BulkWindowInDays: bulkWindowInDays, - Credentials: credentials, - FetchTransactionsUserID: fetchTransactionsUserID, - Shop: shop, - StartDate: startDate, + BulkWindowInDays: bulkWindowInDays, + Credentials: credentials, + FetchTransactionsUserID: fetchTransactionsUserID, + JobCheckpointInterval: jobCheckpointInterval, + JobProductVariantsIncludePresPrices: jobProductVariantsIncludePresPrices, + JobTerminationThreshold: jobTerminationThreshold, + Shop: shop, + StartDate: startDate, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -173,6 +194,24 @@ func (r *SourceShopifyResourceModel) ToSharedSourceShopifyPutRequest() *shared.S } else { fetchTransactionsUserID = nil } + jobCheckpointInterval := new(int64) + if !r.Configuration.JobCheckpointInterval.IsUnknown() && !r.Configuration.JobCheckpointInterval.IsNull() { + *jobCheckpointInterval = r.Configuration.JobCheckpointInterval.ValueInt64() + } else { + jobCheckpointInterval = nil + } + jobProductVariantsIncludePresPrices := new(bool) + if !r.Configuration.JobProductVariantsIncludePresPrices.IsUnknown() && !r.Configuration.JobProductVariantsIncludePresPrices.IsNull() { + *jobProductVariantsIncludePresPrices = r.Configuration.JobProductVariantsIncludePresPrices.ValueBool() + } else { + jobProductVariantsIncludePresPrices = 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() { @@ -181,11 +220,14 @@ func (r *SourceShopifyResourceModel) ToSharedSourceShopifyPutRequest() *shared.S startDate = nil } configuration := shared.SourceShopifyUpdate{ - BulkWindowInDays: bulkWindowInDays, - Credentials: credentials, - FetchTransactionsUserID: fetchTransactionsUserID, - Shop: shop, - StartDate: startDate, + BulkWindowInDays: bulkWindowInDays, + Credentials: credentials, + FetchTransactionsUserID: fetchTransactionsUserID, + JobCheckpointInterval: jobCheckpointInterval, + JobProductVariantsIncludePresPrices: jobProductVariantsIncludePresPrices, + JobTerminationThreshold: jobTerminationThreshold, + Shop: shop, + StartDate: startDate, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/source_shortio_resource.go b/internal/provider/source_shortio_resource.go index b77e38f81..c6e997b14 100644 --- a/internal/provider/source_shortio_resource.go +++ b/internal/provider/source_shortio_resource.go @@ -58,7 +58,8 @@ func (r *SourceShortioResource) Schema(ctx context.Context, req resource.SchemaR Required: true, Attributes: map[string]schema.Attribute{ "domain_id": schema.StringAttribute{ - Required: true, + Required: true, + Sensitive: true, }, "secret_key": schema.StringAttribute{ Required: true, @@ -67,6 +68,7 @@ func (r *SourceShortioResource) Schema(ctx context.Context, req resource.SchemaR }, "start_date": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.`, }, }, diff --git a/internal/provider/source_slack_resource.go b/internal/provider/source_slack_resource.go index 69e28140d..ebe4b30f1 100644 --- a/internal/provider/source_slack_resource.go +++ b/internal/provider/source_slack_resource.go @@ -99,6 +99,7 @@ func (r *SourceSlackResource) Schema(ctx context.Context, req resource.SchemaReq }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Slack client_secret. See our docs if you need help finding this secret.`, }, }, diff --git a/internal/provider/source_smartsheets_resource.go b/internal/provider/source_smartsheets_resource.go index a9daf16c0..7bfb29d63 100644 --- a/internal/provider/source_smartsheets_resource.go +++ b/internal/provider/source_smartsheets_resource.go @@ -89,10 +89,12 @@ func (r *SourceSmartsheetsResource) Schema(ctx context.Context, req resource.Sch }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The API ID of the SmartSheets developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The API Secret the SmartSheets developer application.`, }, "refresh_token": schema.StringAttribute{ @@ -102,7 +104,6 @@ func (r *SourceSmartsheetsResource) Schema(ctx context.Context, req resource.Sch }, "token_expiry_date": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `The date-time when the access token should be refreshed.`, Validators: []validator.String{ validators.IsRFC3339(), diff --git a/internal/provider/source_snapchatmarketing_resource.go b/internal/provider/source_snapchatmarketing_resource.go index 97347102e..64568df65 100644 --- a/internal/provider/source_snapchatmarketing_resource.go +++ b/internal/provider/source_snapchatmarketing_resource.go @@ -75,10 +75,12 @@ func (r *SourceSnapchatMarketingResource) Schema(ctx context.Context, req resour }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your Snapchat developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Snapchat developer application.`, }, "end_date": schema.StringAttribute{ diff --git a/internal/provider/source_snowflake_resource.go b/internal/provider/source_snowflake_resource.go index c17f62cce..30aaca0f9 100644 --- a/internal/provider/source_snowflake_resource.go +++ b/internal/provider/source_snowflake_resource.go @@ -63,6 +63,31 @@ 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{ @@ -73,10 +98,12 @@ func (r *SourceSnowflakeResource) Schema(ctx context.Context, req resource.Schem }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your Snowflake developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Snowflake developer application.`, }, "refresh_token": schema.StringAttribute{ @@ -87,6 +114,7 @@ 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"), }...), }, @@ -106,6 +134,7 @@ 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 24bbf9d1f..eb99d78cf 100644 --- a/internal/provider/source_snowflake_resource_sdk.go +++ b/internal/provider/source_snowflake_resource_sdk.go @@ -38,13 +38,34 @@ 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() - username := r.Configuration.Credentials.UsernameAndPassword.Username.ValueString() + username1 := r.Configuration.Credentials.UsernameAndPassword.Username.ValueString() sourceSnowflakeUsernameAndPassword = &shared.SourceSnowflakeUsernameAndPassword{ Password: password, - Username: username, + Username: username1, } } if sourceSnowflakeUsernameAndPassword != nil { @@ -142,13 +163,34 @@ 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() - username := r.Configuration.Credentials.UsernameAndPassword.Username.ValueString() + username1 := r.Configuration.Credentials.UsernameAndPassword.Username.ValueString() sourceSnowflakeUpdateUsernameAndPassword = &shared.SourceSnowflakeUpdateUsernameAndPassword{ Password: password, - Username: username, + Username: username1, } } if sourceSnowflakeUpdateUsernameAndPassword != nil { diff --git a/internal/provider/source_sonarcloud_resource.go b/internal/provider/source_sonarcloud_resource.go index 9ee8c4388..af6e821ee 100644 --- a/internal/provider/source_sonarcloud_resource.go +++ b/internal/provider/source_sonarcloud_resource.go @@ -62,7 +62,6 @@ func (r *SourceSonarCloudResource) Schema(ctx context.Context, req resource.Sche Attributes: map[string]schema.Attribute{ "component_keys": schema.ListAttribute{ Required: true, - Sensitive: true, ElementType: types.StringType, Description: `Comma-separated list of component keys.`, Validators: []validator.List{ diff --git a/internal/provider/source_square_resource.go b/internal/provider/source_square_resource.go index 8740f26bb..d066f11d8 100644 --- a/internal/provider/source_square_resource.go +++ b/internal/provider/source_square_resource.go @@ -85,10 +85,12 @@ func (r *SourceSquareResource) Schema(ctx context.Context, req resource.SchemaRe Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Square-issued ID of your application`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Square-issued application secret for your application`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_strava_resource.go b/internal/provider/source_strava_resource.go index 5de0666a9..00a0fc28c 100644 --- a/internal/provider/source_strava_resource.go +++ b/internal/provider/source_strava_resource.go @@ -69,6 +69,7 @@ func (r *SourceStravaResource) Schema(ctx context.Context, req resource.SchemaRe }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your Strava developer application.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_stripe_resource.go b/internal/provider/source_stripe_resource.go index b1590874f..f1e0de29c 100644 --- a/internal/provider/source_stripe_resource.go +++ b/internal/provider/source_stripe_resource.go @@ -71,6 +71,7 @@ func (r *SourceStripeResource) Schema(ctx context.Context, req resource.SchemaRe }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Stripe API key (usually starts with 'sk_live_'; find yours here).`, }, "lookback_window_days": schema.Int64Attribute{ diff --git a/internal/provider/source_surveymonkey_resource.go b/internal/provider/source_surveymonkey_resource.go index bdaff0eee..3e8a68643 100644 --- a/internal/provider/source_surveymonkey_resource.go +++ b/internal/provider/source_surveymonkey_resource.go @@ -71,10 +71,12 @@ func (r *SourceSurveymonkeyResource) Schema(ctx context.Context, req resource.Sc }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client ID of the SurveyMonkey developer application.`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client Secret of the SurveyMonkey developer application.`, }, }, diff --git a/internal/provider/source_tiktokmarketing_resource.go b/internal/provider/source_tiktokmarketing_resource.go index 99ebe5117..708e9a29b 100644 --- a/internal/provider/source_tiktokmarketing_resource.go +++ b/internal/provider/source_tiktokmarketing_resource.go @@ -86,10 +86,12 @@ func (r *SourceTiktokMarketingResource) Schema(ctx context.Context, req resource }, "app_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Developer Application App ID.`, }, "secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Developer Application Secret.`, }, }, @@ -135,7 +137,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 reports. Default: 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`, }, "start_date": schema.StringAttribute{ Computed: true, diff --git a/internal/provider/source_trustpilot_resource.go b/internal/provider/source_trustpilot_resource.go index ba20a9f34..8c65075c0 100644 --- a/internal/provider/source_trustpilot_resource.go +++ b/internal/provider/source_trustpilot_resource.go @@ -73,6 +73,7 @@ func (r *SourceTrustpilotResource) Schema(ctx context.Context, req resource.Sche Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The API key of the Trustpilot API application.`, }, }, @@ -93,10 +94,12 @@ func (r *SourceTrustpilotResource) Schema(ctx context.Context, req resource.Sche }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The API key of the Trustpilot API application. (represents the OAuth Client ID)`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Secret of the Trustpilot API application. (represents the OAuth Client Secret)`, }, "refresh_token": schema.StringAttribute{ @@ -106,7 +109,6 @@ func (r *SourceTrustpilotResource) Schema(ctx context.Context, req resource.Sche }, "token_expiry_date": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `The date-time when the access token should be refreshed.`, Validators: []validator.String{ validators.IsRFC3339(), diff --git a/internal/provider/source_twilio_resource.go b/internal/provider/source_twilio_resource.go index 76f5c2be4..501132ca5 100644 --- a/internal/provider/source_twilio_resource.go +++ b/internal/provider/source_twilio_resource.go @@ -62,6 +62,7 @@ func (r *SourceTwilioResource) Schema(ctx context.Context, req resource.SchemaRe Attributes: map[string]schema.Attribute{ "account_sid": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Twilio account SID`, }, "auth_token": schema.StringAttribute{ diff --git a/internal/provider/source_twiliotaskrouter_resource.go b/internal/provider/source_twiliotaskrouter_resource.go index 661dafd0e..4b41dfeb1 100644 --- a/internal/provider/source_twiliotaskrouter_resource.go +++ b/internal/provider/source_twiliotaskrouter_resource.go @@ -59,6 +59,7 @@ func (r *SourceTwilioTaskrouterResource) Schema(ctx context.Context, req resourc Attributes: map[string]schema.Attribute{ "account_sid": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Twilio Account ID`, }, "auth_token": schema.StringAttribute{ diff --git a/internal/provider/source_typeform_resource.go b/internal/provider/source_typeform_resource.go index 07d2b6168..6a2721b7b 100644 --- a/internal/provider/source_typeform_resource.go +++ b/internal/provider/source_typeform_resource.go @@ -74,10 +74,12 @@ func (r *SourceTypeformResource) Schema(ctx context.Context, req resource.Schema }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of the Typeform developer application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret the Typeform developer application.`, }, "refresh_token": schema.StringAttribute{ @@ -87,7 +89,6 @@ func (r *SourceTypeformResource) Schema(ctx context.Context, req resource.Schema }, "token_expiry_date": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `The date-time when the access token should be refreshed.`, Validators: []validator.String{ validators.IsRFC3339(), diff --git a/internal/provider/source_wikipediapageviews_resource.go b/internal/provider/source_wikipediapageviews_resource.go index 17f6da3b7..8d3a0cab5 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.`, + 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.`, }, }, }, diff --git a/internal/provider/source_woocommerce_resource.go b/internal/provider/source_woocommerce_resource.go index f1cb2e782..1a2bf9426 100644 --- a/internal/provider/source_woocommerce_resource.go +++ b/internal/provider/source_woocommerce_resource.go @@ -66,6 +66,7 @@ func (r *SourceWoocommerceResource) Schema(ctx context.Context, req resource.Sch }, "api_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `Customer Secret for API in WooCommerce shop`, }, "shop": schema.StringAttribute{ diff --git a/internal/provider/source_xkcd_resource.go b/internal/provider/source_xkcd_resource.go index d05defeef..ca4644409 100644 --- a/internal/provider/source_xkcd_resource.go +++ b/internal/provider/source_xkcd_resource.go @@ -14,6 +14,7 @@ import ( "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/stringdefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" @@ -34,13 +35,13 @@ type SourceXkcdResource struct { // SourceXkcdResourceModel describes the resource data model. type SourceXkcdResourceModel struct { - Configuration tfTypes.Fake `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"` + Configuration tfTypes.SourceXkcd `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 *SourceXkcdResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { @@ -55,8 +56,15 @@ func (r *SourceXkcdResource) Schema(ctx context.Context, req resource.SchemaRequ PlanModifiers: []planmodifier.Object{ speakeasy_objectplanmodifier.SuppressDiff(speakeasy_objectplanmodifier.ExplicitSuppress), }, - Required: true, - Attributes: map[string]schema.Attribute{}, + Required: true, + Attributes: map[string]schema.Attribute{ + "comic_number": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("2960"), + Description: `Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics. Default: "2960"`, + }, + }, }, "definition_id": schema.StringAttribute{ PlanModifiers: []planmodifier.String{ @@ -282,6 +290,32 @@ func (r *SourceXkcdResource) Update(ctx context.Context, req resource.UpdateRequ return } refreshPlan(ctx, plan, &data, resp.Diagnostics) + sourceId1 := data.SourceID.ValueString() + request1 := operations.GetSourceXkcdRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceXkcd(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)...) diff --git a/internal/provider/source_xkcd_resource_sdk.go b/internal/provider/source_xkcd_resource_sdk.go index d7ed6f13d..9a4ac8229 100644 --- a/internal/provider/source_xkcd_resource_sdk.go +++ b/internal/provider/source_xkcd_resource_sdk.go @@ -8,7 +8,15 @@ import ( ) func (r *SourceXkcdResourceModel) ToSharedSourceXkcdCreateRequest() *shared.SourceXkcdCreateRequest { - configuration := shared.SourceXkcd{} + comicNumber := new(string) + if !r.Configuration.ComicNumber.IsUnknown() && !r.Configuration.ComicNumber.IsNull() { + *comicNumber = r.Configuration.ComicNumber.ValueString() + } else { + comicNumber = nil + } + configuration := shared.SourceXkcd{ + ComicNumber: comicNumber, + } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { *definitionID = r.DefinitionID.ValueString() @@ -43,7 +51,15 @@ func (r *SourceXkcdResourceModel) RefreshFromSharedSourceResponse(resp *shared.S } func (r *SourceXkcdResourceModel) ToSharedSourceXkcdPutRequest() *shared.SourceXkcdPutRequest { - configuration := shared.SourceXkcdUpdate{} + comicNumber := new(string) + if !r.Configuration.ComicNumber.IsUnknown() && !r.Configuration.ComicNumber.IsNull() { + *comicNumber = r.Configuration.ComicNumber.ValueString() + } else { + comicNumber = nil + } + configuration := shared.SourceXkcdUpdate{ + ComicNumber: comicNumber, + } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() out := shared.SourceXkcdPutRequest{ diff --git a/internal/provider/source_yotpo_resource.go b/internal/provider/source_yotpo_resource.go index 0fbebd1a9..597756de1 100644 --- a/internal/provider/source_yotpo_resource.go +++ b/internal/provider/source_yotpo_resource.go @@ -67,7 +67,6 @@ func (r *SourceYotpoResource) Schema(ctx context.Context, req resource.SchemaReq }, "app_key": schema.StringAttribute{ Required: true, - Sensitive: true, Description: `App key found at settings (Ref- https://settings.yotpo.com/#/general_settings)`, }, "email": schema.StringAttribute{ diff --git a/internal/provider/source_youtubeanalytics_resource.go b/internal/provider/source_youtubeanalytics_resource.go index e159b95aa..77675f9b9 100644 --- a/internal/provider/source_youtubeanalytics_resource.go +++ b/internal/provider/source_youtubeanalytics_resource.go @@ -71,10 +71,12 @@ func (r *SourceYoutubeAnalyticsResource) Schema(ctx context.Context, req resourc }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your developer application`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client secret of your developer application`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_zendeskchat_resource.go b/internal/provider/source_zendeskchat_resource.go index 014e63de6..ba4427952 100644 --- a/internal/provider/source_zendeskchat_resource.go +++ b/internal/provider/source_zendeskchat_resource.go @@ -89,10 +89,12 @@ func (r *SourceZendeskChatResource) Schema(ctx context.Context, req resource.Sch }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client ID of your OAuth application`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The Client Secret of your OAuth application.`, }, "refresh_token": schema.StringAttribute{ diff --git a/internal/provider/source_zendesksunshine_resource.go b/internal/provider/source_zendesksunshine_resource.go index 0feb56fe3..5cd7dc074 100644 --- a/internal/provider/source_zendesksunshine_resource.go +++ b/internal/provider/source_zendesksunshine_resource.go @@ -92,10 +92,12 @@ func (r *SourceZendeskSunshineResource) Schema(ctx context.Context, req resource }, "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client ID of your OAuth application.`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The Client Secret of your OAuth application.`, }, }, diff --git a/internal/provider/source_zendesksupport_resource.go b/internal/provider/source_zendesksupport_resource.go index 8c7a67e7b..0ed330b18 100644 --- a/internal/provider/source_zendesksupport_resource.go +++ b/internal/provider/source_zendesksupport_resource.go @@ -107,10 +107,12 @@ func (r *SourceZendeskSupportResource) Schema(ctx context.Context, req resource. }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The OAuth client's ID. See this guide for more information.`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `The OAuth client secret. See this guide for more information.`, }, }, diff --git a/internal/provider/source_zendesktalk_resource.go b/internal/provider/source_zendesktalk_resource.go index 96048cb38..80027dd38 100644 --- a/internal/provider/source_zendesktalk_resource.go +++ b/internal/provider/source_zendesktalk_resource.go @@ -106,10 +106,12 @@ func (r *SourceZendeskTalkResource) Schema(ctx context.Context, req resource.Sch }, "client_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Client ID`, }, "client_secret": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Client Secret`, }, }, diff --git a/internal/provider/source_zenloop_resource.go b/internal/provider/source_zenloop_resource.go index 8f8217cbe..0452ec689 100644 --- a/internal/provider/source_zenloop_resource.go +++ b/internal/provider/source_zenloop_resource.go @@ -68,10 +68,12 @@ func (r *SourceZenloopResource) Schema(ctx context.Context, req resource.SchemaR }, "survey_group_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups`, }, "survey_id": schema.StringAttribute{ Optional: true, + Sensitive: true, Description: `Zenloop Survey ID. Can be found here. Leave empty to pull answers from all surveys`, }, }, diff --git a/internal/provider/source_zohocrm_resource.go b/internal/provider/source_zohocrm_resource.go index 7476b1455..347eb436f 100644 --- a/internal/provider/source_zohocrm_resource.go +++ b/internal/provider/source_zohocrm_resource.go @@ -63,10 +63,12 @@ func (r *SourceZohoCrmResource) Schema(ctx context.Context, req resource.SchemaR Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `OAuth2.0 Client ID`, }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `OAuth2.0 Client Secret`, }, "dc_region": schema.StringAttribute{ diff --git a/internal/provider/source_zoom_resource.go b/internal/provider/source_zoom_resource.go index dde886178..40a4002e1 100644 --- a/internal/provider/source_zoom_resource.go +++ b/internal/provider/source_zoom_resource.go @@ -74,6 +74,7 @@ func (r *SourceZoomResource) Schema(ctx context.Context, req resource.SchemaRequ }, "client_secret": schema.StringAttribute{ Required: true, + Sensitive: true, Description: `The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app.`, }, }, diff --git a/internal/provider/types/amazon_s3.go b/internal/provider/types/amazon_s3.go deleted file mode 100644 index 651d0f566..000000000 --- a/internal/provider/types/amazon_s3.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type AmazonS3 struct { - FileNamePattern types.String `tfsdk:"file_name_pattern"` - S3AccessKeyID types.String `tfsdk:"s3_access_key_id"` - S3BucketName types.String `tfsdk:"s3_bucket_name"` - S3BucketPath types.String `tfsdk:"s3_bucket_path"` - S3BucketRegion types.String `tfsdk:"s3_bucket_region"` - S3SecretAccessKey types.String `tfsdk:"s3_secret_access_key"` -} diff --git a/internal/provider/types/authenticate_via_facebook_marketing_oauth.go b/internal/provider/types/authenticate_via_facebook_marketing_oauth.go new file mode 100644 index 000000000..0582e83c5 --- /dev/null +++ b/internal/provider/types/authenticate_via_facebook_marketing_oauth.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 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 acc3df2fd..b7a090990 100644 --- a/internal/provider/types/awss3_staging.go +++ b/internal/provider/types/awss3_staging.go @@ -5,12 +5,11 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type AWSS3Staging struct { - 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"` + 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"` } diff --git a/internal/provider/types/destination_bigquery_loading_method.go b/internal/provider/types/destination_bigquery_loading_method.go index d84cb823e..81c89ec76 100644 --- a/internal/provider/types/destination_bigquery_loading_method.go +++ b/internal/provider/types/destination_bigquery_loading_method.go @@ -3,6 +3,6 @@ package types type DestinationBigqueryLoadingMethod struct { - GCSStaging *GCSStaging `tfsdk:"gcs_staging" tfPlanOnly:"true"` - StandardInserts *Fake `tfsdk:"standard_inserts" tfPlanOnly:"true"` + BatchedStandardInserts *Fake `tfsdk:"batched_standard_inserts" tfPlanOnly:"true"` + GCSStaging *GCSStaging `tfsdk:"gcs_staging" tfPlanOnly:"true"` } diff --git a/internal/provider/types/destination_databricks.go b/internal/provider/types/destination_databricks.go index 69f9b1f21..0b5180292 100644 --- a/internal/provider/types/destination_databricks.go +++ b/internal/provider/types/destination_databricks.go @@ -5,14 +5,13 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type DestinationDatabricks struct { - AcceptTerms types.Bool `tfsdk:"accept_terms"` - DataSource DestinationDatabricksDataSource1 `tfsdk:"data_source"` - Database types.String `tfsdk:"database"` - DatabricksHTTPPath types.String `tfsdk:"databricks_http_path"` - DatabricksPersonalAccessToken types.String `tfsdk:"databricks_personal_access_token"` - DatabricksPort types.String `tfsdk:"databricks_port"` - DatabricksServerHostname types.String `tfsdk:"databricks_server_hostname"` - EnableSchemaEvolution types.Bool `tfsdk:"enable_schema_evolution"` - PurgeStagingData types.Bool `tfsdk:"purge_staging_data"` - Schema types.String `tfsdk:"schema"` + AcceptTerms types.Bool `tfsdk:"accept_terms"` + Authentication DestinationDatabricksAuthentication `tfsdk:"authentication"` + Database types.String `tfsdk:"database"` + Hostname types.String `tfsdk:"hostname"` + HTTPPath types.String `tfsdk:"http_path"` + Port types.String `tfsdk:"port"` + PurgeStagingData types.Bool `tfsdk:"purge_staging_data"` + RawSchemaOverride types.String `tfsdk:"raw_schema_override"` + Schema types.String `tfsdk:"schema"` } diff --git a/internal/provider/types/destination_databricks_authentication.go b/internal/provider/types/destination_databricks_authentication.go new file mode 100644 index 000000000..0e2865f02 --- /dev/null +++ b/internal/provider/types/destination_databricks_authentication.go @@ -0,0 +1,8 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +type DestinationDatabricksAuthentication struct { + OAuth2Recommended *OAuth2Recommended `tfsdk:"o_auth2_recommended" tfPlanOnly:"true"` + PersonalAccessToken *PersonalAccessToken `tfsdk:"personal_access_token" tfPlanOnly:"true"` +} diff --git a/internal/provider/types/destination_databricks_azure_blob_storage.go b/internal/provider/types/destination_databricks_azure_blob_storage.go deleted file mode 100644 index 13a8bdf0b..000000000 --- a/internal/provider/types/destination_databricks_azure_blob_storage.go +++ /dev/null @@ -1,12 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type DestinationDatabricksAzureBlobStorage struct { - AzureBlobStorageAccountName types.String `tfsdk:"azure_blob_storage_account_name"` - AzureBlobStorageContainerName types.String `tfsdk:"azure_blob_storage_container_name"` - AzureBlobStorageEndpointDomainName types.String `tfsdk:"azure_blob_storage_endpoint_domain_name"` - AzureBlobStorageSasToken types.String `tfsdk:"azure_blob_storage_sas_token"` -} diff --git a/internal/provider/types/destination_databricks_data_source1.go b/internal/provider/types/destination_databricks_data_source1.go deleted file mode 100644 index 58d0264c4..000000000 --- a/internal/provider/types/destination_databricks_data_source1.go +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type DestinationDatabricksDataSource1 struct { - RecommendedManagedTables *Fake `tfsdk:"recommended_managed_tables" tfPlanOnly:"true"` - AmazonS3 *AmazonS3 `tfsdk:"amazon_s3" tfPlanOnly:"true"` - AzureBlobStorage *DestinationDatabricksAzureBlobStorage `tfsdk:"azure_blob_storage" tfPlanOnly:"true"` -} diff --git a/internal/provider/types/destination_langchain.go b/internal/provider/types/destination_langchain.go deleted file mode 100644 index e5b261aec..000000000 --- a/internal/provider/types/destination_langchain.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index eceb05d98..000000000 --- a/internal/provider/types/destination_langchain_embedding.go +++ /dev/null @@ -1,8 +0,0 @@ -// 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 deleted file mode 100644 index 39fa10525..000000000 --- a/internal/provider/types/destination_langchain_indexing.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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_langchain_processing_config_model.go b/internal/provider/types/destination_langchain_processing_config_model.go deleted file mode 100644 index 681537b20..000000000 --- a/internal/provider/types/destination_langchain_processing_config_model.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 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 22ef2e9b1..9b4af1ad2 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 DestinationLangchainPinecone `tfsdk:"indexing"` + Indexing DestinationPineconeIndexing `tfsdk:"indexing"` OmitRawText types.Bool `tfsdk:"omit_raw_text"` Processing DestinationAstraProcessingConfigModel `tfsdk:"processing"` } diff --git a/internal/provider/types/destination_langchain_pinecone.go b/internal/provider/types/destination_pinecone_indexing.go similarity index 88% rename from internal/provider/types/destination_langchain_pinecone.go rename to internal/provider/types/destination_pinecone_indexing.go index e9531c11a..87ab6fe9a 100644 --- a/internal/provider/types/destination_langchain_pinecone.go +++ b/internal/provider/types/destination_pinecone_indexing.go @@ -4,7 +4,7 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type DestinationLangchainPinecone struct { +type DestinationPineconeIndexing 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_redshift_encryption.go b/internal/provider/types/destination_redshift_encryption.go deleted file mode 100644 index 5d1010ef5..000000000 --- a/internal/provider/types/destination_redshift_encryption.go +++ /dev/null @@ -1,8 +0,0 @@ -// 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/destination_snowflake.go b/internal/provider/types/destination_snowflake.go index 77b7f2457..6793c1086 100644 --- a/internal/provider/types/destination_snowflake.go +++ b/internal/provider/types/destination_snowflake.go @@ -14,6 +14,7 @@ type DestinationSnowflake struct { RetentionPeriodDays types.Int64 `tfsdk:"retention_period_days"` Role types.String `tfsdk:"role"` Schema types.String `tfsdk:"schema"` + UseMergeForUpsert types.Bool `tfsdk:"use_merge_for_upsert"` Username types.String `tfsdk:"username"` Warehouse types.String `tfsdk:"warehouse"` } diff --git a/internal/provider/types/destination_timeplus.go b/internal/provider/types/destination_timeplus.go new file mode 100644 index 000000000..8f0b78527 --- /dev/null +++ b/internal/provider/types/destination_timeplus.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 DestinationTimeplus struct { + Apikey types.String `tfsdk:"apikey"` + Endpoint types.String `tfsdk:"endpoint"` +} diff --git a/internal/provider/types/o_auth20_with_private_key.go b/internal/provider/types/o_auth20_with_private_key.go new file mode 100644 index 000000000..96ec386af --- /dev/null +++ b/internal/provider/types/o_auth20_with_private_key.go @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type OAuth20WithPrivateKey struct { + ClientID types.String `tfsdk:"client_id"` + KeyID types.String `tfsdk:"key_id"` + PrivateKey types.String `tfsdk:"private_key"` + Scope types.String `tfsdk:"scope"` +} diff --git a/internal/provider/types/o_auth2_recommended.go b/internal/provider/types/o_auth2_recommended.go new file mode 100644 index 000000000..dc38f279e --- /dev/null +++ b/internal/provider/types/o_auth2_recommended.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 OAuth2Recommended struct { + ClientID types.String `tfsdk:"client_id"` + Secret types.String `tfsdk:"secret"` +} diff --git a/internal/provider/types/authenticate_with_personal_access_token.go b/internal/provider/types/personal_access_token.go similarity index 81% rename from internal/provider/types/authenticate_with_personal_access_token.go rename to internal/provider/types/personal_access_token.go index 40c2ef3f1..35fbc359f 100644 --- a/internal/provider/types/authenticate_with_personal_access_token.go +++ b/internal/provider/types/personal_access_token.go @@ -4,6 +4,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type AuthenticateWithPersonalAccessToken struct { +type PersonalAccessToken struct { PersonalAccessToken types.String `tfsdk:"personal_access_token"` } diff --git a/internal/provider/types/chroma_local_persistance.go b/internal/provider/types/queries.go similarity index 50% rename from internal/provider/types/chroma_local_persistance.go rename to internal/provider/types/queries.go index fed2b19f7..84234a7cc 100644 --- a/internal/provider/types/chroma_local_persistance.go +++ b/internal/provider/types/queries.go @@ -4,7 +4,8 @@ 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"` +type Queries struct { + DataSource types.String `tfsdk:"data_source"` + Name types.String `tfsdk:"name"` + Query types.String `tfsdk:"query"` } 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 73721888a..55eb1604f 100644 --- a/internal/provider/types/read_changes_using_binary_log_cdc.go +++ b/internal/provider/types/read_changes_using_binary_log_cdc.go @@ -5,6 +5,7 @@ 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/read_changes_using_change_data_capture_cdc.go b/internal/provider/types/read_changes_using_change_data_capture_cdc.go index 10d49e47e..75f595420 100644 --- a/internal/provider/types/read_changes_using_change_data_capture_cdc.go +++ b/internal/provider/types/read_changes_using_change_data_capture_cdc.go @@ -5,6 +5,7 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type ReadChangesUsingChangeDataCaptureCDC 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"` QueueSize types.Int64 `tfsdk:"queue_size"` diff --git a/internal/provider/types/read_changes_using_write_ahead_log_cdc.go b/internal/provider/types/read_changes_using_write_ahead_log_cdc.go index 32d04b80f..a8b6878df 100644 --- a/internal/provider/types/read_changes_using_write_ahead_log_cdc.go +++ b/internal/provider/types/read_changes_using_write_ahead_log_cdc.go @@ -7,6 +7,7 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type ReadChangesUsingWriteAheadLogCDC struct { AdditionalProperties types.String `tfsdk:"additional_properties"` HeartbeatActionQuery types.String `tfsdk:"heartbeat_action_query"` + InitialLoadTimeoutHours types.Int64 `tfsdk:"initial_load_timeout_hours"` InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"` InvalidCdcCursorPositionBehavior types.String `tfsdk:"invalid_cdc_cursor_position_behavior"` LsnCommitBehaviour types.String `tfsdk:"lsn_commit_behaviour"` diff --git a/internal/provider/types/source_airbyte.go b/internal/provider/types/source_airbyte.go new file mode 100644 index 000000000..ccd312717 --- /dev/null +++ b/internal/provider/types/source_airbyte.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 SourceAirbyte struct { + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_amazon_seller_partner.go b/internal/provider/types/source_amazon_seller_partner.go index a3f1f5c90..3b056b56c 100644 --- a/internal/provider/types/source_amazon_seller_partner.go +++ b/internal/provider/types/source_amazon_seller_partner.go @@ -5,14 +5,15 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceAmazonSellerPartner struct { - AccountType types.String `tfsdk:"account_type"` - AwsEnvironment types.String `tfsdk:"aws_environment"` - LwaAppID types.String `tfsdk:"lwa_app_id"` - LwaClientSecret types.String `tfsdk:"lwa_client_secret"` - PeriodInDays types.Int64 `tfsdk:"period_in_days"` - RefreshToken types.String `tfsdk:"refresh_token"` - Region types.String `tfsdk:"region"` - ReplicationEndDate types.String `tfsdk:"replication_end_date"` - ReplicationStartDate types.String `tfsdk:"replication_start_date"` - ReportOptionsList []ReportOptions `tfsdk:"report_options_list"` + AccountType types.String `tfsdk:"account_type"` + AwsEnvironment types.String `tfsdk:"aws_environment"` + LwaAppID types.String `tfsdk:"lwa_app_id"` + LwaClientSecret types.String `tfsdk:"lwa_client_secret"` + PeriodInDays types.Int64 `tfsdk:"period_in_days"` + RefreshToken types.String `tfsdk:"refresh_token"` + Region types.String `tfsdk:"region"` + ReplicationEndDate types.String `tfsdk:"replication_end_date"` + ReplicationStartDate types.String `tfsdk:"replication_start_date"` + ReportOptionsList []ReportOptions `tfsdk:"report_options_list"` + WaitToAvoidFatalErrors types.Bool `tfsdk:"wait_to_avoid_fatal_errors"` } diff --git a/internal/provider/types/source_asana_authentication_mechanism.go b/internal/provider/types/source_asana_authentication_mechanism.go index 07b1155c5..0cfba61d1 100644 --- a/internal/provider/types/source_asana_authentication_mechanism.go +++ b/internal/provider/types/source_asana_authentication_mechanism.go @@ -4,5 +4,5 @@ package types type SourceAsanaAuthenticationMechanism struct { AuthenticateViaAsanaOauth *DestinationGoogleSheetsAuthenticationViaGoogleOAuth `tfsdk:"authenticate_via_asana_oauth" tfPlanOnly:"true"` - AuthenticateWithPersonalAccessToken *AuthenticateWithPersonalAccessToken `tfsdk:"authenticate_with_personal_access_token" tfPlanOnly:"true"` + AuthenticateWithPersonalAccessToken *PersonalAccessToken `tfsdk:"authenticate_with_personal_access_token" tfPlanOnly:"true"` } diff --git a/internal/provider/types/source_aws_cloudtrail.go b/internal/provider/types/source_aws_cloudtrail.go index 23df8b34a..e2ab5f620 100644 --- a/internal/provider/types/source_aws_cloudtrail.go +++ b/internal/provider/types/source_aws_cloudtrail.go @@ -5,8 +5,9 @@ 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"` - 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"` + LookupAttributesFilter *SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody `tfsdk:"lookup_attributes_filter"` + 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 new file mode 100644 index 000000000..5f07c62bf --- /dev/null +++ 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 @@ -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 SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody struct { + AttributeKey types.String `tfsdk:"attribute_key"` + AttributeValue types.String `tfsdk:"attribute_value"` +} diff --git a/internal/provider/types/source_bamboo_hr.go b/internal/provider/types/source_bamboo_hr.go index 4a7e3eaf0..987adb742 100644 --- a/internal/provider/types/source_bamboo_hr.go +++ b/internal/provider/types/source_bamboo_hr.go @@ -8,5 +8,6 @@ type SourceBambooHr struct { APIKey types.String `tfsdk:"api_key"` CustomReportsFields types.String `tfsdk:"custom_reports_fields"` CustomReportsIncludeDefaultFields types.Bool `tfsdk:"custom_reports_include_default_fields"` + StartDate types.String `tfsdk:"start_date"` Subdomain types.String `tfsdk:"subdomain"` } diff --git a/internal/provider/types/source_basecamp.go b/internal/provider/types/source_basecamp.go new file mode 100644 index 000000000..3dd9bcc2f --- /dev/null +++ b/internal/provider/types/source_basecamp.go @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type SourceBasecamp struct { + AccountID types.Number `tfsdk:"account_id"` + ClientID types.String `tfsdk:"client_id"` + ClientRefreshToken2 types.String `tfsdk:"client_refresh_token_2"` + ClientSecret types.String `tfsdk:"client_secret"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_breezy_hr.go b/internal/provider/types/source_breezy_hr.go new file mode 100644 index 000000000..d39ede037 --- /dev/null +++ b/internal/provider/types/source_breezy_hr.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 SourceBreezyHr struct { + APIKey types.String `tfsdk:"api_key"` + CompanyID types.String `tfsdk:"company_id"` +} diff --git a/internal/provider/types/source_chartmogul.go b/internal/provider/types/source_calendly.go similarity index 88% rename from internal/provider/types/source_chartmogul.go rename to internal/provider/types/source_calendly.go index 6510640f0..2b36607fb 100644 --- a/internal/provider/types/source_chartmogul.go +++ b/internal/provider/types/source_calendly.go @@ -4,7 +4,7 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type SourceChartmogul struct { +type SourceCalendly struct { APIKey types.String `tfsdk:"api_key"` StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_clickup_api.go b/internal/provider/types/source_clickup_api.go index e3637a80f..5bee388a2 100644 --- a/internal/provider/types/source_clickup_api.go +++ b/internal/provider/types/source_clickup_api.go @@ -6,9 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type SourceClickupAPI struct { APIToken types.String `tfsdk:"api_token"` - FolderID types.String `tfsdk:"folder_id"` IncludeClosedTasks types.Bool `tfsdk:"include_closed_tasks"` - ListID types.String `tfsdk:"list_id"` - SpaceID types.String `tfsdk:"space_id"` - TeamID types.String `tfsdk:"team_id"` } diff --git a/internal/provider/types/doc_array_hnsw_search.go b/internal/provider/types/source_customer_io.go similarity index 63% rename from internal/provider/types/doc_array_hnsw_search.go rename to internal/provider/types/source_customer_io.go index 8c45d3040..f7b42f702 100644 --- a/internal/provider/types/doc_array_hnsw_search.go +++ b/internal/provider/types/source_customer_io.go @@ -4,6 +4,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type DocArrayHnswSearch struct { - DestinationPath types.String `tfsdk:"destination_path"` +type SourceCustomerIo struct { + AppAPIKey types.String `tfsdk:"app_api_key"` } diff --git a/internal/provider/types/source_datadog.go b/internal/provider/types/source_datadog.go new file mode 100644 index 000000000..f926ebc18 --- /dev/null +++ b/internal/provider/types/source_datadog.go @@ -0,0 +1,16 @@ +// 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_dbt.go b/internal/provider/types/source_dbt.go new file mode 100644 index 000000000..39bff8ec1 --- /dev/null +++ b/internal/provider/types/source_dbt.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 SourceDbt struct { + AccountID types.String `tfsdk:"account_id"` + APIKey2 types.String `tfsdk:"api_key_2"` +} diff --git a/internal/provider/types/source_facebook_marketing.go b/internal/provider/types/source_facebook_marketing.go index 901689df9..b664f8e15 100644 --- a/internal/provider/types/source_facebook_marketing.go +++ b/internal/provider/types/source_facebook_marketing.go @@ -5,19 +5,20 @@ 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"` - 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"` + 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"` } diff --git a/internal/provider/types/source_facebook_marketing_authentication.go b/internal/provider/types/source_facebook_marketing_authentication.go new file mode 100644 index 000000000..f96d6c7b8 --- /dev/null +++ b/internal/provider/types/source_facebook_marketing_authentication.go @@ -0,0 +1,8 @@ +// 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_gcs.go b/internal/provider/types/source_gcs.go index 92e1f63e8..1aee61e64 100644 --- a/internal/provider/types/source_gcs.go +++ b/internal/provider/types/source_gcs.go @@ -5,8 +5,8 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceGcs struct { - Bucket types.String `tfsdk:"bucket"` - ServiceAccount types.String `tfsdk:"service_account"` - StartDate types.String `tfsdk:"start_date"` - Streams []SourceGCSStreamConfig `tfsdk:"streams"` + Bucket types.String `tfsdk:"bucket"` + ServiceAccount types.String `tfsdk:"service_account"` + StartDate types.String `tfsdk:"start_date"` + Streams []SourceGcsFileBasedStreamConfig `tfsdk:"streams"` } diff --git a/internal/provider/types/source_gcs_file_based_stream_config.go b/internal/provider/types/source_gcs_file_based_stream_config.go new file mode 100644 index 000000000..33e54caea --- /dev/null +++ b/internal/provider/types/source_gcs_file_based_stream_config.go @@ -0,0 +1,18 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type SourceGcsFileBasedStreamConfig struct { + DaysToSyncIfHistoryIsFull types.Int64 `tfsdk:"days_to_sync_if_history_is_full"` + Format SourceGcsFormat `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"` + RecentNFilesToReadForSchemaDiscovery types.Int64 `tfsdk:"recent_n_files_to_read_for_schema_discovery"` + Schemaless types.Bool `tfsdk:"schemaless"` + ValidationPolicy types.String `tfsdk:"validation_policy"` +} diff --git a/internal/provider/types/source_gcs_format.go b/internal/provider/types/source_gcs_format.go index d8c436385..456c80559 100644 --- a/internal/provider/types/source_gcs_format.go +++ b/internal/provider/types/source_gcs_format.go @@ -3,5 +3,10 @@ package types type SourceGcsFormat struct { - CSVFormat *CSVFormat `tfsdk:"csv_format" tfPlanOnly:"true"` + AvroFormat *AvroFormat `tfsdk:"avro_format" tfPlanOnly:"true"` + CSVFormat *CSVFormat `tfsdk:"csv_format" tfPlanOnly:"true"` + ExcelFormat *Fake `tfsdk:"excel_format" tfPlanOnly:"true"` + JsonlFormat *Fake `tfsdk:"jsonl_format" tfPlanOnly:"true"` + ParquetFormat *ParquetFormat `tfsdk:"parquet_format" tfPlanOnly:"true"` + UnstructuredDocumentFormat *UnstructuredDocumentFormat `tfsdk:"unstructured_document_format" tfPlanOnly:"true"` } diff --git a/internal/provider/types/source_sftp_bulk_processing.go b/internal/provider/types/source_gcs_processing.go similarity index 83% rename from internal/provider/types/source_sftp_bulk_processing.go rename to internal/provider/types/source_gcs_processing.go index 87e975a00..ed3f7a160 100644 --- a/internal/provider/types/source_sftp_bulk_processing.go +++ b/internal/provider/types/source_gcs_processing.go @@ -2,7 +2,7 @@ package types -type SourceSftpBulkProcessing struct { +type SourceGcsProcessing struct { Local *Fake `tfsdk:"local" tfPlanOnly:"true"` ViaAPI *ViaAPI `tfsdk:"via_api" tfPlanOnly:"true"` } diff --git a/internal/provider/types/source_gcs_stream_config.go b/internal/provider/types/source_gcs_stream_config.go deleted file mode 100644 index 480a5603b..000000000 --- a/internal/provider/types/source_gcs_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 SourceGCSStreamConfig struct { - DaysToSyncIfHistoryIsFull types.Int64 `tfsdk:"days_to_sync_if_history_is_full"` - Format SourceGcsFormat `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_github_authentication.go b/internal/provider/types/source_github_authentication.go index d1260c2b8..eb2a5964a 100644 --- a/internal/provider/types/source_github_authentication.go +++ b/internal/provider/types/source_github_authentication.go @@ -3,6 +3,6 @@ package types type SourceGithubAuthentication struct { - OAuth *OAuth `tfsdk:"o_auth" tfPlanOnly:"true"` - PersonalAccessToken *AuthenticateWithPersonalAccessToken `tfsdk:"personal_access_token" tfPlanOnly:"true"` + OAuth *OAuth `tfsdk:"o_auth" tfPlanOnly:"true"` + PersonalAccessToken *PersonalAccessToken `tfsdk:"personal_access_token" tfPlanOnly:"true"` } diff --git a/internal/provider/types/aescbc_envelope_encryption.go b/internal/provider/types/source_goldcast.go similarity index 60% rename from internal/provider/types/aescbc_envelope_encryption.go rename to internal/provider/types/source_goldcast.go index 426dae6ef..8b329520c 100644 --- a/internal/provider/types/aescbc_envelope_encryption.go +++ b/internal/provider/types/source_goldcast.go @@ -4,6 +4,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type AESCBCEnvelopeEncryption struct { - KeyEncryptingKey types.String `tfsdk:"key_encrypting_key"` +type SourceGoldcast struct { + AccessKey types.String `tfsdk:"access_key"` } 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 cb0773a9c..7c8448ea5 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 *ServiceAccountKeyAuthentication `tfsdk:"service_account_key_authentication" tfPlanOnly:"true"` + AuthenticateViaGoogleOauth *AuthenticateViaGoogleOauth `tfsdk:"authenticate_via_google_oauth" tfPlanOnly:"true"` + ServiceAccountKeyAuthentication *SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication `tfsdk:"service_account_key_authentication" tfPlanOnly:"true"` } diff --git a/internal/provider/types/service_account_key_authentication.go b/internal/provider/types/source_google_analytics_data_api_service_account_key_authentication.go similarity index 74% rename from internal/provider/types/service_account_key_authentication.go rename to internal/provider/types/source_google_analytics_data_api_service_account_key_authentication.go index a7e118c3b..73a73fe1d 100644 --- a/internal/provider/types/service_account_key_authentication.go +++ b/internal/provider/types/source_google_analytics_data_api_service_account_key_authentication.go @@ -4,6 +4,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type ServiceAccountKeyAuthentication struct { +type SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication struct { CredentialsJSON types.String `tfsdk:"credentials_json"` } 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 deleted file mode 100644 index c615f320a..000000000 --- a/internal/provider/types/source_google_analytics_v4_service_account_only.go +++ /dev/null @@ -1,14 +0,0 @@ -// 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 deleted file mode 100644 index 980ce2ac7..000000000 --- a/internal/provider/types/source_google_analytics_v4_service_account_only_credentials.go +++ /dev/null @@ -1,7 +0,0 @@ -// 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_hardcoded_records.go b/internal/provider/types/source_hardcoded_records.go new file mode 100644 index 000000000..29f39622e --- /dev/null +++ b/internal/provider/types/source_hardcoded_records.go @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type SourceHardcodedRecords struct { + Count types.Int64 `tfsdk:"count"` +} diff --git a/internal/provider/types/source_hibob.go b/internal/provider/types/source_hibob.go new file mode 100644 index 000000000..22d20350a --- /dev/null +++ b/internal/provider/types/source_hibob.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 SourceHibob struct { + IsSandbox types.Bool `tfsdk:"is_sandbox"` + Password types.String `tfsdk:"password"` + Username types.String `tfsdk:"username"` +} diff --git a/internal/provider/types/source_high_level.go b/internal/provider/types/source_high_level.go new file mode 100644 index 000000000..5f1a408f7 --- /dev/null +++ b/internal/provider/types/source_high_level.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 SourceHighLevel struct { + APIKey types.String `tfsdk:"api_key"` + LocationID types.String `tfsdk:"location_id"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_klaviyo.go b/internal/provider/types/source_klaviyo.go index 95707218d..5df187f9d 100644 --- a/internal/provider/types/source_klaviyo.go +++ b/internal/provider/types/source_klaviyo.go @@ -5,6 +5,7 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceKlaviyo struct { - APIKey types.String `tfsdk:"api_key"` - StartDate types.String `tfsdk:"start_date"` + APIKey types.String `tfsdk:"api_key"` + DisableFetchingPredictiveAnalytics types.Bool `tfsdk:"disable_fetching_predictive_analytics"` + StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_leadfeeder.go b/internal/provider/types/source_leadfeeder.go new file mode 100644 index 000000000..322b2496e --- /dev/null +++ b/internal/provider/types/source_leadfeeder.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 SourceLeadfeeder struct { + APIToken types.String `tfsdk:"api_token"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_looker.go b/internal/provider/types/source_looker.go new file mode 100644 index 000000000..fbdad9b38 --- /dev/null +++ b/internal/provider/types/source_looker.go @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type SourceLooker struct { + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + Domain types.String `tfsdk:"domain"` + RunLookIds []types.String `tfsdk:"run_look_ids"` +} diff --git a/internal/provider/types/source_microsoft_onedrive.go b/internal/provider/types/source_microsoft_onedrive.go index 238ad24ae..12d218c24 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 []SourceGoogleDriveFileBasedStreamConfig `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 []SourceMicrosoftOnedriveFileBasedStreamConfig `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 new file mode 100644 index 000000000..0bda64ec1 --- /dev/null +++ b/internal/provider/types/source_microsoft_onedrive_file_based_stream_config.go @@ -0,0 +1,16 @@ +// 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 new file mode 100644 index 000000000..0e0684cb0 --- /dev/null +++ b/internal/provider/types/source_microsoft_onedrive_format.go @@ -0,0 +1,11 @@ +// 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 b702d6217..b0717aa5c 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 []SourceGoogleDriveFileBasedStreamConfig `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 []SourceMicrosoftSharepointFileBasedStreamConfig `tfsdk:"streams"` } diff --git a/internal/provider/types/source_microsoft_sharepoint_file_based_stream_config.go b/internal/provider/types/source_microsoft_sharepoint_file_based_stream_config.go new file mode 100644 index 000000000..f9d05a96f --- /dev/null +++ b/internal/provider/types/source_microsoft_sharepoint_file_based_stream_config.go @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type SourceMicrosoftSharepointFileBasedStreamConfig struct { + DaysToSyncIfHistoryIsFull types.Int64 `tfsdk:"days_to_sync_if_history_is_full"` + Format SourceMicrosoftSharepointFormat `tfsdk:"format"` + Globs []types.String `tfsdk:"globs"` + InputSchema types.String `tfsdk:"input_schema"` + Name types.String `tfsdk:"name"` + PrimaryKey types.String `tfsdk:"primary_key"` + RecentNFilesToReadForSchemaDiscovery types.Int64 `tfsdk:"recent_n_files_to_read_for_schema_discovery"` + Schemaless types.Bool `tfsdk:"schemaless"` + ValidationPolicy types.String `tfsdk:"validation_policy"` +} diff --git a/internal/provider/types/source_microsoft_sharepoint_format.go b/internal/provider/types/source_microsoft_sharepoint_format.go new file mode 100644 index 000000000..864ba2dc5 --- /dev/null +++ b/internal/provider/types/source_microsoft_sharepoint_format.go @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +type SourceMicrosoftSharepointFormat struct { + AvroFormat *AvroFormat `tfsdk:"avro_format" tfPlanOnly:"true"` + CSVFormat *SourceGoogleDriveCSVFormat `tfsdk:"csv_format" tfPlanOnly:"true"` + ExcelFormat *Fake `tfsdk:"excel_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_mixpanel.go b/internal/provider/types/source_mixpanel.go index b03dfcfb4..ded164c13 100644 --- a/internal/provider/types/source_mixpanel.go +++ b/internal/provider/types/source_mixpanel.go @@ -9,6 +9,7 @@ type SourceMixpanel struct { Credentials SourceMixpanelAuthenticationWildcard `tfsdk:"credentials"` DateWindowSize types.Int64 `tfsdk:"date_window_size"` EndDate types.String `tfsdk:"end_date"` + PageSize types.Int64 `tfsdk:"page_size"` ProjectTimezone types.String `tfsdk:"project_timezone"` Region types.String `tfsdk:"region"` SelectPropertiesByDefault types.Bool `tfsdk:"select_properties_by_default"` diff --git a/internal/provider/types/source_mongodb_internal_poc.go b/internal/provider/types/source_mongodb_internal_poc.go deleted file mode 100644 index 2bac7e7ab..000000000 --- a/internal/provider/types/source_mongodb_internal_poc.go +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type SourceMongodbInternalPoc struct { - AuthSource types.String `tfsdk:"auth_source"` - ConnectionString types.String `tfsdk:"connection_string"` - Password types.String `tfsdk:"password"` - ReplicaSet types.String `tfsdk:"replica_set"` - User types.String `tfsdk:"user"` -} diff --git a/internal/provider/types/source_mongodb_v2.go b/internal/provider/types/source_mongodb_v2.go index 81c8176a9..3ad04a63f 100644 --- a/internal/provider/types/source_mongodb_v2.go +++ b/internal/provider/types/source_mongodb_v2.go @@ -7,6 +7,7 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type SourceMongodbV2 struct { DatabaseConfig SourceMongodbV2ClusterType `tfsdk:"database_config"` DiscoverSampleSize types.Int64 `tfsdk:"discover_sample_size"` + InitialLoadTimeoutHours types.Int64 `tfsdk:"initial_load_timeout_hours"` InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"` InvalidCdcCursorPositionBehavior types.String `tfsdk:"invalid_cdc_cursor_position_behavior"` QueueSize types.Int64 `tfsdk:"queue_size"` diff --git a/internal/provider/types/source_okta_authorization_method.go b/internal/provider/types/source_okta_authorization_method.go index db842c5bc..2c4daa4b0 100644 --- a/internal/provider/types/source_okta_authorization_method.go +++ b/internal/provider/types/source_okta_authorization_method.go @@ -3,6 +3,7 @@ package types type SourceOktaAuthorizationMethod struct { - APIToken *SourceK6Cloud `tfsdk:"api_token" tfPlanOnly:"true"` - OAuth20 *DestinationGoogleSheetsAuthenticationViaGoogleOAuth `tfsdk:"o_auth20" tfPlanOnly:"true"` + APIToken *SourceK6Cloud `tfsdk:"api_token" tfPlanOnly:"true"` + OAuth20WithPrivateKey *OAuth20WithPrivateKey `tfsdk:"o_auth20_with_private_key" tfPlanOnly:"true"` + OAuth20 *DestinationGoogleSheetsAuthenticationViaGoogleOAuth `tfsdk:"o_auth20" tfPlanOnly:"true"` } diff --git a/internal/provider/types/source_pennylane.go b/internal/provider/types/source_pennylane.go new file mode 100644 index 000000000..3a452c24a --- /dev/null +++ b/internal/provider/types/source_pennylane.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 SourcePennylane struct { + APIKey types.String `tfsdk:"api_key"` + StartTime types.String `tfsdk:"start_time"` +} diff --git a/internal/provider/types/source_punk_api.go b/internal/provider/types/source_punk_api.go deleted file mode 100644 index 7c8c3e222..000000000 --- a/internal/provider/types/source_punk_api.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 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_reddit.go b/internal/provider/types/source_reddit.go new file mode 100644 index 000000000..602d7baf3 --- /dev/null +++ b/internal/provider/types/source_reddit.go @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type SourceReddit struct { + APIKey types.String `tfsdk:"api_key"` + Exact types.Bool `tfsdk:"exact"` + IncludeOver18 types.Bool `tfsdk:"include_over_18"` + Limit types.Number `tfsdk:"limit"` + Query types.String `tfsdk:"query"` + StartDate types.String `tfsdk:"start_date"` + Subreddits []types.String `tfsdk:"subreddits"` +} diff --git a/internal/provider/types/source_s3.go b/internal/provider/types/source_s3.go index a61dc250a..9427420bd 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 []FileBasedStreamConfig `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 []SourceS3FileBasedStreamConfig `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 new file mode 100644 index 000000000..f5f628a88 --- /dev/null +++ b/internal/provider/types/source_s3_file_based_stream_config.go @@ -0,0 +1,18 @@ +// 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"` + RecentNFilesToReadForSchemaDiscovery types.Int64 `tfsdk:"recent_n_files_to_read_for_schema_discovery"` + 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 new file mode 100644 index 000000000..8611b8a42 --- /dev/null +++ b/internal/provider/types/source_s3_format.go @@ -0,0 +1,11 @@ +// 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_sftp_bulk.go b/internal/provider/types/source_sftp_bulk.go index 94b73b0a0..69201f9cc 100644 --- a/internal/provider/types/source_sftp_bulk.go +++ b/internal/provider/types/source_sftp_bulk.go @@ -5,11 +5,11 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceSftpBulk struct { - Credentials SourceSftpBulkAuthentication `tfsdk:"credentials"` - FolderPath types.String `tfsdk:"folder_path"` - Host types.String `tfsdk:"host"` - Port types.Int64 `tfsdk:"port"` - StartDate types.String `tfsdk:"start_date"` - Streams []SourceSftpBulkFileBasedStreamConfig `tfsdk:"streams"` - Username types.String `tfsdk:"username"` + Credentials SourceSftpBulkAuthentication `tfsdk:"credentials"` + FolderPath types.String `tfsdk:"folder_path"` + Host types.String `tfsdk:"host"` + Port types.Int64 `tfsdk:"port"` + StartDate types.String `tfsdk:"start_date"` + Streams []SourceGcsFileBasedStreamConfig `tfsdk:"streams"` + Username types.String `tfsdk:"username"` } diff --git a/internal/provider/types/source_sftp_bulk_document_file_type_format_experimental.go b/internal/provider/types/source_sftp_bulk_document_file_type_format_experimental.go deleted file mode 100644 index 5cbc9e014..000000000 --- a/internal/provider/types/source_sftp_bulk_document_file_type_format_experimental.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 SourceSftpBulkDocumentFileTypeFormatExperimental struct { - Processing *SourceSftpBulkProcessing `tfsdk:"processing"` - SkipUnprocessableFiles types.Bool `tfsdk:"skip_unprocessable_files"` - Strategy types.String `tfsdk:"strategy"` -} diff --git a/internal/provider/types/source_sftp_bulk_file_based_stream_config.go b/internal/provider/types/source_sftp_bulk_file_based_stream_config.go deleted file mode 100644 index cd5b54d7d..000000000 --- a/internal/provider/types/source_sftp_bulk_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 SourceSftpBulkFileBasedStreamConfig struct { - DaysToSyncIfHistoryIsFull types.Int64 `tfsdk:"days_to_sync_if_history_is_full"` - Format SourceSftpBulkFormat `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_sftp_bulk_format.go b/internal/provider/types/source_sftp_bulk_format.go deleted file mode 100644 index 016f99d71..000000000 --- a/internal/provider/types/source_sftp_bulk_format.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type SourceSftpBulkFormat struct { - AvroFormat *AvroFormat `tfsdk:"avro_format" tfPlanOnly:"true"` - CSVFormat *CSVFormat `tfsdk:"csv_format" tfPlanOnly:"true"` - DocumentFileTypeFormatExperimental *SourceSftpBulkDocumentFileTypeFormatExperimental `tfsdk:"document_file_type_format_experimental" tfPlanOnly:"true"` - JsonlFormat *Fake `tfsdk:"jsonl_format" tfPlanOnly:"true"` - ParquetFormat *ParquetFormat `tfsdk:"parquet_format" tfPlanOnly:"true"` -} diff --git a/internal/provider/types/source_shopify.go b/internal/provider/types/source_shopify.go index 041896250..03c5f80d6 100644 --- a/internal/provider/types/source_shopify.go +++ b/internal/provider/types/source_shopify.go @@ -5,9 +5,12 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceShopify struct { - BulkWindowInDays types.Int64 `tfsdk:"bulk_window_in_days"` - Credentials *SourceShopifyShopifyAuthorizationMethod `tfsdk:"credentials"` - FetchTransactionsUserID types.Bool `tfsdk:"fetch_transactions_user_id"` - Shop types.String `tfsdk:"shop"` - StartDate types.String `tfsdk:"start_date"` + BulkWindowInDays types.Int64 `tfsdk:"bulk_window_in_days"` + Credentials *SourceShopifyShopifyAuthorizationMethod `tfsdk:"credentials"` + FetchTransactionsUserID types.Bool `tfsdk:"fetch_transactions_user_id"` + JobCheckpointInterval types.Int64 `tfsdk:"job_checkpoint_interval"` + JobProductVariantsIncludePresPrices types.Bool `tfsdk:"job_product_variants_include_pres_prices"` + 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 b6338b33f..4c0354bbb 100644 --- a/internal/provider/types/source_snowflake_authorization_method.go +++ b/internal/provider/types/source_snowflake_authorization_method.go @@ -3,6 +3,7 @@ package types type SourceSnowflakeAuthorizationMethod struct { - OAuth20 *SourceSnowflakeOAuth20 `tfsdk:"o_auth20" tfPlanOnly:"true"` - UsernameAndPassword *UsernamePassword `tfsdk:"username_and_password" tfPlanOnly:"true"` + KeyPairAuthentication *SourceSnowflakeKeyPairAuthentication `tfsdk:"key_pair_authentication" 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 new file mode 100644 index 000000000..8b2a8302d --- /dev/null +++ b/internal/provider/types/source_snowflake_key_pair_authentication.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 SourceSnowflakeKeyPairAuthentication struct { + PrivateKey types.String `tfsdk:"private_key"` + PrivateKeyPassword types.String `tfsdk:"private_key_password"` + Username types.String `tfsdk:"username"` +} diff --git a/internal/provider/types/source_xkcd.go b/internal/provider/types/source_xkcd.go new file mode 100644 index 000000000..b687b72ce --- /dev/null +++ b/internal/provider/types/source_xkcd.go @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type SourceXkcd struct { + ComicNumber types.String `tfsdk:"comic_number"` +} diff --git a/internal/provider/types/unstructured_document_format.go b/internal/provider/types/unstructured_document_format.go new file mode 100644 index 000000000..daaabe8ec --- /dev/null +++ b/internal/provider/types/unstructured_document_format.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 UnstructuredDocumentFormat struct { + Processing *SourceGcsProcessing `tfsdk:"processing"` + SkipUnprocessableFiles types.Bool `tfsdk:"skip_unprocessable_files"` + Strategy types.String `tfsdk:"strategy"` +} diff --git a/internal/sdk/destinations.go b/internal/sdk/destinations.go index 2678298dc..953088084 100644 --- a/internal/sdk/destinations.go +++ b/internal/sdk/destinations.go @@ -2085,12 +2085,12 @@ func (s *Destinations) CreateDestinationGoogleSheets(ctx context.Context, reques } -// CreateDestinationLangchain - Create a destination +// 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) CreateDestinationLangchain(ctx context.Context, request *shared.DestinationLangchainCreateRequest, opts ...operations.Option) (*operations.CreateDestinationLangchainResponse, error) { +func (s *Destinations) CreateDestinationMilvus(ctx context.Context, request *shared.DestinationMilvusCreateRequest, opts ...operations.Option) (*operations.CreateDestinationMilvusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationLangchain", + OperationID: "createDestinationMilvus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2169,7 +2169,7 @@ func (s *Destinations) CreateDestinationLangchain(ctx context.Context, request * } } - res := &operations.CreateDestinationLangchainResponse{ + res := &operations.CreateDestinationMilvusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2206,12 +2206,12 @@ func (s *Destinations) CreateDestinationLangchain(ctx context.Context, request * } -// CreateDestinationMilvus - Create a destination +// CreateDestinationMongodb - 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) { +func (s *Destinations) CreateDestinationMongodb(ctx context.Context, request *shared.DestinationMongodbCreateRequest, opts ...operations.Option) (*operations.CreateDestinationMongodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationMilvus", + OperationID: "createDestinationMongodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2290,7 +2290,7 @@ func (s *Destinations) CreateDestinationMilvus(ctx context.Context, request *sha } } - res := &operations.CreateDestinationMilvusResponse{ + res := &operations.CreateDestinationMongodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2327,12 +2327,12 @@ func (s *Destinations) CreateDestinationMilvus(ctx context.Context, request *sha } -// CreateDestinationMongodb - Create a destination +// CreateDestinationMssql - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationMongodb(ctx context.Context, request *shared.DestinationMongodbCreateRequest, opts ...operations.Option) (*operations.CreateDestinationMongodbResponse, error) { +func (s *Destinations) CreateDestinationMssql(ctx context.Context, request *shared.DestinationMssqlCreateRequest, opts ...operations.Option) (*operations.CreateDestinationMssqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationMongodb", + OperationID: "createDestinationMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2411,7 +2411,7 @@ func (s *Destinations) CreateDestinationMongodb(ctx context.Context, request *sh } } - res := &operations.CreateDestinationMongodbResponse{ + res := &operations.CreateDestinationMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2448,12 +2448,12 @@ func (s *Destinations) CreateDestinationMongodb(ctx context.Context, request *sh } -// CreateDestinationMssql - Create a destination +// CreateDestinationMysql - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationMssql(ctx context.Context, request *shared.DestinationMssqlCreateRequest, opts ...operations.Option) (*operations.CreateDestinationMssqlResponse, error) { +func (s *Destinations) CreateDestinationMysql(ctx context.Context, request *shared.DestinationMysqlCreateRequest, opts ...operations.Option) (*operations.CreateDestinationMysqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationMssql", + OperationID: "createDestinationMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2532,7 +2532,7 @@ func (s *Destinations) CreateDestinationMssql(ctx context.Context, request *shar } } - res := &operations.CreateDestinationMssqlResponse{ + res := &operations.CreateDestinationMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2569,12 +2569,12 @@ func (s *Destinations) CreateDestinationMssql(ctx context.Context, request *shar } -// CreateDestinationMysql - Create a destination +// CreateDestinationOracle - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationMysql(ctx context.Context, request *shared.DestinationMysqlCreateRequest, opts ...operations.Option) (*operations.CreateDestinationMysqlResponse, error) { +func (s *Destinations) CreateDestinationOracle(ctx context.Context, request *shared.DestinationOracleCreateRequest, opts ...operations.Option) (*operations.CreateDestinationOracleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationMysql", + OperationID: "createDestinationOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2653,7 +2653,7 @@ func (s *Destinations) CreateDestinationMysql(ctx context.Context, request *shar } } - res := &operations.CreateDestinationMysqlResponse{ + res := &operations.CreateDestinationOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2690,12 +2690,12 @@ func (s *Destinations) CreateDestinationMysql(ctx context.Context, request *shar } -// CreateDestinationOracle - Create a destination +// CreateDestinationPinecone - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationOracle(ctx context.Context, request *shared.DestinationOracleCreateRequest, opts ...operations.Option) (*operations.CreateDestinationOracleResponse, error) { +func (s *Destinations) CreateDestinationPinecone(ctx context.Context, request *shared.DestinationPineconeCreateRequest, opts ...operations.Option) (*operations.CreateDestinationPineconeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationOracle", + OperationID: "createDestinationPinecone", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2774,7 +2774,7 @@ func (s *Destinations) CreateDestinationOracle(ctx context.Context, request *sha } } - res := &operations.CreateDestinationOracleResponse{ + res := &operations.CreateDestinationPineconeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2811,12 +2811,12 @@ func (s *Destinations) CreateDestinationOracle(ctx context.Context, request *sha } -// CreateDestinationPinecone - Create a destination +// CreateDestinationPostgres - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationPinecone(ctx context.Context, request *shared.DestinationPineconeCreateRequest, opts ...operations.Option) (*operations.CreateDestinationPineconeResponse, error) { +func (s *Destinations) CreateDestinationPostgres(ctx context.Context, request *shared.DestinationPostgresCreateRequest, opts ...operations.Option) (*operations.CreateDestinationPostgresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationPinecone", + OperationID: "createDestinationPostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2895,7 +2895,7 @@ func (s *Destinations) CreateDestinationPinecone(ctx context.Context, request *s } } - res := &operations.CreateDestinationPineconeResponse{ + res := &operations.CreateDestinationPostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2932,12 +2932,12 @@ func (s *Destinations) CreateDestinationPinecone(ctx context.Context, request *s } -// CreateDestinationPostgres - Create a destination +// CreateDestinationPubsub - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationPostgres(ctx context.Context, request *shared.DestinationPostgresCreateRequest, opts ...operations.Option) (*operations.CreateDestinationPostgresResponse, error) { +func (s *Destinations) CreateDestinationPubsub(ctx context.Context, request *shared.DestinationPubsubCreateRequest, opts ...operations.Option) (*operations.CreateDestinationPubsubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationPostgres", + OperationID: "createDestinationPubsub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3016,7 +3016,7 @@ func (s *Destinations) CreateDestinationPostgres(ctx context.Context, request *s } } - res := &operations.CreateDestinationPostgresResponse{ + res := &operations.CreateDestinationPubsubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3053,12 +3053,12 @@ func (s *Destinations) CreateDestinationPostgres(ctx context.Context, request *s } -// CreateDestinationPubsub - Create a destination +// CreateDestinationQdrant - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationPubsub(ctx context.Context, request *shared.DestinationPubsubCreateRequest, opts ...operations.Option) (*operations.CreateDestinationPubsubResponse, error) { +func (s *Destinations) CreateDestinationQdrant(ctx context.Context, request *shared.DestinationQdrantCreateRequest, opts ...operations.Option) (*operations.CreateDestinationQdrantResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationPubsub", + OperationID: "createDestinationQdrant", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3137,7 +3137,7 @@ func (s *Destinations) CreateDestinationPubsub(ctx context.Context, request *sha } } - res := &operations.CreateDestinationPubsubResponse{ + res := &operations.CreateDestinationQdrantResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3174,12 +3174,12 @@ func (s *Destinations) CreateDestinationPubsub(ctx context.Context, request *sha } -// CreateDestinationQdrant - Create a destination +// CreateDestinationRedis - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationQdrant(ctx context.Context, request *shared.DestinationQdrantCreateRequest, opts ...operations.Option) (*operations.CreateDestinationQdrantResponse, error) { +func (s *Destinations) CreateDestinationRedis(ctx context.Context, request *shared.DestinationRedisCreateRequest, opts ...operations.Option) (*operations.CreateDestinationRedisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationQdrant", + OperationID: "createDestinationRedis", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3258,7 +3258,7 @@ func (s *Destinations) CreateDestinationQdrant(ctx context.Context, request *sha } } - res := &operations.CreateDestinationQdrantResponse{ + res := &operations.CreateDestinationRedisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3295,12 +3295,12 @@ func (s *Destinations) CreateDestinationQdrant(ctx context.Context, request *sha } -// CreateDestinationRedis - Create a destination +// CreateDestinationRedshift - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationRedis(ctx context.Context, request *shared.DestinationRedisCreateRequest, opts ...operations.Option) (*operations.CreateDestinationRedisResponse, error) { +func (s *Destinations) CreateDestinationRedshift(ctx context.Context, request *shared.DestinationRedshiftCreateRequest, opts ...operations.Option) (*operations.CreateDestinationRedshiftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationRedis", + OperationID: "createDestinationRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3379,7 +3379,7 @@ func (s *Destinations) CreateDestinationRedis(ctx context.Context, request *shar } } - res := &operations.CreateDestinationRedisResponse{ + res := &operations.CreateDestinationRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3416,12 +3416,12 @@ func (s *Destinations) CreateDestinationRedis(ctx context.Context, request *shar } -// CreateDestinationRedshift - Create a destination +// CreateDestinationS3 - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationRedshift(ctx context.Context, request *shared.DestinationRedshiftCreateRequest, opts ...operations.Option) (*operations.CreateDestinationRedshiftResponse, error) { +func (s *Destinations) CreateDestinationS3(ctx context.Context, request *shared.DestinationS3CreateRequest, opts ...operations.Option) (*operations.CreateDestinationS3Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationRedshift", + OperationID: "createDestinationS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3500,7 +3500,7 @@ func (s *Destinations) CreateDestinationRedshift(ctx context.Context, request *s } } - res := &operations.CreateDestinationRedshiftResponse{ + res := &operations.CreateDestinationS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3537,12 +3537,12 @@ func (s *Destinations) CreateDestinationRedshift(ctx context.Context, request *s } -// CreateDestinationS3 - Create a destination +// CreateDestinationS3Glue - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationS3(ctx context.Context, request *shared.DestinationS3CreateRequest, opts ...operations.Option) (*operations.CreateDestinationS3Response, error) { +func (s *Destinations) CreateDestinationS3Glue(ctx context.Context, request *shared.DestinationS3GlueCreateRequest, opts ...operations.Option) (*operations.CreateDestinationS3GlueResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationS3", + OperationID: "createDestinationS3Glue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3621,7 +3621,7 @@ func (s *Destinations) CreateDestinationS3(ctx context.Context, request *shared. } } - res := &operations.CreateDestinationS3Response{ + res := &operations.CreateDestinationS3GlueResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3658,12 +3658,12 @@ func (s *Destinations) CreateDestinationS3(ctx context.Context, request *shared. } -// CreateDestinationS3Glue - Create a destination +// CreateDestinationSftpJSON - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationS3Glue(ctx context.Context, request *shared.DestinationS3GlueCreateRequest, opts ...operations.Option) (*operations.CreateDestinationS3GlueResponse, error) { +func (s *Destinations) CreateDestinationSftpJSON(ctx context.Context, request *shared.DestinationSftpJSONCreateRequest, opts ...operations.Option) (*operations.CreateDestinationSftpJSONResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationS3Glue", + OperationID: "createDestinationSftpJson", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3742,7 +3742,7 @@ func (s *Destinations) CreateDestinationS3Glue(ctx context.Context, request *sha } } - res := &operations.CreateDestinationS3GlueResponse{ + res := &operations.CreateDestinationSftpJSONResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3779,12 +3779,12 @@ func (s *Destinations) CreateDestinationS3Glue(ctx context.Context, request *sha } -// CreateDestinationSftpJSON - Create a destination +// CreateDestinationSnowflake - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationSftpJSON(ctx context.Context, request *shared.DestinationSftpJSONCreateRequest, opts ...operations.Option) (*operations.CreateDestinationSftpJSONResponse, error) { +func (s *Destinations) CreateDestinationSnowflake(ctx context.Context, request *shared.DestinationSnowflakeCreateRequest, opts ...operations.Option) (*operations.CreateDestinationSnowflakeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationSftpJson", + OperationID: "createDestinationSnowflake", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3863,7 +3863,7 @@ func (s *Destinations) CreateDestinationSftpJSON(ctx context.Context, request *s } } - res := &operations.CreateDestinationSftpJSONResponse{ + res := &operations.CreateDestinationSnowflakeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3900,12 +3900,12 @@ func (s *Destinations) CreateDestinationSftpJSON(ctx context.Context, request *s } -// CreateDestinationSnowflake - Create a destination +// CreateDestinationSnowflakeCortex - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationSnowflake(ctx context.Context, request *shared.DestinationSnowflakeCreateRequest, opts ...operations.Option) (*operations.CreateDestinationSnowflakeResponse, error) { +func (s *Destinations) CreateDestinationSnowflakeCortex(ctx context.Context, request *shared.DestinationSnowflakeCortexCreateRequest, opts ...operations.Option) (*operations.CreateDestinationSnowflakeCortexResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationSnowflake", + OperationID: "createDestinationSnowflakeCortex", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3984,7 +3984,7 @@ func (s *Destinations) CreateDestinationSnowflake(ctx context.Context, request * } } - res := &operations.CreateDestinationSnowflakeResponse{ + res := &operations.CreateDestinationSnowflakeCortexResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4021,12 +4021,12 @@ func (s *Destinations) CreateDestinationSnowflake(ctx context.Context, request * } -// CreateDestinationSnowflakeCortex - Create a destination +// CreateDestinationTeradata - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationSnowflakeCortex(ctx context.Context, request *shared.DestinationSnowflakeCortexCreateRequest, opts ...operations.Option) (*operations.CreateDestinationSnowflakeCortexResponse, error) { +func (s *Destinations) CreateDestinationTeradata(ctx context.Context, request *shared.DestinationTeradataCreateRequest, opts ...operations.Option) (*operations.CreateDestinationTeradataResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationSnowflakeCortex", + OperationID: "createDestinationTeradata", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4105,7 +4105,7 @@ func (s *Destinations) CreateDestinationSnowflakeCortex(ctx context.Context, req } } - res := &operations.CreateDestinationSnowflakeCortexResponse{ + res := &operations.CreateDestinationTeradataResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4142,12 +4142,12 @@ func (s *Destinations) CreateDestinationSnowflakeCortex(ctx context.Context, req } -// CreateDestinationTeradata - Create a destination +// CreateDestinationTimeplus - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationTeradata(ctx context.Context, request *shared.DestinationTeradataCreateRequest, opts ...operations.Option) (*operations.CreateDestinationTeradataResponse, error) { +func (s *Destinations) CreateDestinationTimeplus(ctx context.Context, request *shared.DestinationTimeplusCreateRequest, opts ...operations.Option) (*operations.CreateDestinationTimeplusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationTeradata", + OperationID: "createDestinationTimeplus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4226,7 +4226,7 @@ func (s *Destinations) CreateDestinationTeradata(ctx context.Context, request *s } } - res := &operations.CreateDestinationTeradataResponse{ + res := &operations.CreateDestinationTimeplusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6515,110 +6515,6 @@ 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{ @@ -8387,11 +8283,11 @@ func (s *Destinations) DeleteDestinationTeradata(ctx context.Context, request op } -// DeleteDestinationTypesense - Delete a Destination -func (s *Destinations) DeleteDestinationTypesense(ctx context.Context, request operations.DeleteDestinationTypesenseRequest, opts ...operations.Option) (*operations.DeleteDestinationTypesenseResponse, error) { +// DeleteDestinationTimeplus - Delete a Destination +func (s *Destinations) DeleteDestinationTimeplus(ctx context.Context, request operations.DeleteDestinationTimeplusRequest, opts ...operations.Option) (*operations.DeleteDestinationTimeplusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationTypesense", + OperationID: "deleteDestinationTimeplus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8464,7 +8360,7 @@ func (s *Destinations) DeleteDestinationTypesense(ctx context.Context, request o } } - res := &operations.DeleteDestinationTypesenseResponse{ + res := &operations.DeleteDestinationTimeplusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8491,11 +8387,11 @@ func (s *Destinations) DeleteDestinationTypesense(ctx context.Context, request o } -// DeleteDestinationVectara - Delete a Destination -func (s *Destinations) DeleteDestinationVectara(ctx context.Context, request operations.DeleteDestinationVectaraRequest, opts ...operations.Option) (*operations.DeleteDestinationVectaraResponse, error) { +// DeleteDestinationTypesense - Delete a Destination +func (s *Destinations) DeleteDestinationTypesense(ctx context.Context, request operations.DeleteDestinationTypesenseRequest, opts ...operations.Option) (*operations.DeleteDestinationTypesenseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationVectara", + OperationID: "deleteDestinationTypesense", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8568,7 +8464,7 @@ func (s *Destinations) DeleteDestinationVectara(ctx context.Context, request ope } } - res := &operations.DeleteDestinationVectaraResponse{ + res := &operations.DeleteDestinationTypesenseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8595,11 +8491,11 @@ func (s *Destinations) DeleteDestinationVectara(ctx context.Context, request ope } -// DeleteDestinationWeaviate - Delete a Destination -func (s *Destinations) DeleteDestinationWeaviate(ctx context.Context, request operations.DeleteDestinationWeaviateRequest, opts ...operations.Option) (*operations.DeleteDestinationWeaviateResponse, error) { +// DeleteDestinationVectara - Delete a Destination +func (s *Destinations) DeleteDestinationVectara(ctx context.Context, request operations.DeleteDestinationVectaraRequest, opts ...operations.Option) (*operations.DeleteDestinationVectaraResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationWeaviate", + OperationID: "deleteDestinationVectara", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8672,7 +8568,111 @@ func (s *Destinations) DeleteDestinationWeaviate(ctx context.Context, request op } } - res := &operations.DeleteDestinationWeaviateResponse{ + res := &operations.DeleteDestinationVectaraResponse{ + 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 + +} + +// DeleteDestinationWeaviate - Delete a Destination +func (s *Destinations) DeleteDestinationWeaviate(ctx context.Context, request operations.DeleteDestinationWeaviateRequest, opts ...operations.Option) (*operations.DeleteDestinationWeaviateResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteDestinationWeaviate", + 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.DeleteDestinationWeaviateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10741,11 +10741,11 @@ 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) { +// GetDestinationMilvus - Get Destination details +func (s *Destinations) GetDestinationMilvus(ctx context.Context, request operations.GetDestinationMilvusRequest, opts ...operations.Option) (*operations.GetDestinationMilvusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationLangchain", + OperationID: "getDestinationMilvus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10818,7 +10818,7 @@ func (s *Destinations) GetDestinationLangchain(ctx context.Context, request oper } } - res := &operations.GetDestinationLangchainResponse{ + res := &operations.GetDestinationMilvusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10855,11 +10855,11 @@ func (s *Destinations) GetDestinationLangchain(ctx context.Context, request oper } -// GetDestinationMilvus - Get Destination details -func (s *Destinations) GetDestinationMilvus(ctx context.Context, request operations.GetDestinationMilvusRequest, opts ...operations.Option) (*operations.GetDestinationMilvusResponse, error) { +// GetDestinationMongodb - Get Destination details +func (s *Destinations) GetDestinationMongodb(ctx context.Context, request operations.GetDestinationMongodbRequest, opts ...operations.Option) (*operations.GetDestinationMongodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationMilvus", + OperationID: "getDestinationMongodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10932,7 +10932,7 @@ func (s *Destinations) GetDestinationMilvus(ctx context.Context, request operati } } - res := &operations.GetDestinationMilvusResponse{ + res := &operations.GetDestinationMongodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10969,11 +10969,11 @@ func (s *Destinations) GetDestinationMilvus(ctx context.Context, request operati } -// GetDestinationMongodb - Get Destination details -func (s *Destinations) GetDestinationMongodb(ctx context.Context, request operations.GetDestinationMongodbRequest, opts ...operations.Option) (*operations.GetDestinationMongodbResponse, error) { +// GetDestinationMssql - Get Destination details +func (s *Destinations) GetDestinationMssql(ctx context.Context, request operations.GetDestinationMssqlRequest, opts ...operations.Option) (*operations.GetDestinationMssqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationMongodb", + OperationID: "getDestinationMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11046,7 +11046,7 @@ func (s *Destinations) GetDestinationMongodb(ctx context.Context, request operat } } - res := &operations.GetDestinationMongodbResponse{ + res := &operations.GetDestinationMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11083,11 +11083,11 @@ func (s *Destinations) GetDestinationMongodb(ctx context.Context, request operat } -// GetDestinationMssql - Get Destination details -func (s *Destinations) GetDestinationMssql(ctx context.Context, request operations.GetDestinationMssqlRequest, opts ...operations.Option) (*operations.GetDestinationMssqlResponse, error) { +// GetDestinationMysql - Get Destination details +func (s *Destinations) GetDestinationMysql(ctx context.Context, request operations.GetDestinationMysqlRequest, opts ...operations.Option) (*operations.GetDestinationMysqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationMssql", + OperationID: "getDestinationMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11160,7 +11160,7 @@ func (s *Destinations) GetDestinationMssql(ctx context.Context, request operatio } } - res := &operations.GetDestinationMssqlResponse{ + res := &operations.GetDestinationMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11197,11 +11197,11 @@ func (s *Destinations) GetDestinationMssql(ctx context.Context, request operatio } -// GetDestinationMysql - Get Destination details -func (s *Destinations) GetDestinationMysql(ctx context.Context, request operations.GetDestinationMysqlRequest, opts ...operations.Option) (*operations.GetDestinationMysqlResponse, error) { +// GetDestinationOracle - Get Destination details +func (s *Destinations) GetDestinationOracle(ctx context.Context, request operations.GetDestinationOracleRequest, opts ...operations.Option) (*operations.GetDestinationOracleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationMysql", + OperationID: "getDestinationOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11274,7 +11274,7 @@ func (s *Destinations) GetDestinationMysql(ctx context.Context, request operatio } } - res := &operations.GetDestinationMysqlResponse{ + res := &operations.GetDestinationOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11311,11 +11311,11 @@ func (s *Destinations) GetDestinationMysql(ctx context.Context, request operatio } -// GetDestinationOracle - Get Destination details -func (s *Destinations) GetDestinationOracle(ctx context.Context, request operations.GetDestinationOracleRequest, opts ...operations.Option) (*operations.GetDestinationOracleResponse, error) { +// GetDestinationPinecone - Get Destination details +func (s *Destinations) GetDestinationPinecone(ctx context.Context, request operations.GetDestinationPineconeRequest, opts ...operations.Option) (*operations.GetDestinationPineconeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationOracle", + OperationID: "getDestinationPinecone", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11388,7 +11388,7 @@ func (s *Destinations) GetDestinationOracle(ctx context.Context, request operati } } - res := &operations.GetDestinationOracleResponse{ + res := &operations.GetDestinationPineconeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11425,11 +11425,11 @@ func (s *Destinations) GetDestinationOracle(ctx context.Context, request operati } -// GetDestinationPinecone - Get Destination details -func (s *Destinations) GetDestinationPinecone(ctx context.Context, request operations.GetDestinationPineconeRequest, opts ...operations.Option) (*operations.GetDestinationPineconeResponse, error) { +// GetDestinationPostgres - Get Destination details +func (s *Destinations) GetDestinationPostgres(ctx context.Context, request operations.GetDestinationPostgresRequest, opts ...operations.Option) (*operations.GetDestinationPostgresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationPinecone", + OperationID: "getDestinationPostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11502,7 +11502,7 @@ func (s *Destinations) GetDestinationPinecone(ctx context.Context, request opera } } - res := &operations.GetDestinationPineconeResponse{ + res := &operations.GetDestinationPostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11539,11 +11539,11 @@ func (s *Destinations) GetDestinationPinecone(ctx context.Context, request opera } -// GetDestinationPostgres - Get Destination details -func (s *Destinations) GetDestinationPostgres(ctx context.Context, request operations.GetDestinationPostgresRequest, opts ...operations.Option) (*operations.GetDestinationPostgresResponse, error) { +// GetDestinationPubsub - Get Destination details +func (s *Destinations) GetDestinationPubsub(ctx context.Context, request operations.GetDestinationPubsubRequest, opts ...operations.Option) (*operations.GetDestinationPubsubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationPostgres", + OperationID: "getDestinationPubsub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11616,7 +11616,7 @@ func (s *Destinations) GetDestinationPostgres(ctx context.Context, request opera } } - res := &operations.GetDestinationPostgresResponse{ + res := &operations.GetDestinationPubsubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11653,11 +11653,11 @@ func (s *Destinations) GetDestinationPostgres(ctx context.Context, request opera } -// GetDestinationPubsub - Get Destination details -func (s *Destinations) GetDestinationPubsub(ctx context.Context, request operations.GetDestinationPubsubRequest, opts ...operations.Option) (*operations.GetDestinationPubsubResponse, error) { +// GetDestinationQdrant - Get Destination details +func (s *Destinations) GetDestinationQdrant(ctx context.Context, request operations.GetDestinationQdrantRequest, opts ...operations.Option) (*operations.GetDestinationQdrantResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationPubsub", + OperationID: "getDestinationQdrant", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11730,7 +11730,7 @@ func (s *Destinations) GetDestinationPubsub(ctx context.Context, request operati } } - res := &operations.GetDestinationPubsubResponse{ + res := &operations.GetDestinationQdrantResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11767,11 +11767,11 @@ func (s *Destinations) GetDestinationPubsub(ctx context.Context, request operati } -// GetDestinationQdrant - Get Destination details -func (s *Destinations) GetDestinationQdrant(ctx context.Context, request operations.GetDestinationQdrantRequest, opts ...operations.Option) (*operations.GetDestinationQdrantResponse, error) { +// GetDestinationRedis - Get Destination details +func (s *Destinations) GetDestinationRedis(ctx context.Context, request operations.GetDestinationRedisRequest, opts ...operations.Option) (*operations.GetDestinationRedisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationQdrant", + OperationID: "getDestinationRedis", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11844,7 +11844,7 @@ func (s *Destinations) GetDestinationQdrant(ctx context.Context, request operati } } - res := &operations.GetDestinationQdrantResponse{ + res := &operations.GetDestinationRedisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11881,11 +11881,11 @@ func (s *Destinations) GetDestinationQdrant(ctx context.Context, request operati } -// GetDestinationRedis - Get Destination details -func (s *Destinations) GetDestinationRedis(ctx context.Context, request operations.GetDestinationRedisRequest, opts ...operations.Option) (*operations.GetDestinationRedisResponse, error) { +// GetDestinationRedshift - Get Destination details +func (s *Destinations) GetDestinationRedshift(ctx context.Context, request operations.GetDestinationRedshiftRequest, opts ...operations.Option) (*operations.GetDestinationRedshiftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationRedis", + OperationID: "getDestinationRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11958,7 +11958,7 @@ func (s *Destinations) GetDestinationRedis(ctx context.Context, request operatio } } - res := &operations.GetDestinationRedisResponse{ + res := &operations.GetDestinationRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11995,11 +11995,11 @@ func (s *Destinations) GetDestinationRedis(ctx context.Context, request operatio } -// GetDestinationRedshift - Get Destination details -func (s *Destinations) GetDestinationRedshift(ctx context.Context, request operations.GetDestinationRedshiftRequest, opts ...operations.Option) (*operations.GetDestinationRedshiftResponse, error) { +// GetDestinationS3 - Get Destination details +func (s *Destinations) GetDestinationS3(ctx context.Context, request operations.GetDestinationS3Request, opts ...operations.Option) (*operations.GetDestinationS3Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationRedshift", + OperationID: "getDestinationS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12072,7 +12072,7 @@ func (s *Destinations) GetDestinationRedshift(ctx context.Context, request opera } } - res := &operations.GetDestinationRedshiftResponse{ + res := &operations.GetDestinationS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12109,11 +12109,11 @@ func (s *Destinations) GetDestinationRedshift(ctx context.Context, request opera } -// GetDestinationS3 - Get Destination details -func (s *Destinations) GetDestinationS3(ctx context.Context, request operations.GetDestinationS3Request, opts ...operations.Option) (*operations.GetDestinationS3Response, error) { +// GetDestinationS3Glue - Get Destination details +func (s *Destinations) GetDestinationS3Glue(ctx context.Context, request operations.GetDestinationS3GlueRequest, opts ...operations.Option) (*operations.GetDestinationS3GlueResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationS3", + OperationID: "getDestinationS3Glue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12186,7 +12186,7 @@ func (s *Destinations) GetDestinationS3(ctx context.Context, request operations. } } - res := &operations.GetDestinationS3Response{ + res := &operations.GetDestinationS3GlueResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12223,11 +12223,11 @@ func (s *Destinations) GetDestinationS3(ctx context.Context, request operations. } -// GetDestinationS3Glue - Get Destination details -func (s *Destinations) GetDestinationS3Glue(ctx context.Context, request operations.GetDestinationS3GlueRequest, opts ...operations.Option) (*operations.GetDestinationS3GlueResponse, error) { +// GetDestinationSftpJSON - Get Destination details +func (s *Destinations) GetDestinationSftpJSON(ctx context.Context, request operations.GetDestinationSftpJSONRequest, opts ...operations.Option) (*operations.GetDestinationSftpJSONResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationS3Glue", + OperationID: "getDestinationSftpJson", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12300,7 +12300,7 @@ func (s *Destinations) GetDestinationS3Glue(ctx context.Context, request operati } } - res := &operations.GetDestinationS3GlueResponse{ + res := &operations.GetDestinationSftpJSONResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12337,11 +12337,11 @@ func (s *Destinations) GetDestinationS3Glue(ctx context.Context, request operati } -// GetDestinationSftpJSON - Get Destination details -func (s *Destinations) GetDestinationSftpJSON(ctx context.Context, request operations.GetDestinationSftpJSONRequest, opts ...operations.Option) (*operations.GetDestinationSftpJSONResponse, error) { +// GetDestinationSnowflake - Get Destination details +func (s *Destinations) GetDestinationSnowflake(ctx context.Context, request operations.GetDestinationSnowflakeRequest, opts ...operations.Option) (*operations.GetDestinationSnowflakeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationSftpJson", + OperationID: "getDestinationSnowflake", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12414,7 +12414,7 @@ func (s *Destinations) GetDestinationSftpJSON(ctx context.Context, request opera } } - res := &operations.GetDestinationSftpJSONResponse{ + res := &operations.GetDestinationSnowflakeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12451,11 +12451,11 @@ func (s *Destinations) GetDestinationSftpJSON(ctx context.Context, request opera } -// GetDestinationSnowflake - Get Destination details -func (s *Destinations) GetDestinationSnowflake(ctx context.Context, request operations.GetDestinationSnowflakeRequest, opts ...operations.Option) (*operations.GetDestinationSnowflakeResponse, error) { +// GetDestinationSnowflakeCortex - Get Destination details +func (s *Destinations) GetDestinationSnowflakeCortex(ctx context.Context, request operations.GetDestinationSnowflakeCortexRequest, opts ...operations.Option) (*operations.GetDestinationSnowflakeCortexResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationSnowflake", + OperationID: "getDestinationSnowflakeCortex", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12528,7 +12528,7 @@ func (s *Destinations) GetDestinationSnowflake(ctx context.Context, request oper } } - res := &operations.GetDestinationSnowflakeResponse{ + res := &operations.GetDestinationSnowflakeCortexResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12565,11 +12565,11 @@ func (s *Destinations) GetDestinationSnowflake(ctx context.Context, request oper } -// GetDestinationSnowflakeCortex - Get Destination details -func (s *Destinations) GetDestinationSnowflakeCortex(ctx context.Context, request operations.GetDestinationSnowflakeCortexRequest, opts ...operations.Option) (*operations.GetDestinationSnowflakeCortexResponse, error) { +// GetDestinationTeradata - Get Destination details +func (s *Destinations) GetDestinationTeradata(ctx context.Context, request operations.GetDestinationTeradataRequest, opts ...operations.Option) (*operations.GetDestinationTeradataResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationSnowflakeCortex", + OperationID: "getDestinationTeradata", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12642,7 +12642,7 @@ func (s *Destinations) GetDestinationSnowflakeCortex(ctx context.Context, reques } } - res := &operations.GetDestinationSnowflakeCortexResponse{ + res := &operations.GetDestinationTeradataResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12679,11 +12679,11 @@ func (s *Destinations) GetDestinationSnowflakeCortex(ctx context.Context, reques } -// GetDestinationTeradata - Get Destination details -func (s *Destinations) GetDestinationTeradata(ctx context.Context, request operations.GetDestinationTeradataRequest, opts ...operations.Option) (*operations.GetDestinationTeradataResponse, error) { +// GetDestinationTimeplus - Get Destination details +func (s *Destinations) GetDestinationTimeplus(ctx context.Context, request operations.GetDestinationTimeplusRequest, opts ...operations.Option) (*operations.GetDestinationTimeplusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationTeradata", + OperationID: "getDestinationTimeplus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12756,7 +12756,7 @@ func (s *Destinations) GetDestinationTeradata(ctx context.Context, request opera } } - res := &operations.GetDestinationTeradataResponse{ + res := &operations.GetDestinationTimeplusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15367,11 +15367,11 @@ 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) { +// PutDestinationMilvus - Update a Destination fully +func (s *Destinations) PutDestinationMilvus(ctx context.Context, request operations.PutDestinationMilvusRequest, opts ...operations.Option) (*operations.PutDestinationMilvusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationLangchain", + OperationID: "putDestinationMilvus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15393,7 +15393,7 @@ func (s *Destinations) PutDestinationLangchain(ctx context.Context, request oper return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationLangchainPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMilvusPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -15450,7 +15450,7 @@ func (s *Destinations) PutDestinationLangchain(ctx context.Context, request oper } } - res := &operations.PutDestinationLangchainResponse{ + res := &operations.PutDestinationMilvusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15477,11 +15477,11 @@ func (s *Destinations) PutDestinationLangchain(ctx context.Context, request oper } -// PutDestinationMilvus - Update a Destination fully -func (s *Destinations) PutDestinationMilvus(ctx context.Context, request operations.PutDestinationMilvusRequest, opts ...operations.Option) (*operations.PutDestinationMilvusResponse, error) { +// PutDestinationMongodb - Update a Destination fully +func (s *Destinations) PutDestinationMongodb(ctx context.Context, request operations.PutDestinationMongodbRequest, opts ...operations.Option) (*operations.PutDestinationMongodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationMilvus", + OperationID: "putDestinationMongodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15503,7 +15503,7 @@ func (s *Destinations) PutDestinationMilvus(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMilvusPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMongodbPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -15560,7 +15560,7 @@ func (s *Destinations) PutDestinationMilvus(ctx context.Context, request operati } } - res := &operations.PutDestinationMilvusResponse{ + res := &operations.PutDestinationMongodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15587,11 +15587,11 @@ func (s *Destinations) PutDestinationMilvus(ctx context.Context, request operati } -// PutDestinationMongodb - Update a Destination fully -func (s *Destinations) PutDestinationMongodb(ctx context.Context, request operations.PutDestinationMongodbRequest, opts ...operations.Option) (*operations.PutDestinationMongodbResponse, error) { +// PutDestinationMssql - Update a Destination fully +func (s *Destinations) PutDestinationMssql(ctx context.Context, request operations.PutDestinationMssqlRequest, opts ...operations.Option) (*operations.PutDestinationMssqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationMongodb", + OperationID: "putDestinationMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15613,7 +15613,7 @@ func (s *Destinations) PutDestinationMongodb(ctx context.Context, request operat return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMongodbPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMssqlPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -15670,7 +15670,7 @@ func (s *Destinations) PutDestinationMongodb(ctx context.Context, request operat } } - res := &operations.PutDestinationMongodbResponse{ + res := &operations.PutDestinationMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15697,11 +15697,11 @@ func (s *Destinations) PutDestinationMongodb(ctx context.Context, request operat } -// PutDestinationMssql - Update a Destination fully -func (s *Destinations) PutDestinationMssql(ctx context.Context, request operations.PutDestinationMssqlRequest, opts ...operations.Option) (*operations.PutDestinationMssqlResponse, error) { +// PutDestinationMysql - Update a Destination fully +func (s *Destinations) PutDestinationMysql(ctx context.Context, request operations.PutDestinationMysqlRequest, opts ...operations.Option) (*operations.PutDestinationMysqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationMssql", + OperationID: "putDestinationMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15723,7 +15723,7 @@ func (s *Destinations) PutDestinationMssql(ctx context.Context, request operatio return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMssqlPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMysqlPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -15780,7 +15780,7 @@ func (s *Destinations) PutDestinationMssql(ctx context.Context, request operatio } } - res := &operations.PutDestinationMssqlResponse{ + res := &operations.PutDestinationMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15807,11 +15807,11 @@ func (s *Destinations) PutDestinationMssql(ctx context.Context, request operatio } -// PutDestinationMysql - Update a Destination fully -func (s *Destinations) PutDestinationMysql(ctx context.Context, request operations.PutDestinationMysqlRequest, opts ...operations.Option) (*operations.PutDestinationMysqlResponse, error) { +// PutDestinationOracle - Update a Destination fully +func (s *Destinations) PutDestinationOracle(ctx context.Context, request operations.PutDestinationOracleRequest, opts ...operations.Option) (*operations.PutDestinationOracleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationMysql", + OperationID: "putDestinationOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15833,7 +15833,7 @@ func (s *Destinations) PutDestinationMysql(ctx context.Context, request operatio return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMysqlPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationOraclePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -15890,7 +15890,7 @@ func (s *Destinations) PutDestinationMysql(ctx context.Context, request operatio } } - res := &operations.PutDestinationMysqlResponse{ + res := &operations.PutDestinationOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15917,11 +15917,11 @@ func (s *Destinations) PutDestinationMysql(ctx context.Context, request operatio } -// PutDestinationOracle - Update a Destination fully -func (s *Destinations) PutDestinationOracle(ctx context.Context, request operations.PutDestinationOracleRequest, opts ...operations.Option) (*operations.PutDestinationOracleResponse, error) { +// PutDestinationPinecone - Update a Destination fully +func (s *Destinations) PutDestinationPinecone(ctx context.Context, request operations.PutDestinationPineconeRequest, opts ...operations.Option) (*operations.PutDestinationPineconeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationOracle", + OperationID: "putDestinationPinecone", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15943,7 +15943,7 @@ func (s *Destinations) PutDestinationOracle(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationOraclePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPineconePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16000,7 +16000,7 @@ func (s *Destinations) PutDestinationOracle(ctx context.Context, request operati } } - res := &operations.PutDestinationOracleResponse{ + res := &operations.PutDestinationPineconeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16027,11 +16027,11 @@ func (s *Destinations) PutDestinationOracle(ctx context.Context, request operati } -// PutDestinationPinecone - Update a Destination fully -func (s *Destinations) PutDestinationPinecone(ctx context.Context, request operations.PutDestinationPineconeRequest, opts ...operations.Option) (*operations.PutDestinationPineconeResponse, error) { +// PutDestinationPostgres - Update a Destination fully +func (s *Destinations) PutDestinationPostgres(ctx context.Context, request operations.PutDestinationPostgresRequest, opts ...operations.Option) (*operations.PutDestinationPostgresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationPinecone", + OperationID: "putDestinationPostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16053,7 +16053,7 @@ func (s *Destinations) PutDestinationPinecone(ctx context.Context, request opera return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPineconePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPostgresPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16110,7 +16110,7 @@ func (s *Destinations) PutDestinationPinecone(ctx context.Context, request opera } } - res := &operations.PutDestinationPineconeResponse{ + res := &operations.PutDestinationPostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16137,11 +16137,11 @@ func (s *Destinations) PutDestinationPinecone(ctx context.Context, request opera } -// PutDestinationPostgres - Update a Destination fully -func (s *Destinations) PutDestinationPostgres(ctx context.Context, request operations.PutDestinationPostgresRequest, opts ...operations.Option) (*operations.PutDestinationPostgresResponse, error) { +// PutDestinationPubsub - Update a Destination fully +func (s *Destinations) PutDestinationPubsub(ctx context.Context, request operations.PutDestinationPubsubRequest, opts ...operations.Option) (*operations.PutDestinationPubsubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationPostgres", + OperationID: "putDestinationPubsub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16163,7 +16163,7 @@ func (s *Destinations) PutDestinationPostgres(ctx context.Context, request opera return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPostgresPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPubsubPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16220,7 +16220,7 @@ func (s *Destinations) PutDestinationPostgres(ctx context.Context, request opera } } - res := &operations.PutDestinationPostgresResponse{ + res := &operations.PutDestinationPubsubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16247,11 +16247,11 @@ func (s *Destinations) PutDestinationPostgres(ctx context.Context, request opera } -// PutDestinationPubsub - Update a Destination fully -func (s *Destinations) PutDestinationPubsub(ctx context.Context, request operations.PutDestinationPubsubRequest, opts ...operations.Option) (*operations.PutDestinationPubsubResponse, error) { +// PutDestinationQdrant - Update a Destination fully +func (s *Destinations) PutDestinationQdrant(ctx context.Context, request operations.PutDestinationQdrantRequest, opts ...operations.Option) (*operations.PutDestinationQdrantResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationPubsub", + OperationID: "putDestinationQdrant", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16273,7 +16273,7 @@ func (s *Destinations) PutDestinationPubsub(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPubsubPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationQdrantPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16330,7 +16330,7 @@ func (s *Destinations) PutDestinationPubsub(ctx context.Context, request operati } } - res := &operations.PutDestinationPubsubResponse{ + res := &operations.PutDestinationQdrantResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16357,11 +16357,11 @@ func (s *Destinations) PutDestinationPubsub(ctx context.Context, request operati } -// PutDestinationQdrant - Update a Destination fully -func (s *Destinations) PutDestinationQdrant(ctx context.Context, request operations.PutDestinationQdrantRequest, opts ...operations.Option) (*operations.PutDestinationQdrantResponse, error) { +// PutDestinationRedis - Update a Destination fully +func (s *Destinations) PutDestinationRedis(ctx context.Context, request operations.PutDestinationRedisRequest, opts ...operations.Option) (*operations.PutDestinationRedisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationQdrant", + OperationID: "putDestinationRedis", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16383,7 +16383,7 @@ func (s *Destinations) PutDestinationQdrant(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationQdrantPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationRedisPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16440,7 +16440,7 @@ func (s *Destinations) PutDestinationQdrant(ctx context.Context, request operati } } - res := &operations.PutDestinationQdrantResponse{ + res := &operations.PutDestinationRedisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16467,11 +16467,11 @@ func (s *Destinations) PutDestinationQdrant(ctx context.Context, request operati } -// PutDestinationRedis - Update a Destination fully -func (s *Destinations) PutDestinationRedis(ctx context.Context, request operations.PutDestinationRedisRequest, opts ...operations.Option) (*operations.PutDestinationRedisResponse, error) { +// PutDestinationRedshift - Update a Destination fully +func (s *Destinations) PutDestinationRedshift(ctx context.Context, request operations.PutDestinationRedshiftRequest, opts ...operations.Option) (*operations.PutDestinationRedshiftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationRedis", + OperationID: "putDestinationRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16493,7 +16493,7 @@ func (s *Destinations) PutDestinationRedis(ctx context.Context, request operatio return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationRedisPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationRedshiftPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16550,7 +16550,7 @@ func (s *Destinations) PutDestinationRedis(ctx context.Context, request operatio } } - res := &operations.PutDestinationRedisResponse{ + res := &operations.PutDestinationRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16577,11 +16577,11 @@ func (s *Destinations) PutDestinationRedis(ctx context.Context, request operatio } -// PutDestinationRedshift - Update a Destination fully -func (s *Destinations) PutDestinationRedshift(ctx context.Context, request operations.PutDestinationRedshiftRequest, opts ...operations.Option) (*operations.PutDestinationRedshiftResponse, error) { +// PutDestinationS3 - Update a Destination fully +func (s *Destinations) PutDestinationS3(ctx context.Context, request operations.PutDestinationS3Request, opts ...operations.Option) (*operations.PutDestinationS3Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationRedshift", + OperationID: "putDestinationS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16603,7 +16603,7 @@ func (s *Destinations) PutDestinationRedshift(ctx context.Context, request opera return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationRedshiftPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationS3PutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16660,7 +16660,7 @@ func (s *Destinations) PutDestinationRedshift(ctx context.Context, request opera } } - res := &operations.PutDestinationRedshiftResponse{ + res := &operations.PutDestinationS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16687,11 +16687,11 @@ func (s *Destinations) PutDestinationRedshift(ctx context.Context, request opera } -// PutDestinationS3 - Update a Destination fully -func (s *Destinations) PutDestinationS3(ctx context.Context, request operations.PutDestinationS3Request, opts ...operations.Option) (*operations.PutDestinationS3Response, error) { +// PutDestinationS3Glue - Update a Destination fully +func (s *Destinations) PutDestinationS3Glue(ctx context.Context, request operations.PutDestinationS3GlueRequest, opts ...operations.Option) (*operations.PutDestinationS3GlueResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationS3", + OperationID: "putDestinationS3Glue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16713,7 +16713,7 @@ func (s *Destinations) PutDestinationS3(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationS3PutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationS3GluePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16770,7 +16770,7 @@ func (s *Destinations) PutDestinationS3(ctx context.Context, request operations. } } - res := &operations.PutDestinationS3Response{ + res := &operations.PutDestinationS3GlueResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16797,11 +16797,11 @@ func (s *Destinations) PutDestinationS3(ctx context.Context, request operations. } -// PutDestinationS3Glue - Update a Destination fully -func (s *Destinations) PutDestinationS3Glue(ctx context.Context, request operations.PutDestinationS3GlueRequest, opts ...operations.Option) (*operations.PutDestinationS3GlueResponse, error) { +// PutDestinationSftpJSON - Update a Destination fully +func (s *Destinations) PutDestinationSftpJSON(ctx context.Context, request operations.PutDestinationSftpJSONRequest, opts ...operations.Option) (*operations.PutDestinationSftpJSONResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationS3Glue", + OperationID: "putDestinationSftpJson", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16823,7 +16823,7 @@ func (s *Destinations) PutDestinationS3Glue(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationS3GluePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationSftpJSONPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16880,7 +16880,7 @@ func (s *Destinations) PutDestinationS3Glue(ctx context.Context, request operati } } - res := &operations.PutDestinationS3GlueResponse{ + res := &operations.PutDestinationSftpJSONResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16907,11 +16907,11 @@ func (s *Destinations) PutDestinationS3Glue(ctx context.Context, request operati } -// PutDestinationSftpJSON - Update a Destination fully -func (s *Destinations) PutDestinationSftpJSON(ctx context.Context, request operations.PutDestinationSftpJSONRequest, opts ...operations.Option) (*operations.PutDestinationSftpJSONResponse, error) { +// PutDestinationSnowflake - Update a Destination fully +func (s *Destinations) PutDestinationSnowflake(ctx context.Context, request operations.PutDestinationSnowflakeRequest, opts ...operations.Option) (*operations.PutDestinationSnowflakeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationSftpJson", + OperationID: "putDestinationSnowflake", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16933,7 +16933,7 @@ func (s *Destinations) PutDestinationSftpJSON(ctx context.Context, request opera return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationSftpJSONPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationSnowflakePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -16990,7 +16990,7 @@ func (s *Destinations) PutDestinationSftpJSON(ctx context.Context, request opera } } - res := &operations.PutDestinationSftpJSONResponse{ + res := &operations.PutDestinationSnowflakeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17017,11 +17017,11 @@ func (s *Destinations) PutDestinationSftpJSON(ctx context.Context, request opera } -// PutDestinationSnowflake - Update a Destination fully -func (s *Destinations) PutDestinationSnowflake(ctx context.Context, request operations.PutDestinationSnowflakeRequest, opts ...operations.Option) (*operations.PutDestinationSnowflakeResponse, error) { +// PutDestinationSnowflakeCortex - Update a Destination fully +func (s *Destinations) PutDestinationSnowflakeCortex(ctx context.Context, request operations.PutDestinationSnowflakeCortexRequest, opts ...operations.Option) (*operations.PutDestinationSnowflakeCortexResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationSnowflake", + OperationID: "putDestinationSnowflakeCortex", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17043,7 +17043,7 @@ func (s *Destinations) PutDestinationSnowflake(ctx context.Context, request oper return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationSnowflakePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationSnowflakeCortexPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -17100,7 +17100,7 @@ func (s *Destinations) PutDestinationSnowflake(ctx context.Context, request oper } } - res := &operations.PutDestinationSnowflakeResponse{ + res := &operations.PutDestinationSnowflakeCortexResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17127,11 +17127,11 @@ func (s *Destinations) PutDestinationSnowflake(ctx context.Context, request oper } -// PutDestinationSnowflakeCortex - Update a Destination fully -func (s *Destinations) PutDestinationSnowflakeCortex(ctx context.Context, request operations.PutDestinationSnowflakeCortexRequest, opts ...operations.Option) (*operations.PutDestinationSnowflakeCortexResponse, error) { +// PutDestinationTeradata - Update a Destination fully +func (s *Destinations) PutDestinationTeradata(ctx context.Context, request operations.PutDestinationTeradataRequest, opts ...operations.Option) (*operations.PutDestinationTeradataResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationSnowflakeCortex", + OperationID: "putDestinationTeradata", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17153,7 +17153,7 @@ func (s *Destinations) PutDestinationSnowflakeCortex(ctx context.Context, reques return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationSnowflakeCortexPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationTeradataPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -17210,7 +17210,7 @@ func (s *Destinations) PutDestinationSnowflakeCortex(ctx context.Context, reques } } - res := &operations.PutDestinationSnowflakeCortexResponse{ + res := &operations.PutDestinationTeradataResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17237,11 +17237,11 @@ func (s *Destinations) PutDestinationSnowflakeCortex(ctx context.Context, reques } -// PutDestinationTeradata - Update a Destination fully -func (s *Destinations) PutDestinationTeradata(ctx context.Context, request operations.PutDestinationTeradataRequest, opts ...operations.Option) (*operations.PutDestinationTeradataResponse, error) { +// PutDestinationTimeplus - Update a Destination fully +func (s *Destinations) PutDestinationTimeplus(ctx context.Context, request operations.PutDestinationTimeplusRequest, opts ...operations.Option) (*operations.PutDestinationTimeplusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationTeradata", + OperationID: "putDestinationTimeplus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17263,7 +17263,7 @@ func (s *Destinations) PutDestinationTeradata(ctx context.Context, request opera return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationTeradataPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationTimeplusPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -17320,7 +17320,7 @@ func (s *Destinations) PutDestinationTeradata(ctx context.Context, request opera } } - res := &operations.PutDestinationTeradataResponse{ + res := &operations.PutDestinationTimeplusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, diff --git a/internal/sdk/models/operations/createdestinationlangchain.go b/internal/sdk/models/operations/createdestinationtimeplus.go similarity index 66% rename from internal/sdk/models/operations/createdestinationlangchain.go rename to internal/sdk/models/operations/createdestinationtimeplus.go index 7829a6e0c..f5a5fc728 100644 --- a/internal/sdk/models/operations/createdestinationlangchain.go +++ b/internal/sdk/models/operations/createdestinationtimeplus.go @@ -7,7 +7,7 @@ import ( "net/http" ) -type CreateDestinationLangchainResponse struct { +type CreateDestinationTimeplusResponse struct { // HTTP response content type for this operation ContentType string // Successful operation @@ -18,28 +18,28 @@ type CreateDestinationLangchainResponse struct { RawResponse *http.Response } -func (o *CreateDestinationLangchainResponse) GetContentType() string { +func (o *CreateDestinationTimeplusResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *CreateDestinationLangchainResponse) GetDestinationResponse() *shared.DestinationResponse { +func (o *CreateDestinationTimeplusResponse) GetDestinationResponse() *shared.DestinationResponse { if o == nil { return nil } return o.DestinationResponse } -func (o *CreateDestinationLangchainResponse) GetStatusCode() int { +func (o *CreateDestinationTimeplusResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *CreateDestinationLangchainResponse) GetRawResponse() *http.Response { +func (o *CreateDestinationTimeplusResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/createsourcepunkapi.go b/internal/sdk/models/operations/createsourceairbyte.go similarity index 71% rename from internal/sdk/models/operations/createsourcepunkapi.go rename to internal/sdk/models/operations/createsourceairbyte.go index afb1bda3d..dce2c04c1 100644 --- a/internal/sdk/models/operations/createsourcepunkapi.go +++ b/internal/sdk/models/operations/createsourceairbyte.go @@ -7,7 +7,7 @@ import ( "net/http" ) -type CreateSourcePunkAPIResponse struct { +type CreateSourceAirbyteResponse struct { // HTTP response content type for this operation ContentType string // Successful operation @@ -18,28 +18,28 @@ type CreateSourcePunkAPIResponse struct { RawResponse *http.Response } -func (o *CreateSourcePunkAPIResponse) GetContentType() string { +func (o *CreateSourceAirbyteResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *CreateSourcePunkAPIResponse) GetSourceResponse() *shared.SourceResponse { +func (o *CreateSourceAirbyteResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *CreateSourcePunkAPIResponse) GetStatusCode() int { +func (o *CreateSourceAirbyteResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *CreateSourcePunkAPIResponse) GetRawResponse() *http.Response { +func (o *CreateSourceAirbyteResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/createsourcemongodbinternalpoc.go b/internal/sdk/models/operations/createsourcebasecamp.go similarity index 65% rename from internal/sdk/models/operations/createsourcemongodbinternalpoc.go rename to internal/sdk/models/operations/createsourcebasecamp.go index 8e87b52fe..9706086b7 100644 --- a/internal/sdk/models/operations/createsourcemongodbinternalpoc.go +++ b/internal/sdk/models/operations/createsourcebasecamp.go @@ -7,7 +7,7 @@ import ( "net/http" ) -type CreateSourceMongodbInternalPocResponse struct { +type CreateSourceBasecampResponse struct { // HTTP response content type for this operation ContentType string // Successful operation @@ -18,28 +18,28 @@ type CreateSourceMongodbInternalPocResponse struct { RawResponse *http.Response } -func (o *CreateSourceMongodbInternalPocResponse) GetContentType() string { +func (o *CreateSourceBasecampResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *CreateSourceMongodbInternalPocResponse) GetSourceResponse() *shared.SourceResponse { +func (o *CreateSourceBasecampResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *CreateSourceMongodbInternalPocResponse) GetStatusCode() int { +func (o *CreateSourceBasecampResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *CreateSourceMongodbInternalPocResponse) GetRawResponse() *http.Response { +func (o *CreateSourceBasecampResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/createsourcegoogleanalyticsv4serviceaccountonly.go b/internal/sdk/models/operations/createsourcebreezyhr.go similarity index 60% rename from internal/sdk/models/operations/createsourcegoogleanalyticsv4serviceaccountonly.go rename to internal/sdk/models/operations/createsourcebreezyhr.go index 840853615..64927540a 100644 --- a/internal/sdk/models/operations/createsourcegoogleanalyticsv4serviceaccountonly.go +++ b/internal/sdk/models/operations/createsourcebreezyhr.go @@ -7,7 +7,7 @@ import ( "net/http" ) -type CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { +type CreateSourceBreezyHrResponse struct { // HTTP response content type for this operation ContentType string // Successful operation @@ -18,28 +18,28 @@ type CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { RawResponse *http.Response } -func (o *CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetContentType() string { +func (o *CreateSourceBreezyHrResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetSourceResponse() *shared.SourceResponse { +func (o *CreateSourceBreezyHrResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetStatusCode() int { +func (o *CreateSourceBreezyHrResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetRawResponse() *http.Response { +func (o *CreateSourceBreezyHrResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/createsourcecalendly.go b/internal/sdk/models/operations/createsourcecalendly.go new file mode 100644 index 000000000..70eef5d3f --- /dev/null +++ b/internal/sdk/models/operations/createsourcecalendly.go @@ -0,0 +1,47 @@ +// 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 CreateSourceCalendlyResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceCalendlyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceCalendlyResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceCalendlyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceCalendlyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceclazar.go b/internal/sdk/models/operations/createsourceclazar.go new file mode 100644 index 000000000..999f381e8 --- /dev/null +++ b/internal/sdk/models/operations/createsourceclazar.go @@ -0,0 +1,47 @@ +// 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 CreateSourceClazarResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceClazarResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceClazarResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceClazarResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceClazarResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcecustomerio.go b/internal/sdk/models/operations/createsourcecustomerio.go new file mode 100644 index 000000000..3e1d08642 --- /dev/null +++ b/internal/sdk/models/operations/createsourcecustomerio.go @@ -0,0 +1,47 @@ +// 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 CreateSourceCustomerIoResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceCustomerIoResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceCustomerIoResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceCustomerIoResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceCustomerIoResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcedatadog.go b/internal/sdk/models/operations/createsourcedatadog.go new file mode 100644 index 000000000..d55a613f8 --- /dev/null +++ b/internal/sdk/models/operations/createsourcedatadog.go @@ -0,0 +1,47 @@ +// 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 CreateSourceDatadogResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceDatadogResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceDatadogResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceDatadogResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceDatadogResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcedbt.go b/internal/sdk/models/operations/createsourcedbt.go new file mode 100644 index 000000000..b7090cde1 --- /dev/null +++ b/internal/sdk/models/operations/createsourcedbt.go @@ -0,0 +1,47 @@ +// 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 CreateSourceDbtResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceDbtResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceDbtResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceDbtResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceDbtResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcegoldcast.go b/internal/sdk/models/operations/createsourcegoldcast.go new file mode 100644 index 000000000..7f0b376fb --- /dev/null +++ b/internal/sdk/models/operations/createsourcegoldcast.go @@ -0,0 +1,47 @@ +// 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 CreateSourceGoldcastResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceGoldcastResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceGoldcastResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceGoldcastResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceGoldcastResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcehardcodedrecords.go b/internal/sdk/models/operations/createsourcehardcodedrecords.go new file mode 100644 index 000000000..cab165b5c --- /dev/null +++ b/internal/sdk/models/operations/createsourcehardcodedrecords.go @@ -0,0 +1,47 @@ +// 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 CreateSourceHardcodedRecordsResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceHardcodedRecordsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceHardcodedRecordsResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceHardcodedRecordsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceHardcodedRecordsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcehibob.go b/internal/sdk/models/operations/createsourcehibob.go new file mode 100644 index 000000000..cb02abdf1 --- /dev/null +++ b/internal/sdk/models/operations/createsourcehibob.go @@ -0,0 +1,47 @@ +// 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 CreateSourceHibobResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceHibobResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceHibobResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceHibobResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceHibobResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcehighlevel.go b/internal/sdk/models/operations/createsourcehighlevel.go new file mode 100644 index 000000000..daf553b92 --- /dev/null +++ b/internal/sdk/models/operations/createsourcehighlevel.go @@ -0,0 +1,47 @@ +// 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 CreateSourceHighLevelResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceHighLevelResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceHighLevelResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceHighLevelResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceHighLevelResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceleadfeeder.go b/internal/sdk/models/operations/createsourceleadfeeder.go new file mode 100644 index 000000000..f0bddbbdf --- /dev/null +++ b/internal/sdk/models/operations/createsourceleadfeeder.go @@ -0,0 +1,47 @@ +// 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 CreateSourceLeadfeederResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceLeadfeederResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceLeadfeederResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceLeadfeederResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceLeadfeederResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcelooker.go b/internal/sdk/models/operations/createsourcelooker.go new file mode 100644 index 000000000..b9f4723db --- /dev/null +++ b/internal/sdk/models/operations/createsourcelooker.go @@ -0,0 +1,47 @@ +// 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 CreateSourceLookerResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceLookerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceLookerResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceLookerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceLookerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceluma.go b/internal/sdk/models/operations/createsourceluma.go new file mode 100644 index 000000000..f0c5e080d --- /dev/null +++ b/internal/sdk/models/operations/createsourceluma.go @@ -0,0 +1,47 @@ +// 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 CreateSourceLumaResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceLumaResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceLumaResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceLumaResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceLumaResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcenorthpasslms.go b/internal/sdk/models/operations/createsourcenorthpasslms.go new file mode 100644 index 000000000..1c5dd6bfe --- /dev/null +++ b/internal/sdk/models/operations/createsourcenorthpasslms.go @@ -0,0 +1,47 @@ +// 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 CreateSourceNorthpassLmsResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceNorthpassLmsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceNorthpassLmsResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceNorthpassLmsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceNorthpassLmsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcepennylane.go b/internal/sdk/models/operations/createsourcepennylane.go new file mode 100644 index 000000000..fbaec9ae4 --- /dev/null +++ b/internal/sdk/models/operations/createsourcepennylane.go @@ -0,0 +1,47 @@ +// 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 CreateSourcePennylaneResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourcePennylaneResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourcePennylaneResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourcePennylaneResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourcePennylaneResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceplanhat.go b/internal/sdk/models/operations/createsourceplanhat.go new file mode 100644 index 000000000..f950cca26 --- /dev/null +++ b/internal/sdk/models/operations/createsourceplanhat.go @@ -0,0 +1,47 @@ +// 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 CreateSourcePlanhatResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourcePlanhatResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourcePlanhatResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourcePlanhatResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourcePlanhatResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcereddit.go b/internal/sdk/models/operations/createsourcereddit.go new file mode 100644 index 000000000..a48671c2d --- /dev/null +++ b/internal/sdk/models/operations/createsourcereddit.go @@ -0,0 +1,47 @@ +// 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 CreateSourceRedditResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceRedditResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceRedditResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceRedditResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceRedditResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcesavvycal.go b/internal/sdk/models/operations/createsourcesavvycal.go new file mode 100644 index 000000000..49856dd32 --- /dev/null +++ b/internal/sdk/models/operations/createsourcesavvycal.go @@ -0,0 +1,47 @@ +// 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 CreateSourceSavvycalResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceSavvycalResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceSavvycalResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceSavvycalResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceSavvycalResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcescryfall.go b/internal/sdk/models/operations/createsourcescryfall.go new file mode 100644 index 000000000..a23853b14 --- /dev/null +++ b/internal/sdk/models/operations/createsourcescryfall.go @@ -0,0 +1,47 @@ +// 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 CreateSourceScryfallResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful operation + 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 *CreateSourceScryfallResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceScryfallResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceScryfallResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceScryfallResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletedestinationlangchain.go b/internal/sdk/models/operations/deletedestinationtimeplus.go similarity index 63% rename from internal/sdk/models/operations/deletedestinationlangchain.go rename to internal/sdk/models/operations/deletedestinationtimeplus.go index 0e6665605..fb85847c4 100644 --- a/internal/sdk/models/operations/deletedestinationlangchain.go +++ b/internal/sdk/models/operations/deletedestinationtimeplus.go @@ -6,18 +6,18 @@ import ( "net/http" ) -type DeleteDestinationLangchainRequest struct { +type DeleteDestinationTimeplusRequest struct { DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` } -func (o *DeleteDestinationLangchainRequest) GetDestinationID() string { +func (o *DeleteDestinationTimeplusRequest) GetDestinationID() string { if o == nil { return "" } return o.DestinationID } -type DeleteDestinationLangchainResponse struct { +type DeleteDestinationTimeplusResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -26,21 +26,21 @@ type DeleteDestinationLangchainResponse struct { RawResponse *http.Response } -func (o *DeleteDestinationLangchainResponse) GetContentType() string { +func (o *DeleteDestinationTimeplusResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *DeleteDestinationLangchainResponse) GetStatusCode() int { +func (o *DeleteDestinationTimeplusResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *DeleteDestinationLangchainResponse) GetRawResponse() *http.Response { +func (o *DeleteDestinationTimeplusResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/deletesourcepunkapi.go b/internal/sdk/models/operations/deletesourceairbyte.go similarity index 65% rename from internal/sdk/models/operations/deletesourcepunkapi.go rename to internal/sdk/models/operations/deletesourceairbyte.go index a779cb183..fc1a5c0a2 100644 --- a/internal/sdk/models/operations/deletesourcepunkapi.go +++ b/internal/sdk/models/operations/deletesourceairbyte.go @@ -6,18 +6,18 @@ import ( "net/http" ) -type DeleteSourcePunkAPIRequest struct { +type DeleteSourceAirbyteRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *DeleteSourcePunkAPIRequest) GetSourceID() string { +func (o *DeleteSourceAirbyteRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type DeleteSourcePunkAPIResponse struct { +type DeleteSourceAirbyteResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -26,21 +26,21 @@ type DeleteSourcePunkAPIResponse struct { RawResponse *http.Response } -func (o *DeleteSourcePunkAPIResponse) GetContentType() string { +func (o *DeleteSourceAirbyteResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *DeleteSourcePunkAPIResponse) GetStatusCode() int { +func (o *DeleteSourceAirbyteResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *DeleteSourcePunkAPIResponse) GetRawResponse() *http.Response { +func (o *DeleteSourceAirbyteResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/deletesourcemongodbinternalpoc.go b/internal/sdk/models/operations/deletesourcebasecamp.go similarity index 60% rename from internal/sdk/models/operations/deletesourcemongodbinternalpoc.go rename to internal/sdk/models/operations/deletesourcebasecamp.go index bbc860d5b..3670cf62f 100644 --- a/internal/sdk/models/operations/deletesourcemongodbinternalpoc.go +++ b/internal/sdk/models/operations/deletesourcebasecamp.go @@ -6,18 +6,18 @@ import ( "net/http" ) -type DeleteSourceMongodbInternalPocRequest struct { +type DeleteSourceBasecampRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *DeleteSourceMongodbInternalPocRequest) GetSourceID() string { +func (o *DeleteSourceBasecampRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type DeleteSourceMongodbInternalPocResponse struct { +type DeleteSourceBasecampResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -26,21 +26,21 @@ type DeleteSourceMongodbInternalPocResponse struct { RawResponse *http.Response } -func (o *DeleteSourceMongodbInternalPocResponse) GetContentType() string { +func (o *DeleteSourceBasecampResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *DeleteSourceMongodbInternalPocResponse) GetStatusCode() int { +func (o *DeleteSourceBasecampResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *DeleteSourceMongodbInternalPocResponse) GetRawResponse() *http.Response { +func (o *DeleteSourceBasecampResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/deletesourcegoogleanalyticsv4serviceaccountonly.go b/internal/sdk/models/operations/deletesourcebreezyhr.go similarity index 55% rename from internal/sdk/models/operations/deletesourcegoogleanalyticsv4serviceaccountonly.go rename to internal/sdk/models/operations/deletesourcebreezyhr.go index 45fa6fd44..237a0b8f5 100644 --- a/internal/sdk/models/operations/deletesourcegoogleanalyticsv4serviceaccountonly.go +++ b/internal/sdk/models/operations/deletesourcebreezyhr.go @@ -6,18 +6,18 @@ import ( "net/http" ) -type DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyRequest struct { +type DeleteSourceBreezyHrRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyRequest) GetSourceID() string { +func (o *DeleteSourceBreezyHrRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { +type DeleteSourceBreezyHrResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -26,21 +26,21 @@ type DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { RawResponse *http.Response } -func (o *DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetContentType() string { +func (o *DeleteSourceBreezyHrResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetStatusCode() int { +func (o *DeleteSourceBreezyHrResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetRawResponse() *http.Response { +func (o *DeleteSourceBreezyHrResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/deletesourcecalendly.go b/internal/sdk/models/operations/deletesourcecalendly.go new file mode 100644 index 000000000..2efe80ba5 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcecalendly.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceCalendlyRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceCalendlyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceCalendlyResponse 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 *DeleteSourceCalendlyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceCalendlyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceCalendlyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceclazar.go b/internal/sdk/models/operations/deletesourceclazar.go new file mode 100644 index 000000000..1e5cb109b --- /dev/null +++ b/internal/sdk/models/operations/deletesourceclazar.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceClazarRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceClazarRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceClazarResponse 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 *DeleteSourceClazarResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceClazarResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceClazarResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcecustomerio.go b/internal/sdk/models/operations/deletesourcecustomerio.go new file mode 100644 index 000000000..33de28d41 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcecustomerio.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceCustomerIoRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceCustomerIoRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceCustomerIoResponse 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 *DeleteSourceCustomerIoResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceCustomerIoResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceCustomerIoResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcedatadog.go b/internal/sdk/models/operations/deletesourcedatadog.go new file mode 100644 index 000000000..1606445ef --- /dev/null +++ b/internal/sdk/models/operations/deletesourcedatadog.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceDatadogRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceDatadogRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceDatadogResponse 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 *DeleteSourceDatadogResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceDatadogResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceDatadogResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcedbt.go b/internal/sdk/models/operations/deletesourcedbt.go new file mode 100644 index 000000000..5d6826d56 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcedbt.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceDbtRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceDbtRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceDbtResponse 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 *DeleteSourceDbtResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceDbtResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceDbtResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcegoldcast.go b/internal/sdk/models/operations/deletesourcegoldcast.go new file mode 100644 index 000000000..14d0e40c6 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcegoldcast.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceGoldcastRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceGoldcastRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceGoldcastResponse 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 *DeleteSourceGoldcastResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceGoldcastResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceGoldcastResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcehardcodedrecords.go b/internal/sdk/models/operations/deletesourcehardcodedrecords.go new file mode 100644 index 000000000..25921fc76 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcehardcodedrecords.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceHardcodedRecordsRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceHardcodedRecordsRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceHardcodedRecordsResponse 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 *DeleteSourceHardcodedRecordsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceHardcodedRecordsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceHardcodedRecordsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcehibob.go b/internal/sdk/models/operations/deletesourcehibob.go new file mode 100644 index 000000000..444fa86fb --- /dev/null +++ b/internal/sdk/models/operations/deletesourcehibob.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceHibobRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceHibobRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceHibobResponse 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 *DeleteSourceHibobResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceHibobResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceHibobResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcehighlevel.go b/internal/sdk/models/operations/deletesourcehighlevel.go new file mode 100644 index 000000000..b952b49e0 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcehighlevel.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceHighLevelRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceHighLevelRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceHighLevelResponse 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 *DeleteSourceHighLevelResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceHighLevelResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceHighLevelResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceleadfeeder.go b/internal/sdk/models/operations/deletesourceleadfeeder.go new file mode 100644 index 000000000..df57dd624 --- /dev/null +++ b/internal/sdk/models/operations/deletesourceleadfeeder.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceLeadfeederRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceLeadfeederRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceLeadfeederResponse 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 *DeleteSourceLeadfeederResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceLeadfeederResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceLeadfeederResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcelooker.go b/internal/sdk/models/operations/deletesourcelooker.go new file mode 100644 index 000000000..7d17972cc --- /dev/null +++ b/internal/sdk/models/operations/deletesourcelooker.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceLookerRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceLookerRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceLookerResponse 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 *DeleteSourceLookerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceLookerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceLookerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceluma.go b/internal/sdk/models/operations/deletesourceluma.go new file mode 100644 index 000000000..5ebf06deb --- /dev/null +++ b/internal/sdk/models/operations/deletesourceluma.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceLumaRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceLumaRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceLumaResponse 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 *DeleteSourceLumaResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceLumaResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceLumaResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcenorthpasslms.go b/internal/sdk/models/operations/deletesourcenorthpasslms.go new file mode 100644 index 000000000..3df515cd3 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcenorthpasslms.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceNorthpassLmsRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceNorthpassLmsRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceNorthpassLmsResponse 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 *DeleteSourceNorthpassLmsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceNorthpassLmsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceNorthpassLmsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcepennylane.go b/internal/sdk/models/operations/deletesourcepennylane.go new file mode 100644 index 000000000..253ec1674 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcepennylane.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourcePennylaneRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourcePennylaneRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourcePennylaneResponse 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 *DeleteSourcePennylaneResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourcePennylaneResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourcePennylaneResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceplanhat.go b/internal/sdk/models/operations/deletesourceplanhat.go new file mode 100644 index 000000000..35febaa52 --- /dev/null +++ b/internal/sdk/models/operations/deletesourceplanhat.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourcePlanhatRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourcePlanhatRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourcePlanhatResponse 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 *DeleteSourcePlanhatResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourcePlanhatResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourcePlanhatResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcereddit.go b/internal/sdk/models/operations/deletesourcereddit.go new file mode 100644 index 000000000..fcde1028e --- /dev/null +++ b/internal/sdk/models/operations/deletesourcereddit.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceRedditRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceRedditRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceRedditResponse 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 *DeleteSourceRedditResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceRedditResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceRedditResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcesavvycal.go b/internal/sdk/models/operations/deletesourcesavvycal.go new file mode 100644 index 000000000..d65f4101a --- /dev/null +++ b/internal/sdk/models/operations/deletesourcesavvycal.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceSavvycalRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceSavvycalRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceSavvycalResponse 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 *DeleteSourceSavvycalResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceSavvycalResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceSavvycalResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcescryfall.go b/internal/sdk/models/operations/deletesourcescryfall.go new file mode 100644 index 000000000..c5567c370 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcescryfall.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceScryfallRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceScryfallRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceScryfallResponse 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 *DeleteSourceScryfallResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceScryfallResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceScryfallResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getdestinationlangchain.go b/internal/sdk/models/operations/getdestinationtimeplus.go similarity index 65% rename from internal/sdk/models/operations/getdestinationlangchain.go rename to internal/sdk/models/operations/getdestinationtimeplus.go index adb9116aa..5b79f6cef 100644 --- a/internal/sdk/models/operations/getdestinationlangchain.go +++ b/internal/sdk/models/operations/getdestinationtimeplus.go @@ -7,18 +7,18 @@ import ( "net/http" ) -type GetDestinationLangchainRequest struct { +type GetDestinationTimeplusRequest struct { DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` } -func (o *GetDestinationLangchainRequest) GetDestinationID() string { +func (o *GetDestinationTimeplusRequest) GetDestinationID() string { if o == nil { return "" } return o.DestinationID } -type GetDestinationLangchainResponse struct { +type GetDestinationTimeplusResponse struct { // HTTP response content type for this operation ContentType string // Get a Destination by the id in the path. @@ -29,28 +29,28 @@ type GetDestinationLangchainResponse struct { RawResponse *http.Response } -func (o *GetDestinationLangchainResponse) GetContentType() string { +func (o *GetDestinationTimeplusResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *GetDestinationLangchainResponse) GetDestinationResponse() *shared.DestinationResponse { +func (o *GetDestinationTimeplusResponse) GetDestinationResponse() *shared.DestinationResponse { if o == nil { return nil } return o.DestinationResponse } -func (o *GetDestinationLangchainResponse) GetStatusCode() int { +func (o *GetDestinationTimeplusResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *GetDestinationLangchainResponse) GetRawResponse() *http.Response { +func (o *GetDestinationTimeplusResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/getsourcepunkapi.go b/internal/sdk/models/operations/getsourceairbyte.go similarity index 69% rename from internal/sdk/models/operations/getsourcepunkapi.go rename to internal/sdk/models/operations/getsourceairbyte.go index 6cb711ba1..6d1d004c9 100644 --- a/internal/sdk/models/operations/getsourcepunkapi.go +++ b/internal/sdk/models/operations/getsourceairbyte.go @@ -7,18 +7,18 @@ import ( "net/http" ) -type GetSourcePunkAPIRequest struct { +type GetSourceAirbyteRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *GetSourcePunkAPIRequest) GetSourceID() string { +func (o *GetSourceAirbyteRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type GetSourcePunkAPIResponse struct { +type GetSourceAirbyteResponse struct { // HTTP response content type for this operation ContentType string // Get a Source by the id in the path. @@ -29,28 +29,28 @@ type GetSourcePunkAPIResponse struct { RawResponse *http.Response } -func (o *GetSourcePunkAPIResponse) GetContentType() string { +func (o *GetSourceAirbyteResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *GetSourcePunkAPIResponse) GetSourceResponse() *shared.SourceResponse { +func (o *GetSourceAirbyteResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *GetSourcePunkAPIResponse) GetStatusCode() int { +func (o *GetSourceAirbyteResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *GetSourcePunkAPIResponse) GetRawResponse() *http.Response { +func (o *GetSourceAirbyteResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/getsourcemongodbinternalpoc.go b/internal/sdk/models/operations/getsourcebasecamp.go similarity index 63% rename from internal/sdk/models/operations/getsourcemongodbinternalpoc.go rename to internal/sdk/models/operations/getsourcebasecamp.go index 11f881ad4..3d008c55d 100644 --- a/internal/sdk/models/operations/getsourcemongodbinternalpoc.go +++ b/internal/sdk/models/operations/getsourcebasecamp.go @@ -7,18 +7,18 @@ import ( "net/http" ) -type GetSourceMongodbInternalPocRequest struct { +type GetSourceBasecampRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *GetSourceMongodbInternalPocRequest) GetSourceID() string { +func (o *GetSourceBasecampRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type GetSourceMongodbInternalPocResponse struct { +type GetSourceBasecampResponse struct { // HTTP response content type for this operation ContentType string // Get a Source by the id in the path. @@ -29,28 +29,28 @@ type GetSourceMongodbInternalPocResponse struct { RawResponse *http.Response } -func (o *GetSourceMongodbInternalPocResponse) GetContentType() string { +func (o *GetSourceBasecampResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *GetSourceMongodbInternalPocResponse) GetSourceResponse() *shared.SourceResponse { +func (o *GetSourceBasecampResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *GetSourceMongodbInternalPocResponse) GetStatusCode() int { +func (o *GetSourceBasecampResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *GetSourceMongodbInternalPocResponse) GetRawResponse() *http.Response { +func (o *GetSourceBasecampResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/getsourcebreezyhr.go b/internal/sdk/models/operations/getsourcebreezyhr.go new file mode 100644 index 000000000..e31aadfc6 --- /dev/null +++ b/internal/sdk/models/operations/getsourcebreezyhr.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 GetSourceBreezyHrRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceBreezyHrRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceBreezyHrResponse 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 *GetSourceBreezyHrResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceBreezyHrResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceBreezyHrResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceBreezyHrResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcecalendly.go b/internal/sdk/models/operations/getsourcecalendly.go new file mode 100644 index 000000000..0a87b53de --- /dev/null +++ b/internal/sdk/models/operations/getsourcecalendly.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 GetSourceCalendlyRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceCalendlyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceCalendlyResponse 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 *GetSourceCalendlyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceCalendlyResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceCalendlyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceCalendlyResponse) 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/getsourceclazar.go new file mode 100644 index 000000000..243be3a96 --- /dev/null +++ b/internal/sdk/models/operations/getsourceclazar.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 GetSourceClazarRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceClazarRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceClazarResponse 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 *GetSourceClazarResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceClazarResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceClazarResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceClazarResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcecustomerio.go b/internal/sdk/models/operations/getsourcecustomerio.go new file mode 100644 index 000000000..9468e6c7f --- /dev/null +++ b/internal/sdk/models/operations/getsourcecustomerio.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 GetSourceCustomerIoRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceCustomerIoRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceCustomerIoResponse 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 *GetSourceCustomerIoResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceCustomerIoResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceCustomerIoResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceCustomerIoResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcedatadog.go b/internal/sdk/models/operations/getsourcedatadog.go new file mode 100644 index 000000000..a50657695 --- /dev/null +++ b/internal/sdk/models/operations/getsourcedatadog.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 GetSourceDatadogRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceDatadogRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceDatadogResponse 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 *GetSourceDatadogResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceDatadogResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceDatadogResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceDatadogResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcedbt.go b/internal/sdk/models/operations/getsourcedbt.go new file mode 100644 index 000000000..8972bd152 --- /dev/null +++ b/internal/sdk/models/operations/getsourcedbt.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 GetSourceDbtRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceDbtRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceDbtResponse 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 *GetSourceDbtResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceDbtResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceDbtResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceDbtResponse) 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 new file mode 100644 index 000000000..86bf7222d --- /dev/null +++ b/internal/sdk/models/operations/getsourcegoldcast.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 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/getsourcehardcodedrecords.go b/internal/sdk/models/operations/getsourcehardcodedrecords.go new file mode 100644 index 000000000..8cd5c6c2a --- /dev/null +++ b/internal/sdk/models/operations/getsourcehardcodedrecords.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 GetSourceHardcodedRecordsRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceHardcodedRecordsRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceHardcodedRecordsResponse 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 *GetSourceHardcodedRecordsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceHardcodedRecordsResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceHardcodedRecordsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceHardcodedRecordsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcegoogleanalyticsv4serviceaccountonly.go b/internal/sdk/models/operations/getsourcehibob.go similarity index 58% rename from internal/sdk/models/operations/getsourcegoogleanalyticsv4serviceaccountonly.go rename to internal/sdk/models/operations/getsourcehibob.go index 207c5e0fe..832664798 100644 --- a/internal/sdk/models/operations/getsourcegoogleanalyticsv4serviceaccountonly.go +++ b/internal/sdk/models/operations/getsourcehibob.go @@ -7,18 +7,18 @@ import ( "net/http" ) -type GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest struct { +type GetSourceHibobRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest) GetSourceID() string { +func (o *GetSourceHibobRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { +type GetSourceHibobResponse struct { // HTTP response content type for this operation ContentType string // Get a Source by the id in the path. @@ -29,28 +29,28 @@ type GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { RawResponse *http.Response } -func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetContentType() string { +func (o *GetSourceHibobResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetSourceResponse() *shared.SourceResponse { +func (o *GetSourceHibobResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetStatusCode() int { +func (o *GetSourceHibobResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetRawResponse() *http.Response { +func (o *GetSourceHibobResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/getsourcehighlevel.go b/internal/sdk/models/operations/getsourcehighlevel.go new file mode 100644 index 000000000..1b91e2af9 --- /dev/null +++ b/internal/sdk/models/operations/getsourcehighlevel.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 GetSourceHighLevelRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceHighLevelRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceHighLevelResponse 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 *GetSourceHighLevelResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceHighLevelResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceHighLevelResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceHighLevelResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceleadfeeder.go b/internal/sdk/models/operations/getsourceleadfeeder.go new file mode 100644 index 000000000..54439a97e --- /dev/null +++ b/internal/sdk/models/operations/getsourceleadfeeder.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 GetSourceLeadfeederRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceLeadfeederRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceLeadfeederResponse 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 *GetSourceLeadfeederResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceLeadfeederResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceLeadfeederResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceLeadfeederResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcelooker.go b/internal/sdk/models/operations/getsourcelooker.go new file mode 100644 index 000000000..03dc8a24d --- /dev/null +++ b/internal/sdk/models/operations/getsourcelooker.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 GetSourceLookerRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceLookerRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceLookerResponse 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 *GetSourceLookerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceLookerResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceLookerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceLookerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceluma.go b/internal/sdk/models/operations/getsourceluma.go new file mode 100644 index 000000000..a0f50a578 --- /dev/null +++ b/internal/sdk/models/operations/getsourceluma.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 GetSourceLumaRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceLumaRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceLumaResponse 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 *GetSourceLumaResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceLumaResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceLumaResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceLumaResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcenorthpasslms.go b/internal/sdk/models/operations/getsourcenorthpasslms.go new file mode 100644 index 000000000..a4f68a09f --- /dev/null +++ b/internal/sdk/models/operations/getsourcenorthpasslms.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 GetSourceNorthpassLmsRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceNorthpassLmsRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceNorthpassLmsResponse 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 *GetSourceNorthpassLmsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceNorthpassLmsResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceNorthpassLmsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceNorthpassLmsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcepennylane.go b/internal/sdk/models/operations/getsourcepennylane.go new file mode 100644 index 000000000..9125fda1c --- /dev/null +++ b/internal/sdk/models/operations/getsourcepennylane.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 GetSourcePennylaneRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourcePennylaneRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourcePennylaneResponse 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 *GetSourcePennylaneResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourcePennylaneResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourcePennylaneResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourcePennylaneResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceplanhat.go b/internal/sdk/models/operations/getsourceplanhat.go new file mode 100644 index 000000000..6cef55050 --- /dev/null +++ b/internal/sdk/models/operations/getsourceplanhat.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 GetSourcePlanhatRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourcePlanhatRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourcePlanhatResponse 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 *GetSourcePlanhatResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourcePlanhatResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourcePlanhatResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourcePlanhatResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcereddit.go b/internal/sdk/models/operations/getsourcereddit.go new file mode 100644 index 000000000..7dec5ef08 --- /dev/null +++ b/internal/sdk/models/operations/getsourcereddit.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 GetSourceRedditRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceRedditRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceRedditResponse 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 *GetSourceRedditResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceRedditResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceRedditResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceRedditResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcesavvycal.go b/internal/sdk/models/operations/getsourcesavvycal.go new file mode 100644 index 000000000..8de84f27d --- /dev/null +++ b/internal/sdk/models/operations/getsourcesavvycal.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 GetSourceSavvycalRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceSavvycalRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceSavvycalResponse 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 *GetSourceSavvycalResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceSavvycalResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceSavvycalResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceSavvycalResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcescryfall.go b/internal/sdk/models/operations/getsourcescryfall.go new file mode 100644 index 000000000..ba707bcef --- /dev/null +++ b/internal/sdk/models/operations/getsourcescryfall.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 GetSourceScryfallRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceScryfallRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceScryfallResponse 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 *GetSourceScryfallResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceScryfallResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceScryfallResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceScryfallResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putdestinationlangchain.go b/internal/sdk/models/operations/putdestinationlangchain.go deleted file mode 100644 index 95ab8e466..000000000 --- a/internal/sdk/models/operations/putdestinationlangchain.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 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/putdestinationtimeplus.go b/internal/sdk/models/operations/putdestinationtimeplus.go new file mode 100644 index 000000000..e424be619 --- /dev/null +++ b/internal/sdk/models/operations/putdestinationtimeplus.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 PutDestinationTimeplusRequest struct { + DestinationTimeplusPutRequest *shared.DestinationTimeplusPutRequest `request:"mediaType=application/json"` + DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` +} + +func (o *PutDestinationTimeplusRequest) GetDestinationTimeplusPutRequest() *shared.DestinationTimeplusPutRequest { + if o == nil { + return nil + } + return o.DestinationTimeplusPutRequest +} + +func (o *PutDestinationTimeplusRequest) GetDestinationID() string { + if o == nil { + return "" + } + return o.DestinationID +} + +type PutDestinationTimeplusResponse 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 *PutDestinationTimeplusResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutDestinationTimeplusResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutDestinationTimeplusResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcepunkapi.go b/internal/sdk/models/operations/putsourceairbyte.go similarity index 61% rename from internal/sdk/models/operations/putsourcepunkapi.go rename to internal/sdk/models/operations/putsourceairbyte.go index 33d5166ab..e074a7480 100644 --- a/internal/sdk/models/operations/putsourcepunkapi.go +++ b/internal/sdk/models/operations/putsourceairbyte.go @@ -7,26 +7,26 @@ import ( "net/http" ) -type PutSourcePunkAPIRequest struct { - SourcePunkAPIPutRequest *shared.SourcePunkAPIPutRequest `request:"mediaType=application/json"` +type PutSourceAirbyteRequest struct { + SourceAirbytePutRequest *shared.SourceAirbytePutRequest `request:"mediaType=application/json"` SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *PutSourcePunkAPIRequest) GetSourcePunkAPIPutRequest() *shared.SourcePunkAPIPutRequest { +func (o *PutSourceAirbyteRequest) GetSourceAirbytePutRequest() *shared.SourceAirbytePutRequest { if o == nil { return nil } - return o.SourcePunkAPIPutRequest + return o.SourceAirbytePutRequest } -func (o *PutSourcePunkAPIRequest) GetSourceID() string { +func (o *PutSourceAirbyteRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type PutSourcePunkAPIResponse struct { +type PutSourceAirbyteResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -35,21 +35,21 @@ type PutSourcePunkAPIResponse struct { RawResponse *http.Response } -func (o *PutSourcePunkAPIResponse) GetContentType() string { +func (o *PutSourceAirbyteResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *PutSourcePunkAPIResponse) GetStatusCode() int { +func (o *PutSourceAirbyteResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *PutSourcePunkAPIResponse) GetRawResponse() *http.Response { +func (o *PutSourceAirbyteResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/putsourcebasecamp.go b/internal/sdk/models/operations/putsourcebasecamp.go new file mode 100644 index 000000000..f9a529eac --- /dev/null +++ b/internal/sdk/models/operations/putsourcebasecamp.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 PutSourceBasecampRequest struct { + SourceBasecampPutRequest *shared.SourceBasecampPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceBasecampRequest) GetSourceBasecampPutRequest() *shared.SourceBasecampPutRequest { + if o == nil { + return nil + } + return o.SourceBasecampPutRequest +} + +func (o *PutSourceBasecampRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceBasecampResponse 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 *PutSourceBasecampResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceBasecampResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceBasecampResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcebreezyhr.go b/internal/sdk/models/operations/putsourcebreezyhr.go new file mode 100644 index 000000000..cd4a4014f --- /dev/null +++ b/internal/sdk/models/operations/putsourcebreezyhr.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 PutSourceBreezyHrRequest struct { + SourceBreezyHrPutRequest *shared.SourceBreezyHrPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceBreezyHrRequest) GetSourceBreezyHrPutRequest() *shared.SourceBreezyHrPutRequest { + if o == nil { + return nil + } + return o.SourceBreezyHrPutRequest +} + +func (o *PutSourceBreezyHrRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceBreezyHrResponse 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 *PutSourceBreezyHrResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceBreezyHrResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceBreezyHrResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcecalendly.go b/internal/sdk/models/operations/putsourcecalendly.go new file mode 100644 index 000000000..d375803ca --- /dev/null +++ b/internal/sdk/models/operations/putsourcecalendly.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 PutSourceCalendlyRequest struct { + SourceCalendlyPutRequest *shared.SourceCalendlyPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceCalendlyRequest) GetSourceCalendlyPutRequest() *shared.SourceCalendlyPutRequest { + if o == nil { + return nil + } + return o.SourceCalendlyPutRequest +} + +func (o *PutSourceCalendlyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceCalendlyResponse 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 *PutSourceCalendlyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceCalendlyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceCalendlyResponse) 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 new file mode 100644 index 000000000..6377c7340 --- /dev/null +++ b/internal/sdk/models/operations/putsourceclazar.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 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/putsourcecustomerio.go b/internal/sdk/models/operations/putsourcecustomerio.go new file mode 100644 index 000000000..39fe16770 --- /dev/null +++ b/internal/sdk/models/operations/putsourcecustomerio.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 PutSourceCustomerIoRequest struct { + SourceCustomerIoPutRequest *shared.SourceCustomerIoPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceCustomerIoRequest) GetSourceCustomerIoPutRequest() *shared.SourceCustomerIoPutRequest { + if o == nil { + return nil + } + return o.SourceCustomerIoPutRequest +} + +func (o *PutSourceCustomerIoRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceCustomerIoResponse 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 *PutSourceCustomerIoResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceCustomerIoResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceCustomerIoResponse) 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/putsourcedatadog.go new file mode 100644 index 000000000..2d5c01f0e --- /dev/null +++ b/internal/sdk/models/operations/putsourcedatadog.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 PutSourceDatadogRequest struct { + SourceDatadogPutRequest *shared.SourceDatadogPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceDatadogRequest) GetSourceDatadogPutRequest() *shared.SourceDatadogPutRequest { + if o == nil { + return nil + } + return o.SourceDatadogPutRequest +} + +func (o *PutSourceDatadogRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceDatadogResponse 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 *PutSourceDatadogResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceDatadogResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceDatadogResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcedbt.go b/internal/sdk/models/operations/putsourcedbt.go new file mode 100644 index 000000000..f76c6bb2a --- /dev/null +++ b/internal/sdk/models/operations/putsourcedbt.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 PutSourceDbtRequest struct { + SourceDbtPutRequest *shared.SourceDbtPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceDbtRequest) GetSourceDbtPutRequest() *shared.SourceDbtPutRequest { + if o == nil { + return nil + } + return o.SourceDbtPutRequest +} + +func (o *PutSourceDbtRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceDbtResponse 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 *PutSourceDbtResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceDbtResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceDbtResponse) 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 new file mode 100644 index 000000000..656dd79f7 --- /dev/null +++ b/internal/sdk/models/operations/putsourcegoldcast.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 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 deleted file mode 100644 index d7c6dd658..000000000 --- a/internal/sdk/models/operations/putsourcegoogleanalyticsv4serviceaccountonly.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 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/putsourcehardcodedrecords.go b/internal/sdk/models/operations/putsourcehardcodedrecords.go new file mode 100644 index 000000000..a9febdbe6 --- /dev/null +++ b/internal/sdk/models/operations/putsourcehardcodedrecords.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 PutSourceHardcodedRecordsRequest struct { + SourceHardcodedRecordsPutRequest *shared.SourceHardcodedRecordsPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceHardcodedRecordsRequest) GetSourceHardcodedRecordsPutRequest() *shared.SourceHardcodedRecordsPutRequest { + if o == nil { + return nil + } + return o.SourceHardcodedRecordsPutRequest +} + +func (o *PutSourceHardcodedRecordsRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceHardcodedRecordsResponse 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 *PutSourceHardcodedRecordsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceHardcodedRecordsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceHardcodedRecordsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcehibob.go b/internal/sdk/models/operations/putsourcehibob.go new file mode 100644 index 000000000..0a7285b87 --- /dev/null +++ b/internal/sdk/models/operations/putsourcehibob.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 PutSourceHibobRequest struct { + SourceHibobPutRequest *shared.SourceHibobPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceHibobRequest) GetSourceHibobPutRequest() *shared.SourceHibobPutRequest { + if o == nil { + return nil + } + return o.SourceHibobPutRequest +} + +func (o *PutSourceHibobRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceHibobResponse 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 *PutSourceHibobResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceHibobResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceHibobResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcehighlevel.go b/internal/sdk/models/operations/putsourcehighlevel.go new file mode 100644 index 000000000..3e44aecaa --- /dev/null +++ b/internal/sdk/models/operations/putsourcehighlevel.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 PutSourceHighLevelRequest struct { + SourceHighLevelPutRequest *shared.SourceHighLevelPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceHighLevelRequest) GetSourceHighLevelPutRequest() *shared.SourceHighLevelPutRequest { + if o == nil { + return nil + } + return o.SourceHighLevelPutRequest +} + +func (o *PutSourceHighLevelRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceHighLevelResponse 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 *PutSourceHighLevelResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceHighLevelResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceHighLevelResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceleadfeeder.go b/internal/sdk/models/operations/putsourceleadfeeder.go new file mode 100644 index 000000000..3b5bdaa76 --- /dev/null +++ b/internal/sdk/models/operations/putsourceleadfeeder.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 PutSourceLeadfeederRequest struct { + SourceLeadfeederPutRequest *shared.SourceLeadfeederPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceLeadfeederRequest) GetSourceLeadfeederPutRequest() *shared.SourceLeadfeederPutRequest { + if o == nil { + return nil + } + return o.SourceLeadfeederPutRequest +} + +func (o *PutSourceLeadfeederRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceLeadfeederResponse 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 *PutSourceLeadfeederResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceLeadfeederResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceLeadfeederResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcelooker.go b/internal/sdk/models/operations/putsourcelooker.go new file mode 100644 index 000000000..961ea506b --- /dev/null +++ b/internal/sdk/models/operations/putsourcelooker.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 PutSourceLookerRequest struct { + SourceLookerPutRequest *shared.SourceLookerPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceLookerRequest) GetSourceLookerPutRequest() *shared.SourceLookerPutRequest { + if o == nil { + return nil + } + return o.SourceLookerPutRequest +} + +func (o *PutSourceLookerRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceLookerResponse 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 *PutSourceLookerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceLookerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceLookerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceluma.go b/internal/sdk/models/operations/putsourceluma.go new file mode 100644 index 000000000..9d83916c8 --- /dev/null +++ b/internal/sdk/models/operations/putsourceluma.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 PutSourceLumaRequest struct { + SourceLumaPutRequest *shared.SourceLumaPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceLumaRequest) GetSourceLumaPutRequest() *shared.SourceLumaPutRequest { + if o == nil { + return nil + } + return o.SourceLumaPutRequest +} + +func (o *PutSourceLumaRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceLumaResponse 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 *PutSourceLumaResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceLumaResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceLumaResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcemongodbinternalpoc.go b/internal/sdk/models/operations/putsourcemongodbinternalpoc.go deleted file mode 100644 index 020619dde..000000000 --- a/internal/sdk/models/operations/putsourcemongodbinternalpoc.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 PutSourceMongodbInternalPocRequest struct { - SourceMongodbInternalPocPutRequest *shared.SourceMongodbInternalPocPutRequest `request:"mediaType=application/json"` - SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` -} - -func (o *PutSourceMongodbInternalPocRequest) GetSourceMongodbInternalPocPutRequest() *shared.SourceMongodbInternalPocPutRequest { - if o == nil { - return nil - } - return o.SourceMongodbInternalPocPutRequest -} - -func (o *PutSourceMongodbInternalPocRequest) GetSourceID() string { - if o == nil { - return "" - } - return o.SourceID -} - -type PutSourceMongodbInternalPocResponse 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 *PutSourceMongodbInternalPocResponse) GetContentType() string { - if o == nil { - return "" - } - return o.ContentType -} - -func (o *PutSourceMongodbInternalPocResponse) GetStatusCode() int { - if o == nil { - return 0 - } - return o.StatusCode -} - -func (o *PutSourceMongodbInternalPocResponse) GetRawResponse() *http.Response { - if o == nil { - return nil - } - return o.RawResponse -} diff --git a/internal/sdk/models/operations/putsourcenorthpasslms.go b/internal/sdk/models/operations/putsourcenorthpasslms.go new file mode 100644 index 000000000..0b7cff397 --- /dev/null +++ b/internal/sdk/models/operations/putsourcenorthpasslms.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 PutSourceNorthpassLmsRequest struct { + SourceNorthpassLmsPutRequest *shared.SourceNorthpassLmsPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceNorthpassLmsRequest) GetSourceNorthpassLmsPutRequest() *shared.SourceNorthpassLmsPutRequest { + if o == nil { + return nil + } + return o.SourceNorthpassLmsPutRequest +} + +func (o *PutSourceNorthpassLmsRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceNorthpassLmsResponse 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 *PutSourceNorthpassLmsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceNorthpassLmsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceNorthpassLmsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcepennylane.go b/internal/sdk/models/operations/putsourcepennylane.go new file mode 100644 index 000000000..da06f5207 --- /dev/null +++ b/internal/sdk/models/operations/putsourcepennylane.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 PutSourcePennylaneRequest struct { + SourcePennylanePutRequest *shared.SourcePennylanePutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourcePennylaneRequest) GetSourcePennylanePutRequest() *shared.SourcePennylanePutRequest { + if o == nil { + return nil + } + return o.SourcePennylanePutRequest +} + +func (o *PutSourcePennylaneRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourcePennylaneResponse 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 *PutSourcePennylaneResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourcePennylaneResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourcePennylaneResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceplanhat.go b/internal/sdk/models/operations/putsourceplanhat.go new file mode 100644 index 000000000..53feb6b49 --- /dev/null +++ b/internal/sdk/models/operations/putsourceplanhat.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 PutSourcePlanhatRequest struct { + SourcePlanhatPutRequest *shared.SourcePlanhatPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourcePlanhatRequest) GetSourcePlanhatPutRequest() *shared.SourcePlanhatPutRequest { + if o == nil { + return nil + } + return o.SourcePlanhatPutRequest +} + +func (o *PutSourcePlanhatRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourcePlanhatResponse 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 *PutSourcePlanhatResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourcePlanhatResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourcePlanhatResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcereddit.go b/internal/sdk/models/operations/putsourcereddit.go new file mode 100644 index 000000000..7648f2a06 --- /dev/null +++ b/internal/sdk/models/operations/putsourcereddit.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 PutSourceRedditRequest struct { + SourceRedditPutRequest *shared.SourceRedditPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceRedditRequest) GetSourceRedditPutRequest() *shared.SourceRedditPutRequest { + if o == nil { + return nil + } + return o.SourceRedditPutRequest +} + +func (o *PutSourceRedditRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceRedditResponse 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 *PutSourceRedditResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceRedditResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceRedditResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcesavvycal.go b/internal/sdk/models/operations/putsourcesavvycal.go new file mode 100644 index 000000000..933d311d5 --- /dev/null +++ b/internal/sdk/models/operations/putsourcesavvycal.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 PutSourceSavvycalRequest struct { + SourceSavvycalPutRequest *shared.SourceSavvycalPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceSavvycalRequest) GetSourceSavvycalPutRequest() *shared.SourceSavvycalPutRequest { + if o == nil { + return nil + } + return o.SourceSavvycalPutRequest +} + +func (o *PutSourceSavvycalRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceSavvycalResponse 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 *PutSourceSavvycalResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceSavvycalResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceSavvycalResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcescryfall.go b/internal/sdk/models/operations/putsourcescryfall.go new file mode 100644 index 000000000..58451c8dd --- /dev/null +++ b/internal/sdk/models/operations/putsourcescryfall.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 PutSourceScryfallRequest struct { + SourceScryfallPutRequest *shared.SourceScryfallPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceScryfallRequest) GetSourceScryfallPutRequest() *shared.SourceScryfallPutRequest { + if o == nil { + return nil + } + return o.SourceScryfallPutRequest +} + +func (o *PutSourceScryfallRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceScryfallResponse 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 *PutSourceScryfallResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceScryfallResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceScryfallResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/shared/destinationbigquery.go b/internal/sdk/models/shared/destinationbigquery.go index 5bb17e71b..abdd9c75e 100644 --- a/internal/sdk/models/shared/destinationbigquery.go +++ b/internal/sdk/models/shared/destinationbigquery.go @@ -185,49 +185,6 @@ func (e *Bigquery) UnmarshalJSON(data []byte) error { } } -type DestinationBigquerySchemasMethod string - -const ( - DestinationBigquerySchemasMethodStandard DestinationBigquerySchemasMethod = "Standard" -) - -func (e DestinationBigquerySchemasMethod) ToPointer() *DestinationBigquerySchemasMethod { - return &e -} -func (e *DestinationBigquerySchemasMethod) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "Standard": - *e = DestinationBigquerySchemasMethod(v) - return nil - default: - return fmt.Errorf("invalid value for DestinationBigquerySchemasMethod: %v", v) - } -} - -// DestinationBigqueryStandardInserts - (not recommended) Direct loading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In all other cases, you should use GCS staging. -type DestinationBigqueryStandardInserts struct { - method DestinationBigquerySchemasMethod `const:"Standard" json:"method"` -} - -func (d DestinationBigqueryStandardInserts) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DestinationBigqueryStandardInserts) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { - return err - } - return nil -} - -func (o *DestinationBigqueryStandardInserts) GetMethod() DestinationBigquerySchemasMethod { - return DestinationBigquerySchemasMethodStandard -} - type DestinationBigqueryCredentialType string const ( @@ -357,30 +314,30 @@ func (e *DestinationBigqueryGCSTmpFilesAfterwardProcessing) UnmarshalJSON(data [ } } -type DestinationBigqueryMethod string +type DestinationBigquerySchemasMethod string const ( - DestinationBigqueryMethodGcsStaging DestinationBigqueryMethod = "GCS Staging" + DestinationBigquerySchemasMethodGcsStaging DestinationBigquerySchemasMethod = "GCS Staging" ) -func (e DestinationBigqueryMethod) ToPointer() *DestinationBigqueryMethod { +func (e DestinationBigquerySchemasMethod) ToPointer() *DestinationBigquerySchemasMethod { return &e } -func (e *DestinationBigqueryMethod) UnmarshalJSON(data []byte) error { +func (e *DestinationBigquerySchemasMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "GCS Staging": - *e = DestinationBigqueryMethod(v) + *e = DestinationBigquerySchemasMethod(v) return nil default: - return fmt.Errorf("invalid value for DestinationBigqueryMethod: %v", v) + return fmt.Errorf("invalid value for DestinationBigquerySchemasMethod: %v", v) } } -// DestinationBigqueryGCSStaging - (recommended) Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. Provides best-in-class speed, reliability and scalability. Read more about GCS Staging here. +// DestinationBigqueryGCSStaging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. type DestinationBigqueryGCSStaging struct { // An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. Credential DestinationBigqueryCredential `json:"credential"` @@ -390,7 +347,7 @@ type DestinationBigqueryGCSStaging struct { GcsBucketPath string `json:"gcs_bucket_path"` // This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. KeepFilesInGcsBucket *DestinationBigqueryGCSTmpFilesAfterwardProcessing `default:"Delete all tmp files from GCS" json:"keep_files_in_gcs-bucket"` - method DestinationBigqueryMethod `const:"GCS Staging" json:"method"` + method DestinationBigquerySchemasMethod `const:"GCS Staging" json:"method"` } func (d DestinationBigqueryGCSStaging) MarshalJSON() ([]byte, error) { @@ -432,49 +389,92 @@ func (o *DestinationBigqueryGCSStaging) GetKeepFilesInGcsBucket() *DestinationBi return o.KeepFilesInGcsBucket } -func (o *DestinationBigqueryGCSStaging) GetMethod() DestinationBigqueryMethod { - return DestinationBigqueryMethodGcsStaging +func (o *DestinationBigqueryGCSStaging) GetMethod() DestinationBigquerySchemasMethod { + return DestinationBigquerySchemasMethodGcsStaging +} + +type DestinationBigqueryMethod string + +const ( + DestinationBigqueryMethodStandard DestinationBigqueryMethod = "Standard" +) + +func (e DestinationBigqueryMethod) ToPointer() *DestinationBigqueryMethod { + return &e +} +func (e *DestinationBigqueryMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "Standard": + *e = DestinationBigqueryMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationBigqueryMethod: %v", v) + } +} + +// DestinationBigqueryBatchedStandardInserts - Direct loading using batched SQL INSERT statements. This method uses the BigQuery driver to convert large INSERT statements into file uploads automatically. +type DestinationBigqueryBatchedStandardInserts struct { + method DestinationBigqueryMethod `const:"Standard" json:"method"` +} + +func (d DestinationBigqueryBatchedStandardInserts) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationBigqueryBatchedStandardInserts) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationBigqueryBatchedStandardInserts) GetMethod() DestinationBigqueryMethod { + return DestinationBigqueryMethodStandard } type DestinationBigqueryLoadingMethodType string const ( - DestinationBigqueryLoadingMethodTypeDestinationBigqueryGCSStaging DestinationBigqueryLoadingMethodType = "destination-bigquery_GCS Staging" - DestinationBigqueryLoadingMethodTypeDestinationBigqueryStandardInserts DestinationBigqueryLoadingMethodType = "destination-bigquery_Standard Inserts" + DestinationBigqueryLoadingMethodTypeDestinationBigqueryBatchedStandardInserts DestinationBigqueryLoadingMethodType = "destination-bigquery_Batched Standard Inserts" + DestinationBigqueryLoadingMethodTypeDestinationBigqueryGCSStaging DestinationBigqueryLoadingMethodType = "destination-bigquery_GCS Staging" ) // DestinationBigqueryLoadingMethod - The way data will be uploaded to BigQuery. type DestinationBigqueryLoadingMethod struct { - DestinationBigqueryGCSStaging *DestinationBigqueryGCSStaging - DestinationBigqueryStandardInserts *DestinationBigqueryStandardInserts + DestinationBigqueryBatchedStandardInserts *DestinationBigqueryBatchedStandardInserts + DestinationBigqueryGCSStaging *DestinationBigqueryGCSStaging Type DestinationBigqueryLoadingMethodType } -func CreateDestinationBigqueryLoadingMethodDestinationBigqueryGCSStaging(destinationBigqueryGCSStaging DestinationBigqueryGCSStaging) DestinationBigqueryLoadingMethod { - typ := DestinationBigqueryLoadingMethodTypeDestinationBigqueryGCSStaging +func CreateDestinationBigqueryLoadingMethodDestinationBigqueryBatchedStandardInserts(destinationBigqueryBatchedStandardInserts DestinationBigqueryBatchedStandardInserts) DestinationBigqueryLoadingMethod { + typ := DestinationBigqueryLoadingMethodTypeDestinationBigqueryBatchedStandardInserts return DestinationBigqueryLoadingMethod{ - DestinationBigqueryGCSStaging: &destinationBigqueryGCSStaging, - Type: typ, + DestinationBigqueryBatchedStandardInserts: &destinationBigqueryBatchedStandardInserts, + Type: typ, } } -func CreateDestinationBigqueryLoadingMethodDestinationBigqueryStandardInserts(destinationBigqueryStandardInserts DestinationBigqueryStandardInserts) DestinationBigqueryLoadingMethod { - typ := DestinationBigqueryLoadingMethodTypeDestinationBigqueryStandardInserts +func CreateDestinationBigqueryLoadingMethodDestinationBigqueryGCSStaging(destinationBigqueryGCSStaging DestinationBigqueryGCSStaging) DestinationBigqueryLoadingMethod { + typ := DestinationBigqueryLoadingMethodTypeDestinationBigqueryGCSStaging return DestinationBigqueryLoadingMethod{ - DestinationBigqueryStandardInserts: &destinationBigqueryStandardInserts, - Type: typ, + DestinationBigqueryGCSStaging: &destinationBigqueryGCSStaging, + Type: typ, } } func (u *DestinationBigqueryLoadingMethod) UnmarshalJSON(data []byte) error { - var destinationBigqueryStandardInserts DestinationBigqueryStandardInserts = DestinationBigqueryStandardInserts{} - if err := utils.UnmarshalJSON(data, &destinationBigqueryStandardInserts, "", true, true); err == nil { - u.DestinationBigqueryStandardInserts = &destinationBigqueryStandardInserts - u.Type = DestinationBigqueryLoadingMethodTypeDestinationBigqueryStandardInserts + var destinationBigqueryBatchedStandardInserts DestinationBigqueryBatchedStandardInserts = DestinationBigqueryBatchedStandardInserts{} + if err := utils.UnmarshalJSON(data, &destinationBigqueryBatchedStandardInserts, "", true, true); err == nil { + u.DestinationBigqueryBatchedStandardInserts = &destinationBigqueryBatchedStandardInserts + u.Type = DestinationBigqueryLoadingMethodTypeDestinationBigqueryBatchedStandardInserts return nil } @@ -489,12 +489,12 @@ func (u *DestinationBigqueryLoadingMethod) UnmarshalJSON(data []byte) error { } func (u DestinationBigqueryLoadingMethod) MarshalJSON() ([]byte, error) { - if u.DestinationBigqueryGCSStaging != nil { - return utils.MarshalJSON(u.DestinationBigqueryGCSStaging, "", true) + if u.DestinationBigqueryBatchedStandardInserts != nil { + return utils.MarshalJSON(u.DestinationBigqueryBatchedStandardInserts, "", true) } - if u.DestinationBigqueryStandardInserts != nil { - return utils.MarshalJSON(u.DestinationBigqueryStandardInserts, "", true) + if u.DestinationBigqueryGCSStaging != nil { + return utils.MarshalJSON(u.DestinationBigqueryGCSStaging, "", true) } return nil, errors.New("could not marshal union type DestinationBigqueryLoadingMethod: all fields are null") diff --git a/internal/sdk/models/shared/destinationbigqueryupdate.go b/internal/sdk/models/shared/destinationbigqueryupdate.go index 2977c0c61..639d44ec9 100644 --- a/internal/sdk/models/shared/destinationbigqueryupdate.go +++ b/internal/sdk/models/shared/destinationbigqueryupdate.go @@ -162,49 +162,6 @@ func (e *DatasetLocation) UnmarshalJSON(data []byte) error { } } -type DestinationBigqueryUpdateMethod string - -const ( - DestinationBigqueryUpdateMethodStandard DestinationBigqueryUpdateMethod = "Standard" -) - -func (e DestinationBigqueryUpdateMethod) ToPointer() *DestinationBigqueryUpdateMethod { - return &e -} -func (e *DestinationBigqueryUpdateMethod) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "Standard": - *e = DestinationBigqueryUpdateMethod(v) - return nil - default: - return fmt.Errorf("invalid value for DestinationBigqueryUpdateMethod: %v", v) - } -} - -// StandardInserts - (not recommended) Direct loading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In all other cases, you should use GCS staging. -type StandardInserts struct { - method DestinationBigqueryUpdateMethod `const:"Standard" json:"method"` -} - -func (s StandardInserts) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *StandardInserts) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *StandardInserts) GetMethod() DestinationBigqueryUpdateMethod { - return DestinationBigqueryUpdateMethodStandard -} - type DestinationBigqueryUpdateCredentialType string const ( @@ -334,30 +291,30 @@ func (e *GCSTmpFilesAfterwardProcessing) UnmarshalJSON(data []byte) error { } } -type Method string +type DestinationBigqueryUpdateMethod string const ( - MethodGcsStaging Method = "GCS Staging" + DestinationBigqueryUpdateMethodGcsStaging DestinationBigqueryUpdateMethod = "GCS Staging" ) -func (e Method) ToPointer() *Method { +func (e DestinationBigqueryUpdateMethod) ToPointer() *DestinationBigqueryUpdateMethod { return &e } -func (e *Method) UnmarshalJSON(data []byte) error { +func (e *DestinationBigqueryUpdateMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "GCS Staging": - *e = Method(v) + *e = DestinationBigqueryUpdateMethod(v) return nil default: - return fmt.Errorf("invalid value for Method: %v", v) + return fmt.Errorf("invalid value for DestinationBigqueryUpdateMethod: %v", v) } } -// GCSStaging - (recommended) Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. Provides best-in-class speed, reliability and scalability. Read more about GCS Staging here. +// GCSStaging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. type GCSStaging struct { // An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. Credential Credential `json:"credential"` @@ -367,7 +324,7 @@ type GCSStaging struct { GcsBucketPath string `json:"gcs_bucket_path"` // This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. KeepFilesInGcsBucket *GCSTmpFilesAfterwardProcessing `default:"Delete all tmp files from GCS" json:"keep_files_in_gcs-bucket"` - method Method `const:"GCS Staging" json:"method"` + method DestinationBigqueryUpdateMethod `const:"GCS Staging" json:"method"` } func (g GCSStaging) MarshalJSON() ([]byte, error) { @@ -409,49 +366,92 @@ func (o *GCSStaging) GetKeepFilesInGcsBucket() *GCSTmpFilesAfterwardProcessing { return o.KeepFilesInGcsBucket } -func (o *GCSStaging) GetMethod() Method { - return MethodGcsStaging +func (o *GCSStaging) GetMethod() DestinationBigqueryUpdateMethod { + return DestinationBigqueryUpdateMethodGcsStaging +} + +type Method string + +const ( + MethodStandard Method = "Standard" +) + +func (e Method) ToPointer() *Method { + return &e +} +func (e *Method) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "Standard": + *e = Method(v) + return nil + default: + return fmt.Errorf("invalid value for Method: %v", v) + } +} + +// BatchedStandardInserts - Direct loading using batched SQL INSERT statements. This method uses the BigQuery driver to convert large INSERT statements into file uploads automatically. +type BatchedStandardInserts struct { + method Method `const:"Standard" json:"method"` +} + +func (b BatchedStandardInserts) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *BatchedStandardInserts) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, true); err != nil { + return err + } + return nil +} + +func (o *BatchedStandardInserts) GetMethod() Method { + return MethodStandard } type LoadingMethodType string const ( - LoadingMethodTypeGCSStaging LoadingMethodType = "GCS Staging" - LoadingMethodTypeStandardInserts LoadingMethodType = "Standard Inserts" + LoadingMethodTypeBatchedStandardInserts LoadingMethodType = "Batched Standard Inserts" + LoadingMethodTypeGCSStaging LoadingMethodType = "GCS Staging" ) // LoadingMethod - The way data will be uploaded to BigQuery. type LoadingMethod struct { - GCSStaging *GCSStaging - StandardInserts *StandardInserts + BatchedStandardInserts *BatchedStandardInserts + GCSStaging *GCSStaging Type LoadingMethodType } -func CreateLoadingMethodGCSStaging(gcsStaging GCSStaging) LoadingMethod { - typ := LoadingMethodTypeGCSStaging +func CreateLoadingMethodBatchedStandardInserts(batchedStandardInserts BatchedStandardInserts) LoadingMethod { + typ := LoadingMethodTypeBatchedStandardInserts return LoadingMethod{ - GCSStaging: &gcsStaging, - Type: typ, + BatchedStandardInserts: &batchedStandardInserts, + Type: typ, } } -func CreateLoadingMethodStandardInserts(standardInserts StandardInserts) LoadingMethod { - typ := LoadingMethodTypeStandardInserts +func CreateLoadingMethodGCSStaging(gcsStaging GCSStaging) LoadingMethod { + typ := LoadingMethodTypeGCSStaging return LoadingMethod{ - StandardInserts: &standardInserts, - Type: typ, + GCSStaging: &gcsStaging, + Type: typ, } } func (u *LoadingMethod) UnmarshalJSON(data []byte) error { - var standardInserts StandardInserts = StandardInserts{} - if err := utils.UnmarshalJSON(data, &standardInserts, "", true, true); err == nil { - u.StandardInserts = &standardInserts - u.Type = LoadingMethodTypeStandardInserts + var batchedStandardInserts BatchedStandardInserts = BatchedStandardInserts{} + if err := utils.UnmarshalJSON(data, &batchedStandardInserts, "", true, true); err == nil { + u.BatchedStandardInserts = &batchedStandardInserts + u.Type = LoadingMethodTypeBatchedStandardInserts return nil } @@ -466,12 +466,12 @@ func (u *LoadingMethod) UnmarshalJSON(data []byte) error { } func (u LoadingMethod) MarshalJSON() ([]byte, error) { - if u.GCSStaging != nil { - return utils.MarshalJSON(u.GCSStaging, "", true) + if u.BatchedStandardInserts != nil { + return utils.MarshalJSON(u.BatchedStandardInserts, "", true) } - if u.StandardInserts != nil { - return utils.MarshalJSON(u.StandardInserts, "", true) + if u.GCSStaging != nil { + return utils.MarshalJSON(u.GCSStaging, "", true) } return nil, errors.New("could not marshal union type LoadingMethod: all fields are null") diff --git a/internal/sdk/models/shared/destinationdatabricks.go b/internal/sdk/models/shared/destinationdatabricks.go index 2483bc89b..0274f6f36 100644 --- a/internal/sdk/models/shared/destinationdatabricks.go +++ b/internal/sdk/models/shared/destinationdatabricks.go @@ -9,405 +9,176 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" ) -type DestinationDatabricksSchemasDataSourceDataSourceType string +type DestinationDatabricksSchemasAuthType string const ( - DestinationDatabricksSchemasDataSourceDataSourceTypeAzureBlobStorage DestinationDatabricksSchemasDataSourceDataSourceType = "AZURE_BLOB_STORAGE" + DestinationDatabricksSchemasAuthTypeBasic DestinationDatabricksSchemasAuthType = "BASIC" ) -func (e DestinationDatabricksSchemasDataSourceDataSourceType) ToPointer() *DestinationDatabricksSchemasDataSourceDataSourceType { +func (e DestinationDatabricksSchemasAuthType) ToPointer() *DestinationDatabricksSchemasAuthType { return &e } -func (e *DestinationDatabricksSchemasDataSourceDataSourceType) UnmarshalJSON(data []byte) error { +func (e *DestinationDatabricksSchemasAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "AZURE_BLOB_STORAGE": - *e = DestinationDatabricksSchemasDataSourceDataSourceType(v) + case "BASIC": + *e = DestinationDatabricksSchemasAuthType(v) return nil default: - return fmt.Errorf("invalid value for DestinationDatabricksSchemasDataSourceDataSourceType: %v", v) + return fmt.Errorf("invalid value for DestinationDatabricksSchemasAuthType: %v", v) } } -type DestinationDatabricksAzureBlobStorage struct { - // The account's name of the Azure Blob Storage. - AzureBlobStorageAccountName string `json:"azure_blob_storage_account_name"` - // The name of the Azure blob storage container. - AzureBlobStorageContainerName string `json:"azure_blob_storage_container_name"` - // This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. - AzureBlobStorageEndpointDomainName *string `default:"blob.core.windows.net" json:"azure_blob_storage_endpoint_domain_name"` - // Shared access signature (SAS) token to grant limited access to objects in your storage account. - AzureBlobStorageSasToken string `json:"azure_blob_storage_sas_token"` - dataSourceType DestinationDatabricksSchemasDataSourceDataSourceType `const:"AZURE_BLOB_STORAGE" json:"data_source_type"` +type DestinationDatabricksPersonalAccessToken struct { + authType DestinationDatabricksSchemasAuthType `const:"BASIC" json:"auth_type"` + PersonalAccessToken string `json:"personal_access_token"` } -func (d DestinationDatabricksAzureBlobStorage) MarshalJSON() ([]byte, error) { +func (d DestinationDatabricksPersonalAccessToken) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(d, "", false) } -func (d *DestinationDatabricksAzureBlobStorage) UnmarshalJSON(data []byte) error { +func (d *DestinationDatabricksPersonalAccessToken) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { return err } return nil } -func (o *DestinationDatabricksAzureBlobStorage) GetAzureBlobStorageAccountName() string { - if o == nil { - return "" - } - return o.AzureBlobStorageAccountName -} - -func (o *DestinationDatabricksAzureBlobStorage) GetAzureBlobStorageContainerName() string { - if o == nil { - return "" - } - return o.AzureBlobStorageContainerName +func (o *DestinationDatabricksPersonalAccessToken) GetAuthType() DestinationDatabricksSchemasAuthType { + return DestinationDatabricksSchemasAuthTypeBasic } -func (o *DestinationDatabricksAzureBlobStorage) GetAzureBlobStorageEndpointDomainName() *string { - if o == nil { - return nil - } - return o.AzureBlobStorageEndpointDomainName -} - -func (o *DestinationDatabricksAzureBlobStorage) GetAzureBlobStorageSasToken() string { +func (o *DestinationDatabricksPersonalAccessToken) GetPersonalAccessToken() string { if o == nil { return "" } - return o.AzureBlobStorageSasToken -} - -func (o *DestinationDatabricksAzureBlobStorage) GetDataSourceType() DestinationDatabricksSchemasDataSourceDataSourceType { - return DestinationDatabricksSchemasDataSourceDataSourceTypeAzureBlobStorage + return o.PersonalAccessToken } -type DestinationDatabricksSchemasDataSourceType string +type DestinationDatabricksAuthType string const ( - DestinationDatabricksSchemasDataSourceTypeS3Storage DestinationDatabricksSchemasDataSourceType = "S3_STORAGE" + DestinationDatabricksAuthTypeOauth DestinationDatabricksAuthType = "OAUTH" ) -func (e DestinationDatabricksSchemasDataSourceType) ToPointer() *DestinationDatabricksSchemasDataSourceType { +func (e DestinationDatabricksAuthType) ToPointer() *DestinationDatabricksAuthType { return &e } -func (e *DestinationDatabricksSchemasDataSourceType) UnmarshalJSON(data []byte) error { +func (e *DestinationDatabricksAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "S3_STORAGE": - *e = DestinationDatabricksSchemasDataSourceType(v) + case "OAUTH": + *e = DestinationDatabricksAuthType(v) return nil default: - return fmt.Errorf("invalid value for DestinationDatabricksSchemasDataSourceType: %v", v) + return fmt.Errorf("invalid value for DestinationDatabricksAuthType: %v", v) } } -// DestinationDatabricksS3BucketRegion - The region of the S3 staging bucket to use if utilising a copy strategy. -type DestinationDatabricksS3BucketRegion string - -const ( - DestinationDatabricksS3BucketRegionUnknown DestinationDatabricksS3BucketRegion = "" - DestinationDatabricksS3BucketRegionUsEast1 DestinationDatabricksS3BucketRegion = "us-east-1" - DestinationDatabricksS3BucketRegionUsEast2 DestinationDatabricksS3BucketRegion = "us-east-2" - DestinationDatabricksS3BucketRegionUsWest1 DestinationDatabricksS3BucketRegion = "us-west-1" - DestinationDatabricksS3BucketRegionUsWest2 DestinationDatabricksS3BucketRegion = "us-west-2" - DestinationDatabricksS3BucketRegionAfSouth1 DestinationDatabricksS3BucketRegion = "af-south-1" - DestinationDatabricksS3BucketRegionApEast1 DestinationDatabricksS3BucketRegion = "ap-east-1" - DestinationDatabricksS3BucketRegionApSouth1 DestinationDatabricksS3BucketRegion = "ap-south-1" - DestinationDatabricksS3BucketRegionApNortheast1 DestinationDatabricksS3BucketRegion = "ap-northeast-1" - DestinationDatabricksS3BucketRegionApNortheast2 DestinationDatabricksS3BucketRegion = "ap-northeast-2" - DestinationDatabricksS3BucketRegionApNortheast3 DestinationDatabricksS3BucketRegion = "ap-northeast-3" - DestinationDatabricksS3BucketRegionApSoutheast1 DestinationDatabricksS3BucketRegion = "ap-southeast-1" - DestinationDatabricksS3BucketRegionApSoutheast2 DestinationDatabricksS3BucketRegion = "ap-southeast-2" - DestinationDatabricksS3BucketRegionCaCentral1 DestinationDatabricksS3BucketRegion = "ca-central-1" - DestinationDatabricksS3BucketRegionCnNorth1 DestinationDatabricksS3BucketRegion = "cn-north-1" - DestinationDatabricksS3BucketRegionCnNorthwest1 DestinationDatabricksS3BucketRegion = "cn-northwest-1" - DestinationDatabricksS3BucketRegionEuCentral1 DestinationDatabricksS3BucketRegion = "eu-central-1" - DestinationDatabricksS3BucketRegionEuNorth1 DestinationDatabricksS3BucketRegion = "eu-north-1" - DestinationDatabricksS3BucketRegionEuSouth1 DestinationDatabricksS3BucketRegion = "eu-south-1" - DestinationDatabricksS3BucketRegionEuWest1 DestinationDatabricksS3BucketRegion = "eu-west-1" - DestinationDatabricksS3BucketRegionEuWest2 DestinationDatabricksS3BucketRegion = "eu-west-2" - DestinationDatabricksS3BucketRegionEuWest3 DestinationDatabricksS3BucketRegion = "eu-west-3" - DestinationDatabricksS3BucketRegionSaEast1 DestinationDatabricksS3BucketRegion = "sa-east-1" - DestinationDatabricksS3BucketRegionMeSouth1 DestinationDatabricksS3BucketRegion = "me-south-1" - DestinationDatabricksS3BucketRegionUsGovEast1 DestinationDatabricksS3BucketRegion = "us-gov-east-1" - DestinationDatabricksS3BucketRegionUsGovWest1 DestinationDatabricksS3BucketRegion = "us-gov-west-1" -) - -func (e DestinationDatabricksS3BucketRegion) ToPointer() *DestinationDatabricksS3BucketRegion { - return &e -} -func (e *DestinationDatabricksS3BucketRegion) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "": - fallthrough - case "us-east-1": - fallthrough - case "us-east-2": - fallthrough - case "us-west-1": - fallthrough - case "us-west-2": - fallthrough - case "af-south-1": - fallthrough - case "ap-east-1": - fallthrough - case "ap-south-1": - fallthrough - case "ap-northeast-1": - fallthrough - case "ap-northeast-2": - fallthrough - case "ap-northeast-3": - fallthrough - case "ap-southeast-1": - fallthrough - case "ap-southeast-2": - fallthrough - case "ca-central-1": - fallthrough - case "cn-north-1": - fallthrough - case "cn-northwest-1": - fallthrough - case "eu-central-1": - fallthrough - case "eu-north-1": - fallthrough - case "eu-south-1": - fallthrough - case "eu-west-1": - fallthrough - case "eu-west-2": - fallthrough - case "eu-west-3": - fallthrough - case "sa-east-1": - fallthrough - case "me-south-1": - fallthrough - case "us-gov-east-1": - fallthrough - case "us-gov-west-1": - *e = DestinationDatabricksS3BucketRegion(v) - return nil - default: - return fmt.Errorf("invalid value for DestinationDatabricksS3BucketRegion: %v", v) - } -} - -type DestinationDatabricksAmazonS3 struct { - dataSourceType DestinationDatabricksSchemasDataSourceType `const:"S3_STORAGE" json:"data_source_type"` - // The pattern allows you to set the file-name format for the S3 staging file(s) - FileNamePattern *string `json:"file_name_pattern,omitempty"` - // The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. - S3AccessKeyID string `json:"s3_access_key_id"` - // The name of the S3 bucket to use for intermittent staging of the data. - S3BucketName string `json:"s3_bucket_name"` - // The directory under the S3 bucket where data will be written. - S3BucketPath string `json:"s3_bucket_path"` - // The region of the S3 staging bucket to use if utilising a copy strategy. - S3BucketRegion *DestinationDatabricksS3BucketRegion `default:"" json:"s3_bucket_region"` - // The corresponding secret to the above access key id. - S3SecretAccessKey string `json:"s3_secret_access_key"` +type DestinationDatabricksOAuth2Recommended struct { + authType DestinationDatabricksAuthType `const:"OAUTH" json:"auth_type"` + ClientID string `json:"client_id"` + Secret string `json:"secret"` } -func (d DestinationDatabricksAmazonS3) MarshalJSON() ([]byte, error) { +func (d DestinationDatabricksOAuth2Recommended) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(d, "", false) } -func (d *DestinationDatabricksAmazonS3) UnmarshalJSON(data []byte) error { +func (d *DestinationDatabricksOAuth2Recommended) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { return err } return nil } -func (o *DestinationDatabricksAmazonS3) GetDataSourceType() DestinationDatabricksSchemasDataSourceType { - return DestinationDatabricksSchemasDataSourceTypeS3Storage -} - -func (o *DestinationDatabricksAmazonS3) GetFileNamePattern() *string { - if o == nil { - return nil - } - return o.FileNamePattern -} - -func (o *DestinationDatabricksAmazonS3) GetS3AccessKeyID() string { - if o == nil { - return "" - } - return o.S3AccessKeyID +func (o *DestinationDatabricksOAuth2Recommended) GetAuthType() DestinationDatabricksAuthType { + return DestinationDatabricksAuthTypeOauth } -func (o *DestinationDatabricksAmazonS3) GetS3BucketName() string { +func (o *DestinationDatabricksOAuth2Recommended) GetClientID() string { if o == nil { return "" } - return o.S3BucketName + return o.ClientID } -func (o *DestinationDatabricksAmazonS3) GetS3BucketPath() string { +func (o *DestinationDatabricksOAuth2Recommended) GetSecret() string { if o == nil { return "" } - return o.S3BucketPath -} - -func (o *DestinationDatabricksAmazonS3) GetS3BucketRegion() *DestinationDatabricksS3BucketRegion { - if o == nil { - return nil - } - return o.S3BucketRegion -} - -func (o *DestinationDatabricksAmazonS3) GetS3SecretAccessKey() string { - if o == nil { - return "" - } - return o.S3SecretAccessKey -} - -type DestinationDatabricksDataSourceType string - -const ( - DestinationDatabricksDataSourceTypeManagedTablesStorage DestinationDatabricksDataSourceType = "MANAGED_TABLES_STORAGE" -) - -func (e DestinationDatabricksDataSourceType) ToPointer() *DestinationDatabricksDataSourceType { - return &e -} -func (e *DestinationDatabricksDataSourceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "MANAGED_TABLES_STORAGE": - *e = DestinationDatabricksDataSourceType(v) - return nil - default: - return fmt.Errorf("invalid value for DestinationDatabricksDataSourceType: %v", v) - } -} - -type DestinationDatabricksRecommendedManagedTables struct { - dataSourceType DestinationDatabricksDataSourceType `const:"MANAGED_TABLES_STORAGE" json:"data_source_type"` -} - -func (d DestinationDatabricksRecommendedManagedTables) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DestinationDatabricksRecommendedManagedTables) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { - return err - } - return nil -} - -func (o *DestinationDatabricksRecommendedManagedTables) GetDataSourceType() DestinationDatabricksDataSourceType { - return DestinationDatabricksDataSourceTypeManagedTablesStorage + return o.Secret } -type DestinationDatabricksDataSourceUnionType string +type DestinationDatabricksAuthenticationType string const ( - DestinationDatabricksDataSourceUnionTypeDestinationDatabricksRecommendedManagedTables DestinationDatabricksDataSourceUnionType = "destination-databricks_[Recommended] Managed tables" - DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAmazonS3 DestinationDatabricksDataSourceUnionType = "destination-databricks_Amazon S3" - DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAzureBlobStorage DestinationDatabricksDataSourceUnionType = "destination-databricks_Azure Blob Storage" + DestinationDatabricksAuthenticationTypeDestinationDatabricksOAuth2Recommended DestinationDatabricksAuthenticationType = "destination-databricks_OAuth2 (Recommended)" + DestinationDatabricksAuthenticationTypeDestinationDatabricksPersonalAccessToken DestinationDatabricksAuthenticationType = "destination-databricks_Personal Access Token" ) -// DestinationDatabricksDataSource - Storage on which the delta lake is built. -type DestinationDatabricksDataSource struct { - DestinationDatabricksRecommendedManagedTables *DestinationDatabricksRecommendedManagedTables - DestinationDatabricksAmazonS3 *DestinationDatabricksAmazonS3 - DestinationDatabricksAzureBlobStorage *DestinationDatabricksAzureBlobStorage +// DestinationDatabricksAuthentication - Authentication mechanism for Staging files and running queries +type DestinationDatabricksAuthentication struct { + DestinationDatabricksOAuth2Recommended *DestinationDatabricksOAuth2Recommended + DestinationDatabricksPersonalAccessToken *DestinationDatabricksPersonalAccessToken - Type DestinationDatabricksDataSourceUnionType + Type DestinationDatabricksAuthenticationType } -func CreateDestinationDatabricksDataSourceDestinationDatabricksRecommendedManagedTables(destinationDatabricksRecommendedManagedTables DestinationDatabricksRecommendedManagedTables) DestinationDatabricksDataSource { - typ := DestinationDatabricksDataSourceUnionTypeDestinationDatabricksRecommendedManagedTables +func CreateDestinationDatabricksAuthenticationDestinationDatabricksOAuth2Recommended(destinationDatabricksOAuth2Recommended DestinationDatabricksOAuth2Recommended) DestinationDatabricksAuthentication { + typ := DestinationDatabricksAuthenticationTypeDestinationDatabricksOAuth2Recommended - return DestinationDatabricksDataSource{ - DestinationDatabricksRecommendedManagedTables: &destinationDatabricksRecommendedManagedTables, - Type: typ, + return DestinationDatabricksAuthentication{ + DestinationDatabricksOAuth2Recommended: &destinationDatabricksOAuth2Recommended, + Type: typ, } } -func CreateDestinationDatabricksDataSourceDestinationDatabricksAmazonS3(destinationDatabricksAmazonS3 DestinationDatabricksAmazonS3) DestinationDatabricksDataSource { - typ := DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAmazonS3 +func CreateDestinationDatabricksAuthenticationDestinationDatabricksPersonalAccessToken(destinationDatabricksPersonalAccessToken DestinationDatabricksPersonalAccessToken) DestinationDatabricksAuthentication { + typ := DestinationDatabricksAuthenticationTypeDestinationDatabricksPersonalAccessToken - return DestinationDatabricksDataSource{ - DestinationDatabricksAmazonS3: &destinationDatabricksAmazonS3, - Type: typ, + return DestinationDatabricksAuthentication{ + DestinationDatabricksPersonalAccessToken: &destinationDatabricksPersonalAccessToken, + Type: typ, } } -func CreateDestinationDatabricksDataSourceDestinationDatabricksAzureBlobStorage(destinationDatabricksAzureBlobStorage DestinationDatabricksAzureBlobStorage) DestinationDatabricksDataSource { - typ := DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAzureBlobStorage - - return DestinationDatabricksDataSource{ - DestinationDatabricksAzureBlobStorage: &destinationDatabricksAzureBlobStorage, - Type: typ, - } -} +func (u *DestinationDatabricksAuthentication) UnmarshalJSON(data []byte) error { -func (u *DestinationDatabricksDataSource) UnmarshalJSON(data []byte) error { - - var destinationDatabricksRecommendedManagedTables DestinationDatabricksRecommendedManagedTables = DestinationDatabricksRecommendedManagedTables{} - if err := utils.UnmarshalJSON(data, &destinationDatabricksRecommendedManagedTables, "", true, true); err == nil { - u.DestinationDatabricksRecommendedManagedTables = &destinationDatabricksRecommendedManagedTables - u.Type = DestinationDatabricksDataSourceUnionTypeDestinationDatabricksRecommendedManagedTables - return nil - } - - var destinationDatabricksAzureBlobStorage DestinationDatabricksAzureBlobStorage = DestinationDatabricksAzureBlobStorage{} - if err := utils.UnmarshalJSON(data, &destinationDatabricksAzureBlobStorage, "", true, true); err == nil { - u.DestinationDatabricksAzureBlobStorage = &destinationDatabricksAzureBlobStorage - u.Type = DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAzureBlobStorage + var destinationDatabricksPersonalAccessToken DestinationDatabricksPersonalAccessToken = DestinationDatabricksPersonalAccessToken{} + if err := utils.UnmarshalJSON(data, &destinationDatabricksPersonalAccessToken, "", true, true); err == nil { + u.DestinationDatabricksPersonalAccessToken = &destinationDatabricksPersonalAccessToken + u.Type = DestinationDatabricksAuthenticationTypeDestinationDatabricksPersonalAccessToken return nil } - var destinationDatabricksAmazonS3 DestinationDatabricksAmazonS3 = DestinationDatabricksAmazonS3{} - if err := utils.UnmarshalJSON(data, &destinationDatabricksAmazonS3, "", true, true); err == nil { - u.DestinationDatabricksAmazonS3 = &destinationDatabricksAmazonS3 - u.Type = DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAmazonS3 + var destinationDatabricksOAuth2Recommended DestinationDatabricksOAuth2Recommended = DestinationDatabricksOAuth2Recommended{} + if err := utils.UnmarshalJSON(data, &destinationDatabricksOAuth2Recommended, "", true, true); err == nil { + u.DestinationDatabricksOAuth2Recommended = &destinationDatabricksOAuth2Recommended + u.Type = DestinationDatabricksAuthenticationTypeDestinationDatabricksOAuth2Recommended return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationDatabricksDataSource", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationDatabricksAuthentication", string(data)) } -func (u DestinationDatabricksDataSource) MarshalJSON() ([]byte, error) { - if u.DestinationDatabricksRecommendedManagedTables != nil { - return utils.MarshalJSON(u.DestinationDatabricksRecommendedManagedTables, "", true) +func (u DestinationDatabricksAuthentication) MarshalJSON() ([]byte, error) { + if u.DestinationDatabricksOAuth2Recommended != nil { + return utils.MarshalJSON(u.DestinationDatabricksOAuth2Recommended, "", true) } - if u.DestinationDatabricksAmazonS3 != nil { - return utils.MarshalJSON(u.DestinationDatabricksAmazonS3, "", true) + if u.DestinationDatabricksPersonalAccessToken != nil { + return utils.MarshalJSON(u.DestinationDatabricksPersonalAccessToken, "", true) } - if u.DestinationDatabricksAzureBlobStorage != nil { - return utils.MarshalJSON(u.DestinationDatabricksAzureBlobStorage, "", true) - } - - return nil, errors.New("could not marshal union type DestinationDatabricksDataSource: all fields are null") + return nil, errors.New("could not marshal union type DestinationDatabricksAuthentication: all fields are null") } type Databricks string @@ -436,23 +207,21 @@ func (e *Databricks) UnmarshalJSON(data []byte) error { type DestinationDatabricks struct { // You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. AcceptTerms *bool `default:"false" json:"accept_terms"` - // Storage on which the delta lake is built. - DataSource DestinationDatabricksDataSource `json:"data_source"` - // The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. - Database *string `json:"database,omitempty"` + // Authentication mechanism for Staging files and running queries + Authentication DestinationDatabricksAuthentication `json:"authentication"` + // The name of the unity catalog for the database + Database string `json:"database"` + destinationType Databricks `const:"databricks" json:"destinationType"` + // Databricks Cluster Server Hostname. + Hostname string `json:"hostname"` // Databricks Cluster HTTP Path. - DatabricksHTTPPath string `json:"databricks_http_path"` - // Databricks Personal Access Token for making authenticated requests. - DatabricksPersonalAccessToken string `json:"databricks_personal_access_token"` + HTTPPath string `json:"http_path"` // Databricks Cluster Port. - DatabricksPort *string `default:"443" json:"databricks_port"` - // Databricks Cluster Server Hostname. - DatabricksServerHostname string `json:"databricks_server_hostname"` - destinationType Databricks `const:"databricks" json:"destinationType"` - // Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. - EnableSchemaEvolution *bool `default:"false" json:"enable_schema_evolution"` + Port *string `default:"443" json:"port"` // Default to 'true'. Switch it to 'false' for debugging purpose. PurgeStagingData *bool `default:"true" json:"purge_staging_data"` + // The schema to write raw tables into (default: airbyte_internal) + RawSchemaOverride *string `default:"airbyte_internal" json:"raw_schema_override"` // The default schema tables are written. If not specified otherwise, the "default" will be used. Schema *string `default:"default" json:"schema"` } @@ -475,64 +244,57 @@ func (o *DestinationDatabricks) GetAcceptTerms() *bool { return o.AcceptTerms } -func (o *DestinationDatabricks) GetDataSource() DestinationDatabricksDataSource { +func (o *DestinationDatabricks) GetAuthentication() DestinationDatabricksAuthentication { if o == nil { - return DestinationDatabricksDataSource{} + return DestinationDatabricksAuthentication{} } - return o.DataSource + return o.Authentication } -func (o *DestinationDatabricks) GetDatabase() *string { +func (o *DestinationDatabricks) GetDatabase() string { if o == nil { - return nil + return "" } return o.Database } -func (o *DestinationDatabricks) GetDatabricksHTTPPath() string { - if o == nil { - return "" - } - return o.DatabricksHTTPPath +func (o *DestinationDatabricks) GetDestinationType() Databricks { + return DatabricksDatabricks } -func (o *DestinationDatabricks) GetDatabricksPersonalAccessToken() string { +func (o *DestinationDatabricks) GetHostname() string { if o == nil { return "" } - return o.DatabricksPersonalAccessToken + return o.Hostname } -func (o *DestinationDatabricks) GetDatabricksPort() *string { +func (o *DestinationDatabricks) GetHTTPPath() string { if o == nil { - return nil + return "" } - return o.DatabricksPort + return o.HTTPPath } -func (o *DestinationDatabricks) GetDatabricksServerHostname() string { +func (o *DestinationDatabricks) GetPort() *string { if o == nil { - return "" + return nil } - return o.DatabricksServerHostname + return o.Port } -func (o *DestinationDatabricks) GetDestinationType() Databricks { - return DatabricksDatabricks -} - -func (o *DestinationDatabricks) GetEnableSchemaEvolution() *bool { +func (o *DestinationDatabricks) GetPurgeStagingData() *bool { if o == nil { return nil } - return o.EnableSchemaEvolution + return o.PurgeStagingData } -func (o *DestinationDatabricks) GetPurgeStagingData() *bool { +func (o *DestinationDatabricks) GetRawSchemaOverride() *string { if o == nil { return nil } - return o.PurgeStagingData + return o.RawSchemaOverride } func (o *DestinationDatabricks) GetSchema() *string { diff --git a/internal/sdk/models/shared/destinationdatabricksupdate.go b/internal/sdk/models/shared/destinationdatabricksupdate.go index ab7a55822..82e80d0c8 100644 --- a/internal/sdk/models/shared/destinationdatabricksupdate.go +++ b/internal/sdk/models/shared/destinationdatabricksupdate.go @@ -9,426 +9,195 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" ) -type DestinationDatabricksUpdateSchemasDataSourceType string +type DestinationDatabricksUpdateAuthType string const ( - DestinationDatabricksUpdateSchemasDataSourceTypeAzureBlobStorage DestinationDatabricksUpdateSchemasDataSourceType = "AZURE_BLOB_STORAGE" + DestinationDatabricksUpdateAuthTypeBasic DestinationDatabricksUpdateAuthType = "BASIC" ) -func (e DestinationDatabricksUpdateSchemasDataSourceType) ToPointer() *DestinationDatabricksUpdateSchemasDataSourceType { +func (e DestinationDatabricksUpdateAuthType) ToPointer() *DestinationDatabricksUpdateAuthType { return &e } -func (e *DestinationDatabricksUpdateSchemasDataSourceType) UnmarshalJSON(data []byte) error { +func (e *DestinationDatabricksUpdateAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "AZURE_BLOB_STORAGE": - *e = DestinationDatabricksUpdateSchemasDataSourceType(v) + case "BASIC": + *e = DestinationDatabricksUpdateAuthType(v) return nil default: - return fmt.Errorf("invalid value for DestinationDatabricksUpdateSchemasDataSourceType: %v", v) + return fmt.Errorf("invalid value for DestinationDatabricksUpdateAuthType: %v", v) } } -type DestinationDatabricksUpdateAzureBlobStorage struct { - // The account's name of the Azure Blob Storage. - AzureBlobStorageAccountName string `json:"azure_blob_storage_account_name"` - // The name of the Azure blob storage container. - AzureBlobStorageContainerName string `json:"azure_blob_storage_container_name"` - // This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. - AzureBlobStorageEndpointDomainName *string `default:"blob.core.windows.net" json:"azure_blob_storage_endpoint_domain_name"` - // Shared access signature (SAS) token to grant limited access to objects in your storage account. - AzureBlobStorageSasToken string `json:"azure_blob_storage_sas_token"` - dataSourceType DestinationDatabricksUpdateSchemasDataSourceType `const:"AZURE_BLOB_STORAGE" json:"data_source_type"` +type PersonalAccessToken struct { + authType DestinationDatabricksUpdateAuthType `const:"BASIC" json:"auth_type"` + PersonalAccessToken string `json:"personal_access_token"` } -func (d DestinationDatabricksUpdateAzureBlobStorage) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) +func (p PersonalAccessToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) } -func (d *DestinationDatabricksUpdateAzureBlobStorage) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { +func (p *PersonalAccessToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, true); err != nil { return err } return nil } -func (o *DestinationDatabricksUpdateAzureBlobStorage) GetAzureBlobStorageAccountName() string { - if o == nil { - return "" - } - return o.AzureBlobStorageAccountName -} - -func (o *DestinationDatabricksUpdateAzureBlobStorage) GetAzureBlobStorageContainerName() string { - if o == nil { - return "" - } - return o.AzureBlobStorageContainerName -} - -func (o *DestinationDatabricksUpdateAzureBlobStorage) GetAzureBlobStorageEndpointDomainName() *string { - if o == nil { - return nil - } - return o.AzureBlobStorageEndpointDomainName +func (o *PersonalAccessToken) GetAuthType() DestinationDatabricksUpdateAuthType { + return DestinationDatabricksUpdateAuthTypeBasic } -func (o *DestinationDatabricksUpdateAzureBlobStorage) GetAzureBlobStorageSasToken() string { +func (o *PersonalAccessToken) GetPersonalAccessToken() string { if o == nil { return "" } - return o.AzureBlobStorageSasToken -} - -func (o *DestinationDatabricksUpdateAzureBlobStorage) GetDataSourceType() DestinationDatabricksUpdateSchemasDataSourceType { - return DestinationDatabricksUpdateSchemasDataSourceTypeAzureBlobStorage + return o.PersonalAccessToken } -type DestinationDatabricksUpdateDataSourceType string +type DestinationDatabricksUpdateSchemasAuthType string const ( - DestinationDatabricksUpdateDataSourceTypeS3Storage DestinationDatabricksUpdateDataSourceType = "S3_STORAGE" + DestinationDatabricksUpdateSchemasAuthTypeOauth DestinationDatabricksUpdateSchemasAuthType = "OAUTH" ) -func (e DestinationDatabricksUpdateDataSourceType) ToPointer() *DestinationDatabricksUpdateDataSourceType { +func (e DestinationDatabricksUpdateSchemasAuthType) ToPointer() *DestinationDatabricksUpdateSchemasAuthType { return &e } -func (e *DestinationDatabricksUpdateDataSourceType) UnmarshalJSON(data []byte) error { +func (e *DestinationDatabricksUpdateSchemasAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "S3_STORAGE": - *e = DestinationDatabricksUpdateDataSourceType(v) + case "OAUTH": + *e = DestinationDatabricksUpdateSchemasAuthType(v) return nil default: - return fmt.Errorf("invalid value for DestinationDatabricksUpdateDataSourceType: %v", v) + return fmt.Errorf("invalid value for DestinationDatabricksUpdateSchemasAuthType: %v", v) } } -// DestinationDatabricksUpdateS3BucketRegion - The region of the S3 staging bucket to use if utilising a copy strategy. -type DestinationDatabricksUpdateS3BucketRegion string - -const ( - DestinationDatabricksUpdateS3BucketRegionUnknown DestinationDatabricksUpdateS3BucketRegion = "" - DestinationDatabricksUpdateS3BucketRegionUsEast1 DestinationDatabricksUpdateS3BucketRegion = "us-east-1" - DestinationDatabricksUpdateS3BucketRegionUsEast2 DestinationDatabricksUpdateS3BucketRegion = "us-east-2" - DestinationDatabricksUpdateS3BucketRegionUsWest1 DestinationDatabricksUpdateS3BucketRegion = "us-west-1" - DestinationDatabricksUpdateS3BucketRegionUsWest2 DestinationDatabricksUpdateS3BucketRegion = "us-west-2" - DestinationDatabricksUpdateS3BucketRegionAfSouth1 DestinationDatabricksUpdateS3BucketRegion = "af-south-1" - DestinationDatabricksUpdateS3BucketRegionApEast1 DestinationDatabricksUpdateS3BucketRegion = "ap-east-1" - DestinationDatabricksUpdateS3BucketRegionApSouth1 DestinationDatabricksUpdateS3BucketRegion = "ap-south-1" - DestinationDatabricksUpdateS3BucketRegionApNortheast1 DestinationDatabricksUpdateS3BucketRegion = "ap-northeast-1" - DestinationDatabricksUpdateS3BucketRegionApNortheast2 DestinationDatabricksUpdateS3BucketRegion = "ap-northeast-2" - DestinationDatabricksUpdateS3BucketRegionApNortheast3 DestinationDatabricksUpdateS3BucketRegion = "ap-northeast-3" - DestinationDatabricksUpdateS3BucketRegionApSoutheast1 DestinationDatabricksUpdateS3BucketRegion = "ap-southeast-1" - DestinationDatabricksUpdateS3BucketRegionApSoutheast2 DestinationDatabricksUpdateS3BucketRegion = "ap-southeast-2" - DestinationDatabricksUpdateS3BucketRegionCaCentral1 DestinationDatabricksUpdateS3BucketRegion = "ca-central-1" - DestinationDatabricksUpdateS3BucketRegionCnNorth1 DestinationDatabricksUpdateS3BucketRegion = "cn-north-1" - DestinationDatabricksUpdateS3BucketRegionCnNorthwest1 DestinationDatabricksUpdateS3BucketRegion = "cn-northwest-1" - DestinationDatabricksUpdateS3BucketRegionEuCentral1 DestinationDatabricksUpdateS3BucketRegion = "eu-central-1" - DestinationDatabricksUpdateS3BucketRegionEuNorth1 DestinationDatabricksUpdateS3BucketRegion = "eu-north-1" - DestinationDatabricksUpdateS3BucketRegionEuSouth1 DestinationDatabricksUpdateS3BucketRegion = "eu-south-1" - DestinationDatabricksUpdateS3BucketRegionEuWest1 DestinationDatabricksUpdateS3BucketRegion = "eu-west-1" - DestinationDatabricksUpdateS3BucketRegionEuWest2 DestinationDatabricksUpdateS3BucketRegion = "eu-west-2" - DestinationDatabricksUpdateS3BucketRegionEuWest3 DestinationDatabricksUpdateS3BucketRegion = "eu-west-3" - DestinationDatabricksUpdateS3BucketRegionSaEast1 DestinationDatabricksUpdateS3BucketRegion = "sa-east-1" - DestinationDatabricksUpdateS3BucketRegionMeSouth1 DestinationDatabricksUpdateS3BucketRegion = "me-south-1" - DestinationDatabricksUpdateS3BucketRegionUsGovEast1 DestinationDatabricksUpdateS3BucketRegion = "us-gov-east-1" - DestinationDatabricksUpdateS3BucketRegionUsGovWest1 DestinationDatabricksUpdateS3BucketRegion = "us-gov-west-1" -) - -func (e DestinationDatabricksUpdateS3BucketRegion) ToPointer() *DestinationDatabricksUpdateS3BucketRegion { - return &e -} -func (e *DestinationDatabricksUpdateS3BucketRegion) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "": - fallthrough - case "us-east-1": - fallthrough - case "us-east-2": - fallthrough - case "us-west-1": - fallthrough - case "us-west-2": - fallthrough - case "af-south-1": - fallthrough - case "ap-east-1": - fallthrough - case "ap-south-1": - fallthrough - case "ap-northeast-1": - fallthrough - case "ap-northeast-2": - fallthrough - case "ap-northeast-3": - fallthrough - case "ap-southeast-1": - fallthrough - case "ap-southeast-2": - fallthrough - case "ca-central-1": - fallthrough - case "cn-north-1": - fallthrough - case "cn-northwest-1": - fallthrough - case "eu-central-1": - fallthrough - case "eu-north-1": - fallthrough - case "eu-south-1": - fallthrough - case "eu-west-1": - fallthrough - case "eu-west-2": - fallthrough - case "eu-west-3": - fallthrough - case "sa-east-1": - fallthrough - case "me-south-1": - fallthrough - case "us-gov-east-1": - fallthrough - case "us-gov-west-1": - *e = DestinationDatabricksUpdateS3BucketRegion(v) - return nil - default: - return fmt.Errorf("invalid value for DestinationDatabricksUpdateS3BucketRegion: %v", v) - } +type OAuth2Recommended struct { + authType DestinationDatabricksUpdateSchemasAuthType `const:"OAUTH" json:"auth_type"` + ClientID string `json:"client_id"` + Secret string `json:"secret"` } -type AmazonS3 struct { - dataSourceType DestinationDatabricksUpdateDataSourceType `const:"S3_STORAGE" json:"data_source_type"` - // The pattern allows you to set the file-name format for the S3 staging file(s) - FileNamePattern *string `json:"file_name_pattern,omitempty"` - // The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. - S3AccessKeyID string `json:"s3_access_key_id"` - // The name of the S3 bucket to use for intermittent staging of the data. - S3BucketName string `json:"s3_bucket_name"` - // The directory under the S3 bucket where data will be written. - S3BucketPath string `json:"s3_bucket_path"` - // The region of the S3 staging bucket to use if utilising a copy strategy. - S3BucketRegion *DestinationDatabricksUpdateS3BucketRegion `default:"" json:"s3_bucket_region"` - // The corresponding secret to the above access key id. - S3SecretAccessKey string `json:"s3_secret_access_key"` +func (o OAuth2Recommended) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) } -func (a AmazonS3) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AmazonS3) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, true); err != nil { +func (o *OAuth2Recommended) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, true); err != nil { return err } return nil } -func (o *AmazonS3) GetDataSourceType() DestinationDatabricksUpdateDataSourceType { - return DestinationDatabricksUpdateDataSourceTypeS3Storage +func (o *OAuth2Recommended) GetAuthType() DestinationDatabricksUpdateSchemasAuthType { + return DestinationDatabricksUpdateSchemasAuthTypeOauth } -func (o *AmazonS3) GetFileNamePattern() *string { - if o == nil { - return nil - } - return o.FileNamePattern -} - -func (o *AmazonS3) GetS3AccessKeyID() string { +func (o *OAuth2Recommended) GetClientID() string { if o == nil { return "" } - return o.S3AccessKeyID + return o.ClientID } -func (o *AmazonS3) GetS3BucketName() string { +func (o *OAuth2Recommended) GetSecret() string { if o == nil { return "" } - return o.S3BucketName + return o.Secret } -func (o *AmazonS3) GetS3BucketPath() string { - if o == nil { - return "" - } - return o.S3BucketPath -} - -func (o *AmazonS3) GetS3BucketRegion() *DestinationDatabricksUpdateS3BucketRegion { - if o == nil { - return nil - } - return o.S3BucketRegion -} - -func (o *AmazonS3) GetS3SecretAccessKey() string { - if o == nil { - return "" - } - return o.S3SecretAccessKey -} - -type DataSourceType string - -const ( - DataSourceTypeManagedTablesStorage DataSourceType = "MANAGED_TABLES_STORAGE" -) - -func (e DataSourceType) ToPointer() *DataSourceType { - return &e -} -func (e *DataSourceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "MANAGED_TABLES_STORAGE": - *e = DataSourceType(v) - return nil - default: - return fmt.Errorf("invalid value for DataSourceType: %v", v) - } -} - -type RecommendedManagedTables struct { - dataSourceType DataSourceType `const:"MANAGED_TABLES_STORAGE" json:"data_source_type"` -} - -func (r RecommendedManagedTables) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *RecommendedManagedTables) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, true); err != nil { - return err - } - return nil -} - -func (o *RecommendedManagedTables) GetDataSourceType() DataSourceType { - return DataSourceTypeManagedTablesStorage -} - -type DataSourceUnionType string +type AuthenticationUnionType string const ( - DataSourceUnionTypeRecommendedManagedTables DataSourceUnionType = "[Recommended] Managed tables" - DataSourceUnionTypeAmazonS3 DataSourceUnionType = "Amazon S3" - DataSourceUnionTypeDestinationDatabricksUpdateAzureBlobStorage DataSourceUnionType = "destination-databricks-update_Azure Blob Storage" + AuthenticationUnionTypeOAuth2Recommended AuthenticationUnionType = "OAuth2 (Recommended)" + AuthenticationUnionTypePersonalAccessToken AuthenticationUnionType = "Personal Access Token" ) -// DataSource - Storage on which the delta lake is built. -type DataSource struct { - RecommendedManagedTables *RecommendedManagedTables - AmazonS3 *AmazonS3 - DestinationDatabricksUpdateAzureBlobStorage *DestinationDatabricksUpdateAzureBlobStorage +// Authentication mechanism for Staging files and running queries +type Authentication struct { + OAuth2Recommended *OAuth2Recommended + PersonalAccessToken *PersonalAccessToken - Type DataSourceUnionType -} - -func CreateDataSourceRecommendedManagedTables(recommendedManagedTables RecommendedManagedTables) DataSource { - typ := DataSourceUnionTypeRecommendedManagedTables - - return DataSource{ - RecommendedManagedTables: &recommendedManagedTables, - Type: typ, - } + Type AuthenticationUnionType } -func CreateDataSourceAmazonS3(amazonS3 AmazonS3) DataSource { - typ := DataSourceUnionTypeAmazonS3 +func CreateAuthenticationOAuth2Recommended(oAuth2Recommended OAuth2Recommended) Authentication { + typ := AuthenticationUnionTypeOAuth2Recommended - return DataSource{ - AmazonS3: &amazonS3, - Type: typ, + return Authentication{ + OAuth2Recommended: &oAuth2Recommended, + Type: typ, } } -func CreateDataSourceDestinationDatabricksUpdateAzureBlobStorage(destinationDatabricksUpdateAzureBlobStorage DestinationDatabricksUpdateAzureBlobStorage) DataSource { - typ := DataSourceUnionTypeDestinationDatabricksUpdateAzureBlobStorage +func CreateAuthenticationPersonalAccessToken(personalAccessToken PersonalAccessToken) Authentication { + typ := AuthenticationUnionTypePersonalAccessToken - return DataSource{ - DestinationDatabricksUpdateAzureBlobStorage: &destinationDatabricksUpdateAzureBlobStorage, - Type: typ, + return Authentication{ + PersonalAccessToken: &personalAccessToken, + Type: typ, } } -func (u *DataSource) UnmarshalJSON(data []byte) error { +func (u *Authentication) UnmarshalJSON(data []byte) error { - var recommendedManagedTables RecommendedManagedTables = RecommendedManagedTables{} - if err := utils.UnmarshalJSON(data, &recommendedManagedTables, "", true, true); err == nil { - u.RecommendedManagedTables = &recommendedManagedTables - u.Type = DataSourceUnionTypeRecommendedManagedTables + var personalAccessToken PersonalAccessToken = PersonalAccessToken{} + if err := utils.UnmarshalJSON(data, &personalAccessToken, "", true, true); err == nil { + u.PersonalAccessToken = &personalAccessToken + u.Type = AuthenticationUnionTypePersonalAccessToken return nil } - var destinationDatabricksUpdateAzureBlobStorage DestinationDatabricksUpdateAzureBlobStorage = DestinationDatabricksUpdateAzureBlobStorage{} - if err := utils.UnmarshalJSON(data, &destinationDatabricksUpdateAzureBlobStorage, "", true, true); err == nil { - u.DestinationDatabricksUpdateAzureBlobStorage = &destinationDatabricksUpdateAzureBlobStorage - u.Type = DataSourceUnionTypeDestinationDatabricksUpdateAzureBlobStorage + var oAuth2Recommended OAuth2Recommended = OAuth2Recommended{} + if err := utils.UnmarshalJSON(data, &oAuth2Recommended, "", true, true); err == nil { + u.OAuth2Recommended = &oAuth2Recommended + u.Type = AuthenticationUnionTypeOAuth2Recommended return nil } - var amazonS3 AmazonS3 = AmazonS3{} - if err := utils.UnmarshalJSON(data, &amazonS3, "", true, true); err == nil { - u.AmazonS3 = &amazonS3 - u.Type = DataSourceUnionTypeAmazonS3 - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for DataSource", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Authentication", string(data)) } -func (u DataSource) MarshalJSON() ([]byte, error) { - if u.RecommendedManagedTables != nil { - return utils.MarshalJSON(u.RecommendedManagedTables, "", true) +func (u Authentication) MarshalJSON() ([]byte, error) { + if u.OAuth2Recommended != nil { + return utils.MarshalJSON(u.OAuth2Recommended, "", true) } - if u.AmazonS3 != nil { - return utils.MarshalJSON(u.AmazonS3, "", true) + if u.PersonalAccessToken != nil { + return utils.MarshalJSON(u.PersonalAccessToken, "", true) } - if u.DestinationDatabricksUpdateAzureBlobStorage != nil { - return utils.MarshalJSON(u.DestinationDatabricksUpdateAzureBlobStorage, "", true) - } - - return nil, errors.New("could not marshal union type DataSource: all fields are null") + return nil, errors.New("could not marshal union type Authentication: all fields are null") } type DestinationDatabricksUpdate struct { // You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. AcceptTerms *bool `default:"false" json:"accept_terms"` - // Storage on which the delta lake is built. - DataSource DataSource `json:"data_source"` - // The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. - Database *string `json:"database,omitempty"` + // Authentication mechanism for Staging files and running queries + Authentication Authentication `json:"authentication"` + // The name of the unity catalog for the database + Database string `json:"database"` + // Databricks Cluster Server Hostname. + Hostname string `json:"hostname"` // Databricks Cluster HTTP Path. - DatabricksHTTPPath string `json:"databricks_http_path"` - // Databricks Personal Access Token for making authenticated requests. - DatabricksPersonalAccessToken string `json:"databricks_personal_access_token"` + HTTPPath string `json:"http_path"` // Databricks Cluster Port. - DatabricksPort *string `default:"443" json:"databricks_port"` - // Databricks Cluster Server Hostname. - DatabricksServerHostname string `json:"databricks_server_hostname"` - // Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. - EnableSchemaEvolution *bool `default:"false" json:"enable_schema_evolution"` + Port *string `default:"443" json:"port"` // Default to 'true'. Switch it to 'false' for debugging purpose. PurgeStagingData *bool `default:"true" json:"purge_staging_data"` + // The schema to write raw tables into (default: airbyte_internal) + RawSchemaOverride *string `default:"airbyte_internal" json:"raw_schema_override"` // The default schema tables are written. If not specified otherwise, the "default" will be used. Schema *string `default:"default" json:"schema"` } @@ -451,60 +220,53 @@ func (o *DestinationDatabricksUpdate) GetAcceptTerms() *bool { return o.AcceptTerms } -func (o *DestinationDatabricksUpdate) GetDataSource() DataSource { +func (o *DestinationDatabricksUpdate) GetAuthentication() Authentication { if o == nil { - return DataSource{} + return Authentication{} } - return o.DataSource + return o.Authentication } -func (o *DestinationDatabricksUpdate) GetDatabase() *string { +func (o *DestinationDatabricksUpdate) GetDatabase() string { if o == nil { - return nil + return "" } return o.Database } -func (o *DestinationDatabricksUpdate) GetDatabricksHTTPPath() string { +func (o *DestinationDatabricksUpdate) GetHostname() string { if o == nil { return "" } - return o.DatabricksHTTPPath + return o.Hostname } -func (o *DestinationDatabricksUpdate) GetDatabricksPersonalAccessToken() string { +func (o *DestinationDatabricksUpdate) GetHTTPPath() string { if o == nil { return "" } - return o.DatabricksPersonalAccessToken + return o.HTTPPath } -func (o *DestinationDatabricksUpdate) GetDatabricksPort() *string { +func (o *DestinationDatabricksUpdate) GetPort() *string { if o == nil { return nil } - return o.DatabricksPort -} - -func (o *DestinationDatabricksUpdate) GetDatabricksServerHostname() string { - if o == nil { - return "" - } - return o.DatabricksServerHostname + return o.Port } -func (o *DestinationDatabricksUpdate) GetEnableSchemaEvolution() *bool { +func (o *DestinationDatabricksUpdate) GetPurgeStagingData() *bool { if o == nil { return nil } - return o.EnableSchemaEvolution + return o.PurgeStagingData } -func (o *DestinationDatabricksUpdate) GetPurgeStagingData() *bool { +func (o *DestinationDatabricksUpdate) GetRawSchemaOverride() *string { if o == nil { return nil } - return o.PurgeStagingData + return o.RawSchemaOverride } func (o *DestinationDatabricksUpdate) GetSchema() *string { diff --git a/internal/sdk/models/shared/destinationgcsupdate.go b/internal/sdk/models/shared/destinationgcsupdate.go index c0bf5b68f..66667105d 100644 --- a/internal/sdk/models/shared/destinationgcsupdate.go +++ b/internal/sdk/models/shared/destinationgcsupdate.go @@ -72,46 +72,46 @@ func (o *HMACKey) GetHmacKeySecret() string { return o.HmacKeySecret } -type AuthenticationUnionType string +type DestinationGcsUpdateAuthenticationType string const ( - AuthenticationUnionTypeHMACKey AuthenticationUnionType = "HMAC Key" + DestinationGcsUpdateAuthenticationTypeHMACKey DestinationGcsUpdateAuthenticationType = "HMAC Key" ) -// Authentication - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. -type Authentication struct { +// DestinationGcsUpdateAuthentication - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. +type DestinationGcsUpdateAuthentication struct { HMACKey *HMACKey - Type AuthenticationUnionType + Type DestinationGcsUpdateAuthenticationType } -func CreateAuthenticationHMACKey(hmacKey HMACKey) Authentication { - typ := AuthenticationUnionTypeHMACKey +func CreateDestinationGcsUpdateAuthenticationHMACKey(hmacKey HMACKey) DestinationGcsUpdateAuthentication { + typ := DestinationGcsUpdateAuthenticationTypeHMACKey - return Authentication{ + return DestinationGcsUpdateAuthentication{ HMACKey: &hmacKey, Type: typ, } } -func (u *Authentication) UnmarshalJSON(data []byte) error { +func (u *DestinationGcsUpdateAuthentication) UnmarshalJSON(data []byte) error { var hmacKey HMACKey = HMACKey{} if err := utils.UnmarshalJSON(data, &hmacKey, "", true, true); err == nil { u.HMACKey = &hmacKey - u.Type = AuthenticationUnionTypeHMACKey + u.Type = DestinationGcsUpdateAuthenticationTypeHMACKey return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for Authentication", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationGcsUpdateAuthentication", string(data)) } -func (u Authentication) MarshalJSON() ([]byte, error) { +func (u DestinationGcsUpdateAuthentication) MarshalJSON() ([]byte, error) { if u.HMACKey != nil { return utils.MarshalJSON(u.HMACKey, "", true) } - return nil, errors.New("could not marshal union type Authentication: all fields are null") + return nil, errors.New("could not marshal union type DestinationGcsUpdateAuthentication: all fields are null") } // DestinationGcsUpdateCompressionCodec - The compression algorithm used to compress data pages. @@ -1455,7 +1455,7 @@ func (e *GCSBucketRegion) UnmarshalJSON(data []byte) error { type DestinationGcsUpdate struct { // An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. - Credential Authentication `json:"credential"` + Credential DestinationGcsUpdateAuthentication `json:"credential"` // Output data format. One of the following formats must be selected - AVRO format, PARQUET format, CSV format, or JSONL format. Format DestinationGcsUpdateOutputFormat `json:"format"` // You can find the bucket name in the App Engine Admin console Application Settings page, under the label Google Cloud Storage Bucket. Read more here. @@ -1477,9 +1477,9 @@ func (d *DestinationGcsUpdate) UnmarshalJSON(data []byte) error { return nil } -func (o *DestinationGcsUpdate) GetCredential() Authentication { +func (o *DestinationGcsUpdate) GetCredential() DestinationGcsUpdateAuthentication { if o == nil { - return Authentication{} + return DestinationGcsUpdateAuthentication{} } return o.Credential } diff --git a/internal/sdk/models/shared/destinationlangchain.go b/internal/sdk/models/shared/destinationlangchain.go deleted file mode 100644 index 372465c7c..000000000 --- a/internal/sdk/models/shared/destinationlangchain.go +++ /dev/null @@ -1,545 +0,0 @@ -// 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/destinationlangchainputrequest.go b/internal/sdk/models/shared/destinationlangchainputrequest.go deleted file mode 100644 index cd3de13c9..000000000 --- a/internal/sdk/models/shared/destinationlangchainputrequest.go +++ /dev/null @@ -1,30 +0,0 @@ -// 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 deleted file mode 100644 index d299ae5da..000000000 --- a/internal/sdk/models/shared/destinationlangchainupdate.go +++ /dev/null @@ -1,506 +0,0 @@ -// 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 b57efe5df..8cb265185 100644 --- a/internal/sdk/models/shared/destinationredshift.go +++ b/internal/sdk/models/shared/destinationredshift.go @@ -322,165 +322,6 @@ 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 ( @@ -631,8 +472,6 @@ 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"` @@ -666,13 +505,6 @@ 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 e0d493c9d..d9c823322 100644 --- a/internal/sdk/models/shared/destinationredshiftupdate.go +++ b/internal/sdk/models/shared/destinationredshiftupdate.go @@ -299,165 +299,6 @@ 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 ( @@ -608,8 +449,6 @@ 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"` @@ -643,13 +482,6 @@ 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 e1ce4c4a1..e934b8539 100644 --- a/internal/sdk/models/shared/destinationsnowflake.go +++ b/internal/sdk/models/shared/destinationsnowflake.go @@ -325,9 +325,11 @@ type DestinationSnowflake struct { Role string `json:"role"` // Enter the name of the default schema Schema string `json:"schema"` + // Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE + UseMergeForUpsert *bool `default:"false" json:"use_merge_for_upsert"` // 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 sync data into + // Enter the name of the warehouse that you want to use as a compute cluster Warehouse string `json:"warehouse"` } @@ -409,6 +411,13 @@ func (o *DestinationSnowflake) GetSchema() string { return o.Schema } +func (o *DestinationSnowflake) GetUseMergeForUpsert() *bool { + if o == nil { + return nil + } + return o.UseMergeForUpsert +} + func (o *DestinationSnowflake) GetUsername() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/destinationsnowflakecortex.go b/internal/sdk/models/shared/destinationsnowflakecortex.go index df427ec43..97728af24 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 sync data into + // Enter the name of the warehouse that you want to use as a compute cluster Warehouse string `json:"warehouse"` } diff --git a/internal/sdk/models/shared/destinationsnowflakecortexupdate.go b/internal/sdk/models/shared/destinationsnowflakecortexupdate.go index 479a31f5a..9f77ea09b 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 sync data into + // Enter the name of the warehouse that you want to use as a compute cluster Warehouse string `json:"warehouse"` } diff --git a/internal/sdk/models/shared/destinationsnowflakeupdate.go b/internal/sdk/models/shared/destinationsnowflakeupdate.go index 1225f7b53..229530a86 100644 --- a/internal/sdk/models/shared/destinationsnowflakeupdate.go +++ b/internal/sdk/models/shared/destinationsnowflakeupdate.go @@ -9,33 +9,33 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" ) -type DestinationSnowflakeUpdateSchemasAuthType string +type DestinationSnowflakeUpdateSchemasCredentialsAuthType string const ( - DestinationSnowflakeUpdateSchemasAuthTypeOAuth20 DestinationSnowflakeUpdateSchemasAuthType = "OAuth2.0" + DestinationSnowflakeUpdateSchemasCredentialsAuthTypeOAuth20 DestinationSnowflakeUpdateSchemasCredentialsAuthType = "OAuth2.0" ) -func (e DestinationSnowflakeUpdateSchemasAuthType) ToPointer() *DestinationSnowflakeUpdateSchemasAuthType { +func (e DestinationSnowflakeUpdateSchemasCredentialsAuthType) ToPointer() *DestinationSnowflakeUpdateSchemasCredentialsAuthType { return &e } -func (e *DestinationSnowflakeUpdateSchemasAuthType) UnmarshalJSON(data []byte) error { +func (e *DestinationSnowflakeUpdateSchemasCredentialsAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "OAuth2.0": - *e = DestinationSnowflakeUpdateSchemasAuthType(v) + *e = DestinationSnowflakeUpdateSchemasCredentialsAuthType(v) return nil default: - return fmt.Errorf("invalid value for DestinationSnowflakeUpdateSchemasAuthType: %v", v) + return fmt.Errorf("invalid value for DestinationSnowflakeUpdateSchemasCredentialsAuthType: %v", v) } } type DestinationSnowflakeUpdateOAuth20 struct { // Enter you application's Access Token - AccessToken string `json:"access_token"` - authType *DestinationSnowflakeUpdateSchemasAuthType `const:"OAuth2.0" json:"auth_type"` + AccessToken string `json:"access_token"` + authType *DestinationSnowflakeUpdateSchemasCredentialsAuthType `const:"OAuth2.0" json:"auth_type"` // Enter your application's Client ID ClientID *string `json:"client_id,omitempty"` // Enter your application's Client secret @@ -62,8 +62,8 @@ func (o *DestinationSnowflakeUpdateOAuth20) GetAccessToken() string { return o.AccessToken } -func (o *DestinationSnowflakeUpdateOAuth20) GetAuthType() *DestinationSnowflakeUpdateSchemasAuthType { - return DestinationSnowflakeUpdateSchemasAuthTypeOAuth20.ToPointer() +func (o *DestinationSnowflakeUpdateOAuth20) GetAuthType() *DestinationSnowflakeUpdateSchemasCredentialsAuthType { + return DestinationSnowflakeUpdateSchemasCredentialsAuthTypeOAuth20.ToPointer() } func (o *DestinationSnowflakeUpdateOAuth20) GetClientID() *string { @@ -87,31 +87,31 @@ func (o *DestinationSnowflakeUpdateOAuth20) GetRefreshToken() string { return o.RefreshToken } -type DestinationSnowflakeUpdateAuthType string +type DestinationSnowflakeUpdateSchemasAuthType string const ( - DestinationSnowflakeUpdateAuthTypeUsernameAndPassword DestinationSnowflakeUpdateAuthType = "Username and Password" + DestinationSnowflakeUpdateSchemasAuthTypeUsernameAndPassword DestinationSnowflakeUpdateSchemasAuthType = "Username and Password" ) -func (e DestinationSnowflakeUpdateAuthType) ToPointer() *DestinationSnowflakeUpdateAuthType { +func (e DestinationSnowflakeUpdateSchemasAuthType) ToPointer() *DestinationSnowflakeUpdateSchemasAuthType { return &e } -func (e *DestinationSnowflakeUpdateAuthType) UnmarshalJSON(data []byte) error { +func (e *DestinationSnowflakeUpdateSchemasAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "Username and Password": - *e = DestinationSnowflakeUpdateAuthType(v) + *e = DestinationSnowflakeUpdateSchemasAuthType(v) return nil default: - return fmt.Errorf("invalid value for DestinationSnowflakeUpdateAuthType: %v", v) + return fmt.Errorf("invalid value for DestinationSnowflakeUpdateSchemasAuthType: %v", v) } } type UsernameAndPassword struct { - authType *DestinationSnowflakeUpdateAuthType `const:"Username and Password" json:"auth_type"` + authType *DestinationSnowflakeUpdateSchemasAuthType `const:"Username and Password" json:"auth_type"` // Enter the password associated with the username. Password string `json:"password"` } @@ -127,8 +127,8 @@ func (u *UsernameAndPassword) UnmarshalJSON(data []byte) error { return nil } -func (o *UsernameAndPassword) GetAuthType() *DestinationSnowflakeUpdateAuthType { - return DestinationSnowflakeUpdateAuthTypeUsernameAndPassword.ToPointer() +func (o *UsernameAndPassword) GetAuthType() *DestinationSnowflakeUpdateSchemasAuthType { + return DestinationSnowflakeUpdateSchemasAuthTypeUsernameAndPassword.ToPointer() } func (o *UsernameAndPassword) GetPassword() string { @@ -138,31 +138,31 @@ func (o *UsernameAndPassword) GetPassword() string { return o.Password } -type DestinationSnowflakeUpdateSchemasCredentialsAuthType string +type DestinationSnowflakeUpdateAuthType string const ( - DestinationSnowflakeUpdateSchemasCredentialsAuthTypeKeyPairAuthentication DestinationSnowflakeUpdateSchemasCredentialsAuthType = "Key Pair Authentication" + DestinationSnowflakeUpdateAuthTypeKeyPairAuthentication DestinationSnowflakeUpdateAuthType = "Key Pair Authentication" ) -func (e DestinationSnowflakeUpdateSchemasCredentialsAuthType) ToPointer() *DestinationSnowflakeUpdateSchemasCredentialsAuthType { +func (e DestinationSnowflakeUpdateAuthType) ToPointer() *DestinationSnowflakeUpdateAuthType { return &e } -func (e *DestinationSnowflakeUpdateSchemasCredentialsAuthType) UnmarshalJSON(data []byte) error { +func (e *DestinationSnowflakeUpdateAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "Key Pair Authentication": - *e = DestinationSnowflakeUpdateSchemasCredentialsAuthType(v) + *e = DestinationSnowflakeUpdateAuthType(v) return nil default: - return fmt.Errorf("invalid value for DestinationSnowflakeUpdateSchemasCredentialsAuthType: %v", v) + return fmt.Errorf("invalid value for DestinationSnowflakeUpdateAuthType: %v", v) } } type KeyPairAuthentication struct { - authType *DestinationSnowflakeUpdateSchemasCredentialsAuthType `const:"Key Pair Authentication" json:"auth_type"` + authType *DestinationSnowflakeUpdateAuthType `const:"Key Pair Authentication" json:"auth_type"` // 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 @@ -180,8 +180,8 @@ func (k *KeyPairAuthentication) UnmarshalJSON(data []byte) error { return nil } -func (o *KeyPairAuthentication) GetAuthType() *DestinationSnowflakeUpdateSchemasCredentialsAuthType { - return DestinationSnowflakeUpdateSchemasCredentialsAuthTypeKeyPairAuthentication.ToPointer() +func (o *KeyPairAuthentication) GetAuthType() *DestinationSnowflakeUpdateAuthType { + return DestinationSnowflakeUpdateAuthTypeKeyPairAuthentication.ToPointer() } func (o *KeyPairAuthentication) GetPrivateKey() string { @@ -301,9 +301,11 @@ type DestinationSnowflakeUpdate struct { Role string `json:"role"` // Enter the name of the default schema Schema string `json:"schema"` + // Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE + UseMergeForUpsert *bool `default:"false" json:"use_merge_for_upsert"` // 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 sync data into + // Enter the name of the warehouse that you want to use as a compute cluster Warehouse string `json:"warehouse"` } @@ -381,6 +383,13 @@ func (o *DestinationSnowflakeUpdate) GetSchema() string { return o.Schema } +func (o *DestinationSnowflakeUpdate) GetUseMergeForUpsert() *bool { + if o == nil { + return nil + } + return o.UseMergeForUpsert +} + func (o *DestinationSnowflakeUpdate) GetUsername() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/destinationtimeplus.go b/internal/sdk/models/shared/destinationtimeplus.go new file mode 100644 index 000000000..d9cb6d077 --- /dev/null +++ b/internal/sdk/models/shared/destinationtimeplus.go @@ -0,0 +1,69 @@ +// 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 Timeplus string + +const ( + TimeplusTimeplus Timeplus = "timeplus" +) + +func (e Timeplus) ToPointer() *Timeplus { + return &e +} +func (e *Timeplus) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "timeplus": + *e = Timeplus(v) + return nil + default: + return fmt.Errorf("invalid value for Timeplus: %v", v) + } +} + +type DestinationTimeplus struct { + // Personal API key + Apikey string `json:"apikey"` + destinationType Timeplus `const:"timeplus" json:"destinationType"` + // Timeplus workspace endpoint + Endpoint *string `default:"https://us-west-2.timeplus.cloud/" json:"endpoint"` +} + +func (d DestinationTimeplus) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationTimeplus) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DestinationTimeplus) GetApikey() string { + if o == nil { + return "" + } + return o.Apikey +} + +func (o *DestinationTimeplus) GetDestinationType() Timeplus { + return TimeplusTimeplus +} + +func (o *DestinationTimeplus) GetEndpoint() *string { + if o == nil { + return nil + } + return o.Endpoint +} diff --git a/internal/sdk/models/shared/destinationlangchaincreaterequest.go b/internal/sdk/models/shared/destinationtimepluscreaterequest.go similarity index 57% rename from internal/sdk/models/shared/destinationlangchaincreaterequest.go rename to internal/sdk/models/shared/destinationtimepluscreaterequest.go index b4945cc39..0113eb518 100644 --- a/internal/sdk/models/shared/destinationlangchaincreaterequest.go +++ b/internal/sdk/models/shared/destinationtimepluscreaterequest.go @@ -2,8 +2,8 @@ package shared -type DestinationLangchainCreateRequest struct { - Configuration DestinationLangchain `json:"configuration"` +type DestinationTimeplusCreateRequest struct { + Configuration DestinationTimeplus `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. @@ -11,28 +11,28 @@ type DestinationLangchainCreateRequest struct { WorkspaceID string `json:"workspaceId"` } -func (o *DestinationLangchainCreateRequest) GetConfiguration() DestinationLangchain { +func (o *DestinationTimeplusCreateRequest) GetConfiguration() DestinationTimeplus { if o == nil { - return DestinationLangchain{} + return DestinationTimeplus{} } return o.Configuration } -func (o *DestinationLangchainCreateRequest) GetDefinitionID() *string { +func (o *DestinationTimeplusCreateRequest) GetDefinitionID() *string { if o == nil { return nil } return o.DefinitionID } -func (o *DestinationLangchainCreateRequest) GetName() string { +func (o *DestinationTimeplusCreateRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *DestinationLangchainCreateRequest) GetWorkspaceID() string { +func (o *DestinationTimeplusCreateRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/destinationtimeplusputrequest.go b/internal/sdk/models/shared/destinationtimeplusputrequest.go new file mode 100644 index 000000000..6e7da4606 --- /dev/null +++ b/internal/sdk/models/shared/destinationtimeplusputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type DestinationTimeplusPutRequest struct { + Configuration DestinationTimeplusUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *DestinationTimeplusPutRequest) GetConfiguration() DestinationTimeplusUpdate { + if o == nil { + return DestinationTimeplusUpdate{} + } + return o.Configuration +} + +func (o *DestinationTimeplusPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *DestinationTimeplusPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/destinationtimeplusupdate.go b/internal/sdk/models/shared/destinationtimeplusupdate.go new file mode 100644 index 000000000..df12f71d9 --- /dev/null +++ b/internal/sdk/models/shared/destinationtimeplusupdate.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" +) + +type DestinationTimeplusUpdate struct { + // Personal API key + Apikey string `json:"apikey"` + // Timeplus workspace endpoint + Endpoint *string `default:"https://us-west-2.timeplus.cloud/" json:"endpoint"` +} + +func (d DestinationTimeplusUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationTimeplusUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DestinationTimeplusUpdate) GetApikey() string { + if o == nil { + return "" + } + return o.Apikey +} + +func (o *DestinationTimeplusUpdate) GetEndpoint() *string { + if o == nil { + return nil + } + return o.Endpoint +} diff --git a/internal/sdk/models/shared/destinationtypesense.go b/internal/sdk/models/shared/destinationtypesense.go index f56921489..7c17f6c1f 100644 --- a/internal/sdk/models/shared/destinationtypesense.go +++ b/internal/sdk/models/shared/destinationtypesense.go @@ -37,7 +37,7 @@ type DestinationTypesense struct { // How many documents should be imported together. Default 1000 BatchSize *int64 `json:"batch_size,omitempty"` destinationType Typesense `const:"typesense" json:"destinationType"` - // Hostname of the Typesense instance without protocol. + // Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. Host string `json:"host"` // Path of the Typesense instance. Default is none Path *string `json:"path,omitempty"` diff --git a/internal/sdk/models/shared/destinationtypesenseupdate.go b/internal/sdk/models/shared/destinationtypesenseupdate.go index 57c8202e2..e2875fc47 100644 --- a/internal/sdk/models/shared/destinationtypesenseupdate.go +++ b/internal/sdk/models/shared/destinationtypesenseupdate.go @@ -7,7 +7,7 @@ type DestinationTypesenseUpdate struct { APIKey string `json:"api_key"` // How many documents should be imported together. Default 1000 BatchSize *int64 `json:"batch_size,omitempty"` - // Hostname of the Typesense instance without protocol. + // Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. Host string `json:"host"` // Path of the Typesense instance. Default is none Path *string `json:"path,omitempty"` diff --git a/internal/sdk/models/shared/schemeclientcredentials.go b/internal/sdk/models/shared/schemeclientcredentials.go index 492194be9..003ede0b5 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:"/api/v1/applications/token"` + tokenURL string `const:"/applications/token"` } func (s SchemeClientCredentials) MarshalJSON() ([]byte, error) { @@ -38,5 +38,5 @@ func (o *SchemeClientCredentials) GetClientSecret() string { } func (o *SchemeClientCredentials) GetTokenURL() string { - return "/api/v1/applications/token" + return "/applications/token" } diff --git a/internal/sdk/models/shared/sourceairbyte.go b/internal/sdk/models/shared/sourceairbyte.go new file mode 100644 index 000000000..c8b0d2a50 --- /dev/null +++ b/internal/sdk/models/shared/sourceairbyte.go @@ -0,0 +1,76 @@ +// 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" + "time" +) + +type Airbyte string + +const ( + AirbyteAirbyte Airbyte = "airbyte" +) + +func (e Airbyte) ToPointer() *Airbyte { + return &e +} +func (e *Airbyte) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "airbyte": + *e = Airbyte(v) + return nil + default: + return fmt.Errorf("invalid value for Airbyte: %v", v) + } +} + +type SourceAirbyte struct { + ClientID string `json:"client_id"` + ClientSecret string `json:"client_secret"` + sourceType Airbyte `const:"airbyte" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceAirbyte) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceAirbyte) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceAirbyte) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *SourceAirbyte) GetClientSecret() string { + if o == nil { + return "" + } + return o.ClientSecret +} + +func (o *SourceAirbyte) GetSourceType() Airbyte { + return AirbyteAirbyte +} + +func (o *SourceAirbyte) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcepunkapicreaterequest.go b/internal/sdk/models/shared/sourceairbytecreaterequest.go similarity index 63% rename from internal/sdk/models/shared/sourcepunkapicreaterequest.go rename to internal/sdk/models/shared/sourceairbytecreaterequest.go index 585e3b724..4385cfa37 100644 --- a/internal/sdk/models/shared/sourcepunkapicreaterequest.go +++ b/internal/sdk/models/shared/sourceairbytecreaterequest.go @@ -2,8 +2,8 @@ package shared -type SourcePunkAPICreateRequest struct { - Configuration SourcePunkAPI `json:"configuration"` +type SourceAirbyteCreateRequest struct { + Configuration SourceAirbyte `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 SourcePunkAPICreateRequest struct { WorkspaceID string `json:"workspaceId"` } -func (o *SourcePunkAPICreateRequest) GetConfiguration() SourcePunkAPI { +func (o *SourceAirbyteCreateRequest) GetConfiguration() SourceAirbyte { if o == nil { - return SourcePunkAPI{} + return SourceAirbyte{} } return o.Configuration } -func (o *SourcePunkAPICreateRequest) GetDefinitionID() *string { +func (o *SourceAirbyteCreateRequest) GetDefinitionID() *string { if o == nil { return nil } return o.DefinitionID } -func (o *SourcePunkAPICreateRequest) GetName() string { +func (o *SourceAirbyteCreateRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourcePunkAPICreateRequest) GetSecretID() *string { +func (o *SourceAirbyteCreateRequest) GetSecretID() *string { if o == nil { return nil } return o.SecretID } -func (o *SourcePunkAPICreateRequest) GetWorkspaceID() string { +func (o *SourceAirbyteCreateRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourcepunkapiputrequest.go b/internal/sdk/models/shared/sourceairbyteputrequest.go similarity index 52% rename from internal/sdk/models/shared/sourcepunkapiputrequest.go rename to internal/sdk/models/shared/sourceairbyteputrequest.go index bd53af290..eef54df71 100644 --- a/internal/sdk/models/shared/sourcepunkapiputrequest.go +++ b/internal/sdk/models/shared/sourceairbyteputrequest.go @@ -2,27 +2,27 @@ package shared -type SourcePunkAPIPutRequest struct { - Configuration SourcePunkAPIUpdate `json:"configuration"` +type SourceAirbytePutRequest struct { + Configuration SourceAirbyteUpdate `json:"configuration"` Name string `json:"name"` WorkspaceID string `json:"workspaceId"` } -func (o *SourcePunkAPIPutRequest) GetConfiguration() SourcePunkAPIUpdate { +func (o *SourceAirbytePutRequest) GetConfiguration() SourceAirbyteUpdate { if o == nil { - return SourcePunkAPIUpdate{} + return SourceAirbyteUpdate{} } return o.Configuration } -func (o *SourcePunkAPIPutRequest) GetName() string { +func (o *SourceAirbytePutRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourcePunkAPIPutRequest) GetWorkspaceID() string { +func (o *SourceAirbytePutRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourceairbyteupdate.go b/internal/sdk/models/shared/sourceairbyteupdate.go new file mode 100644 index 000000000..a70c8ef64 --- /dev/null +++ b/internal/sdk/models/shared/sourceairbyteupdate.go @@ -0,0 +1,46 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" +) + +type SourceAirbyteUpdate struct { + ClientID string `json:"client_id"` + ClientSecret string `json:"client_secret"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceAirbyteUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceAirbyteUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceAirbyteUpdate) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *SourceAirbyteUpdate) GetClientSecret() string { + if o == nil { + return "" + } + return o.ClientSecret +} + +func (o *SourceAirbyteUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceairtableupdate.go b/internal/sdk/models/shared/sourceairtableupdate.go index 4aa6ed1fb..f327c4071 100644 --- a/internal/sdk/models/shared/sourceairtableupdate.go +++ b/internal/sdk/models/shared/sourceairtableupdate.go @@ -33,31 +33,31 @@ func (e *SourceAirtableUpdateAuthMethod) UnmarshalJSON(data []byte) error { } } -type PersonalAccessToken struct { +type SourceAirtableUpdatePersonalAccessToken struct { // The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token. APIKey string `json:"api_key"` authMethod *SourceAirtableUpdateAuthMethod `const:"api_key" json:"auth_method,omitempty"` } -func (p PersonalAccessToken) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) +func (s SourceAirtableUpdatePersonalAccessToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) } -func (p *PersonalAccessToken) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, true); err != nil { +func (s *SourceAirtableUpdatePersonalAccessToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *PersonalAccessToken) GetAPIKey() string { +func (o *SourceAirtableUpdatePersonalAccessToken) GetAPIKey() string { if o == nil { return "" } return o.APIKey } -func (o *PersonalAccessToken) GetAuthMethod() *SourceAirtableUpdateAuthMethod { +func (o *SourceAirtableUpdatePersonalAccessToken) GetAuthMethod() *SourceAirtableUpdateAuthMethod { return SourceAirtableUpdateAuthMethodAPIKey.ToPointer() } @@ -151,13 +151,13 @@ func (o *SourceAirtableUpdateOAuth20) GetTokenExpiryDate() *time.Time { type SourceAirtableUpdateAuthenticationType string const ( - SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdateOAuth20 SourceAirtableUpdateAuthenticationType = "source-airtable-update_OAuth2.0" - SourceAirtableUpdateAuthenticationTypePersonalAccessToken SourceAirtableUpdateAuthenticationType = "Personal Access Token" + SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdateOAuth20 SourceAirtableUpdateAuthenticationType = "source-airtable-update_OAuth2.0" + SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdatePersonalAccessToken SourceAirtableUpdateAuthenticationType = "source-airtable-update_Personal Access Token" ) type SourceAirtableUpdateAuthentication struct { - SourceAirtableUpdateOAuth20 *SourceAirtableUpdateOAuth20 - PersonalAccessToken *PersonalAccessToken + SourceAirtableUpdateOAuth20 *SourceAirtableUpdateOAuth20 + SourceAirtableUpdatePersonalAccessToken *SourceAirtableUpdatePersonalAccessToken Type SourceAirtableUpdateAuthenticationType } @@ -171,21 +171,21 @@ func CreateSourceAirtableUpdateAuthenticationSourceAirtableUpdateOAuth20(sourceA } } -func CreateSourceAirtableUpdateAuthenticationPersonalAccessToken(personalAccessToken PersonalAccessToken) SourceAirtableUpdateAuthentication { - typ := SourceAirtableUpdateAuthenticationTypePersonalAccessToken +func CreateSourceAirtableUpdateAuthenticationSourceAirtableUpdatePersonalAccessToken(sourceAirtableUpdatePersonalAccessToken SourceAirtableUpdatePersonalAccessToken) SourceAirtableUpdateAuthentication { + typ := SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdatePersonalAccessToken return SourceAirtableUpdateAuthentication{ - PersonalAccessToken: &personalAccessToken, - Type: typ, + SourceAirtableUpdatePersonalAccessToken: &sourceAirtableUpdatePersonalAccessToken, + Type: typ, } } func (u *SourceAirtableUpdateAuthentication) UnmarshalJSON(data []byte) error { - var personalAccessToken PersonalAccessToken = PersonalAccessToken{} - if err := utils.UnmarshalJSON(data, &personalAccessToken, "", true, true); err == nil { - u.PersonalAccessToken = &personalAccessToken - u.Type = SourceAirtableUpdateAuthenticationTypePersonalAccessToken + var sourceAirtableUpdatePersonalAccessToken SourceAirtableUpdatePersonalAccessToken = SourceAirtableUpdatePersonalAccessToken{} + if err := utils.UnmarshalJSON(data, &sourceAirtableUpdatePersonalAccessToken, "", true, true); err == nil { + u.SourceAirtableUpdatePersonalAccessToken = &sourceAirtableUpdatePersonalAccessToken + u.Type = SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdatePersonalAccessToken return nil } @@ -204,8 +204,8 @@ func (u SourceAirtableUpdateAuthentication) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceAirtableUpdateOAuth20, "", true) } - if u.PersonalAccessToken != nil { - return utils.MarshalJSON(u.PersonalAccessToken, "", true) + if u.SourceAirtableUpdatePersonalAccessToken != nil { + return utils.MarshalJSON(u.SourceAirtableUpdatePersonalAccessToken, "", true) } return nil, errors.New("could not marshal union type SourceAirtableUpdateAuthentication: all fields are null") diff --git a/internal/sdk/models/shared/sourceamazonsellerpartner.go b/internal/sdk/models/shared/sourceamazonsellerpartner.go index e10df3559..cb0f6693b 100644 --- a/internal/sdk/models/shared/sourceamazonsellerpartner.go +++ b/internal/sdk/models/shared/sourceamazonsellerpartner.go @@ -392,11 +392,13 @@ 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, the date 2 years ago from today will be used. + // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. 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"` sourceType AmazonSellerPartner `const:"amazon-seller-partner" json:"sourceType"` + // For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See Troubleshooting section for more details + WaitToAvoidFatalErrors *bool `default:"false" json:"wait_to_avoid_fatal_errors"` } func (s SourceAmazonSellerPartner) MarshalJSON() ([]byte, error) { @@ -487,3 +489,10 @@ func (o *SourceAmazonSellerPartner) GetReportOptionsList() []SourceAmazonSellerP func (o *SourceAmazonSellerPartner) GetSourceType() AmazonSellerPartner { return AmazonSellerPartnerAmazonSellerPartner } + +func (o *SourceAmazonSellerPartner) GetWaitToAvoidFatalErrors() *bool { + if o == nil { + return nil + } + return o.WaitToAvoidFatalErrors +} diff --git a/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go b/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go index 4e16321da..dc4b47cc1 100644 --- a/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go +++ b/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go @@ -369,10 +369,12 @@ 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, the date 2 years ago from today will be used. + // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. 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"` + // For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See Troubleshooting section for more details + WaitToAvoidFatalErrors *bool `default:"false" json:"wait_to_avoid_fatal_errors"` } func (s SourceAmazonSellerPartnerUpdate) MarshalJSON() ([]byte, error) { @@ -459,3 +461,10 @@ func (o *SourceAmazonSellerPartnerUpdate) GetReportOptionsList() []ReportOptions } return o.ReportOptionsList } + +func (o *SourceAmazonSellerPartnerUpdate) GetWaitToAvoidFatalErrors() *bool { + if o == nil { + return nil + } + return o.WaitToAvoidFatalErrors +} diff --git a/internal/sdk/models/shared/sourceawscloudtrail.go b/internal/sdk/models/shared/sourceawscloudtrail.go index 47afcc121..cb45b8cc6 100644 --- a/internal/sdk/models/shared/sourceawscloudtrail.go +++ b/internal/sdk/models/shared/sourceawscloudtrail.go @@ -9,6 +9,36 @@ 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 ( @@ -36,12 +66,13 @@ 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 `json:"aws_region_name"` + AwsRegionName *string `default:"us-east-1" 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"` - sourceType AwsCloudtrail `const:"aws-cloudtrail" json:"sourceType"` + AwsSecretKey string `json:"aws_secret_key"` + LookupAttributesFilter *SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody `json:"lookup_attributes_filter,omitempty"` + 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 `default:"1970-01-01" json:"start_date"` + StartDate *types.Date `json:"start_date,omitempty"` } func (s SourceAwsCloudtrail) MarshalJSON() ([]byte, error) { @@ -62,9 +93,9 @@ func (o *SourceAwsCloudtrail) GetAwsKeyID() string { return o.AwsKeyID } -func (o *SourceAwsCloudtrail) GetAwsRegionName() string { +func (o *SourceAwsCloudtrail) GetAwsRegionName() *string { if o == nil { - return "" + return nil } return o.AwsRegionName } @@ -76,6 +107,13 @@ 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 ecfb7dff5..3ab86b30c 100644 --- a/internal/sdk/models/shared/sourceawscloudtrailupdate.go +++ b/internal/sdk/models/shared/sourceawscloudtrailupdate.go @@ -7,15 +7,46 @@ 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 `json:"aws_region_name"` + AwsRegionName *string `default:"us-east-1" 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"` + AwsSecretKey string `json:"aws_secret_key"` + LookupAttributesFilter *FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody `json:"lookup_attributes_filter,omitempty"` // 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 `default:"1970-01-01" json:"start_date"` + StartDate *types.Date `json:"start_date,omitempty"` } func (s SourceAwsCloudtrailUpdate) MarshalJSON() ([]byte, error) { @@ -36,9 +67,9 @@ func (o *SourceAwsCloudtrailUpdate) GetAwsKeyID() string { return o.AwsKeyID } -func (o *SourceAwsCloudtrailUpdate) GetAwsRegionName() string { +func (o *SourceAwsCloudtrailUpdate) GetAwsRegionName() *string { if o == nil { - return "" + return nil } return o.AwsRegionName } @@ -50,6 +81,13 @@ 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/sourcebamboohr.go b/internal/sdk/models/shared/sourcebamboohr.go index 1f700e0c2..0c1231cf6 100644 --- a/internal/sdk/models/shared/sourcebamboohr.go +++ b/internal/sdk/models/shared/sourcebamboohr.go @@ -6,6 +6,7 @@ import ( "encoding/json" "fmt" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" ) type BambooHr string @@ -37,8 +38,9 @@ type SourceBambooHr struct { // Comma-separated list of fields to include in custom reports. CustomReportsFields *string `json:"custom_reports_fields,omitempty"` // If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. - CustomReportsIncludeDefaultFields *bool `default:"true" json:"custom_reports_include_default_fields"` - sourceType BambooHr `const:"bamboo-hr" json:"sourceType"` + CustomReportsIncludeDefaultFields *bool `default:"true" json:"custom_reports_include_default_fields"` + sourceType BambooHr `const:"bamboo-hr" json:"sourceType"` + StartDate *time.Time `json:"start_date,omitempty"` // Sub Domain of bamboo hr Subdomain string `json:"subdomain"` } @@ -79,6 +81,13 @@ func (o *SourceBambooHr) GetSourceType() BambooHr { return BambooHrBambooHr } +func (o *SourceBambooHr) GetStartDate() *time.Time { + if o == nil { + return nil + } + return o.StartDate +} + func (o *SourceBambooHr) GetSubdomain() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/sourcebamboohrupdate.go b/internal/sdk/models/shared/sourcebamboohrupdate.go index 37765665d..906405f4a 100644 --- a/internal/sdk/models/shared/sourcebamboohrupdate.go +++ b/internal/sdk/models/shared/sourcebamboohrupdate.go @@ -4,6 +4,7 @@ package shared import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" ) type SourceBambooHrUpdate struct { @@ -12,7 +13,8 @@ type SourceBambooHrUpdate struct { // Comma-separated list of fields to include in custom reports. CustomReportsFields *string `json:"custom_reports_fields,omitempty"` // If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. - CustomReportsIncludeDefaultFields *bool `default:"true" json:"custom_reports_include_default_fields"` + CustomReportsIncludeDefaultFields *bool `default:"true" json:"custom_reports_include_default_fields"` + StartDate *time.Time `json:"start_date,omitempty"` // Sub Domain of bamboo hr Subdomain string `json:"subdomain"` } @@ -49,6 +51,13 @@ func (o *SourceBambooHrUpdate) GetCustomReportsIncludeDefaultFields() *bool { return o.CustomReportsIncludeDefaultFields } +func (o *SourceBambooHrUpdate) GetStartDate() *time.Time { + if o == nil { + return nil + } + return o.StartDate +} + func (o *SourceBambooHrUpdate) GetSubdomain() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/sourcebasecamp.go b/internal/sdk/models/shared/sourcebasecamp.go new file mode 100644 index 000000000..6aea8a392 --- /dev/null +++ b/internal/sdk/models/shared/sourcebasecamp.go @@ -0,0 +1,92 @@ +// 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" + "time" +) + +type Basecamp string + +const ( + BasecampBasecamp Basecamp = "basecamp" +) + +func (e Basecamp) ToPointer() *Basecamp { + return &e +} +func (e *Basecamp) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "basecamp": + *e = Basecamp(v) + return nil + default: + return fmt.Errorf("invalid value for Basecamp: %v", v) + } +} + +type SourceBasecamp struct { + AccountID float64 `json:"account_id"` + ClientID string `json:"client_id"` + ClientRefreshToken2 string `json:"client_refresh_token_2"` + ClientSecret string `json:"client_secret"` + sourceType Basecamp `const:"basecamp" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBasecamp) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBasecamp) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBasecamp) GetAccountID() float64 { + if o == nil { + return 0.0 + } + return o.AccountID +} + +func (o *SourceBasecamp) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *SourceBasecamp) GetClientRefreshToken2() string { + if o == nil { + return "" + } + return o.ClientRefreshToken2 +} + +func (o *SourceBasecamp) GetClientSecret() string { + if o == nil { + return "" + } + return o.ClientSecret +} + +func (o *SourceBasecamp) GetSourceType() Basecamp { + return BasecampBasecamp +} + +func (o *SourceBasecamp) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlycreaterequest.go b/internal/sdk/models/shared/sourcebasecampcreaterequest.go similarity index 52% rename from internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlycreaterequest.go rename to internal/sdk/models/shared/sourcebasecampcreaterequest.go index cb1df8524..aa8687975 100644 --- a/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlycreaterequest.go +++ b/internal/sdk/models/shared/sourcebasecampcreaterequest.go @@ -2,8 +2,8 @@ package shared -type SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest struct { - Configuration SourceGoogleAnalyticsV4ServiceAccountOnly `json:"configuration"` +type SourceBasecampCreateRequest struct { + Configuration SourceBasecamp `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 SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest struct { WorkspaceID string `json:"workspaceId"` } -func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetConfiguration() SourceGoogleAnalyticsV4ServiceAccountOnly { +func (o *SourceBasecampCreateRequest) GetConfiguration() SourceBasecamp { if o == nil { - return SourceGoogleAnalyticsV4ServiceAccountOnly{} + return SourceBasecamp{} } return o.Configuration } -func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetDefinitionID() *string { +func (o *SourceBasecampCreateRequest) GetDefinitionID() *string { if o == nil { return nil } return o.DefinitionID } -func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetName() string { +func (o *SourceBasecampCreateRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetSecretID() *string { +func (o *SourceBasecampCreateRequest) GetSecretID() *string { if o == nil { return nil } return o.SecretID } -func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetWorkspaceID() string { +func (o *SourceBasecampCreateRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourcebasecampputrequest.go b/internal/sdk/models/shared/sourcebasecampputrequest.go new file mode 100644 index 000000000..d8cc8f3d7 --- /dev/null +++ b/internal/sdk/models/shared/sourcebasecampputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBasecampPutRequest struct { + Configuration SourceBasecampUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceBasecampPutRequest) GetConfiguration() SourceBasecampUpdate { + if o == nil { + return SourceBasecampUpdate{} + } + return o.Configuration +} + +func (o *SourceBasecampPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBasecampPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebasecampupdate.go b/internal/sdk/models/shared/sourcebasecampupdate.go new file mode 100644 index 000000000..968ceb4e1 --- /dev/null +++ b/internal/sdk/models/shared/sourcebasecampupdate.go @@ -0,0 +1,62 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" +) + +type SourceBasecampUpdate struct { + AccountID float64 `json:"account_id"` + ClientID string `json:"client_id"` + ClientRefreshToken2 string `json:"client_refresh_token_2"` + ClientSecret string `json:"client_secret"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBasecampUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBasecampUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBasecampUpdate) GetAccountID() float64 { + if o == nil { + return 0.0 + } + return o.AccountID +} + +func (o *SourceBasecampUpdate) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *SourceBasecampUpdate) GetClientRefreshToken2() string { + if o == nil { + return "" + } + return o.ClientRefreshToken2 +} + +func (o *SourceBasecampUpdate) GetClientSecret() string { + if o == nil { + return "" + } + return o.ClientSecret +} + +func (o *SourceBasecampUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcebreezyhr.go b/internal/sdk/models/shared/sourcebreezyhr.go new file mode 100644 index 000000000..b37169759 --- /dev/null +++ b/internal/sdk/models/shared/sourcebreezyhr.go @@ -0,0 +1,67 @@ +// 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 BreezyHr string + +const ( + BreezyHrBreezyHr BreezyHr = "breezy-hr" +) + +func (e BreezyHr) ToPointer() *BreezyHr { + return &e +} +func (e *BreezyHr) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "breezy-hr": + *e = BreezyHr(v) + return nil + default: + return fmt.Errorf("invalid value for BreezyHr: %v", v) + } +} + +type SourceBreezyHr struct { + APIKey string `json:"api_key"` + CompanyID string `json:"company_id"` + sourceType BreezyHr `const:"breezy-hr" json:"sourceType"` +} + +func (s SourceBreezyHr) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBreezyHr) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBreezyHr) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBreezyHr) GetCompanyID() string { + if o == nil { + return "" + } + return o.CompanyID +} + +func (o *SourceBreezyHr) GetSourceType() BreezyHr { + return BreezyHrBreezyHr +} diff --git a/internal/sdk/models/shared/sourcebreezyhrcreaterequest.go b/internal/sdk/models/shared/sourcebreezyhrcreaterequest.go new file mode 100644 index 000000000..8b04a87a9 --- /dev/null +++ b/internal/sdk/models/shared/sourcebreezyhrcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBreezyHrCreateRequest struct { + Configuration SourceBreezyHr `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 *SourceBreezyHrCreateRequest) GetConfiguration() SourceBreezyHr { + if o == nil { + return SourceBreezyHr{} + } + return o.Configuration +} + +func (o *SourceBreezyHrCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceBreezyHrCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBreezyHrCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceBreezyHrCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebreezyhrputrequest.go b/internal/sdk/models/shared/sourcebreezyhrputrequest.go new file mode 100644 index 000000000..9ab7e248d --- /dev/null +++ b/internal/sdk/models/shared/sourcebreezyhrputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBreezyHrPutRequest struct { + Configuration SourceBreezyHrUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceBreezyHrPutRequest) GetConfiguration() SourceBreezyHrUpdate { + if o == nil { + return SourceBreezyHrUpdate{} + } + return o.Configuration +} + +func (o *SourceBreezyHrPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBreezyHrPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebreezyhrupdate.go b/internal/sdk/models/shared/sourcebreezyhrupdate.go new file mode 100644 index 000000000..8df8c48d8 --- /dev/null +++ b/internal/sdk/models/shared/sourcebreezyhrupdate.go @@ -0,0 +1,22 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBreezyHrUpdate struct { + APIKey string `json:"api_key"` + CompanyID string `json:"company_id"` +} + +func (o *SourceBreezyHrUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBreezyHrUpdate) GetCompanyID() string { + if o == nil { + return "" + } + return o.CompanyID +} diff --git a/internal/sdk/models/shared/sourcecalendly.go b/internal/sdk/models/shared/sourcecalendly.go new file mode 100644 index 000000000..422e045dd --- /dev/null +++ b/internal/sdk/models/shared/sourcecalendly.go @@ -0,0 +1,69 @@ +// 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" + "time" +) + +type Calendly string + +const ( + CalendlyCalendly Calendly = "calendly" +) + +func (e Calendly) ToPointer() *Calendly { + return &e +} +func (e *Calendly) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "calendly": + *e = Calendly(v) + return nil + default: + return fmt.Errorf("invalid value for Calendly: %v", v) + } +} + +type SourceCalendly struct { + // Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks + APIKey string `json:"api_key"` + sourceType Calendly `const:"calendly" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceCalendly) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceCalendly) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceCalendly) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceCalendly) GetSourceType() Calendly { + return CalendlyCalendly +} + +func (o *SourceCalendly) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcecalendlycreaterequest.go b/internal/sdk/models/shared/sourcecalendlycreaterequest.go new file mode 100644 index 000000000..e84c3b819 --- /dev/null +++ b/internal/sdk/models/shared/sourcecalendlycreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCalendlyCreateRequest struct { + Configuration SourceCalendly `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 *SourceCalendlyCreateRequest) GetConfiguration() SourceCalendly { + if o == nil { + return SourceCalendly{} + } + return o.Configuration +} + +func (o *SourceCalendlyCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceCalendlyCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceCalendlyCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceCalendlyCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcecalendlyputrequest.go b/internal/sdk/models/shared/sourcecalendlyputrequest.go new file mode 100644 index 000000000..1337030b2 --- /dev/null +++ b/internal/sdk/models/shared/sourcecalendlyputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCalendlyPutRequest struct { + Configuration SourceCalendlyUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceCalendlyPutRequest) GetConfiguration() SourceCalendlyUpdate { + if o == nil { + return SourceCalendlyUpdate{} + } + return o.Configuration +} + +func (o *SourceCalendlyPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceCalendlyPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcecalendlyupdate.go b/internal/sdk/models/shared/sourcecalendlyupdate.go new file mode 100644 index 000000000..31d25b0f5 --- /dev/null +++ b/internal/sdk/models/shared/sourcecalendlyupdate.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" +) + +type SourceCalendlyUpdate struct { + // Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks + APIKey string `json:"api_key"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceCalendlyUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceCalendlyUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceCalendlyUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceCalendlyUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceclazar.go b/internal/sdk/models/shared/sourceclazar.go new file mode 100644 index 000000000..0b53a68e3 --- /dev/null +++ b/internal/sdk/models/shared/sourceclazar.go @@ -0,0 +1,67 @@ +// 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/sourceclazarcreaterequest.go b/internal/sdk/models/shared/sourceclazarcreaterequest.go new file mode 100644 index 000000000..d2f5ba0f3 --- /dev/null +++ b/internal/sdk/models/shared/sourceclazarcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceClazarCreateRequest struct { + Configuration SourceClazar `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 *SourceClazarCreateRequest) GetConfiguration() SourceClazar { + if o == nil { + return SourceClazar{} + } + return o.Configuration +} + +func (o *SourceClazarCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceClazarCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceClazarCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceClazarCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceclazarputrequest.go b/internal/sdk/models/shared/sourceclazarputrequest.go new file mode 100644 index 000000000..08d15a7d9 --- /dev/null +++ b/internal/sdk/models/shared/sourceclazarputrequest.go @@ -0,0 +1,30 @@ +// 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 new file mode 100644 index 000000000..4f70ef9ba --- /dev/null +++ b/internal/sdk/models/shared/sourceclazarupdate.go @@ -0,0 +1,22 @@ +// 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/sourceclickupapi.go b/internal/sdk/models/shared/sourceclickupapi.go index f39d87465..b9f5501bd 100644 --- a/internal/sdk/models/shared/sourceclickupapi.go +++ b/internal/sdk/models/shared/sourceclickupapi.go @@ -34,17 +34,9 @@ func (e *ClickupAPI) UnmarshalJSON(data []byte) error { type SourceClickupAPI struct { // Every ClickUp API call required authentication. This field is your personal API token. See here. APIToken string `json:"api_token"` - // The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See here. - FolderID *string `json:"folder_id,omitempty"` // Include or exclude closed tasks. By default, they are excluded. See here. - IncludeClosedTasks *bool `default:"false" json:"include_closed_tasks"` - // The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See here. - ListID *string `json:"list_id,omitempty"` - sourceType ClickupAPI `const:"clickup-api" json:"sourceType"` - // The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See here. - SpaceID *string `json:"space_id,omitempty"` - // The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See here. - TeamID *string `json:"team_id,omitempty"` + IncludeClosedTasks *bool `default:"false" json:"include_closed_tasks"` + sourceType ClickupAPI `const:"clickup-api" json:"sourceType"` } func (s SourceClickupAPI) MarshalJSON() ([]byte, error) { @@ -65,13 +57,6 @@ func (o *SourceClickupAPI) GetAPIToken() string { return o.APIToken } -func (o *SourceClickupAPI) GetFolderID() *string { - if o == nil { - return nil - } - return o.FolderID -} - func (o *SourceClickupAPI) GetIncludeClosedTasks() *bool { if o == nil { return nil @@ -79,27 +64,6 @@ func (o *SourceClickupAPI) GetIncludeClosedTasks() *bool { return o.IncludeClosedTasks } -func (o *SourceClickupAPI) GetListID() *string { - if o == nil { - return nil - } - return o.ListID -} - func (o *SourceClickupAPI) GetSourceType() ClickupAPI { return ClickupAPIClickupAPI } - -func (o *SourceClickupAPI) GetSpaceID() *string { - if o == nil { - return nil - } - return o.SpaceID -} - -func (o *SourceClickupAPI) GetTeamID() *string { - if o == nil { - return nil - } - return o.TeamID -} diff --git a/internal/sdk/models/shared/sourceclickupapiupdate.go b/internal/sdk/models/shared/sourceclickupapiupdate.go index 7f6054601..4ffedcfa4 100644 --- a/internal/sdk/models/shared/sourceclickupapiupdate.go +++ b/internal/sdk/models/shared/sourceclickupapiupdate.go @@ -9,16 +9,8 @@ import ( type SourceClickupAPIUpdate struct { // Every ClickUp API call required authentication. This field is your personal API token. See here. APIToken string `json:"api_token"` - // The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See here. - FolderID *string `json:"folder_id,omitempty"` // Include or exclude closed tasks. By default, they are excluded. See here. IncludeClosedTasks *bool `default:"false" json:"include_closed_tasks"` - // The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See here. - ListID *string `json:"list_id,omitempty"` - // The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See here. - SpaceID *string `json:"space_id,omitempty"` - // The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See here. - TeamID *string `json:"team_id,omitempty"` } func (s SourceClickupAPIUpdate) MarshalJSON() ([]byte, error) { @@ -39,37 +31,9 @@ func (o *SourceClickupAPIUpdate) GetAPIToken() string { return o.APIToken } -func (o *SourceClickupAPIUpdate) GetFolderID() *string { - if o == nil { - return nil - } - return o.FolderID -} - func (o *SourceClickupAPIUpdate) GetIncludeClosedTasks() *bool { if o == nil { return nil } return o.IncludeClosedTasks } - -func (o *SourceClickupAPIUpdate) GetListID() *string { - if o == nil { - return nil - } - return o.ListID -} - -func (o *SourceClickupAPIUpdate) GetSpaceID() *string { - if o == nil { - return nil - } - return o.SpaceID -} - -func (o *SourceClickupAPIUpdate) GetTeamID() *string { - if o == nil { - return nil - } - return o.TeamID -} diff --git a/internal/sdk/models/shared/sourcecustomerio.go b/internal/sdk/models/shared/sourcecustomerio.go new file mode 100644 index 000000000..52be28e7c --- /dev/null +++ b/internal/sdk/models/shared/sourcecustomerio.go @@ -0,0 +1,59 @@ +// 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 CustomerIo string + +const ( + CustomerIoCustomerIo CustomerIo = "customer-io" +) + +func (e CustomerIo) ToPointer() *CustomerIo { + return &e +} +func (e *CustomerIo) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "customer-io": + *e = CustomerIo(v) + return nil + default: + return fmt.Errorf("invalid value for CustomerIo: %v", v) + } +} + +type SourceCustomerIo struct { + AppAPIKey string `json:"app_api_key"` + sourceType CustomerIo `const:"customer-io" json:"sourceType"` +} + +func (s SourceCustomerIo) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceCustomerIo) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceCustomerIo) GetAppAPIKey() string { + if o == nil { + return "" + } + return o.AppAPIKey +} + +func (o *SourceCustomerIo) GetSourceType() CustomerIo { + return CustomerIoCustomerIo +} diff --git a/internal/sdk/models/shared/sourcecustomeriocreaterequest.go b/internal/sdk/models/shared/sourcecustomeriocreaterequest.go new file mode 100644 index 000000000..e4997037e --- /dev/null +++ b/internal/sdk/models/shared/sourcecustomeriocreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCustomerIoCreateRequest struct { + Configuration SourceCustomerIo `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 *SourceCustomerIoCreateRequest) GetConfiguration() SourceCustomerIo { + if o == nil { + return SourceCustomerIo{} + } + return o.Configuration +} + +func (o *SourceCustomerIoCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceCustomerIoCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceCustomerIoCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceCustomerIoCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcecustomerioputrequest.go b/internal/sdk/models/shared/sourcecustomerioputrequest.go new file mode 100644 index 000000000..7120a82e1 --- /dev/null +++ b/internal/sdk/models/shared/sourcecustomerioputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCustomerIoPutRequest struct { + Configuration SourceCustomerIoUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceCustomerIoPutRequest) GetConfiguration() SourceCustomerIoUpdate { + if o == nil { + return SourceCustomerIoUpdate{} + } + return o.Configuration +} + +func (o *SourceCustomerIoPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceCustomerIoPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcecustomerioupdate.go b/internal/sdk/models/shared/sourcecustomerioupdate.go new file mode 100644 index 000000000..3018d0ac2 --- /dev/null +++ b/internal/sdk/models/shared/sourcecustomerioupdate.go @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCustomerIoUpdate struct { + AppAPIKey string `json:"app_api_key"` +} + +func (o *SourceCustomerIoUpdate) GetAppAPIKey() string { + if o == nil { + return "" + } + return o.AppAPIKey +} diff --git a/internal/sdk/models/shared/sourcedatadog.go b/internal/sdk/models/shared/sourcedatadog.go new file mode 100644 index 000000000..1a76d85ad --- /dev/null +++ b/internal/sdk/models/shared/sourcedatadog.go @@ -0,0 +1,222 @@ +// 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 `default:"2024-01-01T00:00:00Z" json:"end_date"` + // 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 `default:"2023-12-01T00:00:00Z" json:"start_date"` +} + +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/sourcedatadogcreaterequest.go b/internal/sdk/models/shared/sourcedatadogcreaterequest.go new file mode 100644 index 000000000..eebbd1c1e --- /dev/null +++ b/internal/sdk/models/shared/sourcedatadogcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceDatadogCreateRequest struct { + Configuration SourceDatadog `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 *SourceDatadogCreateRequest) GetConfiguration() SourceDatadog { + if o == nil { + return SourceDatadog{} + } + return o.Configuration +} + +func (o *SourceDatadogCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceDatadogCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceDatadogCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceDatadogCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcedatadogputrequest.go b/internal/sdk/models/shared/sourcedatadogputrequest.go new file mode 100644 index 000000000..6acbaae3b --- /dev/null +++ b/internal/sdk/models/shared/sourcedatadogputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceDatadogPutRequest struct { + Configuration SourceDatadogUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceDatadogPutRequest) GetConfiguration() SourceDatadogUpdate { + if o == nil { + return SourceDatadogUpdate{} + } + return o.Configuration +} + +func (o *SourceDatadogPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceDatadogPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcedatadogupdate.go b/internal/sdk/models/shared/sourcedatadogupdate.go new file mode 100644 index 000000000..bd4b29ca3 --- /dev/null +++ b/internal/sdk/models/shared/sourcedatadogupdate.go @@ -0,0 +1,194 @@ +// 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" +) + +// DataSource - A data source that is powered by the platform. +type DataSource string + +const ( + DataSourceMetrics DataSource = "metrics" + DataSourceCloudCost DataSource = "cloud_cost" + DataSourceLogs DataSource = "logs" + DataSourceRum DataSource = "rum" +) + +func (e DataSource) ToPointer() *DataSource { + return &e +} +func (e *DataSource) 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 = DataSource(v) + return nil + default: + return fmt.Errorf("invalid value for DataSource: %v", v) + } +} + +type Queries struct { + // A data source that is powered by the platform. + DataSource DataSource `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() DataSource { + if o == nil { + return DataSource("") + } + 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 `default:"2024-01-01T00:00:00Z" json:"end_date"` + // 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 `default:"2023-12-01T00:00:00Z" json:"start_date"` +} + +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/sourcedbt.go b/internal/sdk/models/shared/sourcedbt.go new file mode 100644 index 000000000..32f4fd35f --- /dev/null +++ b/internal/sdk/models/shared/sourcedbt.go @@ -0,0 +1,67 @@ +// 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 Dbt string + +const ( + DbtDbt Dbt = "dbt" +) + +func (e Dbt) ToPointer() *Dbt { + return &e +} +func (e *Dbt) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "dbt": + *e = Dbt(v) + return nil + default: + return fmt.Errorf("invalid value for Dbt: %v", v) + } +} + +type SourceDbt struct { + AccountID string `json:"account_id"` + APIKey2 string `json:"api_key_2"` + sourceType Dbt `const:"dbt" json:"sourceType"` +} + +func (s SourceDbt) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceDbt) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceDbt) GetAccountID() string { + if o == nil { + return "" + } + return o.AccountID +} + +func (o *SourceDbt) GetAPIKey2() string { + if o == nil { + return "" + } + return o.APIKey2 +} + +func (o *SourceDbt) GetSourceType() Dbt { + return DbtDbt +} diff --git a/internal/sdk/models/shared/sourcedbtcreaterequest.go b/internal/sdk/models/shared/sourcedbtcreaterequest.go new file mode 100644 index 000000000..a989d884f --- /dev/null +++ b/internal/sdk/models/shared/sourcedbtcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceDbtCreateRequest struct { + Configuration SourceDbt `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 *SourceDbtCreateRequest) GetConfiguration() SourceDbt { + if o == nil { + return SourceDbt{} + } + return o.Configuration +} + +func (o *SourceDbtCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceDbtCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceDbtCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceDbtCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcedbtputrequest.go b/internal/sdk/models/shared/sourcedbtputrequest.go new file mode 100644 index 000000000..8a1167851 --- /dev/null +++ b/internal/sdk/models/shared/sourcedbtputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceDbtPutRequest struct { + Configuration SourceDbtUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceDbtPutRequest) GetConfiguration() SourceDbtUpdate { + if o == nil { + return SourceDbtUpdate{} + } + return o.Configuration +} + +func (o *SourceDbtPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceDbtPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcedbtupdate.go b/internal/sdk/models/shared/sourcedbtupdate.go new file mode 100644 index 000000000..ab4eb9548 --- /dev/null +++ b/internal/sdk/models/shared/sourcedbtupdate.go @@ -0,0 +1,22 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceDbtUpdate struct { + AccountID string `json:"account_id"` + APIKey2 string `json:"api_key_2"` +} + +func (o *SourceDbtUpdate) GetAccountID() string { + if o == nil { + return "" + } + return o.AccountID +} + +func (o *SourceDbtUpdate) GetAPIKey2() string { + if o == nil { + return "" + } + return o.APIKey2 +} diff --git a/internal/sdk/models/shared/sourcefacebookmarketing.go b/internal/sdk/models/shared/sourcefacebookmarketing.go index 8cca57bab..00710e079 100644 --- a/internal/sdk/models/shared/sourcefacebookmarketing.go +++ b/internal/sdk/models/shared/sourcefacebookmarketing.go @@ -4,6 +4,7 @@ package shared import ( "encoding/json" + "errors" "fmt" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" "time" @@ -147,6 +148,190 @@ 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 @@ -397,7 +582,6 @@ 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" @@ -552,8 +736,6 @@ func (e *SourceFacebookMarketingValidEnums) UnmarshalJSON(data []byte) error { fallthrough case "adset_name": fallthrough - case "adset_start": - fallthrough case "age_targeting": fallthrough case "attribution_setting": @@ -985,6 +1167,8 @@ 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"` // 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. @@ -1069,6 +1253,13 @@ func (o *SourceFacebookMarketing) GetClientSecret() *string { return o.ClientSecret } +func (o *SourceFacebookMarketing) GetCredentials() SourceFacebookMarketingAuthentication { + if o == nil { + return SourceFacebookMarketingAuthentication{} + } + 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 2d5b4d976..5e49fa251 100644 --- a/internal/sdk/models/shared/sourcefacebookmarketingupdate.go +++ b/internal/sdk/models/shared/sourcefacebookmarketingupdate.go @@ -4,6 +4,7 @@ package shared import ( "encoding/json" + "errors" "fmt" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" "time" @@ -147,6 +148,190 @@ 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 @@ -397,7 +582,6 @@ 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" @@ -552,8 +736,6 @@ func (e *SourceFacebookMarketingUpdateValidEnums) UnmarshalJSON(data []byte) err fallthrough case "adset_name": fallthrough - case "adset_start": - fallthrough case "age_targeting": fallthrough case "attribution_setting": @@ -962,6 +1144,8 @@ 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"` // 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. @@ -1045,6 +1229,13 @@ func (o *SourceFacebookMarketingUpdate) GetClientSecret() *string { return o.ClientSecret } +func (o *SourceFacebookMarketingUpdate) GetCredentials() SourceFacebookMarketingUpdateAuthentication { + if o == nil { + return SourceFacebookMarketingUpdateAuthentication{} + } + return o.Credentials +} + func (o *SourceFacebookMarketingUpdate) GetCustomInsights() []InsightConfig { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegcs.go b/internal/sdk/models/shared/sourcegcs.go index 11dcf5f7b..40b0e4f06 100644 --- a/internal/sdk/models/shared/sourcegcs.go +++ b/internal/sdk/models/shared/sourcegcs.go @@ -33,26 +33,462 @@ func (e *SourceGcsGcs) UnmarshalJSON(data []byte) error { } } -type SourceGcsFiletype string +type SourceGcsSchemasStreamsFormatFormat6Filetype string const ( - SourceGcsFiletypeCsv SourceGcsFiletype = "csv" + SourceGcsSchemasStreamsFormatFormat6FiletypeExcel SourceGcsSchemasStreamsFormatFormat6Filetype = "excel" ) -func (e SourceGcsFiletype) ToPointer() *SourceGcsFiletype { +func (e SourceGcsSchemasStreamsFormatFormat6Filetype) ToPointer() *SourceGcsSchemasStreamsFormatFormat6Filetype { return &e } -func (e *SourceGcsFiletype) UnmarshalJSON(data []byte) error { +func (e *SourceGcsSchemasStreamsFormatFormat6Filetype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "excel": + *e = SourceGcsSchemasStreamsFormatFormat6Filetype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsSchemasStreamsFormatFormat6Filetype: %v", v) + } +} + +type SourceGcsExcelFormat struct { + filetype *SourceGcsSchemasStreamsFormatFormat6Filetype `const:"excel" json:"filetype"` +} + +func (s SourceGcsExcelFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsExcelFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsExcelFormat) GetFiletype() *SourceGcsSchemasStreamsFormatFormat6Filetype { + return SourceGcsSchemasStreamsFormatFormat6FiletypeExcel.ToPointer() +} + +type SourceGcsSchemasStreamsFormatFormatFiletype string + +const ( + SourceGcsSchemasStreamsFormatFormatFiletypeUnstructured SourceGcsSchemasStreamsFormatFormatFiletype = "unstructured" +) + +func (e SourceGcsSchemasStreamsFormatFormatFiletype) ToPointer() *SourceGcsSchemasStreamsFormatFormatFiletype { + return &e +} +func (e *SourceGcsSchemasStreamsFormatFormatFiletype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "unstructured": + *e = SourceGcsSchemasStreamsFormatFormatFiletype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsSchemasStreamsFormatFormatFiletype: %v", v) + } +} + +type SourceGcsSchemasMode string + +const ( + SourceGcsSchemasModeAPI SourceGcsSchemasMode = "api" +) + +func (e SourceGcsSchemasMode) ToPointer() *SourceGcsSchemasMode { + return &e +} +func (e *SourceGcsSchemasMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "api": + *e = SourceGcsSchemasMode(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsSchemasMode: %v", v) + } +} + +type SourceGcsAPIParameterConfigModel struct { + // The name of the unstructured API parameter to use + Name string `json:"name"` + // The value of the parameter + Value string `json:"value"` +} + +func (o *SourceGcsAPIParameterConfigModel) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceGcsAPIParameterConfigModel) GetValue() string { + if o == nil { + return "" + } + return o.Value +} + +// SourceGcsViaAPI - Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. +type SourceGcsViaAPI struct { + // The API key to use matching the environment + APIKey *string `default:"" json:"api_key"` + // The URL of the unstructured API to use + APIURL *string `default:"https://api.unstructured.io" json:"api_url"` + mode *SourceGcsSchemasMode `const:"api" json:"mode"` + // List of parameters send to the API + Parameters []SourceGcsAPIParameterConfigModel `json:"parameters,omitempty"` +} + +func (s SourceGcsViaAPI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsViaAPI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsViaAPI) GetAPIKey() *string { + if o == nil { + return nil + } + return o.APIKey +} + +func (o *SourceGcsViaAPI) GetAPIURL() *string { + if o == nil { + return nil + } + return o.APIURL +} + +func (o *SourceGcsViaAPI) GetMode() *SourceGcsSchemasMode { + return SourceGcsSchemasModeAPI.ToPointer() +} + +func (o *SourceGcsViaAPI) GetParameters() []SourceGcsAPIParameterConfigModel { + if o == nil { + return nil + } + return o.Parameters +} + +type SourceGcsMode string + +const ( + SourceGcsModeLocal SourceGcsMode = "local" +) + +func (e SourceGcsMode) ToPointer() *SourceGcsMode { + return &e +} +func (e *SourceGcsMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "local": + *e = SourceGcsMode(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsMode: %v", v) + } +} + +// SourceGcsLocal - Process files locally, supporting `fast` and `ocr` modes. This is the default option. +type SourceGcsLocal struct { + mode *SourceGcsMode `const:"local" json:"mode"` +} + +func (s SourceGcsLocal) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsLocal) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsLocal) GetMode() *SourceGcsMode { + return SourceGcsModeLocal.ToPointer() +} + +type SourceGcsProcessingType string + +const ( + SourceGcsProcessingTypeSourceGcsLocal SourceGcsProcessingType = "source-gcs_Local" + SourceGcsProcessingTypeSourceGcsViaAPI SourceGcsProcessingType = "source-gcs_via API" +) + +// SourceGcsProcessing - Processing configuration +type SourceGcsProcessing struct { + SourceGcsLocal *SourceGcsLocal + SourceGcsViaAPI *SourceGcsViaAPI + + Type SourceGcsProcessingType +} + +func CreateSourceGcsProcessingSourceGcsLocal(sourceGcsLocal SourceGcsLocal) SourceGcsProcessing { + typ := SourceGcsProcessingTypeSourceGcsLocal + + return SourceGcsProcessing{ + SourceGcsLocal: &sourceGcsLocal, + Type: typ, + } +} + +func CreateSourceGcsProcessingSourceGcsViaAPI(sourceGcsViaAPI SourceGcsViaAPI) SourceGcsProcessing { + typ := SourceGcsProcessingTypeSourceGcsViaAPI + + return SourceGcsProcessing{ + SourceGcsViaAPI: &sourceGcsViaAPI, + Type: typ, + } +} + +func (u *SourceGcsProcessing) UnmarshalJSON(data []byte) error { + + var sourceGcsLocal SourceGcsLocal = SourceGcsLocal{} + if err := utils.UnmarshalJSON(data, &sourceGcsLocal, "", true, true); err == nil { + u.SourceGcsLocal = &sourceGcsLocal + u.Type = SourceGcsProcessingTypeSourceGcsLocal + return nil + } + + var sourceGcsViaAPI SourceGcsViaAPI = SourceGcsViaAPI{} + if err := utils.UnmarshalJSON(data, &sourceGcsViaAPI, "", true, true); err == nil { + u.SourceGcsViaAPI = &sourceGcsViaAPI + u.Type = SourceGcsProcessingTypeSourceGcsViaAPI + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGcsProcessing", string(data)) +} + +func (u SourceGcsProcessing) MarshalJSON() ([]byte, error) { + if u.SourceGcsLocal != nil { + return utils.MarshalJSON(u.SourceGcsLocal, "", true) + } + + if u.SourceGcsViaAPI != nil { + return utils.MarshalJSON(u.SourceGcsViaAPI, "", true) + } + + return nil, errors.New("could not marshal union type SourceGcsProcessing: all fields are null") +} + +// SourceGcsParsingStrategy - The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf +type SourceGcsParsingStrategy string + +const ( + SourceGcsParsingStrategyAuto SourceGcsParsingStrategy = "auto" + SourceGcsParsingStrategyFast SourceGcsParsingStrategy = "fast" + SourceGcsParsingStrategyOcrOnly SourceGcsParsingStrategy = "ocr_only" + SourceGcsParsingStrategyHiRes SourceGcsParsingStrategy = "hi_res" +) + +func (e SourceGcsParsingStrategy) ToPointer() *SourceGcsParsingStrategy { + return &e +} +func (e *SourceGcsParsingStrategy) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "auto": + fallthrough + case "fast": + fallthrough + case "ocr_only": + fallthrough + case "hi_res": + *e = SourceGcsParsingStrategy(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsParsingStrategy: %v", v) + } +} + +// SourceGcsUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceGcsUnstructuredDocumentFormat struct { + filetype *SourceGcsSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` + // Processing configuration + Processing *SourceGcsProcessing `json:"processing,omitempty"` + // 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. + SkipUnprocessableFiles *bool `default:"true" json:"skip_unprocessable_files"` + // 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 + Strategy *SourceGcsParsingStrategy `default:"auto" json:"strategy"` +} + +func (s SourceGcsUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsUnstructuredDocumentFormat) GetFiletype() *SourceGcsSchemasStreamsFormatFormatFiletype { + return SourceGcsSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() +} + +func (o *SourceGcsUnstructuredDocumentFormat) GetProcessing() *SourceGcsProcessing { + if o == nil { + return nil + } + return o.Processing +} + +func (o *SourceGcsUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { + if o == nil { + return nil + } + return o.SkipUnprocessableFiles +} + +func (o *SourceGcsUnstructuredDocumentFormat) GetStrategy() *SourceGcsParsingStrategy { + if o == nil { + return nil + } + return o.Strategy +} + +type SourceGcsSchemasStreamsFormatFiletype string + +const ( + SourceGcsSchemasStreamsFormatFiletypeParquet SourceGcsSchemasStreamsFormatFiletype = "parquet" +) + +func (e SourceGcsSchemasStreamsFormatFiletype) ToPointer() *SourceGcsSchemasStreamsFormatFiletype { + return &e +} +func (e *SourceGcsSchemasStreamsFormatFiletype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "parquet": + *e = SourceGcsSchemasStreamsFormatFiletype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsSchemasStreamsFormatFiletype: %v", v) + } +} + +type SourceGcsParquetFormat struct { + // Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + DecimalAsFloat *bool `default:"false" json:"decimal_as_float"` + filetype *SourceGcsSchemasStreamsFormatFiletype `const:"parquet" json:"filetype"` +} + +func (s SourceGcsParquetFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsParquetFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsParquetFormat) GetDecimalAsFloat() *bool { + if o == nil { + return nil + } + return o.DecimalAsFloat +} + +func (o *SourceGcsParquetFormat) GetFiletype() *SourceGcsSchemasStreamsFormatFiletype { + return SourceGcsSchemasStreamsFormatFiletypeParquet.ToPointer() +} + +type SourceGcsSchemasStreamsFiletype string + +const ( + SourceGcsSchemasStreamsFiletypeJsonl SourceGcsSchemasStreamsFiletype = "jsonl" +) + +func (e SourceGcsSchemasStreamsFiletype) ToPointer() *SourceGcsSchemasStreamsFiletype { + return &e +} +func (e *SourceGcsSchemasStreamsFiletype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "jsonl": + *e = SourceGcsSchemasStreamsFiletype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsSchemasStreamsFiletype: %v", v) + } +} + +type SourceGcsJsonlFormat struct { + filetype *SourceGcsSchemasStreamsFiletype `const:"jsonl" json:"filetype"` +} + +func (s SourceGcsJsonlFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsJsonlFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsJsonlFormat) GetFiletype() *SourceGcsSchemasStreamsFiletype { + return SourceGcsSchemasStreamsFiletypeJsonl.ToPointer() +} + +type SourceGcsSchemasFiletype string + +const ( + SourceGcsSchemasFiletypeCsv SourceGcsSchemasFiletype = "csv" +) + +func (e SourceGcsSchemasFiletype) ToPointer() *SourceGcsSchemasFiletype { + return &e +} +func (e *SourceGcsSchemasFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "csv": - *e = SourceGcsFiletype(v) + *e = SourceGcsSchemasFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceGcsFiletype: %v", v) + return fmt.Errorf("invalid value for SourceGcsSchemasFiletype: %v", v) } } @@ -314,8 +750,8 @@ type SourceGcsCSVFormat struct { // The character used for escaping special characters. To disallow escaping, leave this field blank. EscapeChar *string `json:"escape_char,omitempty"` // A set of case-sensitive strings that should be interpreted as false values. - FalseValues []string `json:"false_values,omitempty"` - filetype *SourceGcsFiletype `const:"csv" json:"filetype"` + FalseValues []string `json:"false_values,omitempty"` + filetype *SourceGcsSchemasFiletype `const:"csv" json:"filetype"` // 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. HeaderDefinition *SourceGcsCSVHeaderDefinition `json:"header_definition,omitempty"` // Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. @@ -382,8 +818,8 @@ func (o *SourceGcsCSVFormat) GetFalseValues() []string { return o.FalseValues } -func (o *SourceGcsCSVFormat) GetFiletype() *SourceGcsFiletype { - return SourceGcsFiletypeCsv.ToPointer() +func (o *SourceGcsCSVFormat) GetFiletype() *SourceGcsSchemasFiletype { + return SourceGcsSchemasFiletypeCsv.ToPointer() } func (o *SourceGcsCSVFormat) GetHeaderDefinition() *SourceGcsCSVHeaderDefinition { @@ -449,19 +885,89 @@ func (o *SourceGcsCSVFormat) GetTrueValues() []string { return o.TrueValues } +type SourceGcsFiletype string + +const ( + SourceGcsFiletypeAvro SourceGcsFiletype = "avro" +) + +func (e SourceGcsFiletype) ToPointer() *SourceGcsFiletype { + return &e +} +func (e *SourceGcsFiletype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "avro": + *e = SourceGcsFiletype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsFiletype: %v", v) + } +} + +type SourceGcsAvroFormat struct { + // Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + DoubleAsString *bool `default:"false" json:"double_as_string"` + filetype *SourceGcsFiletype `const:"avro" json:"filetype"` +} + +func (s SourceGcsAvroFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsAvroFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsAvroFormat) GetDoubleAsString() *bool { + if o == nil { + return nil + } + return o.DoubleAsString +} + +func (o *SourceGcsAvroFormat) GetFiletype() *SourceGcsFiletype { + return SourceGcsFiletypeAvro.ToPointer() +} + type SourceGcsFormatType string const ( - SourceGcsFormatTypeSourceGcsCSVFormat SourceGcsFormatType = "source-gcs_CSV Format" + SourceGcsFormatTypeSourceGcsAvroFormat SourceGcsFormatType = "source-gcs_Avro Format" + SourceGcsFormatTypeSourceGcsCSVFormat SourceGcsFormatType = "source-gcs_CSV Format" + SourceGcsFormatTypeSourceGcsJsonlFormat SourceGcsFormatType = "source-gcs_Jsonl Format" + SourceGcsFormatTypeSourceGcsParquetFormat SourceGcsFormatType = "source-gcs_Parquet Format" + SourceGcsFormatTypeSourceGcsUnstructuredDocumentFormat SourceGcsFormatType = "source-gcs_Unstructured Document Format" + SourceGcsFormatTypeSourceGcsExcelFormat SourceGcsFormatType = "source-gcs_Excel Format" ) // SourceGcsFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceGcsFormat struct { - SourceGcsCSVFormat *SourceGcsCSVFormat + SourceGcsAvroFormat *SourceGcsAvroFormat + SourceGcsCSVFormat *SourceGcsCSVFormat + SourceGcsJsonlFormat *SourceGcsJsonlFormat + SourceGcsParquetFormat *SourceGcsParquetFormat + SourceGcsUnstructuredDocumentFormat *SourceGcsUnstructuredDocumentFormat + SourceGcsExcelFormat *SourceGcsExcelFormat Type SourceGcsFormatType } +func CreateSourceGcsFormatSourceGcsAvroFormat(sourceGcsAvroFormat SourceGcsAvroFormat) SourceGcsFormat { + typ := SourceGcsFormatTypeSourceGcsAvroFormat + + return SourceGcsFormat{ + SourceGcsAvroFormat: &sourceGcsAvroFormat, + Type: typ, + } +} + func CreateSourceGcsFormatSourceGcsCSVFormat(sourceGcsCSVFormat SourceGcsCSVFormat) SourceGcsFormat { typ := SourceGcsFormatTypeSourceGcsCSVFormat @@ -471,8 +977,79 @@ func CreateSourceGcsFormatSourceGcsCSVFormat(sourceGcsCSVFormat SourceGcsCSVForm } } +func CreateSourceGcsFormatSourceGcsJsonlFormat(sourceGcsJsonlFormat SourceGcsJsonlFormat) SourceGcsFormat { + typ := SourceGcsFormatTypeSourceGcsJsonlFormat + + return SourceGcsFormat{ + SourceGcsJsonlFormat: &sourceGcsJsonlFormat, + Type: typ, + } +} + +func CreateSourceGcsFormatSourceGcsParquetFormat(sourceGcsParquetFormat SourceGcsParquetFormat) SourceGcsFormat { + typ := SourceGcsFormatTypeSourceGcsParquetFormat + + return SourceGcsFormat{ + SourceGcsParquetFormat: &sourceGcsParquetFormat, + Type: typ, + } +} + +func CreateSourceGcsFormatSourceGcsUnstructuredDocumentFormat(sourceGcsUnstructuredDocumentFormat SourceGcsUnstructuredDocumentFormat) SourceGcsFormat { + typ := SourceGcsFormatTypeSourceGcsUnstructuredDocumentFormat + + return SourceGcsFormat{ + SourceGcsUnstructuredDocumentFormat: &sourceGcsUnstructuredDocumentFormat, + Type: typ, + } +} + +func CreateSourceGcsFormatSourceGcsExcelFormat(sourceGcsExcelFormat SourceGcsExcelFormat) SourceGcsFormat { + typ := SourceGcsFormatTypeSourceGcsExcelFormat + + return SourceGcsFormat{ + SourceGcsExcelFormat: &sourceGcsExcelFormat, + Type: typ, + } +} + func (u *SourceGcsFormat) UnmarshalJSON(data []byte) error { + var sourceGcsJsonlFormat SourceGcsJsonlFormat = SourceGcsJsonlFormat{} + if err := utils.UnmarshalJSON(data, &sourceGcsJsonlFormat, "", true, true); err == nil { + u.SourceGcsJsonlFormat = &sourceGcsJsonlFormat + u.Type = SourceGcsFormatTypeSourceGcsJsonlFormat + return nil + } + + var sourceGcsExcelFormat SourceGcsExcelFormat = SourceGcsExcelFormat{} + if err := utils.UnmarshalJSON(data, &sourceGcsExcelFormat, "", true, true); err == nil { + u.SourceGcsExcelFormat = &sourceGcsExcelFormat + u.Type = SourceGcsFormatTypeSourceGcsExcelFormat + return nil + } + + var sourceGcsAvroFormat SourceGcsAvroFormat = SourceGcsAvroFormat{} + if err := utils.UnmarshalJSON(data, &sourceGcsAvroFormat, "", true, true); err == nil { + u.SourceGcsAvroFormat = &sourceGcsAvroFormat + u.Type = SourceGcsFormatTypeSourceGcsAvroFormat + return nil + } + + var sourceGcsParquetFormat SourceGcsParquetFormat = SourceGcsParquetFormat{} + if err := utils.UnmarshalJSON(data, &sourceGcsParquetFormat, "", true, true); err == nil { + u.SourceGcsParquetFormat = &sourceGcsParquetFormat + u.Type = SourceGcsFormatTypeSourceGcsParquetFormat + return nil + } + + var sourceGcsUnstructuredDocumentFormat SourceGcsUnstructuredDocumentFormat = SourceGcsUnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &sourceGcsUnstructuredDocumentFormat, "", true, true); err == nil { + u.SourceGcsUnstructuredDocumentFormat = &sourceGcsUnstructuredDocumentFormat + u.Type = SourceGcsFormatTypeSourceGcsUnstructuredDocumentFormat + return nil + } + var sourceGcsCSVFormat SourceGcsCSVFormat = SourceGcsCSVFormat{} if err := utils.UnmarshalJSON(data, &sourceGcsCSVFormat, "", true, true); err == nil { u.SourceGcsCSVFormat = &sourceGcsCSVFormat @@ -484,10 +1061,30 @@ func (u *SourceGcsFormat) UnmarshalJSON(data []byte) error { } func (u SourceGcsFormat) MarshalJSON() ([]byte, error) { + if u.SourceGcsAvroFormat != nil { + return utils.MarshalJSON(u.SourceGcsAvroFormat, "", true) + } + if u.SourceGcsCSVFormat != nil { return utils.MarshalJSON(u.SourceGcsCSVFormat, "", true) } + if u.SourceGcsJsonlFormat != nil { + return utils.MarshalJSON(u.SourceGcsJsonlFormat, "", true) + } + + if u.SourceGcsParquetFormat != nil { + return utils.MarshalJSON(u.SourceGcsParquetFormat, "", true) + } + + if u.SourceGcsUnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.SourceGcsUnstructuredDocumentFormat, "", true) + } + + if u.SourceGcsExcelFormat != nil { + return utils.MarshalJSON(u.SourceGcsExcelFormat, "", true) + } + return nil, errors.New("could not marshal union type SourceGcsFormat: all fields are null") } @@ -521,7 +1118,7 @@ func (e *SourceGcsValidationPolicy) UnmarshalJSON(data []byte) error { } } -type SourceGCSSourceGCSStreamConfig struct { +type SourceGcsFileBasedStreamConfig struct { // When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. DaysToSyncIfHistoryIsFull *int64 `default:"3" json:"days_to_sync_if_history_is_full"` // The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. @@ -530,86 +1127,95 @@ type SourceGCSSourceGCSStreamConfig struct { Globs []string `json:"globs,omitempty"` // The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. InputSchema *string `json:"input_schema,omitempty"` - // The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. + // The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. LegacyPrefix *string `json:"legacy_prefix,omitempty"` // The name of the stream. Name string `json:"name"` // The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. PrimaryKey *string `json:"primary_key,omitempty"` + // The number of resent files which will be used to discover the schema for this stream. + RecentNFilesToReadForSchemaDiscovery *int64 `json:"recent_n_files_to_read_for_schema_discovery,omitempty"` // When enabled, syncs will not validate or structure records against the stream's schema. Schemaless *bool `default:"false" json:"schemaless"` // The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. ValidationPolicy *SourceGcsValidationPolicy `default:"Emit Record" json:"validation_policy"` } -func (s SourceGCSSourceGCSStreamConfig) MarshalJSON() ([]byte, error) { +func (s SourceGcsFileBasedStreamConfig) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceGCSSourceGCSStreamConfig) UnmarshalJSON(data []byte) error { +func (s *SourceGcsFileBasedStreamConfig) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { return err } return nil } -func (o *SourceGCSSourceGCSStreamConfig) GetDaysToSyncIfHistoryIsFull() *int64 { +func (o *SourceGcsFileBasedStreamConfig) GetDaysToSyncIfHistoryIsFull() *int64 { if o == nil { return nil } return o.DaysToSyncIfHistoryIsFull } -func (o *SourceGCSSourceGCSStreamConfig) GetFormat() SourceGcsFormat { +func (o *SourceGcsFileBasedStreamConfig) GetFormat() SourceGcsFormat { if o == nil { return SourceGcsFormat{} } return o.Format } -func (o *SourceGCSSourceGCSStreamConfig) GetGlobs() []string { +func (o *SourceGcsFileBasedStreamConfig) GetGlobs() []string { if o == nil { return nil } return o.Globs } -func (o *SourceGCSSourceGCSStreamConfig) GetInputSchema() *string { +func (o *SourceGcsFileBasedStreamConfig) GetInputSchema() *string { if o == nil { return nil } return o.InputSchema } -func (o *SourceGCSSourceGCSStreamConfig) GetLegacyPrefix() *string { +func (o *SourceGcsFileBasedStreamConfig) GetLegacyPrefix() *string { if o == nil { return nil } return o.LegacyPrefix } -func (o *SourceGCSSourceGCSStreamConfig) GetName() string { +func (o *SourceGcsFileBasedStreamConfig) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourceGCSSourceGCSStreamConfig) GetPrimaryKey() *string { +func (o *SourceGcsFileBasedStreamConfig) GetPrimaryKey() *string { if o == nil { return nil } return o.PrimaryKey } -func (o *SourceGCSSourceGCSStreamConfig) GetSchemaless() *bool { +func (o *SourceGcsFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { + if o == nil { + return nil + } + return o.RecentNFilesToReadForSchemaDiscovery +} + +func (o *SourceGcsFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil } return o.Schemaless } -func (o *SourceGCSSourceGCSStreamConfig) GetValidationPolicy() *SourceGcsValidationPolicy { +func (o *SourceGcsFileBasedStreamConfig) GetValidationPolicy() *SourceGcsValidationPolicy { if o == nil { return nil } @@ -627,8 +1233,8 @@ type SourceGcs struct { sourceType SourceGcsGcs `const:"gcs" json:"sourceType"` // UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. StartDate *time.Time `json:"start_date,omitempty"` - // Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. - Streams []SourceGCSSourceGCSStreamConfig `json:"streams"` + // Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + Streams []SourceGcsFileBasedStreamConfig `json:"streams"` } func (s SourceGcs) MarshalJSON() ([]byte, error) { @@ -667,9 +1273,9 @@ func (o *SourceGcs) GetStartDate() *time.Time { return o.StartDate } -func (o *SourceGcs) GetStreams() []SourceGCSSourceGCSStreamConfig { +func (o *SourceGcs) GetStreams() []SourceGcsFileBasedStreamConfig { if o == nil { - return []SourceGCSSourceGCSStreamConfig{} + return []SourceGcsFileBasedStreamConfig{} } return o.Streams } diff --git a/internal/sdk/models/shared/sourcegcsupdate.go b/internal/sdk/models/shared/sourcegcsupdate.go index df11d31c5..2f7930fb2 100644 --- a/internal/sdk/models/shared/sourcegcsupdate.go +++ b/internal/sdk/models/shared/sourcegcsupdate.go @@ -10,26 +10,462 @@ import ( "time" ) -type SourceGcsUpdateFiletype string +type SourceGcsUpdateSchemasStreamsFormatFormat6Filetype string const ( - SourceGcsUpdateFiletypeCsv SourceGcsUpdateFiletype = "csv" + SourceGcsUpdateSchemasStreamsFormatFormat6FiletypeExcel SourceGcsUpdateSchemasStreamsFormatFormat6Filetype = "excel" ) -func (e SourceGcsUpdateFiletype) ToPointer() *SourceGcsUpdateFiletype { +func (e SourceGcsUpdateSchemasStreamsFormatFormat6Filetype) ToPointer() *SourceGcsUpdateSchemasStreamsFormatFormat6Filetype { return &e } -func (e *SourceGcsUpdateFiletype) UnmarshalJSON(data []byte) error { +func (e *SourceGcsUpdateSchemasStreamsFormatFormat6Filetype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "excel": + *e = SourceGcsUpdateSchemasStreamsFormatFormat6Filetype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsUpdateSchemasStreamsFormatFormat6Filetype: %v", v) + } +} + +type ExcelFormat struct { + filetype *SourceGcsUpdateSchemasStreamsFormatFormat6Filetype `const:"excel" json:"filetype"` +} + +func (e ExcelFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *ExcelFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, true); err != nil { + return err + } + return nil +} + +func (o *ExcelFormat) GetFiletype() *SourceGcsUpdateSchemasStreamsFormatFormat6Filetype { + return SourceGcsUpdateSchemasStreamsFormatFormat6FiletypeExcel.ToPointer() +} + +type SourceGcsUpdateSchemasStreamsFormatFormatFiletype string + +const ( + SourceGcsUpdateSchemasStreamsFormatFormatFiletypeUnstructured SourceGcsUpdateSchemasStreamsFormatFormatFiletype = "unstructured" +) + +func (e SourceGcsUpdateSchemasStreamsFormatFormatFiletype) ToPointer() *SourceGcsUpdateSchemasStreamsFormatFormatFiletype { + return &e +} +func (e *SourceGcsUpdateSchemasStreamsFormatFormatFiletype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "unstructured": + *e = SourceGcsUpdateSchemasStreamsFormatFormatFiletype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsUpdateSchemasStreamsFormatFormatFiletype: %v", v) + } +} + +type SourceGcsUpdateSchemasMode string + +const ( + SourceGcsUpdateSchemasModeAPI SourceGcsUpdateSchemasMode = "api" +) + +func (e SourceGcsUpdateSchemasMode) ToPointer() *SourceGcsUpdateSchemasMode { + return &e +} +func (e *SourceGcsUpdateSchemasMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "api": + *e = SourceGcsUpdateSchemasMode(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsUpdateSchemasMode: %v", v) + } +} + +type APIParameterConfigModel struct { + // The name of the unstructured API parameter to use + Name string `json:"name"` + // The value of the parameter + Value string `json:"value"` +} + +func (o *APIParameterConfigModel) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *APIParameterConfigModel) GetValue() string { + if o == nil { + return "" + } + return o.Value +} + +// ViaAPI - Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. +type ViaAPI struct { + // The API key to use matching the environment + APIKey *string `default:"" json:"api_key"` + // The URL of the unstructured API to use + APIURL *string `default:"https://api.unstructured.io" json:"api_url"` + mode *SourceGcsUpdateSchemasMode `const:"api" json:"mode"` + // List of parameters send to the API + Parameters []APIParameterConfigModel `json:"parameters,omitempty"` +} + +func (v ViaAPI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(v, "", false) +} + +func (v *ViaAPI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &v, "", false, true); err != nil { + return err + } + return nil +} + +func (o *ViaAPI) GetAPIKey() *string { + if o == nil { + return nil + } + return o.APIKey +} + +func (o *ViaAPI) GetAPIURL() *string { + if o == nil { + return nil + } + return o.APIURL +} + +func (o *ViaAPI) GetMode() *SourceGcsUpdateSchemasMode { + return SourceGcsUpdateSchemasModeAPI.ToPointer() +} + +func (o *ViaAPI) GetParameters() []APIParameterConfigModel { + if o == nil { + return nil + } + return o.Parameters +} + +type SourceGcsUpdateMode string + +const ( + SourceGcsUpdateModeLocal SourceGcsUpdateMode = "local" +) + +func (e SourceGcsUpdateMode) ToPointer() *SourceGcsUpdateMode { + return &e +} +func (e *SourceGcsUpdateMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "local": + *e = SourceGcsUpdateMode(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsUpdateMode: %v", v) + } +} + +// SourceGcsUpdateLocal - Process files locally, supporting `fast` and `ocr` modes. This is the default option. +type SourceGcsUpdateLocal struct { + mode *SourceGcsUpdateMode `const:"local" json:"mode"` +} + +func (s SourceGcsUpdateLocal) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsUpdateLocal) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsUpdateLocal) GetMode() *SourceGcsUpdateMode { + return SourceGcsUpdateModeLocal.ToPointer() +} + +type SourceGcsUpdateProcessingType string + +const ( + SourceGcsUpdateProcessingTypeSourceGcsUpdateLocal SourceGcsUpdateProcessingType = "source-gcs-update_Local" + SourceGcsUpdateProcessingTypeViaAPI SourceGcsUpdateProcessingType = "via API" +) + +// SourceGcsUpdateProcessing - Processing configuration +type SourceGcsUpdateProcessing struct { + SourceGcsUpdateLocal *SourceGcsUpdateLocal + ViaAPI *ViaAPI + + Type SourceGcsUpdateProcessingType +} + +func CreateSourceGcsUpdateProcessingSourceGcsUpdateLocal(sourceGcsUpdateLocal SourceGcsUpdateLocal) SourceGcsUpdateProcessing { + typ := SourceGcsUpdateProcessingTypeSourceGcsUpdateLocal + + return SourceGcsUpdateProcessing{ + SourceGcsUpdateLocal: &sourceGcsUpdateLocal, + Type: typ, + } +} + +func CreateSourceGcsUpdateProcessingViaAPI(viaAPI ViaAPI) SourceGcsUpdateProcessing { + typ := SourceGcsUpdateProcessingTypeViaAPI + + return SourceGcsUpdateProcessing{ + ViaAPI: &viaAPI, + Type: typ, + } +} + +func (u *SourceGcsUpdateProcessing) UnmarshalJSON(data []byte) error { + + var sourceGcsUpdateLocal SourceGcsUpdateLocal = SourceGcsUpdateLocal{} + if err := utils.UnmarshalJSON(data, &sourceGcsUpdateLocal, "", true, true); err == nil { + u.SourceGcsUpdateLocal = &sourceGcsUpdateLocal + u.Type = SourceGcsUpdateProcessingTypeSourceGcsUpdateLocal + return nil + } + + var viaAPI ViaAPI = ViaAPI{} + if err := utils.UnmarshalJSON(data, &viaAPI, "", true, true); err == nil { + u.ViaAPI = &viaAPI + u.Type = SourceGcsUpdateProcessingTypeViaAPI + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGcsUpdateProcessing", string(data)) +} + +func (u SourceGcsUpdateProcessing) MarshalJSON() ([]byte, error) { + if u.SourceGcsUpdateLocal != nil { + return utils.MarshalJSON(u.SourceGcsUpdateLocal, "", true) + } + + if u.ViaAPI != nil { + return utils.MarshalJSON(u.ViaAPI, "", true) + } + + return nil, errors.New("could not marshal union type SourceGcsUpdateProcessing: all fields are null") +} + +// SourceGcsUpdateParsingStrategy - 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 +type SourceGcsUpdateParsingStrategy string + +const ( + SourceGcsUpdateParsingStrategyAuto SourceGcsUpdateParsingStrategy = "auto" + SourceGcsUpdateParsingStrategyFast SourceGcsUpdateParsingStrategy = "fast" + SourceGcsUpdateParsingStrategyOcrOnly SourceGcsUpdateParsingStrategy = "ocr_only" + SourceGcsUpdateParsingStrategyHiRes SourceGcsUpdateParsingStrategy = "hi_res" +) + +func (e SourceGcsUpdateParsingStrategy) ToPointer() *SourceGcsUpdateParsingStrategy { + return &e +} +func (e *SourceGcsUpdateParsingStrategy) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "auto": + fallthrough + case "fast": + fallthrough + case "ocr_only": + fallthrough + case "hi_res": + *e = SourceGcsUpdateParsingStrategy(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsUpdateParsingStrategy: %v", v) + } +} + +// UnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type UnstructuredDocumentFormat struct { + filetype *SourceGcsUpdateSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` + // Processing configuration + Processing *SourceGcsUpdateProcessing `json:"processing,omitempty"` + // 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. + SkipUnprocessableFiles *bool `default:"true" json:"skip_unprocessable_files"` + // 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 + Strategy *SourceGcsUpdateParsingStrategy `default:"auto" json:"strategy"` +} + +func (u UnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, true); err != nil { + return err + } + return nil +} + +func (o *UnstructuredDocumentFormat) GetFiletype() *SourceGcsUpdateSchemasStreamsFormatFormatFiletype { + return SourceGcsUpdateSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() +} + +func (o *UnstructuredDocumentFormat) GetProcessing() *SourceGcsUpdateProcessing { + if o == nil { + return nil + } + return o.Processing +} + +func (o *UnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { + if o == nil { + return nil + } + return o.SkipUnprocessableFiles +} + +func (o *UnstructuredDocumentFormat) GetStrategy() *SourceGcsUpdateParsingStrategy { + if o == nil { + return nil + } + return o.Strategy +} + +type SourceGcsUpdateSchemasStreamsFormatFiletype string + +const ( + SourceGcsUpdateSchemasStreamsFormatFiletypeParquet SourceGcsUpdateSchemasStreamsFormatFiletype = "parquet" +) + +func (e SourceGcsUpdateSchemasStreamsFormatFiletype) ToPointer() *SourceGcsUpdateSchemasStreamsFormatFiletype { + return &e +} +func (e *SourceGcsUpdateSchemasStreamsFormatFiletype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "parquet": + *e = SourceGcsUpdateSchemasStreamsFormatFiletype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsUpdateSchemasStreamsFormatFiletype: %v", v) + } +} + +type SourceGcsUpdateParquetFormat struct { + // Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + DecimalAsFloat *bool `default:"false" json:"decimal_as_float"` + filetype *SourceGcsUpdateSchemasStreamsFormatFiletype `const:"parquet" json:"filetype"` +} + +func (s SourceGcsUpdateParquetFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsUpdateParquetFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsUpdateParquetFormat) GetDecimalAsFloat() *bool { + if o == nil { + return nil + } + return o.DecimalAsFloat +} + +func (o *SourceGcsUpdateParquetFormat) GetFiletype() *SourceGcsUpdateSchemasStreamsFormatFiletype { + return SourceGcsUpdateSchemasStreamsFormatFiletypeParquet.ToPointer() +} + +type SourceGcsUpdateSchemasStreamsFiletype string + +const ( + SourceGcsUpdateSchemasStreamsFiletypeJsonl SourceGcsUpdateSchemasStreamsFiletype = "jsonl" +) + +func (e SourceGcsUpdateSchemasStreamsFiletype) ToPointer() *SourceGcsUpdateSchemasStreamsFiletype { + return &e +} +func (e *SourceGcsUpdateSchemasStreamsFiletype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "jsonl": + *e = SourceGcsUpdateSchemasStreamsFiletype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsUpdateSchemasStreamsFiletype: %v", v) + } +} + +type SourceGcsUpdateJsonlFormat struct { + filetype *SourceGcsUpdateSchemasStreamsFiletype `const:"jsonl" json:"filetype"` +} + +func (s SourceGcsUpdateJsonlFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsUpdateJsonlFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsUpdateJsonlFormat) GetFiletype() *SourceGcsUpdateSchemasStreamsFiletype { + return SourceGcsUpdateSchemasStreamsFiletypeJsonl.ToPointer() +} + +type SourceGcsUpdateSchemasFiletype string + +const ( + SourceGcsUpdateSchemasFiletypeCsv SourceGcsUpdateSchemasFiletype = "csv" +) + +func (e SourceGcsUpdateSchemasFiletype) ToPointer() *SourceGcsUpdateSchemasFiletype { + return &e +} +func (e *SourceGcsUpdateSchemasFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "csv": - *e = SourceGcsUpdateFiletype(v) + *e = SourceGcsUpdateSchemasFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceGcsUpdateFiletype: %v", v) + return fmt.Errorf("invalid value for SourceGcsUpdateSchemasFiletype: %v", v) } } @@ -291,8 +727,8 @@ type SourceGcsUpdateCSVFormat struct { // The character used for escaping special characters. To disallow escaping, leave this field blank. EscapeChar *string `json:"escape_char,omitempty"` // A set of case-sensitive strings that should be interpreted as false values. - FalseValues []string `json:"false_values,omitempty"` - filetype *SourceGcsUpdateFiletype `const:"csv" json:"filetype"` + FalseValues []string `json:"false_values,omitempty"` + filetype *SourceGcsUpdateSchemasFiletype `const:"csv" json:"filetype"` // 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. HeaderDefinition *SourceGcsUpdateCSVHeaderDefinition `json:"header_definition,omitempty"` // Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. @@ -359,8 +795,8 @@ func (o *SourceGcsUpdateCSVFormat) GetFalseValues() []string { return o.FalseValues } -func (o *SourceGcsUpdateCSVFormat) GetFiletype() *SourceGcsUpdateFiletype { - return SourceGcsUpdateFiletypeCsv.ToPointer() +func (o *SourceGcsUpdateCSVFormat) GetFiletype() *SourceGcsUpdateSchemasFiletype { + return SourceGcsUpdateSchemasFiletypeCsv.ToPointer() } func (o *SourceGcsUpdateCSVFormat) GetHeaderDefinition() *SourceGcsUpdateCSVHeaderDefinition { @@ -426,19 +862,89 @@ func (o *SourceGcsUpdateCSVFormat) GetTrueValues() []string { return o.TrueValues } +type SourceGcsUpdateFiletype string + +const ( + SourceGcsUpdateFiletypeAvro SourceGcsUpdateFiletype = "avro" +) + +func (e SourceGcsUpdateFiletype) ToPointer() *SourceGcsUpdateFiletype { + return &e +} +func (e *SourceGcsUpdateFiletype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "avro": + *e = SourceGcsUpdateFiletype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGcsUpdateFiletype: %v", v) + } +} + +type SourceGcsUpdateAvroFormat struct { + // Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + DoubleAsString *bool `default:"false" json:"double_as_string"` + filetype *SourceGcsUpdateFiletype `const:"avro" json:"filetype"` +} + +func (s SourceGcsUpdateAvroFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGcsUpdateAvroFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGcsUpdateAvroFormat) GetDoubleAsString() *bool { + if o == nil { + return nil + } + return o.DoubleAsString +} + +func (o *SourceGcsUpdateAvroFormat) GetFiletype() *SourceGcsUpdateFiletype { + return SourceGcsUpdateFiletypeAvro.ToPointer() +} + type SourceGcsUpdateFormatType string const ( - SourceGcsUpdateFormatTypeSourceGcsUpdateCSVFormat SourceGcsUpdateFormatType = "source-gcs-update_CSV Format" + SourceGcsUpdateFormatTypeSourceGcsUpdateAvroFormat SourceGcsUpdateFormatType = "source-gcs-update_Avro Format" + SourceGcsUpdateFormatTypeSourceGcsUpdateCSVFormat SourceGcsUpdateFormatType = "source-gcs-update_CSV Format" + SourceGcsUpdateFormatTypeSourceGcsUpdateJsonlFormat SourceGcsUpdateFormatType = "source-gcs-update_Jsonl Format" + SourceGcsUpdateFormatTypeSourceGcsUpdateParquetFormat SourceGcsUpdateFormatType = "source-gcs-update_Parquet Format" + SourceGcsUpdateFormatTypeUnstructuredDocumentFormat SourceGcsUpdateFormatType = "Unstructured Document Format" + SourceGcsUpdateFormatTypeExcelFormat SourceGcsUpdateFormatType = "Excel Format" ) // SourceGcsUpdateFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceGcsUpdateFormat struct { - SourceGcsUpdateCSVFormat *SourceGcsUpdateCSVFormat + SourceGcsUpdateAvroFormat *SourceGcsUpdateAvroFormat + SourceGcsUpdateCSVFormat *SourceGcsUpdateCSVFormat + SourceGcsUpdateJsonlFormat *SourceGcsUpdateJsonlFormat + SourceGcsUpdateParquetFormat *SourceGcsUpdateParquetFormat + UnstructuredDocumentFormat *UnstructuredDocumentFormat + ExcelFormat *ExcelFormat Type SourceGcsUpdateFormatType } +func CreateSourceGcsUpdateFormatSourceGcsUpdateAvroFormat(sourceGcsUpdateAvroFormat SourceGcsUpdateAvroFormat) SourceGcsUpdateFormat { + typ := SourceGcsUpdateFormatTypeSourceGcsUpdateAvroFormat + + return SourceGcsUpdateFormat{ + SourceGcsUpdateAvroFormat: &sourceGcsUpdateAvroFormat, + Type: typ, + } +} + func CreateSourceGcsUpdateFormatSourceGcsUpdateCSVFormat(sourceGcsUpdateCSVFormat SourceGcsUpdateCSVFormat) SourceGcsUpdateFormat { typ := SourceGcsUpdateFormatTypeSourceGcsUpdateCSVFormat @@ -448,8 +954,79 @@ func CreateSourceGcsUpdateFormatSourceGcsUpdateCSVFormat(sourceGcsUpdateCSVForma } } +func CreateSourceGcsUpdateFormatSourceGcsUpdateJsonlFormat(sourceGcsUpdateJsonlFormat SourceGcsUpdateJsonlFormat) SourceGcsUpdateFormat { + typ := SourceGcsUpdateFormatTypeSourceGcsUpdateJsonlFormat + + return SourceGcsUpdateFormat{ + SourceGcsUpdateJsonlFormat: &sourceGcsUpdateJsonlFormat, + Type: typ, + } +} + +func CreateSourceGcsUpdateFormatSourceGcsUpdateParquetFormat(sourceGcsUpdateParquetFormat SourceGcsUpdateParquetFormat) SourceGcsUpdateFormat { + typ := SourceGcsUpdateFormatTypeSourceGcsUpdateParquetFormat + + return SourceGcsUpdateFormat{ + SourceGcsUpdateParquetFormat: &sourceGcsUpdateParquetFormat, + Type: typ, + } +} + +func CreateSourceGcsUpdateFormatUnstructuredDocumentFormat(unstructuredDocumentFormat UnstructuredDocumentFormat) SourceGcsUpdateFormat { + typ := SourceGcsUpdateFormatTypeUnstructuredDocumentFormat + + return SourceGcsUpdateFormat{ + UnstructuredDocumentFormat: &unstructuredDocumentFormat, + Type: typ, + } +} + +func CreateSourceGcsUpdateFormatExcelFormat(excelFormat ExcelFormat) SourceGcsUpdateFormat { + typ := SourceGcsUpdateFormatTypeExcelFormat + + return SourceGcsUpdateFormat{ + ExcelFormat: &excelFormat, + Type: typ, + } +} + func (u *SourceGcsUpdateFormat) UnmarshalJSON(data []byte) error { + var sourceGcsUpdateJsonlFormat SourceGcsUpdateJsonlFormat = SourceGcsUpdateJsonlFormat{} + if err := utils.UnmarshalJSON(data, &sourceGcsUpdateJsonlFormat, "", true, true); err == nil { + u.SourceGcsUpdateJsonlFormat = &sourceGcsUpdateJsonlFormat + u.Type = SourceGcsUpdateFormatTypeSourceGcsUpdateJsonlFormat + return nil + } + + var excelFormat ExcelFormat = ExcelFormat{} + if err := utils.UnmarshalJSON(data, &excelFormat, "", true, true); err == nil { + u.ExcelFormat = &excelFormat + u.Type = SourceGcsUpdateFormatTypeExcelFormat + return nil + } + + var sourceGcsUpdateAvroFormat SourceGcsUpdateAvroFormat = SourceGcsUpdateAvroFormat{} + if err := utils.UnmarshalJSON(data, &sourceGcsUpdateAvroFormat, "", true, true); err == nil { + u.SourceGcsUpdateAvroFormat = &sourceGcsUpdateAvroFormat + u.Type = SourceGcsUpdateFormatTypeSourceGcsUpdateAvroFormat + return nil + } + + var sourceGcsUpdateParquetFormat SourceGcsUpdateParquetFormat = SourceGcsUpdateParquetFormat{} + if err := utils.UnmarshalJSON(data, &sourceGcsUpdateParquetFormat, "", true, true); err == nil { + u.SourceGcsUpdateParquetFormat = &sourceGcsUpdateParquetFormat + u.Type = SourceGcsUpdateFormatTypeSourceGcsUpdateParquetFormat + return nil + } + + var unstructuredDocumentFormat UnstructuredDocumentFormat = UnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &unstructuredDocumentFormat, "", true, true); err == nil { + u.UnstructuredDocumentFormat = &unstructuredDocumentFormat + u.Type = SourceGcsUpdateFormatTypeUnstructuredDocumentFormat + return nil + } + var sourceGcsUpdateCSVFormat SourceGcsUpdateCSVFormat = SourceGcsUpdateCSVFormat{} if err := utils.UnmarshalJSON(data, &sourceGcsUpdateCSVFormat, "", true, true); err == nil { u.SourceGcsUpdateCSVFormat = &sourceGcsUpdateCSVFormat @@ -461,10 +1038,30 @@ func (u *SourceGcsUpdateFormat) UnmarshalJSON(data []byte) error { } func (u SourceGcsUpdateFormat) MarshalJSON() ([]byte, error) { + if u.SourceGcsUpdateAvroFormat != nil { + return utils.MarshalJSON(u.SourceGcsUpdateAvroFormat, "", true) + } + if u.SourceGcsUpdateCSVFormat != nil { return utils.MarshalJSON(u.SourceGcsUpdateCSVFormat, "", true) } + if u.SourceGcsUpdateJsonlFormat != nil { + return utils.MarshalJSON(u.SourceGcsUpdateJsonlFormat, "", true) + } + + if u.SourceGcsUpdateParquetFormat != nil { + return utils.MarshalJSON(u.SourceGcsUpdateParquetFormat, "", true) + } + + if u.UnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.UnstructuredDocumentFormat, "", true) + } + + if u.ExcelFormat != nil { + return utils.MarshalJSON(u.ExcelFormat, "", true) + } + return nil, errors.New("could not marshal union type SourceGcsUpdateFormat: all fields are null") } @@ -498,7 +1095,7 @@ func (e *SourceGcsUpdateValidationPolicy) UnmarshalJSON(data []byte) error { } } -type SourceGCSStreamConfig struct { +type SourceGcsUpdateFileBasedStreamConfig struct { // When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. DaysToSyncIfHistoryIsFull *int64 `default:"3" json:"days_to_sync_if_history_is_full"` // The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. @@ -507,86 +1104,95 @@ type SourceGCSStreamConfig struct { Globs []string `json:"globs,omitempty"` // The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. InputSchema *string `json:"input_schema,omitempty"` - // The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. + // The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. LegacyPrefix *string `json:"legacy_prefix,omitempty"` // The name of the stream. Name string `json:"name"` // The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. PrimaryKey *string `json:"primary_key,omitempty"` + // The number of resent files which will be used to discover the schema for this stream. + RecentNFilesToReadForSchemaDiscovery *int64 `json:"recent_n_files_to_read_for_schema_discovery,omitempty"` // When enabled, syncs will not validate or structure records against the stream's schema. Schemaless *bool `default:"false" json:"schemaless"` // The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. ValidationPolicy *SourceGcsUpdateValidationPolicy `default:"Emit Record" json:"validation_policy"` } -func (s SourceGCSStreamConfig) MarshalJSON() ([]byte, error) { +func (s SourceGcsUpdateFileBasedStreamConfig) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceGCSStreamConfig) UnmarshalJSON(data []byte) error { +func (s *SourceGcsUpdateFileBasedStreamConfig) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { return err } return nil } -func (o *SourceGCSStreamConfig) GetDaysToSyncIfHistoryIsFull() *int64 { +func (o *SourceGcsUpdateFileBasedStreamConfig) GetDaysToSyncIfHistoryIsFull() *int64 { if o == nil { return nil } return o.DaysToSyncIfHistoryIsFull } -func (o *SourceGCSStreamConfig) GetFormat() SourceGcsUpdateFormat { +func (o *SourceGcsUpdateFileBasedStreamConfig) GetFormat() SourceGcsUpdateFormat { if o == nil { return SourceGcsUpdateFormat{} } return o.Format } -func (o *SourceGCSStreamConfig) GetGlobs() []string { +func (o *SourceGcsUpdateFileBasedStreamConfig) GetGlobs() []string { if o == nil { return nil } return o.Globs } -func (o *SourceGCSStreamConfig) GetInputSchema() *string { +func (o *SourceGcsUpdateFileBasedStreamConfig) GetInputSchema() *string { if o == nil { return nil } return o.InputSchema } -func (o *SourceGCSStreamConfig) GetLegacyPrefix() *string { +func (o *SourceGcsUpdateFileBasedStreamConfig) GetLegacyPrefix() *string { if o == nil { return nil } return o.LegacyPrefix } -func (o *SourceGCSStreamConfig) GetName() string { +func (o *SourceGcsUpdateFileBasedStreamConfig) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourceGCSStreamConfig) GetPrimaryKey() *string { +func (o *SourceGcsUpdateFileBasedStreamConfig) GetPrimaryKey() *string { if o == nil { return nil } return o.PrimaryKey } -func (o *SourceGCSStreamConfig) GetSchemaless() *bool { +func (o *SourceGcsUpdateFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { + if o == nil { + return nil + } + return o.RecentNFilesToReadForSchemaDiscovery +} + +func (o *SourceGcsUpdateFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil } return o.Schemaless } -func (o *SourceGCSStreamConfig) GetValidationPolicy() *SourceGcsUpdateValidationPolicy { +func (o *SourceGcsUpdateFileBasedStreamConfig) GetValidationPolicy() *SourceGcsUpdateValidationPolicy { if o == nil { return nil } @@ -603,8 +1209,8 @@ type SourceGcsUpdate struct { ServiceAccount string `json:"service_account"` // UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. StartDate *time.Time `json:"start_date,omitempty"` - // Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. - Streams []SourceGCSStreamConfig `json:"streams"` + // Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + Streams []SourceGcsUpdateFileBasedStreamConfig `json:"streams"` } func (s SourceGcsUpdate) MarshalJSON() ([]byte, error) { @@ -639,9 +1245,9 @@ func (o *SourceGcsUpdate) GetStartDate() *time.Time { return o.StartDate } -func (o *SourceGcsUpdate) GetStreams() []SourceGCSStreamConfig { +func (o *SourceGcsUpdate) GetStreams() []SourceGcsUpdateFileBasedStreamConfig { if o == nil { - return []SourceGCSStreamConfig{} + return []SourceGcsUpdateFileBasedStreamConfig{} } return o.Streams } diff --git a/internal/sdk/models/shared/sourcegoldcast.go b/internal/sdk/models/shared/sourcegoldcast.go new file mode 100644 index 000000000..27d7c413f --- /dev/null +++ b/internal/sdk/models/shared/sourcegoldcast.go @@ -0,0 +1,60 @@ +// 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 new file mode 100644 index 000000000..5c36ce9e4 --- /dev/null +++ b/internal/sdk/models/shared/sourcegoldcastcreaterequest.go @@ -0,0 +1,49 @@ +// 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 new file mode 100644 index 000000000..8d75d6d80 --- /dev/null +++ b/internal/sdk/models/shared/sourcegoldcastputrequest.go @@ -0,0 +1,30 @@ +// 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 new file mode 100644 index 000000000..01278a80b --- /dev/null +++ b/internal/sdk/models/shared/sourcegoldcastupdate.go @@ -0,0 +1,15 @@ +// 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 34025079b..6cd07826a 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 ServiceAccountKeyAuthentication struct { +type SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication 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 ServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) { +func (s SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *ServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error { +func (s *SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *ServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsDataAPIUpdateSchemasAuthType { +func (o *SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsDataAPIUpdateSchemasAuthType { return SourceGoogleAnalyticsDataAPIUpdateSchemasAuthTypeService.ToPointer() } -func (o *ServiceAccountKeyAuthentication) GetCredentialsJSON() string { +func (o *SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) 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)" - SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIUpdateCredentialsType = "Service Account Key Authentication" + SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeAuthenticateViaGoogleOauth SourceGoogleAnalyticsDataAPIUpdateCredentialsType = "Authenticate via Google (Oauth)" + SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeSourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIUpdateCredentialsType = "source-google-analytics-data-api-update_Service Account Key Authentication" ) // SourceGoogleAnalyticsDataAPIUpdateCredentials - Credentials for the service type SourceGoogleAnalyticsDataAPIUpdateCredentials struct { - AuthenticateViaGoogleOauth *AuthenticateViaGoogleOauth - ServiceAccountKeyAuthentication *ServiceAccountKeyAuthentication + AuthenticateViaGoogleOauth *AuthenticateViaGoogleOauth + SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication *SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication Type SourceGoogleAnalyticsDataAPIUpdateCredentialsType } @@ -163,21 +163,21 @@ func CreateSourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOau } } -func CreateSourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication(serviceAccountKeyAuthentication ServiceAccountKeyAuthentication) SourceGoogleAnalyticsDataAPIUpdateCredentials { - typ := SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeServiceAccountKeyAuthentication +func CreateSourceGoogleAnalyticsDataAPIUpdateCredentialsSourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication(sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) SourceGoogleAnalyticsDataAPIUpdateCredentials { + typ := SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeSourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication return SourceGoogleAnalyticsDataAPIUpdateCredentials{ - ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, - Type: typ, + SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication: &sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication, + Type: typ, } } func (u *SourceGoogleAnalyticsDataAPIUpdateCredentials) UnmarshalJSON(data []byte) error { - var serviceAccountKeyAuthentication ServiceAccountKeyAuthentication = ServiceAccountKeyAuthentication{} - if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { - u.ServiceAccountKeyAuthentication = &serviceAccountKeyAuthentication - u.Type = SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeServiceAccountKeyAuthentication + var sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication = SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication{} + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication = &sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication + u.Type = SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeSourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication return nil } @@ -196,8 +196,8 @@ func (u SourceGoogleAnalyticsDataAPIUpdateCredentials) MarshalJSON() ([]byte, er return utils.MarshalJSON(u.AuthenticateViaGoogleOauth, "", true) } - if u.ServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) + if u.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication, "", 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 deleted file mode 100644 index b216d73bd..000000000 --- a/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonly.go +++ /dev/null @@ -1,200 +0,0 @@ -// 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/sourcegoogleanalyticsv4serviceaccountonlyputrequest.go b/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyputrequest.go deleted file mode 100644 index 21c712e61..000000000 --- a/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyputrequest.go +++ /dev/null @@ -1,30 +0,0 @@ -// 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 deleted file mode 100644 index 9a0bc4d0b..000000000 --- a/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyupdate.go +++ /dev/null @@ -1,172 +0,0 @@ -// 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/sourcehardcodedrecords.go b/internal/sdk/models/shared/sourcehardcodedrecords.go new file mode 100644 index 000000000..46aea5361 --- /dev/null +++ b/internal/sdk/models/shared/sourcehardcodedrecords.go @@ -0,0 +1,60 @@ +// 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 HardcodedRecords string + +const ( + HardcodedRecordsHardcodedRecords HardcodedRecords = "hardcoded-records" +) + +func (e HardcodedRecords) ToPointer() *HardcodedRecords { + return &e +} +func (e *HardcodedRecords) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "hardcoded-records": + *e = HardcodedRecords(v) + return nil + default: + return fmt.Errorf("invalid value for HardcodedRecords: %v", v) + } +} + +type SourceHardcodedRecords struct { + // How many records per stream should be generated + Count *int64 `default:"1000" json:"count"` + sourceType HardcodedRecords `const:"hardcoded-records" json:"sourceType"` +} + +func (s SourceHardcodedRecords) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceHardcodedRecords) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceHardcodedRecords) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} + +func (o *SourceHardcodedRecords) GetSourceType() HardcodedRecords { + return HardcodedRecordsHardcodedRecords +} diff --git a/internal/sdk/models/shared/sourcemongodbinternalpoccreaterequest.go b/internal/sdk/models/shared/sourcehardcodedrecordscreaterequest.go similarity index 59% rename from internal/sdk/models/shared/sourcemongodbinternalpoccreaterequest.go rename to internal/sdk/models/shared/sourcehardcodedrecordscreaterequest.go index 5251e50c6..19d82b95e 100644 --- a/internal/sdk/models/shared/sourcemongodbinternalpoccreaterequest.go +++ b/internal/sdk/models/shared/sourcehardcodedrecordscreaterequest.go @@ -2,8 +2,8 @@ package shared -type SourceMongodbInternalPocCreateRequest struct { - Configuration SourceMongodbInternalPoc `json:"configuration"` +type SourceHardcodedRecordsCreateRequest struct { + Configuration SourceHardcodedRecords `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 SourceMongodbInternalPocCreateRequest struct { WorkspaceID string `json:"workspaceId"` } -func (o *SourceMongodbInternalPocCreateRequest) GetConfiguration() SourceMongodbInternalPoc { +func (o *SourceHardcodedRecordsCreateRequest) GetConfiguration() SourceHardcodedRecords { if o == nil { - return SourceMongodbInternalPoc{} + return SourceHardcodedRecords{} } return o.Configuration } -func (o *SourceMongodbInternalPocCreateRequest) GetDefinitionID() *string { +func (o *SourceHardcodedRecordsCreateRequest) GetDefinitionID() *string { if o == nil { return nil } return o.DefinitionID } -func (o *SourceMongodbInternalPocCreateRequest) GetName() string { +func (o *SourceHardcodedRecordsCreateRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourceMongodbInternalPocCreateRequest) GetSecretID() *string { +func (o *SourceHardcodedRecordsCreateRequest) GetSecretID() *string { if o == nil { return nil } return o.SecretID } -func (o *SourceMongodbInternalPocCreateRequest) GetWorkspaceID() string { +func (o *SourceHardcodedRecordsCreateRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourcehardcodedrecordsputrequest.go b/internal/sdk/models/shared/sourcehardcodedrecordsputrequest.go new file mode 100644 index 000000000..d26a06e14 --- /dev/null +++ b/internal/sdk/models/shared/sourcehardcodedrecordsputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceHardcodedRecordsPutRequest struct { + Configuration SourceHardcodedRecordsUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceHardcodedRecordsPutRequest) GetConfiguration() SourceHardcodedRecordsUpdate { + if o == nil { + return SourceHardcodedRecordsUpdate{} + } + return o.Configuration +} + +func (o *SourceHardcodedRecordsPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceHardcodedRecordsPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcehardcodedrecordsupdate.go b/internal/sdk/models/shared/sourcehardcodedrecordsupdate.go new file mode 100644 index 000000000..c44b83f02 --- /dev/null +++ b/internal/sdk/models/shared/sourcehardcodedrecordsupdate.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" +) + +type SourceHardcodedRecordsUpdate struct { + // How many records per stream should be generated + Count *int64 `default:"1000" json:"count"` +} + +func (s SourceHardcodedRecordsUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceHardcodedRecordsUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceHardcodedRecordsUpdate) GetCount() *int64 { + if o == nil { + return nil + } + return o.Count +} diff --git a/internal/sdk/models/shared/sourcehibob.go b/internal/sdk/models/shared/sourcehibob.go new file mode 100644 index 000000000..accaad992 --- /dev/null +++ b/internal/sdk/models/shared/sourcehibob.go @@ -0,0 +1,76 @@ +// 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 Hibob string + +const ( + HibobHibob Hibob = "hibob" +) + +func (e Hibob) ToPointer() *Hibob { + return &e +} +func (e *Hibob) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "hibob": + *e = Hibob(v) + return nil + default: + return fmt.Errorf("invalid value for Hibob: %v", v) + } +} + +type SourceHibob struct { + // Toggle true if this instance is a HiBob sandbox + IsSandbox bool `json:"is_sandbox"` + Password *string `json:"password,omitempty"` + sourceType Hibob `const:"hibob" json:"sourceType"` + Username string `json:"username"` +} + +func (s SourceHibob) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceHibob) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceHibob) GetIsSandbox() bool { + if o == nil { + return false + } + return o.IsSandbox +} + +func (o *SourceHibob) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourceHibob) GetSourceType() Hibob { + return HibobHibob +} + +func (o *SourceHibob) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourcehibobcreaterequest.go b/internal/sdk/models/shared/sourcehibobcreaterequest.go new file mode 100644 index 000000000..4a5f58197 --- /dev/null +++ b/internal/sdk/models/shared/sourcehibobcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceHibobCreateRequest struct { + Configuration SourceHibob `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 *SourceHibobCreateRequest) GetConfiguration() SourceHibob { + if o == nil { + return SourceHibob{} + } + return o.Configuration +} + +func (o *SourceHibobCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceHibobCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceHibobCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceHibobCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcehibobputrequest.go b/internal/sdk/models/shared/sourcehibobputrequest.go new file mode 100644 index 000000000..efc593ce1 --- /dev/null +++ b/internal/sdk/models/shared/sourcehibobputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceHibobPutRequest struct { + Configuration SourceHibobUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceHibobPutRequest) GetConfiguration() SourceHibobUpdate { + if o == nil { + return SourceHibobUpdate{} + } + return o.Configuration +} + +func (o *SourceHibobPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceHibobPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcehibobupdate.go b/internal/sdk/models/shared/sourcehibobupdate.go new file mode 100644 index 000000000..fe5a7ae42 --- /dev/null +++ b/internal/sdk/models/shared/sourcehibobupdate.go @@ -0,0 +1,31 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceHibobUpdate struct { + // Toggle true if this instance is a HiBob sandbox + IsSandbox bool `json:"is_sandbox"` + Password *string `json:"password,omitempty"` + Username string `json:"username"` +} + +func (o *SourceHibobUpdate) GetIsSandbox() bool { + if o == nil { + return false + } + return o.IsSandbox +} + +func (o *SourceHibobUpdate) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourceHibobUpdate) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourcehighlevel.go b/internal/sdk/models/shared/sourcehighlevel.go new file mode 100644 index 000000000..72e85491e --- /dev/null +++ b/internal/sdk/models/shared/sourcehighlevel.go @@ -0,0 +1,76 @@ +// 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" + "time" +) + +type HighLevel string + +const ( + HighLevelHighLevel HighLevel = "high-level" +) + +func (e HighLevel) ToPointer() *HighLevel { + return &e +} +func (e *HighLevel) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "high-level": + *e = HighLevel(v) + return nil + default: + return fmt.Errorf("invalid value for HighLevel: %v", v) + } +} + +type SourceHighLevel struct { + APIKey string `json:"api_key"` + LocationID string `json:"location_id"` + sourceType HighLevel `const:"high-level" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceHighLevel) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceHighLevel) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceHighLevel) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceHighLevel) GetLocationID() string { + if o == nil { + return "" + } + return o.LocationID +} + +func (o *SourceHighLevel) GetSourceType() HighLevel { + return HighLevelHighLevel +} + +func (o *SourceHighLevel) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcehighlevelcreaterequest.go b/internal/sdk/models/shared/sourcehighlevelcreaterequest.go new file mode 100644 index 000000000..cd029767c --- /dev/null +++ b/internal/sdk/models/shared/sourcehighlevelcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceHighLevelCreateRequest struct { + Configuration SourceHighLevel `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 *SourceHighLevelCreateRequest) GetConfiguration() SourceHighLevel { + if o == nil { + return SourceHighLevel{} + } + return o.Configuration +} + +func (o *SourceHighLevelCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceHighLevelCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceHighLevelCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceHighLevelCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcehighlevelputrequest.go b/internal/sdk/models/shared/sourcehighlevelputrequest.go new file mode 100644 index 000000000..7fccf1fcf --- /dev/null +++ b/internal/sdk/models/shared/sourcehighlevelputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceHighLevelPutRequest struct { + Configuration SourceHighLevelUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceHighLevelPutRequest) GetConfiguration() SourceHighLevelUpdate { + if o == nil { + return SourceHighLevelUpdate{} + } + return o.Configuration +} + +func (o *SourceHighLevelPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceHighLevelPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcehighlevelupdate.go b/internal/sdk/models/shared/sourcehighlevelupdate.go new file mode 100644 index 000000000..01f25d23a --- /dev/null +++ b/internal/sdk/models/shared/sourcehighlevelupdate.go @@ -0,0 +1,46 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" +) + +type SourceHighLevelUpdate struct { + APIKey string `json:"api_key"` + LocationID string `json:"location_id"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceHighLevelUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceHighLevelUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceHighLevelUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceHighLevelUpdate) GetLocationID() string { + if o == nil { + return "" + } + return o.LocationID +} + +func (o *SourceHighLevelUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceklaviyo.go b/internal/sdk/models/shared/sourceklaviyo.go index e87d15839..6751c2273 100644 --- a/internal/sdk/models/shared/sourceklaviyo.go +++ b/internal/sdk/models/shared/sourceklaviyo.go @@ -34,8 +34,10 @@ func (e *Klaviyo) UnmarshalJSON(data []byte) error { type SourceKlaviyo struct { // Klaviyo API Key. See our docs if you need help finding this key. - APIKey string `json:"api_key"` - sourceType Klaviyo `const:"klaviyo" json:"sourceType"` + APIKey string `json:"api_key"` + // Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. + DisableFetchingPredictiveAnalytics *bool `json:"disable_fetching_predictive_analytics,omitempty"` + sourceType Klaviyo `const:"klaviyo" json:"sourceType"` // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This field is optional - if not provided, all data will be replicated. StartDate *time.Time `json:"start_date,omitempty"` } @@ -58,6 +60,13 @@ func (o *SourceKlaviyo) GetAPIKey() string { return o.APIKey } +func (o *SourceKlaviyo) GetDisableFetchingPredictiveAnalytics() *bool { + if o == nil { + return nil + } + return o.DisableFetchingPredictiveAnalytics +} + func (o *SourceKlaviyo) GetSourceType() Klaviyo { return KlaviyoKlaviyo } diff --git a/internal/sdk/models/shared/sourceklaviyoupdate.go b/internal/sdk/models/shared/sourceklaviyoupdate.go index f25b0d9fe..8d12f1922 100644 --- a/internal/sdk/models/shared/sourceklaviyoupdate.go +++ b/internal/sdk/models/shared/sourceklaviyoupdate.go @@ -10,6 +10,8 @@ import ( type SourceKlaviyoUpdate struct { // Klaviyo API Key. See our docs if you need help finding this key. APIKey string `json:"api_key"` + // Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. + DisableFetchingPredictiveAnalytics *bool `json:"disable_fetching_predictive_analytics,omitempty"` // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This field is optional - if not provided, all data will be replicated. StartDate *time.Time `json:"start_date,omitempty"` } @@ -32,6 +34,13 @@ func (o *SourceKlaviyoUpdate) GetAPIKey() string { return o.APIKey } +func (o *SourceKlaviyoUpdate) GetDisableFetchingPredictiveAnalytics() *bool { + if o == nil { + return nil + } + return o.DisableFetchingPredictiveAnalytics +} + func (o *SourceKlaviyoUpdate) GetStartDate() *time.Time { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourceleadfeeder.go b/internal/sdk/models/shared/sourceleadfeeder.go new file mode 100644 index 000000000..b7177ff3b --- /dev/null +++ b/internal/sdk/models/shared/sourceleadfeeder.go @@ -0,0 +1,68 @@ +// 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" + "time" +) + +type Leadfeeder string + +const ( + LeadfeederLeadfeeder Leadfeeder = "leadfeeder" +) + +func (e Leadfeeder) ToPointer() *Leadfeeder { + return &e +} +func (e *Leadfeeder) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "leadfeeder": + *e = Leadfeeder(v) + return nil + default: + return fmt.Errorf("invalid value for Leadfeeder: %v", v) + } +} + +type SourceLeadfeeder struct { + APIToken string `json:"api_token"` + sourceType Leadfeeder `const:"leadfeeder" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceLeadfeeder) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceLeadfeeder) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceLeadfeeder) GetAPIToken() string { + if o == nil { + return "" + } + return o.APIToken +} + +func (o *SourceLeadfeeder) GetSourceType() Leadfeeder { + return LeadfeederLeadfeeder +} + +func (o *SourceLeadfeeder) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceleadfeedercreaterequest.go b/internal/sdk/models/shared/sourceleadfeedercreaterequest.go new file mode 100644 index 000000000..0c7f8e445 --- /dev/null +++ b/internal/sdk/models/shared/sourceleadfeedercreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceLeadfeederCreateRequest struct { + Configuration SourceLeadfeeder `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 *SourceLeadfeederCreateRequest) GetConfiguration() SourceLeadfeeder { + if o == nil { + return SourceLeadfeeder{} + } + return o.Configuration +} + +func (o *SourceLeadfeederCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceLeadfeederCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceLeadfeederCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceLeadfeederCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceleadfeederputrequest.go b/internal/sdk/models/shared/sourceleadfeederputrequest.go new file mode 100644 index 000000000..796586724 --- /dev/null +++ b/internal/sdk/models/shared/sourceleadfeederputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceLeadfeederPutRequest struct { + Configuration SourceLeadfeederUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceLeadfeederPutRequest) GetConfiguration() SourceLeadfeederUpdate { + if o == nil { + return SourceLeadfeederUpdate{} + } + return o.Configuration +} + +func (o *SourceLeadfeederPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceLeadfeederPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceleadfeederupdate.go b/internal/sdk/models/shared/sourceleadfeederupdate.go new file mode 100644 index 000000000..e731fe55a --- /dev/null +++ b/internal/sdk/models/shared/sourceleadfeederupdate.go @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" +) + +type SourceLeadfeederUpdate struct { + APIToken string `json:"api_token"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceLeadfeederUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceLeadfeederUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceLeadfeederUpdate) GetAPIToken() string { + if o == nil { + return "" + } + return o.APIToken +} + +func (o *SourceLeadfeederUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcelooker.go b/internal/sdk/models/shared/sourcelooker.go new file mode 100644 index 000000000..de0487c74 --- /dev/null +++ b/internal/sdk/models/shared/sourcelooker.go @@ -0,0 +1,87 @@ +// 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 Looker string + +const ( + LookerLooker Looker = "looker" +) + +func (e Looker) ToPointer() *Looker { + return &e +} +func (e *Looker) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "looker": + *e = Looker(v) + return nil + default: + return fmt.Errorf("invalid value for Looker: %v", v) + } +} + +type SourceLooker struct { + // The Client ID is first part of an API3 key that is specific to each Looker user. See the docs for more information on how to generate this key. + ClientID string `json:"client_id"` + // The Client Secret is second part of an API3 key. + ClientSecret string `json:"client_secret"` + // Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address + Domain string `json:"domain"` + // The IDs of any Looks to run + RunLookIds []string `json:"run_look_ids,omitempty"` + sourceType Looker `const:"looker" json:"sourceType"` +} + +func (s SourceLooker) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceLooker) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceLooker) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *SourceLooker) GetClientSecret() string { + if o == nil { + return "" + } + return o.ClientSecret +} + +func (o *SourceLooker) GetDomain() string { + if o == nil { + return "" + } + return o.Domain +} + +func (o *SourceLooker) GetRunLookIds() []string { + if o == nil { + return nil + } + return o.RunLookIds +} + +func (o *SourceLooker) GetSourceType() Looker { + return LookerLooker +} diff --git a/internal/sdk/models/shared/sourcelookercreaterequest.go b/internal/sdk/models/shared/sourcelookercreaterequest.go new file mode 100644 index 000000000..17596f5f0 --- /dev/null +++ b/internal/sdk/models/shared/sourcelookercreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceLookerCreateRequest struct { + Configuration SourceLooker `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 *SourceLookerCreateRequest) GetConfiguration() SourceLooker { + if o == nil { + return SourceLooker{} + } + return o.Configuration +} + +func (o *SourceLookerCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceLookerCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceLookerCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceLookerCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcelookerputrequest.go b/internal/sdk/models/shared/sourcelookerputrequest.go new file mode 100644 index 000000000..1edd59068 --- /dev/null +++ b/internal/sdk/models/shared/sourcelookerputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceLookerPutRequest struct { + Configuration SourceLookerUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceLookerPutRequest) GetConfiguration() SourceLookerUpdate { + if o == nil { + return SourceLookerUpdate{} + } + return o.Configuration +} + +func (o *SourceLookerPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceLookerPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcelookerupdate.go b/internal/sdk/models/shared/sourcelookerupdate.go new file mode 100644 index 000000000..9e207eb1c --- /dev/null +++ b/internal/sdk/models/shared/sourcelookerupdate.go @@ -0,0 +1,42 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceLookerUpdate struct { + // The Client ID is first part of an API3 key that is specific to each Looker user. See the docs for more information on how to generate this key. + ClientID string `json:"client_id"` + // The Client Secret is second part of an API3 key. + ClientSecret string `json:"client_secret"` + // Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address + Domain string `json:"domain"` + // The IDs of any Looks to run + RunLookIds []string `json:"run_look_ids,omitempty"` +} + +func (o *SourceLookerUpdate) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *SourceLookerUpdate) GetClientSecret() string { + if o == nil { + return "" + } + return o.ClientSecret +} + +func (o *SourceLookerUpdate) GetDomain() string { + if o == nil { + return "" + } + return o.Domain +} + +func (o *SourceLookerUpdate) GetRunLookIds() []string { + if o == nil { + return nil + } + return o.RunLookIds +} diff --git a/internal/sdk/models/shared/sourceluma.go b/internal/sdk/models/shared/sourceluma.go new file mode 100644 index 000000000..b89c70fb7 --- /dev/null +++ b/internal/sdk/models/shared/sourceluma.go @@ -0,0 +1,60 @@ +// 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 Luma string + +const ( + LumaLuma Luma = "luma" +) + +func (e Luma) ToPointer() *Luma { + return &e +} +func (e *Luma) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "luma": + *e = Luma(v) + return nil + default: + return fmt.Errorf("invalid value for Luma: %v", v) + } +} + +type SourceLuma struct { + // Get your API key on lu.ma Calendars dashboard → Settings. + APIKey string `json:"api_key"` + sourceType Luma `const:"luma" json:"sourceType"` +} + +func (s SourceLuma) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceLuma) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceLuma) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceLuma) GetSourceType() Luma { + return LumaLuma +} diff --git a/internal/sdk/models/shared/sourcelumacreaterequest.go b/internal/sdk/models/shared/sourcelumacreaterequest.go new file mode 100644 index 000000000..77afbf90c --- /dev/null +++ b/internal/sdk/models/shared/sourcelumacreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceLumaCreateRequest struct { + Configuration SourceLuma `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 *SourceLumaCreateRequest) GetConfiguration() SourceLuma { + if o == nil { + return SourceLuma{} + } + return o.Configuration +} + +func (o *SourceLumaCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceLumaCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceLumaCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceLumaCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcelumaputrequest.go b/internal/sdk/models/shared/sourcelumaputrequest.go new file mode 100644 index 000000000..7868d4e93 --- /dev/null +++ b/internal/sdk/models/shared/sourcelumaputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceLumaPutRequest struct { + Configuration SourceLumaUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceLumaPutRequest) GetConfiguration() SourceLumaUpdate { + if o == nil { + return SourceLumaUpdate{} + } + return o.Configuration +} + +func (o *SourceLumaPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceLumaPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcelumaupdate.go b/internal/sdk/models/shared/sourcelumaupdate.go new file mode 100644 index 000000000..82853ab78 --- /dev/null +++ b/internal/sdk/models/shared/sourcelumaupdate.go @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceLumaUpdate struct { + // Get your API key on lu.ma Calendars dashboard → Settings. + APIKey string `json:"api_key"` +} + +func (o *SourceLumaUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} diff --git a/internal/sdk/models/shared/sourcemetabase.go b/internal/sdk/models/shared/sourcemetabase.go index 4f57dfca2..a77c673e1 100644 --- a/internal/sdk/models/shared/sourcemetabase.go +++ b/internal/sdk/models/shared/sourcemetabase.go @@ -43,7 +43,7 @@ type SourceMetabase struct { // Note that by default, sessions are good for 14 days and needs to be regenerated. SessionToken *string `json:"session_token,omitempty"` sourceType Metabase `const:"metabase" json:"sourceType"` - Username *string `json:"username,omitempty"` + Username string `json:"username"` } func (s SourceMetabase) MarshalJSON() ([]byte, error) { @@ -82,9 +82,9 @@ func (o *SourceMetabase) GetSourceType() Metabase { return MetabaseMetabase } -func (o *SourceMetabase) GetUsername() *string { +func (o *SourceMetabase) GetUsername() string { if o == nil { - return nil + return "" } return o.Username } diff --git a/internal/sdk/models/shared/sourcemetabaseupdate.go b/internal/sdk/models/shared/sourcemetabaseupdate.go index 596366d81..ae3238ce9 100644 --- a/internal/sdk/models/shared/sourcemetabaseupdate.go +++ b/internal/sdk/models/shared/sourcemetabaseupdate.go @@ -13,7 +13,7 @@ type SourceMetabaseUpdate struct { // ``` Then copy the value of the `id` field returned by a successful call to that API. // Note that by default, sessions are good for 14 days and needs to be regenerated. SessionToken *string `json:"session_token,omitempty"` - Username *string `json:"username,omitempty"` + Username string `json:"username"` } func (o *SourceMetabaseUpdate) GetInstanceAPIURL() string { @@ -37,9 +37,9 @@ func (o *SourceMetabaseUpdate) GetSessionToken() *string { return o.SessionToken } -func (o *SourceMetabaseUpdate) GetUsername() *string { +func (o *SourceMetabaseUpdate) GetUsername() string { if o == nil { - return nil + return "" } return o.Username } diff --git a/internal/sdk/models/shared/sourcemicrosoftonedrive.go b/internal/sdk/models/shared/sourcemicrosoftonedrive.go index d8b39b7fa..c54d99a0a 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 } } -// SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental struct { +// SourceMicrosoftOnedriveUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceMicrosoftOnedriveUnstructuredDocumentFormat struct { filetype *SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceMicrosoftOnedriveProcessing `json:"processing,omitempty"` @@ -439,36 +439,36 @@ type SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental struct { Strategy *SourceMicrosoftOnedriveParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { +func (s SourceMicrosoftOnedriveUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { +func (s *SourceMicrosoftOnedriveUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) GetFiletype() *SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype { +func (o *SourceMicrosoftOnedriveUnstructuredDocumentFormat) GetFiletype() *SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype { return SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) GetProcessing() *SourceMicrosoftOnedriveProcessing { +func (o *SourceMicrosoftOnedriveUnstructuredDocumentFormat) GetProcessing() *SourceMicrosoftOnedriveProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { +func (o *SourceMicrosoftOnedriveUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) GetStrategy() *SourceMicrosoftOnedriveParsingStrategy { +func (o *SourceMicrosoftOnedriveUnstructuredDocumentFormat) 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" - SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_Document File Type Format (Experimental)" + 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" ) // 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 - SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental + SourceMicrosoftOnedriveAvroFormat *SourceMicrosoftOnedriveAvroFormat + SourceMicrosoftOnedriveCSVFormat *SourceMicrosoftOnedriveCSVFormat + SourceMicrosoftOnedriveJsonlFormat *SourceMicrosoftOnedriveJsonlFormat + SourceMicrosoftOnedriveParquetFormat *SourceMicrosoftOnedriveParquetFormat + SourceMicrosoftOnedriveUnstructuredDocumentFormat *SourceMicrosoftOnedriveUnstructuredDocumentFormat Type SourceMicrosoftOnedriveFormatType } @@ -1056,11 +1056,11 @@ func CreateSourceMicrosoftOnedriveFormatSourceMicrosoftOnedriveParquetFormat(sou } } -func CreateSourceMicrosoftOnedriveFormatSourceMicrosoftOnedriveDocumentFileTypeFormatExperimental(sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) SourceMicrosoftOnedriveFormat { - typ := SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveDocumentFileTypeFormatExperimental +func CreateSourceMicrosoftOnedriveFormatSourceMicrosoftOnedriveUnstructuredDocumentFormat(sourceMicrosoftOnedriveUnstructuredDocumentFormat SourceMicrosoftOnedriveUnstructuredDocumentFormat) SourceMicrosoftOnedriveFormat { + typ := SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveUnstructuredDocumentFormat return SourceMicrosoftOnedriveFormat{ - SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental: &sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental, + SourceMicrosoftOnedriveUnstructuredDocumentFormat: &sourceMicrosoftOnedriveUnstructuredDocumentFormat, Type: typ, } } @@ -1088,10 +1088,10 @@ func (u *SourceMicrosoftOnedriveFormat) UnmarshalJSON(data []byte) error { return nil } - var sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental = SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental{} - if err := utils.UnmarshalJSON(data, &sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental, "", true, true); err == nil { - u.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental = &sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental - u.Type = SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveDocumentFileTypeFormatExperimental + var sourceMicrosoftOnedriveUnstructuredDocumentFormat SourceMicrosoftOnedriveUnstructuredDocumentFormat = SourceMicrosoftOnedriveUnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftOnedriveUnstructuredDocumentFormat, "", true, true); err == nil { + u.SourceMicrosoftOnedriveUnstructuredDocumentFormat = &sourceMicrosoftOnedriveUnstructuredDocumentFormat + u.Type = SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveUnstructuredDocumentFormat return nil } @@ -1122,8 +1122,8 @@ func (u SourceMicrosoftOnedriveFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceMicrosoftOnedriveParquetFormat, "", true) } - if u.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental != nil { - return utils.MarshalJSON(u.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental, "", true) + if u.SourceMicrosoftOnedriveUnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.SourceMicrosoftOnedriveUnstructuredDocumentFormat, "", 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 ae339db49..47842563e 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 } } -// SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental struct { +// SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat struct { filetype *SourceMicrosoftOnedriveUpdateSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceMicrosoftOnedriveUpdateProcessing `json:"processing,omitempty"` @@ -416,36 +416,36 @@ type SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental struct { Strategy *SourceMicrosoftOnedriveUpdateParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { +func (s SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { +func (s *SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) GetFiletype() *SourceMicrosoftOnedriveUpdateSchemasStreamsFormatFormatFiletype { +func (o *SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat) GetFiletype() *SourceMicrosoftOnedriveUpdateSchemasStreamsFormatFormatFiletype { return SourceMicrosoftOnedriveUpdateSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) GetProcessing() *SourceMicrosoftOnedriveUpdateProcessing { +func (o *SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat) GetProcessing() *SourceMicrosoftOnedriveUpdateProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { +func (o *SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) GetStrategy() *SourceMicrosoftOnedriveUpdateParsingStrategy { +func (o *SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat) 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" - SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_Document File Type Format (Experimental)" + 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" + SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_Unstructured Document Format" ) // 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 - SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental + SourceMicrosoftOnedriveUpdateAvroFormat *SourceMicrosoftOnedriveUpdateAvroFormat + SourceMicrosoftOnedriveUpdateCSVFormat *SourceMicrosoftOnedriveUpdateCSVFormat + SourceMicrosoftOnedriveUpdateJsonlFormat *SourceMicrosoftOnedriveUpdateJsonlFormat + SourceMicrosoftOnedriveUpdateParquetFormat *SourceMicrosoftOnedriveUpdateParquetFormat + SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat *SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat Type SourceMicrosoftOnedriveUpdateFormatType } @@ -1033,11 +1033,11 @@ func CreateSourceMicrosoftOnedriveUpdateFormatSourceMicrosoftOnedriveUpdateParqu } } -func CreateSourceMicrosoftOnedriveUpdateFormatSourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental(sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) SourceMicrosoftOnedriveUpdateFormat { - typ := SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental +func CreateSourceMicrosoftOnedriveUpdateFormatSourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat(sourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat) SourceMicrosoftOnedriveUpdateFormat { + typ := SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat return SourceMicrosoftOnedriveUpdateFormat{ - SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental: &sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental, + SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat: &sourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat, Type: typ, } } @@ -1065,10 +1065,10 @@ func (u *SourceMicrosoftOnedriveUpdateFormat) UnmarshalJSON(data []byte) error { return nil } - var sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental = SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental{} - if err := utils.UnmarshalJSON(data, &sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental, "", true, true); err == nil { - u.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental = &sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental - u.Type = SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental + var sourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat = SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat, "", true, true); err == nil { + u.SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat = &sourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat + u.Type = SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat return nil } @@ -1099,8 +1099,8 @@ func (u SourceMicrosoftOnedriveUpdateFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceMicrosoftOnedriveUpdateParquetFormat, "", true) } - if u.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental != nil { - return utils.MarshalJSON(u.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental, "", true) + if u.SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.SourceMicrosoftOnedriveUpdateUnstructuredDocumentFormat, "", 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 6d871c9f1..ea314e7a6 100644 --- a/internal/sdk/models/shared/sourcemicrosoftsharepoint.go +++ b/internal/sdk/models/shared/sourcemicrosoftsharepoint.go @@ -287,6 +287,48 @@ func (e *MicrosoftSharepoint) UnmarshalJSON(data []byte) error { } } +type SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype string + +const ( + SourceMicrosoftSharepointSchemasStreamsFormatFormat6FiletypeExcel SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype = "excel" +) + +func (e SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype) ToPointer() *SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype { + return &e +} +func (e *SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "excel": + *e = SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype: %v", v) + } +} + +type SourceMicrosoftSharepointExcelFormat struct { + filetype *SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype `const:"excel" json:"filetype"` +} + +func (s SourceMicrosoftSharepointExcelFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceMicrosoftSharepointExcelFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceMicrosoftSharepointExcelFormat) GetFiletype() *SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype { + return SourceMicrosoftSharepointSchemasStreamsFormatFormat6FiletypeExcel.ToPointer() +} + type SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype string const ( @@ -428,8 +470,8 @@ func (e *SourceMicrosoftSharepointParsingStrategy) UnmarshalJSON(data []byte) er } } -// SourceMicrosoftSharepointDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceMicrosoftSharepointDocumentFileTypeFormatExperimental struct { +// SourceMicrosoftSharepointUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceMicrosoftSharepointUnstructuredDocumentFormat struct { filetype *SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceMicrosoftSharepointProcessing `json:"processing,omitempty"` @@ -439,36 +481,36 @@ type SourceMicrosoftSharepointDocumentFileTypeFormatExperimental struct { Strategy *SourceMicrosoftSharepointParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { +func (s SourceMicrosoftSharepointUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { +func (s *SourceMicrosoftSharepointUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) GetFiletype() *SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype { +func (o *SourceMicrosoftSharepointUnstructuredDocumentFormat) GetFiletype() *SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype { return SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) GetProcessing() *SourceMicrosoftSharepointProcessing { +func (o *SourceMicrosoftSharepointUnstructuredDocumentFormat) GetProcessing() *SourceMicrosoftSharepointProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { +func (o *SourceMicrosoftSharepointUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) GetStrategy() *SourceMicrosoftSharepointParsingStrategy { +func (o *SourceMicrosoftSharepointUnstructuredDocumentFormat) GetStrategy() *SourceMicrosoftSharepointParsingStrategy { if o == nil { return nil } @@ -1002,20 +1044,22 @@ 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" - SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointDocumentFileTypeFormatExperimental SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Document File Type Format (Experimental)" + 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" + SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointExcelFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Excel Format" ) // 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 - SourceMicrosoftSharepointDocumentFileTypeFormatExperimental *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental + SourceMicrosoftSharepointAvroFormat *SourceMicrosoftSharepointAvroFormat + SourceMicrosoftSharepointCSVFormat *SourceMicrosoftSharepointCSVFormat + SourceMicrosoftSharepointJsonlFormat *SourceMicrosoftSharepointJsonlFormat + SourceMicrosoftSharepointParquetFormat *SourceMicrosoftSharepointParquetFormat + SourceMicrosoftSharepointUnstructuredDocumentFormat *SourceMicrosoftSharepointUnstructuredDocumentFormat + SourceMicrosoftSharepointExcelFormat *SourceMicrosoftSharepointExcelFormat Type SourceMicrosoftSharepointFormatType } @@ -1056,15 +1100,24 @@ func CreateSourceMicrosoftSharepointFormatSourceMicrosoftSharepointParquetFormat } } -func CreateSourceMicrosoftSharepointFormatSourceMicrosoftSharepointDocumentFileTypeFormatExperimental(sourceMicrosoftSharepointDocumentFileTypeFormatExperimental SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) SourceMicrosoftSharepointFormat { - typ := SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointDocumentFileTypeFormatExperimental +func CreateSourceMicrosoftSharepointFormatSourceMicrosoftSharepointUnstructuredDocumentFormat(sourceMicrosoftSharepointUnstructuredDocumentFormat SourceMicrosoftSharepointUnstructuredDocumentFormat) SourceMicrosoftSharepointFormat { + typ := SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointUnstructuredDocumentFormat return SourceMicrosoftSharepointFormat{ - SourceMicrosoftSharepointDocumentFileTypeFormatExperimental: &sourceMicrosoftSharepointDocumentFileTypeFormatExperimental, + SourceMicrosoftSharepointUnstructuredDocumentFormat: &sourceMicrosoftSharepointUnstructuredDocumentFormat, Type: typ, } } +func CreateSourceMicrosoftSharepointFormatSourceMicrosoftSharepointExcelFormat(sourceMicrosoftSharepointExcelFormat SourceMicrosoftSharepointExcelFormat) SourceMicrosoftSharepointFormat { + typ := SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointExcelFormat + + return SourceMicrosoftSharepointFormat{ + SourceMicrosoftSharepointExcelFormat: &sourceMicrosoftSharepointExcelFormat, + Type: typ, + } +} + func (u *SourceMicrosoftSharepointFormat) UnmarshalJSON(data []byte) error { var sourceMicrosoftSharepointJsonlFormat SourceMicrosoftSharepointJsonlFormat = SourceMicrosoftSharepointJsonlFormat{} @@ -1074,6 +1127,13 @@ func (u *SourceMicrosoftSharepointFormat) UnmarshalJSON(data []byte) error { return nil } + var sourceMicrosoftSharepointExcelFormat SourceMicrosoftSharepointExcelFormat = SourceMicrosoftSharepointExcelFormat{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointExcelFormat, "", true, true); err == nil { + u.SourceMicrosoftSharepointExcelFormat = &sourceMicrosoftSharepointExcelFormat + u.Type = SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointExcelFormat + return nil + } + var sourceMicrosoftSharepointAvroFormat SourceMicrosoftSharepointAvroFormat = SourceMicrosoftSharepointAvroFormat{} if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointAvroFormat, "", true, true); err == nil { u.SourceMicrosoftSharepointAvroFormat = &sourceMicrosoftSharepointAvroFormat @@ -1088,10 +1148,10 @@ func (u *SourceMicrosoftSharepointFormat) UnmarshalJSON(data []byte) error { return nil } - var sourceMicrosoftSharepointDocumentFileTypeFormatExperimental SourceMicrosoftSharepointDocumentFileTypeFormatExperimental = SourceMicrosoftSharepointDocumentFileTypeFormatExperimental{} - if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointDocumentFileTypeFormatExperimental, "", true, true); err == nil { - u.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental = &sourceMicrosoftSharepointDocumentFileTypeFormatExperimental - u.Type = SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointDocumentFileTypeFormatExperimental + var sourceMicrosoftSharepointUnstructuredDocumentFormat SourceMicrosoftSharepointUnstructuredDocumentFormat = SourceMicrosoftSharepointUnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointUnstructuredDocumentFormat, "", true, true); err == nil { + u.SourceMicrosoftSharepointUnstructuredDocumentFormat = &sourceMicrosoftSharepointUnstructuredDocumentFormat + u.Type = SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointUnstructuredDocumentFormat return nil } @@ -1122,8 +1182,12 @@ func (u SourceMicrosoftSharepointFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceMicrosoftSharepointParquetFormat, "", true) } - if u.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental != nil { - return utils.MarshalJSON(u.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental, "", true) + if u.SourceMicrosoftSharepointUnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.SourceMicrosoftSharepointUnstructuredDocumentFormat, "", true) + } + + if u.SourceMicrosoftSharepointExcelFormat != nil { + return utils.MarshalJSON(u.SourceMicrosoftSharepointExcelFormat, "", true) } return nil, errors.New("could not marshal union type SourceMicrosoftSharepointFormat: all fields are null") @@ -1172,6 +1236,8 @@ type SourceMicrosoftSharepointFileBasedStreamConfig struct { Name string `json:"name"` // The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. PrimaryKey *string `json:"primary_key,omitempty"` + // The number of resent files which will be used to discover the schema for this stream. + RecentNFilesToReadForSchemaDiscovery *int64 `json:"recent_n_files_to_read_for_schema_discovery,omitempty"` // When enabled, syncs will not validate or structure records against the stream's schema. Schemaless *bool `default:"false" json:"schemaless"` // The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. @@ -1231,6 +1297,13 @@ func (o *SourceMicrosoftSharepointFileBasedStreamConfig) GetPrimaryKey() *string return o.PrimaryKey } +func (o *SourceMicrosoftSharepointFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { + if o == nil { + return nil + } + return o.RecentNFilesToReadForSchemaDiscovery +} + func (o *SourceMicrosoftSharepointFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go b/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go index 739c1729b..a43765e48 100644 --- a/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go +++ b/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go @@ -264,6 +264,48 @@ func (e *SourceMicrosoftSharepointUpdateSearchScope) UnmarshalJSON(data []byte) } } +type SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6Filetype string + +const ( + SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6FiletypeExcel SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6Filetype = "excel" +) + +func (e SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6Filetype) ToPointer() *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6Filetype { + return &e +} +func (e *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6Filetype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "excel": + *e = SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6Filetype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6Filetype: %v", v) + } +} + +type SourceMicrosoftSharepointUpdateExcelFormat struct { + filetype *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6Filetype `const:"excel" json:"filetype"` +} + +func (s SourceMicrosoftSharepointUpdateExcelFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceMicrosoftSharepointUpdateExcelFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceMicrosoftSharepointUpdateExcelFormat) GetFiletype() *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6Filetype { + return SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormat6FiletypeExcel.ToPointer() +} + type SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormatFiletype string const ( @@ -405,8 +447,8 @@ func (e *SourceMicrosoftSharepointUpdateParsingStrategy) UnmarshalJSON(data []by } } -// SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental struct { +// SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat struct { filetype *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceMicrosoftSharepointUpdateProcessing `json:"processing,omitempty"` @@ -416,36 +458,36 @@ type SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental struct { Strategy *SourceMicrosoftSharepointUpdateParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { +func (s SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { +func (s *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) GetFiletype() *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormatFiletype { +func (o *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) GetFiletype() *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormatFiletype { return SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) GetProcessing() *SourceMicrosoftSharepointUpdateProcessing { +func (o *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) GetProcessing() *SourceMicrosoftSharepointUpdateProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { +func (o *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) GetStrategy() *SourceMicrosoftSharepointUpdateParsingStrategy { +func (o *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) GetStrategy() *SourceMicrosoftSharepointUpdateParsingStrategy { if o == nil { return nil } @@ -979,20 +1021,22 @@ 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" - SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Document File Type Format (Experimental)" + 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" + SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateExcelFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Excel Format" ) // 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 - SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental + SourceMicrosoftSharepointUpdateAvroFormat *SourceMicrosoftSharepointUpdateAvroFormat + SourceMicrosoftSharepointUpdateCSVFormat *SourceMicrosoftSharepointUpdateCSVFormat + SourceMicrosoftSharepointUpdateJsonlFormat *SourceMicrosoftSharepointUpdateJsonlFormat + SourceMicrosoftSharepointUpdateParquetFormat *SourceMicrosoftSharepointUpdateParquetFormat + SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat + SourceMicrosoftSharepointUpdateExcelFormat *SourceMicrosoftSharepointUpdateExcelFormat Type SourceMicrosoftSharepointUpdateFormatType } @@ -1033,11 +1077,20 @@ func CreateSourceMicrosoftSharepointUpdateFormatSourceMicrosoftSharepointUpdateP } } -func CreateSourceMicrosoftSharepointUpdateFormatSourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental(sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) SourceMicrosoftSharepointUpdateFormat { - typ := SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental +func CreateSourceMicrosoftSharepointUpdateFormatSourceMicrosoftSharepointUpdateUnstructuredDocumentFormat(sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) SourceMicrosoftSharepointUpdateFormat { + typ := SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateUnstructuredDocumentFormat + + return SourceMicrosoftSharepointUpdateFormat{ + SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat: &sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat, + Type: typ, + } +} + +func CreateSourceMicrosoftSharepointUpdateFormatSourceMicrosoftSharepointUpdateExcelFormat(sourceMicrosoftSharepointUpdateExcelFormat SourceMicrosoftSharepointUpdateExcelFormat) SourceMicrosoftSharepointUpdateFormat { + typ := SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateExcelFormat return SourceMicrosoftSharepointUpdateFormat{ - SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental: &sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental, + SourceMicrosoftSharepointUpdateExcelFormat: &sourceMicrosoftSharepointUpdateExcelFormat, Type: typ, } } @@ -1051,6 +1104,13 @@ func (u *SourceMicrosoftSharepointUpdateFormat) UnmarshalJSON(data []byte) error return nil } + var sourceMicrosoftSharepointUpdateExcelFormat SourceMicrosoftSharepointUpdateExcelFormat = SourceMicrosoftSharepointUpdateExcelFormat{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointUpdateExcelFormat, "", true, true); err == nil { + u.SourceMicrosoftSharepointUpdateExcelFormat = &sourceMicrosoftSharepointUpdateExcelFormat + u.Type = SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateExcelFormat + return nil + } + var sourceMicrosoftSharepointUpdateAvroFormat SourceMicrosoftSharepointUpdateAvroFormat = SourceMicrosoftSharepointUpdateAvroFormat{} if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointUpdateAvroFormat, "", true, true); err == nil { u.SourceMicrosoftSharepointUpdateAvroFormat = &sourceMicrosoftSharepointUpdateAvroFormat @@ -1065,10 +1125,10 @@ func (u *SourceMicrosoftSharepointUpdateFormat) UnmarshalJSON(data []byte) error return nil } - var sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental = SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental{} - if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental, "", true, true); err == nil { - u.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental = &sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental - u.Type = SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental + var sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat = SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat, "", true, true); err == nil { + u.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat = &sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat + u.Type = SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateUnstructuredDocumentFormat return nil } @@ -1099,8 +1159,12 @@ func (u SourceMicrosoftSharepointUpdateFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceMicrosoftSharepointUpdateParquetFormat, "", true) } - if u.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental != nil { - return utils.MarshalJSON(u.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental, "", true) + if u.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat, "", true) + } + + if u.SourceMicrosoftSharepointUpdateExcelFormat != nil { + return utils.MarshalJSON(u.SourceMicrosoftSharepointUpdateExcelFormat, "", true) } return nil, errors.New("could not marshal union type SourceMicrosoftSharepointUpdateFormat: all fields are null") @@ -1149,6 +1213,8 @@ type SourceMicrosoftSharepointUpdateFileBasedStreamConfig struct { Name string `json:"name"` // The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. PrimaryKey *string `json:"primary_key,omitempty"` + // The number of resent files which will be used to discover the schema for this stream. + RecentNFilesToReadForSchemaDiscovery *int64 `json:"recent_n_files_to_read_for_schema_discovery,omitempty"` // When enabled, syncs will not validate or structure records against the stream's schema. Schemaless *bool `default:"false" json:"schemaless"` // The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. @@ -1208,6 +1274,13 @@ func (o *SourceMicrosoftSharepointUpdateFileBasedStreamConfig) GetPrimaryKey() * return o.PrimaryKey } +func (o *SourceMicrosoftSharepointUpdateFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { + if o == nil { + return nil + } + return o.RecentNFilesToReadForSchemaDiscovery +} + func (o *SourceMicrosoftSharepointUpdateFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemixpanel.go b/internal/sdk/models/shared/sourcemixpanel.go index a76962ba1..198f0dfe0 100644 --- a/internal/sdk/models/shared/sourcemixpanel.go +++ b/internal/sdk/models/shared/sourcemixpanel.go @@ -253,6 +253,8 @@ type SourceMixpanel struct { DateWindowSize *int64 `default:"30" json:"date_window_size"` // The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date EndDate *time.Time `json:"end_date,omitempty"` + // The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. + PageSize *int64 `default:"1000" json:"page_size"` // Time zone in which integer date times are stored. The project timezone may be found in the project settings in the Mixpanel console. ProjectTimezone *string `default:"US/Pacific" json:"project_timezone"` // The region of mixpanel domain instance either US or EU. @@ -303,6 +305,13 @@ func (o *SourceMixpanel) GetEndDate() *time.Time { return o.EndDate } +func (o *SourceMixpanel) GetPageSize() *int64 { + if o == nil { + return nil + } + return o.PageSize +} + func (o *SourceMixpanel) GetProjectTimezone() *string { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemixpanelupdate.go b/internal/sdk/models/shared/sourcemixpanelupdate.go index f43a295e0..10bb29f9d 100644 --- a/internal/sdk/models/shared/sourcemixpanelupdate.go +++ b/internal/sdk/models/shared/sourcemixpanelupdate.go @@ -230,6 +230,8 @@ type SourceMixpanelUpdate struct { DateWindowSize *int64 `default:"30" json:"date_window_size"` // The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date EndDate *time.Time `json:"end_date,omitempty"` + // The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. + PageSize *int64 `default:"1000" json:"page_size"` // Time zone in which integer date times are stored. The project timezone may be found in the project settings in the Mixpanel console. ProjectTimezone *string `default:"US/Pacific" json:"project_timezone"` // The region of mixpanel domain instance either US or EU. @@ -279,6 +281,13 @@ func (o *SourceMixpanelUpdate) GetEndDate() *time.Time { return o.EndDate } +func (o *SourceMixpanelUpdate) GetPageSize() *int64 { + if o == nil { + return nil + } + return o.PageSize +} + func (o *SourceMixpanelUpdate) GetProjectTimezone() *string { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemongodbinternalpoc.go b/internal/sdk/models/shared/sourcemongodbinternalpoc.go deleted file mode 100644 index 76ff6ab8d..000000000 --- a/internal/sdk/models/shared/sourcemongodbinternalpoc.go +++ /dev/null @@ -1,96 +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 MongodbInternalPoc string - -const ( - MongodbInternalPocMongodbInternalPoc MongodbInternalPoc = "mongodb-internal-poc" -) - -func (e MongodbInternalPoc) ToPointer() *MongodbInternalPoc { - return &e -} -func (e *MongodbInternalPoc) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "mongodb-internal-poc": - *e = MongodbInternalPoc(v) - return nil - default: - return fmt.Errorf("invalid value for MongodbInternalPoc: %v", v) - } -} - -type SourceMongodbInternalPoc struct { - // The authentication source where the user information is stored. - AuthSource *string `default:"admin" json:"auth_source"` - // The connection string of the database that you want to replicate.. - ConnectionString *string `json:"connection_string,omitempty"` - // The password associated with this username. - Password *string `json:"password,omitempty"` - // The name of the replica set to be replicated. - ReplicaSet *string `json:"replica_set,omitempty"` - sourceType MongodbInternalPoc `const:"mongodb-internal-poc" json:"sourceType"` - // The username which is used to access the database. - User *string `json:"user,omitempty"` -} - -func (s SourceMongodbInternalPoc) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceMongodbInternalPoc) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *SourceMongodbInternalPoc) GetAuthSource() *string { - if o == nil { - return nil - } - return o.AuthSource -} - -func (o *SourceMongodbInternalPoc) GetConnectionString() *string { - if o == nil { - return nil - } - return o.ConnectionString -} - -func (o *SourceMongodbInternalPoc) GetPassword() *string { - if o == nil { - return nil - } - return o.Password -} - -func (o *SourceMongodbInternalPoc) GetReplicaSet() *string { - if o == nil { - return nil - } - return o.ReplicaSet -} - -func (o *SourceMongodbInternalPoc) GetSourceType() MongodbInternalPoc { - return MongodbInternalPocMongodbInternalPoc -} - -func (o *SourceMongodbInternalPoc) GetUser() *string { - if o == nil { - return nil - } - return o.User -} diff --git a/internal/sdk/models/shared/sourcemongodbinternalpocputrequest.go b/internal/sdk/models/shared/sourcemongodbinternalpocputrequest.go deleted file mode 100644 index daf4fd08b..000000000 --- a/internal/sdk/models/shared/sourcemongodbinternalpocputrequest.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -type SourceMongodbInternalPocPutRequest struct { - Configuration SourceMongodbInternalPocUpdate `json:"configuration"` - Name string `json:"name"` - WorkspaceID string `json:"workspaceId"` -} - -func (o *SourceMongodbInternalPocPutRequest) GetConfiguration() SourceMongodbInternalPocUpdate { - if o == nil { - return SourceMongodbInternalPocUpdate{} - } - return o.Configuration -} - -func (o *SourceMongodbInternalPocPutRequest) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *SourceMongodbInternalPocPutRequest) GetWorkspaceID() string { - if o == nil { - return "" - } - return o.WorkspaceID -} diff --git a/internal/sdk/models/shared/sourcemongodbinternalpocupdate.go b/internal/sdk/models/shared/sourcemongodbinternalpocupdate.go deleted file mode 100644 index 01f7eee85..000000000 --- a/internal/sdk/models/shared/sourcemongodbinternalpocupdate.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -import ( - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" -) - -type SourceMongodbInternalPocUpdate struct { - // The authentication source where the user information is stored. - AuthSource *string `default:"admin" json:"auth_source"` - // The connection string of the database that you want to replicate.. - ConnectionString *string `json:"connection_string,omitempty"` - // The password associated with this username. - Password *string `json:"password,omitempty"` - // The name of the replica set to be replicated. - ReplicaSet *string `json:"replica_set,omitempty"` - // The username which is used to access the database. - User *string `json:"user,omitempty"` -} - -func (s SourceMongodbInternalPocUpdate) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceMongodbInternalPocUpdate) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *SourceMongodbInternalPocUpdate) GetAuthSource() *string { - if o == nil { - return nil - } - return o.AuthSource -} - -func (o *SourceMongodbInternalPocUpdate) GetConnectionString() *string { - if o == nil { - return nil - } - return o.ConnectionString -} - -func (o *SourceMongodbInternalPocUpdate) GetPassword() *string { - if o == nil { - return nil - } - return o.Password -} - -func (o *SourceMongodbInternalPocUpdate) GetReplicaSet() *string { - if o == nil { - return nil - } - return o.ReplicaSet -} - -func (o *SourceMongodbInternalPocUpdate) GetUser() *string { - if o == nil { - return nil - } - return o.User -} diff --git a/internal/sdk/models/shared/sourcemongodbv2.go b/internal/sdk/models/shared/sourcemongodbv2.go index 61009db5b..971a0a227 100644 --- a/internal/sdk/models/shared/sourcemongodbv2.go +++ b/internal/sdk/models/shared/sourcemongodbv2.go @@ -365,6 +365,8 @@ type SourceMongodbV2 struct { DatabaseConfig SourceMongodbV2ClusterType `json:"database_config"` // The maximum number of documents to sample when attempting to discover the unique fields for a collection. DiscoverSampleSize *int64 `default:"10000" json:"discover_sample_size"` + // 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. 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. @@ -401,6 +403,13 @@ func (o *SourceMongodbV2) GetDiscoverSampleSize() *int64 { return o.DiscoverSampleSize } +func (o *SourceMongodbV2) GetInitialLoadTimeoutHours() *int64 { + if o == nil { + return nil + } + return o.InitialLoadTimeoutHours +} + func (o *SourceMongodbV2) GetInitialWaitingSeconds() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemongodbv2update.go b/internal/sdk/models/shared/sourcemongodbv2update.go index 24a0e5542..66c37b8d7 100644 --- a/internal/sdk/models/shared/sourcemongodbv2update.go +++ b/internal/sdk/models/shared/sourcemongodbv2update.go @@ -342,6 +342,8 @@ type SourceMongodbV2Update struct { DatabaseConfig ClusterType `json:"database_config"` // The maximum number of documents to sample when attempting to discover the unique fields for a collection. DiscoverSampleSize *int64 `default:"10000" json:"discover_sample_size"` + // 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. 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. @@ -377,6 +379,13 @@ func (o *SourceMongodbV2Update) GetDiscoverSampleSize() *int64 { return o.DiscoverSampleSize } +func (o *SourceMongodbV2Update) GetInitialLoadTimeoutHours() *int64 { + if o == nil { + return nil + } + return o.InitialLoadTimeoutHours +} + func (o *SourceMongodbV2Update) GetInitialWaitingSeconds() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemssql.go b/internal/sdk/models/shared/sourcemssql.go index 4b1a14928..bd4e94f23 100644 --- a/internal/sdk/models/shared/sourcemssql.go +++ b/internal/sdk/models/shared/sourcemssql.go @@ -104,6 +104,8 @@ func (e *SourceMssqlMethod) UnmarshalJSON(data []byte) error { // SourceMssqlReadChangesUsingChangeDataCaptureCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the SQL Server's change data capture feature. This must be enabled on your database. type SourceMssqlReadChangesUsingChangeDataCaptureCDC 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 3600 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. @@ -124,6 +126,13 @@ func (s *SourceMssqlReadChangesUsingChangeDataCaptureCDC) UnmarshalJSON(data []b return nil } +func (o *SourceMssqlReadChangesUsingChangeDataCaptureCDC) GetInitialLoadTimeoutHours() *int64 { + if o == nil { + return nil + } + return o.InitialLoadTimeoutHours +} + func (o *SourceMssqlReadChangesUsingChangeDataCaptureCDC) GetInitialWaitingSeconds() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemssqlupdate.go b/internal/sdk/models/shared/sourcemssqlupdate.go index 3d739949e..00309bf77 100644 --- a/internal/sdk/models/shared/sourcemssqlupdate.go +++ b/internal/sdk/models/shared/sourcemssqlupdate.go @@ -104,6 +104,8 @@ func (e *SourceMssqlUpdateSchemasReplicationMethodMethod) UnmarshalJSON(data []b // ReadChangesUsingChangeDataCaptureCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the SQL Server's change data capture feature. This must be enabled on your database. type ReadChangesUsingChangeDataCaptureCDC 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 3600 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. @@ -124,6 +126,13 @@ func (r *ReadChangesUsingChangeDataCaptureCDC) UnmarshalJSON(data []byte) error return nil } +func (o *ReadChangesUsingChangeDataCaptureCDC) GetInitialLoadTimeoutHours() *int64 { + if o == nil { + return nil + } + return o.InitialLoadTimeoutHours +} + func (o *ReadChangesUsingChangeDataCaptureCDC) GetInitialWaitingSeconds() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemysql.go b/internal/sdk/models/shared/sourcemysql.go index 558885412..b9103f325 100644 --- a/internal/sdk/models/shared/sourcemysql.go +++ b/internal/sdk/models/shared/sourcemysql.go @@ -104,6 +104,8 @@ 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. @@ -124,6 +126,13 @@ 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 ea65a7a8f..9f4dbd191 100644 --- a/internal/sdk/models/shared/sourcemysqlupdate.go +++ b/internal/sdk/models/shared/sourcemysqlupdate.go @@ -104,6 +104,8 @@ 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. @@ -124,6 +126,13 @@ 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/sourcenorthpasslms.go b/internal/sdk/models/shared/sourcenorthpasslms.go new file mode 100644 index 000000000..a1d7077e2 --- /dev/null +++ b/internal/sdk/models/shared/sourcenorthpasslms.go @@ -0,0 +1,59 @@ +// 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 NorthpassLms string + +const ( + NorthpassLmsNorthpassLms NorthpassLms = "northpass-lms" +) + +func (e NorthpassLms) ToPointer() *NorthpassLms { + return &e +} +func (e *NorthpassLms) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "northpass-lms": + *e = NorthpassLms(v) + return nil + default: + return fmt.Errorf("invalid value for NorthpassLms: %v", v) + } +} + +type SourceNorthpassLms struct { + APIKey string `json:"api_key"` + sourceType NorthpassLms `const:"northpass-lms" json:"sourceType"` +} + +func (s SourceNorthpassLms) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceNorthpassLms) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceNorthpassLms) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceNorthpassLms) GetSourceType() NorthpassLms { + return NorthpassLmsNorthpassLms +} diff --git a/internal/sdk/models/shared/sourcenorthpasslmscreaterequest.go b/internal/sdk/models/shared/sourcenorthpasslmscreaterequest.go new file mode 100644 index 000000000..d2267e3e7 --- /dev/null +++ b/internal/sdk/models/shared/sourcenorthpasslmscreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceNorthpassLmsCreateRequest struct { + Configuration SourceNorthpassLms `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 *SourceNorthpassLmsCreateRequest) GetConfiguration() SourceNorthpassLms { + if o == nil { + return SourceNorthpassLms{} + } + return o.Configuration +} + +func (o *SourceNorthpassLmsCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceNorthpassLmsCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceNorthpassLmsCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceNorthpassLmsCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcenorthpasslmsputrequest.go b/internal/sdk/models/shared/sourcenorthpasslmsputrequest.go new file mode 100644 index 000000000..de94afe87 --- /dev/null +++ b/internal/sdk/models/shared/sourcenorthpasslmsputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceNorthpassLmsPutRequest struct { + Configuration SourceNorthpassLmsUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceNorthpassLmsPutRequest) GetConfiguration() SourceNorthpassLmsUpdate { + if o == nil { + return SourceNorthpassLmsUpdate{} + } + return o.Configuration +} + +func (o *SourceNorthpassLmsPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceNorthpassLmsPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcenorthpasslmsupdate.go b/internal/sdk/models/shared/sourcenorthpasslmsupdate.go new file mode 100644 index 000000000..fcfa093de --- /dev/null +++ b/internal/sdk/models/shared/sourcenorthpasslmsupdate.go @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceNorthpassLmsUpdate struct { + APIKey string `json:"api_key"` +} + +func (o *SourceNorthpassLmsUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} diff --git a/internal/sdk/models/shared/sourcenytimes.go b/internal/sdk/models/shared/sourcenytimes.go index ef6be6760..adb21f77e 100644 --- a/internal/sdk/models/shared/sourcenytimes.go +++ b/internal/sdk/models/shared/sourcenytimes.go @@ -6,7 +6,6 @@ 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) @@ -90,14 +89,14 @@ type SourceNytimes struct { // API Key APIKey string `json:"api_key"` // End date to stop the article retrieval (format YYYY-MM) - EndDate *types.Date `json:"end_date,omitempty"` + EndDate *string `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 types.Date `json:"start_date"` + StartDate string `json:"start_date"` } func (s SourceNytimes) MarshalJSON() ([]byte, error) { @@ -118,7 +117,7 @@ func (o *SourceNytimes) GetAPIKey() string { return o.APIKey } -func (o *SourceNytimes) GetEndDate() *types.Date { +func (o *SourceNytimes) GetEndDate() *string { if o == nil { return nil } @@ -143,9 +142,9 @@ func (o *SourceNytimes) GetSourceType() Nytimes { return NytimesNytimes } -func (o *SourceNytimes) GetStartDate() types.Date { +func (o *SourceNytimes) GetStartDate() string { if o == nil { - return types.Date{} + return "" } return o.StartDate } diff --git a/internal/sdk/models/shared/sourcenytimesupdate.go b/internal/sdk/models/shared/sourcenytimesupdate.go index 7e466605a..31a0bdca0 100644 --- a/internal/sdk/models/shared/sourcenytimesupdate.go +++ b/internal/sdk/models/shared/sourcenytimesupdate.go @@ -5,8 +5,6 @@ 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) @@ -67,24 +65,13 @@ type SourceNytimesUpdate struct { // API Key APIKey string `json:"api_key"` // End date to stop the article retrieval (format YYYY-MM) - EndDate *types.Date `json:"end_date,omitempty"` + EndDate *string `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 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 + StartDate string `json:"start_date"` } func (o *SourceNytimesUpdate) GetAPIKey() string { @@ -94,7 +81,7 @@ func (o *SourceNytimesUpdate) GetAPIKey() string { return o.APIKey } -func (o *SourceNytimesUpdate) GetEndDate() *types.Date { +func (o *SourceNytimesUpdate) GetEndDate() *string { if o == nil { return nil } @@ -115,9 +102,9 @@ func (o *SourceNytimesUpdate) GetShareType() *ShareTypeUsedForMostPopularSharedS return o.ShareType } -func (o *SourceNytimesUpdate) GetStartDate() types.Date { +func (o *SourceNytimesUpdate) GetStartDate() string { if o == nil { - return types.Date{} + return "" } return o.StartDate } diff --git a/internal/sdk/models/shared/sourceokta.go b/internal/sdk/models/shared/sourceokta.go index 6fdee9689..aac0191c7 100644 --- a/internal/sdk/models/shared/sourceokta.go +++ b/internal/sdk/models/shared/sourceokta.go @@ -10,33 +10,33 @@ import ( "time" ) -type SourceOktaSchemasAuthType string +type SourceOktaSchemasCredentialsAuthType string const ( - SourceOktaSchemasAuthTypeAPIToken SourceOktaSchemasAuthType = "api_token" + SourceOktaSchemasCredentialsAuthTypeAPIToken SourceOktaSchemasCredentialsAuthType = "api_token" ) -func (e SourceOktaSchemasAuthType) ToPointer() *SourceOktaSchemasAuthType { +func (e SourceOktaSchemasCredentialsAuthType) ToPointer() *SourceOktaSchemasCredentialsAuthType { return &e } -func (e *SourceOktaSchemasAuthType) UnmarshalJSON(data []byte) error { +func (e *SourceOktaSchemasCredentialsAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "api_token": - *e = SourceOktaSchemasAuthType(v) + *e = SourceOktaSchemasCredentialsAuthType(v) return nil default: - return fmt.Errorf("invalid value for SourceOktaSchemasAuthType: %v", v) + return fmt.Errorf("invalid value for SourceOktaSchemasCredentialsAuthType: %v", v) } } type SourceOktaAPIToken struct { // An Okta token. See the docs for instructions on how to generate it. - APIToken string `json:"api_token"` - authType SourceOktaSchemasAuthType `const:"api_token" json:"auth_type"` + APIToken string `json:"api_token"` + authType SourceOktaSchemasCredentialsAuthType `const:"api_token" json:"auth_type"` } func (s SourceOktaAPIToken) MarshalJSON() ([]byte, error) { @@ -57,8 +57,86 @@ func (o *SourceOktaAPIToken) GetAPIToken() string { return o.APIToken } -func (o *SourceOktaAPIToken) GetAuthType() SourceOktaSchemasAuthType { - return SourceOktaSchemasAuthTypeAPIToken +func (o *SourceOktaAPIToken) GetAuthType() SourceOktaSchemasCredentialsAuthType { + return SourceOktaSchemasCredentialsAuthTypeAPIToken +} + +type SourceOktaSchemasAuthType string + +const ( + SourceOktaSchemasAuthTypeOauth20PrivateKey SourceOktaSchemasAuthType = "oauth2.0_private_key" +) + +func (e SourceOktaSchemasAuthType) ToPointer() *SourceOktaSchemasAuthType { + return &e +} +func (e *SourceOktaSchemasAuthType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "oauth2.0_private_key": + *e = SourceOktaSchemasAuthType(v) + return nil + default: + return fmt.Errorf("invalid value for SourceOktaSchemasAuthType: %v", v) + } +} + +type SourceOktaOAuth20WithPrivateKey struct { + authType SourceOktaSchemasAuthType `const:"oauth2.0_private_key" json:"auth_type"` + // The Client ID of your OAuth application. + ClientID string `json:"client_id"` + // The key ID (kid). + KeyID string `json:"key_id"` + // The private key in PEM format + PrivateKey string `json:"private_key"` + // The OAuth scope. + Scope string `json:"scope"` +} + +func (s SourceOktaOAuth20WithPrivateKey) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceOktaOAuth20WithPrivateKey) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceOktaOAuth20WithPrivateKey) GetAuthType() SourceOktaSchemasAuthType { + return SourceOktaSchemasAuthTypeOauth20PrivateKey +} + +func (o *SourceOktaOAuth20WithPrivateKey) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *SourceOktaOAuth20WithPrivateKey) GetKeyID() string { + if o == nil { + return "" + } + return o.KeyID +} + +func (o *SourceOktaOAuth20WithPrivateKey) GetPrivateKey() string { + if o == nil { + return "" + } + return o.PrivateKey +} + +func (o *SourceOktaOAuth20WithPrivateKey) GetScope() string { + if o == nil { + return "" + } + return o.Scope } type SourceOktaAuthType string @@ -133,13 +211,15 @@ func (o *SourceOktaOAuth20) GetRefreshToken() string { type SourceOktaAuthorizationMethodType string const ( - SourceOktaAuthorizationMethodTypeSourceOktaOAuth20 SourceOktaAuthorizationMethodType = "source-okta_OAuth2.0" - SourceOktaAuthorizationMethodTypeSourceOktaAPIToken SourceOktaAuthorizationMethodType = "source-okta_API Token" + SourceOktaAuthorizationMethodTypeSourceOktaOAuth20 SourceOktaAuthorizationMethodType = "source-okta_OAuth2.0" + SourceOktaAuthorizationMethodTypeSourceOktaOAuth20WithPrivateKey SourceOktaAuthorizationMethodType = "source-okta_OAuth 2.0 with private key" + SourceOktaAuthorizationMethodTypeSourceOktaAPIToken SourceOktaAuthorizationMethodType = "source-okta_API Token" ) type SourceOktaAuthorizationMethod struct { - SourceOktaOAuth20 *SourceOktaOAuth20 - SourceOktaAPIToken *SourceOktaAPIToken + SourceOktaOAuth20 *SourceOktaOAuth20 + SourceOktaOAuth20WithPrivateKey *SourceOktaOAuth20WithPrivateKey + SourceOktaAPIToken *SourceOktaAPIToken Type SourceOktaAuthorizationMethodType } @@ -153,6 +233,15 @@ func CreateSourceOktaAuthorizationMethodSourceOktaOAuth20(sourceOktaOAuth20 Sour } } +func CreateSourceOktaAuthorizationMethodSourceOktaOAuth20WithPrivateKey(sourceOktaOAuth20WithPrivateKey SourceOktaOAuth20WithPrivateKey) SourceOktaAuthorizationMethod { + typ := SourceOktaAuthorizationMethodTypeSourceOktaOAuth20WithPrivateKey + + return SourceOktaAuthorizationMethod{ + SourceOktaOAuth20WithPrivateKey: &sourceOktaOAuth20WithPrivateKey, + Type: typ, + } +} + func CreateSourceOktaAuthorizationMethodSourceOktaAPIToken(sourceOktaAPIToken SourceOktaAPIToken) SourceOktaAuthorizationMethod { typ := SourceOktaAuthorizationMethodTypeSourceOktaAPIToken @@ -178,6 +267,13 @@ func (u *SourceOktaAuthorizationMethod) UnmarshalJSON(data []byte) error { return nil } + var sourceOktaOAuth20WithPrivateKey SourceOktaOAuth20WithPrivateKey = SourceOktaOAuth20WithPrivateKey{} + if err := utils.UnmarshalJSON(data, &sourceOktaOAuth20WithPrivateKey, "", true, true); err == nil { + u.SourceOktaOAuth20WithPrivateKey = &sourceOktaOAuth20WithPrivateKey + u.Type = SourceOktaAuthorizationMethodTypeSourceOktaOAuth20WithPrivateKey + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceOktaAuthorizationMethod", string(data)) } @@ -186,6 +282,10 @@ func (u SourceOktaAuthorizationMethod) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceOktaOAuth20, "", true) } + if u.SourceOktaOAuth20WithPrivateKey != nil { + return utils.MarshalJSON(u.SourceOktaOAuth20WithPrivateKey, "", true) + } + if u.SourceOktaAPIToken != nil { return utils.MarshalJSON(u.SourceOktaAPIToken, "", true) } diff --git a/internal/sdk/models/shared/sourceoktaupdate.go b/internal/sdk/models/shared/sourceoktaupdate.go index d588bd3da..daa0bcbab 100644 --- a/internal/sdk/models/shared/sourceoktaupdate.go +++ b/internal/sdk/models/shared/sourceoktaupdate.go @@ -10,33 +10,33 @@ import ( "time" ) -type SourceOktaUpdateSchemasAuthType string +type SourceOktaUpdateSchemasCredentialsAuthType string const ( - SourceOktaUpdateSchemasAuthTypeAPIToken SourceOktaUpdateSchemasAuthType = "api_token" + SourceOktaUpdateSchemasCredentialsAuthTypeAPIToken SourceOktaUpdateSchemasCredentialsAuthType = "api_token" ) -func (e SourceOktaUpdateSchemasAuthType) ToPointer() *SourceOktaUpdateSchemasAuthType { +func (e SourceOktaUpdateSchemasCredentialsAuthType) ToPointer() *SourceOktaUpdateSchemasCredentialsAuthType { return &e } -func (e *SourceOktaUpdateSchemasAuthType) UnmarshalJSON(data []byte) error { +func (e *SourceOktaUpdateSchemasCredentialsAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "api_token": - *e = SourceOktaUpdateSchemasAuthType(v) + *e = SourceOktaUpdateSchemasCredentialsAuthType(v) return nil default: - return fmt.Errorf("invalid value for SourceOktaUpdateSchemasAuthType: %v", v) + return fmt.Errorf("invalid value for SourceOktaUpdateSchemasCredentialsAuthType: %v", v) } } type SourceOktaUpdateAPIToken struct { // An Okta token. See the docs for instructions on how to generate it. - APIToken string `json:"api_token"` - authType SourceOktaUpdateSchemasAuthType `const:"api_token" json:"auth_type"` + APIToken string `json:"api_token"` + authType SourceOktaUpdateSchemasCredentialsAuthType `const:"api_token" json:"auth_type"` } func (s SourceOktaUpdateAPIToken) MarshalJSON() ([]byte, error) { @@ -57,8 +57,86 @@ func (o *SourceOktaUpdateAPIToken) GetAPIToken() string { return o.APIToken } -func (o *SourceOktaUpdateAPIToken) GetAuthType() SourceOktaUpdateSchemasAuthType { - return SourceOktaUpdateSchemasAuthTypeAPIToken +func (o *SourceOktaUpdateAPIToken) GetAuthType() SourceOktaUpdateSchemasCredentialsAuthType { + return SourceOktaUpdateSchemasCredentialsAuthTypeAPIToken +} + +type SourceOktaUpdateSchemasAuthType string + +const ( + SourceOktaUpdateSchemasAuthTypeOauth20PrivateKey SourceOktaUpdateSchemasAuthType = "oauth2.0_private_key" +) + +func (e SourceOktaUpdateSchemasAuthType) ToPointer() *SourceOktaUpdateSchemasAuthType { + return &e +} +func (e *SourceOktaUpdateSchemasAuthType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "oauth2.0_private_key": + *e = SourceOktaUpdateSchemasAuthType(v) + return nil + default: + return fmt.Errorf("invalid value for SourceOktaUpdateSchemasAuthType: %v", v) + } +} + +type OAuth20WithPrivateKey struct { + authType SourceOktaUpdateSchemasAuthType `const:"oauth2.0_private_key" json:"auth_type"` + // The Client ID of your OAuth application. + ClientID string `json:"client_id"` + // The key ID (kid). + KeyID string `json:"key_id"` + // The private key in PEM format + PrivateKey string `json:"private_key"` + // The OAuth scope. + Scope string `json:"scope"` +} + +func (o OAuth20WithPrivateKey) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OAuth20WithPrivateKey) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, true); err != nil { + return err + } + return nil +} + +func (o *OAuth20WithPrivateKey) GetAuthType() SourceOktaUpdateSchemasAuthType { + return SourceOktaUpdateSchemasAuthTypeOauth20PrivateKey +} + +func (o *OAuth20WithPrivateKey) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *OAuth20WithPrivateKey) GetKeyID() string { + if o == nil { + return "" + } + return o.KeyID +} + +func (o *OAuth20WithPrivateKey) GetPrivateKey() string { + if o == nil { + return "" + } + return o.PrivateKey +} + +func (o *OAuth20WithPrivateKey) GetScope() string { + if o == nil { + return "" + } + return o.Scope } type SourceOktaUpdateAuthType string @@ -134,11 +212,13 @@ type SourceOktaUpdateAuthorizationMethodType string const ( SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateOAuth20 SourceOktaUpdateAuthorizationMethodType = "source-okta-update_OAuth2.0" + SourceOktaUpdateAuthorizationMethodTypeOAuth20WithPrivateKey SourceOktaUpdateAuthorizationMethodType = "OAuth 2.0 with private key" SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateAPIToken SourceOktaUpdateAuthorizationMethodType = "source-okta-update_API Token" ) type SourceOktaUpdateAuthorizationMethod struct { SourceOktaUpdateOAuth20 *SourceOktaUpdateOAuth20 + OAuth20WithPrivateKey *OAuth20WithPrivateKey SourceOktaUpdateAPIToken *SourceOktaUpdateAPIToken Type SourceOktaUpdateAuthorizationMethodType @@ -153,6 +233,15 @@ func CreateSourceOktaUpdateAuthorizationMethodSourceOktaUpdateOAuth20(sourceOkta } } +func CreateSourceOktaUpdateAuthorizationMethodOAuth20WithPrivateKey(oAuth20WithPrivateKey OAuth20WithPrivateKey) SourceOktaUpdateAuthorizationMethod { + typ := SourceOktaUpdateAuthorizationMethodTypeOAuth20WithPrivateKey + + return SourceOktaUpdateAuthorizationMethod{ + OAuth20WithPrivateKey: &oAuth20WithPrivateKey, + Type: typ, + } +} + func CreateSourceOktaUpdateAuthorizationMethodSourceOktaUpdateAPIToken(sourceOktaUpdateAPIToken SourceOktaUpdateAPIToken) SourceOktaUpdateAuthorizationMethod { typ := SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateAPIToken @@ -178,6 +267,13 @@ func (u *SourceOktaUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { return nil } + var oAuth20WithPrivateKey OAuth20WithPrivateKey = OAuth20WithPrivateKey{} + if err := utils.UnmarshalJSON(data, &oAuth20WithPrivateKey, "", true, true); err == nil { + u.OAuth20WithPrivateKey = &oAuth20WithPrivateKey + u.Type = SourceOktaUpdateAuthorizationMethodTypeOAuth20WithPrivateKey + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceOktaUpdateAuthorizationMethod", string(data)) } @@ -186,6 +282,10 @@ func (u SourceOktaUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceOktaUpdateOAuth20, "", true) } + if u.OAuth20WithPrivateKey != nil { + return utils.MarshalJSON(u.OAuth20WithPrivateKey, "", true) + } + if u.SourceOktaUpdateAPIToken != nil { return utils.MarshalJSON(u.SourceOktaUpdateAPIToken, "", true) } diff --git a/internal/sdk/models/shared/sourceoracleupdate.go b/internal/sdk/models/shared/sourceoracleupdate.go index 719545136..872e42659 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 EncryptionUnionType string +type EncryptionType string const ( - EncryptionUnionTypeNativeNetworkEncryptionNNE EncryptionUnionType = "Native Network Encryption (NNE)" - EncryptionUnionTypeTLSEncryptedVerifyCertificate EncryptionUnionType = "TLS Encrypted (verify certificate)" + EncryptionTypeNativeNetworkEncryptionNNE EncryptionType = "Native Network Encryption (NNE)" + EncryptionTypeTLSEncryptedVerifyCertificate EncryptionType = "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 EncryptionUnionType + Type EncryptionType } func CreateEncryptionNativeNetworkEncryptionNNE(nativeNetworkEncryptionNNE NativeNetworkEncryptionNNE) Encryption { - typ := EncryptionUnionTypeNativeNetworkEncryptionNNE + typ := EncryptionTypeNativeNetworkEncryptionNNE return Encryption{ NativeNetworkEncryptionNNE: &nativeNetworkEncryptionNNE, @@ -334,7 +334,7 @@ func CreateEncryptionNativeNetworkEncryptionNNE(nativeNetworkEncryptionNNE Nativ } func CreateEncryptionTLSEncryptedVerifyCertificate(tlsEncryptedVerifyCertificate TLSEncryptedVerifyCertificate) Encryption { - typ := EncryptionUnionTypeTLSEncryptedVerifyCertificate + typ := EncryptionTypeTLSEncryptedVerifyCertificate 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 = EncryptionUnionTypeNativeNetworkEncryptionNNE + u.Type = EncryptionTypeNativeNetworkEncryptionNNE return nil } var tlsEncryptedVerifyCertificate TLSEncryptedVerifyCertificate = TLSEncryptedVerifyCertificate{} if err := utils.UnmarshalJSON(data, &tlsEncryptedVerifyCertificate, "", true, true); err == nil { u.TLSEncryptedVerifyCertificate = &tlsEncryptedVerifyCertificate - u.Type = EncryptionUnionTypeTLSEncryptedVerifyCertificate + u.Type = EncryptionTypeTLSEncryptedVerifyCertificate return nil } diff --git a/internal/sdk/models/shared/sourceorb.go b/internal/sdk/models/shared/sourceorb.go index 4e463e689..78df58047 100644 --- a/internal/sdk/models/shared/sourceorb.go +++ b/internal/sdk/models/shared/sourceorb.go @@ -6,6 +6,7 @@ import ( "encoding/json" "fmt" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" ) type Orb string @@ -44,7 +45,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 string `json:"start_date"` + StartDate time.Time `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. @@ -101,9 +102,9 @@ func (o *SourceOrb) GetSourceType() Orb { return OrbOrb } -func (o *SourceOrb) GetStartDate() string { +func (o *SourceOrb) GetStartDate() time.Time { if o == nil { - return "" + return time.Time{} } return o.StartDate } diff --git a/internal/sdk/models/shared/sourceorbupdate.go b/internal/sdk/models/shared/sourceorbupdate.go index 199749495..41f6ea2db 100644 --- a/internal/sdk/models/shared/sourceorbupdate.go +++ b/internal/sdk/models/shared/sourceorbupdate.go @@ -4,6 +4,7 @@ package shared import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" ) type SourceOrbUpdate struct { @@ -18,7 +19,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 string `json:"start_date"` + StartDate time.Time `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. @@ -71,9 +72,9 @@ func (o *SourceOrbUpdate) GetPlanID() *string { return o.PlanID } -func (o *SourceOrbUpdate) GetStartDate() string { +func (o *SourceOrbUpdate) GetStartDate() time.Time { if o == nil { - return "" + return time.Time{} } return o.StartDate } diff --git a/internal/sdk/models/shared/sourcepennylane.go b/internal/sdk/models/shared/sourcepennylane.go new file mode 100644 index 000000000..7f6771a07 --- /dev/null +++ b/internal/sdk/models/shared/sourcepennylane.go @@ -0,0 +1,68 @@ +// 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" + "time" +) + +type Pennylane string + +const ( + PennylanePennylane Pennylane = "pennylane" +) + +func (e Pennylane) ToPointer() *Pennylane { + return &e +} +func (e *Pennylane) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "pennylane": + *e = Pennylane(v) + return nil + default: + return fmt.Errorf("invalid value for Pennylane: %v", v) + } +} + +type SourcePennylane struct { + APIKey string `json:"api_key"` + sourceType Pennylane `const:"pennylane" json:"sourceType"` + StartTime time.Time `json:"start_time"` +} + +func (s SourcePennylane) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourcePennylane) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourcePennylane) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourcePennylane) GetSourceType() Pennylane { + return PennylanePennylane +} + +func (o *SourcePennylane) GetStartTime() time.Time { + if o == nil { + return time.Time{} + } + return o.StartTime +} diff --git a/internal/sdk/models/shared/sourcepennylanecreaterequest.go b/internal/sdk/models/shared/sourcepennylanecreaterequest.go new file mode 100644 index 000000000..74ae4fcac --- /dev/null +++ b/internal/sdk/models/shared/sourcepennylanecreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePennylaneCreateRequest struct { + Configuration SourcePennylane `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 *SourcePennylaneCreateRequest) GetConfiguration() SourcePennylane { + if o == nil { + return SourcePennylane{} + } + return o.Configuration +} + +func (o *SourcePennylaneCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourcePennylaneCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourcePennylaneCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourcePennylaneCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcepennylaneputrequest.go b/internal/sdk/models/shared/sourcepennylaneputrequest.go new file mode 100644 index 000000000..75d848e57 --- /dev/null +++ b/internal/sdk/models/shared/sourcepennylaneputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePennylanePutRequest struct { + Configuration SourcePennylaneUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourcePennylanePutRequest) GetConfiguration() SourcePennylaneUpdate { + if o == nil { + return SourcePennylaneUpdate{} + } + return o.Configuration +} + +func (o *SourcePennylanePutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourcePennylanePutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcepennylaneupdate.go b/internal/sdk/models/shared/sourcepennylaneupdate.go new file mode 100644 index 000000000..056b131d2 --- /dev/null +++ b/internal/sdk/models/shared/sourcepennylaneupdate.go @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" +) + +type SourcePennylaneUpdate struct { + APIKey string `json:"api_key"` + StartTime time.Time `json:"start_time"` +} + +func (s SourcePennylaneUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourcePennylaneUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourcePennylaneUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourcePennylaneUpdate) GetStartTime() time.Time { + if o == nil { + return time.Time{} + } + return o.StartTime +} diff --git a/internal/sdk/models/shared/sourceplanhat.go b/internal/sdk/models/shared/sourceplanhat.go new file mode 100644 index 000000000..3f334523e --- /dev/null +++ b/internal/sdk/models/shared/sourceplanhat.go @@ -0,0 +1,60 @@ +// 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 Planhat string + +const ( + PlanhatPlanhat Planhat = "planhat" +) + +func (e Planhat) ToPointer() *Planhat { + return &e +} +func (e *Planhat) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "planhat": + *e = Planhat(v) + return nil + default: + return fmt.Errorf("invalid value for Planhat: %v", v) + } +} + +type SourcePlanhat struct { + // Your Planhat API Access Token + APIToken string `json:"api_token"` + sourceType Planhat `const:"planhat" json:"sourceType"` +} + +func (s SourcePlanhat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourcePlanhat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourcePlanhat) GetAPIToken() string { + if o == nil { + return "" + } + return o.APIToken +} + +func (o *SourcePlanhat) GetSourceType() Planhat { + return PlanhatPlanhat +} diff --git a/internal/sdk/models/shared/sourceplanhatcreaterequest.go b/internal/sdk/models/shared/sourceplanhatcreaterequest.go new file mode 100644 index 000000000..9ab1547ad --- /dev/null +++ b/internal/sdk/models/shared/sourceplanhatcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePlanhatCreateRequest struct { + Configuration SourcePlanhat `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 *SourcePlanhatCreateRequest) GetConfiguration() SourcePlanhat { + if o == nil { + return SourcePlanhat{} + } + return o.Configuration +} + +func (o *SourcePlanhatCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourcePlanhatCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourcePlanhatCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourcePlanhatCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceplanhatputrequest.go b/internal/sdk/models/shared/sourceplanhatputrequest.go new file mode 100644 index 000000000..6593311a1 --- /dev/null +++ b/internal/sdk/models/shared/sourceplanhatputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePlanhatPutRequest struct { + Configuration SourcePlanhatUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourcePlanhatPutRequest) GetConfiguration() SourcePlanhatUpdate { + if o == nil { + return SourcePlanhatUpdate{} + } + return o.Configuration +} + +func (o *SourcePlanhatPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourcePlanhatPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceplanhatupdate.go b/internal/sdk/models/shared/sourceplanhatupdate.go new file mode 100644 index 000000000..36a6a7ff9 --- /dev/null +++ b/internal/sdk/models/shared/sourceplanhatupdate.go @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePlanhatUpdate struct { + // Your Planhat API Access Token + APIToken string `json:"api_token"` +} + +func (o *SourcePlanhatUpdate) GetAPIToken() string { + if o == nil { + return "" + } + return o.APIToken +} diff --git a/internal/sdk/models/shared/sourcepostgres.go b/internal/sdk/models/shared/sourcepostgres.go index be49ccd5c..d47b22df8 100644 --- a/internal/sdk/models/shared/sourcepostgres.go +++ b/internal/sdk/models/shared/sourcepostgres.go @@ -199,9 +199,11 @@ func (e *SourcePostgresPlugin) UnmarshalJSON(data []byte) error { // SourcePostgresReadChangesUsingWriteAheadLogCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size. type SourcePostgresReadChangesUsingWriteAheadLogCDC struct { AdditionalProperties any `additionalProperties:"true" json:"-"` - // Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the setup guide for how and when to configure this setting. + // Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the setup guide for how and when to configure this setting. HeartbeatActionQuery *string `default:"" json:"heartbeat_action_query"` - // The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about initial waiting time. + // 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 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about initial waiting time. InitialWaitingSeconds *int64 `default:"1200" 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. InvalidCdcCursorPositionBehavior *SourcePostgresInvalidCDCPositionBehaviorAdvanced `default:"Fail sync" json:"invalid_cdc_cursor_position_behavior"` @@ -243,6 +245,13 @@ func (o *SourcePostgresReadChangesUsingWriteAheadLogCDC) GetHeartbeatActionQuery return o.HeartbeatActionQuery } +func (o *SourcePostgresReadChangesUsingWriteAheadLogCDC) GetInitialLoadTimeoutHours() *int64 { + if o == nil { + return nil + } + return o.InitialLoadTimeoutHours +} + func (o *SourcePostgresReadChangesUsingWriteAheadLogCDC) GetInitialWaitingSeconds() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcepostgresupdate.go b/internal/sdk/models/shared/sourcepostgresupdate.go index b4bdf968d..d5b7ee57b 100644 --- a/internal/sdk/models/shared/sourcepostgresupdate.go +++ b/internal/sdk/models/shared/sourcepostgresupdate.go @@ -199,9 +199,11 @@ func (e *Plugin) UnmarshalJSON(data []byte) error { // ReadChangesUsingWriteAheadLogCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size. type ReadChangesUsingWriteAheadLogCDC struct { AdditionalProperties any `additionalProperties:"true" json:"-"` - // Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the setup guide for how and when to configure this setting. + // Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the setup guide for how and when to configure this setting. HeartbeatActionQuery *string `default:"" json:"heartbeat_action_query"` - // The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about initial waiting time. + // 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 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about initial waiting time. InitialWaitingSeconds *int64 `default:"1200" 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. InvalidCdcCursorPositionBehavior *SourcePostgresUpdateInvalidCDCPositionBehaviorAdvanced `default:"Fail sync" json:"invalid_cdc_cursor_position_behavior"` @@ -243,6 +245,13 @@ func (o *ReadChangesUsingWriteAheadLogCDC) GetHeartbeatActionQuery() *string { return o.HeartbeatActionQuery } +func (o *ReadChangesUsingWriteAheadLogCDC) GetInitialLoadTimeoutHours() *int64 { + if o == nil { + return nil + } + return o.InitialLoadTimeoutHours +} + func (o *ReadChangesUsingWriteAheadLogCDC) GetInitialWaitingSeconds() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcepunkapi.go b/internal/sdk/models/shared/sourcepunkapi.go deleted file mode 100644 index ce1486dd3..000000000 --- a/internal/sdk/models/shared/sourcepunkapi.go +++ /dev/null @@ -1,78 +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 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/sourcepunkapiupdate.go b/internal/sdk/models/shared/sourcepunkapiupdate.go deleted file mode 100644 index 53f27ff93..000000000 --- a/internal/sdk/models/shared/sourcepunkapiupdate.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/sourcereddit.go b/internal/sdk/models/shared/sourcereddit.go new file mode 100644 index 000000000..31d596f5d --- /dev/null +++ b/internal/sdk/models/shared/sourcereddit.go @@ -0,0 +1,113 @@ +// 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" + "time" +) + +type Reddit string + +const ( + RedditReddit Reddit = "reddit" +) + +func (e Reddit) ToPointer() *Reddit { + return &e +} +func (e *Reddit) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "reddit": + *e = Reddit(v) + return nil + default: + return fmt.Errorf("invalid value for Reddit: %v", v) + } +} + +type SourceReddit struct { + APIKey string `json:"api_key"` + // Specifies exact keyword and reduces distractions + Exact *bool `json:"exact,omitempty"` + // Includes mature content + IncludeOver18 *bool `default:"false" json:"include_over_18"` + // Max records per page limit + Limit *float64 `default:"1000" json:"limit"` + // Specifies the query for searching in reddits and subreddits + Query *string `default:"airbyte" json:"query"` + sourceType Reddit `const:"reddit" json:"sourceType"` + StartDate time.Time `json:"start_date"` + // Subreddits for exploration + Subreddits []any `json:"subreddits,omitempty"` +} + +func (s SourceReddit) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceReddit) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceReddit) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceReddit) GetExact() *bool { + if o == nil { + return nil + } + return o.Exact +} + +func (o *SourceReddit) GetIncludeOver18() *bool { + if o == nil { + return nil + } + return o.IncludeOver18 +} + +func (o *SourceReddit) GetLimit() *float64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *SourceReddit) GetQuery() *string { + if o == nil { + return nil + } + return o.Query +} + +func (o *SourceReddit) GetSourceType() Reddit { + return RedditReddit +} + +func (o *SourceReddit) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceReddit) GetSubreddits() []any { + if o == nil { + return nil + } + return o.Subreddits +} diff --git a/internal/sdk/models/shared/sourceredditcreaterequest.go b/internal/sdk/models/shared/sourceredditcreaterequest.go new file mode 100644 index 000000000..4314751af --- /dev/null +++ b/internal/sdk/models/shared/sourceredditcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceRedditCreateRequest struct { + Configuration SourceReddit `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 *SourceRedditCreateRequest) GetConfiguration() SourceReddit { + if o == nil { + return SourceReddit{} + } + return o.Configuration +} + +func (o *SourceRedditCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceRedditCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceRedditCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceRedditCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceredditputrequest.go b/internal/sdk/models/shared/sourceredditputrequest.go new file mode 100644 index 000000000..bacbf0037 --- /dev/null +++ b/internal/sdk/models/shared/sourceredditputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceRedditPutRequest struct { + Configuration SourceRedditUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceRedditPutRequest) GetConfiguration() SourceRedditUpdate { + if o == nil { + return SourceRedditUpdate{} + } + return o.Configuration +} + +func (o *SourceRedditPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceRedditPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceredditupdate.go b/internal/sdk/models/shared/sourceredditupdate.go new file mode 100644 index 000000000..89ba38745 --- /dev/null +++ b/internal/sdk/models/shared/sourceredditupdate.go @@ -0,0 +1,83 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "time" +) + +type SourceRedditUpdate struct { + APIKey string `json:"api_key"` + // Specifies exact keyword and reduces distractions + Exact *bool `json:"exact,omitempty"` + // Includes mature content + IncludeOver18 *bool `default:"false" json:"include_over_18"` + // Max records per page limit + Limit *float64 `default:"1000" json:"limit"` + // Specifies the query for searching in reddits and subreddits + Query *string `default:"airbyte" json:"query"` + StartDate time.Time `json:"start_date"` + // Subreddits for exploration + Subreddits []any `json:"subreddits,omitempty"` +} + +func (s SourceRedditUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceRedditUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceRedditUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceRedditUpdate) GetExact() *bool { + if o == nil { + return nil + } + return o.Exact +} + +func (o *SourceRedditUpdate) GetIncludeOver18() *bool { + if o == nil { + return nil + } + return o.IncludeOver18 +} + +func (o *SourceRedditUpdate) GetLimit() *float64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *SourceRedditUpdate) GetQuery() *string { + if o == nil { + return nil + } + return o.Query +} + +func (o *SourceRedditUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceRedditUpdate) GetSubreddits() []any { + if o == nil { + return nil + } + return o.Subreddits +} diff --git a/internal/sdk/models/shared/sources3.go b/internal/sdk/models/shared/sources3.go index 76f6fb058..43dbae014 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 { } } -// SourceS3DocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceS3DocumentFileTypeFormatExperimental struct { +// SourceS3UnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceS3UnstructuredDocumentFormat struct { filetype *SourceS3SchemasStreamsFormatFormat5Filetype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceS3Processing `json:"processing,omitempty"` @@ -726,36 +726,36 @@ type SourceS3DocumentFileTypeFormatExperimental struct { Strategy *SourceS3ParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceS3DocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { +func (s SourceS3UnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceS3DocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { +func (s *SourceS3UnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceS3DocumentFileTypeFormatExperimental) GetFiletype() *SourceS3SchemasStreamsFormatFormat5Filetype { +func (o *SourceS3UnstructuredDocumentFormat) GetFiletype() *SourceS3SchemasStreamsFormatFormat5Filetype { return SourceS3SchemasStreamsFormatFormat5FiletypeUnstructured.ToPointer() } -func (o *SourceS3DocumentFileTypeFormatExperimental) GetProcessing() *SourceS3Processing { +func (o *SourceS3UnstructuredDocumentFormat) GetProcessing() *SourceS3Processing { if o == nil { return nil } return o.Processing } -func (o *SourceS3DocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { +func (o *SourceS3UnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceS3DocumentFileTypeFormatExperimental) GetStrategy() *SourceS3ParsingStrategy { +func (o *SourceS3UnstructuredDocumentFormat) 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" - SourceS3FormatTypeSourceS3DocumentFileTypeFormatExperimental SourceS3FormatType = "source-s3_Document File Type Format (Experimental)" + 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" ) // 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 - SourceS3DocumentFileTypeFormatExperimental *SourceS3DocumentFileTypeFormatExperimental + SourceS3AvroFormat *SourceS3AvroFormat + SourceS3CSVFormat *SourceS3CSVFormat + SourceS3JsonlFormat *SourceS3JsonlFormat + SourceS3ParquetFormat *SourceS3ParquetFormat + SourceS3UnstructuredDocumentFormat *SourceS3UnstructuredDocumentFormat Type SourceS3FormatType } @@ -1379,12 +1379,12 @@ func CreateSourceS3FormatSourceS3ParquetFormat(sourceS3ParquetFormat SourceS3Par } } -func CreateSourceS3FormatSourceS3DocumentFileTypeFormatExperimental(sourceS3DocumentFileTypeFormatExperimental SourceS3DocumentFileTypeFormatExperimental) SourceS3Format { - typ := SourceS3FormatTypeSourceS3DocumentFileTypeFormatExperimental +func CreateSourceS3FormatSourceS3UnstructuredDocumentFormat(sourceS3UnstructuredDocumentFormat SourceS3UnstructuredDocumentFormat) SourceS3Format { + typ := SourceS3FormatTypeSourceS3UnstructuredDocumentFormat return SourceS3Format{ - SourceS3DocumentFileTypeFormatExperimental: &sourceS3DocumentFileTypeFormatExperimental, - Type: typ, + SourceS3UnstructuredDocumentFormat: &sourceS3UnstructuredDocumentFormat, + Type: typ, } } @@ -1411,10 +1411,10 @@ func (u *SourceS3Format) UnmarshalJSON(data []byte) error { return nil } - var sourceS3DocumentFileTypeFormatExperimental SourceS3DocumentFileTypeFormatExperimental = SourceS3DocumentFileTypeFormatExperimental{} - if err := utils.UnmarshalJSON(data, &sourceS3DocumentFileTypeFormatExperimental, "", true, true); err == nil { - u.SourceS3DocumentFileTypeFormatExperimental = &sourceS3DocumentFileTypeFormatExperimental - u.Type = SourceS3FormatTypeSourceS3DocumentFileTypeFormatExperimental + var sourceS3UnstructuredDocumentFormat SourceS3UnstructuredDocumentFormat = SourceS3UnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &sourceS3UnstructuredDocumentFormat, "", true, true); err == nil { + u.SourceS3UnstructuredDocumentFormat = &sourceS3UnstructuredDocumentFormat + u.Type = SourceS3FormatTypeSourceS3UnstructuredDocumentFormat return nil } @@ -1445,8 +1445,8 @@ func (u SourceS3Format) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceS3ParquetFormat, "", true) } - if u.SourceS3DocumentFileTypeFormatExperimental != nil { - return utils.MarshalJSON(u.SourceS3DocumentFileTypeFormatExperimental, "", true) + if u.SourceS3UnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.SourceS3UnstructuredDocumentFormat, "", true) } return nil, errors.New("could not marshal union type SourceS3Format: all fields are null") @@ -1497,6 +1497,8 @@ type SourceS3FileBasedStreamConfig struct { Name string `json:"name"` // The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. PrimaryKey *string `json:"primary_key,omitempty"` + // The number of resent files which will be used to discover the schema for this stream. + RecentNFilesToReadForSchemaDiscovery *int64 `json:"recent_n_files_to_read_for_schema_discovery,omitempty"` // When enabled, syncs will not validate or structure records against the stream's schema. Schemaless *bool `default:"false" json:"schemaless"` // The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. @@ -1563,6 +1565,13 @@ func (o *SourceS3FileBasedStreamConfig) GetPrimaryKey() *string { return o.PrimaryKey } +func (o *SourceS3FileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { + if o == nil { + return nil + } + return o.RecentNFilesToReadForSchemaDiscovery +} + func (o *SourceS3FileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sources3update.go b/internal/sdk/models/shared/sources3update.go index a9f49b0da..604ce7ead 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 { } } -// SourceS3UpdateDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceS3UpdateDocumentFileTypeFormatExperimental struct { +// SourceS3UpdateUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceS3UpdateUnstructuredDocumentFormat struct { filetype *SourceS3UpdateSchemasStreamsFormatFormat5Filetype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceS3UpdateProcessing `json:"processing,omitempty"` @@ -703,36 +703,36 @@ type SourceS3UpdateDocumentFileTypeFormatExperimental struct { Strategy *SourceS3UpdateParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceS3UpdateDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { +func (s SourceS3UpdateUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceS3UpdateDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { +func (s *SourceS3UpdateUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceS3UpdateDocumentFileTypeFormatExperimental) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFormat5Filetype { +func (o *SourceS3UpdateUnstructuredDocumentFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFormat5Filetype { return SourceS3UpdateSchemasStreamsFormatFormat5FiletypeUnstructured.ToPointer() } -func (o *SourceS3UpdateDocumentFileTypeFormatExperimental) GetProcessing() *SourceS3UpdateProcessing { +func (o *SourceS3UpdateUnstructuredDocumentFormat) GetProcessing() *SourceS3UpdateProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceS3UpdateDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { +func (o *SourceS3UpdateUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceS3UpdateDocumentFileTypeFormatExperimental) GetStrategy() *SourceS3UpdateParsingStrategy { +func (o *SourceS3UpdateUnstructuredDocumentFormat) 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" - SourceS3UpdateFormatTypeSourceS3UpdateDocumentFileTypeFormatExperimental SourceS3UpdateFormatType = "source-s3-update_Document File Type Format (Experimental)" + 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" ) // 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 - SourceS3UpdateDocumentFileTypeFormatExperimental *SourceS3UpdateDocumentFileTypeFormatExperimental + SourceS3UpdateAvroFormat *SourceS3UpdateAvroFormat + SourceS3UpdateCSVFormat *SourceS3UpdateCSVFormat + SourceS3UpdateJsonlFormat *SourceS3UpdateJsonlFormat + SourceS3UpdateParquetFormat *SourceS3UpdateParquetFormat + SourceS3UpdateUnstructuredDocumentFormat *SourceS3UpdateUnstructuredDocumentFormat Type SourceS3UpdateFormatType } @@ -1356,12 +1356,12 @@ func CreateSourceS3UpdateFormatSourceS3UpdateParquetFormat(sourceS3UpdateParquet } } -func CreateSourceS3UpdateFormatSourceS3UpdateDocumentFileTypeFormatExperimental(sourceS3UpdateDocumentFileTypeFormatExperimental SourceS3UpdateDocumentFileTypeFormatExperimental) SourceS3UpdateFormat { - typ := SourceS3UpdateFormatTypeSourceS3UpdateDocumentFileTypeFormatExperimental +func CreateSourceS3UpdateFormatSourceS3UpdateUnstructuredDocumentFormat(sourceS3UpdateUnstructuredDocumentFormat SourceS3UpdateUnstructuredDocumentFormat) SourceS3UpdateFormat { + typ := SourceS3UpdateFormatTypeSourceS3UpdateUnstructuredDocumentFormat return SourceS3UpdateFormat{ - SourceS3UpdateDocumentFileTypeFormatExperimental: &sourceS3UpdateDocumentFileTypeFormatExperimental, - Type: typ, + SourceS3UpdateUnstructuredDocumentFormat: &sourceS3UpdateUnstructuredDocumentFormat, + Type: typ, } } @@ -1388,10 +1388,10 @@ func (u *SourceS3UpdateFormat) UnmarshalJSON(data []byte) error { return nil } - var sourceS3UpdateDocumentFileTypeFormatExperimental SourceS3UpdateDocumentFileTypeFormatExperimental = SourceS3UpdateDocumentFileTypeFormatExperimental{} - if err := utils.UnmarshalJSON(data, &sourceS3UpdateDocumentFileTypeFormatExperimental, "", true, true); err == nil { - u.SourceS3UpdateDocumentFileTypeFormatExperimental = &sourceS3UpdateDocumentFileTypeFormatExperimental - u.Type = SourceS3UpdateFormatTypeSourceS3UpdateDocumentFileTypeFormatExperimental + var sourceS3UpdateUnstructuredDocumentFormat SourceS3UpdateUnstructuredDocumentFormat = SourceS3UpdateUnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &sourceS3UpdateUnstructuredDocumentFormat, "", true, true); err == nil { + u.SourceS3UpdateUnstructuredDocumentFormat = &sourceS3UpdateUnstructuredDocumentFormat + u.Type = SourceS3UpdateFormatTypeSourceS3UpdateUnstructuredDocumentFormat return nil } @@ -1422,8 +1422,8 @@ func (u SourceS3UpdateFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceS3UpdateParquetFormat, "", true) } - if u.SourceS3UpdateDocumentFileTypeFormatExperimental != nil { - return utils.MarshalJSON(u.SourceS3UpdateDocumentFileTypeFormatExperimental, "", true) + if u.SourceS3UpdateUnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.SourceS3UpdateUnstructuredDocumentFormat, "", true) } return nil, errors.New("could not marshal union type SourceS3UpdateFormat: all fields are null") @@ -1474,6 +1474,8 @@ type SourceS3UpdateFileBasedStreamConfig struct { Name string `json:"name"` // The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. PrimaryKey *string `json:"primary_key,omitempty"` + // The number of resent files which will be used to discover the schema for this stream. + RecentNFilesToReadForSchemaDiscovery *int64 `json:"recent_n_files_to_read_for_schema_discovery,omitempty"` // When enabled, syncs will not validate or structure records against the stream's schema. Schemaless *bool `default:"false" json:"schemaless"` // The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. @@ -1540,6 +1542,13 @@ func (o *SourceS3UpdateFileBasedStreamConfig) GetPrimaryKey() *string { return o.PrimaryKey } +func (o *SourceS3UpdateFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { + if o == nil { + return nil + } + return o.RecentNFilesToReadForSchemaDiscovery +} + func (o *SourceS3UpdateFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcesavvycal.go b/internal/sdk/models/shared/sourcesavvycal.go new file mode 100644 index 000000000..91febf904 --- /dev/null +++ b/internal/sdk/models/shared/sourcesavvycal.go @@ -0,0 +1,60 @@ +// 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 Savvycal string + +const ( + SavvycalSavvycal Savvycal = "savvycal" +) + +func (e Savvycal) ToPointer() *Savvycal { + return &e +} +func (e *Savvycal) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "savvycal": + *e = Savvycal(v) + return nil + default: + return fmt.Errorf("invalid value for Savvycal: %v", v) + } +} + +type SourceSavvycal struct { + // Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private key. https://savvycal.com/developers + APIKey string `json:"api_key"` + sourceType Savvycal `const:"savvycal" json:"sourceType"` +} + +func (s SourceSavvycal) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceSavvycal) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceSavvycal) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceSavvycal) GetSourceType() Savvycal { + return SavvycalSavvycal +} diff --git a/internal/sdk/models/shared/sourcesavvycalcreaterequest.go b/internal/sdk/models/shared/sourcesavvycalcreaterequest.go new file mode 100644 index 000000000..8b300237b --- /dev/null +++ b/internal/sdk/models/shared/sourcesavvycalcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceSavvycalCreateRequest struct { + Configuration SourceSavvycal `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 *SourceSavvycalCreateRequest) GetConfiguration() SourceSavvycal { + if o == nil { + return SourceSavvycal{} + } + return o.Configuration +} + +func (o *SourceSavvycalCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceSavvycalCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceSavvycalCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceSavvycalCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcesavvycalputrequest.go b/internal/sdk/models/shared/sourcesavvycalputrequest.go new file mode 100644 index 000000000..fc8c75857 --- /dev/null +++ b/internal/sdk/models/shared/sourcesavvycalputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceSavvycalPutRequest struct { + Configuration SourceSavvycalUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceSavvycalPutRequest) GetConfiguration() SourceSavvycalUpdate { + if o == nil { + return SourceSavvycalUpdate{} + } + return o.Configuration +} + +func (o *SourceSavvycalPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceSavvycalPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcesavvycalupdate.go b/internal/sdk/models/shared/sourcesavvycalupdate.go new file mode 100644 index 000000000..0ff64802d --- /dev/null +++ b/internal/sdk/models/shared/sourcesavvycalupdate.go @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceSavvycalUpdate struct { + // Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private key. https://savvycal.com/developers + APIKey string `json:"api_key"` +} + +func (o *SourceSavvycalUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} diff --git a/internal/sdk/models/shared/sourcescryfall.go b/internal/sdk/models/shared/sourcescryfall.go new file mode 100644 index 000000000..26b445ed0 --- /dev/null +++ b/internal/sdk/models/shared/sourcescryfall.go @@ -0,0 +1,51 @@ +// 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 Scryfall string + +const ( + ScryfallScryfall Scryfall = "scryfall" +) + +func (e Scryfall) ToPointer() *Scryfall { + return &e +} +func (e *Scryfall) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "scryfall": + *e = Scryfall(v) + return nil + default: + return fmt.Errorf("invalid value for Scryfall: %v", v) + } +} + +type SourceScryfall struct { + sourceType Scryfall `const:"scryfall" json:"sourceType"` +} + +func (s SourceScryfall) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceScryfall) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceScryfall) GetSourceType() Scryfall { + return ScryfallScryfall +} diff --git a/internal/sdk/models/shared/sourcescryfallcreaterequest.go b/internal/sdk/models/shared/sourcescryfallcreaterequest.go new file mode 100644 index 000000000..db963857b --- /dev/null +++ b/internal/sdk/models/shared/sourcescryfallcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceScryfallCreateRequest struct { + Configuration SourceScryfall `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 *SourceScryfallCreateRequest) GetConfiguration() SourceScryfall { + if o == nil { + return SourceScryfall{} + } + return o.Configuration +} + +func (o *SourceScryfallCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceScryfallCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceScryfallCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceScryfallCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcescryfallputrequest.go b/internal/sdk/models/shared/sourcescryfallputrequest.go new file mode 100644 index 000000000..ffd1c7233 --- /dev/null +++ b/internal/sdk/models/shared/sourcescryfallputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceScryfallPutRequest struct { + Configuration SourceScryfallUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceScryfallPutRequest) GetConfiguration() SourceScryfallUpdate { + if o == nil { + return SourceScryfallUpdate{} + } + return o.Configuration +} + +func (o *SourceScryfallPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceScryfallPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcescryfallupdate.go b/internal/sdk/models/shared/sourcescryfallupdate.go new file mode 100644 index 000000000..1988dffd5 --- /dev/null +++ b/internal/sdk/models/shared/sourcescryfallupdate.go @@ -0,0 +1,6 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceScryfallUpdate struct { +} diff --git a/internal/sdk/models/shared/sourcesftpbulk.go b/internal/sdk/models/shared/sourcesftpbulk.go index 0ff37b83b..1fab4cd5d 100644 --- a/internal/sdk/models/shared/sourcesftpbulk.go +++ b/internal/sdk/models/shared/sourcesftpbulk.go @@ -199,6 +199,48 @@ func (e *SftpBulk) UnmarshalJSON(data []byte) error { } } +type SourceSftpBulkSchemasStreamsFormatFormat6Filetype string + +const ( + SourceSftpBulkSchemasStreamsFormatFormat6FiletypeExcel SourceSftpBulkSchemasStreamsFormatFormat6Filetype = "excel" +) + +func (e SourceSftpBulkSchemasStreamsFormatFormat6Filetype) ToPointer() *SourceSftpBulkSchemasStreamsFormatFormat6Filetype { + return &e +} +func (e *SourceSftpBulkSchemasStreamsFormatFormat6Filetype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "excel": + *e = SourceSftpBulkSchemasStreamsFormatFormat6Filetype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceSftpBulkSchemasStreamsFormatFormat6Filetype: %v", v) + } +} + +type SourceSftpBulkExcelFormat struct { + filetype *SourceSftpBulkSchemasStreamsFormatFormat6Filetype `const:"excel" json:"filetype"` +} + +func (s SourceSftpBulkExcelFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceSftpBulkExcelFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceSftpBulkExcelFormat) GetFiletype() *SourceSftpBulkSchemasStreamsFormatFormat6Filetype { + return SourceSftpBulkSchemasStreamsFormatFormat6FiletypeExcel.ToPointer() +} + type SourceSftpBulkSchemasStreamsFormatFormatFiletype string const ( @@ -453,8 +495,8 @@ func (e *SourceSftpBulkParsingStrategy) UnmarshalJSON(data []byte) error { } } -// SourceSftpBulkDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceSftpBulkDocumentFileTypeFormatExperimental struct { +// SourceSftpBulkUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceSftpBulkUnstructuredDocumentFormat struct { filetype *SourceSftpBulkSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceSftpBulkProcessing `json:"processing,omitempty"` @@ -464,36 +506,36 @@ type SourceSftpBulkDocumentFileTypeFormatExperimental struct { Strategy *SourceSftpBulkParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceSftpBulkDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { +func (s SourceSftpBulkUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceSftpBulkDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { +func (s *SourceSftpBulkUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceSftpBulkDocumentFileTypeFormatExperimental) GetFiletype() *SourceSftpBulkSchemasStreamsFormatFormatFiletype { +func (o *SourceSftpBulkUnstructuredDocumentFormat) GetFiletype() *SourceSftpBulkSchemasStreamsFormatFormatFiletype { return SourceSftpBulkSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *SourceSftpBulkDocumentFileTypeFormatExperimental) GetProcessing() *SourceSftpBulkProcessing { +func (o *SourceSftpBulkUnstructuredDocumentFormat) GetProcessing() *SourceSftpBulkProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceSftpBulkDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { +func (o *SourceSftpBulkUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceSftpBulkDocumentFileTypeFormatExperimental) GetStrategy() *SourceSftpBulkParsingStrategy { +func (o *SourceSftpBulkUnstructuredDocumentFormat) GetStrategy() *SourceSftpBulkParsingStrategy { if o == nil { return nil } @@ -1063,20 +1105,22 @@ func (o *SourceSftpBulkAvroFormat) GetFiletype() *SourceSftpBulkFiletype { type SourceSftpBulkFormatType string const ( - SourceSftpBulkFormatTypeSourceSftpBulkAvroFormat SourceSftpBulkFormatType = "source-sftp-bulk_Avro Format" - SourceSftpBulkFormatTypeSourceSftpBulkCSVFormat SourceSftpBulkFormatType = "source-sftp-bulk_CSV Format" - SourceSftpBulkFormatTypeSourceSftpBulkJsonlFormat SourceSftpBulkFormatType = "source-sftp-bulk_Jsonl Format" - SourceSftpBulkFormatTypeSourceSftpBulkParquetFormat SourceSftpBulkFormatType = "source-sftp-bulk_Parquet Format" - SourceSftpBulkFormatTypeSourceSftpBulkDocumentFileTypeFormatExperimental SourceSftpBulkFormatType = "source-sftp-bulk_Document File Type Format (Experimental)" + SourceSftpBulkFormatTypeSourceSftpBulkAvroFormat SourceSftpBulkFormatType = "source-sftp-bulk_Avro Format" + SourceSftpBulkFormatTypeSourceSftpBulkCSVFormat SourceSftpBulkFormatType = "source-sftp-bulk_CSV Format" + SourceSftpBulkFormatTypeSourceSftpBulkJsonlFormat SourceSftpBulkFormatType = "source-sftp-bulk_Jsonl Format" + SourceSftpBulkFormatTypeSourceSftpBulkParquetFormat SourceSftpBulkFormatType = "source-sftp-bulk_Parquet Format" + SourceSftpBulkFormatTypeSourceSftpBulkUnstructuredDocumentFormat SourceSftpBulkFormatType = "source-sftp-bulk_Unstructured Document Format" + SourceSftpBulkFormatTypeSourceSftpBulkExcelFormat SourceSftpBulkFormatType = "source-sftp-bulk_Excel Format" ) // SourceSftpBulkFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceSftpBulkFormat struct { - SourceSftpBulkAvroFormat *SourceSftpBulkAvroFormat - SourceSftpBulkCSVFormat *SourceSftpBulkCSVFormat - SourceSftpBulkJsonlFormat *SourceSftpBulkJsonlFormat - SourceSftpBulkParquetFormat *SourceSftpBulkParquetFormat - SourceSftpBulkDocumentFileTypeFormatExperimental *SourceSftpBulkDocumentFileTypeFormatExperimental + SourceSftpBulkAvroFormat *SourceSftpBulkAvroFormat + SourceSftpBulkCSVFormat *SourceSftpBulkCSVFormat + SourceSftpBulkJsonlFormat *SourceSftpBulkJsonlFormat + SourceSftpBulkParquetFormat *SourceSftpBulkParquetFormat + SourceSftpBulkUnstructuredDocumentFormat *SourceSftpBulkUnstructuredDocumentFormat + SourceSftpBulkExcelFormat *SourceSftpBulkExcelFormat Type SourceSftpBulkFormatType } @@ -1117,12 +1161,21 @@ func CreateSourceSftpBulkFormatSourceSftpBulkParquetFormat(sourceSftpBulkParquet } } -func CreateSourceSftpBulkFormatSourceSftpBulkDocumentFileTypeFormatExperimental(sourceSftpBulkDocumentFileTypeFormatExperimental SourceSftpBulkDocumentFileTypeFormatExperimental) SourceSftpBulkFormat { - typ := SourceSftpBulkFormatTypeSourceSftpBulkDocumentFileTypeFormatExperimental +func CreateSourceSftpBulkFormatSourceSftpBulkUnstructuredDocumentFormat(sourceSftpBulkUnstructuredDocumentFormat SourceSftpBulkUnstructuredDocumentFormat) SourceSftpBulkFormat { + typ := SourceSftpBulkFormatTypeSourceSftpBulkUnstructuredDocumentFormat + + return SourceSftpBulkFormat{ + SourceSftpBulkUnstructuredDocumentFormat: &sourceSftpBulkUnstructuredDocumentFormat, + Type: typ, + } +} + +func CreateSourceSftpBulkFormatSourceSftpBulkExcelFormat(sourceSftpBulkExcelFormat SourceSftpBulkExcelFormat) SourceSftpBulkFormat { + typ := SourceSftpBulkFormatTypeSourceSftpBulkExcelFormat return SourceSftpBulkFormat{ - SourceSftpBulkDocumentFileTypeFormatExperimental: &sourceSftpBulkDocumentFileTypeFormatExperimental, - Type: typ, + SourceSftpBulkExcelFormat: &sourceSftpBulkExcelFormat, + Type: typ, } } @@ -1135,6 +1188,13 @@ func (u *SourceSftpBulkFormat) UnmarshalJSON(data []byte) error { return nil } + var sourceSftpBulkExcelFormat SourceSftpBulkExcelFormat = SourceSftpBulkExcelFormat{} + if err := utils.UnmarshalJSON(data, &sourceSftpBulkExcelFormat, "", true, true); err == nil { + u.SourceSftpBulkExcelFormat = &sourceSftpBulkExcelFormat + u.Type = SourceSftpBulkFormatTypeSourceSftpBulkExcelFormat + return nil + } + var sourceSftpBulkAvroFormat SourceSftpBulkAvroFormat = SourceSftpBulkAvroFormat{} if err := utils.UnmarshalJSON(data, &sourceSftpBulkAvroFormat, "", true, true); err == nil { u.SourceSftpBulkAvroFormat = &sourceSftpBulkAvroFormat @@ -1149,10 +1209,10 @@ func (u *SourceSftpBulkFormat) UnmarshalJSON(data []byte) error { return nil } - var sourceSftpBulkDocumentFileTypeFormatExperimental SourceSftpBulkDocumentFileTypeFormatExperimental = SourceSftpBulkDocumentFileTypeFormatExperimental{} - if err := utils.UnmarshalJSON(data, &sourceSftpBulkDocumentFileTypeFormatExperimental, "", true, true); err == nil { - u.SourceSftpBulkDocumentFileTypeFormatExperimental = &sourceSftpBulkDocumentFileTypeFormatExperimental - u.Type = SourceSftpBulkFormatTypeSourceSftpBulkDocumentFileTypeFormatExperimental + var sourceSftpBulkUnstructuredDocumentFormat SourceSftpBulkUnstructuredDocumentFormat = SourceSftpBulkUnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &sourceSftpBulkUnstructuredDocumentFormat, "", true, true); err == nil { + u.SourceSftpBulkUnstructuredDocumentFormat = &sourceSftpBulkUnstructuredDocumentFormat + u.Type = SourceSftpBulkFormatTypeSourceSftpBulkUnstructuredDocumentFormat return nil } @@ -1183,8 +1243,12 @@ func (u SourceSftpBulkFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceSftpBulkParquetFormat, "", true) } - if u.SourceSftpBulkDocumentFileTypeFormatExperimental != nil { - return utils.MarshalJSON(u.SourceSftpBulkDocumentFileTypeFormatExperimental, "", true) + if u.SourceSftpBulkUnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.SourceSftpBulkUnstructuredDocumentFormat, "", true) + } + + if u.SourceSftpBulkExcelFormat != nil { + return utils.MarshalJSON(u.SourceSftpBulkExcelFormat, "", true) } return nil, errors.New("could not marshal union type SourceSftpBulkFormat: all fields are null") @@ -1235,6 +1299,8 @@ type SourceSftpBulkFileBasedStreamConfig struct { Name string `json:"name"` // The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. PrimaryKey *string `json:"primary_key,omitempty"` + // The number of resent files which will be used to discover the schema for this stream. + RecentNFilesToReadForSchemaDiscovery *int64 `json:"recent_n_files_to_read_for_schema_discovery,omitempty"` // When enabled, syncs will not validate or structure records against the stream's schema. Schemaless *bool `default:"false" json:"schemaless"` // The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. @@ -1301,6 +1367,13 @@ func (o *SourceSftpBulkFileBasedStreamConfig) GetPrimaryKey() *string { return o.PrimaryKey } +func (o *SourceSftpBulkFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { + if o == nil { + return nil + } + return o.RecentNFilesToReadForSchemaDiscovery +} + func (o *SourceSftpBulkFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcesftpbulkupdate.go b/internal/sdk/models/shared/sourcesftpbulkupdate.go index e1718e6cd..9c484f4ab 100644 --- a/internal/sdk/models/shared/sourcesftpbulkupdate.go +++ b/internal/sdk/models/shared/sourcesftpbulkupdate.go @@ -176,6 +176,48 @@ func (u SourceSftpBulkUpdateAuthentication) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type SourceSftpBulkUpdateAuthentication: all fields are null") } +type SourceSftpBulkUpdateSchemasStreamsFormatFormat6Filetype string + +const ( + SourceSftpBulkUpdateSchemasStreamsFormatFormat6FiletypeExcel SourceSftpBulkUpdateSchemasStreamsFormatFormat6Filetype = "excel" +) + +func (e SourceSftpBulkUpdateSchemasStreamsFormatFormat6Filetype) ToPointer() *SourceSftpBulkUpdateSchemasStreamsFormatFormat6Filetype { + return &e +} +func (e *SourceSftpBulkUpdateSchemasStreamsFormatFormat6Filetype) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "excel": + *e = SourceSftpBulkUpdateSchemasStreamsFormatFormat6Filetype(v) + return nil + default: + return fmt.Errorf("invalid value for SourceSftpBulkUpdateSchemasStreamsFormatFormat6Filetype: %v", v) + } +} + +type SourceSftpBulkUpdateExcelFormat struct { + filetype *SourceSftpBulkUpdateSchemasStreamsFormatFormat6Filetype `const:"excel" json:"filetype"` +} + +func (s SourceSftpBulkUpdateExcelFormat) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceSftpBulkUpdateExcelFormat) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceSftpBulkUpdateExcelFormat) GetFiletype() *SourceSftpBulkUpdateSchemasStreamsFormatFormat6Filetype { + return SourceSftpBulkUpdateSchemasStreamsFormatFormat6FiletypeExcel.ToPointer() +} + type SourceSftpBulkUpdateSchemasStreamsFormatFormatFiletype string const ( @@ -222,68 +264,68 @@ func (e *SourceSftpBulkUpdateSchemasMode) UnmarshalJSON(data []byte) error { } } -type APIParameterConfigModel struct { +type SourceSftpBulkUpdateAPIParameterConfigModel struct { // The name of the unstructured API parameter to use Name string `json:"name"` // The value of the parameter Value string `json:"value"` } -func (o *APIParameterConfigModel) GetName() string { +func (o *SourceSftpBulkUpdateAPIParameterConfigModel) GetName() string { if o == nil { return "" } return o.Name } -func (o *APIParameterConfigModel) GetValue() string { +func (o *SourceSftpBulkUpdateAPIParameterConfigModel) GetValue() string { if o == nil { return "" } return o.Value } -// ViaAPI - Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. -type ViaAPI struct { +// SourceSftpBulkUpdateViaAPI - Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. +type SourceSftpBulkUpdateViaAPI struct { // The API key to use matching the environment APIKey *string `default:"" json:"api_key"` // The URL of the unstructured API to use APIURL *string `default:"https://api.unstructured.io" json:"api_url"` mode *SourceSftpBulkUpdateSchemasMode `const:"api" json:"mode"` // List of parameters send to the API - Parameters []APIParameterConfigModel `json:"parameters,omitempty"` + Parameters []SourceSftpBulkUpdateAPIParameterConfigModel `json:"parameters,omitempty"` } -func (v ViaAPI) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(v, "", false) +func (s SourceSftpBulkUpdateViaAPI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) } -func (v *ViaAPI) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &v, "", false, true); err != nil { +func (s *SourceSftpBulkUpdateViaAPI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *ViaAPI) GetAPIKey() *string { +func (o *SourceSftpBulkUpdateViaAPI) GetAPIKey() *string { if o == nil { return nil } return o.APIKey } -func (o *ViaAPI) GetAPIURL() *string { +func (o *SourceSftpBulkUpdateViaAPI) GetAPIURL() *string { if o == nil { return nil } return o.APIURL } -func (o *ViaAPI) GetMode() *SourceSftpBulkUpdateSchemasMode { +func (o *SourceSftpBulkUpdateViaAPI) GetMode() *SourceSftpBulkUpdateSchemasMode { return SourceSftpBulkUpdateSchemasModeAPI.ToPointer() } -func (o *ViaAPI) GetParameters() []APIParameterConfigModel { +func (o *SourceSftpBulkUpdateViaAPI) GetParameters() []SourceSftpBulkUpdateAPIParameterConfigModel { if o == nil { return nil } @@ -336,14 +378,14 @@ func (o *SourceSftpBulkUpdateLocal) GetMode() *SourceSftpBulkUpdateMode { type SourceSftpBulkUpdateProcessingType string const ( - SourceSftpBulkUpdateProcessingTypeSourceSftpBulkUpdateLocal SourceSftpBulkUpdateProcessingType = "source-sftp-bulk-update_Local" - SourceSftpBulkUpdateProcessingTypeViaAPI SourceSftpBulkUpdateProcessingType = "via API" + SourceSftpBulkUpdateProcessingTypeSourceSftpBulkUpdateLocal SourceSftpBulkUpdateProcessingType = "source-sftp-bulk-update_Local" + SourceSftpBulkUpdateProcessingTypeSourceSftpBulkUpdateViaAPI SourceSftpBulkUpdateProcessingType = "source-sftp-bulk-update_via API" ) // SourceSftpBulkUpdateProcessing - Processing configuration type SourceSftpBulkUpdateProcessing struct { - SourceSftpBulkUpdateLocal *SourceSftpBulkUpdateLocal - ViaAPI *ViaAPI + SourceSftpBulkUpdateLocal *SourceSftpBulkUpdateLocal + SourceSftpBulkUpdateViaAPI *SourceSftpBulkUpdateViaAPI Type SourceSftpBulkUpdateProcessingType } @@ -357,12 +399,12 @@ func CreateSourceSftpBulkUpdateProcessingSourceSftpBulkUpdateLocal(sourceSftpBul } } -func CreateSourceSftpBulkUpdateProcessingViaAPI(viaAPI ViaAPI) SourceSftpBulkUpdateProcessing { - typ := SourceSftpBulkUpdateProcessingTypeViaAPI +func CreateSourceSftpBulkUpdateProcessingSourceSftpBulkUpdateViaAPI(sourceSftpBulkUpdateViaAPI SourceSftpBulkUpdateViaAPI) SourceSftpBulkUpdateProcessing { + typ := SourceSftpBulkUpdateProcessingTypeSourceSftpBulkUpdateViaAPI return SourceSftpBulkUpdateProcessing{ - ViaAPI: &viaAPI, - Type: typ, + SourceSftpBulkUpdateViaAPI: &sourceSftpBulkUpdateViaAPI, + Type: typ, } } @@ -375,10 +417,10 @@ func (u *SourceSftpBulkUpdateProcessing) UnmarshalJSON(data []byte) error { return nil } - var viaAPI ViaAPI = ViaAPI{} - if err := utils.UnmarshalJSON(data, &viaAPI, "", true, true); err == nil { - u.ViaAPI = &viaAPI - u.Type = SourceSftpBulkUpdateProcessingTypeViaAPI + var sourceSftpBulkUpdateViaAPI SourceSftpBulkUpdateViaAPI = SourceSftpBulkUpdateViaAPI{} + if err := utils.UnmarshalJSON(data, &sourceSftpBulkUpdateViaAPI, "", true, true); err == nil { + u.SourceSftpBulkUpdateViaAPI = &sourceSftpBulkUpdateViaAPI + u.Type = SourceSftpBulkUpdateProcessingTypeSourceSftpBulkUpdateViaAPI return nil } @@ -390,8 +432,8 @@ func (u SourceSftpBulkUpdateProcessing) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceSftpBulkUpdateLocal, "", true) } - if u.ViaAPI != nil { - return utils.MarshalJSON(u.ViaAPI, "", true) + if u.SourceSftpBulkUpdateViaAPI != nil { + return utils.MarshalJSON(u.SourceSftpBulkUpdateViaAPI, "", true) } return nil, errors.New("could not marshal union type SourceSftpBulkUpdateProcessing: all fields are null") @@ -430,8 +472,8 @@ func (e *SourceSftpBulkUpdateParsingStrategy) UnmarshalJSON(data []byte) error { } } -// SourceSftpBulkUpdateDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceSftpBulkUpdateDocumentFileTypeFormatExperimental struct { +// SourceSftpBulkUpdateUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceSftpBulkUpdateUnstructuredDocumentFormat struct { filetype *SourceSftpBulkUpdateSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceSftpBulkUpdateProcessing `json:"processing,omitempty"` @@ -441,36 +483,36 @@ type SourceSftpBulkUpdateDocumentFileTypeFormatExperimental struct { Strategy *SourceSftpBulkUpdateParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceSftpBulkUpdateDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { +func (s SourceSftpBulkUpdateUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceSftpBulkUpdateDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { +func (s *SourceSftpBulkUpdateUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceSftpBulkUpdateDocumentFileTypeFormatExperimental) GetFiletype() *SourceSftpBulkUpdateSchemasStreamsFormatFormatFiletype { +func (o *SourceSftpBulkUpdateUnstructuredDocumentFormat) GetFiletype() *SourceSftpBulkUpdateSchemasStreamsFormatFormatFiletype { return SourceSftpBulkUpdateSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *SourceSftpBulkUpdateDocumentFileTypeFormatExperimental) GetProcessing() *SourceSftpBulkUpdateProcessing { +func (o *SourceSftpBulkUpdateUnstructuredDocumentFormat) GetProcessing() *SourceSftpBulkUpdateProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceSftpBulkUpdateDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { +func (o *SourceSftpBulkUpdateUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceSftpBulkUpdateDocumentFileTypeFormatExperimental) GetStrategy() *SourceSftpBulkUpdateParsingStrategy { +func (o *SourceSftpBulkUpdateUnstructuredDocumentFormat) GetStrategy() *SourceSftpBulkUpdateParsingStrategy { if o == nil { return nil } @@ -1040,20 +1082,22 @@ func (o *SourceSftpBulkUpdateAvroFormat) GetFiletype() *SourceSftpBulkUpdateFile type SourceSftpBulkUpdateFormatType string const ( - SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateAvroFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_Avro Format" - SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateCSVFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_CSV Format" - SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateJsonlFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_Jsonl Format" - SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateParquetFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_Parquet Format" - SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateDocumentFileTypeFormatExperimental SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_Document File Type Format (Experimental)" + SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateAvroFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_Avro Format" + SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateCSVFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_CSV Format" + SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateJsonlFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_Jsonl Format" + SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateParquetFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_Parquet Format" + SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateUnstructuredDocumentFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_Unstructured Document Format" + SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateExcelFormat SourceSftpBulkUpdateFormatType = "source-sftp-bulk-update_Excel Format" ) // SourceSftpBulkUpdateFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceSftpBulkUpdateFormat struct { - SourceSftpBulkUpdateAvroFormat *SourceSftpBulkUpdateAvroFormat - SourceSftpBulkUpdateCSVFormat *SourceSftpBulkUpdateCSVFormat - SourceSftpBulkUpdateJsonlFormat *SourceSftpBulkUpdateJsonlFormat - SourceSftpBulkUpdateParquetFormat *SourceSftpBulkUpdateParquetFormat - SourceSftpBulkUpdateDocumentFileTypeFormatExperimental *SourceSftpBulkUpdateDocumentFileTypeFormatExperimental + SourceSftpBulkUpdateAvroFormat *SourceSftpBulkUpdateAvroFormat + SourceSftpBulkUpdateCSVFormat *SourceSftpBulkUpdateCSVFormat + SourceSftpBulkUpdateJsonlFormat *SourceSftpBulkUpdateJsonlFormat + SourceSftpBulkUpdateParquetFormat *SourceSftpBulkUpdateParquetFormat + SourceSftpBulkUpdateUnstructuredDocumentFormat *SourceSftpBulkUpdateUnstructuredDocumentFormat + SourceSftpBulkUpdateExcelFormat *SourceSftpBulkUpdateExcelFormat Type SourceSftpBulkUpdateFormatType } @@ -1094,15 +1138,24 @@ func CreateSourceSftpBulkUpdateFormatSourceSftpBulkUpdateParquetFormat(sourceSft } } -func CreateSourceSftpBulkUpdateFormatSourceSftpBulkUpdateDocumentFileTypeFormatExperimental(sourceSftpBulkUpdateDocumentFileTypeFormatExperimental SourceSftpBulkUpdateDocumentFileTypeFormatExperimental) SourceSftpBulkUpdateFormat { - typ := SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateDocumentFileTypeFormatExperimental +func CreateSourceSftpBulkUpdateFormatSourceSftpBulkUpdateUnstructuredDocumentFormat(sourceSftpBulkUpdateUnstructuredDocumentFormat SourceSftpBulkUpdateUnstructuredDocumentFormat) SourceSftpBulkUpdateFormat { + typ := SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateUnstructuredDocumentFormat return SourceSftpBulkUpdateFormat{ - SourceSftpBulkUpdateDocumentFileTypeFormatExperimental: &sourceSftpBulkUpdateDocumentFileTypeFormatExperimental, + SourceSftpBulkUpdateUnstructuredDocumentFormat: &sourceSftpBulkUpdateUnstructuredDocumentFormat, Type: typ, } } +func CreateSourceSftpBulkUpdateFormatSourceSftpBulkUpdateExcelFormat(sourceSftpBulkUpdateExcelFormat SourceSftpBulkUpdateExcelFormat) SourceSftpBulkUpdateFormat { + typ := SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateExcelFormat + + return SourceSftpBulkUpdateFormat{ + SourceSftpBulkUpdateExcelFormat: &sourceSftpBulkUpdateExcelFormat, + Type: typ, + } +} + func (u *SourceSftpBulkUpdateFormat) UnmarshalJSON(data []byte) error { var sourceSftpBulkUpdateJsonlFormat SourceSftpBulkUpdateJsonlFormat = SourceSftpBulkUpdateJsonlFormat{} @@ -1112,6 +1165,13 @@ func (u *SourceSftpBulkUpdateFormat) UnmarshalJSON(data []byte) error { return nil } + var sourceSftpBulkUpdateExcelFormat SourceSftpBulkUpdateExcelFormat = SourceSftpBulkUpdateExcelFormat{} + if err := utils.UnmarshalJSON(data, &sourceSftpBulkUpdateExcelFormat, "", true, true); err == nil { + u.SourceSftpBulkUpdateExcelFormat = &sourceSftpBulkUpdateExcelFormat + u.Type = SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateExcelFormat + return nil + } + var sourceSftpBulkUpdateAvroFormat SourceSftpBulkUpdateAvroFormat = SourceSftpBulkUpdateAvroFormat{} if err := utils.UnmarshalJSON(data, &sourceSftpBulkUpdateAvroFormat, "", true, true); err == nil { u.SourceSftpBulkUpdateAvroFormat = &sourceSftpBulkUpdateAvroFormat @@ -1126,10 +1186,10 @@ func (u *SourceSftpBulkUpdateFormat) UnmarshalJSON(data []byte) error { return nil } - var sourceSftpBulkUpdateDocumentFileTypeFormatExperimental SourceSftpBulkUpdateDocumentFileTypeFormatExperimental = SourceSftpBulkUpdateDocumentFileTypeFormatExperimental{} - if err := utils.UnmarshalJSON(data, &sourceSftpBulkUpdateDocumentFileTypeFormatExperimental, "", true, true); err == nil { - u.SourceSftpBulkUpdateDocumentFileTypeFormatExperimental = &sourceSftpBulkUpdateDocumentFileTypeFormatExperimental - u.Type = SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateDocumentFileTypeFormatExperimental + var sourceSftpBulkUpdateUnstructuredDocumentFormat SourceSftpBulkUpdateUnstructuredDocumentFormat = SourceSftpBulkUpdateUnstructuredDocumentFormat{} + if err := utils.UnmarshalJSON(data, &sourceSftpBulkUpdateUnstructuredDocumentFormat, "", true, true); err == nil { + u.SourceSftpBulkUpdateUnstructuredDocumentFormat = &sourceSftpBulkUpdateUnstructuredDocumentFormat + u.Type = SourceSftpBulkUpdateFormatTypeSourceSftpBulkUpdateUnstructuredDocumentFormat return nil } @@ -1160,8 +1220,12 @@ func (u SourceSftpBulkUpdateFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceSftpBulkUpdateParquetFormat, "", true) } - if u.SourceSftpBulkUpdateDocumentFileTypeFormatExperimental != nil { - return utils.MarshalJSON(u.SourceSftpBulkUpdateDocumentFileTypeFormatExperimental, "", true) + if u.SourceSftpBulkUpdateUnstructuredDocumentFormat != nil { + return utils.MarshalJSON(u.SourceSftpBulkUpdateUnstructuredDocumentFormat, "", true) + } + + if u.SourceSftpBulkUpdateExcelFormat != nil { + return utils.MarshalJSON(u.SourceSftpBulkUpdateExcelFormat, "", true) } return nil, errors.New("could not marshal union type SourceSftpBulkUpdateFormat: all fields are null") @@ -1212,6 +1276,8 @@ type SourceSftpBulkUpdateFileBasedStreamConfig struct { Name string `json:"name"` // The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. PrimaryKey *string `json:"primary_key,omitempty"` + // The number of resent files which will be used to discover the schema for this stream. + RecentNFilesToReadForSchemaDiscovery *int64 `json:"recent_n_files_to_read_for_schema_discovery,omitempty"` // When enabled, syncs will not validate or structure records against the stream's schema. Schemaless *bool `default:"false" json:"schemaless"` // The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. @@ -1278,6 +1344,13 @@ func (o *SourceSftpBulkUpdateFileBasedStreamConfig) GetPrimaryKey() *string { return o.PrimaryKey } +func (o *SourceSftpBulkUpdateFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { + if o == nil { + return nil + } + return o.RecentNFilesToReadForSchemaDiscovery +} + func (o *SourceSftpBulkUpdateFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourceshopify.go b/internal/sdk/models/shared/sourceshopify.go index 2cb135dd8..2bc0317fc 100644 --- a/internal/sdk/models/shared/sourceshopify.go +++ b/internal/sdk/models/shared/sourceshopify.go @@ -226,6 +226,12 @@ 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 threshold, after which the single BULK Job should be checkpointed. + JobCheckpointInterval *int64 `default:"100000" json:"job_checkpoint_interval"` + // If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). + JobProductVariantsIncludePresPrices *bool `default:"true" json:"job_product_variants_include_pres_prices"` + // 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:"7200" 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"` @@ -265,6 +271,27 @@ func (o *SourceShopify) GetFetchTransactionsUserID() *bool { return o.FetchTransactionsUserID } +func (o *SourceShopify) GetJobCheckpointInterval() *int64 { + if o == nil { + return nil + } + return o.JobCheckpointInterval +} + +func (o *SourceShopify) GetJobProductVariantsIncludePresPrices() *bool { + if o == nil { + return nil + } + return o.JobProductVariantsIncludePresPrices +} + +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 33cf696f4..94b7a572a 100644 --- a/internal/sdk/models/shared/sourceshopifyupdate.go +++ b/internal/sdk/models/shared/sourceshopifyupdate.go @@ -203,6 +203,12 @@ 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 threshold, after which the single BULK Job should be checkpointed. + JobCheckpointInterval *int64 `default:"100000" json:"job_checkpoint_interval"` + // If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). + JobProductVariantsIncludePresPrices *bool `default:"true" json:"job_product_variants_include_pres_prices"` + // 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:"7200" 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. @@ -241,6 +247,27 @@ func (o *SourceShopifyUpdate) GetFetchTransactionsUserID() *bool { return o.FetchTransactionsUserID } +func (o *SourceShopifyUpdate) GetJobCheckpointInterval() *int64 { + if o == nil { + return nil + } + return o.JobCheckpointInterval +} + +func (o *SourceShopifyUpdate) GetJobProductVariantsIncludePresPrices() *bool { + if o == nil { + return nil + } + return o.JobProductVariantsIncludePresPrices +} + +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 43fc64fc4..248bb36d5 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 SourceSnowflakeSchemasAuthType string +type SourceSnowflakeSchemasCredentialsAuthType string const ( - SourceSnowflakeSchemasAuthTypeUsernamePassword SourceSnowflakeSchemasAuthType = "username/password" + SourceSnowflakeSchemasCredentialsAuthTypeUsernamePassword SourceSnowflakeSchemasCredentialsAuthType = "username/password" ) -func (e SourceSnowflakeSchemasAuthType) ToPointer() *SourceSnowflakeSchemasAuthType { +func (e SourceSnowflakeSchemasCredentialsAuthType) ToPointer() *SourceSnowflakeSchemasCredentialsAuthType { return &e } -func (e *SourceSnowflakeSchemasAuthType) UnmarshalJSON(data []byte) error { +func (e *SourceSnowflakeSchemasCredentialsAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "username/password": - *e = SourceSnowflakeSchemasAuthType(v) + *e = SourceSnowflakeSchemasCredentialsAuthType(v) return nil default: - return fmt.Errorf("invalid value for SourceSnowflakeSchemasAuthType: %v", v) + return fmt.Errorf("invalid value for SourceSnowflakeSchemasCredentialsAuthType: %v", v) } } type SourceSnowflakeUsernameAndPassword struct { - authType SourceSnowflakeSchemasAuthType `const:"username/password" json:"auth_type"` + authType SourceSnowflakeSchemasCredentialsAuthType `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() SourceSnowflakeSchemasAuthType { - return SourceSnowflakeSchemasAuthTypeUsernamePassword +func (o *SourceSnowflakeUsernameAndPassword) GetAuthType() SourceSnowflakeSchemasCredentialsAuthType { + return SourceSnowflakeSchemasCredentialsAuthTypeUsernamePassword } func (o *SourceSnowflakeUsernameAndPassword) GetPassword() string { @@ -69,6 +69,75 @@ 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 ( @@ -150,13 +219,15 @@ func (o *SourceSnowflakeOAuth20) GetRefreshToken() *string { type SourceSnowflakeAuthorizationMethodType string const ( - SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeOAuth20 SourceSnowflakeAuthorizationMethodType = "source-snowflake_OAuth2.0" - SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeUsernameAndPassword SourceSnowflakeAuthorizationMethodType = "source-snowflake_Username and Password" + SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeOAuth20 SourceSnowflakeAuthorizationMethodType = "source-snowflake_OAuth2.0" + SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeKeyPairAuthentication SourceSnowflakeAuthorizationMethodType = "source-snowflake_Key Pair Authentication" + SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeUsernameAndPassword SourceSnowflakeAuthorizationMethodType = "source-snowflake_Username and Password" ) type SourceSnowflakeAuthorizationMethod struct { - SourceSnowflakeOAuth20 *SourceSnowflakeOAuth20 - SourceSnowflakeUsernameAndPassword *SourceSnowflakeUsernameAndPassword + SourceSnowflakeOAuth20 *SourceSnowflakeOAuth20 + SourceSnowflakeKeyPairAuthentication *SourceSnowflakeKeyPairAuthentication + SourceSnowflakeUsernameAndPassword *SourceSnowflakeUsernameAndPassword Type SourceSnowflakeAuthorizationMethodType } @@ -170,6 +241,15 @@ func CreateSourceSnowflakeAuthorizationMethodSourceSnowflakeOAuth20(sourceSnowfl } } +func CreateSourceSnowflakeAuthorizationMethodSourceSnowflakeKeyPairAuthentication(sourceSnowflakeKeyPairAuthentication SourceSnowflakeKeyPairAuthentication) SourceSnowflakeAuthorizationMethod { + typ := SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeKeyPairAuthentication + + return SourceSnowflakeAuthorizationMethod{ + SourceSnowflakeKeyPairAuthentication: &sourceSnowflakeKeyPairAuthentication, + Type: typ, + } +} + func CreateSourceSnowflakeAuthorizationMethodSourceSnowflakeUsernameAndPassword(sourceSnowflakeUsernameAndPassword SourceSnowflakeUsernameAndPassword) SourceSnowflakeAuthorizationMethod { typ := SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeUsernameAndPassword @@ -188,6 +268,13 @@ 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 @@ -203,6 +290,10 @@ 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 e82637397..9e7d2b739 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 SourceSnowflakeUpdateSchemasAuthType string +type SourceSnowflakeUpdateSchemasCredentialsAuthType string const ( - SourceSnowflakeUpdateSchemasAuthTypeUsernamePassword SourceSnowflakeUpdateSchemasAuthType = "username/password" + SourceSnowflakeUpdateSchemasCredentialsAuthTypeUsernamePassword SourceSnowflakeUpdateSchemasCredentialsAuthType = "username/password" ) -func (e SourceSnowflakeUpdateSchemasAuthType) ToPointer() *SourceSnowflakeUpdateSchemasAuthType { +func (e SourceSnowflakeUpdateSchemasCredentialsAuthType) ToPointer() *SourceSnowflakeUpdateSchemasCredentialsAuthType { return &e } -func (e *SourceSnowflakeUpdateSchemasAuthType) UnmarshalJSON(data []byte) error { +func (e *SourceSnowflakeUpdateSchemasCredentialsAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "username/password": - *e = SourceSnowflakeUpdateSchemasAuthType(v) + *e = SourceSnowflakeUpdateSchemasCredentialsAuthType(v) return nil default: - return fmt.Errorf("invalid value for SourceSnowflakeUpdateSchemasAuthType: %v", v) + return fmt.Errorf("invalid value for SourceSnowflakeUpdateSchemasCredentialsAuthType: %v", v) } } type SourceSnowflakeUpdateUsernameAndPassword struct { - authType SourceSnowflakeUpdateSchemasAuthType `const:"username/password" json:"auth_type"` + authType SourceSnowflakeUpdateSchemasCredentialsAuthType `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() SourceSnowflakeUpdateSchemasAuthType { - return SourceSnowflakeUpdateSchemasAuthTypeUsernamePassword +func (o *SourceSnowflakeUpdateUsernameAndPassword) GetAuthType() SourceSnowflakeUpdateSchemasCredentialsAuthType { + return SourceSnowflakeUpdateSchemasCredentialsAuthTypeUsernamePassword } func (o *SourceSnowflakeUpdateUsernameAndPassword) GetPassword() string { @@ -69,6 +69,75 @@ 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 ( @@ -150,13 +219,15 @@ func (o *SourceSnowflakeUpdateOAuth20) GetRefreshToken() *string { type SourceSnowflakeUpdateAuthorizationMethodType string const ( - SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateOAuth20 SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_OAuth2.0" - SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateUsernameAndPassword SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_Username and Password" + SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateOAuth20 SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_OAuth2.0" + SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateKeyPairAuthentication SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_Key Pair Authentication" + SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateUsernameAndPassword SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_Username and Password" ) type SourceSnowflakeUpdateAuthorizationMethod struct { - SourceSnowflakeUpdateOAuth20 *SourceSnowflakeUpdateOAuth20 - SourceSnowflakeUpdateUsernameAndPassword *SourceSnowflakeUpdateUsernameAndPassword + SourceSnowflakeUpdateOAuth20 *SourceSnowflakeUpdateOAuth20 + SourceSnowflakeUpdateKeyPairAuthentication *SourceSnowflakeUpdateKeyPairAuthentication + SourceSnowflakeUpdateUsernameAndPassword *SourceSnowflakeUpdateUsernameAndPassword Type SourceSnowflakeUpdateAuthorizationMethodType } @@ -170,6 +241,15 @@ func CreateSourceSnowflakeUpdateAuthorizationMethodSourceSnowflakeUpdateOAuth20( } } +func CreateSourceSnowflakeUpdateAuthorizationMethodSourceSnowflakeUpdateKeyPairAuthentication(sourceSnowflakeUpdateKeyPairAuthentication SourceSnowflakeUpdateKeyPairAuthentication) SourceSnowflakeUpdateAuthorizationMethod { + typ := SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateKeyPairAuthentication + + return SourceSnowflakeUpdateAuthorizationMethod{ + SourceSnowflakeUpdateKeyPairAuthentication: &sourceSnowflakeUpdateKeyPairAuthentication, + Type: typ, + } +} + func CreateSourceSnowflakeUpdateAuthorizationMethodSourceSnowflakeUpdateUsernameAndPassword(sourceSnowflakeUpdateUsernameAndPassword SourceSnowflakeUpdateUsernameAndPassword) SourceSnowflakeUpdateAuthorizationMethod { typ := SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateUsernameAndPassword @@ -188,6 +268,13 @@ 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 @@ -203,6 +290,10 @@ 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 4eb46a032..af045c6cb 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 reports. + // Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. 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 09a9b3150..34e3f2aec 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 reports. + // Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. 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 3e1e1c0c1..eaff3af43 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. + // 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 `json:"start"` } diff --git a/internal/sdk/models/shared/sourcewikipediapageviewsupdate.go b/internal/sdk/models/shared/sourcewikipediapageviewsupdate.go index 41d4ef2d8..8a37773a1 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. + // 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 `json:"start"` } diff --git a/internal/sdk/models/shared/sourcexkcd.go b/internal/sdk/models/shared/sourcexkcd.go index 26719e5a1..6ef3f320f 100644 --- a/internal/sdk/models/shared/sourcexkcd.go +++ b/internal/sdk/models/shared/sourcexkcd.go @@ -32,7 +32,9 @@ func (e *Xkcd) UnmarshalJSON(data []byte) error { } type SourceXkcd struct { - sourceType *Xkcd `const:"xkcd" json:"sourceType,omitempty"` + // Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics + ComicNumber *string `default:"2960" json:"comic_number"` + sourceType *Xkcd `const:"xkcd" json:"sourceType,omitempty"` } func (s SourceXkcd) MarshalJSON() ([]byte, error) { @@ -46,6 +48,13 @@ func (s *SourceXkcd) UnmarshalJSON(data []byte) error { return nil } +func (o *SourceXkcd) GetComicNumber() *string { + if o == nil { + return nil + } + return o.ComicNumber +} + func (o *SourceXkcd) GetSourceType() *Xkcd { return XkcdXkcd.ToPointer() } diff --git a/internal/sdk/models/shared/sourcexkcdupdate.go b/internal/sdk/models/shared/sourcexkcdupdate.go index e1a970c1d..4634ab947 100644 --- a/internal/sdk/models/shared/sourcexkcdupdate.go +++ b/internal/sdk/models/shared/sourcexkcdupdate.go @@ -2,5 +2,29 @@ package shared +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" +) + type SourceXkcdUpdate struct { + // Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics + ComicNumber *string `default:"2960" json:"comic_number"` +} + +func (s SourceXkcdUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceXkcdUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceXkcdUpdate) GetComicNumber() *string { + if o == nil { + return nil + } + return o.ComicNumber } diff --git a/internal/sdk/sources.go b/internal/sdk/sources.go index 0114b6133..c2f90de8f 100644 --- a/internal/sdk/sources.go +++ b/internal/sdk/sources.go @@ -268,12 +268,12 @@ func (s *Sources) CreateSourceAha(ctx context.Context, request *shared.SourceAha } -// CreateSourceAircall - Create a source +// CreateSourceAirbyte - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAircall(ctx context.Context, request *shared.SourceAircallCreateRequest, opts ...operations.Option) (*operations.CreateSourceAircallResponse, error) { +func (s *Sources) CreateSourceAirbyte(ctx context.Context, request *shared.SourceAirbyteCreateRequest, opts ...operations.Option) (*operations.CreateSourceAirbyteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAircall", + OperationID: "createSourceAirbyte", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -352,7 +352,7 @@ func (s *Sources) CreateSourceAircall(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceAircallResponse{ + res := &operations.CreateSourceAirbyteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -389,133 +389,12 @@ func (s *Sources) CreateSourceAircall(ctx context.Context, request *shared.Sourc } -// CreateSourceAirtable - Create a source -// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAirtable(ctx context.Context, request *shared.SourceAirtableCreateRequest, opts ...operations.Option) (*operations.CreateSourceAirtableResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "createSourceAirtable", - 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.CreateSourceAirtableResponse{ - 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 - -} - -// CreateSourceAmazonAds - Create a source +// CreateSourceAircall - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAmazonAds(ctx context.Context, request *shared.SourceAmazonAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceAmazonAdsResponse, error) { +func (s *Sources) CreateSourceAircall(ctx context.Context, request *shared.SourceAircallCreateRequest, opts ...operations.Option) (*operations.CreateSourceAircallResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAmazonAds", + OperationID: "createSourceAircall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -594,7 +473,7 @@ func (s *Sources) CreateSourceAmazonAds(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceAmazonAdsResponse{ + res := &operations.CreateSourceAircallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -631,12 +510,12 @@ func (s *Sources) CreateSourceAmazonAds(ctx context.Context, request *shared.Sou } -// CreateSourceAmazonSellerPartner - Create a source +// CreateSourceAirtable - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAmazonSellerPartner(ctx context.Context, request *shared.SourceAmazonSellerPartnerCreateRequest, opts ...operations.Option) (*operations.CreateSourceAmazonSellerPartnerResponse, error) { +func (s *Sources) CreateSourceAirtable(ctx context.Context, request *shared.SourceAirtableCreateRequest, opts ...operations.Option) (*operations.CreateSourceAirtableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAmazonSellerPartner", + OperationID: "createSourceAirtable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -715,7 +594,7 @@ func (s *Sources) CreateSourceAmazonSellerPartner(ctx context.Context, request * } } - res := &operations.CreateSourceAmazonSellerPartnerResponse{ + res := &operations.CreateSourceAirtableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -752,12 +631,12 @@ func (s *Sources) CreateSourceAmazonSellerPartner(ctx context.Context, request * } -// CreateSourceAmazonSqs - Create a source +// CreateSourceAmazonAds - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAmazonSqs(ctx context.Context, request *shared.SourceAmazonSqsCreateRequest, opts ...operations.Option) (*operations.CreateSourceAmazonSqsResponse, error) { +func (s *Sources) CreateSourceAmazonAds(ctx context.Context, request *shared.SourceAmazonAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceAmazonAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAmazonSqs", + OperationID: "createSourceAmazonAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -836,7 +715,7 @@ func (s *Sources) CreateSourceAmazonSqs(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceAmazonSqsResponse{ + res := &operations.CreateSourceAmazonAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -873,12 +752,12 @@ func (s *Sources) CreateSourceAmazonSqs(ctx context.Context, request *shared.Sou } -// CreateSourceAmplitude - Create a source +// CreateSourceAmazonSellerPartner - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAmplitude(ctx context.Context, request *shared.SourceAmplitudeCreateRequest, opts ...operations.Option) (*operations.CreateSourceAmplitudeResponse, error) { +func (s *Sources) CreateSourceAmazonSellerPartner(ctx context.Context, request *shared.SourceAmazonSellerPartnerCreateRequest, opts ...operations.Option) (*operations.CreateSourceAmazonSellerPartnerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAmplitude", + OperationID: "createSourceAmazonSellerPartner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -957,7 +836,7 @@ func (s *Sources) CreateSourceAmplitude(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceAmplitudeResponse{ + res := &operations.CreateSourceAmazonSellerPartnerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -994,12 +873,12 @@ func (s *Sources) CreateSourceAmplitude(ctx context.Context, request *shared.Sou } -// CreateSourceApifyDataset - Create a source +// CreateSourceAmazonSqs - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceApifyDataset(ctx context.Context, request *shared.SourceApifyDatasetCreateRequest, opts ...operations.Option) (*operations.CreateSourceApifyDatasetResponse, error) { +func (s *Sources) CreateSourceAmazonSqs(ctx context.Context, request *shared.SourceAmazonSqsCreateRequest, opts ...operations.Option) (*operations.CreateSourceAmazonSqsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceApifyDataset", + OperationID: "createSourceAmazonSqs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1078,7 +957,7 @@ func (s *Sources) CreateSourceApifyDataset(ctx context.Context, request *shared. } } - res := &operations.CreateSourceApifyDatasetResponse{ + res := &operations.CreateSourceAmazonSqsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1115,12 +994,12 @@ func (s *Sources) CreateSourceApifyDataset(ctx context.Context, request *shared. } -// CreateSourceAppfollow - Create a source +// CreateSourceAmplitude - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAppfollow(ctx context.Context, request *shared.SourceAppfollowCreateRequest, opts ...operations.Option) (*operations.CreateSourceAppfollowResponse, error) { +func (s *Sources) CreateSourceAmplitude(ctx context.Context, request *shared.SourceAmplitudeCreateRequest, opts ...operations.Option) (*operations.CreateSourceAmplitudeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAppfollow", + OperationID: "createSourceAmplitude", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1199,7 +1078,7 @@ func (s *Sources) CreateSourceAppfollow(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceAppfollowResponse{ + res := &operations.CreateSourceAmplitudeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1236,12 +1115,12 @@ func (s *Sources) CreateSourceAppfollow(ctx context.Context, request *shared.Sou } -// CreateSourceAsana - Create a source +// CreateSourceApifyDataset - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAsana(ctx context.Context, request *shared.SourceAsanaCreateRequest, opts ...operations.Option) (*operations.CreateSourceAsanaResponse, error) { +func (s *Sources) CreateSourceApifyDataset(ctx context.Context, request *shared.SourceApifyDatasetCreateRequest, opts ...operations.Option) (*operations.CreateSourceApifyDatasetResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAsana", + OperationID: "createSourceApifyDataset", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1320,7 +1199,7 @@ func (s *Sources) CreateSourceAsana(ctx context.Context, request *shared.SourceA } } - res := &operations.CreateSourceAsanaResponse{ + res := &operations.CreateSourceApifyDatasetResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1357,12 +1236,12 @@ func (s *Sources) CreateSourceAsana(ctx context.Context, request *shared.SourceA } -// CreateSourceAuth0 - Create a source +// CreateSourceAppfollow - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAuth0(ctx context.Context, request *shared.SourceAuth0CreateRequest, opts ...operations.Option) (*operations.CreateSourceAuth0Response, error) { +func (s *Sources) CreateSourceAppfollow(ctx context.Context, request *shared.SourceAppfollowCreateRequest, opts ...operations.Option) (*operations.CreateSourceAppfollowResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAuth0", + OperationID: "createSourceAppfollow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1441,7 +1320,7 @@ func (s *Sources) CreateSourceAuth0(ctx context.Context, request *shared.SourceA } } - res := &operations.CreateSourceAuth0Response{ + res := &operations.CreateSourceAppfollowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1478,12 +1357,12 @@ func (s *Sources) CreateSourceAuth0(ctx context.Context, request *shared.SourceA } -// CreateSourceAwsCloudtrail - Create a source +// CreateSourceAsana - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAwsCloudtrail(ctx context.Context, request *shared.SourceAwsCloudtrailCreateRequest, opts ...operations.Option) (*operations.CreateSourceAwsCloudtrailResponse, error) { +func (s *Sources) CreateSourceAsana(ctx context.Context, request *shared.SourceAsanaCreateRequest, opts ...operations.Option) (*operations.CreateSourceAsanaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAwsCloudtrail", + OperationID: "createSourceAsana", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1562,7 +1441,7 @@ func (s *Sources) CreateSourceAwsCloudtrail(ctx context.Context, request *shared } } - res := &operations.CreateSourceAwsCloudtrailResponse{ + res := &operations.CreateSourceAsanaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1599,12 +1478,12 @@ func (s *Sources) CreateSourceAwsCloudtrail(ctx context.Context, request *shared } -// CreateSourceAzureBlobStorage - Create a source +// CreateSourceAuth0 - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAzureBlobStorage(ctx context.Context, request *shared.SourceAzureBlobStorageCreateRequest, opts ...operations.Option) (*operations.CreateSourceAzureBlobStorageResponse, error) { +func (s *Sources) CreateSourceAuth0(ctx context.Context, request *shared.SourceAuth0CreateRequest, opts ...operations.Option) (*operations.CreateSourceAuth0Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAzureBlobStorage", + OperationID: "createSourceAuth0", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1683,7 +1562,7 @@ func (s *Sources) CreateSourceAzureBlobStorage(ctx context.Context, request *sha } } - res := &operations.CreateSourceAzureBlobStorageResponse{ + res := &operations.CreateSourceAuth0Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1720,12 +1599,12 @@ func (s *Sources) CreateSourceAzureBlobStorage(ctx context.Context, request *sha } -// CreateSourceAzureTable - Create a source +// CreateSourceAwsCloudtrail - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceAzureTable(ctx context.Context, request *shared.SourceAzureTableCreateRequest, opts ...operations.Option) (*operations.CreateSourceAzureTableResponse, error) { +func (s *Sources) CreateSourceAwsCloudtrail(ctx context.Context, request *shared.SourceAwsCloudtrailCreateRequest, opts ...operations.Option) (*operations.CreateSourceAwsCloudtrailResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAzureTable", + OperationID: "createSourceAwsCloudtrail", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1804,7 +1683,7 @@ func (s *Sources) CreateSourceAzureTable(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceAzureTableResponse{ + res := &operations.CreateSourceAwsCloudtrailResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1841,12 +1720,12 @@ func (s *Sources) CreateSourceAzureTable(ctx context.Context, request *shared.So } -// CreateSourceBambooHr - Create a source +// CreateSourceAzureBlobStorage - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceBambooHr(ctx context.Context, request *shared.SourceBambooHrCreateRequest, opts ...operations.Option) (*operations.CreateSourceBambooHrResponse, error) { +func (s *Sources) CreateSourceAzureBlobStorage(ctx context.Context, request *shared.SourceAzureBlobStorageCreateRequest, opts ...operations.Option) (*operations.CreateSourceAzureBlobStorageResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBambooHr", + OperationID: "createSourceAzureBlobStorage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1925,7 +1804,7 @@ func (s *Sources) CreateSourceBambooHr(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceBambooHrResponse{ + res := &operations.CreateSourceAzureBlobStorageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1962,12 +1841,12 @@ func (s *Sources) CreateSourceBambooHr(ctx context.Context, request *shared.Sour } -// CreateSourceBigquery - Create a source +// CreateSourceAzureTable - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceBigquery(ctx context.Context, request *shared.SourceBigqueryCreateRequest, opts ...operations.Option) (*operations.CreateSourceBigqueryResponse, error) { +func (s *Sources) CreateSourceAzureTable(ctx context.Context, request *shared.SourceAzureTableCreateRequest, opts ...operations.Option) (*operations.CreateSourceAzureTableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBigquery", + OperationID: "createSourceAzureTable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2046,7 +1925,7 @@ func (s *Sources) CreateSourceBigquery(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceBigqueryResponse{ + res := &operations.CreateSourceAzureTableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2083,12 +1962,12 @@ func (s *Sources) CreateSourceBigquery(ctx context.Context, request *shared.Sour } -// CreateSourceBingAds - Create a source +// CreateSourceBambooHr - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceBingAds(ctx context.Context, request *shared.SourceBingAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceBingAdsResponse, error) { +func (s *Sources) CreateSourceBambooHr(ctx context.Context, request *shared.SourceBambooHrCreateRequest, opts ...operations.Option) (*operations.CreateSourceBambooHrResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBingAds", + OperationID: "createSourceBambooHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2167,7 +2046,7 @@ func (s *Sources) CreateSourceBingAds(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceBingAdsResponse{ + res := &operations.CreateSourceBambooHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2204,12 +2083,12 @@ func (s *Sources) CreateSourceBingAds(ctx context.Context, request *shared.Sourc } -// CreateSourceBraintree - Create a source +// CreateSourceBasecamp - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceBraintree(ctx context.Context, request *shared.SourceBraintreeCreateRequest, opts ...operations.Option) (*operations.CreateSourceBraintreeResponse, error) { +func (s *Sources) CreateSourceBasecamp(ctx context.Context, request *shared.SourceBasecampCreateRequest, opts ...operations.Option) (*operations.CreateSourceBasecampResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBraintree", + OperationID: "createSourceBasecamp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2288,7 +2167,7 @@ func (s *Sources) CreateSourceBraintree(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceBraintreeResponse{ + res := &operations.CreateSourceBasecampResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2325,12 +2204,12 @@ func (s *Sources) CreateSourceBraintree(ctx context.Context, request *shared.Sou } -// CreateSourceBraze - Create a source +// CreateSourceBigquery - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceBraze(ctx context.Context, request *shared.SourceBrazeCreateRequest, opts ...operations.Option) (*operations.CreateSourceBrazeResponse, error) { +func (s *Sources) CreateSourceBigquery(ctx context.Context, request *shared.SourceBigqueryCreateRequest, opts ...operations.Option) (*operations.CreateSourceBigqueryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBraze", + OperationID: "createSourceBigquery", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2409,7 +2288,7 @@ func (s *Sources) CreateSourceBraze(ctx context.Context, request *shared.SourceB } } - res := &operations.CreateSourceBrazeResponse{ + res := &operations.CreateSourceBigqueryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2446,12 +2325,12 @@ func (s *Sources) CreateSourceBraze(ctx context.Context, request *shared.SourceB } -// CreateSourceCart - Create a source +// CreateSourceBingAds - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceCart(ctx context.Context, request *shared.SourceCartCreateRequest, opts ...operations.Option) (*operations.CreateSourceCartResponse, error) { +func (s *Sources) CreateSourceBingAds(ctx context.Context, request *shared.SourceBingAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceBingAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCart", + OperationID: "createSourceBingAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2530,7 +2409,7 @@ func (s *Sources) CreateSourceCart(ctx context.Context, request *shared.SourceCa } } - res := &operations.CreateSourceCartResponse{ + res := &operations.CreateSourceBingAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2567,12 +2446,12 @@ func (s *Sources) CreateSourceCart(ctx context.Context, request *shared.SourceCa } -// CreateSourceChargebee - Create a source +// CreateSourceBraintree - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceChargebee(ctx context.Context, request *shared.SourceChargebeeCreateRequest, opts ...operations.Option) (*operations.CreateSourceChargebeeResponse, error) { +func (s *Sources) CreateSourceBraintree(ctx context.Context, request *shared.SourceBraintreeCreateRequest, opts ...operations.Option) (*operations.CreateSourceBraintreeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceChargebee", + OperationID: "createSourceBraintree", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2651,7 +2530,7 @@ func (s *Sources) CreateSourceChargebee(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceChargebeeResponse{ + res := &operations.CreateSourceBraintreeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2688,12 +2567,12 @@ func (s *Sources) CreateSourceChargebee(ctx context.Context, request *shared.Sou } -// CreateSourceChartmogul - Create a source +// CreateSourceBraze - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceChartmogul(ctx context.Context, request *shared.SourceChartmogulCreateRequest, opts ...operations.Option) (*operations.CreateSourceChartmogulResponse, error) { +func (s *Sources) CreateSourceBraze(ctx context.Context, request *shared.SourceBrazeCreateRequest, opts ...operations.Option) (*operations.CreateSourceBrazeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceChartmogul", + OperationID: "createSourceBraze", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2772,7 +2651,7 @@ func (s *Sources) CreateSourceChartmogul(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceChartmogulResponse{ + res := &operations.CreateSourceBrazeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2809,12 +2688,12 @@ func (s *Sources) CreateSourceChartmogul(ctx context.Context, request *shared.So } -// CreateSourceClickhouse - Create a source +// CreateSourceBreezyHr - 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) { +func (s *Sources) CreateSourceBreezyHr(ctx context.Context, request *shared.SourceBreezyHrCreateRequest, opts ...operations.Option) (*operations.CreateSourceBreezyHrResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceClickhouse", + OperationID: "createSourceBreezyHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2893,7 +2772,7 @@ func (s *Sources) CreateSourceClickhouse(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceClickhouseResponse{ + res := &operations.CreateSourceBreezyHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2930,12 +2809,12 @@ func (s *Sources) CreateSourceClickhouse(ctx context.Context, request *shared.So } -// CreateSourceClickupAPI - Create a source +// CreateSourceCalendly - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceClickupAPI(ctx context.Context, request *shared.SourceClickupAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceClickupAPIResponse, error) { +func (s *Sources) CreateSourceCalendly(ctx context.Context, request *shared.SourceCalendlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceCalendlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceClickupApi", + OperationID: "createSourceCalendly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3014,7 +2893,7 @@ func (s *Sources) CreateSourceClickupAPI(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceClickupAPIResponse{ + res := &operations.CreateSourceCalendlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3051,12 +2930,12 @@ func (s *Sources) CreateSourceClickupAPI(ctx context.Context, request *shared.So } -// CreateSourceClockify - Create a source +// CreateSourceCart - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceClockify(ctx context.Context, request *shared.SourceClockifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceClockifyResponse, error) { +func (s *Sources) CreateSourceCart(ctx context.Context, request *shared.SourceCartCreateRequest, opts ...operations.Option) (*operations.CreateSourceCartResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceClockify", + OperationID: "createSourceCart", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3135,7 +3014,7 @@ func (s *Sources) CreateSourceClockify(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceClockifyResponse{ + res := &operations.CreateSourceCartResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3172,12 +3051,12 @@ func (s *Sources) CreateSourceClockify(ctx context.Context, request *shared.Sour } -// CreateSourceCloseCom - Create a source +// CreateSourceChargebee - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceCloseCom(ctx context.Context, request *shared.SourceCloseComCreateRequest, opts ...operations.Option) (*operations.CreateSourceCloseComResponse, error) { +func (s *Sources) CreateSourceChargebee(ctx context.Context, request *shared.SourceChargebeeCreateRequest, opts ...operations.Option) (*operations.CreateSourceChargebeeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCloseCom", + OperationID: "createSourceChargebee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3256,7 +3135,7 @@ func (s *Sources) CreateSourceCloseCom(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceCloseComResponse{ + res := &operations.CreateSourceChargebeeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3293,12 +3172,12 @@ func (s *Sources) CreateSourceCloseCom(ctx context.Context, request *shared.Sour } -// CreateSourceCoda - Create a source +// CreateSourceChartmogul - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceCoda(ctx context.Context, request *shared.SourceCodaCreateRequest, opts ...operations.Option) (*operations.CreateSourceCodaResponse, error) { +func (s *Sources) CreateSourceChartmogul(ctx context.Context, request *shared.SourceChartmogulCreateRequest, opts ...operations.Option) (*operations.CreateSourceChartmogulResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCoda", + OperationID: "createSourceChartmogul", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3377,7 +3256,7 @@ func (s *Sources) CreateSourceCoda(ctx context.Context, request *shared.SourceCo } } - res := &operations.CreateSourceCodaResponse{ + res := &operations.CreateSourceChartmogulResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3414,12 +3293,12 @@ func (s *Sources) CreateSourceCoda(ctx context.Context, request *shared.SourceCo } -// CreateSourceCoinAPI - Create a source +// 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) CreateSourceCoinAPI(ctx context.Context, request *shared.SourceCoinAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceCoinAPIResponse, error) { +func (s *Sources) CreateSourceClazar(ctx context.Context, request *shared.SourceClazarCreateRequest, opts ...operations.Option) (*operations.CreateSourceClazarResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCoinApi", + OperationID: "createSourceClazar", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3498,7 +3377,7 @@ func (s *Sources) CreateSourceCoinAPI(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceCoinAPIResponse{ + res := &operations.CreateSourceClazarResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3535,12 +3414,12 @@ func (s *Sources) CreateSourceCoinAPI(ctx context.Context, request *shared.Sourc } -// CreateSourceCoinmarketcap - Create a source +// 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) CreateSourceCoinmarketcap(ctx context.Context, request *shared.SourceCoinmarketcapCreateRequest, opts ...operations.Option) (*operations.CreateSourceCoinmarketcapResponse, error) { +func (s *Sources) CreateSourceClickhouse(ctx context.Context, request *shared.SourceClickhouseCreateRequest, opts ...operations.Option) (*operations.CreateSourceClickhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCoinmarketcap", + OperationID: "createSourceClickhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3619,7 +3498,7 @@ func (s *Sources) CreateSourceCoinmarketcap(ctx context.Context, request *shared } } - res := &operations.CreateSourceCoinmarketcapResponse{ + res := &operations.CreateSourceClickhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3656,12 +3535,12 @@ func (s *Sources) CreateSourceCoinmarketcap(ctx context.Context, request *shared } -// CreateSourceConfigcat - Create a source +// CreateSourceClickupAPI - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceConfigcat(ctx context.Context, request *shared.SourceConfigcatCreateRequest, opts ...operations.Option) (*operations.CreateSourceConfigcatResponse, error) { +func (s *Sources) CreateSourceClickupAPI(ctx context.Context, request *shared.SourceClickupAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceClickupAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceConfigcat", + OperationID: "createSourceClickupApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3740,7 +3619,7 @@ func (s *Sources) CreateSourceConfigcat(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceConfigcatResponse{ + res := &operations.CreateSourceClickupAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3777,12 +3656,12 @@ func (s *Sources) CreateSourceConfigcat(ctx context.Context, request *shared.Sou } -// CreateSourceConfluence - Create a source +// CreateSourceClockify - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceConfluence(ctx context.Context, request *shared.SourceConfluenceCreateRequest, opts ...operations.Option) (*operations.CreateSourceConfluenceResponse, error) { +func (s *Sources) CreateSourceClockify(ctx context.Context, request *shared.SourceClockifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceClockifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceConfluence", + OperationID: "createSourceClockify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3861,7 +3740,7 @@ func (s *Sources) CreateSourceConfluence(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceConfluenceResponse{ + res := &operations.CreateSourceClockifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3898,12 +3777,12 @@ func (s *Sources) CreateSourceConfluence(ctx context.Context, request *shared.So } -// CreateSourceConvex - Create a source +// CreateSourceCloseCom - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceConvex(ctx context.Context, request *shared.SourceConvexCreateRequest, opts ...operations.Option) (*operations.CreateSourceConvexResponse, error) { +func (s *Sources) CreateSourceCloseCom(ctx context.Context, request *shared.SourceCloseComCreateRequest, opts ...operations.Option) (*operations.CreateSourceCloseComResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceConvex", + OperationID: "createSourceCloseCom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3982,7 +3861,7 @@ func (s *Sources) CreateSourceConvex(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceConvexResponse{ + res := &operations.CreateSourceCloseComResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4019,12 +3898,12 @@ func (s *Sources) CreateSourceConvex(ctx context.Context, request *shared.Source } -// CreateSourceCustom - Create a source +// CreateSourceCoda - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceCustom(ctx context.Context, request *shared.SourceCustomCreateRequest, opts ...operations.Option) (*operations.CreateSourceCustomResponse, error) { +func (s *Sources) CreateSourceCoda(ctx context.Context, request *shared.SourceCodaCreateRequest, opts ...operations.Option) (*operations.CreateSourceCodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCustom", + OperationID: "createSourceCoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4103,7 +3982,7 @@ func (s *Sources) CreateSourceCustom(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceCustomResponse{ + res := &operations.CreateSourceCodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4140,12 +4019,12 @@ func (s *Sources) CreateSourceCustom(ctx context.Context, request *shared.Source } -// CreateSourceDatascope - Create a source +// CreateSourceCoinAPI - 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) CreateSourceCoinAPI(ctx context.Context, request *shared.SourceCoinAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceCoinAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDatascope", + OperationID: "createSourceCoinApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4224,7 +4103,7 @@ func (s *Sources) CreateSourceDatascope(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceDatascopeResponse{ + res := &operations.CreateSourceCoinAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4261,12 +4140,12 @@ func (s *Sources) CreateSourceDatascope(ctx context.Context, request *shared.Sou } -// CreateSourceDelighted - Create a source +// CreateSourceCoinmarketcap - 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) CreateSourceCoinmarketcap(ctx context.Context, request *shared.SourceCoinmarketcapCreateRequest, opts ...operations.Option) (*operations.CreateSourceCoinmarketcapResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDelighted", + OperationID: "createSourceCoinmarketcap", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4345,7 +4224,7 @@ func (s *Sources) CreateSourceDelighted(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceDelightedResponse{ + res := &operations.CreateSourceCoinmarketcapResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4382,12 +4261,12 @@ func (s *Sources) CreateSourceDelighted(ctx context.Context, request *shared.Sou } -// CreateSourceDixa - Create a source +// CreateSourceConfigcat - 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) CreateSourceConfigcat(ctx context.Context, request *shared.SourceConfigcatCreateRequest, opts ...operations.Option) (*operations.CreateSourceConfigcatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDixa", + OperationID: "createSourceConfigcat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4466,7 +4345,7 @@ func (s *Sources) CreateSourceDixa(ctx context.Context, request *shared.SourceDi } } - res := &operations.CreateSourceDixaResponse{ + res := &operations.CreateSourceConfigcatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4503,12 +4382,12 @@ func (s *Sources) CreateSourceDixa(ctx context.Context, request *shared.SourceDi } -// CreateSourceDockerhub - Create a source +// CreateSourceConfluence - 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) CreateSourceConfluence(ctx context.Context, request *shared.SourceConfluenceCreateRequest, opts ...operations.Option) (*operations.CreateSourceConfluenceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDockerhub", + OperationID: "createSourceConfluence", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4587,7 +4466,7 @@ func (s *Sources) CreateSourceDockerhub(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceDockerhubResponse{ + res := &operations.CreateSourceConfluenceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4624,12 +4503,12 @@ func (s *Sources) CreateSourceDockerhub(ctx context.Context, request *shared.Sou } -// CreateSourceDremio - Create a source +// CreateSourceConvex - 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) CreateSourceConvex(ctx context.Context, request *shared.SourceConvexCreateRequest, opts ...operations.Option) (*operations.CreateSourceConvexResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDremio", + OperationID: "createSourceConvex", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4708,7 +4587,7 @@ func (s *Sources) CreateSourceDremio(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceDremioResponse{ + res := &operations.CreateSourceConvexResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4745,12 +4624,12 @@ func (s *Sources) CreateSourceDremio(ctx context.Context, request *shared.Source } -// CreateSourceDynamodb - Create a source +// CreateSourceCustom - 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) CreateSourceCustom(ctx context.Context, request *shared.SourceCustomCreateRequest, opts ...operations.Option) (*operations.CreateSourceCustomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDynamodb", + OperationID: "createSourceCustom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4829,7 +4708,128 @@ func (s *Sources) CreateSourceDynamodb(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceDynamodbResponse{ + res := &operations.CreateSourceCustomResponse{ + 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 + +} + +// CreateSourceCustomerIo - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceCustomerIo(ctx context.Context, request *shared.SourceCustomerIoCreateRequest, opts ...operations.Option) (*operations.CreateSourceCustomerIoResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "createSourceCustomerIo", + 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.CreateSourceCustomerIoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4866,12 +4866,12 @@ func (s *Sources) CreateSourceDynamodb(ctx context.Context, request *shared.Sour } -// CreateSourceEmailoctopus - Create a source +// CreateSourceDatadog - 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) CreateSourceDatadog(ctx context.Context, request *shared.SourceDatadogCreateRequest, opts ...operations.Option) (*operations.CreateSourceDatadogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceEmailoctopus", + OperationID: "createSourceDatadog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4950,7 +4950,7 @@ func (s *Sources) CreateSourceEmailoctopus(ctx context.Context, request *shared. } } - res := &operations.CreateSourceEmailoctopusResponse{ + res := &operations.CreateSourceDatadogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4987,12 +4987,12 @@ func (s *Sources) CreateSourceEmailoctopus(ctx context.Context, request *shared. } -// CreateSourceExchangeRates - 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) CreateSourceExchangeRates(ctx context.Context, request *shared.SourceExchangeRatesCreateRequest, opts ...operations.Option) (*operations.CreateSourceExchangeRatesResponse, error) { +func (s *Sources) CreateSourceDatascope(ctx context.Context, request *shared.SourceDatascopeCreateRequest, opts ...operations.Option) (*operations.CreateSourceDatascopeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceExchangeRates", + OperationID: "createSourceDatascope", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5071,7 +5071,7 @@ func (s *Sources) CreateSourceExchangeRates(ctx context.Context, request *shared } } - res := &operations.CreateSourceExchangeRatesResponse{ + res := &operations.CreateSourceDatascopeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5108,12 +5108,12 @@ func (s *Sources) CreateSourceExchangeRates(ctx context.Context, request *shared } -// CreateSourceFacebookMarketing - Create a source +// CreateSourceDbt - 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) CreateSourceDbt(ctx context.Context, request *shared.SourceDbtCreateRequest, opts ...operations.Option) (*operations.CreateSourceDbtResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFacebookMarketing", + OperationID: "createSourceDbt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5192,7 +5192,7 @@ func (s *Sources) CreateSourceFacebookMarketing(ctx context.Context, request *sh } } - res := &operations.CreateSourceFacebookMarketingResponse{ + res := &operations.CreateSourceDbtResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5229,12 +5229,12 @@ func (s *Sources) CreateSourceFacebookMarketing(ctx context.Context, request *sh } -// CreateSourceFaker - 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) CreateSourceFaker(ctx context.Context, request *shared.SourceFakerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFakerResponse, error) { +func (s *Sources) CreateSourceDelighted(ctx context.Context, request *shared.SourceDelightedCreateRequest, opts ...operations.Option) (*operations.CreateSourceDelightedResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFaker", + OperationID: "createSourceDelighted", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5313,7 +5313,7 @@ func (s *Sources) CreateSourceFaker(ctx context.Context, request *shared.SourceF } } - res := &operations.CreateSourceFakerResponse{ + res := &operations.CreateSourceDelightedResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5350,12 +5350,12 @@ func (s *Sources) CreateSourceFaker(ctx context.Context, request *shared.SourceF } -// CreateSourceFauna - 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) CreateSourceFauna(ctx context.Context, request *shared.SourceFaunaCreateRequest, opts ...operations.Option) (*operations.CreateSourceFaunaResponse, error) { +func (s *Sources) CreateSourceDixa(ctx context.Context, request *shared.SourceDixaCreateRequest, opts ...operations.Option) (*operations.CreateSourceDixaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFauna", + OperationID: "createSourceDixa", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5434,7 +5434,7 @@ func (s *Sources) CreateSourceFauna(ctx context.Context, request *shared.SourceF } } - res := &operations.CreateSourceFaunaResponse{ + res := &operations.CreateSourceDixaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5471,12 +5471,12 @@ func (s *Sources) CreateSourceFauna(ctx context.Context, request *shared.SourceF } -// CreateSourceFile - 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) CreateSourceFile(ctx context.Context, request *shared.SourceFileCreateRequest, opts ...operations.Option) (*operations.CreateSourceFileResponse, error) { +func (s *Sources) CreateSourceDockerhub(ctx context.Context, request *shared.SourceDockerhubCreateRequest, opts ...operations.Option) (*operations.CreateSourceDockerhubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFile", + OperationID: "createSourceDockerhub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5555,7 +5555,7 @@ func (s *Sources) CreateSourceFile(ctx context.Context, request *shared.SourceFi } } - res := &operations.CreateSourceFileResponse{ + res := &operations.CreateSourceDockerhubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5592,12 +5592,12 @@ func (s *Sources) CreateSourceFile(ctx context.Context, request *shared.SourceFi } -// CreateSourceFirebolt - 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) CreateSourceFirebolt(ctx context.Context, request *shared.SourceFireboltCreateRequest, opts ...operations.Option) (*operations.CreateSourceFireboltResponse, error) { +func (s *Sources) CreateSourceDremio(ctx context.Context, request *shared.SourceDremioCreateRequest, opts ...operations.Option) (*operations.CreateSourceDremioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFirebolt", + OperationID: "createSourceDremio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5676,7 +5676,7 @@ func (s *Sources) CreateSourceFirebolt(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceFireboltResponse{ + res := &operations.CreateSourceDremioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5713,12 +5713,12 @@ func (s *Sources) CreateSourceFirebolt(ctx context.Context, request *shared.Sour } -// CreateSourceFleetio - 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) CreateSourceFleetio(ctx context.Context, request *shared.SourceFleetioCreateRequest, opts ...operations.Option) (*operations.CreateSourceFleetioResponse, error) { +func (s *Sources) CreateSourceDynamodb(ctx context.Context, request *shared.SourceDynamodbCreateRequest, opts ...operations.Option) (*operations.CreateSourceDynamodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFleetio", + OperationID: "createSourceDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5797,7 +5797,7 @@ func (s *Sources) CreateSourceFleetio(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceFleetioResponse{ + res := &operations.CreateSourceDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5834,12 +5834,12 @@ func (s *Sources) CreateSourceFleetio(ctx context.Context, request *shared.Sourc } -// CreateSourceFreshcaller - 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) CreateSourceFreshcaller(ctx context.Context, request *shared.SourceFreshcallerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshcallerResponse, error) { +func (s *Sources) CreateSourceEmailoctopus(ctx context.Context, request *shared.SourceEmailoctopusCreateRequest, opts ...operations.Option) (*operations.CreateSourceEmailoctopusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFreshcaller", + OperationID: "createSourceEmailoctopus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5918,7 +5918,7 @@ func (s *Sources) CreateSourceFreshcaller(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceFreshcallerResponse{ + res := &operations.CreateSourceEmailoctopusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5955,12 +5955,12 @@ func (s *Sources) CreateSourceFreshcaller(ctx context.Context, request *shared.S } -// CreateSourceFreshdesk - 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) CreateSourceFreshdesk(ctx context.Context, request *shared.SourceFreshdeskCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshdeskResponse, error) { +func (s *Sources) CreateSourceExchangeRates(ctx context.Context, request *shared.SourceExchangeRatesCreateRequest, opts ...operations.Option) (*operations.CreateSourceExchangeRatesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFreshdesk", + OperationID: "createSourceExchangeRates", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6039,7 +6039,7 @@ func (s *Sources) CreateSourceFreshdesk(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceFreshdeskResponse{ + res := &operations.CreateSourceExchangeRatesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6076,12 +6076,12 @@ func (s *Sources) CreateSourceFreshdesk(ctx context.Context, request *shared.Sou } -// CreateSourceFreshsales - 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) CreateSourceFreshsales(ctx context.Context, request *shared.SourceFreshsalesCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshsalesResponse, error) { +func (s *Sources) CreateSourceFacebookMarketing(ctx context.Context, request *shared.SourceFacebookMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceFacebookMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFreshsales", + OperationID: "createSourceFacebookMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6160,7 +6160,7 @@ func (s *Sources) CreateSourceFreshsales(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceFreshsalesResponse{ + res := &operations.CreateSourceFacebookMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6197,12 +6197,12 @@ func (s *Sources) CreateSourceFreshsales(ctx context.Context, request *shared.So } -// CreateSourceGainsightPx - 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) CreateSourceGainsightPx(ctx context.Context, request *shared.SourceGainsightPxCreateRequest, opts ...operations.Option) (*operations.CreateSourceGainsightPxResponse, error) { +func (s *Sources) CreateSourceFaker(ctx context.Context, request *shared.SourceFakerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFakerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGainsightPx", + OperationID: "createSourceFaker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6281,7 +6281,7 @@ func (s *Sources) CreateSourceGainsightPx(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceGainsightPxResponse{ + res := &operations.CreateSourceFakerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6318,12 +6318,12 @@ func (s *Sources) CreateSourceGainsightPx(ctx context.Context, request *shared.S } -// CreateSourceGcs - 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) CreateSourceGcs(ctx context.Context, request *shared.SourceGcsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGcsResponse, error) { +func (s *Sources) CreateSourceFauna(ctx context.Context, request *shared.SourceFaunaCreateRequest, opts ...operations.Option) (*operations.CreateSourceFaunaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGcs", + OperationID: "createSourceFauna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6402,7 +6402,7 @@ func (s *Sources) CreateSourceGcs(ctx context.Context, request *shared.SourceGcs } } - res := &operations.CreateSourceGcsResponse{ + res := &operations.CreateSourceFaunaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6439,12 +6439,12 @@ func (s *Sources) CreateSourceGcs(ctx context.Context, request *shared.SourceGcs } -// CreateSourceGetlago - 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) CreateSourceGetlago(ctx context.Context, request *shared.SourceGetlagoCreateRequest, opts ...operations.Option) (*operations.CreateSourceGetlagoResponse, error) { +func (s *Sources) CreateSourceFile(ctx context.Context, request *shared.SourceFileCreateRequest, opts ...operations.Option) (*operations.CreateSourceFileResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGetlago", + OperationID: "createSourceFile", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6523,7 +6523,7 @@ func (s *Sources) CreateSourceGetlago(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceGetlagoResponse{ + res := &operations.CreateSourceFileResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6560,12 +6560,12 @@ func (s *Sources) CreateSourceGetlago(ctx context.Context, request *shared.Sourc } -// CreateSourceGithub - 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) CreateSourceGithub(ctx context.Context, request *shared.SourceGithubCreateRequest, opts ...operations.Option) (*operations.CreateSourceGithubResponse, error) { +func (s *Sources) CreateSourceFirebolt(ctx context.Context, request *shared.SourceFireboltCreateRequest, opts ...operations.Option) (*operations.CreateSourceFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGithub", + OperationID: "createSourceFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6644,7 +6644,7 @@ func (s *Sources) CreateSourceGithub(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceGithubResponse{ + res := &operations.CreateSourceFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6681,12 +6681,12 @@ func (s *Sources) CreateSourceGithub(ctx context.Context, request *shared.Source } -// CreateSourceGitlab - 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) CreateSourceGitlab(ctx context.Context, request *shared.SourceGitlabCreateRequest, opts ...operations.Option) (*operations.CreateSourceGitlabResponse, error) { +func (s *Sources) CreateSourceFleetio(ctx context.Context, request *shared.SourceFleetioCreateRequest, opts ...operations.Option) (*operations.CreateSourceFleetioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGitlab", + OperationID: "createSourceFleetio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6765,7 +6765,7 @@ func (s *Sources) CreateSourceGitlab(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceGitlabResponse{ + res := &operations.CreateSourceFleetioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6802,12 +6802,12 @@ func (s *Sources) CreateSourceGitlab(ctx context.Context, request *shared.Source } -// CreateSourceGlassfrog - 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) CreateSourceGlassfrog(ctx context.Context, request *shared.SourceGlassfrogCreateRequest, opts ...operations.Option) (*operations.CreateSourceGlassfrogResponse, error) { +func (s *Sources) CreateSourceFreshcaller(ctx context.Context, request *shared.SourceFreshcallerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshcallerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGlassfrog", + OperationID: "createSourceFreshcaller", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6886,7 +6886,7 @@ func (s *Sources) CreateSourceGlassfrog(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceGlassfrogResponse{ + res := &operations.CreateSourceFreshcallerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6923,12 +6923,12 @@ func (s *Sources) CreateSourceGlassfrog(ctx context.Context, request *shared.Sou } -// CreateSourceGnews - 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) CreateSourceGnews(ctx context.Context, request *shared.SourceGnewsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGnewsResponse, error) { +func (s *Sources) CreateSourceFreshdesk(ctx context.Context, request *shared.SourceFreshdeskCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshdeskResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGnews", + OperationID: "createSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7007,7 +7007,128 @@ func (s *Sources) CreateSourceGnews(ctx context.Context, request *shared.SourceG } } - res := &operations.CreateSourceGnewsResponse{ + res := &operations.CreateSourceFreshdeskResponse{ + 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 + +} + +// 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) CreateSourceFreshsales(ctx context.Context, request *shared.SourceFreshsalesCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshsalesResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "createSourceFreshsales", + 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.CreateSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7044,12 +7165,12 @@ func (s *Sources) CreateSourceGnews(ctx context.Context, request *shared.SourceG } -// CreateSourceGoogleAds - 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) CreateSourceGoogleAds(ctx context.Context, request *shared.SourceGoogleAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAdsResponse, error) { +func (s *Sources) CreateSourceGainsightPx(ctx context.Context, request *shared.SourceGainsightPxCreateRequest, opts ...operations.Option) (*operations.CreateSourceGainsightPxResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleAds", + OperationID: "createSourceGainsightPx", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7128,7 +7249,7 @@ func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceGoogleAdsResponse{ + res := &operations.CreateSourceGainsightPxResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7165,12 +7286,12 @@ func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.Sou } -// CreateSourceGoogleAnalyticsDataAPI - Create a source +// CreateSourceGcs - 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) CreateSourceGcs(ctx context.Context, request *shared.SourceGcsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGcsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleAnalyticsDataApi", + OperationID: "createSourceGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7249,7 +7370,7 @@ func (s *Sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } } - res := &operations.CreateSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.CreateSourceGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7286,12 +7407,12 @@ func (s *Sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } -// CreateSourceGoogleAnalyticsV4ServiceAccountOnly - Create a source +// CreateSourceGetlago - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Context, request *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse, error) { +func (s *Sources) CreateSourceGetlago(ctx context.Context, request *shared.SourceGetlagoCreateRequest, opts ...operations.Option) (*operations.CreateSourceGetlagoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleAnalyticsV4ServiceAccountOnly", + OperationID: "createSourceGetlago", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7370,7 +7491,7 @@ func (s *Sources) CreateSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Co } } - res := &operations.CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse{ + res := &operations.CreateSourceGetlagoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7407,12 +7528,12 @@ func (s *Sources) CreateSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Co } -// CreateSourceGoogleDirectory - Create a source +// CreateSourceGithub - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGoogleDirectory(ctx context.Context, request *shared.SourceGoogleDirectoryCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleDirectoryResponse, error) { +func (s *Sources) CreateSourceGithub(ctx context.Context, request *shared.SourceGithubCreateRequest, opts ...operations.Option) (*operations.CreateSourceGithubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleDirectory", + OperationID: "createSourceGithub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7491,7 +7612,7 @@ func (s *Sources) CreateSourceGoogleDirectory(ctx context.Context, request *shar } } - res := &operations.CreateSourceGoogleDirectoryResponse{ + res := &operations.CreateSourceGithubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7528,12 +7649,12 @@ func (s *Sources) CreateSourceGoogleDirectory(ctx context.Context, request *shar } -// CreateSourceGoogleDrive - Create a source +// CreateSourceGitlab - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGoogleDrive(ctx context.Context, request *shared.SourceGoogleDriveCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleDriveResponse, error) { +func (s *Sources) CreateSourceGitlab(ctx context.Context, request *shared.SourceGitlabCreateRequest, opts ...operations.Option) (*operations.CreateSourceGitlabResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleDrive", + OperationID: "createSourceGitlab", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7612,7 +7733,7 @@ func (s *Sources) CreateSourceGoogleDrive(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceGoogleDriveResponse{ + res := &operations.CreateSourceGitlabResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7649,12 +7770,12 @@ func (s *Sources) CreateSourceGoogleDrive(ctx context.Context, request *shared.S } -// CreateSourceGooglePagespeedInsights - Create a source +// CreateSourceGlassfrog - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGooglePagespeedInsights(ctx context.Context, request *shared.SourceGooglePagespeedInsightsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGooglePagespeedInsightsResponse, error) { +func (s *Sources) CreateSourceGlassfrog(ctx context.Context, request *shared.SourceGlassfrogCreateRequest, opts ...operations.Option) (*operations.CreateSourceGlassfrogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGooglePagespeedInsights", + OperationID: "createSourceGlassfrog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7733,7 +7854,7 @@ func (s *Sources) CreateSourceGooglePagespeedInsights(ctx context.Context, reque } } - res := &operations.CreateSourceGooglePagespeedInsightsResponse{ + res := &operations.CreateSourceGlassfrogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7770,12 +7891,12 @@ func (s *Sources) CreateSourceGooglePagespeedInsights(ctx context.Context, reque } -// CreateSourceGoogleSearchConsole - Create a source +// CreateSourceGnews - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGoogleSearchConsole(ctx context.Context, request *shared.SourceGoogleSearchConsoleCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleSearchConsoleResponse, error) { +func (s *Sources) CreateSourceGnews(ctx context.Context, request *shared.SourceGnewsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGnewsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleSearchConsole", + OperationID: "createSourceGnews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7854,7 +7975,7 @@ func (s *Sources) CreateSourceGoogleSearchConsole(ctx context.Context, request * } } - res := &operations.CreateSourceGoogleSearchConsoleResponse{ + res := &operations.CreateSourceGnewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7891,12 +8012,12 @@ func (s *Sources) CreateSourceGoogleSearchConsole(ctx context.Context, request * } -// CreateSourceGoogleSheets - Create a source +// CreateSourceGoldcast - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGoogleSheets(ctx context.Context, request *shared.SourceGoogleSheetsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleSheetsResponse, error) { +func (s *Sources) CreateSourceGoldcast(ctx context.Context, request *shared.SourceGoldcastCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoldcastResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleSheets", + OperationID: "createSourceGoldcast", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7975,7 +8096,7 @@ func (s *Sources) CreateSourceGoogleSheets(ctx context.Context, request *shared. } } - res := &operations.CreateSourceGoogleSheetsResponse{ + res := &operations.CreateSourceGoldcastResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8012,12 +8133,12 @@ func (s *Sources) CreateSourceGoogleSheets(ctx context.Context, request *shared. } -// CreateSourceGoogleWebfonts - 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) CreateSourceGoogleWebfonts(ctx context.Context, request *shared.SourceGoogleWebfontsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleWebfontsResponse, error) { +func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.SourceGoogleAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleWebfonts", + OperationID: "createSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8096,7 +8217,7 @@ func (s *Sources) CreateSourceGoogleWebfonts(ctx context.Context, request *share } } - res := &operations.CreateSourceGoogleWebfontsResponse{ + res := &operations.CreateSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8133,12 +8254,12 @@ func (s *Sources) CreateSourceGoogleWebfonts(ctx context.Context, request *share } -// CreateSourceGreenhouse - 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) CreateSourceGreenhouse(ctx context.Context, request *shared.SourceGreenhouseCreateRequest, opts ...operations.Option) (*operations.CreateSourceGreenhouseResponse, error) { +func (s *Sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, request *shared.SourceGoogleAnalyticsDataAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAnalyticsDataAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGreenhouse", + OperationID: "createSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8217,7 +8338,7 @@ func (s *Sources) CreateSourceGreenhouse(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceGreenhouseResponse{ + res := &operations.CreateSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8254,12 +8375,12 @@ func (s *Sources) CreateSourceGreenhouse(ctx context.Context, request *shared.So } -// CreateSourceGridly - Create a source +// CreateSourceGoogleDirectory - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGridly(ctx context.Context, request *shared.SourceGridlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceGridlyResponse, error) { +func (s *Sources) CreateSourceGoogleDirectory(ctx context.Context, request *shared.SourceGoogleDirectoryCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleDirectoryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGridly", + OperationID: "createSourceGoogleDirectory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8338,7 +8459,7 @@ func (s *Sources) CreateSourceGridly(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceGridlyResponse{ + res := &operations.CreateSourceGoogleDirectoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8375,12 +8496,12 @@ func (s *Sources) CreateSourceGridly(ctx context.Context, request *shared.Source } -// CreateSourceHarvest - Create a source +// CreateSourceGoogleDrive - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceHarvest(ctx context.Context, request *shared.SourceHarvestCreateRequest, opts ...operations.Option) (*operations.CreateSourceHarvestResponse, error) { +func (s *Sources) CreateSourceGoogleDrive(ctx context.Context, request *shared.SourceGoogleDriveCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleDriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceHarvest", + OperationID: "createSourceGoogleDrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8459,7 +8580,7 @@ func (s *Sources) CreateSourceHarvest(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceHarvestResponse{ + res := &operations.CreateSourceGoogleDriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8496,12 +8617,12 @@ func (s *Sources) CreateSourceHarvest(ctx context.Context, request *shared.Sourc } -// CreateSourceHubplanner - Create a source +// CreateSourceGooglePagespeedInsights - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceHubplanner(ctx context.Context, request *shared.SourceHubplannerCreateRequest, opts ...operations.Option) (*operations.CreateSourceHubplannerResponse, error) { +func (s *Sources) CreateSourceGooglePagespeedInsights(ctx context.Context, request *shared.SourceGooglePagespeedInsightsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGooglePagespeedInsightsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceHubplanner", + OperationID: "createSourceGooglePagespeedInsights", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8580,7 +8701,7 @@ func (s *Sources) CreateSourceHubplanner(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceHubplannerResponse{ + res := &operations.CreateSourceGooglePagespeedInsightsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8617,12 +8738,12 @@ func (s *Sources) CreateSourceHubplanner(ctx context.Context, request *shared.So } -// CreateSourceHubspot - Create a source +// CreateSourceGoogleSearchConsole - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceHubspot(ctx context.Context, request *shared.SourceHubspotCreateRequest, opts ...operations.Option) (*operations.CreateSourceHubspotResponse, error) { +func (s *Sources) CreateSourceGoogleSearchConsole(ctx context.Context, request *shared.SourceGoogleSearchConsoleCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleSearchConsoleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceHubspot", + OperationID: "createSourceGoogleSearchConsole", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8701,7 +8822,7 @@ func (s *Sources) CreateSourceHubspot(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceHubspotResponse{ + res := &operations.CreateSourceGoogleSearchConsoleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8738,12 +8859,12 @@ func (s *Sources) CreateSourceHubspot(ctx context.Context, request *shared.Sourc } -// CreateSourceInsightly - Create a source +// CreateSourceGoogleSheets - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceInsightly(ctx context.Context, request *shared.SourceInsightlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceInsightlyResponse, error) { +func (s *Sources) CreateSourceGoogleSheets(ctx context.Context, request *shared.SourceGoogleSheetsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleSheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceInsightly", + OperationID: "createSourceGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8822,7 +8943,7 @@ func (s *Sources) CreateSourceInsightly(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceInsightlyResponse{ + res := &operations.CreateSourceGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8859,12 +8980,12 @@ func (s *Sources) CreateSourceInsightly(ctx context.Context, request *shared.Sou } -// CreateSourceInstagram - Create a source +// CreateSourceGoogleWebfonts - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceInstagram(ctx context.Context, request *shared.SourceInstagramCreateRequest, opts ...operations.Option) (*operations.CreateSourceInstagramResponse, error) { +func (s *Sources) CreateSourceGoogleWebfonts(ctx context.Context, request *shared.SourceGoogleWebfontsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleWebfontsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceInstagram", + OperationID: "createSourceGoogleWebfonts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8943,7 +9064,7 @@ func (s *Sources) CreateSourceInstagram(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceInstagramResponse{ + res := &operations.CreateSourceGoogleWebfontsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8980,12 +9101,12 @@ func (s *Sources) CreateSourceInstagram(ctx context.Context, request *shared.Sou } -// CreateSourceInstatus - Create a source +// CreateSourceGreenhouse - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceInstatus(ctx context.Context, request *shared.SourceInstatusCreateRequest, opts ...operations.Option) (*operations.CreateSourceInstatusResponse, error) { +func (s *Sources) CreateSourceGreenhouse(ctx context.Context, request *shared.SourceGreenhouseCreateRequest, opts ...operations.Option) (*operations.CreateSourceGreenhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceInstatus", + OperationID: "createSourceGreenhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9064,7 +9185,7 @@ func (s *Sources) CreateSourceInstatus(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceInstatusResponse{ + res := &operations.CreateSourceGreenhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9101,12 +9222,12 @@ func (s *Sources) CreateSourceInstatus(ctx context.Context, request *shared.Sour } -// CreateSourceIntercom - Create a source +// CreateSourceGridly - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceIntercom(ctx context.Context, request *shared.SourceIntercomCreateRequest, opts ...operations.Option) (*operations.CreateSourceIntercomResponse, error) { +func (s *Sources) CreateSourceGridly(ctx context.Context, request *shared.SourceGridlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceGridlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceIntercom", + OperationID: "createSourceGridly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9185,7 +9306,7 @@ func (s *Sources) CreateSourceIntercom(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceIntercomResponse{ + res := &operations.CreateSourceGridlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9222,12 +9343,12 @@ func (s *Sources) CreateSourceIntercom(ctx context.Context, request *shared.Sour } -// CreateSourceIp2whois - Create a source +// CreateSourceHardcodedRecords - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceIp2whois(ctx context.Context, request *shared.SourceIp2whoisCreateRequest, opts ...operations.Option) (*operations.CreateSourceIp2whoisResponse, error) { +func (s *Sources) CreateSourceHardcodedRecords(ctx context.Context, request *shared.SourceHardcodedRecordsCreateRequest, opts ...operations.Option) (*operations.CreateSourceHardcodedRecordsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceIp2whois", + OperationID: "createSourceHardcodedRecords", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9306,7 +9427,7 @@ func (s *Sources) CreateSourceIp2whois(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceIp2whoisResponse{ + res := &operations.CreateSourceHardcodedRecordsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9343,12 +9464,12 @@ func (s *Sources) CreateSourceIp2whois(ctx context.Context, request *shared.Sour } -// CreateSourceIterable - Create a source +// CreateSourceHarvest - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceIterable(ctx context.Context, request *shared.SourceIterableCreateRequest, opts ...operations.Option) (*operations.CreateSourceIterableResponse, error) { +func (s *Sources) CreateSourceHarvest(ctx context.Context, request *shared.SourceHarvestCreateRequest, opts ...operations.Option) (*operations.CreateSourceHarvestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceIterable", + OperationID: "createSourceHarvest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9427,7 +9548,7 @@ func (s *Sources) CreateSourceIterable(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceIterableResponse{ + res := &operations.CreateSourceHarvestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9464,12 +9585,12 @@ func (s *Sources) CreateSourceIterable(ctx context.Context, request *shared.Sour } -// CreateSourceJira - Create a source +// CreateSourceHibob - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceJira(ctx context.Context, request *shared.SourceJiraCreateRequest, opts ...operations.Option) (*operations.CreateSourceJiraResponse, error) { +func (s *Sources) CreateSourceHibob(ctx context.Context, request *shared.SourceHibobCreateRequest, opts ...operations.Option) (*operations.CreateSourceHibobResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceJira", + OperationID: "createSourceHibob", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9548,7 +9669,7 @@ func (s *Sources) CreateSourceJira(ctx context.Context, request *shared.SourceJi } } - res := &operations.CreateSourceJiraResponse{ + res := &operations.CreateSourceHibobResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9585,12 +9706,12 @@ func (s *Sources) CreateSourceJira(ctx context.Context, request *shared.SourceJi } -// CreateSourceK6Cloud - Create a source +// CreateSourceHighLevel - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceK6Cloud(ctx context.Context, request *shared.SourceK6CloudCreateRequest, opts ...operations.Option) (*operations.CreateSourceK6CloudResponse, error) { +func (s *Sources) CreateSourceHighLevel(ctx context.Context, request *shared.SourceHighLevelCreateRequest, opts ...operations.Option) (*operations.CreateSourceHighLevelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceK6Cloud", + OperationID: "createSourceHighLevel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9669,7 +9790,7 @@ func (s *Sources) CreateSourceK6Cloud(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceK6CloudResponse{ + res := &operations.CreateSourceHighLevelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9706,12 +9827,12 @@ func (s *Sources) CreateSourceK6Cloud(ctx context.Context, request *shared.Sourc } -// CreateSourceKlarna - Create a source +// CreateSourceHubplanner - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceKlarna(ctx context.Context, request *shared.SourceKlarnaCreateRequest, opts ...operations.Option) (*operations.CreateSourceKlarnaResponse, error) { +func (s *Sources) CreateSourceHubplanner(ctx context.Context, request *shared.SourceHubplannerCreateRequest, opts ...operations.Option) (*operations.CreateSourceHubplannerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceKlarna", + OperationID: "createSourceHubplanner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9790,7 +9911,7 @@ func (s *Sources) CreateSourceKlarna(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceKlarnaResponse{ + res := &operations.CreateSourceHubplannerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9827,12 +9948,12 @@ func (s *Sources) CreateSourceKlarna(ctx context.Context, request *shared.Source } -// CreateSourceKlaviyo - Create a source +// CreateSourceHubspot - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceKlaviyo(ctx context.Context, request *shared.SourceKlaviyoCreateRequest, opts ...operations.Option) (*operations.CreateSourceKlaviyoResponse, error) { +func (s *Sources) CreateSourceHubspot(ctx context.Context, request *shared.SourceHubspotCreateRequest, opts ...operations.Option) (*operations.CreateSourceHubspotResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceKlaviyo", + OperationID: "createSourceHubspot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9911,7 +10032,7 @@ func (s *Sources) CreateSourceKlaviyo(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceKlaviyoResponse{ + res := &operations.CreateSourceHubspotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9948,12 +10069,12 @@ func (s *Sources) CreateSourceKlaviyo(ctx context.Context, request *shared.Sourc } -// CreateSourceKyve - Create a source +// CreateSourceInsightly - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceKyve(ctx context.Context, request *shared.SourceKyveCreateRequest, opts ...operations.Option) (*operations.CreateSourceKyveResponse, error) { +func (s *Sources) CreateSourceInsightly(ctx context.Context, request *shared.SourceInsightlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceInsightlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceKyve", + OperationID: "createSourceInsightly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10032,7 +10153,7 @@ func (s *Sources) CreateSourceKyve(ctx context.Context, request *shared.SourceKy } } - res := &operations.CreateSourceKyveResponse{ + res := &operations.CreateSourceInsightlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10069,12 +10190,12 @@ func (s *Sources) CreateSourceKyve(ctx context.Context, request *shared.SourceKy } -// CreateSourceLaunchdarkly - Create a source +// CreateSourceInstagram - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceLaunchdarkly(ctx context.Context, request *shared.SourceLaunchdarklyCreateRequest, opts ...operations.Option) (*operations.CreateSourceLaunchdarklyResponse, error) { +func (s *Sources) CreateSourceInstagram(ctx context.Context, request *shared.SourceInstagramCreateRequest, opts ...operations.Option) (*operations.CreateSourceInstagramResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLaunchdarkly", + OperationID: "createSourceInstagram", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10153,7 +10274,7 @@ func (s *Sources) CreateSourceLaunchdarkly(ctx context.Context, request *shared. } } - res := &operations.CreateSourceLaunchdarklyResponse{ + res := &operations.CreateSourceInstagramResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10190,12 +10311,12 @@ func (s *Sources) CreateSourceLaunchdarkly(ctx context.Context, request *shared. } -// CreateSourceLemlist - Create a source +// CreateSourceInstatus - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceLemlist(ctx context.Context, request *shared.SourceLemlistCreateRequest, opts ...operations.Option) (*operations.CreateSourceLemlistResponse, error) { +func (s *Sources) CreateSourceInstatus(ctx context.Context, request *shared.SourceInstatusCreateRequest, opts ...operations.Option) (*operations.CreateSourceInstatusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLemlist", + OperationID: "createSourceInstatus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10274,7 +10395,7 @@ func (s *Sources) CreateSourceLemlist(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceLemlistResponse{ + res := &operations.CreateSourceInstatusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10311,12 +10432,12 @@ func (s *Sources) CreateSourceLemlist(ctx context.Context, request *shared.Sourc } -// CreateSourceLeverHiring - Create a source +// CreateSourceIntercom - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceLeverHiring(ctx context.Context, request *shared.SourceLeverHiringCreateRequest, opts ...operations.Option) (*operations.CreateSourceLeverHiringResponse, error) { +func (s *Sources) CreateSourceIntercom(ctx context.Context, request *shared.SourceIntercomCreateRequest, opts ...operations.Option) (*operations.CreateSourceIntercomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLeverHiring", + OperationID: "createSourceIntercom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10395,7 +10516,7 @@ func (s *Sources) CreateSourceLeverHiring(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceLeverHiringResponse{ + res := &operations.CreateSourceIntercomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10432,12 +10553,12 @@ func (s *Sources) CreateSourceLeverHiring(ctx context.Context, request *shared.S } -// CreateSourceLinkedinAds - Create a source +// CreateSourceIp2whois - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceLinkedinAds(ctx context.Context, request *shared.SourceLinkedinAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinkedinAdsResponse, error) { +func (s *Sources) CreateSourceIp2whois(ctx context.Context, request *shared.SourceIp2whoisCreateRequest, opts ...operations.Option) (*operations.CreateSourceIp2whoisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLinkedinAds", + OperationID: "createSourceIp2whois", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10516,7 +10637,7 @@ func (s *Sources) CreateSourceLinkedinAds(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceLinkedinAdsResponse{ + res := &operations.CreateSourceIp2whoisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10553,12 +10674,12 @@ func (s *Sources) CreateSourceLinkedinAds(ctx context.Context, request *shared.S } -// CreateSourceLinkedinPages - Create a source +// CreateSourceIterable - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceLinkedinPages(ctx context.Context, request *shared.SourceLinkedinPagesCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinkedinPagesResponse, error) { +func (s *Sources) CreateSourceIterable(ctx context.Context, request *shared.SourceIterableCreateRequest, opts ...operations.Option) (*operations.CreateSourceIterableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLinkedinPages", + OperationID: "createSourceIterable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10637,7 +10758,7 @@ func (s *Sources) CreateSourceLinkedinPages(ctx context.Context, request *shared } } - res := &operations.CreateSourceLinkedinPagesResponse{ + res := &operations.CreateSourceIterableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10674,12 +10795,12 @@ func (s *Sources) CreateSourceLinkedinPages(ctx context.Context, request *shared } -// CreateSourceLinnworks - Create a source +// CreateSourceJira - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceLinnworks(ctx context.Context, request *shared.SourceLinnworksCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinnworksResponse, error) { +func (s *Sources) CreateSourceJira(ctx context.Context, request *shared.SourceJiraCreateRequest, opts ...operations.Option) (*operations.CreateSourceJiraResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLinnworks", + OperationID: "createSourceJira", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10758,7 +10879,7 @@ func (s *Sources) CreateSourceLinnworks(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceLinnworksResponse{ + res := &operations.CreateSourceJiraResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10795,12 +10916,12 @@ func (s *Sources) CreateSourceLinnworks(ctx context.Context, request *shared.Sou } -// CreateSourceLokalise - Create a source +// CreateSourceK6Cloud - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceLokalise(ctx context.Context, request *shared.SourceLokaliseCreateRequest, opts ...operations.Option) (*operations.CreateSourceLokaliseResponse, error) { +func (s *Sources) CreateSourceK6Cloud(ctx context.Context, request *shared.SourceK6CloudCreateRequest, opts ...operations.Option) (*operations.CreateSourceK6CloudResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLokalise", + OperationID: "createSourceK6Cloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10879,7 +11000,7 @@ func (s *Sources) CreateSourceLokalise(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceLokaliseResponse{ + res := &operations.CreateSourceK6CloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10916,12 +11037,12 @@ func (s *Sources) CreateSourceLokalise(ctx context.Context, request *shared.Sour } -// CreateSourceMailchimp - Create a source +// CreateSourceKlarna - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMailchimp(ctx context.Context, request *shared.SourceMailchimpCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailchimpResponse, error) { +func (s *Sources) CreateSourceKlarna(ctx context.Context, request *shared.SourceKlarnaCreateRequest, opts ...operations.Option) (*operations.CreateSourceKlarnaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMailchimp", + OperationID: "createSourceKlarna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11000,7 +11121,7 @@ func (s *Sources) CreateSourceMailchimp(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceMailchimpResponse{ + res := &operations.CreateSourceKlarnaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11037,12 +11158,12 @@ func (s *Sources) CreateSourceMailchimp(ctx context.Context, request *shared.Sou } -// CreateSourceMailgun - Create a source +// CreateSourceKlaviyo - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMailgun(ctx context.Context, request *shared.SourceMailgunCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailgunResponse, error) { +func (s *Sources) CreateSourceKlaviyo(ctx context.Context, request *shared.SourceKlaviyoCreateRequest, opts ...operations.Option) (*operations.CreateSourceKlaviyoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMailgun", + OperationID: "createSourceKlaviyo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11121,7 +11242,7 @@ func (s *Sources) CreateSourceMailgun(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceMailgunResponse{ + res := &operations.CreateSourceKlaviyoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11158,12 +11279,12 @@ func (s *Sources) CreateSourceMailgun(ctx context.Context, request *shared.Sourc } -// CreateSourceMailjetSms - Create a source +// CreateSourceKyve - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMailjetSms(ctx context.Context, request *shared.SourceMailjetSmsCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailjetSmsResponse, error) { +func (s *Sources) CreateSourceKyve(ctx context.Context, request *shared.SourceKyveCreateRequest, opts ...operations.Option) (*operations.CreateSourceKyveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMailjetSms", + OperationID: "createSourceKyve", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11242,7 +11363,7 @@ func (s *Sources) CreateSourceMailjetSms(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceMailjetSmsResponse{ + res := &operations.CreateSourceKyveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11279,12 +11400,12 @@ func (s *Sources) CreateSourceMailjetSms(ctx context.Context, request *shared.So } -// CreateSourceMarketo - Create a source +// CreateSourceLaunchdarkly - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMarketo(ctx context.Context, request *shared.SourceMarketoCreateRequest, opts ...operations.Option) (*operations.CreateSourceMarketoResponse, error) { +func (s *Sources) CreateSourceLaunchdarkly(ctx context.Context, request *shared.SourceLaunchdarklyCreateRequest, opts ...operations.Option) (*operations.CreateSourceLaunchdarklyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMarketo", + OperationID: "createSourceLaunchdarkly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11363,7 +11484,7 @@ func (s *Sources) CreateSourceMarketo(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceMarketoResponse{ + res := &operations.CreateSourceLaunchdarklyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11400,12 +11521,12 @@ func (s *Sources) CreateSourceMarketo(ctx context.Context, request *shared.Sourc } -// CreateSourceMetabase - Create a source +// CreateSourceLeadfeeder - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMetabase(ctx context.Context, request *shared.SourceMetabaseCreateRequest, opts ...operations.Option) (*operations.CreateSourceMetabaseResponse, error) { +func (s *Sources) CreateSourceLeadfeeder(ctx context.Context, request *shared.SourceLeadfeederCreateRequest, opts ...operations.Option) (*operations.CreateSourceLeadfeederResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMetabase", + OperationID: "createSourceLeadfeeder", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11484,7 +11605,7 @@ func (s *Sources) CreateSourceMetabase(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceMetabaseResponse{ + res := &operations.CreateSourceLeadfeederResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11521,12 +11642,12 @@ func (s *Sources) CreateSourceMetabase(ctx context.Context, request *shared.Sour } -// CreateSourceMicrosoftOnedrive - Create a source +// CreateSourceLemlist - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMicrosoftOnedrive(ctx context.Context, request *shared.SourceMicrosoftOnedriveCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftOnedriveResponse, error) { +func (s *Sources) CreateSourceLemlist(ctx context.Context, request *shared.SourceLemlistCreateRequest, opts ...operations.Option) (*operations.CreateSourceLemlistResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMicrosoftOnedrive", + OperationID: "createSourceLemlist", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11605,7 +11726,7 @@ func (s *Sources) CreateSourceMicrosoftOnedrive(ctx context.Context, request *sh } } - res := &operations.CreateSourceMicrosoftOnedriveResponse{ + res := &operations.CreateSourceLemlistResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11642,12 +11763,12 @@ func (s *Sources) CreateSourceMicrosoftOnedrive(ctx context.Context, request *sh } -// CreateSourceMicrosoftSharepoint - Create a source +// CreateSourceLeverHiring - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMicrosoftSharepoint(ctx context.Context, request *shared.SourceMicrosoftSharepointCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftSharepointResponse, error) { +func (s *Sources) CreateSourceLeverHiring(ctx context.Context, request *shared.SourceLeverHiringCreateRequest, opts ...operations.Option) (*operations.CreateSourceLeverHiringResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMicrosoftSharepoint", + OperationID: "createSourceLeverHiring", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11726,7 +11847,7 @@ func (s *Sources) CreateSourceMicrosoftSharepoint(ctx context.Context, request * } } - res := &operations.CreateSourceMicrosoftSharepointResponse{ + res := &operations.CreateSourceLeverHiringResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11763,12 +11884,12 @@ func (s *Sources) CreateSourceMicrosoftSharepoint(ctx context.Context, request * } -// CreateSourceMicrosoftTeams - Create a source +// CreateSourceLinkedinAds - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMicrosoftTeams(ctx context.Context, request *shared.SourceMicrosoftTeamsCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftTeamsResponse, error) { +func (s *Sources) CreateSourceLinkedinAds(ctx context.Context, request *shared.SourceLinkedinAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinkedinAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMicrosoftTeams", + OperationID: "createSourceLinkedinAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11847,7 +11968,7 @@ func (s *Sources) CreateSourceMicrosoftTeams(ctx context.Context, request *share } } - res := &operations.CreateSourceMicrosoftTeamsResponse{ + res := &operations.CreateSourceLinkedinAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11884,12 +12005,12 @@ func (s *Sources) CreateSourceMicrosoftTeams(ctx context.Context, request *share } -// CreateSourceMixpanel - Create a source +// CreateSourceLinkedinPages - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMixpanel(ctx context.Context, request *shared.SourceMixpanelCreateRequest, opts ...operations.Option) (*operations.CreateSourceMixpanelResponse, error) { +func (s *Sources) CreateSourceLinkedinPages(ctx context.Context, request *shared.SourceLinkedinPagesCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinkedinPagesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMixpanel", + OperationID: "createSourceLinkedinPages", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11968,7 +12089,7 @@ func (s *Sources) CreateSourceMixpanel(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceMixpanelResponse{ + res := &operations.CreateSourceLinkedinPagesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12005,12 +12126,12 @@ func (s *Sources) CreateSourceMixpanel(ctx context.Context, request *shared.Sour } -// CreateSourceMonday - Create a source +// CreateSourceLinnworks - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMonday(ctx context.Context, request *shared.SourceMondayCreateRequest, opts ...operations.Option) (*operations.CreateSourceMondayResponse, error) { +func (s *Sources) CreateSourceLinnworks(ctx context.Context, request *shared.SourceLinnworksCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinnworksResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMonday", + OperationID: "createSourceLinnworks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12089,7 +12210,7 @@ func (s *Sources) CreateSourceMonday(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceMondayResponse{ + res := &operations.CreateSourceLinnworksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12126,12 +12247,12 @@ func (s *Sources) CreateSourceMonday(ctx context.Context, request *shared.Source } -// CreateSourceMongodbInternalPoc - Create a source +// CreateSourceLokalise - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMongodbInternalPoc(ctx context.Context, request *shared.SourceMongodbInternalPocCreateRequest, opts ...operations.Option) (*operations.CreateSourceMongodbInternalPocResponse, error) { +func (s *Sources) CreateSourceLokalise(ctx context.Context, request *shared.SourceLokaliseCreateRequest, opts ...operations.Option) (*operations.CreateSourceLokaliseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMongodbInternalPoc", + OperationID: "createSourceLokalise", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12210,7 +12331,7 @@ func (s *Sources) CreateSourceMongodbInternalPoc(ctx context.Context, request *s } } - res := &operations.CreateSourceMongodbInternalPocResponse{ + res := &operations.CreateSourceLokaliseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12247,12 +12368,12 @@ func (s *Sources) CreateSourceMongodbInternalPoc(ctx context.Context, request *s } -// CreateSourceMongodbV2 - Create a source +// CreateSourceLooker - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMongodbV2(ctx context.Context, request *shared.SourceMongodbV2CreateRequest, opts ...operations.Option) (*operations.CreateSourceMongodbV2Response, error) { +func (s *Sources) CreateSourceLooker(ctx context.Context, request *shared.SourceLookerCreateRequest, opts ...operations.Option) (*operations.CreateSourceLookerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMongodbV2", + OperationID: "createSourceLooker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12331,7 +12452,7 @@ func (s *Sources) CreateSourceMongodbV2(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceMongodbV2Response{ + res := &operations.CreateSourceLookerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12368,12 +12489,12 @@ func (s *Sources) CreateSourceMongodbV2(ctx context.Context, request *shared.Sou } -// CreateSourceMssql - Create a source +// CreateSourceLuma - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMssql(ctx context.Context, request *shared.SourceMssqlCreateRequest, opts ...operations.Option) (*operations.CreateSourceMssqlResponse, error) { +func (s *Sources) CreateSourceLuma(ctx context.Context, request *shared.SourceLumaCreateRequest, opts ...operations.Option) (*operations.CreateSourceLumaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMssql", + OperationID: "createSourceLuma", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12452,7 +12573,7 @@ func (s *Sources) CreateSourceMssql(ctx context.Context, request *shared.SourceM } } - res := &operations.CreateSourceMssqlResponse{ + res := &operations.CreateSourceLumaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12489,12 +12610,12 @@ func (s *Sources) CreateSourceMssql(ctx context.Context, request *shared.SourceM } -// CreateSourceMyHours - Create a source +// CreateSourceMailchimp - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMyHours(ctx context.Context, request *shared.SourceMyHoursCreateRequest, opts ...operations.Option) (*operations.CreateSourceMyHoursResponse, error) { +func (s *Sources) CreateSourceMailchimp(ctx context.Context, request *shared.SourceMailchimpCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailchimpResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMyHours", + OperationID: "createSourceMailchimp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12573,7 +12694,7 @@ func (s *Sources) CreateSourceMyHours(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceMyHoursResponse{ + res := &operations.CreateSourceMailchimpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12610,12 +12731,12 @@ func (s *Sources) CreateSourceMyHours(ctx context.Context, request *shared.Sourc } -// CreateSourceMysql - Create a source +// CreateSourceMailgun - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceMysql(ctx context.Context, request *shared.SourceMysqlCreateRequest, opts ...operations.Option) (*operations.CreateSourceMysqlResponse, error) { +func (s *Sources) CreateSourceMailgun(ctx context.Context, request *shared.SourceMailgunCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailgunResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMysql", + OperationID: "createSourceMailgun", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12694,7 +12815,7 @@ func (s *Sources) CreateSourceMysql(ctx context.Context, request *shared.SourceM } } - res := &operations.CreateSourceMysqlResponse{ + res := &operations.CreateSourceMailgunResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12731,12 +12852,12 @@ func (s *Sources) CreateSourceMysql(ctx context.Context, request *shared.SourceM } -// CreateSourceNetsuite - Create a source +// CreateSourceMailjetSms - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceNetsuite(ctx context.Context, request *shared.SourceNetsuiteCreateRequest, opts ...operations.Option) (*operations.CreateSourceNetsuiteResponse, error) { +func (s *Sources) CreateSourceMailjetSms(ctx context.Context, request *shared.SourceMailjetSmsCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailjetSmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceNetsuite", + OperationID: "createSourceMailjetSms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12815,7 +12936,7 @@ func (s *Sources) CreateSourceNetsuite(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceNetsuiteResponse{ + res := &operations.CreateSourceMailjetSmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12852,12 +12973,12 @@ func (s *Sources) CreateSourceNetsuite(ctx context.Context, request *shared.Sour } -// CreateSourceNotion - Create a source +// CreateSourceMarketo - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceNotion(ctx context.Context, request *shared.SourceNotionCreateRequest, opts ...operations.Option) (*operations.CreateSourceNotionResponse, error) { +func (s *Sources) CreateSourceMarketo(ctx context.Context, request *shared.SourceMarketoCreateRequest, opts ...operations.Option) (*operations.CreateSourceMarketoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceNotion", + OperationID: "createSourceMarketo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12936,7 +13057,7 @@ func (s *Sources) CreateSourceNotion(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceNotionResponse{ + res := &operations.CreateSourceMarketoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12973,12 +13094,12 @@ func (s *Sources) CreateSourceNotion(ctx context.Context, request *shared.Source } -// CreateSourceNytimes - Create a source +// CreateSourceMetabase - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceNytimes(ctx context.Context, request *shared.SourceNytimesCreateRequest, opts ...operations.Option) (*operations.CreateSourceNytimesResponse, error) { +func (s *Sources) CreateSourceMetabase(ctx context.Context, request *shared.SourceMetabaseCreateRequest, opts ...operations.Option) (*operations.CreateSourceMetabaseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceNytimes", + OperationID: "createSourceMetabase", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13057,7 +13178,7 @@ func (s *Sources) CreateSourceNytimes(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceNytimesResponse{ + res := &operations.CreateSourceMetabaseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13094,12 +13215,12 @@ func (s *Sources) CreateSourceNytimes(ctx context.Context, request *shared.Sourc } -// CreateSourceOkta - Create a source +// CreateSourceMicrosoftOnedrive - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceOkta(ctx context.Context, request *shared.SourceOktaCreateRequest, opts ...operations.Option) (*operations.CreateSourceOktaResponse, error) { +func (s *Sources) CreateSourceMicrosoftOnedrive(ctx context.Context, request *shared.SourceMicrosoftOnedriveCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftOnedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOkta", + OperationID: "createSourceMicrosoftOnedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13178,7 +13299,7 @@ func (s *Sources) CreateSourceOkta(ctx context.Context, request *shared.SourceOk } } - res := &operations.CreateSourceOktaResponse{ + res := &operations.CreateSourceMicrosoftOnedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13215,12 +13336,12 @@ func (s *Sources) CreateSourceOkta(ctx context.Context, request *shared.SourceOk } -// CreateSourceOmnisend - Create a source +// CreateSourceMicrosoftSharepoint - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceOmnisend(ctx context.Context, request *shared.SourceOmnisendCreateRequest, opts ...operations.Option) (*operations.CreateSourceOmnisendResponse, error) { +func (s *Sources) CreateSourceMicrosoftSharepoint(ctx context.Context, request *shared.SourceMicrosoftSharepointCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftSharepointResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOmnisend", + OperationID: "createSourceMicrosoftSharepoint", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13299,7 +13420,7 @@ func (s *Sources) CreateSourceOmnisend(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceOmnisendResponse{ + res := &operations.CreateSourceMicrosoftSharepointResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13336,12 +13457,12 @@ func (s *Sources) CreateSourceOmnisend(ctx context.Context, request *shared.Sour } -// CreateSourceOnesignal - Create a source +// CreateSourceMicrosoftTeams - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceOnesignal(ctx context.Context, request *shared.SourceOnesignalCreateRequest, opts ...operations.Option) (*operations.CreateSourceOnesignalResponse, error) { +func (s *Sources) CreateSourceMicrosoftTeams(ctx context.Context, request *shared.SourceMicrosoftTeamsCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftTeamsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOnesignal", + OperationID: "createSourceMicrosoftTeams", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13420,7 +13541,7 @@ func (s *Sources) CreateSourceOnesignal(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceOnesignalResponse{ + res := &operations.CreateSourceMicrosoftTeamsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13457,12 +13578,12 @@ func (s *Sources) CreateSourceOnesignal(ctx context.Context, request *shared.Sou } -// CreateSourceOracle - Create a source +// CreateSourceMixpanel - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceOracle(ctx context.Context, request *shared.SourceOracleCreateRequest, opts ...operations.Option) (*operations.CreateSourceOracleResponse, error) { +func (s *Sources) CreateSourceMixpanel(ctx context.Context, request *shared.SourceMixpanelCreateRequest, opts ...operations.Option) (*operations.CreateSourceMixpanelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOracle", + OperationID: "createSourceMixpanel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13541,7 +13662,7 @@ func (s *Sources) CreateSourceOracle(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceOracleResponse{ + res := &operations.CreateSourceMixpanelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13578,12 +13699,12 @@ func (s *Sources) CreateSourceOracle(ctx context.Context, request *shared.Source } -// CreateSourceOrb - Create a source +// CreateSourceMonday - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceOrb(ctx context.Context, request *shared.SourceOrbCreateRequest, opts ...operations.Option) (*operations.CreateSourceOrbResponse, error) { +func (s *Sources) CreateSourceMonday(ctx context.Context, request *shared.SourceMondayCreateRequest, opts ...operations.Option) (*operations.CreateSourceMondayResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOrb", + OperationID: "createSourceMonday", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13662,7 +13783,7 @@ func (s *Sources) CreateSourceOrb(ctx context.Context, request *shared.SourceOrb } } - res := &operations.CreateSourceOrbResponse{ + res := &operations.CreateSourceMondayResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13699,12 +13820,12 @@ func (s *Sources) CreateSourceOrb(ctx context.Context, request *shared.SourceOrb } -// CreateSourceOrbit - Create a source +// CreateSourceMongodbV2 - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceOrbit(ctx context.Context, request *shared.SourceOrbitCreateRequest, opts ...operations.Option) (*operations.CreateSourceOrbitResponse, error) { +func (s *Sources) CreateSourceMongodbV2(ctx context.Context, request *shared.SourceMongodbV2CreateRequest, opts ...operations.Option) (*operations.CreateSourceMongodbV2Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOrbit", + OperationID: "createSourceMongodbV2", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13783,7 +13904,7 @@ func (s *Sources) CreateSourceOrbit(ctx context.Context, request *shared.SourceO } } - res := &operations.CreateSourceOrbitResponse{ + res := &operations.CreateSourceMongodbV2Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13820,12 +13941,12 @@ func (s *Sources) CreateSourceOrbit(ctx context.Context, request *shared.SourceO } -// CreateSourceOutbrainAmplify - Create a source +// CreateSourceMssql - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceOutbrainAmplify(ctx context.Context, request *shared.SourceOutbrainAmplifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceOutbrainAmplifyResponse, error) { +func (s *Sources) CreateSourceMssql(ctx context.Context, request *shared.SourceMssqlCreateRequest, opts ...operations.Option) (*operations.CreateSourceMssqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOutbrainAmplify", + OperationID: "createSourceMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13904,7 +14025,7 @@ func (s *Sources) CreateSourceOutbrainAmplify(ctx context.Context, request *shar } } - res := &operations.CreateSourceOutbrainAmplifyResponse{ + res := &operations.CreateSourceMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13941,12 +14062,12 @@ func (s *Sources) CreateSourceOutbrainAmplify(ctx context.Context, request *shar } -// CreateSourceOutreach - Create a source +// CreateSourceMyHours - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceOutreach(ctx context.Context, request *shared.SourceOutreachCreateRequest, opts ...operations.Option) (*operations.CreateSourceOutreachResponse, error) { +func (s *Sources) CreateSourceMyHours(ctx context.Context, request *shared.SourceMyHoursCreateRequest, opts ...operations.Option) (*operations.CreateSourceMyHoursResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOutreach", + OperationID: "createSourceMyHours", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14025,7 +14146,7 @@ func (s *Sources) CreateSourceOutreach(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceOutreachResponse{ + res := &operations.CreateSourceMyHoursResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14062,12 +14183,12 @@ func (s *Sources) CreateSourceOutreach(ctx context.Context, request *shared.Sour } -// CreateSourcePaypalTransaction - Create a source +// CreateSourceMysql - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePaypalTransaction(ctx context.Context, request *shared.SourcePaypalTransactionCreateRequest, opts ...operations.Option) (*operations.CreateSourcePaypalTransactionResponse, error) { +func (s *Sources) CreateSourceMysql(ctx context.Context, request *shared.SourceMysqlCreateRequest, opts ...operations.Option) (*operations.CreateSourceMysqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePaypalTransaction", + OperationID: "createSourceMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14146,7 +14267,7 @@ func (s *Sources) CreateSourcePaypalTransaction(ctx context.Context, request *sh } } - res := &operations.CreateSourcePaypalTransactionResponse{ + res := &operations.CreateSourceMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14183,12 +14304,12 @@ func (s *Sources) CreateSourcePaypalTransaction(ctx context.Context, request *sh } -// CreateSourcePaystack - Create a source +// CreateSourceNetsuite - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePaystack(ctx context.Context, request *shared.SourcePaystackCreateRequest, opts ...operations.Option) (*operations.CreateSourcePaystackResponse, error) { +func (s *Sources) CreateSourceNetsuite(ctx context.Context, request *shared.SourceNetsuiteCreateRequest, opts ...operations.Option) (*operations.CreateSourceNetsuiteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePaystack", + OperationID: "createSourceNetsuite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14267,7 +14388,7 @@ func (s *Sources) CreateSourcePaystack(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourcePaystackResponse{ + res := &operations.CreateSourceNetsuiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14304,12 +14425,12 @@ func (s *Sources) CreateSourcePaystack(ctx context.Context, request *shared.Sour } -// CreateSourcePendo - Create a source +// CreateSourceNorthpassLms - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePendo(ctx context.Context, request *shared.SourcePendoCreateRequest, opts ...operations.Option) (*operations.CreateSourcePendoResponse, error) { +func (s *Sources) CreateSourceNorthpassLms(ctx context.Context, request *shared.SourceNorthpassLmsCreateRequest, opts ...operations.Option) (*operations.CreateSourceNorthpassLmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePendo", + OperationID: "createSourceNorthpassLms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14388,7 +14509,7 @@ func (s *Sources) CreateSourcePendo(ctx context.Context, request *shared.SourceP } } - res := &operations.CreateSourcePendoResponse{ + res := &operations.CreateSourceNorthpassLmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14425,12 +14546,12 @@ func (s *Sources) CreateSourcePendo(ctx context.Context, request *shared.SourceP } -// CreateSourcePersistiq - Create a source +// CreateSourceNotion - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePersistiq(ctx context.Context, request *shared.SourcePersistiqCreateRequest, opts ...operations.Option) (*operations.CreateSourcePersistiqResponse, error) { +func (s *Sources) CreateSourceNotion(ctx context.Context, request *shared.SourceNotionCreateRequest, opts ...operations.Option) (*operations.CreateSourceNotionResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePersistiq", + OperationID: "createSourceNotion", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14509,7 +14630,7 @@ func (s *Sources) CreateSourcePersistiq(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourcePersistiqResponse{ + res := &operations.CreateSourceNotionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14546,12 +14667,12 @@ func (s *Sources) CreateSourcePersistiq(ctx context.Context, request *shared.Sou } -// CreateSourcePexelsAPI - Create a source +// CreateSourceNytimes - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePexelsAPI(ctx context.Context, request *shared.SourcePexelsAPICreateRequest, opts ...operations.Option) (*operations.CreateSourcePexelsAPIResponse, error) { +func (s *Sources) CreateSourceNytimes(ctx context.Context, request *shared.SourceNytimesCreateRequest, opts ...operations.Option) (*operations.CreateSourceNytimesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePexelsApi", + OperationID: "createSourceNytimes", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14630,7 +14751,7 @@ func (s *Sources) CreateSourcePexelsAPI(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourcePexelsAPIResponse{ + res := &operations.CreateSourceNytimesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14667,12 +14788,12 @@ func (s *Sources) CreateSourcePexelsAPI(ctx context.Context, request *shared.Sou } -// CreateSourcePinterest - Create a source +// CreateSourceOkta - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePinterest(ctx context.Context, request *shared.SourcePinterestCreateRequest, opts ...operations.Option) (*operations.CreateSourcePinterestResponse, error) { +func (s *Sources) CreateSourceOkta(ctx context.Context, request *shared.SourceOktaCreateRequest, opts ...operations.Option) (*operations.CreateSourceOktaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePinterest", + OperationID: "createSourceOkta", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14751,7 +14872,7 @@ func (s *Sources) CreateSourcePinterest(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourcePinterestResponse{ + res := &operations.CreateSourceOktaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14788,12 +14909,12 @@ func (s *Sources) CreateSourcePinterest(ctx context.Context, request *shared.Sou } -// CreateSourcePipedrive - Create a source +// CreateSourceOmnisend - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePipedrive(ctx context.Context, request *shared.SourcePipedriveCreateRequest, opts ...operations.Option) (*operations.CreateSourcePipedriveResponse, error) { +func (s *Sources) CreateSourceOmnisend(ctx context.Context, request *shared.SourceOmnisendCreateRequest, opts ...operations.Option) (*operations.CreateSourceOmnisendResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePipedrive", + OperationID: "createSourceOmnisend", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14872,7 +14993,7 @@ func (s *Sources) CreateSourcePipedrive(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourcePipedriveResponse{ + res := &operations.CreateSourceOmnisendResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14909,12 +15030,12 @@ func (s *Sources) CreateSourcePipedrive(ctx context.Context, request *shared.Sou } -// CreateSourcePocket - Create a source +// CreateSourceOnesignal - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePocket(ctx context.Context, request *shared.SourcePocketCreateRequest, opts ...operations.Option) (*operations.CreateSourcePocketResponse, error) { +func (s *Sources) CreateSourceOnesignal(ctx context.Context, request *shared.SourceOnesignalCreateRequest, opts ...operations.Option) (*operations.CreateSourceOnesignalResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePocket", + OperationID: "createSourceOnesignal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14993,7 +15114,7 @@ func (s *Sources) CreateSourcePocket(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourcePocketResponse{ + res := &operations.CreateSourceOnesignalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15030,12 +15151,12 @@ func (s *Sources) CreateSourcePocket(ctx context.Context, request *shared.Source } -// CreateSourcePokeapi - Create a source +// CreateSourceOracle - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePokeapi(ctx context.Context, request *shared.SourcePokeapiCreateRequest, opts ...operations.Option) (*operations.CreateSourcePokeapiResponse, error) { +func (s *Sources) CreateSourceOracle(ctx context.Context, request *shared.SourceOracleCreateRequest, opts ...operations.Option) (*operations.CreateSourceOracleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePokeapi", + OperationID: "createSourceOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15114,7 +15235,7 @@ func (s *Sources) CreateSourcePokeapi(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourcePokeapiResponse{ + res := &operations.CreateSourceOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15151,12 +15272,12 @@ func (s *Sources) CreateSourcePokeapi(ctx context.Context, request *shared.Sourc } -// CreateSourcePolygonStockAPI - Create a source +// CreateSourceOrb - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePolygonStockAPI(ctx context.Context, request *shared.SourcePolygonStockAPICreateRequest, opts ...operations.Option) (*operations.CreateSourcePolygonStockAPIResponse, error) { +func (s *Sources) CreateSourceOrb(ctx context.Context, request *shared.SourceOrbCreateRequest, opts ...operations.Option) (*operations.CreateSourceOrbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePolygonStockApi", + OperationID: "createSourceOrb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15235,7 +15356,7 @@ func (s *Sources) CreateSourcePolygonStockAPI(ctx context.Context, request *shar } } - res := &operations.CreateSourcePolygonStockAPIResponse{ + res := &operations.CreateSourceOrbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15272,12 +15393,12 @@ func (s *Sources) CreateSourcePolygonStockAPI(ctx context.Context, request *shar } -// CreateSourcePostgres - Create a source +// CreateSourceOrbit - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePostgres(ctx context.Context, request *shared.SourcePostgresCreateRequest, opts ...operations.Option) (*operations.CreateSourcePostgresResponse, error) { +func (s *Sources) CreateSourceOrbit(ctx context.Context, request *shared.SourceOrbitCreateRequest, opts ...operations.Option) (*operations.CreateSourceOrbitResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePostgres", + OperationID: "createSourceOrbit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15356,7 +15477,7 @@ func (s *Sources) CreateSourcePostgres(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourcePostgresResponse{ + res := &operations.CreateSourceOrbitResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15393,12 +15514,12 @@ func (s *Sources) CreateSourcePostgres(ctx context.Context, request *shared.Sour } -// CreateSourcePosthog - Create a source +// CreateSourceOutbrainAmplify - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePosthog(ctx context.Context, request *shared.SourcePosthogCreateRequest, opts ...operations.Option) (*operations.CreateSourcePosthogResponse, error) { +func (s *Sources) CreateSourceOutbrainAmplify(ctx context.Context, request *shared.SourceOutbrainAmplifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceOutbrainAmplifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePosthog", + OperationID: "createSourceOutbrainAmplify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15477,7 +15598,7 @@ func (s *Sources) CreateSourcePosthog(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourcePosthogResponse{ + res := &operations.CreateSourceOutbrainAmplifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15514,12 +15635,12 @@ func (s *Sources) CreateSourcePosthog(ctx context.Context, request *shared.Sourc } -// CreateSourcePostmarkapp - Create a source +// CreateSourceOutreach - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePostmarkapp(ctx context.Context, request *shared.SourcePostmarkappCreateRequest, opts ...operations.Option) (*operations.CreateSourcePostmarkappResponse, error) { +func (s *Sources) CreateSourceOutreach(ctx context.Context, request *shared.SourceOutreachCreateRequest, opts ...operations.Option) (*operations.CreateSourceOutreachResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePostmarkapp", + OperationID: "createSourceOutreach", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15598,7 +15719,7 @@ func (s *Sources) CreateSourcePostmarkapp(ctx context.Context, request *shared.S } } - res := &operations.CreateSourcePostmarkappResponse{ + res := &operations.CreateSourceOutreachResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15635,12 +15756,12 @@ func (s *Sources) CreateSourcePostmarkapp(ctx context.Context, request *shared.S } -// CreateSourcePrestashop - Create a source +// CreateSourcePaypalTransaction - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourcePrestashop(ctx context.Context, request *shared.SourcePrestashopCreateRequest, opts ...operations.Option) (*operations.CreateSourcePrestashopResponse, error) { +func (s *Sources) CreateSourcePaypalTransaction(ctx context.Context, request *shared.SourcePaypalTransactionCreateRequest, opts ...operations.Option) (*operations.CreateSourcePaypalTransactionResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePrestashop", + OperationID: "createSourcePaypalTransaction", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15719,7 +15840,7 @@ func (s *Sources) CreateSourcePrestashop(ctx context.Context, request *shared.So } } - res := &operations.CreateSourcePrestashopResponse{ + res := &operations.CreateSourcePaypalTransactionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15756,12 +15877,12 @@ func (s *Sources) CreateSourcePrestashop(ctx context.Context, request *shared.So } -// CreateSourcePunkAPI - Create a source +// CreateSourcePaystack - 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) { +func (s *Sources) CreateSourcePaystack(ctx context.Context, request *shared.SourcePaystackCreateRequest, opts ...operations.Option) (*operations.CreateSourcePaystackResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePunkApi", + OperationID: "createSourcePaystack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15840,7 +15961,7 @@ func (s *Sources) CreateSourcePunkAPI(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourcePunkAPIResponse{ + res := &operations.CreateSourcePaystackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15877,12 +15998,12 @@ func (s *Sources) CreateSourcePunkAPI(ctx context.Context, request *shared.Sourc } -// CreateSourcePypi - Create a source +// CreateSourcePendo - 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) { +func (s *Sources) CreateSourcePendo(ctx context.Context, request *shared.SourcePendoCreateRequest, opts ...operations.Option) (*operations.CreateSourcePendoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePypi", + OperationID: "createSourcePendo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15961,7 +16082,7 @@ func (s *Sources) CreateSourcePypi(ctx context.Context, request *shared.SourcePy } } - res := &operations.CreateSourcePypiResponse{ + res := &operations.CreateSourcePendoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15998,12 +16119,12 @@ func (s *Sources) CreateSourcePypi(ctx context.Context, request *shared.SourcePy } -// CreateSourceQualaroo - Create a source +// CreateSourcePennylane - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceQualaroo(ctx context.Context, request *shared.SourceQualarooCreateRequest, opts ...operations.Option) (*operations.CreateSourceQualarooResponse, error) { +func (s *Sources) CreateSourcePennylane(ctx context.Context, request *shared.SourcePennylaneCreateRequest, opts ...operations.Option) (*operations.CreateSourcePennylaneResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceQualaroo", + OperationID: "createSourcePennylane", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16082,7 +16203,7 @@ func (s *Sources) CreateSourceQualaroo(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceQualarooResponse{ + res := &operations.CreateSourcePennylaneResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16119,12 +16240,12 @@ func (s *Sources) CreateSourceQualaroo(ctx context.Context, request *shared.Sour } -// CreateSourceRailz - Create a source +// CreateSourcePersistiq - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceRailz(ctx context.Context, request *shared.SourceRailzCreateRequest, opts ...operations.Option) (*operations.CreateSourceRailzResponse, error) { +func (s *Sources) CreateSourcePersistiq(ctx context.Context, request *shared.SourcePersistiqCreateRequest, opts ...operations.Option) (*operations.CreateSourcePersistiqResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRailz", + OperationID: "createSourcePersistiq", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16203,7 +16324,7 @@ func (s *Sources) CreateSourceRailz(ctx context.Context, request *shared.SourceR } } - res := &operations.CreateSourceRailzResponse{ + res := &operations.CreateSourcePersistiqResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16240,12 +16361,12 @@ func (s *Sources) CreateSourceRailz(ctx context.Context, request *shared.SourceR } -// CreateSourceRecharge - Create a source +// CreateSourcePexelsAPI - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceRecharge(ctx context.Context, request *shared.SourceRechargeCreateRequest, opts ...operations.Option) (*operations.CreateSourceRechargeResponse, error) { +func (s *Sources) CreateSourcePexelsAPI(ctx context.Context, request *shared.SourcePexelsAPICreateRequest, opts ...operations.Option) (*operations.CreateSourcePexelsAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRecharge", + OperationID: "createSourcePexelsApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16324,7 +16445,7 @@ func (s *Sources) CreateSourceRecharge(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceRechargeResponse{ + res := &operations.CreateSourcePexelsAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16361,12 +16482,12 @@ func (s *Sources) CreateSourceRecharge(ctx context.Context, request *shared.Sour } -// CreateSourceRecreation - Create a source +// CreateSourcePinterest - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceRecreation(ctx context.Context, request *shared.SourceRecreationCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecreationResponse, error) { +func (s *Sources) CreateSourcePinterest(ctx context.Context, request *shared.SourcePinterestCreateRequest, opts ...operations.Option) (*operations.CreateSourcePinterestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRecreation", + OperationID: "createSourcePinterest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16445,7 +16566,7 @@ func (s *Sources) CreateSourceRecreation(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceRecreationResponse{ + res := &operations.CreateSourcePinterestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16482,12 +16603,12 @@ func (s *Sources) CreateSourceRecreation(ctx context.Context, request *shared.So } -// CreateSourceRecruitee - Create a source +// CreateSourcePipedrive - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceRecruitee(ctx context.Context, request *shared.SourceRecruiteeCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecruiteeResponse, error) { +func (s *Sources) CreateSourcePipedrive(ctx context.Context, request *shared.SourcePipedriveCreateRequest, opts ...operations.Option) (*operations.CreateSourcePipedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRecruitee", + OperationID: "createSourcePipedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16566,7 +16687,7 @@ func (s *Sources) CreateSourceRecruitee(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceRecruiteeResponse{ + res := &operations.CreateSourcePipedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16603,12 +16724,12 @@ func (s *Sources) CreateSourceRecruitee(ctx context.Context, request *shared.Sou } -// CreateSourceRecurly - Create a source +// CreateSourcePlanhat - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceRecurly(ctx context.Context, request *shared.SourceRecurlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecurlyResponse, error) { +func (s *Sources) CreateSourcePlanhat(ctx context.Context, request *shared.SourcePlanhatCreateRequest, opts ...operations.Option) (*operations.CreateSourcePlanhatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRecurly", + OperationID: "createSourcePlanhat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16687,7 +16808,7 @@ func (s *Sources) CreateSourceRecurly(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceRecurlyResponse{ + res := &operations.CreateSourcePlanhatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16724,12 +16845,12 @@ func (s *Sources) CreateSourceRecurly(ctx context.Context, request *shared.Sourc } -// CreateSourceRedshift - Create a source +// CreateSourcePocket - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceRedshift(ctx context.Context, request *shared.SourceRedshiftCreateRequest, opts ...operations.Option) (*operations.CreateSourceRedshiftResponse, error) { +func (s *Sources) CreateSourcePocket(ctx context.Context, request *shared.SourcePocketCreateRequest, opts ...operations.Option) (*operations.CreateSourcePocketResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRedshift", + OperationID: "createSourcePocket", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16808,7 +16929,7 @@ func (s *Sources) CreateSourceRedshift(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceRedshiftResponse{ + res := &operations.CreateSourcePocketResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16845,12 +16966,12 @@ func (s *Sources) CreateSourceRedshift(ctx context.Context, request *shared.Sour } -// CreateSourceRetently - Create a source +// CreateSourcePokeapi - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceRetently(ctx context.Context, request *shared.SourceRetentlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceRetentlyResponse, error) { +func (s *Sources) CreateSourcePokeapi(ctx context.Context, request *shared.SourcePokeapiCreateRequest, opts ...operations.Option) (*operations.CreateSourcePokeapiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRetently", + OperationID: "createSourcePokeapi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16929,7 +17050,7 @@ func (s *Sources) CreateSourceRetently(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceRetentlyResponse{ + res := &operations.CreateSourcePokeapiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16966,12 +17087,12 @@ func (s *Sources) CreateSourceRetently(ctx context.Context, request *shared.Sour } -// CreateSourceRkiCovid - Create a source +// CreateSourcePolygonStockAPI - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceRkiCovid(ctx context.Context, request *shared.SourceRkiCovidCreateRequest, opts ...operations.Option) (*operations.CreateSourceRkiCovidResponse, error) { +func (s *Sources) CreateSourcePolygonStockAPI(ctx context.Context, request *shared.SourcePolygonStockAPICreateRequest, opts ...operations.Option) (*operations.CreateSourcePolygonStockAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRkiCovid", + OperationID: "createSourcePolygonStockApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17050,7 +17171,7 @@ func (s *Sources) CreateSourceRkiCovid(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceRkiCovidResponse{ + res := &operations.CreateSourcePolygonStockAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17087,12 +17208,12 @@ func (s *Sources) CreateSourceRkiCovid(ctx context.Context, request *shared.Sour } -// CreateSourceRss - Create a source +// CreateSourcePostgres - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceRss(ctx context.Context, request *shared.SourceRssCreateRequest, opts ...operations.Option) (*operations.CreateSourceRssResponse, error) { +func (s *Sources) CreateSourcePostgres(ctx context.Context, request *shared.SourcePostgresCreateRequest, opts ...operations.Option) (*operations.CreateSourcePostgresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRss", + OperationID: "createSourcePostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17171,7 +17292,7 @@ func (s *Sources) CreateSourceRss(ctx context.Context, request *shared.SourceRss } } - res := &operations.CreateSourceRssResponse{ + res := &operations.CreateSourcePostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17208,12 +17329,12 @@ func (s *Sources) CreateSourceRss(ctx context.Context, request *shared.SourceRss } -// CreateSourceS3 - Create a source +// CreateSourcePosthog - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceS3(ctx context.Context, request *shared.SourceS3CreateRequest, opts ...operations.Option) (*operations.CreateSourceS3Response, error) { +func (s *Sources) CreateSourcePosthog(ctx context.Context, request *shared.SourcePosthogCreateRequest, opts ...operations.Option) (*operations.CreateSourcePosthogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceS3", + OperationID: "createSourcePosthog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17292,7 +17413,7 @@ func (s *Sources) CreateSourceS3(ctx context.Context, request *shared.SourceS3Cr } } - res := &operations.CreateSourceS3Response{ + res := &operations.CreateSourcePosthogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17329,12 +17450,12 @@ func (s *Sources) CreateSourceS3(ctx context.Context, request *shared.SourceS3Cr } -// CreateSourceSalesforce - Create a source +// CreateSourcePostmarkapp - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSalesforce(ctx context.Context, request *shared.SourceSalesforceCreateRequest, opts ...operations.Option) (*operations.CreateSourceSalesforceResponse, error) { +func (s *Sources) CreateSourcePostmarkapp(ctx context.Context, request *shared.SourcePostmarkappCreateRequest, opts ...operations.Option) (*operations.CreateSourcePostmarkappResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSalesforce", + OperationID: "createSourcePostmarkapp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17413,7 +17534,7 @@ func (s *Sources) CreateSourceSalesforce(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceSalesforceResponse{ + res := &operations.CreateSourcePostmarkappResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17450,12 +17571,12 @@ func (s *Sources) CreateSourceSalesforce(ctx context.Context, request *shared.So } -// CreateSourceSalesloft - Create a source +// CreateSourcePrestashop - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSalesloft(ctx context.Context, request *shared.SourceSalesloftCreateRequest, opts ...operations.Option) (*operations.CreateSourceSalesloftResponse, error) { +func (s *Sources) CreateSourcePrestashop(ctx context.Context, request *shared.SourcePrestashopCreateRequest, opts ...operations.Option) (*operations.CreateSourcePrestashopResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSalesloft", + OperationID: "createSourcePrestashop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17534,7 +17655,7 @@ func (s *Sources) CreateSourceSalesloft(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceSalesloftResponse{ + res := &operations.CreateSourcePrestashopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17571,12 +17692,12 @@ func (s *Sources) CreateSourceSalesloft(ctx context.Context, request *shared.Sou } -// CreateSourceSapFieldglass - Create a source +// 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) CreateSourceSapFieldglass(ctx context.Context, request *shared.SourceSapFieldglassCreateRequest, opts ...operations.Option) (*operations.CreateSourceSapFieldglassResponse, error) { +func (s *Sources) CreateSourcePypi(ctx context.Context, request *shared.SourcePypiCreateRequest, opts ...operations.Option) (*operations.CreateSourcePypiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSapFieldglass", + OperationID: "createSourcePypi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17655,7 +17776,7 @@ func (s *Sources) CreateSourceSapFieldglass(ctx context.Context, request *shared } } - res := &operations.CreateSourceSapFieldglassResponse{ + res := &operations.CreateSourcePypiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17692,12 +17813,12 @@ func (s *Sources) CreateSourceSapFieldglass(ctx context.Context, request *shared } -// CreateSourceSecoda - Create a source +// CreateSourceQualaroo - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSecoda(ctx context.Context, request *shared.SourceSecodaCreateRequest, opts ...operations.Option) (*operations.CreateSourceSecodaResponse, error) { +func (s *Sources) CreateSourceQualaroo(ctx context.Context, request *shared.SourceQualarooCreateRequest, opts ...operations.Option) (*operations.CreateSourceQualarooResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSecoda", + OperationID: "createSourceQualaroo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17776,7 +17897,7 @@ func (s *Sources) CreateSourceSecoda(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceSecodaResponse{ + res := &operations.CreateSourceQualarooResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17813,12 +17934,12 @@ func (s *Sources) CreateSourceSecoda(ctx context.Context, request *shared.Source } -// CreateSourceSendgrid - Create a source +// CreateSourceRailz - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSendgrid(ctx context.Context, request *shared.SourceSendgridCreateRequest, opts ...operations.Option) (*operations.CreateSourceSendgridResponse, error) { +func (s *Sources) CreateSourceRailz(ctx context.Context, request *shared.SourceRailzCreateRequest, opts ...operations.Option) (*operations.CreateSourceRailzResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSendgrid", + OperationID: "createSourceRailz", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17897,7 +18018,7 @@ func (s *Sources) CreateSourceSendgrid(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceSendgridResponse{ + res := &operations.CreateSourceRailzResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17934,12 +18055,12 @@ func (s *Sources) CreateSourceSendgrid(ctx context.Context, request *shared.Sour } -// CreateSourceSendinblue - Create a source +// CreateSourceRecharge - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSendinblue(ctx context.Context, request *shared.SourceSendinblueCreateRequest, opts ...operations.Option) (*operations.CreateSourceSendinblueResponse, error) { +func (s *Sources) CreateSourceRecharge(ctx context.Context, request *shared.SourceRechargeCreateRequest, opts ...operations.Option) (*operations.CreateSourceRechargeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSendinblue", + OperationID: "createSourceRecharge", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18018,7 +18139,7 @@ func (s *Sources) CreateSourceSendinblue(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceSendinblueResponse{ + res := &operations.CreateSourceRechargeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18055,12 +18176,12 @@ func (s *Sources) CreateSourceSendinblue(ctx context.Context, request *shared.So } -// CreateSourceSenseforce - Create a source +// CreateSourceRecreation - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSenseforce(ctx context.Context, request *shared.SourceSenseforceCreateRequest, opts ...operations.Option) (*operations.CreateSourceSenseforceResponse, error) { +func (s *Sources) CreateSourceRecreation(ctx context.Context, request *shared.SourceRecreationCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecreationResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSenseforce", + OperationID: "createSourceRecreation", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18139,7 +18260,7 @@ func (s *Sources) CreateSourceSenseforce(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceSenseforceResponse{ + res := &operations.CreateSourceRecreationResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18176,12 +18297,12 @@ func (s *Sources) CreateSourceSenseforce(ctx context.Context, request *shared.So } -// CreateSourceSentry - Create a source +// CreateSourceRecruitee - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSentry(ctx context.Context, request *shared.SourceSentryCreateRequest, opts ...operations.Option) (*operations.CreateSourceSentryResponse, error) { +func (s *Sources) CreateSourceRecruitee(ctx context.Context, request *shared.SourceRecruiteeCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecruiteeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSentry", + OperationID: "createSourceRecruitee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18260,7 +18381,7 @@ func (s *Sources) CreateSourceSentry(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceSentryResponse{ + res := &operations.CreateSourceRecruiteeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18297,12 +18418,12 @@ func (s *Sources) CreateSourceSentry(ctx context.Context, request *shared.Source } -// CreateSourceSftp - Create a source +// CreateSourceRecurly - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSftp(ctx context.Context, request *shared.SourceSftpCreateRequest, opts ...operations.Option) (*operations.CreateSourceSftpResponse, error) { +func (s *Sources) CreateSourceRecurly(ctx context.Context, request *shared.SourceRecurlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecurlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSftp", + OperationID: "createSourceRecurly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18381,7 +18502,7 @@ func (s *Sources) CreateSourceSftp(ctx context.Context, request *shared.SourceSf } } - res := &operations.CreateSourceSftpResponse{ + res := &operations.CreateSourceRecurlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18418,12 +18539,12 @@ func (s *Sources) CreateSourceSftp(ctx context.Context, request *shared.SourceSf } -// CreateSourceSftpBulk - Create a source +// CreateSourceReddit - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSftpBulk(ctx context.Context, request *shared.SourceSftpBulkCreateRequest, opts ...operations.Option) (*operations.CreateSourceSftpBulkResponse, error) { +func (s *Sources) CreateSourceReddit(ctx context.Context, request *shared.SourceRedditCreateRequest, opts ...operations.Option) (*operations.CreateSourceRedditResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSftpBulk", + OperationID: "createSourceReddit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18502,7 +18623,7 @@ func (s *Sources) CreateSourceSftpBulk(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceSftpBulkResponse{ + res := &operations.CreateSourceRedditResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18539,12 +18660,12 @@ func (s *Sources) CreateSourceSftpBulk(ctx context.Context, request *shared.Sour } -// CreateSourceShopify - Create a source +// CreateSourceRedshift - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceShopify(ctx context.Context, request *shared.SourceShopifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceShopifyResponse, error) { +func (s *Sources) CreateSourceRedshift(ctx context.Context, request *shared.SourceRedshiftCreateRequest, opts ...operations.Option) (*operations.CreateSourceRedshiftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceShopify", + OperationID: "createSourceRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18623,7 +18744,7 @@ func (s *Sources) CreateSourceShopify(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceShopifyResponse{ + res := &operations.CreateSourceRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18660,12 +18781,12 @@ func (s *Sources) CreateSourceShopify(ctx context.Context, request *shared.Sourc } -// CreateSourceShortio - Create a source +// CreateSourceRetently - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceShortio(ctx context.Context, request *shared.SourceShortioCreateRequest, opts ...operations.Option) (*operations.CreateSourceShortioResponse, error) { +func (s *Sources) CreateSourceRetently(ctx context.Context, request *shared.SourceRetentlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceRetentlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceShortio", + OperationID: "createSourceRetently", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18744,7 +18865,7 @@ func (s *Sources) CreateSourceShortio(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceShortioResponse{ + res := &operations.CreateSourceRetentlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18781,12 +18902,12 @@ func (s *Sources) CreateSourceShortio(ctx context.Context, request *shared.Sourc } -// CreateSourceSlack - Create a source +// CreateSourceRkiCovid - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSlack(ctx context.Context, request *shared.SourceSlackCreateRequest, opts ...operations.Option) (*operations.CreateSourceSlackResponse, error) { +func (s *Sources) CreateSourceRkiCovid(ctx context.Context, request *shared.SourceRkiCovidCreateRequest, opts ...operations.Option) (*operations.CreateSourceRkiCovidResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSlack", + OperationID: "createSourceRkiCovid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18865,7 +18986,7 @@ func (s *Sources) CreateSourceSlack(ctx context.Context, request *shared.SourceS } } - res := &operations.CreateSourceSlackResponse{ + res := &operations.CreateSourceRkiCovidResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18902,12 +19023,12 @@ func (s *Sources) CreateSourceSlack(ctx context.Context, request *shared.SourceS } -// CreateSourceSmaily - Create a source +// CreateSourceRss - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSmaily(ctx context.Context, request *shared.SourceSmailyCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmailyResponse, error) { +func (s *Sources) CreateSourceRss(ctx context.Context, request *shared.SourceRssCreateRequest, opts ...operations.Option) (*operations.CreateSourceRssResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSmaily", + OperationID: "createSourceRss", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18986,7 +19107,7 @@ func (s *Sources) CreateSourceSmaily(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceSmailyResponse{ + res := &operations.CreateSourceRssResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19023,12 +19144,12 @@ func (s *Sources) CreateSourceSmaily(ctx context.Context, request *shared.Source } -// CreateSourceSmartengage - Create a source +// CreateSourceS3 - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSmartengage(ctx context.Context, request *shared.SourceSmartengageCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmartengageResponse, error) { +func (s *Sources) CreateSourceS3(ctx context.Context, request *shared.SourceS3CreateRequest, opts ...operations.Option) (*operations.CreateSourceS3Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSmartengage", + OperationID: "createSourceS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19107,7 +19228,7 @@ func (s *Sources) CreateSourceSmartengage(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceSmartengageResponse{ + res := &operations.CreateSourceS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19144,12 +19265,12 @@ func (s *Sources) CreateSourceSmartengage(ctx context.Context, request *shared.S } -// CreateSourceSmartsheets - Create a source +// CreateSourceSalesforce - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSmartsheets(ctx context.Context, request *shared.SourceSmartsheetsCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmartsheetsResponse, error) { +func (s *Sources) CreateSourceSalesforce(ctx context.Context, request *shared.SourceSalesforceCreateRequest, opts ...operations.Option) (*operations.CreateSourceSalesforceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSmartsheets", + OperationID: "createSourceSalesforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19228,7 +19349,7 @@ func (s *Sources) CreateSourceSmartsheets(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceSmartsheetsResponse{ + res := &operations.CreateSourceSalesforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19265,12 +19386,12 @@ func (s *Sources) CreateSourceSmartsheets(ctx context.Context, request *shared.S } -// CreateSourceSnapchatMarketing - Create a source +// CreateSourceSalesloft - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSnapchatMarketing(ctx context.Context, request *shared.SourceSnapchatMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceSnapchatMarketingResponse, error) { +func (s *Sources) CreateSourceSalesloft(ctx context.Context, request *shared.SourceSalesloftCreateRequest, opts ...operations.Option) (*operations.CreateSourceSalesloftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSnapchatMarketing", + OperationID: "createSourceSalesloft", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19349,7 +19470,7 @@ func (s *Sources) CreateSourceSnapchatMarketing(ctx context.Context, request *sh } } - res := &operations.CreateSourceSnapchatMarketingResponse{ + res := &operations.CreateSourceSalesloftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19386,12 +19507,12 @@ func (s *Sources) CreateSourceSnapchatMarketing(ctx context.Context, request *sh } -// CreateSourceSnowflake - Create a source +// CreateSourceSapFieldglass - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSnowflake(ctx context.Context, request *shared.SourceSnowflakeCreateRequest, opts ...operations.Option) (*operations.CreateSourceSnowflakeResponse, error) { +func (s *Sources) CreateSourceSapFieldglass(ctx context.Context, request *shared.SourceSapFieldglassCreateRequest, opts ...operations.Option) (*operations.CreateSourceSapFieldglassResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSnowflake", + OperationID: "createSourceSapFieldglass", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19470,7 +19591,7 @@ func (s *Sources) CreateSourceSnowflake(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceSnowflakeResponse{ + res := &operations.CreateSourceSapFieldglassResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19507,12 +19628,12 @@ func (s *Sources) CreateSourceSnowflake(ctx context.Context, request *shared.Sou } -// CreateSourceSonarCloud - Create a source +// CreateSourceSavvycal - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSonarCloud(ctx context.Context, request *shared.SourceSonarCloudCreateRequest, opts ...operations.Option) (*operations.CreateSourceSonarCloudResponse, error) { +func (s *Sources) CreateSourceSavvycal(ctx context.Context, request *shared.SourceSavvycalCreateRequest, opts ...operations.Option) (*operations.CreateSourceSavvycalResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSonarCloud", + OperationID: "createSourceSavvycal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19591,7 +19712,7 @@ func (s *Sources) CreateSourceSonarCloud(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceSonarCloudResponse{ + res := &operations.CreateSourceSavvycalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19628,12 +19749,12 @@ func (s *Sources) CreateSourceSonarCloud(ctx context.Context, request *shared.So } -// CreateSourceSpacexAPI - Create a source +// CreateSourceScryfall - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSpacexAPI(ctx context.Context, request *shared.SourceSpacexAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceSpacexAPIResponse, error) { +func (s *Sources) CreateSourceScryfall(ctx context.Context, request *shared.SourceScryfallCreateRequest, opts ...operations.Option) (*operations.CreateSourceScryfallResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSpacexApi", + OperationID: "createSourceScryfall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19712,7 +19833,7 @@ func (s *Sources) CreateSourceSpacexAPI(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceSpacexAPIResponse{ + res := &operations.CreateSourceScryfallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19749,12 +19870,12 @@ func (s *Sources) CreateSourceSpacexAPI(ctx context.Context, request *shared.Sou } -// CreateSourceSquare - Create a source +// CreateSourceSecoda - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSquare(ctx context.Context, request *shared.SourceSquareCreateRequest, opts ...operations.Option) (*operations.CreateSourceSquareResponse, error) { +func (s *Sources) CreateSourceSecoda(ctx context.Context, request *shared.SourceSecodaCreateRequest, opts ...operations.Option) (*operations.CreateSourceSecodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSquare", + OperationID: "createSourceSecoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19833,7 +19954,7 @@ func (s *Sources) CreateSourceSquare(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceSquareResponse{ + res := &operations.CreateSourceSecodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19870,12 +19991,12 @@ func (s *Sources) CreateSourceSquare(ctx context.Context, request *shared.Source } -// CreateSourceStrava - Create a source +// CreateSourceSendgrid - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceStrava(ctx context.Context, request *shared.SourceStravaCreateRequest, opts ...operations.Option) (*operations.CreateSourceStravaResponse, error) { +func (s *Sources) CreateSourceSendgrid(ctx context.Context, request *shared.SourceSendgridCreateRequest, opts ...operations.Option) (*operations.CreateSourceSendgridResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceStrava", + OperationID: "createSourceSendgrid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19954,7 +20075,7 @@ func (s *Sources) CreateSourceStrava(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceStravaResponse{ + res := &operations.CreateSourceSendgridResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19991,12 +20112,12 @@ func (s *Sources) CreateSourceStrava(ctx context.Context, request *shared.Source } -// CreateSourceStripe - Create a source +// CreateSourceSendinblue - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceStripe(ctx context.Context, request *shared.SourceStripeCreateRequest, opts ...operations.Option) (*operations.CreateSourceStripeResponse, error) { +func (s *Sources) CreateSourceSendinblue(ctx context.Context, request *shared.SourceSendinblueCreateRequest, opts ...operations.Option) (*operations.CreateSourceSendinblueResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceStripe", + OperationID: "createSourceSendinblue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20075,7 +20196,7 @@ func (s *Sources) CreateSourceStripe(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceStripeResponse{ + res := &operations.CreateSourceSendinblueResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20112,12 +20233,12 @@ func (s *Sources) CreateSourceStripe(ctx context.Context, request *shared.Source } -// CreateSourceSurveySparrow - Create a source +// CreateSourceSenseforce - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSurveySparrow(ctx context.Context, request *shared.SourceSurveySparrowCreateRequest, opts ...operations.Option) (*operations.CreateSourceSurveySparrowResponse, error) { +func (s *Sources) CreateSourceSenseforce(ctx context.Context, request *shared.SourceSenseforceCreateRequest, opts ...operations.Option) (*operations.CreateSourceSenseforceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSurveySparrow", + OperationID: "createSourceSenseforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20196,7 +20317,7 @@ func (s *Sources) CreateSourceSurveySparrow(ctx context.Context, request *shared } } - res := &operations.CreateSourceSurveySparrowResponse{ + res := &operations.CreateSourceSenseforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20233,12 +20354,12 @@ func (s *Sources) CreateSourceSurveySparrow(ctx context.Context, request *shared } -// CreateSourceSurveymonkey - Create a source +// CreateSourceSentry - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceSurveymonkey(ctx context.Context, request *shared.SourceSurveymonkeyCreateRequest, opts ...operations.Option) (*operations.CreateSourceSurveymonkeyResponse, error) { +func (s *Sources) CreateSourceSentry(ctx context.Context, request *shared.SourceSentryCreateRequest, opts ...operations.Option) (*operations.CreateSourceSentryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSurveymonkey", + OperationID: "createSourceSentry", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20317,7 +20438,7 @@ func (s *Sources) CreateSourceSurveymonkey(ctx context.Context, request *shared. } } - res := &operations.CreateSourceSurveymonkeyResponse{ + res := &operations.CreateSourceSentryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20354,12 +20475,12 @@ func (s *Sources) CreateSourceSurveymonkey(ctx context.Context, request *shared. } -// CreateSourceTempo - Create a source +// CreateSourceSftp - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTempo(ctx context.Context, request *shared.SourceTempoCreateRequest, opts ...operations.Option) (*operations.CreateSourceTempoResponse, error) { +func (s *Sources) CreateSourceSftp(ctx context.Context, request *shared.SourceSftpCreateRequest, opts ...operations.Option) (*operations.CreateSourceSftpResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTempo", + OperationID: "createSourceSftp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20438,7 +20559,7 @@ func (s *Sources) CreateSourceTempo(ctx context.Context, request *shared.SourceT } } - res := &operations.CreateSourceTempoResponse{ + res := &operations.CreateSourceSftpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20475,12 +20596,12 @@ func (s *Sources) CreateSourceTempo(ctx context.Context, request *shared.SourceT } -// CreateSourceTheGuardianAPI - Create a source +// CreateSourceSftpBulk - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTheGuardianAPI(ctx context.Context, request *shared.SourceTheGuardianAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceTheGuardianAPIResponse, error) { +func (s *Sources) CreateSourceSftpBulk(ctx context.Context, request *shared.SourceSftpBulkCreateRequest, opts ...operations.Option) (*operations.CreateSourceSftpBulkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTheGuardianApi", + OperationID: "createSourceSftpBulk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20559,7 +20680,7 @@ func (s *Sources) CreateSourceTheGuardianAPI(ctx context.Context, request *share } } - res := &operations.CreateSourceTheGuardianAPIResponse{ + res := &operations.CreateSourceSftpBulkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20596,12 +20717,12 @@ func (s *Sources) CreateSourceTheGuardianAPI(ctx context.Context, request *share } -// CreateSourceTiktokMarketing - Create a source +// CreateSourceShopify - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTiktokMarketing(ctx context.Context, request *shared.SourceTiktokMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceTiktokMarketingResponse, error) { +func (s *Sources) CreateSourceShopify(ctx context.Context, request *shared.SourceShopifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceShopifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTiktokMarketing", + OperationID: "createSourceShopify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20680,7 +20801,7 @@ func (s *Sources) CreateSourceTiktokMarketing(ctx context.Context, request *shar } } - res := &operations.CreateSourceTiktokMarketingResponse{ + res := &operations.CreateSourceShopifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20717,12 +20838,12 @@ func (s *Sources) CreateSourceTiktokMarketing(ctx context.Context, request *shar } -// CreateSourceTrello - Create a source +// CreateSourceShortio - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTrello(ctx context.Context, request *shared.SourceTrelloCreateRequest, opts ...operations.Option) (*operations.CreateSourceTrelloResponse, error) { +func (s *Sources) CreateSourceShortio(ctx context.Context, request *shared.SourceShortioCreateRequest, opts ...operations.Option) (*operations.CreateSourceShortioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTrello", + OperationID: "createSourceShortio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20801,7 +20922,7 @@ func (s *Sources) CreateSourceTrello(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceTrelloResponse{ + res := &operations.CreateSourceShortioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20838,12 +20959,12 @@ func (s *Sources) CreateSourceTrello(ctx context.Context, request *shared.Source } -// CreateSourceTrustpilot - Create a source +// CreateSourceSlack - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTrustpilot(ctx context.Context, request *shared.SourceTrustpilotCreateRequest, opts ...operations.Option) (*operations.CreateSourceTrustpilotResponse, error) { +func (s *Sources) CreateSourceSlack(ctx context.Context, request *shared.SourceSlackCreateRequest, opts ...operations.Option) (*operations.CreateSourceSlackResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTrustpilot", + OperationID: "createSourceSlack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20922,7 +21043,7 @@ func (s *Sources) CreateSourceTrustpilot(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceTrustpilotResponse{ + res := &operations.CreateSourceSlackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20959,12 +21080,12 @@ func (s *Sources) CreateSourceTrustpilot(ctx context.Context, request *shared.So } -// CreateSourceTvmazeSchedule - Create a source +// CreateSourceSmaily - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTvmazeSchedule(ctx context.Context, request *shared.SourceTvmazeScheduleCreateRequest, opts ...operations.Option) (*operations.CreateSourceTvmazeScheduleResponse, error) { +func (s *Sources) CreateSourceSmaily(ctx context.Context, request *shared.SourceSmailyCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmailyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTvmazeSchedule", + OperationID: "createSourceSmaily", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21043,7 +21164,7 @@ func (s *Sources) CreateSourceTvmazeSchedule(ctx context.Context, request *share } } - res := &operations.CreateSourceTvmazeScheduleResponse{ + res := &operations.CreateSourceSmailyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21080,12 +21201,12 @@ func (s *Sources) CreateSourceTvmazeSchedule(ctx context.Context, request *share } -// CreateSourceTwilio - Create a source +// CreateSourceSmartengage - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTwilio(ctx context.Context, request *shared.SourceTwilioCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwilioResponse, error) { +func (s *Sources) CreateSourceSmartengage(ctx context.Context, request *shared.SourceSmartengageCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmartengageResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTwilio", + OperationID: "createSourceSmartengage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21164,7 +21285,7 @@ func (s *Sources) CreateSourceTwilio(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceTwilioResponse{ + res := &operations.CreateSourceSmartengageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21201,12 +21322,12 @@ func (s *Sources) CreateSourceTwilio(ctx context.Context, request *shared.Source } -// CreateSourceTwilioTaskrouter - Create a source +// CreateSourceSmartsheets - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTwilioTaskrouter(ctx context.Context, request *shared.SourceTwilioTaskrouterCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwilioTaskrouterResponse, error) { +func (s *Sources) CreateSourceSmartsheets(ctx context.Context, request *shared.SourceSmartsheetsCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmartsheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTwilioTaskrouter", + OperationID: "createSourceSmartsheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21285,7 +21406,7 @@ func (s *Sources) CreateSourceTwilioTaskrouter(ctx context.Context, request *sha } } - res := &operations.CreateSourceTwilioTaskrouterResponse{ + res := &operations.CreateSourceSmartsheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21322,12 +21443,12 @@ func (s *Sources) CreateSourceTwilioTaskrouter(ctx context.Context, request *sha } -// CreateSourceTwitter - Create a source +// CreateSourceSnapchatMarketing - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTwitter(ctx context.Context, request *shared.SourceTwitterCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwitterResponse, error) { +func (s *Sources) CreateSourceSnapchatMarketing(ctx context.Context, request *shared.SourceSnapchatMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceSnapchatMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTwitter", + OperationID: "createSourceSnapchatMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21406,7 +21527,7 @@ func (s *Sources) CreateSourceTwitter(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceTwitterResponse{ + res := &operations.CreateSourceSnapchatMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21443,12 +21564,12 @@ func (s *Sources) CreateSourceTwitter(ctx context.Context, request *shared.Sourc } -// CreateSourceTypeform - Create a source +// CreateSourceSnowflake - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceTypeform(ctx context.Context, request *shared.SourceTypeformCreateRequest, opts ...operations.Option) (*operations.CreateSourceTypeformResponse, error) { +func (s *Sources) CreateSourceSnowflake(ctx context.Context, request *shared.SourceSnowflakeCreateRequest, opts ...operations.Option) (*operations.CreateSourceSnowflakeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTypeform", + OperationID: "createSourceSnowflake", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21527,7 +21648,7 @@ func (s *Sources) CreateSourceTypeform(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceTypeformResponse{ + res := &operations.CreateSourceSnowflakeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21564,12 +21685,12 @@ func (s *Sources) CreateSourceTypeform(ctx context.Context, request *shared.Sour } -// CreateSourceUsCensus - Create a source +// CreateSourceSonarCloud - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceUsCensus(ctx context.Context, request *shared.SourceUsCensusCreateRequest, opts ...operations.Option) (*operations.CreateSourceUsCensusResponse, error) { +func (s *Sources) CreateSourceSonarCloud(ctx context.Context, request *shared.SourceSonarCloudCreateRequest, opts ...operations.Option) (*operations.CreateSourceSonarCloudResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceUsCensus", + OperationID: "createSourceSonarCloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21648,7 +21769,7 @@ func (s *Sources) CreateSourceUsCensus(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceUsCensusResponse{ + res := &operations.CreateSourceSonarCloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21685,12 +21806,12 @@ func (s *Sources) CreateSourceUsCensus(ctx context.Context, request *shared.Sour } -// CreateSourceVantage - Create a source +// CreateSourceSpacexAPI - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceVantage(ctx context.Context, request *shared.SourceVantageCreateRequest, opts ...operations.Option) (*operations.CreateSourceVantageResponse, error) { +func (s *Sources) CreateSourceSpacexAPI(ctx context.Context, request *shared.SourceSpacexAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceSpacexAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceVantage", + OperationID: "createSourceSpacexApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21769,7 +21890,7 @@ func (s *Sources) CreateSourceVantage(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceVantageResponse{ + res := &operations.CreateSourceSpacexAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21806,12 +21927,12 @@ func (s *Sources) CreateSourceVantage(ctx context.Context, request *shared.Sourc } -// CreateSourceWebflow - Create a source +// CreateSourceSquare - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceWebflow(ctx context.Context, request *shared.SourceWebflowCreateRequest, opts ...operations.Option) (*operations.CreateSourceWebflowResponse, error) { +func (s *Sources) CreateSourceSquare(ctx context.Context, request *shared.SourceSquareCreateRequest, opts ...operations.Option) (*operations.CreateSourceSquareResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceWebflow", + OperationID: "createSourceSquare", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21890,7 +22011,7 @@ func (s *Sources) CreateSourceWebflow(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceWebflowResponse{ + res := &operations.CreateSourceSquareResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21927,12 +22048,12 @@ func (s *Sources) CreateSourceWebflow(ctx context.Context, request *shared.Sourc } -// CreateSourceWhiskyHunter - Create a source +// CreateSourceStrava - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceWhiskyHunter(ctx context.Context, request *shared.SourceWhiskyHunterCreateRequest, opts ...operations.Option) (*operations.CreateSourceWhiskyHunterResponse, error) { +func (s *Sources) CreateSourceStrava(ctx context.Context, request *shared.SourceStravaCreateRequest, opts ...operations.Option) (*operations.CreateSourceStravaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceWhiskyHunter", + OperationID: "createSourceStrava", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22011,7 +22132,7 @@ func (s *Sources) CreateSourceWhiskyHunter(ctx context.Context, request *shared. } } - res := &operations.CreateSourceWhiskyHunterResponse{ + res := &operations.CreateSourceStravaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22048,12 +22169,12 @@ func (s *Sources) CreateSourceWhiskyHunter(ctx context.Context, request *shared. } -// CreateSourceWikipediaPageviews - Create a source +// CreateSourceStripe - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceWikipediaPageviews(ctx context.Context, request *shared.SourceWikipediaPageviewsCreateRequest, opts ...operations.Option) (*operations.CreateSourceWikipediaPageviewsResponse, error) { +func (s *Sources) CreateSourceStripe(ctx context.Context, request *shared.SourceStripeCreateRequest, opts ...operations.Option) (*operations.CreateSourceStripeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceWikipediaPageviews", + OperationID: "createSourceStripe", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22132,7 +22253,7 @@ func (s *Sources) CreateSourceWikipediaPageviews(ctx context.Context, request *s } } - res := &operations.CreateSourceWikipediaPageviewsResponse{ + res := &operations.CreateSourceStripeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22169,12 +22290,12 @@ func (s *Sources) CreateSourceWikipediaPageviews(ctx context.Context, request *s } -// CreateSourceWoocommerce - Create a source +// CreateSourceSurveySparrow - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceWoocommerce(ctx context.Context, request *shared.SourceWoocommerceCreateRequest, opts ...operations.Option) (*operations.CreateSourceWoocommerceResponse, error) { +func (s *Sources) CreateSourceSurveySparrow(ctx context.Context, request *shared.SourceSurveySparrowCreateRequest, opts ...operations.Option) (*operations.CreateSourceSurveySparrowResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceWoocommerce", + OperationID: "createSourceSurveySparrow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22253,7 +22374,7 @@ func (s *Sources) CreateSourceWoocommerce(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceWoocommerceResponse{ + res := &operations.CreateSourceSurveySparrowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22290,12 +22411,12 @@ func (s *Sources) CreateSourceWoocommerce(ctx context.Context, request *shared.S } -// CreateSourceXkcd - Create a source +// CreateSourceSurveymonkey - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceXkcd(ctx context.Context, request *shared.SourceXkcdCreateRequest, opts ...operations.Option) (*operations.CreateSourceXkcdResponse, error) { +func (s *Sources) CreateSourceSurveymonkey(ctx context.Context, request *shared.SourceSurveymonkeyCreateRequest, opts ...operations.Option) (*operations.CreateSourceSurveymonkeyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceXkcd", + OperationID: "createSourceSurveymonkey", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22374,7 +22495,7 @@ func (s *Sources) CreateSourceXkcd(ctx context.Context, request *shared.SourceXk } } - res := &operations.CreateSourceXkcdResponse{ + res := &operations.CreateSourceSurveymonkeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22411,12 +22532,12 @@ func (s *Sources) CreateSourceXkcd(ctx context.Context, request *shared.SourceXk } -// CreateSourceYandexMetrica - Create a source +// CreateSourceTempo - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceYandexMetrica(ctx context.Context, request *shared.SourceYandexMetricaCreateRequest, opts ...operations.Option) (*operations.CreateSourceYandexMetricaResponse, error) { +func (s *Sources) CreateSourceTempo(ctx context.Context, request *shared.SourceTempoCreateRequest, opts ...operations.Option) (*operations.CreateSourceTempoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceYandexMetrica", + OperationID: "createSourceTempo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22495,7 +22616,7 @@ func (s *Sources) CreateSourceYandexMetrica(ctx context.Context, request *shared } } - res := &operations.CreateSourceYandexMetricaResponse{ + res := &operations.CreateSourceTempoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22532,12 +22653,12 @@ func (s *Sources) CreateSourceYandexMetrica(ctx context.Context, request *shared } -// CreateSourceYotpo - Create a source +// CreateSourceTheGuardianAPI - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceYotpo(ctx context.Context, request *shared.SourceYotpoCreateRequest, opts ...operations.Option) (*operations.CreateSourceYotpoResponse, error) { +func (s *Sources) CreateSourceTheGuardianAPI(ctx context.Context, request *shared.SourceTheGuardianAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceTheGuardianAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceYotpo", + OperationID: "createSourceTheGuardianApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22616,7 +22737,7 @@ func (s *Sources) CreateSourceYotpo(ctx context.Context, request *shared.SourceY } } - res := &operations.CreateSourceYotpoResponse{ + res := &operations.CreateSourceTheGuardianAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22653,12 +22774,12 @@ func (s *Sources) CreateSourceYotpo(ctx context.Context, request *shared.SourceY } -// CreateSourceYoutubeAnalytics - Create a source +// CreateSourceTiktokMarketing - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceYoutubeAnalytics(ctx context.Context, request *shared.SourceYoutubeAnalyticsCreateRequest, opts ...operations.Option) (*operations.CreateSourceYoutubeAnalyticsResponse, error) { +func (s *Sources) CreateSourceTiktokMarketing(ctx context.Context, request *shared.SourceTiktokMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceTiktokMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceYoutubeAnalytics", + OperationID: "createSourceTiktokMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22737,7 +22858,7 @@ func (s *Sources) CreateSourceYoutubeAnalytics(ctx context.Context, request *sha } } - res := &operations.CreateSourceYoutubeAnalyticsResponse{ + res := &operations.CreateSourceTiktokMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22774,12 +22895,12 @@ func (s *Sources) CreateSourceYoutubeAnalytics(ctx context.Context, request *sha } -// CreateSourceZendeskChat - Create a source +// CreateSourceTrello - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceZendeskChat(ctx context.Context, request *shared.SourceZendeskChatCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskChatResponse, error) { +func (s *Sources) CreateSourceTrello(ctx context.Context, request *shared.SourceTrelloCreateRequest, opts ...operations.Option) (*operations.CreateSourceTrelloResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskChat", + OperationID: "createSourceTrello", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22858,7 +22979,7 @@ func (s *Sources) CreateSourceZendeskChat(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceZendeskChatResponse{ + res := &operations.CreateSourceTrelloResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22895,12 +23016,12 @@ func (s *Sources) CreateSourceZendeskChat(ctx context.Context, request *shared.S } -// CreateSourceZendeskSell - Create a source +// CreateSourceTrustpilot - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceZendeskSell(ctx context.Context, request *shared.SourceZendeskSellCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskSellResponse, error) { +func (s *Sources) CreateSourceTrustpilot(ctx context.Context, request *shared.SourceTrustpilotCreateRequest, opts ...operations.Option) (*operations.CreateSourceTrustpilotResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskSell", + OperationID: "createSourceTrustpilot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22979,7 +23100,7 @@ func (s *Sources) CreateSourceZendeskSell(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceZendeskSellResponse{ + res := &operations.CreateSourceTrustpilotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23016,12 +23137,12 @@ func (s *Sources) CreateSourceZendeskSell(ctx context.Context, request *shared.S } -// CreateSourceZendeskSunshine - Create a source +// CreateSourceTvmazeSchedule - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceZendeskSunshine(ctx context.Context, request *shared.SourceZendeskSunshineCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskSunshineResponse, error) { +func (s *Sources) CreateSourceTvmazeSchedule(ctx context.Context, request *shared.SourceTvmazeScheduleCreateRequest, opts ...operations.Option) (*operations.CreateSourceTvmazeScheduleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskSunshine", + OperationID: "createSourceTvmazeSchedule", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23100,7 +23221,7 @@ func (s *Sources) CreateSourceZendeskSunshine(ctx context.Context, request *shar } } - res := &operations.CreateSourceZendeskSunshineResponse{ + res := &operations.CreateSourceTvmazeScheduleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23137,12 +23258,12 @@ func (s *Sources) CreateSourceZendeskSunshine(ctx context.Context, request *shar } -// CreateSourceZendeskSupport - Create a source +// CreateSourceTwilio - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceZendeskSupport(ctx context.Context, request *shared.SourceZendeskSupportCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskSupportResponse, error) { +func (s *Sources) CreateSourceTwilio(ctx context.Context, request *shared.SourceTwilioCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwilioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskSupport", + OperationID: "createSourceTwilio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23221,7 +23342,7 @@ func (s *Sources) CreateSourceZendeskSupport(ctx context.Context, request *share } } - res := &operations.CreateSourceZendeskSupportResponse{ + res := &operations.CreateSourceTwilioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23258,12 +23379,12 @@ func (s *Sources) CreateSourceZendeskSupport(ctx context.Context, request *share } -// CreateSourceZendeskTalk - Create a source +// CreateSourceTwilioTaskrouter - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceZendeskTalk(ctx context.Context, request *shared.SourceZendeskTalkCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskTalkResponse, error) { +func (s *Sources) CreateSourceTwilioTaskrouter(ctx context.Context, request *shared.SourceTwilioTaskrouterCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwilioTaskrouterResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskTalk", + OperationID: "createSourceTwilioTaskrouter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23342,7 +23463,7 @@ func (s *Sources) CreateSourceZendeskTalk(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceZendeskTalkResponse{ + res := &operations.CreateSourceTwilioTaskrouterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23379,12 +23500,12 @@ func (s *Sources) CreateSourceZendeskTalk(ctx context.Context, request *shared.S } -// CreateSourceZenloop - Create a source +// CreateSourceTwitter - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceZenloop(ctx context.Context, request *shared.SourceZenloopCreateRequest, opts ...operations.Option) (*operations.CreateSourceZenloopResponse, error) { +func (s *Sources) CreateSourceTwitter(ctx context.Context, request *shared.SourceTwitterCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwitterResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZenloop", + OperationID: "createSourceTwitter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23463,7 +23584,7 @@ func (s *Sources) CreateSourceZenloop(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceZenloopResponse{ + res := &operations.CreateSourceTwitterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23500,12 +23621,12 @@ func (s *Sources) CreateSourceZenloop(ctx context.Context, request *shared.Sourc } -// CreateSourceZohoCrm - Create a source +// CreateSourceTypeform - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceZohoCrm(ctx context.Context, request *shared.SourceZohoCrmCreateRequest, opts ...operations.Option) (*operations.CreateSourceZohoCrmResponse, error) { +func (s *Sources) CreateSourceTypeform(ctx context.Context, request *shared.SourceTypeformCreateRequest, opts ...operations.Option) (*operations.CreateSourceTypeformResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZohoCrm", + OperationID: "createSourceTypeform", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23584,7 +23705,7 @@ func (s *Sources) CreateSourceZohoCrm(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceZohoCrmResponse{ + res := &operations.CreateSourceTypeformResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23621,12 +23742,12 @@ func (s *Sources) CreateSourceZohoCrm(ctx context.Context, request *shared.Sourc } -// CreateSourceZoom - Create a source +// CreateSourceUsCensus - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceZoom(ctx context.Context, request *shared.SourceZoomCreateRequest, opts ...operations.Option) (*operations.CreateSourceZoomResponse, error) { +func (s *Sources) CreateSourceUsCensus(ctx context.Context, request *shared.SourceUsCensusCreateRequest, opts ...operations.Option) (*operations.CreateSourceUsCensusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZoom", + OperationID: "createSourceUsCensus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23705,7 +23826,7 @@ func (s *Sources) CreateSourceZoom(ctx context.Context, request *shared.SourceZo } } - res := &operations.CreateSourceZoomResponse{ + res := &operations.CreateSourceUsCensusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23742,11 +23863,12 @@ func (s *Sources) CreateSourceZoom(ctx context.Context, request *shared.SourceZo } -// DeleteSource - Delete a Source -func (s *Sources) DeleteSource(ctx context.Context, request operations.DeleteSourceRequest, opts ...operations.Option) (*operations.DeleteSourceResponse, error) { +// CreateSourceVantage - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceVantage(ctx context.Context, request *shared.SourceVantageCreateRequest, opts ...operations.Option) (*operations.CreateSourceVantageResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSource", + OperationID: "createSourceVantage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23763,115 +23885,16 @@ func (s *Sources) DeleteSource(ctx context.Context, request operations.DeleteSou } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + opURL, err := url.JoinPath(baseURL, "/sources") 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) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) 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.DeleteSourceResponse{ - 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 - -} - -// DeleteSourceAha - Delete a Source -func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.DeleteSourceAhaRequest, opts ...operations.Option) (*operations.DeleteSourceAhaResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "deleteSourceAha", - 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 @@ -23883,12 +23906,13 @@ func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.Delete defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -23923,7 +23947,7 @@ func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceAhaResponse{ + res := &operations.CreateSourceVantageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23937,11 +23961,21 @@ func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.Delete httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -23950,11 +23984,12 @@ func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.Delete } -// DeleteSourceAircall - Delete a Source -func (s *Sources) DeleteSourceAircall(ctx context.Context, request operations.DeleteSourceAircallRequest, opts ...operations.Option) (*operations.DeleteSourceAircallResponse, error) { +// CreateSourceWebflow - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceWebflow(ctx context.Context, request *shared.SourceWebflowCreateRequest, opts ...operations.Option) (*operations.CreateSourceWebflowResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAircall", + OperationID: "createSourceWebflow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23971,11 +24006,16 @@ func (s *Sources) DeleteSourceAircall(ctx context.Context, request operations.De } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -23987,12 +24027,13 @@ func (s *Sources) DeleteSourceAircall(ctx context.Context, request operations.De defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24027,7 +24068,7 @@ func (s *Sources) DeleteSourceAircall(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceAircallResponse{ + res := &operations.CreateSourceWebflowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24041,11 +24082,21 @@ func (s *Sources) DeleteSourceAircall(ctx context.Context, request operations.De httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24054,11 +24105,12 @@ func (s *Sources) DeleteSourceAircall(ctx context.Context, request operations.De } -// DeleteSourceAirtable - Delete a Source -func (s *Sources) DeleteSourceAirtable(ctx context.Context, request operations.DeleteSourceAirtableRequest, opts ...operations.Option) (*operations.DeleteSourceAirtableResponse, error) { +// CreateSourceWhiskyHunter - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceWhiskyHunter(ctx context.Context, request *shared.SourceWhiskyHunterCreateRequest, opts ...operations.Option) (*operations.CreateSourceWhiskyHunterResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAirtable", + OperationID: "createSourceWhiskyHunter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24075,11 +24127,16 @@ func (s *Sources) DeleteSourceAirtable(ctx context.Context, request operations.D } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -24091,12 +24148,13 @@ func (s *Sources) DeleteSourceAirtable(ctx context.Context, request operations.D defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24131,7 +24189,7 @@ func (s *Sources) DeleteSourceAirtable(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceAirtableResponse{ + res := &operations.CreateSourceWhiskyHunterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24145,11 +24203,21 @@ func (s *Sources) DeleteSourceAirtable(ctx context.Context, request operations.D httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24158,11 +24226,12 @@ func (s *Sources) DeleteSourceAirtable(ctx context.Context, request operations.D } -// DeleteSourceAmazonAds - Delete a Source -func (s *Sources) DeleteSourceAmazonAds(ctx context.Context, request operations.DeleteSourceAmazonAdsRequest, opts ...operations.Option) (*operations.DeleteSourceAmazonAdsResponse, error) { +// CreateSourceWikipediaPageviews - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceWikipediaPageviews(ctx context.Context, request *shared.SourceWikipediaPageviewsCreateRequest, opts ...operations.Option) (*operations.CreateSourceWikipediaPageviewsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAmazonAds", + OperationID: "createSourceWikipediaPageviews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24179,11 +24248,16 @@ func (s *Sources) DeleteSourceAmazonAds(ctx context.Context, request operations. } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -24195,12 +24269,13 @@ func (s *Sources) DeleteSourceAmazonAds(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24235,7 +24310,7 @@ func (s *Sources) DeleteSourceAmazonAds(ctx context.Context, request operations. } } - res := &operations.DeleteSourceAmazonAdsResponse{ + res := &operations.CreateSourceWikipediaPageviewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24249,11 +24324,21 @@ func (s *Sources) DeleteSourceAmazonAds(ctx context.Context, request operations. httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24262,11 +24347,12 @@ func (s *Sources) DeleteSourceAmazonAds(ctx context.Context, request operations. } -// DeleteSourceAmazonSellerPartner - Delete a Source -func (s *Sources) DeleteSourceAmazonSellerPartner(ctx context.Context, request operations.DeleteSourceAmazonSellerPartnerRequest, opts ...operations.Option) (*operations.DeleteSourceAmazonSellerPartnerResponse, error) { +// CreateSourceWoocommerce - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceWoocommerce(ctx context.Context, request *shared.SourceWoocommerceCreateRequest, opts ...operations.Option) (*operations.CreateSourceWoocommerceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAmazonSellerPartner", + OperationID: "createSourceWoocommerce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24283,11 +24369,16 @@ func (s *Sources) DeleteSourceAmazonSellerPartner(ctx context.Context, request o } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -24299,12 +24390,13 @@ func (s *Sources) DeleteSourceAmazonSellerPartner(ctx context.Context, request o defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24339,7 +24431,7 @@ func (s *Sources) DeleteSourceAmazonSellerPartner(ctx context.Context, request o } } - res := &operations.DeleteSourceAmazonSellerPartnerResponse{ + res := &operations.CreateSourceWoocommerceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24353,11 +24445,21 @@ func (s *Sources) DeleteSourceAmazonSellerPartner(ctx context.Context, request o httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24366,11 +24468,12 @@ func (s *Sources) DeleteSourceAmazonSellerPartner(ctx context.Context, request o } -// DeleteSourceAmazonSqs - Delete a Source -func (s *Sources) DeleteSourceAmazonSqs(ctx context.Context, request operations.DeleteSourceAmazonSqsRequest, opts ...operations.Option) (*operations.DeleteSourceAmazonSqsResponse, error) { +// CreateSourceXkcd - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceXkcd(ctx context.Context, request *shared.SourceXkcdCreateRequest, opts ...operations.Option) (*operations.CreateSourceXkcdResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAmazonSqs", + OperationID: "createSourceXkcd", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24387,11 +24490,16 @@ func (s *Sources) DeleteSourceAmazonSqs(ctx context.Context, request operations. } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -24403,12 +24511,13 @@ func (s *Sources) DeleteSourceAmazonSqs(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24443,7 +24552,7 @@ func (s *Sources) DeleteSourceAmazonSqs(ctx context.Context, request operations. } } - res := &operations.DeleteSourceAmazonSqsResponse{ + res := &operations.CreateSourceXkcdResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24457,11 +24566,21 @@ func (s *Sources) DeleteSourceAmazonSqs(ctx context.Context, request operations. httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24470,11 +24589,12 @@ func (s *Sources) DeleteSourceAmazonSqs(ctx context.Context, request operations. } -// DeleteSourceAmplitude - Delete a Source -func (s *Sources) DeleteSourceAmplitude(ctx context.Context, request operations.DeleteSourceAmplitudeRequest, opts ...operations.Option) (*operations.DeleteSourceAmplitudeResponse, error) { +// CreateSourceYandexMetrica - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceYandexMetrica(ctx context.Context, request *shared.SourceYandexMetricaCreateRequest, opts ...operations.Option) (*operations.CreateSourceYandexMetricaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAmplitude", + OperationID: "createSourceYandexMetrica", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24491,11 +24611,16 @@ func (s *Sources) DeleteSourceAmplitude(ctx context.Context, request operations. } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -24507,12 +24632,13 @@ func (s *Sources) DeleteSourceAmplitude(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24547,7 +24673,7 @@ func (s *Sources) DeleteSourceAmplitude(ctx context.Context, request operations. } } - res := &operations.DeleteSourceAmplitudeResponse{ + res := &operations.CreateSourceYandexMetricaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24561,11 +24687,21 @@ func (s *Sources) DeleteSourceAmplitude(ctx context.Context, request operations. httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24574,11 +24710,12 @@ func (s *Sources) DeleteSourceAmplitude(ctx context.Context, request operations. } -// DeleteSourceApifyDataset - Delete a Source -func (s *Sources) DeleteSourceApifyDataset(ctx context.Context, request operations.DeleteSourceApifyDatasetRequest, opts ...operations.Option) (*operations.DeleteSourceApifyDatasetResponse, error) { +// CreateSourceYotpo - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceYotpo(ctx context.Context, request *shared.SourceYotpoCreateRequest, opts ...operations.Option) (*operations.CreateSourceYotpoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceApifyDataset", + OperationID: "createSourceYotpo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24595,11 +24732,16 @@ func (s *Sources) DeleteSourceApifyDataset(ctx context.Context, request operatio } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -24611,12 +24753,13 @@ func (s *Sources) DeleteSourceApifyDataset(ctx context.Context, request operatio defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24651,7 +24794,7 @@ func (s *Sources) DeleteSourceApifyDataset(ctx context.Context, request operatio } } - res := &operations.DeleteSourceApifyDatasetResponse{ + res := &operations.CreateSourceYotpoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24665,11 +24808,21 @@ func (s *Sources) DeleteSourceApifyDataset(ctx context.Context, request operatio httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24678,11 +24831,12 @@ func (s *Sources) DeleteSourceApifyDataset(ctx context.Context, request operatio } -// DeleteSourceAppfollow - Delete a Source -func (s *Sources) DeleteSourceAppfollow(ctx context.Context, request operations.DeleteSourceAppfollowRequest, opts ...operations.Option) (*operations.DeleteSourceAppfollowResponse, error) { +// CreateSourceYoutubeAnalytics - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceYoutubeAnalytics(ctx context.Context, request *shared.SourceYoutubeAnalyticsCreateRequest, opts ...operations.Option) (*operations.CreateSourceYoutubeAnalyticsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAppfollow", + OperationID: "createSourceYoutubeAnalytics", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24699,11 +24853,16 @@ func (s *Sources) DeleteSourceAppfollow(ctx context.Context, request operations. } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -24715,12 +24874,13 @@ func (s *Sources) DeleteSourceAppfollow(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24755,7 +24915,7 @@ func (s *Sources) DeleteSourceAppfollow(ctx context.Context, request operations. } } - res := &operations.DeleteSourceAppfollowResponse{ + res := &operations.CreateSourceYoutubeAnalyticsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24769,11 +24929,21 @@ func (s *Sources) DeleteSourceAppfollow(ctx context.Context, request operations. httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24782,11 +24952,12 @@ func (s *Sources) DeleteSourceAppfollow(ctx context.Context, request operations. } -// DeleteSourceAsana - Delete a Source -func (s *Sources) DeleteSourceAsana(ctx context.Context, request operations.DeleteSourceAsanaRequest, opts ...operations.Option) (*operations.DeleteSourceAsanaResponse, error) { +// CreateSourceZendeskChat - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceZendeskChat(ctx context.Context, request *shared.SourceZendeskChatCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskChatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAsana", + OperationID: "createSourceZendeskChat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24803,11 +24974,16 @@ func (s *Sources) DeleteSourceAsana(ctx context.Context, request operations.Dele } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -24819,12 +24995,13 @@ func (s *Sources) DeleteSourceAsana(ctx context.Context, request operations.Dele defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24859,7 +25036,7 @@ func (s *Sources) DeleteSourceAsana(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceAsanaResponse{ + res := &operations.CreateSourceZendeskChatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24873,11 +25050,21 @@ func (s *Sources) DeleteSourceAsana(ctx context.Context, request operations.Dele httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24886,11 +25073,12 @@ func (s *Sources) DeleteSourceAsana(ctx context.Context, request operations.Dele } -// DeleteSourceAuth0 - Delete a Source -func (s *Sources) DeleteSourceAuth0(ctx context.Context, request operations.DeleteSourceAuth0Request, opts ...operations.Option) (*operations.DeleteSourceAuth0Response, error) { +// CreateSourceZendeskSell - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceZendeskSell(ctx context.Context, request *shared.SourceZendeskSellCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskSellResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAuth0", + OperationID: "createSourceZendeskSell", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24907,11 +25095,16 @@ func (s *Sources) DeleteSourceAuth0(ctx context.Context, request operations.Dele } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -24923,12 +25116,13 @@ func (s *Sources) DeleteSourceAuth0(ctx context.Context, request operations.Dele defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -24963,7 +25157,7 @@ func (s *Sources) DeleteSourceAuth0(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceAuth0Response{ + res := &operations.CreateSourceZendeskSellResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24977,11 +25171,21 @@ func (s *Sources) DeleteSourceAuth0(ctx context.Context, request operations.Dele httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -24990,11 +25194,12 @@ func (s *Sources) DeleteSourceAuth0(ctx context.Context, request operations.Dele } -// DeleteSourceAwsCloudtrail - Delete a Source -func (s *Sources) DeleteSourceAwsCloudtrail(ctx context.Context, request operations.DeleteSourceAwsCloudtrailRequest, opts ...operations.Option) (*operations.DeleteSourceAwsCloudtrailResponse, error) { +// CreateSourceZendeskSunshine - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceZendeskSunshine(ctx context.Context, request *shared.SourceZendeskSunshineCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskSunshineResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAwsCloudtrail", + OperationID: "createSourceZendeskSunshine", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25011,11 +25216,16 @@ func (s *Sources) DeleteSourceAwsCloudtrail(ctx context.Context, request operati } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -25027,12 +25237,13 @@ func (s *Sources) DeleteSourceAwsCloudtrail(ctx context.Context, request operati defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -25067,7 +25278,7 @@ func (s *Sources) DeleteSourceAwsCloudtrail(ctx context.Context, request operati } } - res := &operations.DeleteSourceAwsCloudtrailResponse{ + res := &operations.CreateSourceZendeskSunshineResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25081,11 +25292,21 @@ func (s *Sources) DeleteSourceAwsCloudtrail(ctx context.Context, request operati httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -25094,11 +25315,12 @@ func (s *Sources) DeleteSourceAwsCloudtrail(ctx context.Context, request operati } -// DeleteSourceAzureBlobStorage - Delete a Source -func (s *Sources) DeleteSourceAzureBlobStorage(ctx context.Context, request operations.DeleteSourceAzureBlobStorageRequest, opts ...operations.Option) (*operations.DeleteSourceAzureBlobStorageResponse, error) { +// CreateSourceZendeskSupport - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceZendeskSupport(ctx context.Context, request *shared.SourceZendeskSupportCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskSupportResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAzureBlobStorage", + OperationID: "createSourceZendeskSupport", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25115,11 +25337,16 @@ func (s *Sources) DeleteSourceAzureBlobStorage(ctx context.Context, request oper } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -25131,12 +25358,13 @@ func (s *Sources) DeleteSourceAzureBlobStorage(ctx context.Context, request oper defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -25171,7 +25399,7 @@ func (s *Sources) DeleteSourceAzureBlobStorage(ctx context.Context, request oper } } - res := &operations.DeleteSourceAzureBlobStorageResponse{ + res := &operations.CreateSourceZendeskSupportResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25185,11 +25413,21 @@ func (s *Sources) DeleteSourceAzureBlobStorage(ctx context.Context, request oper httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -25198,11 +25436,12 @@ func (s *Sources) DeleteSourceAzureBlobStorage(ctx context.Context, request oper } -// DeleteSourceAzureTable - Delete a Source -func (s *Sources) DeleteSourceAzureTable(ctx context.Context, request operations.DeleteSourceAzureTableRequest, opts ...operations.Option) (*operations.DeleteSourceAzureTableResponse, error) { +// CreateSourceZendeskTalk - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceZendeskTalk(ctx context.Context, request *shared.SourceZendeskTalkCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskTalkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAzureTable", + OperationID: "createSourceZendeskTalk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25219,11 +25458,16 @@ func (s *Sources) DeleteSourceAzureTable(ctx context.Context, request operations } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -25235,12 +25479,13 @@ func (s *Sources) DeleteSourceAzureTable(ctx context.Context, request operations defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -25275,7 +25520,7 @@ func (s *Sources) DeleteSourceAzureTable(ctx context.Context, request operations } } - res := &operations.DeleteSourceAzureTableResponse{ + res := &operations.CreateSourceZendeskTalkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25289,11 +25534,21 @@ func (s *Sources) DeleteSourceAzureTable(ctx context.Context, request operations httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -25302,11 +25557,12 @@ func (s *Sources) DeleteSourceAzureTable(ctx context.Context, request operations } -// DeleteSourceBambooHr - Delete a Source -func (s *Sources) DeleteSourceBambooHr(ctx context.Context, request operations.DeleteSourceBambooHrRequest, opts ...operations.Option) (*operations.DeleteSourceBambooHrResponse, error) { +// CreateSourceZenloop - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceZenloop(ctx context.Context, request *shared.SourceZenloopCreateRequest, opts ...operations.Option) (*operations.CreateSourceZenloopResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceBambooHr", + OperationID: "createSourceZenloop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25323,11 +25579,16 @@ func (s *Sources) DeleteSourceBambooHr(ctx context.Context, request operations.D } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -25339,12 +25600,13 @@ func (s *Sources) DeleteSourceBambooHr(ctx context.Context, request operations.D defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -25379,7 +25641,7 @@ func (s *Sources) DeleteSourceBambooHr(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceBambooHrResponse{ + res := &operations.CreateSourceZenloopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25393,11 +25655,21 @@ func (s *Sources) DeleteSourceBambooHr(ctx context.Context, request operations.D httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -25406,11 +25678,12 @@ func (s *Sources) DeleteSourceBambooHr(ctx context.Context, request operations.D } -// DeleteSourceBigquery - Delete a Source -func (s *Sources) DeleteSourceBigquery(ctx context.Context, request operations.DeleteSourceBigqueryRequest, opts ...operations.Option) (*operations.DeleteSourceBigqueryResponse, error) { +// CreateSourceZohoCrm - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceZohoCrm(ctx context.Context, request *shared.SourceZohoCrmCreateRequest, opts ...operations.Option) (*operations.CreateSourceZohoCrmResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceBigquery", + OperationID: "createSourceZohoCrm", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25427,11 +25700,16 @@ func (s *Sources) DeleteSourceBigquery(ctx context.Context, request operations.D } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -25443,12 +25721,13 @@ func (s *Sources) DeleteSourceBigquery(ctx context.Context, request operations.D defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -25483,7 +25762,7 @@ func (s *Sources) DeleteSourceBigquery(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceBigqueryResponse{ + res := &operations.CreateSourceZohoCrmResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25497,11 +25776,21 @@ func (s *Sources) DeleteSourceBigquery(ctx context.Context, request operations.D httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -25510,11 +25799,12 @@ func (s *Sources) DeleteSourceBigquery(ctx context.Context, request operations.D } -// DeleteSourceBingAds - Delete a Source -func (s *Sources) DeleteSourceBingAds(ctx context.Context, request operations.DeleteSourceBingAdsRequest, opts ...operations.Option) (*operations.DeleteSourceBingAdsResponse, error) { +// CreateSourceZoom - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceZoom(ctx context.Context, request *shared.SourceZoomCreateRequest, opts ...operations.Option) (*operations.CreateSourceZoomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceBingAds", + OperationID: "createSourceZoom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25531,11 +25821,16 @@ func (s *Sources) DeleteSourceBingAds(ctx context.Context, request operations.De } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -25547,12 +25842,13 @@ func (s *Sources) DeleteSourceBingAds(ctx context.Context, request operations.De defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -25587,7 +25883,7 @@ func (s *Sources) DeleteSourceBingAds(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceBingAdsResponse{ + res := &operations.CreateSourceZoomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25601,11 +25897,21 @@ func (s *Sources) DeleteSourceBingAds(ctx context.Context, request operations.De httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + 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: - fallthrough - case httpRes.StatusCode == 404: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -25614,11 +25920,11 @@ func (s *Sources) DeleteSourceBingAds(ctx context.Context, request operations.De } -// DeleteSourceBraintree - Delete a Source -func (s *Sources) DeleteSourceBraintree(ctx context.Context, request operations.DeleteSourceBraintreeRequest, opts ...operations.Option) (*operations.DeleteSourceBraintreeResponse, error) { +// DeleteSource - Delete a Source +func (s *Sources) DeleteSource(ctx context.Context, request operations.DeleteSourceRequest, opts ...operations.Option) (*operations.DeleteSourceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceBraintree", + OperationID: "deleteSource", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25691,7 +25997,7 @@ func (s *Sources) DeleteSourceBraintree(ctx context.Context, request operations. } } - res := &operations.DeleteSourceBraintreeResponse{ + res := &operations.DeleteSourceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25718,11 +26024,11 @@ func (s *Sources) DeleteSourceBraintree(ctx context.Context, request operations. } -// DeleteSourceBraze - Delete a Source -func (s *Sources) DeleteSourceBraze(ctx context.Context, request operations.DeleteSourceBrazeRequest, opts ...operations.Option) (*operations.DeleteSourceBrazeResponse, error) { +// DeleteSourceAha - Delete a Source +func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.DeleteSourceAhaRequest, opts ...operations.Option) (*operations.DeleteSourceAhaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceBraze", + OperationID: "deleteSourceAha", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25795,7 +26101,7 @@ func (s *Sources) DeleteSourceBraze(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceBrazeResponse{ + res := &operations.DeleteSourceAhaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25822,11 +26128,11 @@ func (s *Sources) DeleteSourceBraze(ctx context.Context, request operations.Dele } -// DeleteSourceCart - Delete a Source -func (s *Sources) DeleteSourceCart(ctx context.Context, request operations.DeleteSourceCartRequest, opts ...operations.Option) (*operations.DeleteSourceCartResponse, error) { +// DeleteSourceAirbyte - Delete a Source +func (s *Sources) DeleteSourceAirbyte(ctx context.Context, request operations.DeleteSourceAirbyteRequest, opts ...operations.Option) (*operations.DeleteSourceAirbyteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceCart", + OperationID: "deleteSourceAirbyte", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25899,7 +26205,7 @@ func (s *Sources) DeleteSourceCart(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceCartResponse{ + res := &operations.DeleteSourceAirbyteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25926,11 +26232,11 @@ func (s *Sources) DeleteSourceCart(ctx context.Context, request operations.Delet } -// DeleteSourceChargebee - Delete a Source -func (s *Sources) DeleteSourceChargebee(ctx context.Context, request operations.DeleteSourceChargebeeRequest, opts ...operations.Option) (*operations.DeleteSourceChargebeeResponse, error) { +// DeleteSourceAircall - Delete a Source +func (s *Sources) DeleteSourceAircall(ctx context.Context, request operations.DeleteSourceAircallRequest, opts ...operations.Option) (*operations.DeleteSourceAircallResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceChargebee", + OperationID: "deleteSourceAircall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26003,7 +26309,7 @@ func (s *Sources) DeleteSourceChargebee(ctx context.Context, request operations. } } - res := &operations.DeleteSourceChargebeeResponse{ + res := &operations.DeleteSourceAircallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26030,11 +26336,11 @@ func (s *Sources) DeleteSourceChargebee(ctx context.Context, request operations. } -// DeleteSourceChartmogul - Delete a Source -func (s *Sources) DeleteSourceChartmogul(ctx context.Context, request operations.DeleteSourceChartmogulRequest, opts ...operations.Option) (*operations.DeleteSourceChartmogulResponse, error) { +// DeleteSourceAirtable - Delete a Source +func (s *Sources) DeleteSourceAirtable(ctx context.Context, request operations.DeleteSourceAirtableRequest, opts ...operations.Option) (*operations.DeleteSourceAirtableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceChartmogul", + OperationID: "deleteSourceAirtable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26107,7 +26413,7 @@ func (s *Sources) DeleteSourceChartmogul(ctx context.Context, request operations } } - res := &operations.DeleteSourceChartmogulResponse{ + res := &operations.DeleteSourceAirtableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26134,11 +26440,11 @@ func (s *Sources) DeleteSourceChartmogul(ctx context.Context, request operations } -// DeleteSourceClickhouse - Delete a Source -func (s *Sources) DeleteSourceClickhouse(ctx context.Context, request operations.DeleteSourceClickhouseRequest, opts ...operations.Option) (*operations.DeleteSourceClickhouseResponse, error) { +// DeleteSourceAmazonAds - Delete a Source +func (s *Sources) DeleteSourceAmazonAds(ctx context.Context, request operations.DeleteSourceAmazonAdsRequest, opts ...operations.Option) (*operations.DeleteSourceAmazonAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceClickhouse", + OperationID: "deleteSourceAmazonAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26211,7 +26517,7 @@ func (s *Sources) DeleteSourceClickhouse(ctx context.Context, request operations } } - res := &operations.DeleteSourceClickhouseResponse{ + res := &operations.DeleteSourceAmazonAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26238,11 +26544,11 @@ func (s *Sources) DeleteSourceClickhouse(ctx context.Context, request operations } -// DeleteSourceClickupAPI - Delete a Source -func (s *Sources) DeleteSourceClickupAPI(ctx context.Context, request operations.DeleteSourceClickupAPIRequest, opts ...operations.Option) (*operations.DeleteSourceClickupAPIResponse, error) { +// DeleteSourceAmazonSellerPartner - Delete a Source +func (s *Sources) DeleteSourceAmazonSellerPartner(ctx context.Context, request operations.DeleteSourceAmazonSellerPartnerRequest, opts ...operations.Option) (*operations.DeleteSourceAmazonSellerPartnerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceClickupApi", + OperationID: "deleteSourceAmazonSellerPartner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26315,7 +26621,7 @@ func (s *Sources) DeleteSourceClickupAPI(ctx context.Context, request operations } } - res := &operations.DeleteSourceClickupAPIResponse{ + res := &operations.DeleteSourceAmazonSellerPartnerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26342,11 +26648,11 @@ func (s *Sources) DeleteSourceClickupAPI(ctx context.Context, request operations } -// DeleteSourceClockify - Delete a Source -func (s *Sources) DeleteSourceClockify(ctx context.Context, request operations.DeleteSourceClockifyRequest, opts ...operations.Option) (*operations.DeleteSourceClockifyResponse, error) { +// DeleteSourceAmazonSqs - Delete a Source +func (s *Sources) DeleteSourceAmazonSqs(ctx context.Context, request operations.DeleteSourceAmazonSqsRequest, opts ...operations.Option) (*operations.DeleteSourceAmazonSqsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceClockify", + OperationID: "deleteSourceAmazonSqs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26419,7 +26725,7 @@ func (s *Sources) DeleteSourceClockify(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceClockifyResponse{ + res := &operations.DeleteSourceAmazonSqsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26446,11 +26752,11 @@ func (s *Sources) DeleteSourceClockify(ctx context.Context, request operations.D } -// DeleteSourceCloseCom - Delete a Source -func (s *Sources) DeleteSourceCloseCom(ctx context.Context, request operations.DeleteSourceCloseComRequest, opts ...operations.Option) (*operations.DeleteSourceCloseComResponse, error) { +// DeleteSourceAmplitude - Delete a Source +func (s *Sources) DeleteSourceAmplitude(ctx context.Context, request operations.DeleteSourceAmplitudeRequest, opts ...operations.Option) (*operations.DeleteSourceAmplitudeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceCloseCom", + OperationID: "deleteSourceAmplitude", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26523,7 +26829,7 @@ func (s *Sources) DeleteSourceCloseCom(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceCloseComResponse{ + res := &operations.DeleteSourceAmplitudeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26550,11 +26856,11 @@ func (s *Sources) DeleteSourceCloseCom(ctx context.Context, request operations.D } -// DeleteSourceCoda - Delete a Source -func (s *Sources) DeleteSourceCoda(ctx context.Context, request operations.DeleteSourceCodaRequest, opts ...operations.Option) (*operations.DeleteSourceCodaResponse, error) { +// DeleteSourceApifyDataset - Delete a Source +func (s *Sources) DeleteSourceApifyDataset(ctx context.Context, request operations.DeleteSourceApifyDatasetRequest, opts ...operations.Option) (*operations.DeleteSourceApifyDatasetResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceCoda", + OperationID: "deleteSourceApifyDataset", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26627,7 +26933,7 @@ func (s *Sources) DeleteSourceCoda(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceCodaResponse{ + res := &operations.DeleteSourceApifyDatasetResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26654,11 +26960,11 @@ func (s *Sources) DeleteSourceCoda(ctx context.Context, request operations.Delet } -// DeleteSourceCoinAPI - Delete a Source -func (s *Sources) DeleteSourceCoinAPI(ctx context.Context, request operations.DeleteSourceCoinAPIRequest, opts ...operations.Option) (*operations.DeleteSourceCoinAPIResponse, error) { +// DeleteSourceAppfollow - Delete a Source +func (s *Sources) DeleteSourceAppfollow(ctx context.Context, request operations.DeleteSourceAppfollowRequest, opts ...operations.Option) (*operations.DeleteSourceAppfollowResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceCoinApi", + OperationID: "deleteSourceAppfollow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26731,7 +27037,7 @@ func (s *Sources) DeleteSourceCoinAPI(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceCoinAPIResponse{ + res := &operations.DeleteSourceAppfollowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26758,11 +27064,11 @@ func (s *Sources) DeleteSourceCoinAPI(ctx context.Context, request operations.De } -// DeleteSourceCoinmarketcap - Delete a Source -func (s *Sources) DeleteSourceCoinmarketcap(ctx context.Context, request operations.DeleteSourceCoinmarketcapRequest, opts ...operations.Option) (*operations.DeleteSourceCoinmarketcapResponse, error) { +// DeleteSourceAsana - Delete a Source +func (s *Sources) DeleteSourceAsana(ctx context.Context, request operations.DeleteSourceAsanaRequest, opts ...operations.Option) (*operations.DeleteSourceAsanaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceCoinmarketcap", + OperationID: "deleteSourceAsana", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26835,7 +27141,7 @@ func (s *Sources) DeleteSourceCoinmarketcap(ctx context.Context, request operati } } - res := &operations.DeleteSourceCoinmarketcapResponse{ + res := &operations.DeleteSourceAsanaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26862,11 +27168,11 @@ func (s *Sources) DeleteSourceCoinmarketcap(ctx context.Context, request operati } -// DeleteSourceConfigcat - Delete a Source -func (s *Sources) DeleteSourceConfigcat(ctx context.Context, request operations.DeleteSourceConfigcatRequest, opts ...operations.Option) (*operations.DeleteSourceConfigcatResponse, error) { +// DeleteSourceAuth0 - Delete a Source +func (s *Sources) DeleteSourceAuth0(ctx context.Context, request operations.DeleteSourceAuth0Request, opts ...operations.Option) (*operations.DeleteSourceAuth0Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceConfigcat", + OperationID: "deleteSourceAuth0", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26939,7 +27245,7 @@ func (s *Sources) DeleteSourceConfigcat(ctx context.Context, request operations. } } - res := &operations.DeleteSourceConfigcatResponse{ + res := &operations.DeleteSourceAuth0Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26966,11 +27272,11 @@ func (s *Sources) DeleteSourceConfigcat(ctx context.Context, request operations. } -// DeleteSourceConfluence - Delete a Source -func (s *Sources) DeleteSourceConfluence(ctx context.Context, request operations.DeleteSourceConfluenceRequest, opts ...operations.Option) (*operations.DeleteSourceConfluenceResponse, error) { +// DeleteSourceAwsCloudtrail - Delete a Source +func (s *Sources) DeleteSourceAwsCloudtrail(ctx context.Context, request operations.DeleteSourceAwsCloudtrailRequest, opts ...operations.Option) (*operations.DeleteSourceAwsCloudtrailResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceConfluence", + OperationID: "deleteSourceAwsCloudtrail", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27043,7 +27349,7 @@ func (s *Sources) DeleteSourceConfluence(ctx context.Context, request operations } } - res := &operations.DeleteSourceConfluenceResponse{ + res := &operations.DeleteSourceAwsCloudtrailResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27070,11 +27376,11 @@ func (s *Sources) DeleteSourceConfluence(ctx context.Context, request operations } -// DeleteSourceConvex - Delete a Source -func (s *Sources) DeleteSourceConvex(ctx context.Context, request operations.DeleteSourceConvexRequest, opts ...operations.Option) (*operations.DeleteSourceConvexResponse, error) { +// DeleteSourceAzureBlobStorage - Delete a Source +func (s *Sources) DeleteSourceAzureBlobStorage(ctx context.Context, request operations.DeleteSourceAzureBlobStorageRequest, opts ...operations.Option) (*operations.DeleteSourceAzureBlobStorageResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceConvex", + OperationID: "deleteSourceAzureBlobStorage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27147,7 +27453,7 @@ func (s *Sources) DeleteSourceConvex(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceConvexResponse{ + res := &operations.DeleteSourceAzureBlobStorageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27174,11 +27480,11 @@ func (s *Sources) DeleteSourceConvex(ctx context.Context, request operations.Del } -// DeleteSourceCustom - Delete a Source -func (s *Sources) DeleteSourceCustom(ctx context.Context, request operations.DeleteSourceCustomRequest, opts ...operations.Option) (*operations.DeleteSourceCustomResponse, error) { +// DeleteSourceAzureTable - Delete a Source +func (s *Sources) DeleteSourceAzureTable(ctx context.Context, request operations.DeleteSourceAzureTableRequest, opts ...operations.Option) (*operations.DeleteSourceAzureTableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceCustom", + OperationID: "deleteSourceAzureTable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27251,7 +27557,7 @@ func (s *Sources) DeleteSourceCustom(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceCustomResponse{ + res := &operations.DeleteSourceAzureTableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27278,11 +27584,11 @@ func (s *Sources) DeleteSourceCustom(ctx context.Context, request operations.Del } -// DeleteSourceDatascope - Delete a Source -func (s *Sources) DeleteSourceDatascope(ctx context.Context, request operations.DeleteSourceDatascopeRequest, opts ...operations.Option) (*operations.DeleteSourceDatascopeResponse, error) { +// DeleteSourceBambooHr - Delete a Source +func (s *Sources) DeleteSourceBambooHr(ctx context.Context, request operations.DeleteSourceBambooHrRequest, opts ...operations.Option) (*operations.DeleteSourceBambooHrResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDatascope", + OperationID: "deleteSourceBambooHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27355,7 +27661,7 @@ func (s *Sources) DeleteSourceDatascope(ctx context.Context, request operations. } } - res := &operations.DeleteSourceDatascopeResponse{ + res := &operations.DeleteSourceBambooHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27382,11 +27688,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) { +// DeleteSourceBasecamp - Delete a Source +func (s *Sources) DeleteSourceBasecamp(ctx context.Context, request operations.DeleteSourceBasecampRequest, opts ...operations.Option) (*operations.DeleteSourceBasecampResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDelighted", + OperationID: "deleteSourceBasecamp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27459,7 +27765,7 @@ func (s *Sources) DeleteSourceDelighted(ctx context.Context, request operations. } } - res := &operations.DeleteSourceDelightedResponse{ + res := &operations.DeleteSourceBasecampResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27486,11 +27792,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) { +// DeleteSourceBigquery - Delete a Source +func (s *Sources) DeleteSourceBigquery(ctx context.Context, request operations.DeleteSourceBigqueryRequest, opts ...operations.Option) (*operations.DeleteSourceBigqueryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDixa", + OperationID: "deleteSourceBigquery", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27563,7 +27869,7 @@ func (s *Sources) DeleteSourceDixa(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceDixaResponse{ + res := &operations.DeleteSourceBigqueryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27590,11 +27896,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) { +// DeleteSourceBingAds - Delete a Source +func (s *Sources) DeleteSourceBingAds(ctx context.Context, request operations.DeleteSourceBingAdsRequest, opts ...operations.Option) (*operations.DeleteSourceBingAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDockerhub", + OperationID: "deleteSourceBingAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27667,7 +27973,7 @@ func (s *Sources) DeleteSourceDockerhub(ctx context.Context, request operations. } } - res := &operations.DeleteSourceDockerhubResponse{ + res := &operations.DeleteSourceBingAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27694,11 +28000,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) { +// DeleteSourceBraintree - Delete a Source +func (s *Sources) DeleteSourceBraintree(ctx context.Context, request operations.DeleteSourceBraintreeRequest, opts ...operations.Option) (*operations.DeleteSourceBraintreeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDremio", + OperationID: "deleteSourceBraintree", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27771,7 +28077,7 @@ func (s *Sources) DeleteSourceDremio(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceDremioResponse{ + res := &operations.DeleteSourceBraintreeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27798,11 +28104,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) { +// DeleteSourceBraze - Delete a Source +func (s *Sources) DeleteSourceBraze(ctx context.Context, request operations.DeleteSourceBrazeRequest, opts ...operations.Option) (*operations.DeleteSourceBrazeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDynamodb", + OperationID: "deleteSourceBraze", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27875,7 +28181,7 @@ func (s *Sources) DeleteSourceDynamodb(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceDynamodbResponse{ + res := &operations.DeleteSourceBrazeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27902,11 +28208,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) { +// DeleteSourceBreezyHr - Delete a Source +func (s *Sources) DeleteSourceBreezyHr(ctx context.Context, request operations.DeleteSourceBreezyHrRequest, opts ...operations.Option) (*operations.DeleteSourceBreezyHrResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceEmailoctopus", + OperationID: "deleteSourceBreezyHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27979,7 +28285,7 @@ func (s *Sources) DeleteSourceEmailoctopus(ctx context.Context, request operatio } } - res := &operations.DeleteSourceEmailoctopusResponse{ + res := &operations.DeleteSourceBreezyHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28006,11 +28312,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) { +// DeleteSourceCalendly - Delete a Source +func (s *Sources) DeleteSourceCalendly(ctx context.Context, request operations.DeleteSourceCalendlyRequest, opts ...operations.Option) (*operations.DeleteSourceCalendlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceExchangeRates", + OperationID: "deleteSourceCalendly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28083,7 +28389,7 @@ func (s *Sources) DeleteSourceExchangeRates(ctx context.Context, request operati } } - res := &operations.DeleteSourceExchangeRatesResponse{ + res := &operations.DeleteSourceCalendlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28110,11 +28416,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) { +// DeleteSourceCart - Delete a Source +func (s *Sources) DeleteSourceCart(ctx context.Context, request operations.DeleteSourceCartRequest, opts ...operations.Option) (*operations.DeleteSourceCartResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFacebookMarketing", + OperationID: "deleteSourceCart", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28187,7 +28493,7 @@ func (s *Sources) DeleteSourceFacebookMarketing(ctx context.Context, request ope } } - res := &operations.DeleteSourceFacebookMarketingResponse{ + res := &operations.DeleteSourceCartResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28214,11 +28520,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) { +// DeleteSourceChargebee - Delete a Source +func (s *Sources) DeleteSourceChargebee(ctx context.Context, request operations.DeleteSourceChargebeeRequest, opts ...operations.Option) (*operations.DeleteSourceChargebeeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFaker", + OperationID: "deleteSourceChargebee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28291,7 +28597,7 @@ func (s *Sources) DeleteSourceFaker(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceFakerResponse{ + res := &operations.DeleteSourceChargebeeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28318,11 +28624,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) { +// DeleteSourceChartmogul - Delete a Source +func (s *Sources) DeleteSourceChartmogul(ctx context.Context, request operations.DeleteSourceChartmogulRequest, opts ...operations.Option) (*operations.DeleteSourceChartmogulResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFauna", + OperationID: "deleteSourceChartmogul", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28395,7 +28701,7 @@ func (s *Sources) DeleteSourceFauna(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceFaunaResponse{ + res := &operations.DeleteSourceChartmogulResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28422,11 +28728,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) { +// DeleteSourceClazar - Delete a Source +func (s *Sources) DeleteSourceClazar(ctx context.Context, request operations.DeleteSourceClazarRequest, opts ...operations.Option) (*operations.DeleteSourceClazarResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFile", + OperationID: "deleteSourceClazar", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28499,7 +28805,7 @@ func (s *Sources) DeleteSourceFile(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceFileResponse{ + res := &operations.DeleteSourceClazarResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28526,11 +28832,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) { +// 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: "deleteSourceFirebolt", + OperationID: "deleteSourceClickhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28603,7 +28909,7 @@ func (s *Sources) DeleteSourceFirebolt(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceFireboltResponse{ + res := &operations.DeleteSourceClickhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28630,11 +28936,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) { +// DeleteSourceClickupAPI - Delete a Source +func (s *Sources) DeleteSourceClickupAPI(ctx context.Context, request operations.DeleteSourceClickupAPIRequest, opts ...operations.Option) (*operations.DeleteSourceClickupAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFleetio", + OperationID: "deleteSourceClickupApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28707,7 +29013,7 @@ func (s *Sources) DeleteSourceFleetio(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceFleetioResponse{ + res := &operations.DeleteSourceClickupAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28734,11 +29040,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) { +// DeleteSourceClockify - Delete a Source +func (s *Sources) DeleteSourceClockify(ctx context.Context, request operations.DeleteSourceClockifyRequest, opts ...operations.Option) (*operations.DeleteSourceClockifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFreshcaller", + OperationID: "deleteSourceClockify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28811,7 +29117,7 @@ func (s *Sources) DeleteSourceFreshcaller(ctx context.Context, request operation } } - res := &operations.DeleteSourceFreshcallerResponse{ + res := &operations.DeleteSourceClockifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28838,11 +29144,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) { +// DeleteSourceCloseCom - Delete a Source +func (s *Sources) DeleteSourceCloseCom(ctx context.Context, request operations.DeleteSourceCloseComRequest, opts ...operations.Option) (*operations.DeleteSourceCloseComResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFreshdesk", + OperationID: "deleteSourceCloseCom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28915,7 +29221,7 @@ func (s *Sources) DeleteSourceFreshdesk(ctx context.Context, request operations. } } - res := &operations.DeleteSourceFreshdeskResponse{ + res := &operations.DeleteSourceCloseComResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28942,11 +29248,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) { +// DeleteSourceCoda - Delete a Source +func (s *Sources) DeleteSourceCoda(ctx context.Context, request operations.DeleteSourceCodaRequest, opts ...operations.Option) (*operations.DeleteSourceCodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFreshsales", + OperationID: "deleteSourceCoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29019,7 +29325,7 @@ func (s *Sources) DeleteSourceFreshsales(ctx context.Context, request operations } } - res := &operations.DeleteSourceFreshsalesResponse{ + res := &operations.DeleteSourceCodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29046,11 +29352,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) { +// DeleteSourceCoinAPI - Delete a Source +func (s *Sources) DeleteSourceCoinAPI(ctx context.Context, request operations.DeleteSourceCoinAPIRequest, opts ...operations.Option) (*operations.DeleteSourceCoinAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGainsightPx", + OperationID: "deleteSourceCoinApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29123,7 +29429,7 @@ func (s *Sources) DeleteSourceGainsightPx(ctx context.Context, request operation } } - res := &operations.DeleteSourceGainsightPxResponse{ + res := &operations.DeleteSourceCoinAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29150,11 +29456,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) { +// DeleteSourceCoinmarketcap - Delete a Source +func (s *Sources) DeleteSourceCoinmarketcap(ctx context.Context, request operations.DeleteSourceCoinmarketcapRequest, opts ...operations.Option) (*operations.DeleteSourceCoinmarketcapResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGcs", + OperationID: "deleteSourceCoinmarketcap", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29227,7 +29533,7 @@ func (s *Sources) DeleteSourceGcs(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceGcsResponse{ + res := &operations.DeleteSourceCoinmarketcapResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29254,11 +29560,11 @@ func (s *Sources) DeleteSourceGcs(ctx context.Context, request operations.Delete } -// DeleteSourceGetlago - Delete a Source -func (s *Sources) DeleteSourceGetlago(ctx context.Context, request operations.DeleteSourceGetlagoRequest, opts ...operations.Option) (*operations.DeleteSourceGetlagoResponse, error) { +// DeleteSourceConfigcat - Delete a Source +func (s *Sources) DeleteSourceConfigcat(ctx context.Context, request operations.DeleteSourceConfigcatRequest, opts ...operations.Option) (*operations.DeleteSourceConfigcatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGetlago", + OperationID: "deleteSourceConfigcat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29331,7 +29637,7 @@ func (s *Sources) DeleteSourceGetlago(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceGetlagoResponse{ + res := &operations.DeleteSourceConfigcatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29358,11 +29664,11 @@ func (s *Sources) DeleteSourceGetlago(ctx context.Context, request operations.De } -// DeleteSourceGithub - Delete a Source -func (s *Sources) DeleteSourceGithub(ctx context.Context, request operations.DeleteSourceGithubRequest, opts ...operations.Option) (*operations.DeleteSourceGithubResponse, error) { +// DeleteSourceConfluence - Delete a Source +func (s *Sources) DeleteSourceConfluence(ctx context.Context, request operations.DeleteSourceConfluenceRequest, opts ...operations.Option) (*operations.DeleteSourceConfluenceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGithub", + OperationID: "deleteSourceConfluence", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29435,7 +29741,7 @@ func (s *Sources) DeleteSourceGithub(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceGithubResponse{ + res := &operations.DeleteSourceConfluenceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29462,11 +29768,11 @@ func (s *Sources) DeleteSourceGithub(ctx context.Context, request operations.Del } -// DeleteSourceGitlab - Delete a Source -func (s *Sources) DeleteSourceGitlab(ctx context.Context, request operations.DeleteSourceGitlabRequest, opts ...operations.Option) (*operations.DeleteSourceGitlabResponse, error) { +// DeleteSourceConvex - Delete a Source +func (s *Sources) DeleteSourceConvex(ctx context.Context, request operations.DeleteSourceConvexRequest, opts ...operations.Option) (*operations.DeleteSourceConvexResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGitlab", + OperationID: "deleteSourceConvex", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29539,7 +29845,7 @@ func (s *Sources) DeleteSourceGitlab(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceGitlabResponse{ + res := &operations.DeleteSourceConvexResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29566,11 +29872,11 @@ func (s *Sources) DeleteSourceGitlab(ctx context.Context, request operations.Del } -// DeleteSourceGlassfrog - Delete a Source -func (s *Sources) DeleteSourceGlassfrog(ctx context.Context, request operations.DeleteSourceGlassfrogRequest, opts ...operations.Option) (*operations.DeleteSourceGlassfrogResponse, error) { +// DeleteSourceCustom - Delete a Source +func (s *Sources) DeleteSourceCustom(ctx context.Context, request operations.DeleteSourceCustomRequest, opts ...operations.Option) (*operations.DeleteSourceCustomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGlassfrog", + OperationID: "deleteSourceCustom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29643,7 +29949,7 @@ func (s *Sources) DeleteSourceGlassfrog(ctx context.Context, request operations. } } - res := &operations.DeleteSourceGlassfrogResponse{ + res := &operations.DeleteSourceCustomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29670,11 +29976,11 @@ func (s *Sources) DeleteSourceGlassfrog(ctx context.Context, request operations. } -// DeleteSourceGnews - Delete a Source -func (s *Sources) DeleteSourceGnews(ctx context.Context, request operations.DeleteSourceGnewsRequest, opts ...operations.Option) (*operations.DeleteSourceGnewsResponse, error) { +// DeleteSourceCustomerIo - Delete a Source +func (s *Sources) DeleteSourceCustomerIo(ctx context.Context, request operations.DeleteSourceCustomerIoRequest, opts ...operations.Option) (*operations.DeleteSourceCustomerIoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGnews", + OperationID: "deleteSourceCustomerIo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29747,7 +30053,7 @@ func (s *Sources) DeleteSourceGnews(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceGnewsResponse{ + res := &operations.DeleteSourceCustomerIoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29774,11 +30080,11 @@ func (s *Sources) DeleteSourceGnews(ctx context.Context, request operations.Dele } -// DeleteSourceGoogleAds - Delete a Source -func (s *Sources) DeleteSourceGoogleAds(ctx context.Context, request operations.DeleteSourceGoogleAdsRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleAdsResponse, error) { +// DeleteSourceDatadog - Delete a Source +func (s *Sources) DeleteSourceDatadog(ctx context.Context, request operations.DeleteSourceDatadogRequest, opts ...operations.Option) (*operations.DeleteSourceDatadogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGoogleAds", + OperationID: "deleteSourceDatadog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29851,7 +30157,7 @@ func (s *Sources) DeleteSourceGoogleAds(ctx context.Context, request operations. } } - res := &operations.DeleteSourceGoogleAdsResponse{ + res := &operations.DeleteSourceDatadogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29878,11 +30184,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) { +// 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: "deleteSourceGoogleAnalyticsDataApi", + OperationID: "deleteSourceDatascope", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29955,7 +30261,7 @@ func (s *Sources) DeleteSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } } - res := &operations.DeleteSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.DeleteSourceDatascopeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29982,11 +30288,11 @@ func (s *Sources) DeleteSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } -// DeleteSourceGoogleAnalyticsV4ServiceAccountOnly - Delete a Source -func (s *Sources) DeleteSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Context, request operations.DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse, error) { +// DeleteSourceDbt - Delete a Source +func (s *Sources) DeleteSourceDbt(ctx context.Context, request operations.DeleteSourceDbtRequest, opts ...operations.Option) (*operations.DeleteSourceDbtResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGoogleAnalyticsV4ServiceAccountOnly", + OperationID: "deleteSourceDbt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30059,7 +30365,7 @@ func (s *Sources) DeleteSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Co } } - res := &operations.DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse{ + res := &operations.DeleteSourceDbtResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30086,11 +30392,11 @@ func (s *Sources) DeleteSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Co } -// DeleteSourceGoogleDirectory - Delete a Source -func (s *Sources) DeleteSourceGoogleDirectory(ctx context.Context, request operations.DeleteSourceGoogleDirectoryRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleDirectoryResponse, 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: "deleteSourceGoogleDirectory", + OperationID: "deleteSourceDelighted", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30163,7 +30469,7 @@ func (s *Sources) DeleteSourceGoogleDirectory(ctx context.Context, request opera } } - res := &operations.DeleteSourceGoogleDirectoryResponse{ + res := &operations.DeleteSourceDelightedResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30190,11 +30496,11 @@ func (s *Sources) DeleteSourceGoogleDirectory(ctx context.Context, request opera } -// DeleteSourceGoogleDrive - Delete a Source -func (s *Sources) DeleteSourceGoogleDrive(ctx context.Context, request operations.DeleteSourceGoogleDriveRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleDriveResponse, 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: "deleteSourceGoogleDrive", + OperationID: "deleteSourceDixa", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30267,7 +30573,7 @@ func (s *Sources) DeleteSourceGoogleDrive(ctx context.Context, request operation } } - res := &operations.DeleteSourceGoogleDriveResponse{ + res := &operations.DeleteSourceDixaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30294,11 +30600,11 @@ func (s *Sources) DeleteSourceGoogleDrive(ctx context.Context, request operation } -// DeleteSourceGooglePagespeedInsights - Delete a Source -func (s *Sources) DeleteSourceGooglePagespeedInsights(ctx context.Context, request operations.DeleteSourceGooglePagespeedInsightsRequest, opts ...operations.Option) (*operations.DeleteSourceGooglePagespeedInsightsResponse, 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: "deleteSourceGooglePagespeedInsights", + OperationID: "deleteSourceDockerhub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30371,7 +30677,7 @@ func (s *Sources) DeleteSourceGooglePagespeedInsights(ctx context.Context, reque } } - res := &operations.DeleteSourceGooglePagespeedInsightsResponse{ + res := &operations.DeleteSourceDockerhubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30398,11 +30704,11 @@ func (s *Sources) DeleteSourceGooglePagespeedInsights(ctx context.Context, reque } -// DeleteSourceGoogleSearchConsole - Delete a Source -func (s *Sources) DeleteSourceGoogleSearchConsole(ctx context.Context, request operations.DeleteSourceGoogleSearchConsoleRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleSearchConsoleResponse, 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: "deleteSourceGoogleSearchConsole", + OperationID: "deleteSourceDremio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30475,7 +30781,7 @@ func (s *Sources) DeleteSourceGoogleSearchConsole(ctx context.Context, request o } } - res := &operations.DeleteSourceGoogleSearchConsoleResponse{ + res := &operations.DeleteSourceDremioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30502,11 +30808,11 @@ func (s *Sources) DeleteSourceGoogleSearchConsole(ctx context.Context, request o } -// DeleteSourceGoogleSheets - Delete a Source -func (s *Sources) DeleteSourceGoogleSheets(ctx context.Context, request operations.DeleteSourceGoogleSheetsRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleSheetsResponse, 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: "deleteSourceGoogleSheets", + OperationID: "deleteSourceDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30579,7 +30885,7 @@ func (s *Sources) DeleteSourceGoogleSheets(ctx context.Context, request operatio } } - res := &operations.DeleteSourceGoogleSheetsResponse{ + res := &operations.DeleteSourceDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30606,11 +30912,11 @@ func (s *Sources) DeleteSourceGoogleSheets(ctx context.Context, request operatio } -// DeleteSourceGoogleWebfonts - Delete a Source -func (s *Sources) DeleteSourceGoogleWebfonts(ctx context.Context, request operations.DeleteSourceGoogleWebfontsRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleWebfontsResponse, 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: "deleteSourceGoogleWebfonts", + OperationID: "deleteSourceEmailoctopus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30683,7 +30989,7 @@ func (s *Sources) DeleteSourceGoogleWebfonts(ctx context.Context, request operat } } - res := &operations.DeleteSourceGoogleWebfontsResponse{ + res := &operations.DeleteSourceEmailoctopusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30710,11 +31016,11 @@ func (s *Sources) DeleteSourceGoogleWebfonts(ctx context.Context, request operat } -// DeleteSourceGreenhouse - Delete a Source -func (s *Sources) DeleteSourceGreenhouse(ctx context.Context, request operations.DeleteSourceGreenhouseRequest, opts ...operations.Option) (*operations.DeleteSourceGreenhouseResponse, 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: "deleteSourceGreenhouse", + OperationID: "deleteSourceExchangeRates", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30787,7 +31093,7 @@ func (s *Sources) DeleteSourceGreenhouse(ctx context.Context, request operations } } - res := &operations.DeleteSourceGreenhouseResponse{ + res := &operations.DeleteSourceExchangeRatesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30814,11 +31120,11 @@ func (s *Sources) DeleteSourceGreenhouse(ctx context.Context, request operations } -// DeleteSourceGridly - Delete a Source -func (s *Sources) DeleteSourceGridly(ctx context.Context, request operations.DeleteSourceGridlyRequest, opts ...operations.Option) (*operations.DeleteSourceGridlyResponse, 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: "deleteSourceGridly", + OperationID: "deleteSourceFacebookMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30891,7 +31197,7 @@ func (s *Sources) DeleteSourceGridly(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceGridlyResponse{ + res := &operations.DeleteSourceFacebookMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30918,11 +31224,11 @@ func (s *Sources) DeleteSourceGridly(ctx context.Context, request operations.Del } -// DeleteSourceHarvest - Delete a Source -func (s *Sources) DeleteSourceHarvest(ctx context.Context, request operations.DeleteSourceHarvestRequest, opts ...operations.Option) (*operations.DeleteSourceHarvestResponse, 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: "deleteSourceHarvest", + OperationID: "deleteSourceFaker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30995,7 +31301,7 @@ func (s *Sources) DeleteSourceHarvest(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceHarvestResponse{ + res := &operations.DeleteSourceFakerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31022,11 +31328,11 @@ func (s *Sources) DeleteSourceHarvest(ctx context.Context, request operations.De } -// DeleteSourceHubplanner - Delete a Source -func (s *Sources) DeleteSourceHubplanner(ctx context.Context, request operations.DeleteSourceHubplannerRequest, opts ...operations.Option) (*operations.DeleteSourceHubplannerResponse, 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: "deleteSourceHubplanner", + OperationID: "deleteSourceFauna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31099,7 +31405,7 @@ func (s *Sources) DeleteSourceHubplanner(ctx context.Context, request operations } } - res := &operations.DeleteSourceHubplannerResponse{ + res := &operations.DeleteSourceFaunaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31126,11 +31432,11 @@ func (s *Sources) DeleteSourceHubplanner(ctx context.Context, request operations } -// DeleteSourceHubspot - Delete a Source -func (s *Sources) DeleteSourceHubspot(ctx context.Context, request operations.DeleteSourceHubspotRequest, opts ...operations.Option) (*operations.DeleteSourceHubspotResponse, 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: "deleteSourceHubspot", + OperationID: "deleteSourceFile", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31203,7 +31509,7 @@ func (s *Sources) DeleteSourceHubspot(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceHubspotResponse{ + res := &operations.DeleteSourceFileResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31230,11 +31536,11 @@ func (s *Sources) DeleteSourceHubspot(ctx context.Context, request operations.De } -// DeleteSourceInsightly - Delete a Source -func (s *Sources) DeleteSourceInsightly(ctx context.Context, request operations.DeleteSourceInsightlyRequest, opts ...operations.Option) (*operations.DeleteSourceInsightlyResponse, 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: "deleteSourceInsightly", + OperationID: "deleteSourceFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31307,7 +31613,7 @@ func (s *Sources) DeleteSourceInsightly(ctx context.Context, request operations. } } - res := &operations.DeleteSourceInsightlyResponse{ + res := &operations.DeleteSourceFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31334,11 +31640,11 @@ func (s *Sources) DeleteSourceInsightly(ctx context.Context, request operations. } -// DeleteSourceInstagram - Delete a Source -func (s *Sources) DeleteSourceInstagram(ctx context.Context, request operations.DeleteSourceInstagramRequest, opts ...operations.Option) (*operations.DeleteSourceInstagramResponse, 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: "deleteSourceInstagram", + OperationID: "deleteSourceFleetio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31411,7 +31717,7 @@ func (s *Sources) DeleteSourceInstagram(ctx context.Context, request operations. } } - res := &operations.DeleteSourceInstagramResponse{ + res := &operations.DeleteSourceFleetioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31438,11 +31744,11 @@ func (s *Sources) DeleteSourceInstagram(ctx context.Context, request operations. } -// DeleteSourceInstatus - Delete a Source -func (s *Sources) DeleteSourceInstatus(ctx context.Context, request operations.DeleteSourceInstatusRequest, opts ...operations.Option) (*operations.DeleteSourceInstatusResponse, 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: "deleteSourceInstatus", + OperationID: "deleteSourceFreshcaller", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31515,7 +31821,7 @@ func (s *Sources) DeleteSourceInstatus(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceInstatusResponse{ + res := &operations.DeleteSourceFreshcallerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31542,11 +31848,11 @@ func (s *Sources) DeleteSourceInstatus(ctx context.Context, request operations.D } -// DeleteSourceIntercom - Delete a Source -func (s *Sources) DeleteSourceIntercom(ctx context.Context, request operations.DeleteSourceIntercomRequest, opts ...operations.Option) (*operations.DeleteSourceIntercomResponse, 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: "deleteSourceIntercom", + OperationID: "deleteSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31619,7 +31925,7 @@ func (s *Sources) DeleteSourceIntercom(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceIntercomResponse{ + res := &operations.DeleteSourceFreshdeskResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31646,11 +31952,11 @@ func (s *Sources) DeleteSourceIntercom(ctx context.Context, request operations.D } -// DeleteSourceIp2whois - Delete a Source -func (s *Sources) DeleteSourceIp2whois(ctx context.Context, request operations.DeleteSourceIp2whoisRequest, opts ...operations.Option) (*operations.DeleteSourceIp2whoisResponse, 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: "deleteSourceIp2whois", + OperationID: "deleteSourceFreshsales", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31723,7 +32029,7 @@ func (s *Sources) DeleteSourceIp2whois(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceIp2whoisResponse{ + res := &operations.DeleteSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31750,11 +32056,11 @@ func (s *Sources) DeleteSourceIp2whois(ctx context.Context, request operations.D } -// DeleteSourceIterable - Delete a Source -func (s *Sources) DeleteSourceIterable(ctx context.Context, request operations.DeleteSourceIterableRequest, opts ...operations.Option) (*operations.DeleteSourceIterableResponse, 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: "deleteSourceIterable", + OperationID: "deleteSourceGainsightPx", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31827,7 +32133,7 @@ func (s *Sources) DeleteSourceIterable(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceIterableResponse{ + res := &operations.DeleteSourceGainsightPxResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31854,11 +32160,11 @@ func (s *Sources) DeleteSourceIterable(ctx context.Context, request operations.D } -// DeleteSourceJira - Delete a Source -func (s *Sources) DeleteSourceJira(ctx context.Context, request operations.DeleteSourceJiraRequest, opts ...operations.Option) (*operations.DeleteSourceJiraResponse, 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: "deleteSourceJira", + OperationID: "deleteSourceGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31931,7 +32237,7 @@ func (s *Sources) DeleteSourceJira(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceJiraResponse{ + res := &operations.DeleteSourceGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31958,11 +32264,11 @@ func (s *Sources) DeleteSourceJira(ctx context.Context, request operations.Delet } -// DeleteSourceK6Cloud - Delete a Source -func (s *Sources) DeleteSourceK6Cloud(ctx context.Context, request operations.DeleteSourceK6CloudRequest, opts ...operations.Option) (*operations.DeleteSourceK6CloudResponse, 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: "deleteSourceK6Cloud", + OperationID: "deleteSourceGetlago", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32035,7 +32341,7 @@ func (s *Sources) DeleteSourceK6Cloud(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceK6CloudResponse{ + res := &operations.DeleteSourceGetlagoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32062,11 +32368,11 @@ func (s *Sources) DeleteSourceK6Cloud(ctx context.Context, request operations.De } -// DeleteSourceKlarna - Delete a Source -func (s *Sources) DeleteSourceKlarna(ctx context.Context, request operations.DeleteSourceKlarnaRequest, opts ...operations.Option) (*operations.DeleteSourceKlarnaResponse, error) { +// DeleteSourceGithub - Delete a Source +func (s *Sources) DeleteSourceGithub(ctx context.Context, request operations.DeleteSourceGithubRequest, opts ...operations.Option) (*operations.DeleteSourceGithubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceKlarna", + OperationID: "deleteSourceGithub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32139,7 +32445,7 @@ func (s *Sources) DeleteSourceKlarna(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceKlarnaResponse{ + res := &operations.DeleteSourceGithubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32166,11 +32472,11 @@ func (s *Sources) DeleteSourceKlarna(ctx context.Context, request operations.Del } -// DeleteSourceKlaviyo - Delete a Source -func (s *Sources) DeleteSourceKlaviyo(ctx context.Context, request operations.DeleteSourceKlaviyoRequest, opts ...operations.Option) (*operations.DeleteSourceKlaviyoResponse, error) { +// DeleteSourceGitlab - Delete a Source +func (s *Sources) DeleteSourceGitlab(ctx context.Context, request operations.DeleteSourceGitlabRequest, opts ...operations.Option) (*operations.DeleteSourceGitlabResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceKlaviyo", + OperationID: "deleteSourceGitlab", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32243,7 +32549,7 @@ func (s *Sources) DeleteSourceKlaviyo(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceKlaviyoResponse{ + res := &operations.DeleteSourceGitlabResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32270,11 +32576,11 @@ func (s *Sources) DeleteSourceKlaviyo(ctx context.Context, request operations.De } -// DeleteSourceKyve - Delete a Source -func (s *Sources) DeleteSourceKyve(ctx context.Context, request operations.DeleteSourceKyveRequest, opts ...operations.Option) (*operations.DeleteSourceKyveResponse, error) { +// DeleteSourceGlassfrog - Delete a Source +func (s *Sources) DeleteSourceGlassfrog(ctx context.Context, request operations.DeleteSourceGlassfrogRequest, opts ...operations.Option) (*operations.DeleteSourceGlassfrogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceKyve", + OperationID: "deleteSourceGlassfrog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32347,7 +32653,7 @@ func (s *Sources) DeleteSourceKyve(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceKyveResponse{ + res := &operations.DeleteSourceGlassfrogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32374,11 +32680,11 @@ func (s *Sources) DeleteSourceKyve(ctx context.Context, request operations.Delet } -// DeleteSourceLaunchdarkly - Delete a Source -func (s *Sources) DeleteSourceLaunchdarkly(ctx context.Context, request operations.DeleteSourceLaunchdarklyRequest, opts ...operations.Option) (*operations.DeleteSourceLaunchdarklyResponse, error) { +// DeleteSourceGnews - Delete a Source +func (s *Sources) DeleteSourceGnews(ctx context.Context, request operations.DeleteSourceGnewsRequest, opts ...operations.Option) (*operations.DeleteSourceGnewsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceLaunchdarkly", + OperationID: "deleteSourceGnews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32451,7 +32757,7 @@ func (s *Sources) DeleteSourceLaunchdarkly(ctx context.Context, request operatio } } - res := &operations.DeleteSourceLaunchdarklyResponse{ + res := &operations.DeleteSourceGnewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32478,11 +32784,11 @@ func (s *Sources) DeleteSourceLaunchdarkly(ctx context.Context, request operatio } -// DeleteSourceLemlist - Delete a Source -func (s *Sources) DeleteSourceLemlist(ctx context.Context, request operations.DeleteSourceLemlistRequest, opts ...operations.Option) (*operations.DeleteSourceLemlistResponse, error) { +// DeleteSourceGoldcast - Delete a Source +func (s *Sources) DeleteSourceGoldcast(ctx context.Context, request operations.DeleteSourceGoldcastRequest, opts ...operations.Option) (*operations.DeleteSourceGoldcastResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceLemlist", + OperationID: "deleteSourceGoldcast", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32555,7 +32861,7 @@ func (s *Sources) DeleteSourceLemlist(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceLemlistResponse{ + res := &operations.DeleteSourceGoldcastResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32582,11 +32888,11 @@ func (s *Sources) DeleteSourceLemlist(ctx context.Context, request operations.De } -// DeleteSourceLeverHiring - Delete a Source -func (s *Sources) DeleteSourceLeverHiring(ctx context.Context, request operations.DeleteSourceLeverHiringRequest, opts ...operations.Option) (*operations.DeleteSourceLeverHiringResponse, 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: "deleteSourceLeverHiring", + OperationID: "deleteSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32659,7 +32965,7 @@ func (s *Sources) DeleteSourceLeverHiring(ctx context.Context, request operation } } - res := &operations.DeleteSourceLeverHiringResponse{ + res := &operations.DeleteSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32686,11 +32992,11 @@ func (s *Sources) DeleteSourceLeverHiring(ctx context.Context, request operation } -// DeleteSourceLinkedinAds - Delete a Source -func (s *Sources) DeleteSourceLinkedinAds(ctx context.Context, request operations.DeleteSourceLinkedinAdsRequest, opts ...operations.Option) (*operations.DeleteSourceLinkedinAdsResponse, 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: "deleteSourceLinkedinAds", + OperationID: "deleteSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32763,7 +33069,7 @@ func (s *Sources) DeleteSourceLinkedinAds(ctx context.Context, request operation } } - res := &operations.DeleteSourceLinkedinAdsResponse{ + res := &operations.DeleteSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32790,11 +33096,11 @@ func (s *Sources) DeleteSourceLinkedinAds(ctx context.Context, request operation } -// DeleteSourceLinkedinPages - Delete a Source -func (s *Sources) DeleteSourceLinkedinPages(ctx context.Context, request operations.DeleteSourceLinkedinPagesRequest, opts ...operations.Option) (*operations.DeleteSourceLinkedinPagesResponse, error) { +// DeleteSourceGoogleDirectory - Delete a Source +func (s *Sources) DeleteSourceGoogleDirectory(ctx context.Context, request operations.DeleteSourceGoogleDirectoryRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleDirectoryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceLinkedinPages", + OperationID: "deleteSourceGoogleDirectory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32867,7 +33173,7 @@ func (s *Sources) DeleteSourceLinkedinPages(ctx context.Context, request operati } } - res := &operations.DeleteSourceLinkedinPagesResponse{ + res := &operations.DeleteSourceGoogleDirectoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32894,11 +33200,11 @@ func (s *Sources) DeleteSourceLinkedinPages(ctx context.Context, request operati } -// DeleteSourceLinnworks - Delete a Source -func (s *Sources) DeleteSourceLinnworks(ctx context.Context, request operations.DeleteSourceLinnworksRequest, opts ...operations.Option) (*operations.DeleteSourceLinnworksResponse, error) { +// DeleteSourceGoogleDrive - Delete a Source +func (s *Sources) DeleteSourceGoogleDrive(ctx context.Context, request operations.DeleteSourceGoogleDriveRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleDriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceLinnworks", + OperationID: "deleteSourceGoogleDrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32971,7 +33277,7 @@ func (s *Sources) DeleteSourceLinnworks(ctx context.Context, request operations. } } - res := &operations.DeleteSourceLinnworksResponse{ + res := &operations.DeleteSourceGoogleDriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32998,11 +33304,11 @@ func (s *Sources) DeleteSourceLinnworks(ctx context.Context, request operations. } -// DeleteSourceLokalise - Delete a Source -func (s *Sources) DeleteSourceLokalise(ctx context.Context, request operations.DeleteSourceLokaliseRequest, opts ...operations.Option) (*operations.DeleteSourceLokaliseResponse, error) { +// DeleteSourceGooglePagespeedInsights - Delete a Source +func (s *Sources) DeleteSourceGooglePagespeedInsights(ctx context.Context, request operations.DeleteSourceGooglePagespeedInsightsRequest, opts ...operations.Option) (*operations.DeleteSourceGooglePagespeedInsightsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceLokalise", + OperationID: "deleteSourceGooglePagespeedInsights", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33075,7 +33381,7 @@ func (s *Sources) DeleteSourceLokalise(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceLokaliseResponse{ + res := &operations.DeleteSourceGooglePagespeedInsightsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33102,11 +33408,11 @@ func (s *Sources) DeleteSourceLokalise(ctx context.Context, request operations.D } -// DeleteSourceMailchimp - Delete a Source -func (s *Sources) DeleteSourceMailchimp(ctx context.Context, request operations.DeleteSourceMailchimpRequest, opts ...operations.Option) (*operations.DeleteSourceMailchimpResponse, error) { +// DeleteSourceGoogleSearchConsole - Delete a Source +func (s *Sources) DeleteSourceGoogleSearchConsole(ctx context.Context, request operations.DeleteSourceGoogleSearchConsoleRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleSearchConsoleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMailchimp", + OperationID: "deleteSourceGoogleSearchConsole", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33179,7 +33485,7 @@ func (s *Sources) DeleteSourceMailchimp(ctx context.Context, request operations. } } - res := &operations.DeleteSourceMailchimpResponse{ + res := &operations.DeleteSourceGoogleSearchConsoleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33206,11 +33512,11 @@ func (s *Sources) DeleteSourceMailchimp(ctx context.Context, request operations. } -// DeleteSourceMailgun - Delete a Source -func (s *Sources) DeleteSourceMailgun(ctx context.Context, request operations.DeleteSourceMailgunRequest, opts ...operations.Option) (*operations.DeleteSourceMailgunResponse, error) { +// DeleteSourceGoogleSheets - Delete a Source +func (s *Sources) DeleteSourceGoogleSheets(ctx context.Context, request operations.DeleteSourceGoogleSheetsRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleSheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMailgun", + OperationID: "deleteSourceGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33283,7 +33589,7 @@ func (s *Sources) DeleteSourceMailgun(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceMailgunResponse{ + res := &operations.DeleteSourceGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33310,11 +33616,11 @@ func (s *Sources) DeleteSourceMailgun(ctx context.Context, request operations.De } -// DeleteSourceMailjetSms - Delete a Source -func (s *Sources) DeleteSourceMailjetSms(ctx context.Context, request operations.DeleteSourceMailjetSmsRequest, opts ...operations.Option) (*operations.DeleteSourceMailjetSmsResponse, error) { +// DeleteSourceGoogleWebfonts - Delete a Source +func (s *Sources) DeleteSourceGoogleWebfonts(ctx context.Context, request operations.DeleteSourceGoogleWebfontsRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleWebfontsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMailjetSms", + OperationID: "deleteSourceGoogleWebfonts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33387,7 +33693,7 @@ func (s *Sources) DeleteSourceMailjetSms(ctx context.Context, request operations } } - res := &operations.DeleteSourceMailjetSmsResponse{ + res := &operations.DeleteSourceGoogleWebfontsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33414,11 +33720,11 @@ func (s *Sources) DeleteSourceMailjetSms(ctx context.Context, request operations } -// DeleteSourceMarketo - Delete a Source -func (s *Sources) DeleteSourceMarketo(ctx context.Context, request operations.DeleteSourceMarketoRequest, opts ...operations.Option) (*operations.DeleteSourceMarketoResponse, error) { +// DeleteSourceGreenhouse - Delete a Source +func (s *Sources) DeleteSourceGreenhouse(ctx context.Context, request operations.DeleteSourceGreenhouseRequest, opts ...operations.Option) (*operations.DeleteSourceGreenhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMarketo", + OperationID: "deleteSourceGreenhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33491,7 +33797,7 @@ func (s *Sources) DeleteSourceMarketo(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceMarketoResponse{ + res := &operations.DeleteSourceGreenhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33518,11 +33824,11 @@ func (s *Sources) DeleteSourceMarketo(ctx context.Context, request operations.De } -// DeleteSourceMetabase - Delete a Source -func (s *Sources) DeleteSourceMetabase(ctx context.Context, request operations.DeleteSourceMetabaseRequest, opts ...operations.Option) (*operations.DeleteSourceMetabaseResponse, error) { +// DeleteSourceGridly - Delete a Source +func (s *Sources) DeleteSourceGridly(ctx context.Context, request operations.DeleteSourceGridlyRequest, opts ...operations.Option) (*operations.DeleteSourceGridlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMetabase", + OperationID: "deleteSourceGridly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33595,7 +33901,7 @@ func (s *Sources) DeleteSourceMetabase(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceMetabaseResponse{ + res := &operations.DeleteSourceGridlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33622,11 +33928,11 @@ func (s *Sources) DeleteSourceMetabase(ctx context.Context, request operations.D } -// DeleteSourceMicrosoftOnedrive - Delete a Source -func (s *Sources) DeleteSourceMicrosoftOnedrive(ctx context.Context, request operations.DeleteSourceMicrosoftOnedriveRequest, opts ...operations.Option) (*operations.DeleteSourceMicrosoftOnedriveResponse, error) { +// DeleteSourceHardcodedRecords - Delete a Source +func (s *Sources) DeleteSourceHardcodedRecords(ctx context.Context, request operations.DeleteSourceHardcodedRecordsRequest, opts ...operations.Option) (*operations.DeleteSourceHardcodedRecordsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMicrosoftOnedrive", + OperationID: "deleteSourceHardcodedRecords", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33699,7 +34005,7 @@ func (s *Sources) DeleteSourceMicrosoftOnedrive(ctx context.Context, request ope } } - res := &operations.DeleteSourceMicrosoftOnedriveResponse{ + res := &operations.DeleteSourceHardcodedRecordsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33726,11 +34032,11 @@ func (s *Sources) DeleteSourceMicrosoftOnedrive(ctx context.Context, request ope } -// DeleteSourceMicrosoftSharepoint - Delete a Source -func (s *Sources) DeleteSourceMicrosoftSharepoint(ctx context.Context, request operations.DeleteSourceMicrosoftSharepointRequest, opts ...operations.Option) (*operations.DeleteSourceMicrosoftSharepointResponse, error) { +// DeleteSourceHarvest - Delete a Source +func (s *Sources) DeleteSourceHarvest(ctx context.Context, request operations.DeleteSourceHarvestRequest, opts ...operations.Option) (*operations.DeleteSourceHarvestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMicrosoftSharepoint", + OperationID: "deleteSourceHarvest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33803,7 +34109,7 @@ func (s *Sources) DeleteSourceMicrosoftSharepoint(ctx context.Context, request o } } - res := &operations.DeleteSourceMicrosoftSharepointResponse{ + res := &operations.DeleteSourceHarvestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33830,11 +34136,11 @@ func (s *Sources) DeleteSourceMicrosoftSharepoint(ctx context.Context, request o } -// DeleteSourceMicrosoftTeams - Delete a Source -func (s *Sources) DeleteSourceMicrosoftTeams(ctx context.Context, request operations.DeleteSourceMicrosoftTeamsRequest, opts ...operations.Option) (*operations.DeleteSourceMicrosoftTeamsResponse, error) { +// DeleteSourceHibob - Delete a Source +func (s *Sources) DeleteSourceHibob(ctx context.Context, request operations.DeleteSourceHibobRequest, opts ...operations.Option) (*operations.DeleteSourceHibobResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMicrosoftTeams", + OperationID: "deleteSourceHibob", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33907,7 +34213,7 @@ func (s *Sources) DeleteSourceMicrosoftTeams(ctx context.Context, request operat } } - res := &operations.DeleteSourceMicrosoftTeamsResponse{ + res := &operations.DeleteSourceHibobResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33934,11 +34240,11 @@ func (s *Sources) DeleteSourceMicrosoftTeams(ctx context.Context, request operat } -// DeleteSourceMixpanel - Delete a Source -func (s *Sources) DeleteSourceMixpanel(ctx context.Context, request operations.DeleteSourceMixpanelRequest, opts ...operations.Option) (*operations.DeleteSourceMixpanelResponse, error) { +// DeleteSourceHighLevel - Delete a Source +func (s *Sources) DeleteSourceHighLevel(ctx context.Context, request operations.DeleteSourceHighLevelRequest, opts ...operations.Option) (*operations.DeleteSourceHighLevelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMixpanel", + OperationID: "deleteSourceHighLevel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34011,7 +34317,7 @@ func (s *Sources) DeleteSourceMixpanel(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceMixpanelResponse{ + res := &operations.DeleteSourceHighLevelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34038,11 +34344,11 @@ func (s *Sources) DeleteSourceMixpanel(ctx context.Context, request operations.D } -// DeleteSourceMonday - Delete a Source -func (s *Sources) DeleteSourceMonday(ctx context.Context, request operations.DeleteSourceMondayRequest, opts ...operations.Option) (*operations.DeleteSourceMondayResponse, error) { +// DeleteSourceHubplanner - Delete a Source +func (s *Sources) DeleteSourceHubplanner(ctx context.Context, request operations.DeleteSourceHubplannerRequest, opts ...operations.Option) (*operations.DeleteSourceHubplannerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMonday", + OperationID: "deleteSourceHubplanner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34115,7 +34421,7 @@ func (s *Sources) DeleteSourceMonday(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceMondayResponse{ + res := &operations.DeleteSourceHubplannerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34142,11 +34448,11 @@ func (s *Sources) DeleteSourceMonday(ctx context.Context, request operations.Del } -// DeleteSourceMongodbInternalPoc - Delete a Source -func (s *Sources) DeleteSourceMongodbInternalPoc(ctx context.Context, request operations.DeleteSourceMongodbInternalPocRequest, opts ...operations.Option) (*operations.DeleteSourceMongodbInternalPocResponse, error) { +// DeleteSourceHubspot - Delete a Source +func (s *Sources) DeleteSourceHubspot(ctx context.Context, request operations.DeleteSourceHubspotRequest, opts ...operations.Option) (*operations.DeleteSourceHubspotResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMongodbInternalPoc", + OperationID: "deleteSourceHubspot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34219,7 +34525,7 @@ func (s *Sources) DeleteSourceMongodbInternalPoc(ctx context.Context, request op } } - res := &operations.DeleteSourceMongodbInternalPocResponse{ + res := &operations.DeleteSourceHubspotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34246,11 +34552,11 @@ func (s *Sources) DeleteSourceMongodbInternalPoc(ctx context.Context, request op } -// DeleteSourceMongodbV2 - Delete a Source -func (s *Sources) DeleteSourceMongodbV2(ctx context.Context, request operations.DeleteSourceMongodbV2Request, opts ...operations.Option) (*operations.DeleteSourceMongodbV2Response, error) { +// DeleteSourceInsightly - Delete a Source +func (s *Sources) DeleteSourceInsightly(ctx context.Context, request operations.DeleteSourceInsightlyRequest, opts ...operations.Option) (*operations.DeleteSourceInsightlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMongodbV2", + OperationID: "deleteSourceInsightly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34323,7 +34629,7 @@ func (s *Sources) DeleteSourceMongodbV2(ctx context.Context, request operations. } } - res := &operations.DeleteSourceMongodbV2Response{ + res := &operations.DeleteSourceInsightlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34350,11 +34656,11 @@ func (s *Sources) DeleteSourceMongodbV2(ctx context.Context, request operations. } -// DeleteSourceMssql - Delete a Source -func (s *Sources) DeleteSourceMssql(ctx context.Context, request operations.DeleteSourceMssqlRequest, opts ...operations.Option) (*operations.DeleteSourceMssqlResponse, error) { +// DeleteSourceInstagram - Delete a Source +func (s *Sources) DeleteSourceInstagram(ctx context.Context, request operations.DeleteSourceInstagramRequest, opts ...operations.Option) (*operations.DeleteSourceInstagramResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMssql", + OperationID: "deleteSourceInstagram", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34427,7 +34733,7 @@ func (s *Sources) DeleteSourceMssql(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceMssqlResponse{ + res := &operations.DeleteSourceInstagramResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34454,11 +34760,11 @@ func (s *Sources) DeleteSourceMssql(ctx context.Context, request operations.Dele } -// DeleteSourceMyHours - Delete a Source -func (s *Sources) DeleteSourceMyHours(ctx context.Context, request operations.DeleteSourceMyHoursRequest, opts ...operations.Option) (*operations.DeleteSourceMyHoursResponse, error) { +// DeleteSourceInstatus - Delete a Source +func (s *Sources) DeleteSourceInstatus(ctx context.Context, request operations.DeleteSourceInstatusRequest, opts ...operations.Option) (*operations.DeleteSourceInstatusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMyHours", + OperationID: "deleteSourceInstatus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34531,7 +34837,7 @@ func (s *Sources) DeleteSourceMyHours(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceMyHoursResponse{ + res := &operations.DeleteSourceInstatusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34558,11 +34864,11 @@ func (s *Sources) DeleteSourceMyHours(ctx context.Context, request operations.De } -// DeleteSourceMysql - Delete a Source -func (s *Sources) DeleteSourceMysql(ctx context.Context, request operations.DeleteSourceMysqlRequest, opts ...operations.Option) (*operations.DeleteSourceMysqlResponse, error) { +// DeleteSourceIntercom - Delete a Source +func (s *Sources) DeleteSourceIntercom(ctx context.Context, request operations.DeleteSourceIntercomRequest, opts ...operations.Option) (*operations.DeleteSourceIntercomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceMysql", + OperationID: "deleteSourceIntercom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34635,7 +34941,7 @@ func (s *Sources) DeleteSourceMysql(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceMysqlResponse{ + res := &operations.DeleteSourceIntercomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34662,11 +34968,11 @@ func (s *Sources) DeleteSourceMysql(ctx context.Context, request operations.Dele } -// DeleteSourceNetsuite - Delete a Source -func (s *Sources) DeleteSourceNetsuite(ctx context.Context, request operations.DeleteSourceNetsuiteRequest, opts ...operations.Option) (*operations.DeleteSourceNetsuiteResponse, error) { +// DeleteSourceIp2whois - Delete a Source +func (s *Sources) DeleteSourceIp2whois(ctx context.Context, request operations.DeleteSourceIp2whoisRequest, opts ...operations.Option) (*operations.DeleteSourceIp2whoisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceNetsuite", + OperationID: "deleteSourceIp2whois", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34739,7 +35045,7 @@ func (s *Sources) DeleteSourceNetsuite(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceNetsuiteResponse{ + res := &operations.DeleteSourceIp2whoisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34766,11 +35072,11 @@ func (s *Sources) DeleteSourceNetsuite(ctx context.Context, request operations.D } -// DeleteSourceNotion - Delete a Source -func (s *Sources) DeleteSourceNotion(ctx context.Context, request operations.DeleteSourceNotionRequest, opts ...operations.Option) (*operations.DeleteSourceNotionResponse, error) { +// DeleteSourceIterable - Delete a Source +func (s *Sources) DeleteSourceIterable(ctx context.Context, request operations.DeleteSourceIterableRequest, opts ...operations.Option) (*operations.DeleteSourceIterableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceNotion", + OperationID: "deleteSourceIterable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34843,7 +35149,7 @@ func (s *Sources) DeleteSourceNotion(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceNotionResponse{ + res := &operations.DeleteSourceIterableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34870,11 +35176,11 @@ func (s *Sources) DeleteSourceNotion(ctx context.Context, request operations.Del } -// DeleteSourceNytimes - Delete a Source -func (s *Sources) DeleteSourceNytimes(ctx context.Context, request operations.DeleteSourceNytimesRequest, opts ...operations.Option) (*operations.DeleteSourceNytimesResponse, error) { +// DeleteSourceJira - Delete a Source +func (s *Sources) DeleteSourceJira(ctx context.Context, request operations.DeleteSourceJiraRequest, opts ...operations.Option) (*operations.DeleteSourceJiraResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceNytimes", + OperationID: "deleteSourceJira", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34947,7 +35253,7 @@ func (s *Sources) DeleteSourceNytimes(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceNytimesResponse{ + res := &operations.DeleteSourceJiraResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34974,11 +35280,11 @@ func (s *Sources) DeleteSourceNytimes(ctx context.Context, request operations.De } -// DeleteSourceOkta - Delete a Source -func (s *Sources) DeleteSourceOkta(ctx context.Context, request operations.DeleteSourceOktaRequest, opts ...operations.Option) (*operations.DeleteSourceOktaResponse, error) { +// DeleteSourceK6Cloud - Delete a Source +func (s *Sources) DeleteSourceK6Cloud(ctx context.Context, request operations.DeleteSourceK6CloudRequest, opts ...operations.Option) (*operations.DeleteSourceK6CloudResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceOkta", + OperationID: "deleteSourceK6Cloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35051,7 +35357,7 @@ func (s *Sources) DeleteSourceOkta(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceOktaResponse{ + res := &operations.DeleteSourceK6CloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35078,11 +35384,11 @@ func (s *Sources) DeleteSourceOkta(ctx context.Context, request operations.Delet } -// DeleteSourceOmnisend - Delete a Source -func (s *Sources) DeleteSourceOmnisend(ctx context.Context, request operations.DeleteSourceOmnisendRequest, opts ...operations.Option) (*operations.DeleteSourceOmnisendResponse, error) { +// DeleteSourceKlarna - Delete a Source +func (s *Sources) DeleteSourceKlarna(ctx context.Context, request operations.DeleteSourceKlarnaRequest, opts ...operations.Option) (*operations.DeleteSourceKlarnaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceOmnisend", + OperationID: "deleteSourceKlarna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35155,7 +35461,7 @@ func (s *Sources) DeleteSourceOmnisend(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceOmnisendResponse{ + res := &operations.DeleteSourceKlarnaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35182,11 +35488,11 @@ func (s *Sources) DeleteSourceOmnisend(ctx context.Context, request operations.D } -// DeleteSourceOnesignal - Delete a Source -func (s *Sources) DeleteSourceOnesignal(ctx context.Context, request operations.DeleteSourceOnesignalRequest, opts ...operations.Option) (*operations.DeleteSourceOnesignalResponse, error) { +// DeleteSourceKlaviyo - Delete a Source +func (s *Sources) DeleteSourceKlaviyo(ctx context.Context, request operations.DeleteSourceKlaviyoRequest, opts ...operations.Option) (*operations.DeleteSourceKlaviyoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceOnesignal", + OperationID: "deleteSourceKlaviyo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35259,7 +35565,7 @@ func (s *Sources) DeleteSourceOnesignal(ctx context.Context, request operations. } } - res := &operations.DeleteSourceOnesignalResponse{ + res := &operations.DeleteSourceKlaviyoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35286,11 +35592,11 @@ func (s *Sources) DeleteSourceOnesignal(ctx context.Context, request operations. } -// DeleteSourceOracle - Delete a Source -func (s *Sources) DeleteSourceOracle(ctx context.Context, request operations.DeleteSourceOracleRequest, opts ...operations.Option) (*operations.DeleteSourceOracleResponse, error) { +// DeleteSourceKyve - Delete a Source +func (s *Sources) DeleteSourceKyve(ctx context.Context, request operations.DeleteSourceKyveRequest, opts ...operations.Option) (*operations.DeleteSourceKyveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceOracle", + OperationID: "deleteSourceKyve", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35363,7 +35669,7 @@ func (s *Sources) DeleteSourceOracle(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceOracleResponse{ + res := &operations.DeleteSourceKyveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35390,11 +35696,11 @@ func (s *Sources) DeleteSourceOracle(ctx context.Context, request operations.Del } -// DeleteSourceOrb - Delete a Source -func (s *Sources) DeleteSourceOrb(ctx context.Context, request operations.DeleteSourceOrbRequest, opts ...operations.Option) (*operations.DeleteSourceOrbResponse, error) { +// DeleteSourceLaunchdarkly - Delete a Source +func (s *Sources) DeleteSourceLaunchdarkly(ctx context.Context, request operations.DeleteSourceLaunchdarklyRequest, opts ...operations.Option) (*operations.DeleteSourceLaunchdarklyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceOrb", + OperationID: "deleteSourceLaunchdarkly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35467,7 +35773,7 @@ func (s *Sources) DeleteSourceOrb(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceOrbResponse{ + res := &operations.DeleteSourceLaunchdarklyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35494,11 +35800,11 @@ func (s *Sources) DeleteSourceOrb(ctx context.Context, request operations.Delete } -// DeleteSourceOrbit - Delete a Source -func (s *Sources) DeleteSourceOrbit(ctx context.Context, request operations.DeleteSourceOrbitRequest, opts ...operations.Option) (*operations.DeleteSourceOrbitResponse, error) { +// DeleteSourceLeadfeeder - Delete a Source +func (s *Sources) DeleteSourceLeadfeeder(ctx context.Context, request operations.DeleteSourceLeadfeederRequest, opts ...operations.Option) (*operations.DeleteSourceLeadfeederResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceOrbit", + OperationID: "deleteSourceLeadfeeder", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35571,7 +35877,7 @@ func (s *Sources) DeleteSourceOrbit(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceOrbitResponse{ + res := &operations.DeleteSourceLeadfeederResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35598,11 +35904,11 @@ func (s *Sources) DeleteSourceOrbit(ctx context.Context, request operations.Dele } -// DeleteSourceOutbrainAmplify - Delete a Source -func (s *Sources) DeleteSourceOutbrainAmplify(ctx context.Context, request operations.DeleteSourceOutbrainAmplifyRequest, opts ...operations.Option) (*operations.DeleteSourceOutbrainAmplifyResponse, error) { +// DeleteSourceLemlist - Delete a Source +func (s *Sources) DeleteSourceLemlist(ctx context.Context, request operations.DeleteSourceLemlistRequest, opts ...operations.Option) (*operations.DeleteSourceLemlistResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceOutbrainAmplify", + OperationID: "deleteSourceLemlist", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35675,7 +35981,7 @@ func (s *Sources) DeleteSourceOutbrainAmplify(ctx context.Context, request opera } } - res := &operations.DeleteSourceOutbrainAmplifyResponse{ + res := &operations.DeleteSourceLemlistResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35702,11 +36008,11 @@ func (s *Sources) DeleteSourceOutbrainAmplify(ctx context.Context, request opera } -// DeleteSourceOutreach - Delete a Source -func (s *Sources) DeleteSourceOutreach(ctx context.Context, request operations.DeleteSourceOutreachRequest, opts ...operations.Option) (*operations.DeleteSourceOutreachResponse, error) { +// DeleteSourceLeverHiring - Delete a Source +func (s *Sources) DeleteSourceLeverHiring(ctx context.Context, request operations.DeleteSourceLeverHiringRequest, opts ...operations.Option) (*operations.DeleteSourceLeverHiringResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceOutreach", + OperationID: "deleteSourceLeverHiring", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35779,7 +36085,7 @@ func (s *Sources) DeleteSourceOutreach(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceOutreachResponse{ + res := &operations.DeleteSourceLeverHiringResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35806,11 +36112,11 @@ func (s *Sources) DeleteSourceOutreach(ctx context.Context, request operations.D } -// DeleteSourcePaypalTransaction - Delete a Source -func (s *Sources) DeleteSourcePaypalTransaction(ctx context.Context, request operations.DeleteSourcePaypalTransactionRequest, opts ...operations.Option) (*operations.DeleteSourcePaypalTransactionResponse, error) { +// DeleteSourceLinkedinAds - Delete a Source +func (s *Sources) DeleteSourceLinkedinAds(ctx context.Context, request operations.DeleteSourceLinkedinAdsRequest, opts ...operations.Option) (*operations.DeleteSourceLinkedinAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePaypalTransaction", + OperationID: "deleteSourceLinkedinAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35883,7 +36189,7 @@ func (s *Sources) DeleteSourcePaypalTransaction(ctx context.Context, request ope } } - res := &operations.DeleteSourcePaypalTransactionResponse{ + res := &operations.DeleteSourceLinkedinAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35910,11 +36216,11 @@ func (s *Sources) DeleteSourcePaypalTransaction(ctx context.Context, request ope } -// DeleteSourcePaystack - Delete a Source -func (s *Sources) DeleteSourcePaystack(ctx context.Context, request operations.DeleteSourcePaystackRequest, opts ...operations.Option) (*operations.DeleteSourcePaystackResponse, error) { +// DeleteSourceLinkedinPages - Delete a Source +func (s *Sources) DeleteSourceLinkedinPages(ctx context.Context, request operations.DeleteSourceLinkedinPagesRequest, opts ...operations.Option) (*operations.DeleteSourceLinkedinPagesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePaystack", + OperationID: "deleteSourceLinkedinPages", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35987,7 +36293,7 @@ func (s *Sources) DeleteSourcePaystack(ctx context.Context, request operations.D } } - res := &operations.DeleteSourcePaystackResponse{ + res := &operations.DeleteSourceLinkedinPagesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36014,11 +36320,11 @@ func (s *Sources) DeleteSourcePaystack(ctx context.Context, request operations.D } -// DeleteSourcePendo - Delete a Source -func (s *Sources) DeleteSourcePendo(ctx context.Context, request operations.DeleteSourcePendoRequest, opts ...operations.Option) (*operations.DeleteSourcePendoResponse, error) { +// DeleteSourceLinnworks - Delete a Source +func (s *Sources) DeleteSourceLinnworks(ctx context.Context, request operations.DeleteSourceLinnworksRequest, opts ...operations.Option) (*operations.DeleteSourceLinnworksResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePendo", + OperationID: "deleteSourceLinnworks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36091,7 +36397,7 @@ func (s *Sources) DeleteSourcePendo(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourcePendoResponse{ + res := &operations.DeleteSourceLinnworksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36118,11 +36424,11 @@ func (s *Sources) DeleteSourcePendo(ctx context.Context, request operations.Dele } -// DeleteSourcePersistiq - Delete a Source -func (s *Sources) DeleteSourcePersistiq(ctx context.Context, request operations.DeleteSourcePersistiqRequest, opts ...operations.Option) (*operations.DeleteSourcePersistiqResponse, error) { +// DeleteSourceLokalise - Delete a Source +func (s *Sources) DeleteSourceLokalise(ctx context.Context, request operations.DeleteSourceLokaliseRequest, opts ...operations.Option) (*operations.DeleteSourceLokaliseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePersistiq", + OperationID: "deleteSourceLokalise", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36195,7 +36501,7 @@ func (s *Sources) DeleteSourcePersistiq(ctx context.Context, request operations. } } - res := &operations.DeleteSourcePersistiqResponse{ + res := &operations.DeleteSourceLokaliseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36222,11 +36528,11 @@ func (s *Sources) DeleteSourcePersistiq(ctx context.Context, request operations. } -// DeleteSourcePexelsAPI - Delete a Source -func (s *Sources) DeleteSourcePexelsAPI(ctx context.Context, request operations.DeleteSourcePexelsAPIRequest, opts ...operations.Option) (*operations.DeleteSourcePexelsAPIResponse, error) { +// DeleteSourceLooker - Delete a Source +func (s *Sources) DeleteSourceLooker(ctx context.Context, request operations.DeleteSourceLookerRequest, opts ...operations.Option) (*operations.DeleteSourceLookerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePexelsApi", + OperationID: "deleteSourceLooker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36299,7 +36605,7 @@ func (s *Sources) DeleteSourcePexelsAPI(ctx context.Context, request operations. } } - res := &operations.DeleteSourcePexelsAPIResponse{ + res := &operations.DeleteSourceLookerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36326,11 +36632,11 @@ func (s *Sources) DeleteSourcePexelsAPI(ctx context.Context, request operations. } -// DeleteSourcePinterest - Delete a Source -func (s *Sources) DeleteSourcePinterest(ctx context.Context, request operations.DeleteSourcePinterestRequest, opts ...operations.Option) (*operations.DeleteSourcePinterestResponse, error) { +// DeleteSourceLuma - Delete a Source +func (s *Sources) DeleteSourceLuma(ctx context.Context, request operations.DeleteSourceLumaRequest, opts ...operations.Option) (*operations.DeleteSourceLumaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePinterest", + OperationID: "deleteSourceLuma", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36403,7 +36709,7 @@ func (s *Sources) DeleteSourcePinterest(ctx context.Context, request operations. } } - res := &operations.DeleteSourcePinterestResponse{ + res := &operations.DeleteSourceLumaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36430,11 +36736,11 @@ func (s *Sources) DeleteSourcePinterest(ctx context.Context, request operations. } -// DeleteSourcePipedrive - Delete a Source -func (s *Sources) DeleteSourcePipedrive(ctx context.Context, request operations.DeleteSourcePipedriveRequest, opts ...operations.Option) (*operations.DeleteSourcePipedriveResponse, error) { +// DeleteSourceMailchimp - Delete a Source +func (s *Sources) DeleteSourceMailchimp(ctx context.Context, request operations.DeleteSourceMailchimpRequest, opts ...operations.Option) (*operations.DeleteSourceMailchimpResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePipedrive", + OperationID: "deleteSourceMailchimp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36507,7 +36813,7 @@ func (s *Sources) DeleteSourcePipedrive(ctx context.Context, request operations. } } - res := &operations.DeleteSourcePipedriveResponse{ + res := &operations.DeleteSourceMailchimpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36534,11 +36840,11 @@ func (s *Sources) DeleteSourcePipedrive(ctx context.Context, request operations. } -// DeleteSourcePocket - Delete a Source -func (s *Sources) DeleteSourcePocket(ctx context.Context, request operations.DeleteSourcePocketRequest, opts ...operations.Option) (*operations.DeleteSourcePocketResponse, error) { +// DeleteSourceMailgun - Delete a Source +func (s *Sources) DeleteSourceMailgun(ctx context.Context, request operations.DeleteSourceMailgunRequest, opts ...operations.Option) (*operations.DeleteSourceMailgunResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePocket", + OperationID: "deleteSourceMailgun", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36611,7 +36917,7 @@ func (s *Sources) DeleteSourcePocket(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourcePocketResponse{ + res := &operations.DeleteSourceMailgunResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36638,11 +36944,11 @@ func (s *Sources) DeleteSourcePocket(ctx context.Context, request operations.Del } -// DeleteSourcePokeapi - Delete a Source -func (s *Sources) DeleteSourcePokeapi(ctx context.Context, request operations.DeleteSourcePokeapiRequest, opts ...operations.Option) (*operations.DeleteSourcePokeapiResponse, error) { +// DeleteSourceMailjetSms - Delete a Source +func (s *Sources) DeleteSourceMailjetSms(ctx context.Context, request operations.DeleteSourceMailjetSmsRequest, opts ...operations.Option) (*operations.DeleteSourceMailjetSmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePokeapi", + OperationID: "deleteSourceMailjetSms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36715,7 +37021,7 @@ func (s *Sources) DeleteSourcePokeapi(ctx context.Context, request operations.De } } - res := &operations.DeleteSourcePokeapiResponse{ + res := &operations.DeleteSourceMailjetSmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36742,11 +37048,11 @@ func (s *Sources) DeleteSourcePokeapi(ctx context.Context, request operations.De } -// DeleteSourcePolygonStockAPI - Delete a Source -func (s *Sources) DeleteSourcePolygonStockAPI(ctx context.Context, request operations.DeleteSourcePolygonStockAPIRequest, opts ...operations.Option) (*operations.DeleteSourcePolygonStockAPIResponse, error) { +// DeleteSourceMarketo - Delete a Source +func (s *Sources) DeleteSourceMarketo(ctx context.Context, request operations.DeleteSourceMarketoRequest, opts ...operations.Option) (*operations.DeleteSourceMarketoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePolygonStockApi", + OperationID: "deleteSourceMarketo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36819,7 +37125,7 @@ func (s *Sources) DeleteSourcePolygonStockAPI(ctx context.Context, request opera } } - res := &operations.DeleteSourcePolygonStockAPIResponse{ + res := &operations.DeleteSourceMarketoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36846,11 +37152,11 @@ func (s *Sources) DeleteSourcePolygonStockAPI(ctx context.Context, request opera } -// DeleteSourcePostgres - Delete a Source -func (s *Sources) DeleteSourcePostgres(ctx context.Context, request operations.DeleteSourcePostgresRequest, opts ...operations.Option) (*operations.DeleteSourcePostgresResponse, error) { +// DeleteSourceMetabase - Delete a Source +func (s *Sources) DeleteSourceMetabase(ctx context.Context, request operations.DeleteSourceMetabaseRequest, opts ...operations.Option) (*operations.DeleteSourceMetabaseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePostgres", + OperationID: "deleteSourceMetabase", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36923,7 +37229,7 @@ func (s *Sources) DeleteSourcePostgres(ctx context.Context, request operations.D } } - res := &operations.DeleteSourcePostgresResponse{ + res := &operations.DeleteSourceMetabaseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36950,11 +37256,11 @@ func (s *Sources) DeleteSourcePostgres(ctx context.Context, request operations.D } -// DeleteSourcePosthog - Delete a Source -func (s *Sources) DeleteSourcePosthog(ctx context.Context, request operations.DeleteSourcePosthogRequest, opts ...operations.Option) (*operations.DeleteSourcePosthogResponse, error) { +// DeleteSourceMicrosoftOnedrive - Delete a Source +func (s *Sources) DeleteSourceMicrosoftOnedrive(ctx context.Context, request operations.DeleteSourceMicrosoftOnedriveRequest, opts ...operations.Option) (*operations.DeleteSourceMicrosoftOnedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePosthog", + OperationID: "deleteSourceMicrosoftOnedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37027,7 +37333,7 @@ func (s *Sources) DeleteSourcePosthog(ctx context.Context, request operations.De } } - res := &operations.DeleteSourcePosthogResponse{ + res := &operations.DeleteSourceMicrosoftOnedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37054,11 +37360,11 @@ func (s *Sources) DeleteSourcePosthog(ctx context.Context, request operations.De } -// DeleteSourcePostmarkapp - Delete a Source -func (s *Sources) DeleteSourcePostmarkapp(ctx context.Context, request operations.DeleteSourcePostmarkappRequest, opts ...operations.Option) (*operations.DeleteSourcePostmarkappResponse, error) { +// DeleteSourceMicrosoftSharepoint - Delete a Source +func (s *Sources) DeleteSourceMicrosoftSharepoint(ctx context.Context, request operations.DeleteSourceMicrosoftSharepointRequest, opts ...operations.Option) (*operations.DeleteSourceMicrosoftSharepointResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePostmarkapp", + OperationID: "deleteSourceMicrosoftSharepoint", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37131,7 +37437,7 @@ func (s *Sources) DeleteSourcePostmarkapp(ctx context.Context, request operation } } - res := &operations.DeleteSourcePostmarkappResponse{ + res := &operations.DeleteSourceMicrosoftSharepointResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37158,11 +37464,11 @@ func (s *Sources) DeleteSourcePostmarkapp(ctx context.Context, request operation } -// DeleteSourcePrestashop - Delete a Source -func (s *Sources) DeleteSourcePrestashop(ctx context.Context, request operations.DeleteSourcePrestashopRequest, opts ...operations.Option) (*operations.DeleteSourcePrestashopResponse, error) { +// DeleteSourceMicrosoftTeams - Delete a Source +func (s *Sources) DeleteSourceMicrosoftTeams(ctx context.Context, request operations.DeleteSourceMicrosoftTeamsRequest, opts ...operations.Option) (*operations.DeleteSourceMicrosoftTeamsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePrestashop", + OperationID: "deleteSourceMicrosoftTeams", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37235,7 +37541,7 @@ func (s *Sources) DeleteSourcePrestashop(ctx context.Context, request operations } } - res := &operations.DeleteSourcePrestashopResponse{ + res := &operations.DeleteSourceMicrosoftTeamsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37262,11 +37568,11 @@ func (s *Sources) DeleteSourcePrestashop(ctx context.Context, request operations } -// DeleteSourcePunkAPI - Delete a Source -func (s *Sources) DeleteSourcePunkAPI(ctx context.Context, request operations.DeleteSourcePunkAPIRequest, opts ...operations.Option) (*operations.DeleteSourcePunkAPIResponse, error) { +// DeleteSourceMixpanel - Delete a Source +func (s *Sources) DeleteSourceMixpanel(ctx context.Context, request operations.DeleteSourceMixpanelRequest, opts ...operations.Option) (*operations.DeleteSourceMixpanelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePunkApi", + OperationID: "deleteSourceMixpanel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37339,7 +37645,7 @@ func (s *Sources) DeleteSourcePunkAPI(ctx context.Context, request operations.De } } - res := &operations.DeleteSourcePunkAPIResponse{ + res := &operations.DeleteSourceMixpanelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37366,11 +37672,11 @@ func (s *Sources) DeleteSourcePunkAPI(ctx context.Context, request operations.De } -// DeleteSourcePypi - Delete a Source -func (s *Sources) DeleteSourcePypi(ctx context.Context, request operations.DeleteSourcePypiRequest, opts ...operations.Option) (*operations.DeleteSourcePypiResponse, error) { +// DeleteSourceMonday - Delete a Source +func (s *Sources) DeleteSourceMonday(ctx context.Context, request operations.DeleteSourceMondayRequest, opts ...operations.Option) (*operations.DeleteSourceMondayResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePypi", + OperationID: "deleteSourceMonday", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37443,7 +37749,7 @@ func (s *Sources) DeleteSourcePypi(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourcePypiResponse{ + res := &operations.DeleteSourceMondayResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37470,11 +37776,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) { +// DeleteSourceMongodbV2 - Delete a Source +func (s *Sources) DeleteSourceMongodbV2(ctx context.Context, request operations.DeleteSourceMongodbV2Request, opts ...operations.Option) (*operations.DeleteSourceMongodbV2Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceQualaroo", + OperationID: "deleteSourceMongodbV2", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37547,7 +37853,7 @@ func (s *Sources) DeleteSourceQualaroo(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceQualarooResponse{ + res := &operations.DeleteSourceMongodbV2Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37574,11 +37880,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) { +// DeleteSourceMssql - Delete a Source +func (s *Sources) DeleteSourceMssql(ctx context.Context, request operations.DeleteSourceMssqlRequest, opts ...operations.Option) (*operations.DeleteSourceMssqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRailz", + OperationID: "deleteSourceMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37651,7 +37957,7 @@ func (s *Sources) DeleteSourceRailz(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceRailzResponse{ + res := &operations.DeleteSourceMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37678,11 +37984,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) { +// DeleteSourceMyHours - Delete a Source +func (s *Sources) DeleteSourceMyHours(ctx context.Context, request operations.DeleteSourceMyHoursRequest, opts ...operations.Option) (*operations.DeleteSourceMyHoursResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRecharge", + OperationID: "deleteSourceMyHours", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37755,7 +38061,7 @@ func (s *Sources) DeleteSourceRecharge(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRechargeResponse{ + res := &operations.DeleteSourceMyHoursResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37782,11 +38088,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) { +// DeleteSourceMysql - Delete a Source +func (s *Sources) DeleteSourceMysql(ctx context.Context, request operations.DeleteSourceMysqlRequest, opts ...operations.Option) (*operations.DeleteSourceMysqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRecreation", + OperationID: "deleteSourceMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37859,7 +38165,7 @@ func (s *Sources) DeleteSourceRecreation(ctx context.Context, request operations } } - res := &operations.DeleteSourceRecreationResponse{ + res := &operations.DeleteSourceMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37886,11 +38192,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) { +// DeleteSourceNetsuite - Delete a Source +func (s *Sources) DeleteSourceNetsuite(ctx context.Context, request operations.DeleteSourceNetsuiteRequest, opts ...operations.Option) (*operations.DeleteSourceNetsuiteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRecruitee", + OperationID: "deleteSourceNetsuite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37963,7 +38269,7 @@ func (s *Sources) DeleteSourceRecruitee(ctx context.Context, request operations. } } - res := &operations.DeleteSourceRecruiteeResponse{ + res := &operations.DeleteSourceNetsuiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37990,11 +38296,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) { +// DeleteSourceNorthpassLms - Delete a Source +func (s *Sources) DeleteSourceNorthpassLms(ctx context.Context, request operations.DeleteSourceNorthpassLmsRequest, opts ...operations.Option) (*operations.DeleteSourceNorthpassLmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRecurly", + OperationID: "deleteSourceNorthpassLms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38067,7 +38373,7 @@ func (s *Sources) DeleteSourceRecurly(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceRecurlyResponse{ + res := &operations.DeleteSourceNorthpassLmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38094,11 +38400,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) { +// DeleteSourceNotion - Delete a Source +func (s *Sources) DeleteSourceNotion(ctx context.Context, request operations.DeleteSourceNotionRequest, opts ...operations.Option) (*operations.DeleteSourceNotionResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRedshift", + OperationID: "deleteSourceNotion", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38171,7 +38477,7 @@ func (s *Sources) DeleteSourceRedshift(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRedshiftResponse{ + res := &operations.DeleteSourceNotionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38198,11 +38504,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) { +// DeleteSourceNytimes - Delete a Source +func (s *Sources) DeleteSourceNytimes(ctx context.Context, request operations.DeleteSourceNytimesRequest, opts ...operations.Option) (*operations.DeleteSourceNytimesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRetently", + OperationID: "deleteSourceNytimes", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38275,7 +38581,7 @@ func (s *Sources) DeleteSourceRetently(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRetentlyResponse{ + res := &operations.DeleteSourceNytimesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38302,11 +38608,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) { +// DeleteSourceOkta - Delete a Source +func (s *Sources) DeleteSourceOkta(ctx context.Context, request operations.DeleteSourceOktaRequest, opts ...operations.Option) (*operations.DeleteSourceOktaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRkiCovid", + OperationID: "deleteSourceOkta", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38379,7 +38685,7 @@ func (s *Sources) DeleteSourceRkiCovid(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRkiCovidResponse{ + res := &operations.DeleteSourceOktaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38406,11 +38712,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) { +// DeleteSourceOmnisend - Delete a Source +func (s *Sources) DeleteSourceOmnisend(ctx context.Context, request operations.DeleteSourceOmnisendRequest, opts ...operations.Option) (*operations.DeleteSourceOmnisendResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRss", + OperationID: "deleteSourceOmnisend", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38483,7 +38789,7 @@ func (s *Sources) DeleteSourceRss(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceRssResponse{ + res := &operations.DeleteSourceOmnisendResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38510,11 +38816,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) { +// DeleteSourceOnesignal - Delete a Source +func (s *Sources) DeleteSourceOnesignal(ctx context.Context, request operations.DeleteSourceOnesignalRequest, opts ...operations.Option) (*operations.DeleteSourceOnesignalResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceS3", + OperationID: "deleteSourceOnesignal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38587,7 +38893,7 @@ func (s *Sources) DeleteSourceS3(ctx context.Context, request operations.DeleteS } } - res := &operations.DeleteSourceS3Response{ + res := &operations.DeleteSourceOnesignalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38614,11 +38920,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) { +// DeleteSourceOracle - Delete a Source +func (s *Sources) DeleteSourceOracle(ctx context.Context, request operations.DeleteSourceOracleRequest, opts ...operations.Option) (*operations.DeleteSourceOracleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSalesforce", + OperationID: "deleteSourceOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38691,7 +38997,7 @@ func (s *Sources) DeleteSourceSalesforce(ctx context.Context, request operations } } - res := &operations.DeleteSourceSalesforceResponse{ + res := &operations.DeleteSourceOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38718,11 +39024,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) { +// DeleteSourceOrb - Delete a Source +func (s *Sources) DeleteSourceOrb(ctx context.Context, request operations.DeleteSourceOrbRequest, opts ...operations.Option) (*operations.DeleteSourceOrbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSalesloft", + OperationID: "deleteSourceOrb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38795,7 +39101,7 @@ func (s *Sources) DeleteSourceSalesloft(ctx context.Context, request operations. } } - res := &operations.DeleteSourceSalesloftResponse{ + res := &operations.DeleteSourceOrbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38822,11 +39128,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) { +// DeleteSourceOrbit - Delete a Source +func (s *Sources) DeleteSourceOrbit(ctx context.Context, request operations.DeleteSourceOrbitRequest, opts ...operations.Option) (*operations.DeleteSourceOrbitResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSapFieldglass", + OperationID: "deleteSourceOrbit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38899,7 +39205,7 @@ func (s *Sources) DeleteSourceSapFieldglass(ctx context.Context, request operati } } - res := &operations.DeleteSourceSapFieldglassResponse{ + res := &operations.DeleteSourceOrbitResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38926,11 +39232,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) { +// DeleteSourceOutbrainAmplify - Delete a Source +func (s *Sources) DeleteSourceOutbrainAmplify(ctx context.Context, request operations.DeleteSourceOutbrainAmplifyRequest, opts ...operations.Option) (*operations.DeleteSourceOutbrainAmplifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSecoda", + OperationID: "deleteSourceOutbrainAmplify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39003,7 +39309,7 @@ func (s *Sources) DeleteSourceSecoda(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceSecodaResponse{ + res := &operations.DeleteSourceOutbrainAmplifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39030,11 +39336,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) { +// DeleteSourceOutreach - Delete a Source +func (s *Sources) DeleteSourceOutreach(ctx context.Context, request operations.DeleteSourceOutreachRequest, opts ...operations.Option) (*operations.DeleteSourceOutreachResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSendgrid", + OperationID: "deleteSourceOutreach", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39107,7 +39413,7 @@ func (s *Sources) DeleteSourceSendgrid(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceSendgridResponse{ + res := &operations.DeleteSourceOutreachResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39134,11 +39440,11 @@ 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) { +// DeleteSourcePaypalTransaction - Delete a Source +func (s *Sources) DeleteSourcePaypalTransaction(ctx context.Context, request operations.DeleteSourcePaypalTransactionRequest, opts ...operations.Option) (*operations.DeleteSourcePaypalTransactionResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSendinblue", + OperationID: "deleteSourcePaypalTransaction", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39211,7 +39517,7 @@ func (s *Sources) DeleteSourceSendinblue(ctx context.Context, request operations } } - res := &operations.DeleteSourceSendinblueResponse{ + res := &operations.DeleteSourcePaypalTransactionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39238,11 +39544,11 @@ func (s *Sources) DeleteSourceSendinblue(ctx context.Context, request operations } -// DeleteSourceSenseforce - Delete a Source -func (s *Sources) DeleteSourceSenseforce(ctx context.Context, request operations.DeleteSourceSenseforceRequest, opts ...operations.Option) (*operations.DeleteSourceSenseforceResponse, error) { +// DeleteSourcePaystack - Delete a Source +func (s *Sources) DeleteSourcePaystack(ctx context.Context, request operations.DeleteSourcePaystackRequest, opts ...operations.Option) (*operations.DeleteSourcePaystackResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSenseforce", + OperationID: "deleteSourcePaystack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39315,7 +39621,7 @@ func (s *Sources) DeleteSourceSenseforce(ctx context.Context, request operations } } - res := &operations.DeleteSourceSenseforceResponse{ + res := &operations.DeleteSourcePaystackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39342,11 +39648,11 @@ func (s *Sources) DeleteSourceSenseforce(ctx context.Context, request operations } -// DeleteSourceSentry - Delete a Source -func (s *Sources) DeleteSourceSentry(ctx context.Context, request operations.DeleteSourceSentryRequest, opts ...operations.Option) (*operations.DeleteSourceSentryResponse, error) { +// DeleteSourcePendo - Delete a Source +func (s *Sources) DeleteSourcePendo(ctx context.Context, request operations.DeleteSourcePendoRequest, opts ...operations.Option) (*operations.DeleteSourcePendoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSentry", + OperationID: "deleteSourcePendo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39419,7 +39725,7 @@ func (s *Sources) DeleteSourceSentry(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceSentryResponse{ + res := &operations.DeleteSourcePendoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39446,11 +39752,11 @@ func (s *Sources) DeleteSourceSentry(ctx context.Context, request operations.Del } -// DeleteSourceSftp - Delete a Source -func (s *Sources) DeleteSourceSftp(ctx context.Context, request operations.DeleteSourceSftpRequest, opts ...operations.Option) (*operations.DeleteSourceSftpResponse, error) { +// DeleteSourcePennylane - Delete a Source +func (s *Sources) DeleteSourcePennylane(ctx context.Context, request operations.DeleteSourcePennylaneRequest, opts ...operations.Option) (*operations.DeleteSourcePennylaneResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSftp", + OperationID: "deleteSourcePennylane", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39523,7 +39829,7 @@ func (s *Sources) DeleteSourceSftp(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceSftpResponse{ + res := &operations.DeleteSourcePennylaneResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39550,11 +39856,11 @@ func (s *Sources) DeleteSourceSftp(ctx context.Context, request operations.Delet } -// DeleteSourceSftpBulk - Delete a Source -func (s *Sources) DeleteSourceSftpBulk(ctx context.Context, request operations.DeleteSourceSftpBulkRequest, opts ...operations.Option) (*operations.DeleteSourceSftpBulkResponse, error) { +// DeleteSourcePersistiq - Delete a Source +func (s *Sources) DeleteSourcePersistiq(ctx context.Context, request operations.DeleteSourcePersistiqRequest, opts ...operations.Option) (*operations.DeleteSourcePersistiqResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSftpBulk", + OperationID: "deleteSourcePersistiq", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39627,7 +39933,7 @@ func (s *Sources) DeleteSourceSftpBulk(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceSftpBulkResponse{ + res := &operations.DeleteSourcePersistiqResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39654,11 +39960,11 @@ func (s *Sources) DeleteSourceSftpBulk(ctx context.Context, request operations.D } -// DeleteSourceShopify - Delete a Source -func (s *Sources) DeleteSourceShopify(ctx context.Context, request operations.DeleteSourceShopifyRequest, opts ...operations.Option) (*operations.DeleteSourceShopifyResponse, error) { +// DeleteSourcePexelsAPI - Delete a Source +func (s *Sources) DeleteSourcePexelsAPI(ctx context.Context, request operations.DeleteSourcePexelsAPIRequest, opts ...operations.Option) (*operations.DeleteSourcePexelsAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceShopify", + OperationID: "deleteSourcePexelsApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39731,7 +40037,7 @@ func (s *Sources) DeleteSourceShopify(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceShopifyResponse{ + res := &operations.DeleteSourcePexelsAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39758,11 +40064,11 @@ func (s *Sources) DeleteSourceShopify(ctx context.Context, request operations.De } -// DeleteSourceShortio - Delete a Source -func (s *Sources) DeleteSourceShortio(ctx context.Context, request operations.DeleteSourceShortioRequest, opts ...operations.Option) (*operations.DeleteSourceShortioResponse, error) { +// DeleteSourcePinterest - Delete a Source +func (s *Sources) DeleteSourcePinterest(ctx context.Context, request operations.DeleteSourcePinterestRequest, opts ...operations.Option) (*operations.DeleteSourcePinterestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceShortio", + OperationID: "deleteSourcePinterest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39835,7 +40141,7 @@ func (s *Sources) DeleteSourceShortio(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceShortioResponse{ + res := &operations.DeleteSourcePinterestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39862,11 +40168,11 @@ func (s *Sources) DeleteSourceShortio(ctx context.Context, request operations.De } -// DeleteSourceSlack - Delete a Source -func (s *Sources) DeleteSourceSlack(ctx context.Context, request operations.DeleteSourceSlackRequest, opts ...operations.Option) (*operations.DeleteSourceSlackResponse, error) { +// DeleteSourcePipedrive - Delete a Source +func (s *Sources) DeleteSourcePipedrive(ctx context.Context, request operations.DeleteSourcePipedriveRequest, opts ...operations.Option) (*operations.DeleteSourcePipedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSlack", + OperationID: "deleteSourcePipedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39939,7 +40245,7 @@ func (s *Sources) DeleteSourceSlack(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceSlackResponse{ + res := &operations.DeleteSourcePipedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39966,11 +40272,11 @@ func (s *Sources) DeleteSourceSlack(ctx context.Context, request operations.Dele } -// DeleteSourceSmaily - Delete a Source -func (s *Sources) DeleteSourceSmaily(ctx context.Context, request operations.DeleteSourceSmailyRequest, opts ...operations.Option) (*operations.DeleteSourceSmailyResponse, error) { +// DeleteSourcePlanhat - Delete a Source +func (s *Sources) DeleteSourcePlanhat(ctx context.Context, request operations.DeleteSourcePlanhatRequest, opts ...operations.Option) (*operations.DeleteSourcePlanhatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSmaily", + OperationID: "deleteSourcePlanhat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40043,7 +40349,7 @@ func (s *Sources) DeleteSourceSmaily(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceSmailyResponse{ + res := &operations.DeleteSourcePlanhatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40070,11 +40376,11 @@ func (s *Sources) DeleteSourceSmaily(ctx context.Context, request operations.Del } -// DeleteSourceSmartengage - Delete a Source -func (s *Sources) DeleteSourceSmartengage(ctx context.Context, request operations.DeleteSourceSmartengageRequest, opts ...operations.Option) (*operations.DeleteSourceSmartengageResponse, error) { +// DeleteSourcePocket - Delete a Source +func (s *Sources) DeleteSourcePocket(ctx context.Context, request operations.DeleteSourcePocketRequest, opts ...operations.Option) (*operations.DeleteSourcePocketResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSmartengage", + OperationID: "deleteSourcePocket", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40147,7 +40453,7 @@ func (s *Sources) DeleteSourceSmartengage(ctx context.Context, request operation } } - res := &operations.DeleteSourceSmartengageResponse{ + res := &operations.DeleteSourcePocketResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40174,11 +40480,11 @@ func (s *Sources) DeleteSourceSmartengage(ctx context.Context, request operation } -// DeleteSourceSmartsheets - Delete a Source -func (s *Sources) DeleteSourceSmartsheets(ctx context.Context, request operations.DeleteSourceSmartsheetsRequest, opts ...operations.Option) (*operations.DeleteSourceSmartsheetsResponse, error) { +// DeleteSourcePokeapi - Delete a Source +func (s *Sources) DeleteSourcePokeapi(ctx context.Context, request operations.DeleteSourcePokeapiRequest, opts ...operations.Option) (*operations.DeleteSourcePokeapiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSmartsheets", + OperationID: "deleteSourcePokeapi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40251,7 +40557,7 @@ func (s *Sources) DeleteSourceSmartsheets(ctx context.Context, request operation } } - res := &operations.DeleteSourceSmartsheetsResponse{ + res := &operations.DeleteSourcePokeapiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40278,11 +40584,11 @@ func (s *Sources) DeleteSourceSmartsheets(ctx context.Context, request operation } -// DeleteSourceSnapchatMarketing - Delete a Source -func (s *Sources) DeleteSourceSnapchatMarketing(ctx context.Context, request operations.DeleteSourceSnapchatMarketingRequest, opts ...operations.Option) (*operations.DeleteSourceSnapchatMarketingResponse, error) { +// DeleteSourcePolygonStockAPI - Delete a Source +func (s *Sources) DeleteSourcePolygonStockAPI(ctx context.Context, request operations.DeleteSourcePolygonStockAPIRequest, opts ...operations.Option) (*operations.DeleteSourcePolygonStockAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSnapchatMarketing", + OperationID: "deleteSourcePolygonStockApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40355,7 +40661,7 @@ func (s *Sources) DeleteSourceSnapchatMarketing(ctx context.Context, request ope } } - res := &operations.DeleteSourceSnapchatMarketingResponse{ + res := &operations.DeleteSourcePolygonStockAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40382,11 +40688,11 @@ func (s *Sources) DeleteSourceSnapchatMarketing(ctx context.Context, request ope } -// DeleteSourceSnowflake - Delete a Source -func (s *Sources) DeleteSourceSnowflake(ctx context.Context, request operations.DeleteSourceSnowflakeRequest, opts ...operations.Option) (*operations.DeleteSourceSnowflakeResponse, error) { +// DeleteSourcePostgres - Delete a Source +func (s *Sources) DeleteSourcePostgres(ctx context.Context, request operations.DeleteSourcePostgresRequest, opts ...operations.Option) (*operations.DeleteSourcePostgresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSnowflake", + OperationID: "deleteSourcePostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40459,7 +40765,7 @@ func (s *Sources) DeleteSourceSnowflake(ctx context.Context, request operations. } } - res := &operations.DeleteSourceSnowflakeResponse{ + res := &operations.DeleteSourcePostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40486,11 +40792,11 @@ func (s *Sources) DeleteSourceSnowflake(ctx context.Context, request operations. } -// DeleteSourceSonarCloud - Delete a Source -func (s *Sources) DeleteSourceSonarCloud(ctx context.Context, request operations.DeleteSourceSonarCloudRequest, opts ...operations.Option) (*operations.DeleteSourceSonarCloudResponse, error) { +// DeleteSourcePosthog - Delete a Source +func (s *Sources) DeleteSourcePosthog(ctx context.Context, request operations.DeleteSourcePosthogRequest, opts ...operations.Option) (*operations.DeleteSourcePosthogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSonarCloud", + OperationID: "deleteSourcePosthog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40563,7 +40869,7 @@ func (s *Sources) DeleteSourceSonarCloud(ctx context.Context, request operations } } - res := &operations.DeleteSourceSonarCloudResponse{ + res := &operations.DeleteSourcePosthogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40590,11 +40896,11 @@ func (s *Sources) DeleteSourceSonarCloud(ctx context.Context, request operations } -// DeleteSourceSpacexAPI - Delete a Source -func (s *Sources) DeleteSourceSpacexAPI(ctx context.Context, request operations.DeleteSourceSpacexAPIRequest, opts ...operations.Option) (*operations.DeleteSourceSpacexAPIResponse, error) { +// DeleteSourcePostmarkapp - Delete a Source +func (s *Sources) DeleteSourcePostmarkapp(ctx context.Context, request operations.DeleteSourcePostmarkappRequest, opts ...operations.Option) (*operations.DeleteSourcePostmarkappResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSpacexApi", + OperationID: "deleteSourcePostmarkapp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40667,7 +40973,7 @@ func (s *Sources) DeleteSourceSpacexAPI(ctx context.Context, request operations. } } - res := &operations.DeleteSourceSpacexAPIResponse{ + res := &operations.DeleteSourcePostmarkappResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40694,11 +41000,11 @@ func (s *Sources) DeleteSourceSpacexAPI(ctx context.Context, request operations. } -// DeleteSourceSquare - Delete a Source -func (s *Sources) DeleteSourceSquare(ctx context.Context, request operations.DeleteSourceSquareRequest, opts ...operations.Option) (*operations.DeleteSourceSquareResponse, error) { +// DeleteSourcePrestashop - Delete a Source +func (s *Sources) DeleteSourcePrestashop(ctx context.Context, request operations.DeleteSourcePrestashopRequest, opts ...operations.Option) (*operations.DeleteSourcePrestashopResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSquare", + OperationID: "deleteSourcePrestashop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40771,7 +41077,7 @@ func (s *Sources) DeleteSourceSquare(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceSquareResponse{ + res := &operations.DeleteSourcePrestashopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40798,11 +41104,11 @@ func (s *Sources) DeleteSourceSquare(ctx context.Context, request operations.Del } -// DeleteSourceStrava - Delete a Source -func (s *Sources) DeleteSourceStrava(ctx context.Context, request operations.DeleteSourceStravaRequest, opts ...operations.Option) (*operations.DeleteSourceStravaResponse, 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: "deleteSourceStrava", + OperationID: "deleteSourcePypi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40875,7 +41181,7 @@ func (s *Sources) DeleteSourceStrava(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceStravaResponse{ + res := &operations.DeleteSourcePypiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40902,11 +41208,11 @@ func (s *Sources) DeleteSourceStrava(ctx context.Context, request operations.Del } -// DeleteSourceStripe - Delete a Source -func (s *Sources) DeleteSourceStripe(ctx context.Context, request operations.DeleteSourceStripeRequest, opts ...operations.Option) (*operations.DeleteSourceStripeResponse, 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: "deleteSourceStripe", + OperationID: "deleteSourceQualaroo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40979,7 +41285,7 @@ func (s *Sources) DeleteSourceStripe(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceStripeResponse{ + res := &operations.DeleteSourceQualarooResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41006,11 +41312,11 @@ func (s *Sources) DeleteSourceStripe(ctx context.Context, request operations.Del } -// DeleteSourceSurveySparrow - Delete a Source -func (s *Sources) DeleteSourceSurveySparrow(ctx context.Context, request operations.DeleteSourceSurveySparrowRequest, opts ...operations.Option) (*operations.DeleteSourceSurveySparrowResponse, 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: "deleteSourceSurveySparrow", + OperationID: "deleteSourceRailz", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41083,7 +41389,7 @@ func (s *Sources) DeleteSourceSurveySparrow(ctx context.Context, request operati } } - res := &operations.DeleteSourceSurveySparrowResponse{ + res := &operations.DeleteSourceRailzResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41110,11 +41416,11 @@ func (s *Sources) DeleteSourceSurveySparrow(ctx context.Context, request operati } -// DeleteSourceSurveymonkey - Delete a Source -func (s *Sources) DeleteSourceSurveymonkey(ctx context.Context, request operations.DeleteSourceSurveymonkeyRequest, opts ...operations.Option) (*operations.DeleteSourceSurveymonkeyResponse, 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: "deleteSourceSurveymonkey", + OperationID: "deleteSourceRecharge", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41187,7 +41493,7 @@ func (s *Sources) DeleteSourceSurveymonkey(ctx context.Context, request operatio } } - res := &operations.DeleteSourceSurveymonkeyResponse{ + res := &operations.DeleteSourceRechargeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41214,11 +41520,11 @@ func (s *Sources) DeleteSourceSurveymonkey(ctx context.Context, request operatio } -// DeleteSourceTempo - Delete a Source -func (s *Sources) DeleteSourceTempo(ctx context.Context, request operations.DeleteSourceTempoRequest, opts ...operations.Option) (*operations.DeleteSourceTempoResponse, 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: "deleteSourceTempo", + OperationID: "deleteSourceRecreation", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41291,7 +41597,7 @@ func (s *Sources) DeleteSourceTempo(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceTempoResponse{ + res := &operations.DeleteSourceRecreationResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41318,11 +41624,11 @@ func (s *Sources) DeleteSourceTempo(ctx context.Context, request operations.Dele } -// DeleteSourceTheGuardianAPI - Delete a Source -func (s *Sources) DeleteSourceTheGuardianAPI(ctx context.Context, request operations.DeleteSourceTheGuardianAPIRequest, opts ...operations.Option) (*operations.DeleteSourceTheGuardianAPIResponse, 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: "deleteSourceTheGuardianApi", + OperationID: "deleteSourceRecruitee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41395,7 +41701,7 @@ func (s *Sources) DeleteSourceTheGuardianAPI(ctx context.Context, request operat } } - res := &operations.DeleteSourceTheGuardianAPIResponse{ + res := &operations.DeleteSourceRecruiteeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41422,11 +41728,11 @@ func (s *Sources) DeleteSourceTheGuardianAPI(ctx context.Context, request operat } -// DeleteSourceTiktokMarketing - Delete a Source -func (s *Sources) DeleteSourceTiktokMarketing(ctx context.Context, request operations.DeleteSourceTiktokMarketingRequest, opts ...operations.Option) (*operations.DeleteSourceTiktokMarketingResponse, 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: "deleteSourceTiktokMarketing", + OperationID: "deleteSourceRecurly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41499,7 +41805,7 @@ func (s *Sources) DeleteSourceTiktokMarketing(ctx context.Context, request opera } } - res := &operations.DeleteSourceTiktokMarketingResponse{ + res := &operations.DeleteSourceRecurlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41526,11 +41832,11 @@ func (s *Sources) DeleteSourceTiktokMarketing(ctx context.Context, request opera } -// DeleteSourceTrello - Delete a Source -func (s *Sources) DeleteSourceTrello(ctx context.Context, request operations.DeleteSourceTrelloRequest, opts ...operations.Option) (*operations.DeleteSourceTrelloResponse, error) { +// DeleteSourceReddit - Delete a Source +func (s *Sources) DeleteSourceReddit(ctx context.Context, request operations.DeleteSourceRedditRequest, opts ...operations.Option) (*operations.DeleteSourceRedditResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceTrello", + OperationID: "deleteSourceReddit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41603,7 +41909,7 @@ func (s *Sources) DeleteSourceTrello(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceTrelloResponse{ + res := &operations.DeleteSourceRedditResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41630,11 +41936,11 @@ func (s *Sources) DeleteSourceTrello(ctx context.Context, request operations.Del } -// DeleteSourceTrustpilot - Delete a Source -func (s *Sources) DeleteSourceTrustpilot(ctx context.Context, request operations.DeleteSourceTrustpilotRequest, opts ...operations.Option) (*operations.DeleteSourceTrustpilotResponse, 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: "deleteSourceTrustpilot", + OperationID: "deleteSourceRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41707,7 +42013,7 @@ func (s *Sources) DeleteSourceTrustpilot(ctx context.Context, request operations } } - res := &operations.DeleteSourceTrustpilotResponse{ + res := &operations.DeleteSourceRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41734,11 +42040,11 @@ func (s *Sources) DeleteSourceTrustpilot(ctx context.Context, request operations } -// DeleteSourceTvmazeSchedule - Delete a Source -func (s *Sources) DeleteSourceTvmazeSchedule(ctx context.Context, request operations.DeleteSourceTvmazeScheduleRequest, opts ...operations.Option) (*operations.DeleteSourceTvmazeScheduleResponse, 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: "deleteSourceTvmazeSchedule", + OperationID: "deleteSourceRetently", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41811,7 +42117,7 @@ func (s *Sources) DeleteSourceTvmazeSchedule(ctx context.Context, request operat } } - res := &operations.DeleteSourceTvmazeScheduleResponse{ + res := &operations.DeleteSourceRetentlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41838,11 +42144,11 @@ func (s *Sources) DeleteSourceTvmazeSchedule(ctx context.Context, request operat } -// DeleteSourceTwilio - Delete a Source -func (s *Sources) DeleteSourceTwilio(ctx context.Context, request operations.DeleteSourceTwilioRequest, opts ...operations.Option) (*operations.DeleteSourceTwilioResponse, 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: "deleteSourceTwilio", + OperationID: "deleteSourceRkiCovid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41915,7 +42221,7 @@ func (s *Sources) DeleteSourceTwilio(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceTwilioResponse{ + res := &operations.DeleteSourceRkiCovidResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41942,11 +42248,11 @@ func (s *Sources) DeleteSourceTwilio(ctx context.Context, request operations.Del } -// DeleteSourceTwilioTaskrouter - Delete a Source -func (s *Sources) DeleteSourceTwilioTaskrouter(ctx context.Context, request operations.DeleteSourceTwilioTaskrouterRequest, opts ...operations.Option) (*operations.DeleteSourceTwilioTaskrouterResponse, 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: "deleteSourceTwilioTaskrouter", + OperationID: "deleteSourceRss", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42019,7 +42325,7 @@ func (s *Sources) DeleteSourceTwilioTaskrouter(ctx context.Context, request oper } } - res := &operations.DeleteSourceTwilioTaskrouterResponse{ + res := &operations.DeleteSourceRssResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42046,11 +42352,11 @@ func (s *Sources) DeleteSourceTwilioTaskrouter(ctx context.Context, request oper } -// DeleteSourceTwitter - Delete a Source -func (s *Sources) DeleteSourceTwitter(ctx context.Context, request operations.DeleteSourceTwitterRequest, opts ...operations.Option) (*operations.DeleteSourceTwitterResponse, 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: "deleteSourceTwitter", + OperationID: "deleteSourceS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42123,7 +42429,7 @@ func (s *Sources) DeleteSourceTwitter(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceTwitterResponse{ + res := &operations.DeleteSourceS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42150,11 +42456,11 @@ func (s *Sources) DeleteSourceTwitter(ctx context.Context, request operations.De } -// DeleteSourceTypeform - Delete a Source -func (s *Sources) DeleteSourceTypeform(ctx context.Context, request operations.DeleteSourceTypeformRequest, opts ...operations.Option) (*operations.DeleteSourceTypeformResponse, 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: "deleteSourceTypeform", + OperationID: "deleteSourceSalesforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42227,7 +42533,7 @@ func (s *Sources) DeleteSourceTypeform(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceTypeformResponse{ + res := &operations.DeleteSourceSalesforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42254,11 +42560,11 @@ func (s *Sources) DeleteSourceTypeform(ctx context.Context, request operations.D } -// DeleteSourceUsCensus - Delete a Source -func (s *Sources) DeleteSourceUsCensus(ctx context.Context, request operations.DeleteSourceUsCensusRequest, opts ...operations.Option) (*operations.DeleteSourceUsCensusResponse, 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: "deleteSourceUsCensus", + OperationID: "deleteSourceSalesloft", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42331,7 +42637,7 @@ func (s *Sources) DeleteSourceUsCensus(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceUsCensusResponse{ + res := &operations.DeleteSourceSalesloftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42358,11 +42664,11 @@ func (s *Sources) DeleteSourceUsCensus(ctx context.Context, request operations.D } -// DeleteSourceVantage - Delete a Source -func (s *Sources) DeleteSourceVantage(ctx context.Context, request operations.DeleteSourceVantageRequest, opts ...operations.Option) (*operations.DeleteSourceVantageResponse, 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: "deleteSourceVantage", + OperationID: "deleteSourceSapFieldglass", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42435,7 +42741,7 @@ func (s *Sources) DeleteSourceVantage(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceVantageResponse{ + res := &operations.DeleteSourceSapFieldglassResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42462,11 +42768,11 @@ func (s *Sources) DeleteSourceVantage(ctx context.Context, request operations.De } -// DeleteSourceWebflow - Delete a Source -func (s *Sources) DeleteSourceWebflow(ctx context.Context, request operations.DeleteSourceWebflowRequest, opts ...operations.Option) (*operations.DeleteSourceWebflowResponse, error) { +// DeleteSourceSavvycal - Delete a Source +func (s *Sources) DeleteSourceSavvycal(ctx context.Context, request operations.DeleteSourceSavvycalRequest, opts ...operations.Option) (*operations.DeleteSourceSavvycalResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceWebflow", + OperationID: "deleteSourceSavvycal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42539,7 +42845,7 @@ func (s *Sources) DeleteSourceWebflow(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceWebflowResponse{ + res := &operations.DeleteSourceSavvycalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42566,11 +42872,11 @@ func (s *Sources) DeleteSourceWebflow(ctx context.Context, request operations.De } -// DeleteSourceWhiskyHunter - Delete a Source -func (s *Sources) DeleteSourceWhiskyHunter(ctx context.Context, request operations.DeleteSourceWhiskyHunterRequest, opts ...operations.Option) (*operations.DeleteSourceWhiskyHunterResponse, error) { +// DeleteSourceScryfall - Delete a Source +func (s *Sources) DeleteSourceScryfall(ctx context.Context, request operations.DeleteSourceScryfallRequest, opts ...operations.Option) (*operations.DeleteSourceScryfallResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceWhiskyHunter", + OperationID: "deleteSourceScryfall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42643,7 +42949,7 @@ func (s *Sources) DeleteSourceWhiskyHunter(ctx context.Context, request operatio } } - res := &operations.DeleteSourceWhiskyHunterResponse{ + res := &operations.DeleteSourceScryfallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42670,11 +42976,11 @@ func (s *Sources) DeleteSourceWhiskyHunter(ctx context.Context, request operatio } -// DeleteSourceWikipediaPageviews - Delete a Source -func (s *Sources) DeleteSourceWikipediaPageviews(ctx context.Context, request operations.DeleteSourceWikipediaPageviewsRequest, opts ...operations.Option) (*operations.DeleteSourceWikipediaPageviewsResponse, 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: "deleteSourceWikipediaPageviews", + OperationID: "deleteSourceSecoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42747,7 +43053,7 @@ func (s *Sources) DeleteSourceWikipediaPageviews(ctx context.Context, request op } } - res := &operations.DeleteSourceWikipediaPageviewsResponse{ + res := &operations.DeleteSourceSecodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42774,11 +43080,11 @@ func (s *Sources) DeleteSourceWikipediaPageviews(ctx context.Context, request op } -// DeleteSourceWoocommerce - Delete a Source -func (s *Sources) DeleteSourceWoocommerce(ctx context.Context, request operations.DeleteSourceWoocommerceRequest, opts ...operations.Option) (*operations.DeleteSourceWoocommerceResponse, 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: "deleteSourceWoocommerce", + OperationID: "deleteSourceSendgrid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42851,7 +43157,7 @@ func (s *Sources) DeleteSourceWoocommerce(ctx context.Context, request operation } } - res := &operations.DeleteSourceWoocommerceResponse{ + res := &operations.DeleteSourceSendgridResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42878,11 +43184,11 @@ func (s *Sources) DeleteSourceWoocommerce(ctx context.Context, request operation } -// DeleteSourceXkcd - Delete a Source -func (s *Sources) DeleteSourceXkcd(ctx context.Context, request operations.DeleteSourceXkcdRequest, opts ...operations.Option) (*operations.DeleteSourceXkcdResponse, error) { +// 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: "deleteSourceXkcd", + OperationID: "deleteSourceSendinblue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42955,7 +43261,7 @@ func (s *Sources) DeleteSourceXkcd(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceXkcdResponse{ + res := &operations.DeleteSourceSendinblueResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42982,11 +43288,11 @@ func (s *Sources) DeleteSourceXkcd(ctx context.Context, request operations.Delet } -// DeleteSourceYandexMetrica - Delete a Source -func (s *Sources) DeleteSourceYandexMetrica(ctx context.Context, request operations.DeleteSourceYandexMetricaRequest, opts ...operations.Option) (*operations.DeleteSourceYandexMetricaResponse, error) { +// DeleteSourceSenseforce - Delete a Source +func (s *Sources) DeleteSourceSenseforce(ctx context.Context, request operations.DeleteSourceSenseforceRequest, opts ...operations.Option) (*operations.DeleteSourceSenseforceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceYandexMetrica", + OperationID: "deleteSourceSenseforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43059,7 +43365,7 @@ func (s *Sources) DeleteSourceYandexMetrica(ctx context.Context, request operati } } - res := &operations.DeleteSourceYandexMetricaResponse{ + res := &operations.DeleteSourceSenseforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43086,11 +43392,11 @@ func (s *Sources) DeleteSourceYandexMetrica(ctx context.Context, request operati } -// DeleteSourceYotpo - Delete a Source -func (s *Sources) DeleteSourceYotpo(ctx context.Context, request operations.DeleteSourceYotpoRequest, opts ...operations.Option) (*operations.DeleteSourceYotpoResponse, error) { +// DeleteSourceSentry - Delete a Source +func (s *Sources) DeleteSourceSentry(ctx context.Context, request operations.DeleteSourceSentryRequest, opts ...operations.Option) (*operations.DeleteSourceSentryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceYotpo", + OperationID: "deleteSourceSentry", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43163,7 +43469,7 @@ func (s *Sources) DeleteSourceYotpo(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceYotpoResponse{ + res := &operations.DeleteSourceSentryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43190,11 +43496,11 @@ func (s *Sources) DeleteSourceYotpo(ctx context.Context, request operations.Dele } -// DeleteSourceYoutubeAnalytics - Delete a Source -func (s *Sources) DeleteSourceYoutubeAnalytics(ctx context.Context, request operations.DeleteSourceYoutubeAnalyticsRequest, opts ...operations.Option) (*operations.DeleteSourceYoutubeAnalyticsResponse, error) { +// DeleteSourceSftp - Delete a Source +func (s *Sources) DeleteSourceSftp(ctx context.Context, request operations.DeleteSourceSftpRequest, opts ...operations.Option) (*operations.DeleteSourceSftpResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceYoutubeAnalytics", + OperationID: "deleteSourceSftp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43267,7 +43573,7 @@ func (s *Sources) DeleteSourceYoutubeAnalytics(ctx context.Context, request oper } } - res := &operations.DeleteSourceYoutubeAnalyticsResponse{ + res := &operations.DeleteSourceSftpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43294,11 +43600,11 @@ func (s *Sources) DeleteSourceYoutubeAnalytics(ctx context.Context, request oper } -// DeleteSourceZendeskChat - Delete a Source -func (s *Sources) DeleteSourceZendeskChat(ctx context.Context, request operations.DeleteSourceZendeskChatRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskChatResponse, error) { +// DeleteSourceSftpBulk - Delete a Source +func (s *Sources) DeleteSourceSftpBulk(ctx context.Context, request operations.DeleteSourceSftpBulkRequest, opts ...operations.Option) (*operations.DeleteSourceSftpBulkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceZendeskChat", + OperationID: "deleteSourceSftpBulk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43371,7 +43677,7 @@ func (s *Sources) DeleteSourceZendeskChat(ctx context.Context, request operation } } - res := &operations.DeleteSourceZendeskChatResponse{ + res := &operations.DeleteSourceSftpBulkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43398,11 +43704,11 @@ func (s *Sources) DeleteSourceZendeskChat(ctx context.Context, request operation } -// DeleteSourceZendeskSell - Delete a Source -func (s *Sources) DeleteSourceZendeskSell(ctx context.Context, request operations.DeleteSourceZendeskSellRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskSellResponse, error) { +// DeleteSourceShopify - Delete a Source +func (s *Sources) DeleteSourceShopify(ctx context.Context, request operations.DeleteSourceShopifyRequest, opts ...operations.Option) (*operations.DeleteSourceShopifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceZendeskSell", + OperationID: "deleteSourceShopify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43475,7 +43781,7 @@ func (s *Sources) DeleteSourceZendeskSell(ctx context.Context, request operation } } - res := &operations.DeleteSourceZendeskSellResponse{ + res := &operations.DeleteSourceShopifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43502,11 +43808,11 @@ func (s *Sources) DeleteSourceZendeskSell(ctx context.Context, request operation } -// DeleteSourceZendeskSunshine - Delete a Source -func (s *Sources) DeleteSourceZendeskSunshine(ctx context.Context, request operations.DeleteSourceZendeskSunshineRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskSunshineResponse, error) { +// DeleteSourceShortio - Delete a Source +func (s *Sources) DeleteSourceShortio(ctx context.Context, request operations.DeleteSourceShortioRequest, opts ...operations.Option) (*operations.DeleteSourceShortioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceZendeskSunshine", + OperationID: "deleteSourceShortio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43579,7 +43885,7 @@ func (s *Sources) DeleteSourceZendeskSunshine(ctx context.Context, request opera } } - res := &operations.DeleteSourceZendeskSunshineResponse{ + res := &operations.DeleteSourceShortioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43606,11 +43912,11 @@ func (s *Sources) DeleteSourceZendeskSunshine(ctx context.Context, request opera } -// DeleteSourceZendeskSupport - Delete a Source -func (s *Sources) DeleteSourceZendeskSupport(ctx context.Context, request operations.DeleteSourceZendeskSupportRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskSupportResponse, error) { +// DeleteSourceSlack - Delete a Source +func (s *Sources) DeleteSourceSlack(ctx context.Context, request operations.DeleteSourceSlackRequest, opts ...operations.Option) (*operations.DeleteSourceSlackResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceZendeskSupport", + OperationID: "deleteSourceSlack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43683,7 +43989,7 @@ func (s *Sources) DeleteSourceZendeskSupport(ctx context.Context, request operat } } - res := &operations.DeleteSourceZendeskSupportResponse{ + res := &operations.DeleteSourceSlackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43710,11 +44016,11 @@ func (s *Sources) DeleteSourceZendeskSupport(ctx context.Context, request operat } -// DeleteSourceZendeskTalk - Delete a Source -func (s *Sources) DeleteSourceZendeskTalk(ctx context.Context, request operations.DeleteSourceZendeskTalkRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskTalkResponse, error) { +// DeleteSourceSmaily - Delete a Source +func (s *Sources) DeleteSourceSmaily(ctx context.Context, request operations.DeleteSourceSmailyRequest, opts ...operations.Option) (*operations.DeleteSourceSmailyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceZendeskTalk", + OperationID: "deleteSourceSmaily", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43787,7 +44093,7 @@ func (s *Sources) DeleteSourceZendeskTalk(ctx context.Context, request operation } } - res := &operations.DeleteSourceZendeskTalkResponse{ + res := &operations.DeleteSourceSmailyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43814,11 +44120,11 @@ func (s *Sources) DeleteSourceZendeskTalk(ctx context.Context, request operation } -// DeleteSourceZenloop - Delete a Source -func (s *Sources) DeleteSourceZenloop(ctx context.Context, request operations.DeleteSourceZenloopRequest, opts ...operations.Option) (*operations.DeleteSourceZenloopResponse, error) { +// DeleteSourceSmartengage - Delete a Source +func (s *Sources) DeleteSourceSmartengage(ctx context.Context, request operations.DeleteSourceSmartengageRequest, opts ...operations.Option) (*operations.DeleteSourceSmartengageResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceZenloop", + OperationID: "deleteSourceSmartengage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43891,7 +44197,7 @@ func (s *Sources) DeleteSourceZenloop(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceZenloopResponse{ + res := &operations.DeleteSourceSmartengageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43918,11 +44224,11 @@ func (s *Sources) DeleteSourceZenloop(ctx context.Context, request operations.De } -// DeleteSourceZohoCrm - Delete a Source -func (s *Sources) DeleteSourceZohoCrm(ctx context.Context, request operations.DeleteSourceZohoCrmRequest, opts ...operations.Option) (*operations.DeleteSourceZohoCrmResponse, error) { +// DeleteSourceSmartsheets - Delete a Source +func (s *Sources) DeleteSourceSmartsheets(ctx context.Context, request operations.DeleteSourceSmartsheetsRequest, opts ...operations.Option) (*operations.DeleteSourceSmartsheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceZohoCrm", + OperationID: "deleteSourceSmartsheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43995,7 +44301,7 @@ func (s *Sources) DeleteSourceZohoCrm(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceZohoCrmResponse{ + res := &operations.DeleteSourceSmartsheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44022,11 +44328,11 @@ func (s *Sources) DeleteSourceZohoCrm(ctx context.Context, request operations.De } -// DeleteSourceZoom - Delete a Source -func (s *Sources) DeleteSourceZoom(ctx context.Context, request operations.DeleteSourceZoomRequest, opts ...operations.Option) (*operations.DeleteSourceZoomResponse, error) { +// DeleteSourceSnapchatMarketing - Delete a Source +func (s *Sources) DeleteSourceSnapchatMarketing(ctx context.Context, request operations.DeleteSourceSnapchatMarketingRequest, opts ...operations.Option) (*operations.DeleteSourceSnapchatMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceZoom", + OperationID: "deleteSourceSnapchatMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44099,7 +44405,7 @@ func (s *Sources) DeleteSourceZoom(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceZoomResponse{ + res := &operations.DeleteSourceSnapchatMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44126,11 +44432,11 @@ func (s *Sources) DeleteSourceZoom(ctx context.Context, request operations.Delet } -// GetSource - Get Source details -func (s *Sources) GetSource(ctx context.Context, request operations.GetSourceRequest, opts ...operations.Option) (*operations.GetSourceResponse, error) { +// DeleteSourceSnowflake - Delete a Source +func (s *Sources) DeleteSourceSnowflake(ctx context.Context, request operations.DeleteSourceSnowflakeRequest, opts ...operations.Option) (*operations.DeleteSourceSnowflakeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSource", + OperationID: "deleteSourceSnowflake", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44163,11 +44469,11 @@ func (s *Sources) GetSource(ctx context.Context, request operations.GetSourceReq defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44203,7 +44509,7 @@ func (s *Sources) GetSource(ctx context.Context, request operations.GetSourceReq } } - res := &operations.GetSourceResponse{ + res := &operations.DeleteSourceSnowflakeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44217,18 +44523,8 @@ func (s *Sources) GetSource(ctx context.Context, request operations.GetSourceReq 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -44240,11 +44536,11 @@ func (s *Sources) GetSource(ctx context.Context, request operations.GetSourceReq } -// GetSourceAha - Get Source details -func (s *Sources) GetSourceAha(ctx context.Context, request operations.GetSourceAhaRequest, opts ...operations.Option) (*operations.GetSourceAhaResponse, error) { +// DeleteSourceSonarCloud - Delete a Source +func (s *Sources) DeleteSourceSonarCloud(ctx context.Context, request operations.DeleteSourceSonarCloudRequest, opts ...operations.Option) (*operations.DeleteSourceSonarCloudResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAha", + OperationID: "deleteSourceSonarCloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44277,11 +44573,11 @@ func (s *Sources) GetSourceAha(ctx context.Context, request operations.GetSource defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44317,7 +44613,7 @@ func (s *Sources) GetSourceAha(ctx context.Context, request operations.GetSource } } - res := &operations.GetSourceAhaResponse{ + res := &operations.DeleteSourceSonarCloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44331,18 +44627,8 @@ func (s *Sources) GetSourceAha(ctx context.Context, request operations.GetSource 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -44354,11 +44640,11 @@ func (s *Sources) GetSourceAha(ctx context.Context, request operations.GetSource } -// GetSourceAircall - Get Source details -func (s *Sources) GetSourceAircall(ctx context.Context, request operations.GetSourceAircallRequest, opts ...operations.Option) (*operations.GetSourceAircallResponse, error) { +// DeleteSourceSpacexAPI - Delete a Source +func (s *Sources) DeleteSourceSpacexAPI(ctx context.Context, request operations.DeleteSourceSpacexAPIRequest, opts ...operations.Option) (*operations.DeleteSourceSpacexAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAircall", + OperationID: "deleteSourceSpacexApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44391,11 +44677,11 @@ func (s *Sources) GetSourceAircall(ctx context.Context, request operations.GetSo defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44431,7 +44717,7 @@ func (s *Sources) GetSourceAircall(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceAircallResponse{ + res := &operations.DeleteSourceSpacexAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44445,18 +44731,8 @@ func (s *Sources) GetSourceAircall(ctx context.Context, request operations.GetSo 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -44468,11 +44744,11 @@ func (s *Sources) GetSourceAircall(ctx context.Context, request operations.GetSo } -// GetSourceAirtable - Get Source details -func (s *Sources) GetSourceAirtable(ctx context.Context, request operations.GetSourceAirtableRequest, opts ...operations.Option) (*operations.GetSourceAirtableResponse, error) { +// DeleteSourceSquare - Delete a Source +func (s *Sources) DeleteSourceSquare(ctx context.Context, request operations.DeleteSourceSquareRequest, opts ...operations.Option) (*operations.DeleteSourceSquareResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAirtable", + OperationID: "deleteSourceSquare", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44505,11 +44781,11 @@ func (s *Sources) GetSourceAirtable(ctx context.Context, request operations.GetS defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44545,7 +44821,7 @@ func (s *Sources) GetSourceAirtable(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceAirtableResponse{ + res := &operations.DeleteSourceSquareResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44559,18 +44835,8 @@ func (s *Sources) GetSourceAirtable(ctx context.Context, request operations.GetS 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -44582,11 +44848,11 @@ func (s *Sources) GetSourceAirtable(ctx context.Context, request operations.GetS } -// GetSourceAmazonAds - Get Source details -func (s *Sources) GetSourceAmazonAds(ctx context.Context, request operations.GetSourceAmazonAdsRequest, opts ...operations.Option) (*operations.GetSourceAmazonAdsResponse, error) { +// DeleteSourceStrava - Delete a Source +func (s *Sources) DeleteSourceStrava(ctx context.Context, request operations.DeleteSourceStravaRequest, opts ...operations.Option) (*operations.DeleteSourceStravaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAmazonAds", + OperationID: "deleteSourceStrava", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44619,11 +44885,11 @@ func (s *Sources) GetSourceAmazonAds(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44659,7 +44925,7 @@ func (s *Sources) GetSourceAmazonAds(ctx context.Context, request operations.Get } } - res := &operations.GetSourceAmazonAdsResponse{ + res := &operations.DeleteSourceStravaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44673,18 +44939,8 @@ func (s *Sources) GetSourceAmazonAds(ctx context.Context, request operations.Get 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -44696,11 +44952,11 @@ func (s *Sources) GetSourceAmazonAds(ctx context.Context, request operations.Get } -// GetSourceAmazonSellerPartner - Get Source details -func (s *Sources) GetSourceAmazonSellerPartner(ctx context.Context, request operations.GetSourceAmazonSellerPartnerRequest, opts ...operations.Option) (*operations.GetSourceAmazonSellerPartnerResponse, error) { +// DeleteSourceStripe - Delete a Source +func (s *Sources) DeleteSourceStripe(ctx context.Context, request operations.DeleteSourceStripeRequest, opts ...operations.Option) (*operations.DeleteSourceStripeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAmazonSellerPartner", + OperationID: "deleteSourceStripe", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44733,11 +44989,11 @@ func (s *Sources) GetSourceAmazonSellerPartner(ctx context.Context, request oper defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44773,7 +45029,7 @@ func (s *Sources) GetSourceAmazonSellerPartner(ctx context.Context, request oper } } - res := &operations.GetSourceAmazonSellerPartnerResponse{ + res := &operations.DeleteSourceStripeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44787,18 +45043,8 @@ func (s *Sources) GetSourceAmazonSellerPartner(ctx context.Context, request oper 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -44810,11 +45056,11 @@ func (s *Sources) GetSourceAmazonSellerPartner(ctx context.Context, request oper } -// GetSourceAmazonSqs - Get Source details -func (s *Sources) GetSourceAmazonSqs(ctx context.Context, request operations.GetSourceAmazonSqsRequest, opts ...operations.Option) (*operations.GetSourceAmazonSqsResponse, error) { +// DeleteSourceSurveySparrow - Delete a Source +func (s *Sources) DeleteSourceSurveySparrow(ctx context.Context, request operations.DeleteSourceSurveySparrowRequest, opts ...operations.Option) (*operations.DeleteSourceSurveySparrowResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAmazonSqs", + OperationID: "deleteSourceSurveySparrow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44847,11 +45093,11 @@ func (s *Sources) GetSourceAmazonSqs(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44887,7 +45133,7 @@ func (s *Sources) GetSourceAmazonSqs(ctx context.Context, request operations.Get } } - res := &operations.GetSourceAmazonSqsResponse{ + res := &operations.DeleteSourceSurveySparrowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44901,18 +45147,8 @@ func (s *Sources) GetSourceAmazonSqs(ctx context.Context, request operations.Get 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -44924,11 +45160,11 @@ func (s *Sources) GetSourceAmazonSqs(ctx context.Context, request operations.Get } -// GetSourceAmplitude - Get Source details -func (s *Sources) GetSourceAmplitude(ctx context.Context, request operations.GetSourceAmplitudeRequest, opts ...operations.Option) (*operations.GetSourceAmplitudeResponse, error) { +// DeleteSourceSurveymonkey - Delete a Source +func (s *Sources) DeleteSourceSurveymonkey(ctx context.Context, request operations.DeleteSourceSurveymonkeyRequest, opts ...operations.Option) (*operations.DeleteSourceSurveymonkeyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAmplitude", + OperationID: "deleteSourceSurveymonkey", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44961,11 +45197,11 @@ func (s *Sources) GetSourceAmplitude(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45001,7 +45237,7 @@ func (s *Sources) GetSourceAmplitude(ctx context.Context, request operations.Get } } - res := &operations.GetSourceAmplitudeResponse{ + res := &operations.DeleteSourceSurveymonkeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45015,18 +45251,8 @@ func (s *Sources) GetSourceAmplitude(ctx context.Context, request operations.Get 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -45038,11 +45264,11 @@ func (s *Sources) GetSourceAmplitude(ctx context.Context, request operations.Get } -// GetSourceApifyDataset - Get Source details -func (s *Sources) GetSourceApifyDataset(ctx context.Context, request operations.GetSourceApifyDatasetRequest, opts ...operations.Option) (*operations.GetSourceApifyDatasetResponse, error) { +// DeleteSourceTempo - Delete a Source +func (s *Sources) DeleteSourceTempo(ctx context.Context, request operations.DeleteSourceTempoRequest, opts ...operations.Option) (*operations.DeleteSourceTempoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceApifyDataset", + OperationID: "deleteSourceTempo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45075,11 +45301,11 @@ func (s *Sources) GetSourceApifyDataset(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45115,7 +45341,7 @@ func (s *Sources) GetSourceApifyDataset(ctx context.Context, request operations. } } - res := &operations.GetSourceApifyDatasetResponse{ + res := &operations.DeleteSourceTempoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45129,18 +45355,8 @@ func (s *Sources) GetSourceApifyDataset(ctx context.Context, request operations. 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -45152,11 +45368,11 @@ func (s *Sources) GetSourceApifyDataset(ctx context.Context, request operations. } -// GetSourceAppfollow - Get Source details -func (s *Sources) GetSourceAppfollow(ctx context.Context, request operations.GetSourceAppfollowRequest, opts ...operations.Option) (*operations.GetSourceAppfollowResponse, error) { +// DeleteSourceTheGuardianAPI - Delete a Source +func (s *Sources) DeleteSourceTheGuardianAPI(ctx context.Context, request operations.DeleteSourceTheGuardianAPIRequest, opts ...operations.Option) (*operations.DeleteSourceTheGuardianAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAppfollow", + OperationID: "deleteSourceTheGuardianApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45189,11 +45405,11 @@ func (s *Sources) GetSourceAppfollow(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45229,7 +45445,7 @@ func (s *Sources) GetSourceAppfollow(ctx context.Context, request operations.Get } } - res := &operations.GetSourceAppfollowResponse{ + res := &operations.DeleteSourceTheGuardianAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45243,18 +45459,8 @@ func (s *Sources) GetSourceAppfollow(ctx context.Context, request operations.Get 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -45266,11 +45472,11 @@ func (s *Sources) GetSourceAppfollow(ctx context.Context, request operations.Get } -// GetSourceAsana - Get Source details -func (s *Sources) GetSourceAsana(ctx context.Context, request operations.GetSourceAsanaRequest, opts ...operations.Option) (*operations.GetSourceAsanaResponse, error) { +// DeleteSourceTiktokMarketing - Delete a Source +func (s *Sources) DeleteSourceTiktokMarketing(ctx context.Context, request operations.DeleteSourceTiktokMarketingRequest, opts ...operations.Option) (*operations.DeleteSourceTiktokMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAsana", + OperationID: "deleteSourceTiktokMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45303,11 +45509,11 @@ func (s *Sources) GetSourceAsana(ctx context.Context, request operations.GetSour defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45343,7 +45549,7 @@ func (s *Sources) GetSourceAsana(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceAsanaResponse{ + res := &operations.DeleteSourceTiktokMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45357,18 +45563,8 @@ func (s *Sources) GetSourceAsana(ctx context.Context, request operations.GetSour 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -45380,11 +45576,11 @@ func (s *Sources) GetSourceAsana(ctx context.Context, request operations.GetSour } -// GetSourceAuth0 - Get Source details -func (s *Sources) GetSourceAuth0(ctx context.Context, request operations.GetSourceAuth0Request, opts ...operations.Option) (*operations.GetSourceAuth0Response, error) { +// DeleteSourceTrello - Delete a Source +func (s *Sources) DeleteSourceTrello(ctx context.Context, request operations.DeleteSourceTrelloRequest, opts ...operations.Option) (*operations.DeleteSourceTrelloResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAuth0", + OperationID: "deleteSourceTrello", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45417,11 +45613,11 @@ func (s *Sources) GetSourceAuth0(ctx context.Context, request operations.GetSour defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45457,7 +45653,7 @@ func (s *Sources) GetSourceAuth0(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceAuth0Response{ + res := &operations.DeleteSourceTrelloResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45471,18 +45667,8 @@ func (s *Sources) GetSourceAuth0(ctx context.Context, request operations.GetSour 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -45494,11 +45680,11 @@ func (s *Sources) GetSourceAuth0(ctx context.Context, request operations.GetSour } -// GetSourceAwsCloudtrail - Get Source details -func (s *Sources) GetSourceAwsCloudtrail(ctx context.Context, request operations.GetSourceAwsCloudtrailRequest, opts ...operations.Option) (*operations.GetSourceAwsCloudtrailResponse, error) { +// DeleteSourceTrustpilot - Delete a Source +func (s *Sources) DeleteSourceTrustpilot(ctx context.Context, request operations.DeleteSourceTrustpilotRequest, opts ...operations.Option) (*operations.DeleteSourceTrustpilotResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAwsCloudtrail", + OperationID: "deleteSourceTrustpilot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45531,11 +45717,11 @@ func (s *Sources) GetSourceAwsCloudtrail(ctx context.Context, request operations defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45571,7 +45757,7 @@ func (s *Sources) GetSourceAwsCloudtrail(ctx context.Context, request operations } } - res := &operations.GetSourceAwsCloudtrailResponse{ + res := &operations.DeleteSourceTrustpilotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45585,18 +45771,8 @@ func (s *Sources) GetSourceAwsCloudtrail(ctx context.Context, request operations 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -45608,11 +45784,11 @@ func (s *Sources) GetSourceAwsCloudtrail(ctx context.Context, request operations } -// GetSourceAzureBlobStorage - Get Source details -func (s *Sources) GetSourceAzureBlobStorage(ctx context.Context, request operations.GetSourceAzureBlobStorageRequest, opts ...operations.Option) (*operations.GetSourceAzureBlobStorageResponse, error) { +// DeleteSourceTvmazeSchedule - Delete a Source +func (s *Sources) DeleteSourceTvmazeSchedule(ctx context.Context, request operations.DeleteSourceTvmazeScheduleRequest, opts ...operations.Option) (*operations.DeleteSourceTvmazeScheduleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAzureBlobStorage", + OperationID: "deleteSourceTvmazeSchedule", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45645,11 +45821,11 @@ func (s *Sources) GetSourceAzureBlobStorage(ctx context.Context, request operati defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45685,7 +45861,7 @@ func (s *Sources) GetSourceAzureBlobStorage(ctx context.Context, request operati } } - res := &operations.GetSourceAzureBlobStorageResponse{ + res := &operations.DeleteSourceTvmazeScheduleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45699,18 +45875,8 @@ func (s *Sources) GetSourceAzureBlobStorage(ctx context.Context, request operati 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -45722,11 +45888,11 @@ func (s *Sources) GetSourceAzureBlobStorage(ctx context.Context, request operati } -// GetSourceAzureTable - Get Source details -func (s *Sources) GetSourceAzureTable(ctx context.Context, request operations.GetSourceAzureTableRequest, opts ...operations.Option) (*operations.GetSourceAzureTableResponse, error) { +// DeleteSourceTwilio - Delete a Source +func (s *Sources) DeleteSourceTwilio(ctx context.Context, request operations.DeleteSourceTwilioRequest, opts ...operations.Option) (*operations.DeleteSourceTwilioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAzureTable", + OperationID: "deleteSourceTwilio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45759,11 +45925,11 @@ func (s *Sources) GetSourceAzureTable(ctx context.Context, request operations.Ge defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45799,7 +45965,7 @@ func (s *Sources) GetSourceAzureTable(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceAzureTableResponse{ + res := &operations.DeleteSourceTwilioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45813,18 +45979,8 @@ func (s *Sources) GetSourceAzureTable(ctx context.Context, request operations.Ge 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -45836,11 +45992,11 @@ func (s *Sources) GetSourceAzureTable(ctx context.Context, request operations.Ge } -// GetSourceBambooHr - Get Source details -func (s *Sources) GetSourceBambooHr(ctx context.Context, request operations.GetSourceBambooHrRequest, opts ...operations.Option) (*operations.GetSourceBambooHrResponse, error) { +// DeleteSourceTwilioTaskrouter - Delete a Source +func (s *Sources) DeleteSourceTwilioTaskrouter(ctx context.Context, request operations.DeleteSourceTwilioTaskrouterRequest, opts ...operations.Option) (*operations.DeleteSourceTwilioTaskrouterResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceBambooHr", + OperationID: "deleteSourceTwilioTaskrouter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45873,11 +46029,11 @@ func (s *Sources) GetSourceBambooHr(ctx context.Context, request operations.GetS defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45913,7 +46069,7 @@ func (s *Sources) GetSourceBambooHr(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceBambooHrResponse{ + res := &operations.DeleteSourceTwilioTaskrouterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45927,18 +46083,8 @@ func (s *Sources) GetSourceBambooHr(ctx context.Context, request operations.GetS 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -45950,11 +46096,11 @@ func (s *Sources) GetSourceBambooHr(ctx context.Context, request operations.GetS } -// GetSourceBigquery - Get Source details -func (s *Sources) GetSourceBigquery(ctx context.Context, request operations.GetSourceBigqueryRequest, opts ...operations.Option) (*operations.GetSourceBigqueryResponse, error) { +// DeleteSourceTwitter - Delete a Source +func (s *Sources) DeleteSourceTwitter(ctx context.Context, request operations.DeleteSourceTwitterRequest, opts ...operations.Option) (*operations.DeleteSourceTwitterResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceBigquery", + OperationID: "deleteSourceTwitter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45987,11 +46133,11 @@ func (s *Sources) GetSourceBigquery(ctx context.Context, request operations.GetS defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46027,7 +46173,7 @@ func (s *Sources) GetSourceBigquery(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceBigqueryResponse{ + res := &operations.DeleteSourceTwitterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46041,18 +46187,8 @@ func (s *Sources) GetSourceBigquery(ctx context.Context, request operations.GetS 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -46064,11 +46200,11 @@ func (s *Sources) GetSourceBigquery(ctx context.Context, request operations.GetS } -// GetSourceBingAds - Get Source details -func (s *Sources) GetSourceBingAds(ctx context.Context, request operations.GetSourceBingAdsRequest, opts ...operations.Option) (*operations.GetSourceBingAdsResponse, error) { +// DeleteSourceTypeform - Delete a Source +func (s *Sources) DeleteSourceTypeform(ctx context.Context, request operations.DeleteSourceTypeformRequest, opts ...operations.Option) (*operations.DeleteSourceTypeformResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceBingAds", + OperationID: "deleteSourceTypeform", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46101,11 +46237,11 @@ func (s *Sources) GetSourceBingAds(ctx context.Context, request operations.GetSo defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46141,7 +46277,7 @@ func (s *Sources) GetSourceBingAds(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceBingAdsResponse{ + res := &operations.DeleteSourceTypeformResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46155,18 +46291,8 @@ func (s *Sources) GetSourceBingAds(ctx context.Context, request operations.GetSo 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -46178,11 +46304,11 @@ func (s *Sources) GetSourceBingAds(ctx context.Context, request operations.GetSo } -// GetSourceBraintree - Get Source details -func (s *Sources) GetSourceBraintree(ctx context.Context, request operations.GetSourceBraintreeRequest, opts ...operations.Option) (*operations.GetSourceBraintreeResponse, error) { +// DeleteSourceUsCensus - Delete a Source +func (s *Sources) DeleteSourceUsCensus(ctx context.Context, request operations.DeleteSourceUsCensusRequest, opts ...operations.Option) (*operations.DeleteSourceUsCensusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceBraintree", + OperationID: "deleteSourceUsCensus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46215,11 +46341,11 @@ func (s *Sources) GetSourceBraintree(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46255,7 +46381,7 @@ func (s *Sources) GetSourceBraintree(ctx context.Context, request operations.Get } } - res := &operations.GetSourceBraintreeResponse{ + res := &operations.DeleteSourceUsCensusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46269,18 +46395,8 @@ func (s *Sources) GetSourceBraintree(ctx context.Context, request operations.Get 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -46292,11 +46408,11 @@ func (s *Sources) GetSourceBraintree(ctx context.Context, request operations.Get } -// GetSourceBraze - Get Source details -func (s *Sources) GetSourceBraze(ctx context.Context, request operations.GetSourceBrazeRequest, opts ...operations.Option) (*operations.GetSourceBrazeResponse, error) { +// DeleteSourceVantage - Delete a Source +func (s *Sources) DeleteSourceVantage(ctx context.Context, request operations.DeleteSourceVantageRequest, opts ...operations.Option) (*operations.DeleteSourceVantageResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceBraze", + OperationID: "deleteSourceVantage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46329,11 +46445,11 @@ func (s *Sources) GetSourceBraze(ctx context.Context, request operations.GetSour defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46369,7 +46485,7 @@ func (s *Sources) GetSourceBraze(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceBrazeResponse{ + res := &operations.DeleteSourceVantageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46383,18 +46499,8 @@ func (s *Sources) GetSourceBraze(ctx context.Context, request operations.GetSour 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -46406,11 +46512,11 @@ func (s *Sources) GetSourceBraze(ctx context.Context, request operations.GetSour } -// GetSourceCart - Get Source details -func (s *Sources) GetSourceCart(ctx context.Context, request operations.GetSourceCartRequest, opts ...operations.Option) (*operations.GetSourceCartResponse, error) { +// DeleteSourceWebflow - Delete a Source +func (s *Sources) DeleteSourceWebflow(ctx context.Context, request operations.DeleteSourceWebflowRequest, opts ...operations.Option) (*operations.DeleteSourceWebflowResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceCart", + OperationID: "deleteSourceWebflow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46443,11 +46549,11 @@ func (s *Sources) GetSourceCart(ctx context.Context, request operations.GetSourc defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46483,7 +46589,7 @@ func (s *Sources) GetSourceCart(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceCartResponse{ + res := &operations.DeleteSourceWebflowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46497,18 +46603,8 @@ func (s *Sources) GetSourceCart(ctx context.Context, request operations.GetSourc 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -46520,11 +46616,11 @@ func (s *Sources) GetSourceCart(ctx context.Context, request operations.GetSourc } -// GetSourceChargebee - Get Source details -func (s *Sources) GetSourceChargebee(ctx context.Context, request operations.GetSourceChargebeeRequest, opts ...operations.Option) (*operations.GetSourceChargebeeResponse, error) { +// DeleteSourceWhiskyHunter - Delete a Source +func (s *Sources) DeleteSourceWhiskyHunter(ctx context.Context, request operations.DeleteSourceWhiskyHunterRequest, opts ...operations.Option) (*operations.DeleteSourceWhiskyHunterResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceChargebee", + OperationID: "deleteSourceWhiskyHunter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46557,11 +46653,11 @@ func (s *Sources) GetSourceChargebee(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46597,7 +46693,7 @@ func (s *Sources) GetSourceChargebee(ctx context.Context, request operations.Get } } - res := &operations.GetSourceChargebeeResponse{ + res := &operations.DeleteSourceWhiskyHunterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46611,18 +46707,8 @@ func (s *Sources) GetSourceChargebee(ctx context.Context, request operations.Get 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -46634,11 +46720,11 @@ func (s *Sources) GetSourceChargebee(ctx context.Context, request operations.Get } -// GetSourceChartmogul - Get Source details -func (s *Sources) GetSourceChartmogul(ctx context.Context, request operations.GetSourceChartmogulRequest, opts ...operations.Option) (*operations.GetSourceChartmogulResponse, error) { +// DeleteSourceWikipediaPageviews - Delete a Source +func (s *Sources) DeleteSourceWikipediaPageviews(ctx context.Context, request operations.DeleteSourceWikipediaPageviewsRequest, opts ...operations.Option) (*operations.DeleteSourceWikipediaPageviewsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceChartmogul", + OperationID: "deleteSourceWikipediaPageviews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46671,11 +46757,11 @@ func (s *Sources) GetSourceChartmogul(ctx context.Context, request operations.Ge defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46711,7 +46797,7 @@ func (s *Sources) GetSourceChartmogul(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceChartmogulResponse{ + res := &operations.DeleteSourceWikipediaPageviewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46725,18 +46811,8 @@ func (s *Sources) GetSourceChartmogul(ctx context.Context, request operations.Ge 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -46748,11 +46824,11 @@ func (s *Sources) GetSourceChartmogul(ctx context.Context, request operations.Ge } -// GetSourceClickhouse - Get Source details -func (s *Sources) GetSourceClickhouse(ctx context.Context, request operations.GetSourceClickhouseRequest, opts ...operations.Option) (*operations.GetSourceClickhouseResponse, error) { +// DeleteSourceWoocommerce - Delete a Source +func (s *Sources) DeleteSourceWoocommerce(ctx context.Context, request operations.DeleteSourceWoocommerceRequest, opts ...operations.Option) (*operations.DeleteSourceWoocommerceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceClickhouse", + OperationID: "deleteSourceWoocommerce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46785,11 +46861,11 @@ func (s *Sources) GetSourceClickhouse(ctx context.Context, request operations.Ge defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46825,7 +46901,7 @@ func (s *Sources) GetSourceClickhouse(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceClickhouseResponse{ + res := &operations.DeleteSourceWoocommerceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46839,18 +46915,8 @@ func (s *Sources) GetSourceClickhouse(ctx context.Context, request operations.Ge 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -46862,11 +46928,11 @@ func (s *Sources) GetSourceClickhouse(ctx context.Context, request operations.Ge } -// GetSourceClickupAPI - Get Source details -func (s *Sources) GetSourceClickupAPI(ctx context.Context, request operations.GetSourceClickupAPIRequest, opts ...operations.Option) (*operations.GetSourceClickupAPIResponse, error) { +// DeleteSourceXkcd - Delete a Source +func (s *Sources) DeleteSourceXkcd(ctx context.Context, request operations.DeleteSourceXkcdRequest, opts ...operations.Option) (*operations.DeleteSourceXkcdResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceClickupApi", + OperationID: "deleteSourceXkcd", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46899,11 +46965,11 @@ func (s *Sources) GetSourceClickupAPI(ctx context.Context, request operations.Ge defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46939,7 +47005,7 @@ func (s *Sources) GetSourceClickupAPI(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceClickupAPIResponse{ + res := &operations.DeleteSourceXkcdResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46953,18 +47019,8 @@ func (s *Sources) GetSourceClickupAPI(ctx context.Context, request operations.Ge 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -46976,11 +47032,11 @@ func (s *Sources) GetSourceClickupAPI(ctx context.Context, request operations.Ge } -// GetSourceClockify - Get Source details -func (s *Sources) GetSourceClockify(ctx context.Context, request operations.GetSourceClockifyRequest, opts ...operations.Option) (*operations.GetSourceClockifyResponse, error) { +// DeleteSourceYandexMetrica - Delete a Source +func (s *Sources) DeleteSourceYandexMetrica(ctx context.Context, request operations.DeleteSourceYandexMetricaRequest, opts ...operations.Option) (*operations.DeleteSourceYandexMetricaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceClockify", + OperationID: "deleteSourceYandexMetrica", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47013,11 +47069,11 @@ func (s *Sources) GetSourceClockify(ctx context.Context, request operations.GetS defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47053,7 +47109,7 @@ func (s *Sources) GetSourceClockify(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceClockifyResponse{ + res := &operations.DeleteSourceYandexMetricaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47067,18 +47123,8 @@ func (s *Sources) GetSourceClockify(ctx context.Context, request operations.GetS 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -47090,11 +47136,11 @@ func (s *Sources) GetSourceClockify(ctx context.Context, request operations.GetS } -// GetSourceCloseCom - Get Source details -func (s *Sources) GetSourceCloseCom(ctx context.Context, request operations.GetSourceCloseComRequest, opts ...operations.Option) (*operations.GetSourceCloseComResponse, error) { +// DeleteSourceYotpo - Delete a Source +func (s *Sources) DeleteSourceYotpo(ctx context.Context, request operations.DeleteSourceYotpoRequest, opts ...operations.Option) (*operations.DeleteSourceYotpoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceCloseCom", + OperationID: "deleteSourceYotpo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47127,11 +47173,11 @@ func (s *Sources) GetSourceCloseCom(ctx context.Context, request operations.GetS defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47167,7 +47213,7 @@ func (s *Sources) GetSourceCloseCom(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceCloseComResponse{ + res := &operations.DeleteSourceYotpoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47181,18 +47227,8 @@ func (s *Sources) GetSourceCloseCom(ctx context.Context, request operations.GetS 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -47204,11 +47240,11 @@ func (s *Sources) GetSourceCloseCom(ctx context.Context, request operations.GetS } -// GetSourceCoda - Get Source details -func (s *Sources) GetSourceCoda(ctx context.Context, request operations.GetSourceCodaRequest, opts ...operations.Option) (*operations.GetSourceCodaResponse, error) { +// DeleteSourceYoutubeAnalytics - Delete a Source +func (s *Sources) DeleteSourceYoutubeAnalytics(ctx context.Context, request operations.DeleteSourceYoutubeAnalyticsRequest, opts ...operations.Option) (*operations.DeleteSourceYoutubeAnalyticsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceCoda", + OperationID: "deleteSourceYoutubeAnalytics", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47241,11 +47277,11 @@ func (s *Sources) GetSourceCoda(ctx context.Context, request operations.GetSourc defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47281,7 +47317,7 @@ func (s *Sources) GetSourceCoda(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceCodaResponse{ + res := &operations.DeleteSourceYoutubeAnalyticsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47295,18 +47331,8 @@ func (s *Sources) GetSourceCoda(ctx context.Context, request operations.GetSourc 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -47318,11 +47344,11 @@ func (s *Sources) GetSourceCoda(ctx context.Context, request operations.GetSourc } -// GetSourceCoinAPI - Get Source details -func (s *Sources) GetSourceCoinAPI(ctx context.Context, request operations.GetSourceCoinAPIRequest, opts ...operations.Option) (*operations.GetSourceCoinAPIResponse, error) { +// DeleteSourceZendeskChat - Delete a Source +func (s *Sources) DeleteSourceZendeskChat(ctx context.Context, request operations.DeleteSourceZendeskChatRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskChatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceCoinApi", + OperationID: "deleteSourceZendeskChat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47355,11 +47381,11 @@ func (s *Sources) GetSourceCoinAPI(ctx context.Context, request operations.GetSo defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47395,7 +47421,7 @@ func (s *Sources) GetSourceCoinAPI(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceCoinAPIResponse{ + res := &operations.DeleteSourceZendeskChatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47409,18 +47435,8 @@ func (s *Sources) GetSourceCoinAPI(ctx context.Context, request operations.GetSo 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -47432,11 +47448,11 @@ func (s *Sources) GetSourceCoinAPI(ctx context.Context, request operations.GetSo } -// GetSourceCoinmarketcap - Get Source details -func (s *Sources) GetSourceCoinmarketcap(ctx context.Context, request operations.GetSourceCoinmarketcapRequest, opts ...operations.Option) (*operations.GetSourceCoinmarketcapResponse, error) { +// DeleteSourceZendeskSell - Delete a Source +func (s *Sources) DeleteSourceZendeskSell(ctx context.Context, request operations.DeleteSourceZendeskSellRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskSellResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceCoinmarketcap", + OperationID: "deleteSourceZendeskSell", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47469,11 +47485,11 @@ func (s *Sources) GetSourceCoinmarketcap(ctx context.Context, request operations defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47509,7 +47525,7 @@ func (s *Sources) GetSourceCoinmarketcap(ctx context.Context, request operations } } - res := &operations.GetSourceCoinmarketcapResponse{ + res := &operations.DeleteSourceZendeskSellResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47523,18 +47539,8 @@ func (s *Sources) GetSourceCoinmarketcap(ctx context.Context, request operations 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -47546,11 +47552,11 @@ func (s *Sources) GetSourceCoinmarketcap(ctx context.Context, request operations } -// GetSourceConfigcat - Get Source details -func (s *Sources) GetSourceConfigcat(ctx context.Context, request operations.GetSourceConfigcatRequest, opts ...operations.Option) (*operations.GetSourceConfigcatResponse, error) { +// DeleteSourceZendeskSunshine - Delete a Source +func (s *Sources) DeleteSourceZendeskSunshine(ctx context.Context, request operations.DeleteSourceZendeskSunshineRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskSunshineResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceConfigcat", + OperationID: "deleteSourceZendeskSunshine", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47583,11 +47589,11 @@ func (s *Sources) GetSourceConfigcat(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47623,7 +47629,7 @@ func (s *Sources) GetSourceConfigcat(ctx context.Context, request operations.Get } } - res := &operations.GetSourceConfigcatResponse{ + res := &operations.DeleteSourceZendeskSunshineResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47637,18 +47643,8 @@ func (s *Sources) GetSourceConfigcat(ctx context.Context, request operations.Get 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -47660,11 +47656,11 @@ func (s *Sources) GetSourceConfigcat(ctx context.Context, request operations.Get } -// GetSourceConfluence - Get Source details -func (s *Sources) GetSourceConfluence(ctx context.Context, request operations.GetSourceConfluenceRequest, opts ...operations.Option) (*operations.GetSourceConfluenceResponse, error) { +// DeleteSourceZendeskSupport - Delete a Source +func (s *Sources) DeleteSourceZendeskSupport(ctx context.Context, request operations.DeleteSourceZendeskSupportRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskSupportResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceConfluence", + OperationID: "deleteSourceZendeskSupport", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47697,11 +47693,11 @@ func (s *Sources) GetSourceConfluence(ctx context.Context, request operations.Ge defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47737,7 +47733,7 @@ func (s *Sources) GetSourceConfluence(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceConfluenceResponse{ + res := &operations.DeleteSourceZendeskSupportResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47751,18 +47747,8 @@ func (s *Sources) GetSourceConfluence(ctx context.Context, request operations.Ge 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -47774,11 +47760,11 @@ func (s *Sources) GetSourceConfluence(ctx context.Context, request operations.Ge } -// GetSourceConvex - Get Source details -func (s *Sources) GetSourceConvex(ctx context.Context, request operations.GetSourceConvexRequest, opts ...operations.Option) (*operations.GetSourceConvexResponse, error) { +// DeleteSourceZendeskTalk - Delete a Source +func (s *Sources) DeleteSourceZendeskTalk(ctx context.Context, request operations.DeleteSourceZendeskTalkRequest, opts ...operations.Option) (*operations.DeleteSourceZendeskTalkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceConvex", + OperationID: "deleteSourceZendeskTalk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47811,11 +47797,11 @@ func (s *Sources) GetSourceConvex(ctx context.Context, request operations.GetSou defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47851,7 +47837,7 @@ func (s *Sources) GetSourceConvex(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceConvexResponse{ + res := &operations.DeleteSourceZendeskTalkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47865,18 +47851,8 @@ func (s *Sources) GetSourceConvex(ctx context.Context, request operations.GetSou 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -47888,11 +47864,11 @@ func (s *Sources) GetSourceConvex(ctx context.Context, request operations.GetSou } -// GetSourceCustom - Get Source details -func (s *Sources) GetSourceCustom(ctx context.Context, request operations.GetSourceCustomRequest, opts ...operations.Option) (*operations.GetSourceCustomResponse, error) { +// DeleteSourceZenloop - Delete a Source +func (s *Sources) DeleteSourceZenloop(ctx context.Context, request operations.DeleteSourceZenloopRequest, opts ...operations.Option) (*operations.DeleteSourceZenloopResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceCustom", + OperationID: "deleteSourceZenloop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47925,11 +47901,11 @@ func (s *Sources) GetSourceCustom(ctx context.Context, request operations.GetSou defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47965,7 +47941,7 @@ func (s *Sources) GetSourceCustom(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceCustomResponse{ + res := &operations.DeleteSourceZenloopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47979,18 +47955,8 @@ func (s *Sources) GetSourceCustom(ctx context.Context, request operations.GetSou 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -48002,11 +47968,11 @@ func (s *Sources) GetSourceCustom(ctx context.Context, request operations.GetSou } -// GetSourceDatascope - Get Source details -func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.GetSourceDatascopeRequest, opts ...operations.Option) (*operations.GetSourceDatascopeResponse, error) { +// DeleteSourceZohoCrm - Delete a Source +func (s *Sources) DeleteSourceZohoCrm(ctx context.Context, request operations.DeleteSourceZohoCrmRequest, opts ...operations.Option) (*operations.DeleteSourceZohoCrmResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDatascope", + OperationID: "deleteSourceZohoCrm", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48039,11 +48005,11 @@ func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -48079,7 +48045,7 @@ func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.Get } } - res := &operations.GetSourceDatascopeResponse{ + res := &operations.DeleteSourceZohoCrmResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48093,18 +48059,112 @@ func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.Get 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 - } + 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) + } - 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) + return res, nil + +} + +// DeleteSourceZoom - Delete a Source +func (s *Sources) DeleteSourceZoom(ctx context.Context, request operations.DeleteSourceZoomRequest, opts ...operations.Option) (*operations.DeleteSourceZoomResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceZoom", + 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.DeleteSourceZoomResponse{ + 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: @@ -48116,11 +48176,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) { +// GetSource - Get Source details +func (s *Sources) GetSource(ctx context.Context, request operations.GetSourceRequest, opts ...operations.Option) (*operations.GetSourceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDelighted", + OperationID: "getSource", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48193,7 +48253,7 @@ func (s *Sources) GetSourceDelighted(ctx context.Context, request operations.Get } } - res := &operations.GetSourceDelightedResponse{ + res := &operations.GetSourceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48230,11 +48290,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) { +// GetSourceAha - Get Source details +func (s *Sources) GetSourceAha(ctx context.Context, request operations.GetSourceAhaRequest, opts ...operations.Option) (*operations.GetSourceAhaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDixa", + OperationID: "getSourceAha", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48307,7 +48367,7 @@ func (s *Sources) GetSourceDixa(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceDixaResponse{ + res := &operations.GetSourceAhaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48344,11 +48404,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) { +// GetSourceAirbyte - Get Source details +func (s *Sources) GetSourceAirbyte(ctx context.Context, request operations.GetSourceAirbyteRequest, opts ...operations.Option) (*operations.GetSourceAirbyteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDockerhub", + OperationID: "getSourceAirbyte", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48421,7 +48481,7 @@ func (s *Sources) GetSourceDockerhub(ctx context.Context, request operations.Get } } - res := &operations.GetSourceDockerhubResponse{ + res := &operations.GetSourceAirbyteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48458,11 +48518,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) { +// GetSourceAircall - Get Source details +func (s *Sources) GetSourceAircall(ctx context.Context, request operations.GetSourceAircallRequest, opts ...operations.Option) (*operations.GetSourceAircallResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDremio", + OperationID: "getSourceAircall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48535,7 +48595,7 @@ func (s *Sources) GetSourceDremio(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceDremioResponse{ + res := &operations.GetSourceAircallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48572,11 +48632,11 @@ func (s *Sources) GetSourceDremio(ctx context.Context, request operations.GetSou } -// GetSourceDynamodb - Get Source details -func (s *Sources) GetSourceDynamodb(ctx context.Context, request operations.GetSourceDynamodbRequest, opts ...operations.Option) (*operations.GetSourceDynamodbResponse, error) { +// GetSourceAirtable - Get Source details +func (s *Sources) GetSourceAirtable(ctx context.Context, request operations.GetSourceAirtableRequest, opts ...operations.Option) (*operations.GetSourceAirtableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDynamodb", + OperationID: "getSourceAirtable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48649,7 +48709,7 @@ func (s *Sources) GetSourceDynamodb(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceDynamodbResponse{ + res := &operations.GetSourceAirtableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48686,11 +48746,11 @@ func (s *Sources) GetSourceDynamodb(ctx context.Context, request operations.GetS } -// GetSourceEmailoctopus - Get Source details -func (s *Sources) GetSourceEmailoctopus(ctx context.Context, request operations.GetSourceEmailoctopusRequest, opts ...operations.Option) (*operations.GetSourceEmailoctopusResponse, error) { +// GetSourceAmazonAds - Get Source details +func (s *Sources) GetSourceAmazonAds(ctx context.Context, request operations.GetSourceAmazonAdsRequest, opts ...operations.Option) (*operations.GetSourceAmazonAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceEmailoctopus", + OperationID: "getSourceAmazonAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48763,7 +48823,7 @@ func (s *Sources) GetSourceEmailoctopus(ctx context.Context, request operations. } } - res := &operations.GetSourceEmailoctopusResponse{ + res := &operations.GetSourceAmazonAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48800,11 +48860,11 @@ func (s *Sources) GetSourceEmailoctopus(ctx context.Context, request operations. } -// GetSourceExchangeRates - Get Source details -func (s *Sources) GetSourceExchangeRates(ctx context.Context, request operations.GetSourceExchangeRatesRequest, opts ...operations.Option) (*operations.GetSourceExchangeRatesResponse, error) { +// GetSourceAmazonSellerPartner - Get Source details +func (s *Sources) GetSourceAmazonSellerPartner(ctx context.Context, request operations.GetSourceAmazonSellerPartnerRequest, opts ...operations.Option) (*operations.GetSourceAmazonSellerPartnerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceExchangeRates", + OperationID: "getSourceAmazonSellerPartner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48877,7 +48937,7 @@ func (s *Sources) GetSourceExchangeRates(ctx context.Context, request operations } } - res := &operations.GetSourceExchangeRatesResponse{ + res := &operations.GetSourceAmazonSellerPartnerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48914,11 +48974,11 @@ func (s *Sources) GetSourceExchangeRates(ctx context.Context, request operations } -// GetSourceFacebookMarketing - Get Source details -func (s *Sources) GetSourceFacebookMarketing(ctx context.Context, request operations.GetSourceFacebookMarketingRequest, opts ...operations.Option) (*operations.GetSourceFacebookMarketingResponse, error) { +// GetSourceAmazonSqs - Get Source details +func (s *Sources) GetSourceAmazonSqs(ctx context.Context, request operations.GetSourceAmazonSqsRequest, opts ...operations.Option) (*operations.GetSourceAmazonSqsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFacebookMarketing", + OperationID: "getSourceAmazonSqs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48991,7 +49051,7 @@ func (s *Sources) GetSourceFacebookMarketing(ctx context.Context, request operat } } - res := &operations.GetSourceFacebookMarketingResponse{ + res := &operations.GetSourceAmazonSqsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49028,11 +49088,11 @@ func (s *Sources) GetSourceFacebookMarketing(ctx context.Context, request operat } -// GetSourceFaker - Get Source details -func (s *Sources) GetSourceFaker(ctx context.Context, request operations.GetSourceFakerRequest, opts ...operations.Option) (*operations.GetSourceFakerResponse, error) { +// GetSourceAmplitude - Get Source details +func (s *Sources) GetSourceAmplitude(ctx context.Context, request operations.GetSourceAmplitudeRequest, opts ...operations.Option) (*operations.GetSourceAmplitudeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFaker", + OperationID: "getSourceAmplitude", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49105,7 +49165,7 @@ func (s *Sources) GetSourceFaker(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceFakerResponse{ + res := &operations.GetSourceAmplitudeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49142,11 +49202,11 @@ func (s *Sources) GetSourceFaker(ctx context.Context, request operations.GetSour } -// GetSourceFauna - Get Source details -func (s *Sources) GetSourceFauna(ctx context.Context, request operations.GetSourceFaunaRequest, opts ...operations.Option) (*operations.GetSourceFaunaResponse, error) { +// GetSourceApifyDataset - Get Source details +func (s *Sources) GetSourceApifyDataset(ctx context.Context, request operations.GetSourceApifyDatasetRequest, opts ...operations.Option) (*operations.GetSourceApifyDatasetResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFauna", + OperationID: "getSourceApifyDataset", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49219,7 +49279,7 @@ func (s *Sources) GetSourceFauna(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceFaunaResponse{ + res := &operations.GetSourceApifyDatasetResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49256,11 +49316,11 @@ func (s *Sources) GetSourceFauna(ctx context.Context, request operations.GetSour } -// GetSourceFile - Get Source details -func (s *Sources) GetSourceFile(ctx context.Context, request operations.GetSourceFileRequest, opts ...operations.Option) (*operations.GetSourceFileResponse, error) { +// GetSourceAppfollow - Get Source details +func (s *Sources) GetSourceAppfollow(ctx context.Context, request operations.GetSourceAppfollowRequest, opts ...operations.Option) (*operations.GetSourceAppfollowResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFile", + OperationID: "getSourceAppfollow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49333,7 +49393,7 @@ func (s *Sources) GetSourceFile(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceFileResponse{ + res := &operations.GetSourceAppfollowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49370,11 +49430,11 @@ func (s *Sources) GetSourceFile(ctx context.Context, request operations.GetSourc } -// GetSourceFirebolt - Get Source details -func (s *Sources) GetSourceFirebolt(ctx context.Context, request operations.GetSourceFireboltRequest, opts ...operations.Option) (*operations.GetSourceFireboltResponse, error) { +// GetSourceAsana - Get Source details +func (s *Sources) GetSourceAsana(ctx context.Context, request operations.GetSourceAsanaRequest, opts ...operations.Option) (*operations.GetSourceAsanaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFirebolt", + OperationID: "getSourceAsana", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49447,7 +49507,7 @@ func (s *Sources) GetSourceFirebolt(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceFireboltResponse{ + res := &operations.GetSourceAsanaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49484,11 +49544,11 @@ func (s *Sources) GetSourceFirebolt(ctx context.Context, request operations.GetS } -// GetSourceFleetio - Get Source details -func (s *Sources) GetSourceFleetio(ctx context.Context, request operations.GetSourceFleetioRequest, opts ...operations.Option) (*operations.GetSourceFleetioResponse, error) { +// GetSourceAuth0 - Get Source details +func (s *Sources) GetSourceAuth0(ctx context.Context, request operations.GetSourceAuth0Request, opts ...operations.Option) (*operations.GetSourceAuth0Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFleetio", + OperationID: "getSourceAuth0", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49561,7 +49621,7 @@ func (s *Sources) GetSourceFleetio(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceFleetioResponse{ + res := &operations.GetSourceAuth0Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49598,11 +49658,11 @@ func (s *Sources) GetSourceFleetio(ctx context.Context, request operations.GetSo } -// GetSourceFreshcaller - Get Source details -func (s *Sources) GetSourceFreshcaller(ctx context.Context, request operations.GetSourceFreshcallerRequest, opts ...operations.Option) (*operations.GetSourceFreshcallerResponse, error) { +// GetSourceAwsCloudtrail - Get Source details +func (s *Sources) GetSourceAwsCloudtrail(ctx context.Context, request operations.GetSourceAwsCloudtrailRequest, opts ...operations.Option) (*operations.GetSourceAwsCloudtrailResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFreshcaller", + OperationID: "getSourceAwsCloudtrail", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49675,7 +49735,7 @@ func (s *Sources) GetSourceFreshcaller(ctx context.Context, request operations.G } } - res := &operations.GetSourceFreshcallerResponse{ + res := &operations.GetSourceAwsCloudtrailResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49712,11 +49772,11 @@ func (s *Sources) GetSourceFreshcaller(ctx context.Context, request operations.G } -// GetSourceFreshdesk - Get Source details -func (s *Sources) GetSourceFreshdesk(ctx context.Context, request operations.GetSourceFreshdeskRequest, opts ...operations.Option) (*operations.GetSourceFreshdeskResponse, error) { +// GetSourceAzureBlobStorage - Get Source details +func (s *Sources) GetSourceAzureBlobStorage(ctx context.Context, request operations.GetSourceAzureBlobStorageRequest, opts ...operations.Option) (*operations.GetSourceAzureBlobStorageResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFreshdesk", + OperationID: "getSourceAzureBlobStorage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49789,7 +49849,7 @@ func (s *Sources) GetSourceFreshdesk(ctx context.Context, request operations.Get } } - res := &operations.GetSourceFreshdeskResponse{ + res := &operations.GetSourceAzureBlobStorageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49826,11 +49886,11 @@ func (s *Sources) GetSourceFreshdesk(ctx context.Context, request operations.Get } -// GetSourceFreshsales - Get Source details -func (s *Sources) GetSourceFreshsales(ctx context.Context, request operations.GetSourceFreshsalesRequest, opts ...operations.Option) (*operations.GetSourceFreshsalesResponse, error) { +// GetSourceAzureTable - Get Source details +func (s *Sources) GetSourceAzureTable(ctx context.Context, request operations.GetSourceAzureTableRequest, opts ...operations.Option) (*operations.GetSourceAzureTableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFreshsales", + OperationID: "getSourceAzureTable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49903,7 +49963,7 @@ func (s *Sources) GetSourceFreshsales(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceFreshsalesResponse{ + res := &operations.GetSourceAzureTableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49940,11 +50000,11 @@ func (s *Sources) GetSourceFreshsales(ctx context.Context, request operations.Ge } -// GetSourceGainsightPx - Get Source details -func (s *Sources) GetSourceGainsightPx(ctx context.Context, request operations.GetSourceGainsightPxRequest, opts ...operations.Option) (*operations.GetSourceGainsightPxResponse, error) { +// GetSourceBambooHr - Get Source details +func (s *Sources) GetSourceBambooHr(ctx context.Context, request operations.GetSourceBambooHrRequest, opts ...operations.Option) (*operations.GetSourceBambooHrResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGainsightPx", + OperationID: "getSourceBambooHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50017,7 +50077,7 @@ func (s *Sources) GetSourceGainsightPx(ctx context.Context, request operations.G } } - res := &operations.GetSourceGainsightPxResponse{ + res := &operations.GetSourceBambooHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50054,11 +50114,11 @@ func (s *Sources) GetSourceGainsightPx(ctx context.Context, request operations.G } -// GetSourceGcs - Get Source details -func (s *Sources) GetSourceGcs(ctx context.Context, request operations.GetSourceGcsRequest, opts ...operations.Option) (*operations.GetSourceGcsResponse, error) { +// GetSourceBasecamp - Get Source details +func (s *Sources) GetSourceBasecamp(ctx context.Context, request operations.GetSourceBasecampRequest, opts ...operations.Option) (*operations.GetSourceBasecampResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGcs", + OperationID: "getSourceBasecamp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50131,7 +50191,7 @@ func (s *Sources) GetSourceGcs(ctx context.Context, request operations.GetSource } } - res := &operations.GetSourceGcsResponse{ + res := &operations.GetSourceBasecampResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50168,11 +50228,11 @@ func (s *Sources) GetSourceGcs(ctx context.Context, request operations.GetSource } -// GetSourceGetlago - Get Source details -func (s *Sources) GetSourceGetlago(ctx context.Context, request operations.GetSourceGetlagoRequest, opts ...operations.Option) (*operations.GetSourceGetlagoResponse, error) { +// GetSourceBigquery - Get Source details +func (s *Sources) GetSourceBigquery(ctx context.Context, request operations.GetSourceBigqueryRequest, opts ...operations.Option) (*operations.GetSourceBigqueryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGetlago", + OperationID: "getSourceBigquery", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50245,7 +50305,7 @@ func (s *Sources) GetSourceGetlago(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceGetlagoResponse{ + res := &operations.GetSourceBigqueryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50282,11 +50342,11 @@ func (s *Sources) GetSourceGetlago(ctx context.Context, request operations.GetSo } -// GetSourceGithub - Get Source details -func (s *Sources) GetSourceGithub(ctx context.Context, request operations.GetSourceGithubRequest, opts ...operations.Option) (*operations.GetSourceGithubResponse, error) { +// GetSourceBingAds - Get Source details +func (s *Sources) GetSourceBingAds(ctx context.Context, request operations.GetSourceBingAdsRequest, opts ...operations.Option) (*operations.GetSourceBingAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGithub", + OperationID: "getSourceBingAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50359,7 +50419,7 @@ func (s *Sources) GetSourceGithub(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceGithubResponse{ + res := &operations.GetSourceBingAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50396,11 +50456,11 @@ func (s *Sources) GetSourceGithub(ctx context.Context, request operations.GetSou } -// GetSourceGitlab - Get Source details -func (s *Sources) GetSourceGitlab(ctx context.Context, request operations.GetSourceGitlabRequest, opts ...operations.Option) (*operations.GetSourceGitlabResponse, error) { +// GetSourceBraintree - Get Source details +func (s *Sources) GetSourceBraintree(ctx context.Context, request operations.GetSourceBraintreeRequest, opts ...operations.Option) (*operations.GetSourceBraintreeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGitlab", + OperationID: "getSourceBraintree", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50473,7 +50533,7 @@ func (s *Sources) GetSourceGitlab(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceGitlabResponse{ + res := &operations.GetSourceBraintreeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50510,11 +50570,11 @@ func (s *Sources) GetSourceGitlab(ctx context.Context, request operations.GetSou } -// GetSourceGlassfrog - Get Source details -func (s *Sources) GetSourceGlassfrog(ctx context.Context, request operations.GetSourceGlassfrogRequest, opts ...operations.Option) (*operations.GetSourceGlassfrogResponse, error) { +// GetSourceBraze - Get Source details +func (s *Sources) GetSourceBraze(ctx context.Context, request operations.GetSourceBrazeRequest, opts ...operations.Option) (*operations.GetSourceBrazeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGlassfrog", + OperationID: "getSourceBraze", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50587,7 +50647,7 @@ func (s *Sources) GetSourceGlassfrog(ctx context.Context, request operations.Get } } - res := &operations.GetSourceGlassfrogResponse{ + res := &operations.GetSourceBrazeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50624,11 +50684,11 @@ func (s *Sources) GetSourceGlassfrog(ctx context.Context, request operations.Get } -// GetSourceGnews - Get Source details -func (s *Sources) GetSourceGnews(ctx context.Context, request operations.GetSourceGnewsRequest, opts ...operations.Option) (*operations.GetSourceGnewsResponse, error) { +// GetSourceBreezyHr - Get Source details +func (s *Sources) GetSourceBreezyHr(ctx context.Context, request operations.GetSourceBreezyHrRequest, opts ...operations.Option) (*operations.GetSourceBreezyHrResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGnews", + OperationID: "getSourceBreezyHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50701,7 +50761,7 @@ func (s *Sources) GetSourceGnews(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceGnewsResponse{ + res := &operations.GetSourceBreezyHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50738,11 +50798,11 @@ func (s *Sources) GetSourceGnews(ctx context.Context, request operations.GetSour } -// GetSourceGoogleAds - Get Source details -func (s *Sources) GetSourceGoogleAds(ctx context.Context, request operations.GetSourceGoogleAdsRequest, opts ...operations.Option) (*operations.GetSourceGoogleAdsResponse, error) { +// GetSourceCalendly - Get Source details +func (s *Sources) GetSourceCalendly(ctx context.Context, request operations.GetSourceCalendlyRequest, opts ...operations.Option) (*operations.GetSourceCalendlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoogleAds", + OperationID: "getSourceCalendly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50815,7 +50875,7 @@ func (s *Sources) GetSourceGoogleAds(ctx context.Context, request operations.Get } } - res := &operations.GetSourceGoogleAdsResponse{ + res := &operations.GetSourceCalendlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50852,11 +50912,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) { +// GetSourceCart - Get Source details +func (s *Sources) GetSourceCart(ctx context.Context, request operations.GetSourceCartRequest, opts ...operations.Option) (*operations.GetSourceCartResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoogleAnalyticsDataApi", + OperationID: "getSourceCart", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50929,7 +50989,7 @@ func (s *Sources) GetSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } } - res := &operations.GetSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.GetSourceCartResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50966,11 +51026,11 @@ func (s *Sources) GetSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } -// GetSourceGoogleAnalyticsV4ServiceAccountOnly - Get Source details -func (s *Sources) GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Context, request operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest, opts ...operations.Option) (*operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse, error) { +// GetSourceChargebee - Get Source details +func (s *Sources) GetSourceChargebee(ctx context.Context, request operations.GetSourceChargebeeRequest, opts ...operations.Option) (*operations.GetSourceChargebeeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoogleAnalyticsV4ServiceAccountOnly", + OperationID: "getSourceChargebee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51043,7 +51103,7 @@ func (s *Sources) GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Conte } } - res := &operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse{ + res := &operations.GetSourceChargebeeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51080,11 +51140,11 @@ func (s *Sources) GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Conte } -// GetSourceGoogleDirectory - Get Source details -func (s *Sources) GetSourceGoogleDirectory(ctx context.Context, request operations.GetSourceGoogleDirectoryRequest, opts ...operations.Option) (*operations.GetSourceGoogleDirectoryResponse, error) { +// GetSourceChartmogul - Get Source details +func (s *Sources) GetSourceChartmogul(ctx context.Context, request operations.GetSourceChartmogulRequest, opts ...operations.Option) (*operations.GetSourceChartmogulResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoogleDirectory", + OperationID: "getSourceChartmogul", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51157,7 +51217,7 @@ func (s *Sources) GetSourceGoogleDirectory(ctx context.Context, request operatio } } - res := &operations.GetSourceGoogleDirectoryResponse{ + res := &operations.GetSourceChartmogulResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51194,11 +51254,11 @@ func (s *Sources) GetSourceGoogleDirectory(ctx context.Context, request operatio } -// GetSourceGoogleDrive - Get Source details -func (s *Sources) GetSourceGoogleDrive(ctx context.Context, request operations.GetSourceGoogleDriveRequest, opts ...operations.Option) (*operations.GetSourceGoogleDriveResponse, error) { +// 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: "getSourceGoogleDrive", + OperationID: "getSourceClazar", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51271,7 +51331,7 @@ func (s *Sources) GetSourceGoogleDrive(ctx context.Context, request operations.G } } - res := &operations.GetSourceGoogleDriveResponse{ + res := &operations.GetSourceClazarResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51308,11 +51368,11 @@ func (s *Sources) GetSourceGoogleDrive(ctx context.Context, request operations.G } -// GetSourceGooglePagespeedInsights - Get Source details -func (s *Sources) GetSourceGooglePagespeedInsights(ctx context.Context, request operations.GetSourceGooglePagespeedInsightsRequest, opts ...operations.Option) (*operations.GetSourceGooglePagespeedInsightsResponse, error) { +// GetSourceClickhouse - Get Source details +func (s *Sources) GetSourceClickhouse(ctx context.Context, request operations.GetSourceClickhouseRequest, opts ...operations.Option) (*operations.GetSourceClickhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGooglePagespeedInsights", + OperationID: "getSourceClickhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51385,7 +51445,7 @@ func (s *Sources) GetSourceGooglePagespeedInsights(ctx context.Context, request } } - res := &operations.GetSourceGooglePagespeedInsightsResponse{ + res := &operations.GetSourceClickhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51422,11 +51482,11 @@ func (s *Sources) GetSourceGooglePagespeedInsights(ctx context.Context, request } -// GetSourceGoogleSearchConsole - Get Source details -func (s *Sources) GetSourceGoogleSearchConsole(ctx context.Context, request operations.GetSourceGoogleSearchConsoleRequest, opts ...operations.Option) (*operations.GetSourceGoogleSearchConsoleResponse, error) { +// GetSourceClickupAPI - Get Source details +func (s *Sources) GetSourceClickupAPI(ctx context.Context, request operations.GetSourceClickupAPIRequest, opts ...operations.Option) (*operations.GetSourceClickupAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoogleSearchConsole", + OperationID: "getSourceClickupApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51499,7 +51559,7 @@ func (s *Sources) GetSourceGoogleSearchConsole(ctx context.Context, request oper } } - res := &operations.GetSourceGoogleSearchConsoleResponse{ + res := &operations.GetSourceClickupAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51536,11 +51596,11 @@ func (s *Sources) GetSourceGoogleSearchConsole(ctx context.Context, request oper } -// GetSourceGoogleSheets - Get Source details -func (s *Sources) GetSourceGoogleSheets(ctx context.Context, request operations.GetSourceGoogleSheetsRequest, opts ...operations.Option) (*operations.GetSourceGoogleSheetsResponse, error) { +// GetSourceClockify - Get Source details +func (s *Sources) GetSourceClockify(ctx context.Context, request operations.GetSourceClockifyRequest, opts ...operations.Option) (*operations.GetSourceClockifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoogleSheets", + OperationID: "getSourceClockify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51613,7 +51673,7 @@ func (s *Sources) GetSourceGoogleSheets(ctx context.Context, request operations. } } - res := &operations.GetSourceGoogleSheetsResponse{ + res := &operations.GetSourceClockifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51650,11 +51710,11 @@ func (s *Sources) GetSourceGoogleSheets(ctx context.Context, request operations. } -// GetSourceGoogleWebfonts - Get Source details -func (s *Sources) GetSourceGoogleWebfonts(ctx context.Context, request operations.GetSourceGoogleWebfontsRequest, opts ...operations.Option) (*operations.GetSourceGoogleWebfontsResponse, error) { +// GetSourceCloseCom - Get Source details +func (s *Sources) GetSourceCloseCom(ctx context.Context, request operations.GetSourceCloseComRequest, opts ...operations.Option) (*operations.GetSourceCloseComResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoogleWebfonts", + OperationID: "getSourceCloseCom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51727,7 +51787,7 @@ func (s *Sources) GetSourceGoogleWebfonts(ctx context.Context, request operation } } - res := &operations.GetSourceGoogleWebfontsResponse{ + res := &operations.GetSourceCloseComResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51764,11 +51824,11 @@ func (s *Sources) GetSourceGoogleWebfonts(ctx context.Context, request operation } -// GetSourceGreenhouse - Get Source details -func (s *Sources) GetSourceGreenhouse(ctx context.Context, request operations.GetSourceGreenhouseRequest, opts ...operations.Option) (*operations.GetSourceGreenhouseResponse, error) { +// GetSourceCoda - Get Source details +func (s *Sources) GetSourceCoda(ctx context.Context, request operations.GetSourceCodaRequest, opts ...operations.Option) (*operations.GetSourceCodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGreenhouse", + OperationID: "getSourceCoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51841,7 +51901,7 @@ func (s *Sources) GetSourceGreenhouse(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceGreenhouseResponse{ + res := &operations.GetSourceCodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51878,11 +51938,11 @@ func (s *Sources) GetSourceGreenhouse(ctx context.Context, request operations.Ge } -// GetSourceGridly - Get Source details -func (s *Sources) GetSourceGridly(ctx context.Context, request operations.GetSourceGridlyRequest, opts ...operations.Option) (*operations.GetSourceGridlyResponse, error) { +// GetSourceCoinAPI - Get Source details +func (s *Sources) GetSourceCoinAPI(ctx context.Context, request operations.GetSourceCoinAPIRequest, opts ...operations.Option) (*operations.GetSourceCoinAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGridly", + OperationID: "getSourceCoinApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51955,7 +52015,7 @@ func (s *Sources) GetSourceGridly(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceGridlyResponse{ + res := &operations.GetSourceCoinAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51992,11 +52052,11 @@ func (s *Sources) GetSourceGridly(ctx context.Context, request operations.GetSou } -// GetSourceHarvest - Get Source details -func (s *Sources) GetSourceHarvest(ctx context.Context, request operations.GetSourceHarvestRequest, opts ...operations.Option) (*operations.GetSourceHarvestResponse, error) { +// GetSourceCoinmarketcap - Get Source details +func (s *Sources) GetSourceCoinmarketcap(ctx context.Context, request operations.GetSourceCoinmarketcapRequest, opts ...operations.Option) (*operations.GetSourceCoinmarketcapResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceHarvest", + OperationID: "getSourceCoinmarketcap", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52069,7 +52129,7 @@ func (s *Sources) GetSourceHarvest(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceHarvestResponse{ + res := &operations.GetSourceCoinmarketcapResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52106,11 +52166,11 @@ func (s *Sources) GetSourceHarvest(ctx context.Context, request operations.GetSo } -// GetSourceHubplanner - Get Source details -func (s *Sources) GetSourceHubplanner(ctx context.Context, request operations.GetSourceHubplannerRequest, opts ...operations.Option) (*operations.GetSourceHubplannerResponse, error) { +// GetSourceConfigcat - Get Source details +func (s *Sources) GetSourceConfigcat(ctx context.Context, request operations.GetSourceConfigcatRequest, opts ...operations.Option) (*operations.GetSourceConfigcatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceHubplanner", + OperationID: "getSourceConfigcat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52183,7 +52243,7 @@ func (s *Sources) GetSourceHubplanner(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceHubplannerResponse{ + res := &operations.GetSourceConfigcatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52220,11 +52280,11 @@ func (s *Sources) GetSourceHubplanner(ctx context.Context, request operations.Ge } -// GetSourceHubspot - Get Source details -func (s *Sources) GetSourceHubspot(ctx context.Context, request operations.GetSourceHubspotRequest, opts ...operations.Option) (*operations.GetSourceHubspotResponse, error) { +// GetSourceConfluence - Get Source details +func (s *Sources) GetSourceConfluence(ctx context.Context, request operations.GetSourceConfluenceRequest, opts ...operations.Option) (*operations.GetSourceConfluenceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceHubspot", + OperationID: "getSourceConfluence", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52297,7 +52357,7 @@ func (s *Sources) GetSourceHubspot(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceHubspotResponse{ + res := &operations.GetSourceConfluenceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52334,11 +52394,11 @@ func (s *Sources) GetSourceHubspot(ctx context.Context, request operations.GetSo } -// GetSourceInsightly - Get Source details -func (s *Sources) GetSourceInsightly(ctx context.Context, request operations.GetSourceInsightlyRequest, opts ...operations.Option) (*operations.GetSourceInsightlyResponse, error) { +// GetSourceConvex - Get Source details +func (s *Sources) GetSourceConvex(ctx context.Context, request operations.GetSourceConvexRequest, opts ...operations.Option) (*operations.GetSourceConvexResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceInsightly", + OperationID: "getSourceConvex", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52411,7 +52471,7 @@ func (s *Sources) GetSourceInsightly(ctx context.Context, request operations.Get } } - res := &operations.GetSourceInsightlyResponse{ + res := &operations.GetSourceConvexResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52448,11 +52508,11 @@ func (s *Sources) GetSourceInsightly(ctx context.Context, request operations.Get } -// GetSourceInstagram - Get Source details -func (s *Sources) GetSourceInstagram(ctx context.Context, request operations.GetSourceInstagramRequest, opts ...operations.Option) (*operations.GetSourceInstagramResponse, error) { +// GetSourceCustom - Get Source details +func (s *Sources) GetSourceCustom(ctx context.Context, request operations.GetSourceCustomRequest, opts ...operations.Option) (*operations.GetSourceCustomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceInstagram", + OperationID: "getSourceCustom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52525,7 +52585,7 @@ func (s *Sources) GetSourceInstagram(ctx context.Context, request operations.Get } } - res := &operations.GetSourceInstagramResponse{ + res := &operations.GetSourceCustomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52562,11 +52622,11 @@ func (s *Sources) GetSourceInstagram(ctx context.Context, request operations.Get } -// GetSourceInstatus - Get Source details -func (s *Sources) GetSourceInstatus(ctx context.Context, request operations.GetSourceInstatusRequest, opts ...operations.Option) (*operations.GetSourceInstatusResponse, error) { +// GetSourceCustomerIo - Get Source details +func (s *Sources) GetSourceCustomerIo(ctx context.Context, request operations.GetSourceCustomerIoRequest, opts ...operations.Option) (*operations.GetSourceCustomerIoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceInstatus", + OperationID: "getSourceCustomerIo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52639,7 +52699,7 @@ func (s *Sources) GetSourceInstatus(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceInstatusResponse{ + res := &operations.GetSourceCustomerIoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52676,11 +52736,11 @@ func (s *Sources) GetSourceInstatus(ctx context.Context, request operations.GetS } -// GetSourceIntercom - Get Source details -func (s *Sources) GetSourceIntercom(ctx context.Context, request operations.GetSourceIntercomRequest, opts ...operations.Option) (*operations.GetSourceIntercomResponse, error) { +// GetSourceDatadog - Get Source details +func (s *Sources) GetSourceDatadog(ctx context.Context, request operations.GetSourceDatadogRequest, opts ...operations.Option) (*operations.GetSourceDatadogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceIntercom", + OperationID: "getSourceDatadog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52753,7 +52813,7 @@ func (s *Sources) GetSourceIntercom(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceIntercomResponse{ + res := &operations.GetSourceDatadogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52790,11 +52850,11 @@ func (s *Sources) GetSourceIntercom(ctx context.Context, request operations.GetS } -// GetSourceIp2whois - Get Source details -func (s *Sources) GetSourceIp2whois(ctx context.Context, request operations.GetSourceIp2whoisRequest, opts ...operations.Option) (*operations.GetSourceIp2whoisResponse, 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: "getSourceIp2whois", + OperationID: "getSourceDatascope", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52867,7 +52927,7 @@ func (s *Sources) GetSourceIp2whois(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceIp2whoisResponse{ + res := &operations.GetSourceDatascopeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52904,11 +52964,11 @@ func (s *Sources) GetSourceIp2whois(ctx context.Context, request operations.GetS } -// GetSourceIterable - Get Source details -func (s *Sources) GetSourceIterable(ctx context.Context, request operations.GetSourceIterableRequest, opts ...operations.Option) (*operations.GetSourceIterableResponse, error) { +// GetSourceDbt - Get Source details +func (s *Sources) GetSourceDbt(ctx context.Context, request operations.GetSourceDbtRequest, opts ...operations.Option) (*operations.GetSourceDbtResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceIterable", + OperationID: "getSourceDbt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52981,7 +53041,7 @@ func (s *Sources) GetSourceIterable(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceIterableResponse{ + res := &operations.GetSourceDbtResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53018,11 +53078,11 @@ func (s *Sources) GetSourceIterable(ctx context.Context, request operations.GetS } -// GetSourceJira - Get Source details -func (s *Sources) GetSourceJira(ctx context.Context, request operations.GetSourceJiraRequest, opts ...operations.Option) (*operations.GetSourceJiraResponse, 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: "getSourceJira", + OperationID: "getSourceDelighted", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53095,7 +53155,7 @@ func (s *Sources) GetSourceJira(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceJiraResponse{ + res := &operations.GetSourceDelightedResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53132,11 +53192,11 @@ func (s *Sources) GetSourceJira(ctx context.Context, request operations.GetSourc } -// GetSourceK6Cloud - Get Source details -func (s *Sources) GetSourceK6Cloud(ctx context.Context, request operations.GetSourceK6CloudRequest, opts ...operations.Option) (*operations.GetSourceK6CloudResponse, 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: "getSourceK6Cloud", + OperationID: "getSourceDixa", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53209,7 +53269,7 @@ func (s *Sources) GetSourceK6Cloud(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceK6CloudResponse{ + res := &operations.GetSourceDixaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53246,11 +53306,11 @@ func (s *Sources) GetSourceK6Cloud(ctx context.Context, request operations.GetSo } -// GetSourceKlarna - Get Source details -func (s *Sources) GetSourceKlarna(ctx context.Context, request operations.GetSourceKlarnaRequest, opts ...operations.Option) (*operations.GetSourceKlarnaResponse, 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: "getSourceKlarna", + OperationID: "getSourceDockerhub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53323,7 +53383,7 @@ func (s *Sources) GetSourceKlarna(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceKlarnaResponse{ + res := &operations.GetSourceDockerhubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53360,11 +53420,11 @@ func (s *Sources) GetSourceKlarna(ctx context.Context, request operations.GetSou } -// GetSourceKlaviyo - Get Source details -func (s *Sources) GetSourceKlaviyo(ctx context.Context, request operations.GetSourceKlaviyoRequest, opts ...operations.Option) (*operations.GetSourceKlaviyoResponse, 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: "getSourceKlaviyo", + OperationID: "getSourceDremio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53437,7 +53497,7 @@ func (s *Sources) GetSourceKlaviyo(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceKlaviyoResponse{ + res := &operations.GetSourceDremioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53474,11 +53534,11 @@ func (s *Sources) GetSourceKlaviyo(ctx context.Context, request operations.GetSo } -// GetSourceKyve - Get Source details -func (s *Sources) GetSourceKyve(ctx context.Context, request operations.GetSourceKyveRequest, opts ...operations.Option) (*operations.GetSourceKyveResponse, 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: "getSourceKyve", + OperationID: "getSourceDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53551,7 +53611,7 @@ func (s *Sources) GetSourceKyve(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceKyveResponse{ + res := &operations.GetSourceDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53588,11 +53648,11 @@ func (s *Sources) GetSourceKyve(ctx context.Context, request operations.GetSourc } -// GetSourceLaunchdarkly - Get Source details -func (s *Sources) GetSourceLaunchdarkly(ctx context.Context, request operations.GetSourceLaunchdarklyRequest, opts ...operations.Option) (*operations.GetSourceLaunchdarklyResponse, error) { +// GetSourceEmailoctopus - Get Source details +func (s *Sources) GetSourceEmailoctopus(ctx context.Context, request operations.GetSourceEmailoctopusRequest, opts ...operations.Option) (*operations.GetSourceEmailoctopusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceLaunchdarkly", + OperationID: "getSourceEmailoctopus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53665,7 +53725,7 @@ func (s *Sources) GetSourceLaunchdarkly(ctx context.Context, request operations. } } - res := &operations.GetSourceLaunchdarklyResponse{ + res := &operations.GetSourceEmailoctopusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53702,11 +53762,11 @@ func (s *Sources) GetSourceLaunchdarkly(ctx context.Context, request operations. } -// GetSourceLemlist - Get Source details -func (s *Sources) GetSourceLemlist(ctx context.Context, request operations.GetSourceLemlistRequest, opts ...operations.Option) (*operations.GetSourceLemlistResponse, error) { +// GetSourceExchangeRates - Get Source details +func (s *Sources) GetSourceExchangeRates(ctx context.Context, request operations.GetSourceExchangeRatesRequest, opts ...operations.Option) (*operations.GetSourceExchangeRatesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceLemlist", + OperationID: "getSourceExchangeRates", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53779,7 +53839,7 @@ func (s *Sources) GetSourceLemlist(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceLemlistResponse{ + res := &operations.GetSourceExchangeRatesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53816,11 +53876,11 @@ func (s *Sources) GetSourceLemlist(ctx context.Context, request operations.GetSo } -// GetSourceLeverHiring - Get Source details -func (s *Sources) GetSourceLeverHiring(ctx context.Context, request operations.GetSourceLeverHiringRequest, opts ...operations.Option) (*operations.GetSourceLeverHiringResponse, error) { +// GetSourceFacebookMarketing - Get Source details +func (s *Sources) GetSourceFacebookMarketing(ctx context.Context, request operations.GetSourceFacebookMarketingRequest, opts ...operations.Option) (*operations.GetSourceFacebookMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceLeverHiring", + OperationID: "getSourceFacebookMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53893,7 +53953,7 @@ func (s *Sources) GetSourceLeverHiring(ctx context.Context, request operations.G } } - res := &operations.GetSourceLeverHiringResponse{ + res := &operations.GetSourceFacebookMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53930,11 +53990,11 @@ func (s *Sources) GetSourceLeverHiring(ctx context.Context, request operations.G } -// GetSourceLinkedinAds - Get Source details -func (s *Sources) GetSourceLinkedinAds(ctx context.Context, request operations.GetSourceLinkedinAdsRequest, opts ...operations.Option) (*operations.GetSourceLinkedinAdsResponse, error) { +// GetSourceFaker - Get Source details +func (s *Sources) GetSourceFaker(ctx context.Context, request operations.GetSourceFakerRequest, opts ...operations.Option) (*operations.GetSourceFakerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceLinkedinAds", + OperationID: "getSourceFaker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54007,7 +54067,7 @@ func (s *Sources) GetSourceLinkedinAds(ctx context.Context, request operations.G } } - res := &operations.GetSourceLinkedinAdsResponse{ + res := &operations.GetSourceFakerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54044,11 +54104,11 @@ func (s *Sources) GetSourceLinkedinAds(ctx context.Context, request operations.G } -// GetSourceLinkedinPages - Get Source details -func (s *Sources) GetSourceLinkedinPages(ctx context.Context, request operations.GetSourceLinkedinPagesRequest, opts ...operations.Option) (*operations.GetSourceLinkedinPagesResponse, error) { +// GetSourceFauna - Get Source details +func (s *Sources) GetSourceFauna(ctx context.Context, request operations.GetSourceFaunaRequest, opts ...operations.Option) (*operations.GetSourceFaunaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceLinkedinPages", + OperationID: "getSourceFauna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54121,7 +54181,7 @@ func (s *Sources) GetSourceLinkedinPages(ctx context.Context, request operations } } - res := &operations.GetSourceLinkedinPagesResponse{ + res := &operations.GetSourceFaunaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54158,11 +54218,11 @@ func (s *Sources) GetSourceLinkedinPages(ctx context.Context, request operations } -// GetSourceLinnworks - Get Source details -func (s *Sources) GetSourceLinnworks(ctx context.Context, request operations.GetSourceLinnworksRequest, opts ...operations.Option) (*operations.GetSourceLinnworksResponse, error) { +// GetSourceFile - Get Source details +func (s *Sources) GetSourceFile(ctx context.Context, request operations.GetSourceFileRequest, opts ...operations.Option) (*operations.GetSourceFileResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceLinnworks", + OperationID: "getSourceFile", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54235,7 +54295,7 @@ func (s *Sources) GetSourceLinnworks(ctx context.Context, request operations.Get } } - res := &operations.GetSourceLinnworksResponse{ + res := &operations.GetSourceFileResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54272,11 +54332,11 @@ func (s *Sources) GetSourceLinnworks(ctx context.Context, request operations.Get } -// GetSourceLokalise - Get Source details -func (s *Sources) GetSourceLokalise(ctx context.Context, request operations.GetSourceLokaliseRequest, opts ...operations.Option) (*operations.GetSourceLokaliseResponse, error) { +// GetSourceFirebolt - Get Source details +func (s *Sources) GetSourceFirebolt(ctx context.Context, request operations.GetSourceFireboltRequest, opts ...operations.Option) (*operations.GetSourceFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceLokalise", + OperationID: "getSourceFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54349,7 +54409,7 @@ func (s *Sources) GetSourceLokalise(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceLokaliseResponse{ + res := &operations.GetSourceFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54386,11 +54446,11 @@ func (s *Sources) GetSourceLokalise(ctx context.Context, request operations.GetS } -// GetSourceMailchimp - Get Source details -func (s *Sources) GetSourceMailchimp(ctx context.Context, request operations.GetSourceMailchimpRequest, opts ...operations.Option) (*operations.GetSourceMailchimpResponse, error) { +// GetSourceFleetio - Get Source details +func (s *Sources) GetSourceFleetio(ctx context.Context, request operations.GetSourceFleetioRequest, opts ...operations.Option) (*operations.GetSourceFleetioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMailchimp", + OperationID: "getSourceFleetio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54463,7 +54523,7 @@ func (s *Sources) GetSourceMailchimp(ctx context.Context, request operations.Get } } - res := &operations.GetSourceMailchimpResponse{ + res := &operations.GetSourceFleetioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54500,11 +54560,11 @@ func (s *Sources) GetSourceMailchimp(ctx context.Context, request operations.Get } -// GetSourceMailgun - Get Source details -func (s *Sources) GetSourceMailgun(ctx context.Context, request operations.GetSourceMailgunRequest, opts ...operations.Option) (*operations.GetSourceMailgunResponse, error) { +// GetSourceFreshcaller - Get Source details +func (s *Sources) GetSourceFreshcaller(ctx context.Context, request operations.GetSourceFreshcallerRequest, opts ...operations.Option) (*operations.GetSourceFreshcallerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMailgun", + OperationID: "getSourceFreshcaller", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54577,7 +54637,7 @@ func (s *Sources) GetSourceMailgun(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceMailgunResponse{ + res := &operations.GetSourceFreshcallerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54614,11 +54674,11 @@ func (s *Sources) GetSourceMailgun(ctx context.Context, request operations.GetSo } -// GetSourceMailjetSms - Get Source details -func (s *Sources) GetSourceMailjetSms(ctx context.Context, request operations.GetSourceMailjetSmsRequest, opts ...operations.Option) (*operations.GetSourceMailjetSmsResponse, error) { +// GetSourceFreshdesk - Get Source details +func (s *Sources) GetSourceFreshdesk(ctx context.Context, request operations.GetSourceFreshdeskRequest, opts ...operations.Option) (*operations.GetSourceFreshdeskResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMailjetSms", + OperationID: "getSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54691,7 +54751,7 @@ func (s *Sources) GetSourceMailjetSms(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceMailjetSmsResponse{ + res := &operations.GetSourceFreshdeskResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54728,11 +54788,11 @@ func (s *Sources) GetSourceMailjetSms(ctx context.Context, request operations.Ge } -// GetSourceMarketo - Get Source details -func (s *Sources) GetSourceMarketo(ctx context.Context, request operations.GetSourceMarketoRequest, opts ...operations.Option) (*operations.GetSourceMarketoResponse, error) { +// GetSourceFreshsales - Get Source details +func (s *Sources) GetSourceFreshsales(ctx context.Context, request operations.GetSourceFreshsalesRequest, opts ...operations.Option) (*operations.GetSourceFreshsalesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMarketo", + OperationID: "getSourceFreshsales", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54805,7 +54865,7 @@ func (s *Sources) GetSourceMarketo(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceMarketoResponse{ + res := &operations.GetSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54842,11 +54902,11 @@ func (s *Sources) GetSourceMarketo(ctx context.Context, request operations.GetSo } -// GetSourceMetabase - Get Source details -func (s *Sources) GetSourceMetabase(ctx context.Context, request operations.GetSourceMetabaseRequest, opts ...operations.Option) (*operations.GetSourceMetabaseResponse, error) { +// GetSourceGainsightPx - Get Source details +func (s *Sources) GetSourceGainsightPx(ctx context.Context, request operations.GetSourceGainsightPxRequest, opts ...operations.Option) (*operations.GetSourceGainsightPxResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMetabase", + OperationID: "getSourceGainsightPx", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54919,7 +54979,7 @@ func (s *Sources) GetSourceMetabase(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceMetabaseResponse{ + res := &operations.GetSourceGainsightPxResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54956,11 +55016,11 @@ func (s *Sources) GetSourceMetabase(ctx context.Context, request operations.GetS } -// GetSourceMicrosoftOnedrive - Get Source details -func (s *Sources) GetSourceMicrosoftOnedrive(ctx context.Context, request operations.GetSourceMicrosoftOnedriveRequest, opts ...operations.Option) (*operations.GetSourceMicrosoftOnedriveResponse, error) { +// GetSourceGcs - Get Source details +func (s *Sources) GetSourceGcs(ctx context.Context, request operations.GetSourceGcsRequest, opts ...operations.Option) (*operations.GetSourceGcsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMicrosoftOnedrive", + OperationID: "getSourceGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55033,7 +55093,7 @@ func (s *Sources) GetSourceMicrosoftOnedrive(ctx context.Context, request operat } } - res := &operations.GetSourceMicrosoftOnedriveResponse{ + res := &operations.GetSourceGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55070,11 +55130,11 @@ func (s *Sources) GetSourceMicrosoftOnedrive(ctx context.Context, request operat } -// GetSourceMicrosoftSharepoint - Get Source details -func (s *Sources) GetSourceMicrosoftSharepoint(ctx context.Context, request operations.GetSourceMicrosoftSharepointRequest, opts ...operations.Option) (*operations.GetSourceMicrosoftSharepointResponse, error) { +// GetSourceGetlago - Get Source details +func (s *Sources) GetSourceGetlago(ctx context.Context, request operations.GetSourceGetlagoRequest, opts ...operations.Option) (*operations.GetSourceGetlagoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMicrosoftSharepoint", + OperationID: "getSourceGetlago", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55147,7 +55207,7 @@ func (s *Sources) GetSourceMicrosoftSharepoint(ctx context.Context, request oper } } - res := &operations.GetSourceMicrosoftSharepointResponse{ + res := &operations.GetSourceGetlagoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55184,11 +55244,11 @@ func (s *Sources) GetSourceMicrosoftSharepoint(ctx context.Context, request oper } -// GetSourceMicrosoftTeams - Get Source details -func (s *Sources) GetSourceMicrosoftTeams(ctx context.Context, request operations.GetSourceMicrosoftTeamsRequest, opts ...operations.Option) (*operations.GetSourceMicrosoftTeamsResponse, error) { +// GetSourceGithub - Get Source details +func (s *Sources) GetSourceGithub(ctx context.Context, request operations.GetSourceGithubRequest, opts ...operations.Option) (*operations.GetSourceGithubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMicrosoftTeams", + OperationID: "getSourceGithub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55261,7 +55321,7 @@ func (s *Sources) GetSourceMicrosoftTeams(ctx context.Context, request operation } } - res := &operations.GetSourceMicrosoftTeamsResponse{ + res := &operations.GetSourceGithubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55298,11 +55358,11 @@ func (s *Sources) GetSourceMicrosoftTeams(ctx context.Context, request operation } -// GetSourceMixpanel - Get Source details -func (s *Sources) GetSourceMixpanel(ctx context.Context, request operations.GetSourceMixpanelRequest, opts ...operations.Option) (*operations.GetSourceMixpanelResponse, error) { +// GetSourceGitlab - Get Source details +func (s *Sources) GetSourceGitlab(ctx context.Context, request operations.GetSourceGitlabRequest, opts ...operations.Option) (*operations.GetSourceGitlabResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMixpanel", + OperationID: "getSourceGitlab", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55375,7 +55435,7 @@ func (s *Sources) GetSourceMixpanel(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceMixpanelResponse{ + res := &operations.GetSourceGitlabResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55412,11 +55472,11 @@ func (s *Sources) GetSourceMixpanel(ctx context.Context, request operations.GetS } -// GetSourceMonday - Get Source details -func (s *Sources) GetSourceMonday(ctx context.Context, request operations.GetSourceMondayRequest, opts ...operations.Option) (*operations.GetSourceMondayResponse, error) { +// GetSourceGlassfrog - Get Source details +func (s *Sources) GetSourceGlassfrog(ctx context.Context, request operations.GetSourceGlassfrogRequest, opts ...operations.Option) (*operations.GetSourceGlassfrogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMonday", + OperationID: "getSourceGlassfrog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55489,7 +55549,7 @@ func (s *Sources) GetSourceMonday(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceMondayResponse{ + res := &operations.GetSourceGlassfrogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55526,11 +55586,11 @@ func (s *Sources) GetSourceMonday(ctx context.Context, request operations.GetSou } -// GetSourceMongodbInternalPoc - Get Source details -func (s *Sources) GetSourceMongodbInternalPoc(ctx context.Context, request operations.GetSourceMongodbInternalPocRequest, opts ...operations.Option) (*operations.GetSourceMongodbInternalPocResponse, error) { +// GetSourceGnews - Get Source details +func (s *Sources) GetSourceGnews(ctx context.Context, request operations.GetSourceGnewsRequest, opts ...operations.Option) (*operations.GetSourceGnewsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMongodbInternalPoc", + OperationID: "getSourceGnews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55603,7 +55663,7 @@ func (s *Sources) GetSourceMongodbInternalPoc(ctx context.Context, request opera } } - res := &operations.GetSourceMongodbInternalPocResponse{ + res := &operations.GetSourceGnewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55640,11 +55700,11 @@ func (s *Sources) GetSourceMongodbInternalPoc(ctx context.Context, request opera } -// GetSourceMongodbV2 - Get Source details -func (s *Sources) GetSourceMongodbV2(ctx context.Context, request operations.GetSourceMongodbV2Request, opts ...operations.Option) (*operations.GetSourceMongodbV2Response, error) { +// GetSourceGoldcast - Get Source details +func (s *Sources) GetSourceGoldcast(ctx context.Context, request operations.GetSourceGoldcastRequest, opts ...operations.Option) (*operations.GetSourceGoldcastResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMongodbV2", + OperationID: "getSourceGoldcast", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55717,7 +55777,7 @@ func (s *Sources) GetSourceMongodbV2(ctx context.Context, request operations.Get } } - res := &operations.GetSourceMongodbV2Response{ + res := &operations.GetSourceGoldcastResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55754,11 +55814,11 @@ func (s *Sources) GetSourceMongodbV2(ctx context.Context, request operations.Get } -// GetSourceMssql - Get Source details -func (s *Sources) GetSourceMssql(ctx context.Context, request operations.GetSourceMssqlRequest, opts ...operations.Option) (*operations.GetSourceMssqlResponse, 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: "getSourceMssql", + OperationID: "getSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55831,7 +55891,7 @@ func (s *Sources) GetSourceMssql(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceMssqlResponse{ + res := &operations.GetSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55868,11 +55928,11 @@ func (s *Sources) GetSourceMssql(ctx context.Context, request operations.GetSour } -// GetSourceMyHours - Get Source details -func (s *Sources) GetSourceMyHours(ctx context.Context, request operations.GetSourceMyHoursRequest, opts ...operations.Option) (*operations.GetSourceMyHoursResponse, 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: "getSourceMyHours", + OperationID: "getSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55945,7 +56005,7 @@ func (s *Sources) GetSourceMyHours(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceMyHoursResponse{ + res := &operations.GetSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55982,11 +56042,11 @@ func (s *Sources) GetSourceMyHours(ctx context.Context, request operations.GetSo } -// GetSourceMysql - Get Source details -func (s *Sources) GetSourceMysql(ctx context.Context, request operations.GetSourceMysqlRequest, opts ...operations.Option) (*operations.GetSourceMysqlResponse, error) { +// GetSourceGoogleDirectory - Get Source details +func (s *Sources) GetSourceGoogleDirectory(ctx context.Context, request operations.GetSourceGoogleDirectoryRequest, opts ...operations.Option) (*operations.GetSourceGoogleDirectoryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMysql", + OperationID: "getSourceGoogleDirectory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56059,7 +56119,7 @@ func (s *Sources) GetSourceMysql(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceMysqlResponse{ + res := &operations.GetSourceGoogleDirectoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56096,11 +56156,11 @@ func (s *Sources) GetSourceMysql(ctx context.Context, request operations.GetSour } -// GetSourceNetsuite - Get Source details -func (s *Sources) GetSourceNetsuite(ctx context.Context, request operations.GetSourceNetsuiteRequest, opts ...operations.Option) (*operations.GetSourceNetsuiteResponse, error) { +// GetSourceGoogleDrive - Get Source details +func (s *Sources) GetSourceGoogleDrive(ctx context.Context, request operations.GetSourceGoogleDriveRequest, opts ...operations.Option) (*operations.GetSourceGoogleDriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceNetsuite", + OperationID: "getSourceGoogleDrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56173,7 +56233,7 @@ func (s *Sources) GetSourceNetsuite(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceNetsuiteResponse{ + res := &operations.GetSourceGoogleDriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56210,11 +56270,11 @@ func (s *Sources) GetSourceNetsuite(ctx context.Context, request operations.GetS } -// GetSourceNotion - Get Source details -func (s *Sources) GetSourceNotion(ctx context.Context, request operations.GetSourceNotionRequest, opts ...operations.Option) (*operations.GetSourceNotionResponse, error) { +// GetSourceGooglePagespeedInsights - Get Source details +func (s *Sources) GetSourceGooglePagespeedInsights(ctx context.Context, request operations.GetSourceGooglePagespeedInsightsRequest, opts ...operations.Option) (*operations.GetSourceGooglePagespeedInsightsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceNotion", + OperationID: "getSourceGooglePagespeedInsights", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56287,7 +56347,7 @@ func (s *Sources) GetSourceNotion(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceNotionResponse{ + res := &operations.GetSourceGooglePagespeedInsightsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56324,11 +56384,11 @@ func (s *Sources) GetSourceNotion(ctx context.Context, request operations.GetSou } -// GetSourceNytimes - Get Source details -func (s *Sources) GetSourceNytimes(ctx context.Context, request operations.GetSourceNytimesRequest, opts ...operations.Option) (*operations.GetSourceNytimesResponse, error) { +// GetSourceGoogleSearchConsole - Get Source details +func (s *Sources) GetSourceGoogleSearchConsole(ctx context.Context, request operations.GetSourceGoogleSearchConsoleRequest, opts ...operations.Option) (*operations.GetSourceGoogleSearchConsoleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceNytimes", + OperationID: "getSourceGoogleSearchConsole", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56401,7 +56461,7 @@ func (s *Sources) GetSourceNytimes(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceNytimesResponse{ + res := &operations.GetSourceGoogleSearchConsoleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56438,11 +56498,11 @@ func (s *Sources) GetSourceNytimes(ctx context.Context, request operations.GetSo } -// GetSourceOkta - Get Source details -func (s *Sources) GetSourceOkta(ctx context.Context, request operations.GetSourceOktaRequest, opts ...operations.Option) (*operations.GetSourceOktaResponse, error) { +// GetSourceGoogleSheets - Get Source details +func (s *Sources) GetSourceGoogleSheets(ctx context.Context, request operations.GetSourceGoogleSheetsRequest, opts ...operations.Option) (*operations.GetSourceGoogleSheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceOkta", + OperationID: "getSourceGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56515,7 +56575,7 @@ func (s *Sources) GetSourceOkta(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceOktaResponse{ + res := &operations.GetSourceGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56552,11 +56612,11 @@ func (s *Sources) GetSourceOkta(ctx context.Context, request operations.GetSourc } -// GetSourceOmnisend - Get Source details -func (s *Sources) GetSourceOmnisend(ctx context.Context, request operations.GetSourceOmnisendRequest, opts ...operations.Option) (*operations.GetSourceOmnisendResponse, error) { +// GetSourceGoogleWebfonts - Get Source details +func (s *Sources) GetSourceGoogleWebfonts(ctx context.Context, request operations.GetSourceGoogleWebfontsRequest, opts ...operations.Option) (*operations.GetSourceGoogleWebfontsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceOmnisend", + OperationID: "getSourceGoogleWebfonts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56629,7 +56689,7 @@ func (s *Sources) GetSourceOmnisend(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceOmnisendResponse{ + res := &operations.GetSourceGoogleWebfontsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56666,11 +56726,11 @@ func (s *Sources) GetSourceOmnisend(ctx context.Context, request operations.GetS } -// GetSourceOnesignal - Get Source details -func (s *Sources) GetSourceOnesignal(ctx context.Context, request operations.GetSourceOnesignalRequest, opts ...operations.Option) (*operations.GetSourceOnesignalResponse, error) { +// GetSourceGreenhouse - Get Source details +func (s *Sources) GetSourceGreenhouse(ctx context.Context, request operations.GetSourceGreenhouseRequest, opts ...operations.Option) (*operations.GetSourceGreenhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceOnesignal", + OperationID: "getSourceGreenhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56743,7 +56803,7 @@ func (s *Sources) GetSourceOnesignal(ctx context.Context, request operations.Get } } - res := &operations.GetSourceOnesignalResponse{ + res := &operations.GetSourceGreenhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56780,11 +56840,11 @@ func (s *Sources) GetSourceOnesignal(ctx context.Context, request operations.Get } -// GetSourceOracle - Get Source details -func (s *Sources) GetSourceOracle(ctx context.Context, request operations.GetSourceOracleRequest, opts ...operations.Option) (*operations.GetSourceOracleResponse, error) { +// GetSourceGridly - Get Source details +func (s *Sources) GetSourceGridly(ctx context.Context, request operations.GetSourceGridlyRequest, opts ...operations.Option) (*operations.GetSourceGridlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceOracle", + OperationID: "getSourceGridly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56857,7 +56917,7 @@ func (s *Sources) GetSourceOracle(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceOracleResponse{ + res := &operations.GetSourceGridlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56894,11 +56954,11 @@ func (s *Sources) GetSourceOracle(ctx context.Context, request operations.GetSou } -// GetSourceOrb - Get Source details -func (s *Sources) GetSourceOrb(ctx context.Context, request operations.GetSourceOrbRequest, opts ...operations.Option) (*operations.GetSourceOrbResponse, error) { +// GetSourceHardcodedRecords - Get Source details +func (s *Sources) GetSourceHardcodedRecords(ctx context.Context, request operations.GetSourceHardcodedRecordsRequest, opts ...operations.Option) (*operations.GetSourceHardcodedRecordsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceOrb", + OperationID: "getSourceHardcodedRecords", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56971,7 +57031,7 @@ func (s *Sources) GetSourceOrb(ctx context.Context, request operations.GetSource } } - res := &operations.GetSourceOrbResponse{ + res := &operations.GetSourceHardcodedRecordsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57008,11 +57068,11 @@ func (s *Sources) GetSourceOrb(ctx context.Context, request operations.GetSource } -// GetSourceOrbit - Get Source details -func (s *Sources) GetSourceOrbit(ctx context.Context, request operations.GetSourceOrbitRequest, opts ...operations.Option) (*operations.GetSourceOrbitResponse, error) { +// GetSourceHarvest - Get Source details +func (s *Sources) GetSourceHarvest(ctx context.Context, request operations.GetSourceHarvestRequest, opts ...operations.Option) (*operations.GetSourceHarvestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceOrbit", + OperationID: "getSourceHarvest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57085,7 +57145,7 @@ func (s *Sources) GetSourceOrbit(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceOrbitResponse{ + res := &operations.GetSourceHarvestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57122,11 +57182,11 @@ func (s *Sources) GetSourceOrbit(ctx context.Context, request operations.GetSour } -// GetSourceOutbrainAmplify - Get Source details -func (s *Sources) GetSourceOutbrainAmplify(ctx context.Context, request operations.GetSourceOutbrainAmplifyRequest, opts ...operations.Option) (*operations.GetSourceOutbrainAmplifyResponse, error) { +// GetSourceHibob - Get Source details +func (s *Sources) GetSourceHibob(ctx context.Context, request operations.GetSourceHibobRequest, opts ...operations.Option) (*operations.GetSourceHibobResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceOutbrainAmplify", + OperationID: "getSourceHibob", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57199,7 +57259,7 @@ func (s *Sources) GetSourceOutbrainAmplify(ctx context.Context, request operatio } } - res := &operations.GetSourceOutbrainAmplifyResponse{ + res := &operations.GetSourceHibobResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57236,11 +57296,11 @@ func (s *Sources) GetSourceOutbrainAmplify(ctx context.Context, request operatio } -// GetSourceOutreach - Get Source details -func (s *Sources) GetSourceOutreach(ctx context.Context, request operations.GetSourceOutreachRequest, opts ...operations.Option) (*operations.GetSourceOutreachResponse, error) { +// GetSourceHighLevel - Get Source details +func (s *Sources) GetSourceHighLevel(ctx context.Context, request operations.GetSourceHighLevelRequest, opts ...operations.Option) (*operations.GetSourceHighLevelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceOutreach", + OperationID: "getSourceHighLevel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57313,7 +57373,7 @@ func (s *Sources) GetSourceOutreach(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceOutreachResponse{ + res := &operations.GetSourceHighLevelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57350,11 +57410,11 @@ func (s *Sources) GetSourceOutreach(ctx context.Context, request operations.GetS } -// GetSourcePaypalTransaction - Get Source details -func (s *Sources) GetSourcePaypalTransaction(ctx context.Context, request operations.GetSourcePaypalTransactionRequest, opts ...operations.Option) (*operations.GetSourcePaypalTransactionResponse, error) { +// GetSourceHubplanner - Get Source details +func (s *Sources) GetSourceHubplanner(ctx context.Context, request operations.GetSourceHubplannerRequest, opts ...operations.Option) (*operations.GetSourceHubplannerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePaypalTransaction", + OperationID: "getSourceHubplanner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57427,7 +57487,7 @@ func (s *Sources) GetSourcePaypalTransaction(ctx context.Context, request operat } } - res := &operations.GetSourcePaypalTransactionResponse{ + res := &operations.GetSourceHubplannerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57464,11 +57524,11 @@ func (s *Sources) GetSourcePaypalTransaction(ctx context.Context, request operat } -// GetSourcePaystack - Get Source details -func (s *Sources) GetSourcePaystack(ctx context.Context, request operations.GetSourcePaystackRequest, opts ...operations.Option) (*operations.GetSourcePaystackResponse, error) { +// GetSourceHubspot - Get Source details +func (s *Sources) GetSourceHubspot(ctx context.Context, request operations.GetSourceHubspotRequest, opts ...operations.Option) (*operations.GetSourceHubspotResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePaystack", + OperationID: "getSourceHubspot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57541,7 +57601,7 @@ func (s *Sources) GetSourcePaystack(ctx context.Context, request operations.GetS } } - res := &operations.GetSourcePaystackResponse{ + res := &operations.GetSourceHubspotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57578,11 +57638,11 @@ func (s *Sources) GetSourcePaystack(ctx context.Context, request operations.GetS } -// GetSourcePendo - Get Source details -func (s *Sources) GetSourcePendo(ctx context.Context, request operations.GetSourcePendoRequest, opts ...operations.Option) (*operations.GetSourcePendoResponse, error) { +// GetSourceInsightly - Get Source details +func (s *Sources) GetSourceInsightly(ctx context.Context, request operations.GetSourceInsightlyRequest, opts ...operations.Option) (*operations.GetSourceInsightlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePendo", + OperationID: "getSourceInsightly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57655,7 +57715,7 @@ func (s *Sources) GetSourcePendo(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourcePendoResponse{ + res := &operations.GetSourceInsightlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57692,11 +57752,11 @@ func (s *Sources) GetSourcePendo(ctx context.Context, request operations.GetSour } -// GetSourcePersistiq - Get Source details -func (s *Sources) GetSourcePersistiq(ctx context.Context, request operations.GetSourcePersistiqRequest, opts ...operations.Option) (*operations.GetSourcePersistiqResponse, error) { +// GetSourceInstagram - Get Source details +func (s *Sources) GetSourceInstagram(ctx context.Context, request operations.GetSourceInstagramRequest, opts ...operations.Option) (*operations.GetSourceInstagramResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePersistiq", + OperationID: "getSourceInstagram", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57769,7 +57829,7 @@ func (s *Sources) GetSourcePersistiq(ctx context.Context, request operations.Get } } - res := &operations.GetSourcePersistiqResponse{ + res := &operations.GetSourceInstagramResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57806,11 +57866,11 @@ func (s *Sources) GetSourcePersistiq(ctx context.Context, request operations.Get } -// GetSourcePexelsAPI - Get Source details -func (s *Sources) GetSourcePexelsAPI(ctx context.Context, request operations.GetSourcePexelsAPIRequest, opts ...operations.Option) (*operations.GetSourcePexelsAPIResponse, error) { +// GetSourceInstatus - Get Source details +func (s *Sources) GetSourceInstatus(ctx context.Context, request operations.GetSourceInstatusRequest, opts ...operations.Option) (*operations.GetSourceInstatusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePexelsApi", + OperationID: "getSourceInstatus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57883,7 +57943,7 @@ func (s *Sources) GetSourcePexelsAPI(ctx context.Context, request operations.Get } } - res := &operations.GetSourcePexelsAPIResponse{ + res := &operations.GetSourceInstatusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57920,11 +57980,11 @@ func (s *Sources) GetSourcePexelsAPI(ctx context.Context, request operations.Get } -// GetSourcePinterest - Get Source details -func (s *Sources) GetSourcePinterest(ctx context.Context, request operations.GetSourcePinterestRequest, opts ...operations.Option) (*operations.GetSourcePinterestResponse, error) { +// GetSourceIntercom - Get Source details +func (s *Sources) GetSourceIntercom(ctx context.Context, request operations.GetSourceIntercomRequest, opts ...operations.Option) (*operations.GetSourceIntercomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePinterest", + OperationID: "getSourceIntercom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57997,7 +58057,7 @@ func (s *Sources) GetSourcePinterest(ctx context.Context, request operations.Get } } - res := &operations.GetSourcePinterestResponse{ + res := &operations.GetSourceIntercomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58034,11 +58094,11 @@ func (s *Sources) GetSourcePinterest(ctx context.Context, request operations.Get } -// GetSourcePipedrive - Get Source details -func (s *Sources) GetSourcePipedrive(ctx context.Context, request operations.GetSourcePipedriveRequest, opts ...operations.Option) (*operations.GetSourcePipedriveResponse, error) { +// GetSourceIp2whois - Get Source details +func (s *Sources) GetSourceIp2whois(ctx context.Context, request operations.GetSourceIp2whoisRequest, opts ...operations.Option) (*operations.GetSourceIp2whoisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePipedrive", + OperationID: "getSourceIp2whois", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58111,7 +58171,7 @@ func (s *Sources) GetSourcePipedrive(ctx context.Context, request operations.Get } } - res := &operations.GetSourcePipedriveResponse{ + res := &operations.GetSourceIp2whoisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58148,11 +58208,11 @@ func (s *Sources) GetSourcePipedrive(ctx context.Context, request operations.Get } -// GetSourcePocket - Get Source details -func (s *Sources) GetSourcePocket(ctx context.Context, request operations.GetSourcePocketRequest, opts ...operations.Option) (*operations.GetSourcePocketResponse, error) { +// GetSourceIterable - Get Source details +func (s *Sources) GetSourceIterable(ctx context.Context, request operations.GetSourceIterableRequest, opts ...operations.Option) (*operations.GetSourceIterableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePocket", + OperationID: "getSourceIterable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58225,7 +58285,7 @@ func (s *Sources) GetSourcePocket(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourcePocketResponse{ + res := &operations.GetSourceIterableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58262,11 +58322,11 @@ func (s *Sources) GetSourcePocket(ctx context.Context, request operations.GetSou } -// GetSourcePokeapi - Get Source details -func (s *Sources) GetSourcePokeapi(ctx context.Context, request operations.GetSourcePokeapiRequest, opts ...operations.Option) (*operations.GetSourcePokeapiResponse, error) { +// GetSourceJira - Get Source details +func (s *Sources) GetSourceJira(ctx context.Context, request operations.GetSourceJiraRequest, opts ...operations.Option) (*operations.GetSourceJiraResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePokeapi", + OperationID: "getSourceJira", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58339,7 +58399,7 @@ func (s *Sources) GetSourcePokeapi(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourcePokeapiResponse{ + res := &operations.GetSourceJiraResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58376,11 +58436,11 @@ func (s *Sources) GetSourcePokeapi(ctx context.Context, request operations.GetSo } -// GetSourcePolygonStockAPI - Get Source details -func (s *Sources) GetSourcePolygonStockAPI(ctx context.Context, request operations.GetSourcePolygonStockAPIRequest, opts ...operations.Option) (*operations.GetSourcePolygonStockAPIResponse, error) { +// GetSourceK6Cloud - Get Source details +func (s *Sources) GetSourceK6Cloud(ctx context.Context, request operations.GetSourceK6CloudRequest, opts ...operations.Option) (*operations.GetSourceK6CloudResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePolygonStockApi", + OperationID: "getSourceK6Cloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58453,7 +58513,7 @@ func (s *Sources) GetSourcePolygonStockAPI(ctx context.Context, request operatio } } - res := &operations.GetSourcePolygonStockAPIResponse{ + res := &operations.GetSourceK6CloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58490,11 +58550,11 @@ func (s *Sources) GetSourcePolygonStockAPI(ctx context.Context, request operatio } -// GetSourcePostgres - Get Source details -func (s *Sources) GetSourcePostgres(ctx context.Context, request operations.GetSourcePostgresRequest, opts ...operations.Option) (*operations.GetSourcePostgresResponse, error) { +// GetSourceKlarna - Get Source details +func (s *Sources) GetSourceKlarna(ctx context.Context, request operations.GetSourceKlarnaRequest, opts ...operations.Option) (*operations.GetSourceKlarnaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePostgres", + OperationID: "getSourceKlarna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58567,7 +58627,7 @@ func (s *Sources) GetSourcePostgres(ctx context.Context, request operations.GetS } } - res := &operations.GetSourcePostgresResponse{ + res := &operations.GetSourceKlarnaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58604,11 +58664,11 @@ func (s *Sources) GetSourcePostgres(ctx context.Context, request operations.GetS } -// GetSourcePosthog - Get Source details -func (s *Sources) GetSourcePosthog(ctx context.Context, request operations.GetSourcePosthogRequest, opts ...operations.Option) (*operations.GetSourcePosthogResponse, error) { +// GetSourceKlaviyo - Get Source details +func (s *Sources) GetSourceKlaviyo(ctx context.Context, request operations.GetSourceKlaviyoRequest, opts ...operations.Option) (*operations.GetSourceKlaviyoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePosthog", + OperationID: "getSourceKlaviyo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58681,7 +58741,7 @@ func (s *Sources) GetSourcePosthog(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourcePosthogResponse{ + res := &operations.GetSourceKlaviyoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58718,11 +58778,11 @@ func (s *Sources) GetSourcePosthog(ctx context.Context, request operations.GetSo } -// GetSourcePostmarkapp - Get Source details -func (s *Sources) GetSourcePostmarkapp(ctx context.Context, request operations.GetSourcePostmarkappRequest, opts ...operations.Option) (*operations.GetSourcePostmarkappResponse, error) { +// GetSourceKyve - Get Source details +func (s *Sources) GetSourceKyve(ctx context.Context, request operations.GetSourceKyveRequest, opts ...operations.Option) (*operations.GetSourceKyveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePostmarkapp", + OperationID: "getSourceKyve", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58795,7 +58855,7 @@ func (s *Sources) GetSourcePostmarkapp(ctx context.Context, request operations.G } } - res := &operations.GetSourcePostmarkappResponse{ + res := &operations.GetSourceKyveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58832,11 +58892,11 @@ func (s *Sources) GetSourcePostmarkapp(ctx context.Context, request operations.G } -// GetSourcePrestashop - Get Source details -func (s *Sources) GetSourcePrestashop(ctx context.Context, request operations.GetSourcePrestashopRequest, opts ...operations.Option) (*operations.GetSourcePrestashopResponse, error) { +// GetSourceLaunchdarkly - Get Source details +func (s *Sources) GetSourceLaunchdarkly(ctx context.Context, request operations.GetSourceLaunchdarklyRequest, opts ...operations.Option) (*operations.GetSourceLaunchdarklyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePrestashop", + OperationID: "getSourceLaunchdarkly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58909,7 +58969,7 @@ func (s *Sources) GetSourcePrestashop(ctx context.Context, request operations.Ge } } - res := &operations.GetSourcePrestashopResponse{ + res := &operations.GetSourceLaunchdarklyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58946,11 +59006,11 @@ 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) { +// GetSourceLeadfeeder - Get Source details +func (s *Sources) GetSourceLeadfeeder(ctx context.Context, request operations.GetSourceLeadfeederRequest, opts ...operations.Option) (*operations.GetSourceLeadfeederResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePunkApi", + OperationID: "getSourceLeadfeeder", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59023,7 +59083,7 @@ func (s *Sources) GetSourcePunkAPI(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourcePunkAPIResponse{ + res := &operations.GetSourceLeadfeederResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59060,11 +59120,11 @@ func (s *Sources) GetSourcePunkAPI(ctx context.Context, request operations.GetSo } -// GetSourcePypi - Get Source details -func (s *Sources) GetSourcePypi(ctx context.Context, request operations.GetSourcePypiRequest, opts ...operations.Option) (*operations.GetSourcePypiResponse, error) { +// GetSourceLemlist - Get Source details +func (s *Sources) GetSourceLemlist(ctx context.Context, request operations.GetSourceLemlistRequest, opts ...operations.Option) (*operations.GetSourceLemlistResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePypi", + OperationID: "getSourceLemlist", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59137,7 +59197,7 @@ func (s *Sources) GetSourcePypi(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourcePypiResponse{ + res := &operations.GetSourceLemlistResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59174,11 +59234,11 @@ func (s *Sources) GetSourcePypi(ctx context.Context, request operations.GetSourc } -// GetSourceQualaroo - Get Source details -func (s *Sources) GetSourceQualaroo(ctx context.Context, request operations.GetSourceQualarooRequest, opts ...operations.Option) (*operations.GetSourceQualarooResponse, error) { +// GetSourceLeverHiring - Get Source details +func (s *Sources) GetSourceLeverHiring(ctx context.Context, request operations.GetSourceLeverHiringRequest, opts ...operations.Option) (*operations.GetSourceLeverHiringResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceQualaroo", + OperationID: "getSourceLeverHiring", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59251,7 +59311,7 @@ func (s *Sources) GetSourceQualaroo(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceQualarooResponse{ + res := &operations.GetSourceLeverHiringResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59288,11 +59348,11 @@ func (s *Sources) GetSourceQualaroo(ctx context.Context, request operations.GetS } -// GetSourceRailz - Get Source details -func (s *Sources) GetSourceRailz(ctx context.Context, request operations.GetSourceRailzRequest, opts ...operations.Option) (*operations.GetSourceRailzResponse, error) { +// GetSourceLinkedinAds - Get Source details +func (s *Sources) GetSourceLinkedinAds(ctx context.Context, request operations.GetSourceLinkedinAdsRequest, opts ...operations.Option) (*operations.GetSourceLinkedinAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceRailz", + OperationID: "getSourceLinkedinAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59365,7 +59425,7 @@ func (s *Sources) GetSourceRailz(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceRailzResponse{ + res := &operations.GetSourceLinkedinAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59402,11 +59462,11 @@ func (s *Sources) GetSourceRailz(ctx context.Context, request operations.GetSour } -// GetSourceRecharge - Get Source details -func (s *Sources) GetSourceRecharge(ctx context.Context, request operations.GetSourceRechargeRequest, opts ...operations.Option) (*operations.GetSourceRechargeResponse, error) { +// GetSourceLinkedinPages - Get Source details +func (s *Sources) GetSourceLinkedinPages(ctx context.Context, request operations.GetSourceLinkedinPagesRequest, opts ...operations.Option) (*operations.GetSourceLinkedinPagesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceRecharge", + OperationID: "getSourceLinkedinPages", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59479,7 +59539,7 @@ func (s *Sources) GetSourceRecharge(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceRechargeResponse{ + res := &operations.GetSourceLinkedinPagesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59516,11 +59576,11 @@ func (s *Sources) GetSourceRecharge(ctx context.Context, request operations.GetS } -// GetSourceRecreation - Get Source details -func (s *Sources) GetSourceRecreation(ctx context.Context, request operations.GetSourceRecreationRequest, opts ...operations.Option) (*operations.GetSourceRecreationResponse, error) { +// GetSourceLinnworks - Get Source details +func (s *Sources) GetSourceLinnworks(ctx context.Context, request operations.GetSourceLinnworksRequest, opts ...operations.Option) (*operations.GetSourceLinnworksResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceRecreation", + OperationID: "getSourceLinnworks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59593,7 +59653,7 @@ func (s *Sources) GetSourceRecreation(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceRecreationResponse{ + res := &operations.GetSourceLinnworksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59630,11 +59690,11 @@ func (s *Sources) GetSourceRecreation(ctx context.Context, request operations.Ge } -// GetSourceRecruitee - Get Source details -func (s *Sources) GetSourceRecruitee(ctx context.Context, request operations.GetSourceRecruiteeRequest, opts ...operations.Option) (*operations.GetSourceRecruiteeResponse, error) { +// GetSourceLokalise - Get Source details +func (s *Sources) GetSourceLokalise(ctx context.Context, request operations.GetSourceLokaliseRequest, opts ...operations.Option) (*operations.GetSourceLokaliseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceRecruitee", + OperationID: "getSourceLokalise", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59707,7 +59767,7 @@ func (s *Sources) GetSourceRecruitee(ctx context.Context, request operations.Get } } - res := &operations.GetSourceRecruiteeResponse{ + res := &operations.GetSourceLokaliseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59744,11 +59804,11 @@ func (s *Sources) GetSourceRecruitee(ctx context.Context, request operations.Get } -// GetSourceRecurly - Get Source details -func (s *Sources) GetSourceRecurly(ctx context.Context, request operations.GetSourceRecurlyRequest, opts ...operations.Option) (*operations.GetSourceRecurlyResponse, error) { +// GetSourceLooker - Get Source details +func (s *Sources) GetSourceLooker(ctx context.Context, request operations.GetSourceLookerRequest, opts ...operations.Option) (*operations.GetSourceLookerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceRecurly", + OperationID: "getSourceLooker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59821,7 +59881,7 @@ func (s *Sources) GetSourceRecurly(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceRecurlyResponse{ + res := &operations.GetSourceLookerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59858,11 +59918,11 @@ func (s *Sources) GetSourceRecurly(ctx context.Context, request operations.GetSo } -// GetSourceRedshift - Get Source details -func (s *Sources) GetSourceRedshift(ctx context.Context, request operations.GetSourceRedshiftRequest, opts ...operations.Option) (*operations.GetSourceRedshiftResponse, error) { +// GetSourceLuma - Get Source details +func (s *Sources) GetSourceLuma(ctx context.Context, request operations.GetSourceLumaRequest, opts ...operations.Option) (*operations.GetSourceLumaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceRedshift", + OperationID: "getSourceLuma", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59935,7 +59995,7 @@ func (s *Sources) GetSourceRedshift(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceRedshiftResponse{ + res := &operations.GetSourceLumaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59972,11 +60032,11 @@ func (s *Sources) GetSourceRedshift(ctx context.Context, request operations.GetS } -// GetSourceRetently - Get Source details -func (s *Sources) GetSourceRetently(ctx context.Context, request operations.GetSourceRetentlyRequest, opts ...operations.Option) (*operations.GetSourceRetentlyResponse, error) { +// GetSourceMailchimp - Get Source details +func (s *Sources) GetSourceMailchimp(ctx context.Context, request operations.GetSourceMailchimpRequest, opts ...operations.Option) (*operations.GetSourceMailchimpResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceRetently", + OperationID: "getSourceMailchimp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60049,7 +60109,7 @@ func (s *Sources) GetSourceRetently(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceRetentlyResponse{ + res := &operations.GetSourceMailchimpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60086,11 +60146,11 @@ func (s *Sources) GetSourceRetently(ctx context.Context, request operations.GetS } -// GetSourceRkiCovid - Get Source details -func (s *Sources) GetSourceRkiCovid(ctx context.Context, request operations.GetSourceRkiCovidRequest, opts ...operations.Option) (*operations.GetSourceRkiCovidResponse, error) { +// GetSourceMailgun - Get Source details +func (s *Sources) GetSourceMailgun(ctx context.Context, request operations.GetSourceMailgunRequest, opts ...operations.Option) (*operations.GetSourceMailgunResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceRkiCovid", + OperationID: "getSourceMailgun", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60163,7 +60223,7 @@ func (s *Sources) GetSourceRkiCovid(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceRkiCovidResponse{ + res := &operations.GetSourceMailgunResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60200,11 +60260,11 @@ func (s *Sources) GetSourceRkiCovid(ctx context.Context, request operations.GetS } -// GetSourceRss - Get Source details -func (s *Sources) GetSourceRss(ctx context.Context, request operations.GetSourceRssRequest, opts ...operations.Option) (*operations.GetSourceRssResponse, error) { +// GetSourceMailjetSms - Get Source details +func (s *Sources) GetSourceMailjetSms(ctx context.Context, request operations.GetSourceMailjetSmsRequest, opts ...operations.Option) (*operations.GetSourceMailjetSmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceRss", + OperationID: "getSourceMailjetSms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60277,7 +60337,7 @@ func (s *Sources) GetSourceRss(ctx context.Context, request operations.GetSource } } - res := &operations.GetSourceRssResponse{ + res := &operations.GetSourceMailjetSmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60314,11 +60374,11 @@ func (s *Sources) GetSourceRss(ctx context.Context, request operations.GetSource } -// GetSourceS3 - Get Source details -func (s *Sources) GetSourceS3(ctx context.Context, request operations.GetSourceS3Request, opts ...operations.Option) (*operations.GetSourceS3Response, error) { +// GetSourceMarketo - Get Source details +func (s *Sources) GetSourceMarketo(ctx context.Context, request operations.GetSourceMarketoRequest, opts ...operations.Option) (*operations.GetSourceMarketoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceS3", + OperationID: "getSourceMarketo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60391,7 +60451,7 @@ func (s *Sources) GetSourceS3(ctx context.Context, request operations.GetSourceS } } - res := &operations.GetSourceS3Response{ + res := &operations.GetSourceMarketoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60428,11 +60488,11 @@ func (s *Sources) GetSourceS3(ctx context.Context, request operations.GetSourceS } -// GetSourceSalesforce - Get Source details -func (s *Sources) GetSourceSalesforce(ctx context.Context, request operations.GetSourceSalesforceRequest, opts ...operations.Option) (*operations.GetSourceSalesforceResponse, error) { +// GetSourceMetabase - Get Source details +func (s *Sources) GetSourceMetabase(ctx context.Context, request operations.GetSourceMetabaseRequest, opts ...operations.Option) (*operations.GetSourceMetabaseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSalesforce", + OperationID: "getSourceMetabase", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60505,7 +60565,7 @@ func (s *Sources) GetSourceSalesforce(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceSalesforceResponse{ + res := &operations.GetSourceMetabaseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60542,11 +60602,11 @@ func (s *Sources) GetSourceSalesforce(ctx context.Context, request operations.Ge } -// GetSourceSalesloft - Get Source details -func (s *Sources) GetSourceSalesloft(ctx context.Context, request operations.GetSourceSalesloftRequest, opts ...operations.Option) (*operations.GetSourceSalesloftResponse, error) { +// GetSourceMicrosoftOnedrive - Get Source details +func (s *Sources) GetSourceMicrosoftOnedrive(ctx context.Context, request operations.GetSourceMicrosoftOnedriveRequest, opts ...operations.Option) (*operations.GetSourceMicrosoftOnedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSalesloft", + OperationID: "getSourceMicrosoftOnedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60619,7 +60679,7 @@ func (s *Sources) GetSourceSalesloft(ctx context.Context, request operations.Get } } - res := &operations.GetSourceSalesloftResponse{ + res := &operations.GetSourceMicrosoftOnedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60656,11 +60716,11 @@ func (s *Sources) GetSourceSalesloft(ctx context.Context, request operations.Get } -// GetSourceSapFieldglass - Get Source details -func (s *Sources) GetSourceSapFieldglass(ctx context.Context, request operations.GetSourceSapFieldglassRequest, opts ...operations.Option) (*operations.GetSourceSapFieldglassResponse, error) { +// GetSourceMicrosoftSharepoint - Get Source details +func (s *Sources) GetSourceMicrosoftSharepoint(ctx context.Context, request operations.GetSourceMicrosoftSharepointRequest, opts ...operations.Option) (*operations.GetSourceMicrosoftSharepointResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSapFieldglass", + OperationID: "getSourceMicrosoftSharepoint", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60733,7 +60793,7 @@ func (s *Sources) GetSourceSapFieldglass(ctx context.Context, request operations } } - res := &operations.GetSourceSapFieldglassResponse{ + res := &operations.GetSourceMicrosoftSharepointResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60770,11 +60830,11 @@ func (s *Sources) GetSourceSapFieldglass(ctx context.Context, request operations } -// GetSourceSecoda - Get Source details -func (s *Sources) GetSourceSecoda(ctx context.Context, request operations.GetSourceSecodaRequest, opts ...operations.Option) (*operations.GetSourceSecodaResponse, error) { +// GetSourceMicrosoftTeams - Get Source details +func (s *Sources) GetSourceMicrosoftTeams(ctx context.Context, request operations.GetSourceMicrosoftTeamsRequest, opts ...operations.Option) (*operations.GetSourceMicrosoftTeamsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSecoda", + OperationID: "getSourceMicrosoftTeams", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60847,7 +60907,7 @@ func (s *Sources) GetSourceSecoda(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceSecodaResponse{ + res := &operations.GetSourceMicrosoftTeamsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60884,11 +60944,11 @@ func (s *Sources) GetSourceSecoda(ctx context.Context, request operations.GetSou } -// GetSourceSendgrid - Get Source details -func (s *Sources) GetSourceSendgrid(ctx context.Context, request operations.GetSourceSendgridRequest, opts ...operations.Option) (*operations.GetSourceSendgridResponse, error) { +// GetSourceMixpanel - Get Source details +func (s *Sources) GetSourceMixpanel(ctx context.Context, request operations.GetSourceMixpanelRequest, opts ...operations.Option) (*operations.GetSourceMixpanelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSendgrid", + OperationID: "getSourceMixpanel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60961,7 +61021,7 @@ func (s *Sources) GetSourceSendgrid(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceSendgridResponse{ + res := &operations.GetSourceMixpanelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60998,11 +61058,11 @@ func (s *Sources) GetSourceSendgrid(ctx context.Context, request operations.GetS } -// GetSourceSendinblue - Get Source details -func (s *Sources) GetSourceSendinblue(ctx context.Context, request operations.GetSourceSendinblueRequest, opts ...operations.Option) (*operations.GetSourceSendinblueResponse, error) { +// GetSourceMonday - Get Source details +func (s *Sources) GetSourceMonday(ctx context.Context, request operations.GetSourceMondayRequest, opts ...operations.Option) (*operations.GetSourceMondayResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSendinblue", + OperationID: "getSourceMonday", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61075,7 +61135,7 @@ func (s *Sources) GetSourceSendinblue(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceSendinblueResponse{ + res := &operations.GetSourceMondayResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61112,11 +61172,11 @@ func (s *Sources) GetSourceSendinblue(ctx context.Context, request operations.Ge } -// GetSourceSenseforce - Get Source details -func (s *Sources) GetSourceSenseforce(ctx context.Context, request operations.GetSourceSenseforceRequest, opts ...operations.Option) (*operations.GetSourceSenseforceResponse, error) { +// GetSourceMongodbV2 - Get Source details +func (s *Sources) GetSourceMongodbV2(ctx context.Context, request operations.GetSourceMongodbV2Request, opts ...operations.Option) (*operations.GetSourceMongodbV2Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSenseforce", + OperationID: "getSourceMongodbV2", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61189,7 +61249,7 @@ func (s *Sources) GetSourceSenseforce(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceSenseforceResponse{ + res := &operations.GetSourceMongodbV2Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61226,11 +61286,11 @@ func (s *Sources) GetSourceSenseforce(ctx context.Context, request operations.Ge } -// GetSourceSentry - Get Source details -func (s *Sources) GetSourceSentry(ctx context.Context, request operations.GetSourceSentryRequest, opts ...operations.Option) (*operations.GetSourceSentryResponse, error) { +// GetSourceMssql - Get Source details +func (s *Sources) GetSourceMssql(ctx context.Context, request operations.GetSourceMssqlRequest, opts ...operations.Option) (*operations.GetSourceMssqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSentry", + OperationID: "getSourceMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61303,7 +61363,7 @@ func (s *Sources) GetSourceSentry(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceSentryResponse{ + res := &operations.GetSourceMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61340,11 +61400,11 @@ func (s *Sources) GetSourceSentry(ctx context.Context, request operations.GetSou } -// GetSourceSftp - Get Source details -func (s *Sources) GetSourceSftp(ctx context.Context, request operations.GetSourceSftpRequest, opts ...operations.Option) (*operations.GetSourceSftpResponse, error) { +// GetSourceMyHours - Get Source details +func (s *Sources) GetSourceMyHours(ctx context.Context, request operations.GetSourceMyHoursRequest, opts ...operations.Option) (*operations.GetSourceMyHoursResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSftp", + OperationID: "getSourceMyHours", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61417,7 +61477,7 @@ func (s *Sources) GetSourceSftp(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceSftpResponse{ + res := &operations.GetSourceMyHoursResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61454,11 +61514,11 @@ func (s *Sources) GetSourceSftp(ctx context.Context, request operations.GetSourc } -// GetSourceSftpBulk - Get Source details -func (s *Sources) GetSourceSftpBulk(ctx context.Context, request operations.GetSourceSftpBulkRequest, opts ...operations.Option) (*operations.GetSourceSftpBulkResponse, error) { +// GetSourceMysql - Get Source details +func (s *Sources) GetSourceMysql(ctx context.Context, request operations.GetSourceMysqlRequest, opts ...operations.Option) (*operations.GetSourceMysqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSftpBulk", + OperationID: "getSourceMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61531,7 +61591,7 @@ func (s *Sources) GetSourceSftpBulk(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceSftpBulkResponse{ + res := &operations.GetSourceMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61568,11 +61628,11 @@ func (s *Sources) GetSourceSftpBulk(ctx context.Context, request operations.GetS } -// GetSourceShopify - Get Source details -func (s *Sources) GetSourceShopify(ctx context.Context, request operations.GetSourceShopifyRequest, opts ...operations.Option) (*operations.GetSourceShopifyResponse, error) { +// GetSourceNetsuite - Get Source details +func (s *Sources) GetSourceNetsuite(ctx context.Context, request operations.GetSourceNetsuiteRequest, opts ...operations.Option) (*operations.GetSourceNetsuiteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceShopify", + OperationID: "getSourceNetsuite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61645,7 +61705,7 @@ func (s *Sources) GetSourceShopify(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceShopifyResponse{ + res := &operations.GetSourceNetsuiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61682,11 +61742,11 @@ func (s *Sources) GetSourceShopify(ctx context.Context, request operations.GetSo } -// GetSourceShortio - Get Source details -func (s *Sources) GetSourceShortio(ctx context.Context, request operations.GetSourceShortioRequest, opts ...operations.Option) (*operations.GetSourceShortioResponse, error) { +// GetSourceNorthpassLms - Get Source details +func (s *Sources) GetSourceNorthpassLms(ctx context.Context, request operations.GetSourceNorthpassLmsRequest, opts ...operations.Option) (*operations.GetSourceNorthpassLmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceShortio", + OperationID: "getSourceNorthpassLms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61759,7 +61819,7 @@ func (s *Sources) GetSourceShortio(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceShortioResponse{ + res := &operations.GetSourceNorthpassLmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61796,11 +61856,11 @@ func (s *Sources) GetSourceShortio(ctx context.Context, request operations.GetSo } -// GetSourceSlack - Get Source details -func (s *Sources) GetSourceSlack(ctx context.Context, request operations.GetSourceSlackRequest, opts ...operations.Option) (*operations.GetSourceSlackResponse, error) { +// GetSourceNotion - Get Source details +func (s *Sources) GetSourceNotion(ctx context.Context, request operations.GetSourceNotionRequest, opts ...operations.Option) (*operations.GetSourceNotionResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSlack", + OperationID: "getSourceNotion", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61873,7 +61933,7 @@ func (s *Sources) GetSourceSlack(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceSlackResponse{ + res := &operations.GetSourceNotionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61910,11 +61970,11 @@ func (s *Sources) GetSourceSlack(ctx context.Context, request operations.GetSour } -// GetSourceSmaily - Get Source details -func (s *Sources) GetSourceSmaily(ctx context.Context, request operations.GetSourceSmailyRequest, opts ...operations.Option) (*operations.GetSourceSmailyResponse, error) { +// GetSourceNytimes - Get Source details +func (s *Sources) GetSourceNytimes(ctx context.Context, request operations.GetSourceNytimesRequest, opts ...operations.Option) (*operations.GetSourceNytimesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSmaily", + OperationID: "getSourceNytimes", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61987,7 +62047,7 @@ func (s *Sources) GetSourceSmaily(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceSmailyResponse{ + res := &operations.GetSourceNytimesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62024,11 +62084,11 @@ func (s *Sources) GetSourceSmaily(ctx context.Context, request operations.GetSou } -// GetSourceSmartengage - Get Source details -func (s *Sources) GetSourceSmartengage(ctx context.Context, request operations.GetSourceSmartengageRequest, opts ...operations.Option) (*operations.GetSourceSmartengageResponse, error) { +// GetSourceOkta - Get Source details +func (s *Sources) GetSourceOkta(ctx context.Context, request operations.GetSourceOktaRequest, opts ...operations.Option) (*operations.GetSourceOktaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSmartengage", + OperationID: "getSourceOkta", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62101,7 +62161,7 @@ func (s *Sources) GetSourceSmartengage(ctx context.Context, request operations.G } } - res := &operations.GetSourceSmartengageResponse{ + res := &operations.GetSourceOktaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62138,11 +62198,11 @@ func (s *Sources) GetSourceSmartengage(ctx context.Context, request operations.G } -// GetSourceSmartsheets - Get Source details -func (s *Sources) GetSourceSmartsheets(ctx context.Context, request operations.GetSourceSmartsheetsRequest, opts ...operations.Option) (*operations.GetSourceSmartsheetsResponse, error) { +// GetSourceOmnisend - Get Source details +func (s *Sources) GetSourceOmnisend(ctx context.Context, request operations.GetSourceOmnisendRequest, opts ...operations.Option) (*operations.GetSourceOmnisendResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSmartsheets", + OperationID: "getSourceOmnisend", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62215,7 +62275,7 @@ func (s *Sources) GetSourceSmartsheets(ctx context.Context, request operations.G } } - res := &operations.GetSourceSmartsheetsResponse{ + res := &operations.GetSourceOmnisendResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62252,11 +62312,11 @@ func (s *Sources) GetSourceSmartsheets(ctx context.Context, request operations.G } -// GetSourceSnapchatMarketing - Get Source details -func (s *Sources) GetSourceSnapchatMarketing(ctx context.Context, request operations.GetSourceSnapchatMarketingRequest, opts ...operations.Option) (*operations.GetSourceSnapchatMarketingResponse, error) { +// GetSourceOnesignal - Get Source details +func (s *Sources) GetSourceOnesignal(ctx context.Context, request operations.GetSourceOnesignalRequest, opts ...operations.Option) (*operations.GetSourceOnesignalResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSnapchatMarketing", + OperationID: "getSourceOnesignal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62329,7 +62389,7 @@ func (s *Sources) GetSourceSnapchatMarketing(ctx context.Context, request operat } } - res := &operations.GetSourceSnapchatMarketingResponse{ + res := &operations.GetSourceOnesignalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62366,11 +62426,11 @@ func (s *Sources) GetSourceSnapchatMarketing(ctx context.Context, request operat } -// GetSourceSnowflake - Get Source details -func (s *Sources) GetSourceSnowflake(ctx context.Context, request operations.GetSourceSnowflakeRequest, opts ...operations.Option) (*operations.GetSourceSnowflakeResponse, error) { +// GetSourceOracle - Get Source details +func (s *Sources) GetSourceOracle(ctx context.Context, request operations.GetSourceOracleRequest, opts ...operations.Option) (*operations.GetSourceOracleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSnowflake", + OperationID: "getSourceOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62443,7 +62503,7 @@ func (s *Sources) GetSourceSnowflake(ctx context.Context, request operations.Get } } - res := &operations.GetSourceSnowflakeResponse{ + res := &operations.GetSourceOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62480,11 +62540,11 @@ func (s *Sources) GetSourceSnowflake(ctx context.Context, request operations.Get } -// GetSourceSonarCloud - Get Source details -func (s *Sources) GetSourceSonarCloud(ctx context.Context, request operations.GetSourceSonarCloudRequest, opts ...operations.Option) (*operations.GetSourceSonarCloudResponse, error) { +// GetSourceOrb - Get Source details +func (s *Sources) GetSourceOrb(ctx context.Context, request operations.GetSourceOrbRequest, opts ...operations.Option) (*operations.GetSourceOrbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSonarCloud", + OperationID: "getSourceOrb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62557,7 +62617,7 @@ func (s *Sources) GetSourceSonarCloud(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceSonarCloudResponse{ + res := &operations.GetSourceOrbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62594,11 +62654,11 @@ func (s *Sources) GetSourceSonarCloud(ctx context.Context, request operations.Ge } -// GetSourceSpacexAPI - Get Source details -func (s *Sources) GetSourceSpacexAPI(ctx context.Context, request operations.GetSourceSpacexAPIRequest, opts ...operations.Option) (*operations.GetSourceSpacexAPIResponse, error) { +// GetSourceOrbit - Get Source details +func (s *Sources) GetSourceOrbit(ctx context.Context, request operations.GetSourceOrbitRequest, opts ...operations.Option) (*operations.GetSourceOrbitResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSpacexApi", + OperationID: "getSourceOrbit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62671,7 +62731,7 @@ func (s *Sources) GetSourceSpacexAPI(ctx context.Context, request operations.Get } } - res := &operations.GetSourceSpacexAPIResponse{ + res := &operations.GetSourceOrbitResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62708,11 +62768,11 @@ func (s *Sources) GetSourceSpacexAPI(ctx context.Context, request operations.Get } -// GetSourceSquare - Get Source details -func (s *Sources) GetSourceSquare(ctx context.Context, request operations.GetSourceSquareRequest, opts ...operations.Option) (*operations.GetSourceSquareResponse, error) { +// GetSourceOutbrainAmplify - Get Source details +func (s *Sources) GetSourceOutbrainAmplify(ctx context.Context, request operations.GetSourceOutbrainAmplifyRequest, opts ...operations.Option) (*operations.GetSourceOutbrainAmplifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSquare", + OperationID: "getSourceOutbrainAmplify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62785,7 +62845,7 @@ func (s *Sources) GetSourceSquare(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceSquareResponse{ + res := &operations.GetSourceOutbrainAmplifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62822,11 +62882,11 @@ func (s *Sources) GetSourceSquare(ctx context.Context, request operations.GetSou } -// GetSourceStrava - Get Source details -func (s *Sources) GetSourceStrava(ctx context.Context, request operations.GetSourceStravaRequest, opts ...operations.Option) (*operations.GetSourceStravaResponse, error) { +// GetSourceOutreach - Get Source details +func (s *Sources) GetSourceOutreach(ctx context.Context, request operations.GetSourceOutreachRequest, opts ...operations.Option) (*operations.GetSourceOutreachResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceStrava", + OperationID: "getSourceOutreach", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62899,7 +62959,7 @@ func (s *Sources) GetSourceStrava(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceStravaResponse{ + res := &operations.GetSourceOutreachResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62936,11 +62996,11 @@ func (s *Sources) GetSourceStrava(ctx context.Context, request operations.GetSou } -// GetSourceStripe - Get Source details -func (s *Sources) GetSourceStripe(ctx context.Context, request operations.GetSourceStripeRequest, opts ...operations.Option) (*operations.GetSourceStripeResponse, error) { +// GetSourcePaypalTransaction - Get Source details +func (s *Sources) GetSourcePaypalTransaction(ctx context.Context, request operations.GetSourcePaypalTransactionRequest, opts ...operations.Option) (*operations.GetSourcePaypalTransactionResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceStripe", + OperationID: "getSourcePaypalTransaction", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63013,7 +63073,7 @@ func (s *Sources) GetSourceStripe(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceStripeResponse{ + res := &operations.GetSourcePaypalTransactionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63050,11 +63110,11 @@ func (s *Sources) GetSourceStripe(ctx context.Context, request operations.GetSou } -// GetSourceSurveySparrow - Get Source details -func (s *Sources) GetSourceSurveySparrow(ctx context.Context, request operations.GetSourceSurveySparrowRequest, opts ...operations.Option) (*operations.GetSourceSurveySparrowResponse, error) { +// GetSourcePaystack - Get Source details +func (s *Sources) GetSourcePaystack(ctx context.Context, request operations.GetSourcePaystackRequest, opts ...operations.Option) (*operations.GetSourcePaystackResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSurveySparrow", + OperationID: "getSourcePaystack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63127,7 +63187,7 @@ func (s *Sources) GetSourceSurveySparrow(ctx context.Context, request operations } } - res := &operations.GetSourceSurveySparrowResponse{ + res := &operations.GetSourcePaystackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63164,11 +63224,11 @@ func (s *Sources) GetSourceSurveySparrow(ctx context.Context, request operations } -// GetSourceSurveymonkey - Get Source details -func (s *Sources) GetSourceSurveymonkey(ctx context.Context, request operations.GetSourceSurveymonkeyRequest, opts ...operations.Option) (*operations.GetSourceSurveymonkeyResponse, error) { +// GetSourcePendo - Get Source details +func (s *Sources) GetSourcePendo(ctx context.Context, request operations.GetSourcePendoRequest, opts ...operations.Option) (*operations.GetSourcePendoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSurveymonkey", + OperationID: "getSourcePendo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63241,7 +63301,7 @@ func (s *Sources) GetSourceSurveymonkey(ctx context.Context, request operations. } } - res := &operations.GetSourceSurveymonkeyResponse{ + res := &operations.GetSourcePendoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63278,11 +63338,11 @@ func (s *Sources) GetSourceSurveymonkey(ctx context.Context, request operations. } -// GetSourceTempo - Get Source details -func (s *Sources) GetSourceTempo(ctx context.Context, request operations.GetSourceTempoRequest, opts ...operations.Option) (*operations.GetSourceTempoResponse, error) { +// GetSourcePennylane - Get Source details +func (s *Sources) GetSourcePennylane(ctx context.Context, request operations.GetSourcePennylaneRequest, opts ...operations.Option) (*operations.GetSourcePennylaneResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTempo", + OperationID: "getSourcePennylane", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63355,7 +63415,7 @@ func (s *Sources) GetSourceTempo(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceTempoResponse{ + res := &operations.GetSourcePennylaneResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63392,11 +63452,11 @@ func (s *Sources) GetSourceTempo(ctx context.Context, request operations.GetSour } -// GetSourceTheGuardianAPI - Get Source details -func (s *Sources) GetSourceTheGuardianAPI(ctx context.Context, request operations.GetSourceTheGuardianAPIRequest, opts ...operations.Option) (*operations.GetSourceTheGuardianAPIResponse, error) { +// GetSourcePersistiq - Get Source details +func (s *Sources) GetSourcePersistiq(ctx context.Context, request operations.GetSourcePersistiqRequest, opts ...operations.Option) (*operations.GetSourcePersistiqResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTheGuardianApi", + OperationID: "getSourcePersistiq", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63469,7 +63529,7 @@ func (s *Sources) GetSourceTheGuardianAPI(ctx context.Context, request operation } } - res := &operations.GetSourceTheGuardianAPIResponse{ + res := &operations.GetSourcePersistiqResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63506,11 +63566,11 @@ func (s *Sources) GetSourceTheGuardianAPI(ctx context.Context, request operation } -// GetSourceTiktokMarketing - Get Source details -func (s *Sources) GetSourceTiktokMarketing(ctx context.Context, request operations.GetSourceTiktokMarketingRequest, opts ...operations.Option) (*operations.GetSourceTiktokMarketingResponse, error) { +// GetSourcePexelsAPI - Get Source details +func (s *Sources) GetSourcePexelsAPI(ctx context.Context, request operations.GetSourcePexelsAPIRequest, opts ...operations.Option) (*operations.GetSourcePexelsAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTiktokMarketing", + OperationID: "getSourcePexelsApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63583,7 +63643,7 @@ func (s *Sources) GetSourceTiktokMarketing(ctx context.Context, request operatio } } - res := &operations.GetSourceTiktokMarketingResponse{ + res := &operations.GetSourcePexelsAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63620,11 +63680,11 @@ func (s *Sources) GetSourceTiktokMarketing(ctx context.Context, request operatio } -// GetSourceTrello - Get Source details -func (s *Sources) GetSourceTrello(ctx context.Context, request operations.GetSourceTrelloRequest, opts ...operations.Option) (*operations.GetSourceTrelloResponse, error) { +// GetSourcePinterest - Get Source details +func (s *Sources) GetSourcePinterest(ctx context.Context, request operations.GetSourcePinterestRequest, opts ...operations.Option) (*operations.GetSourcePinterestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTrello", + OperationID: "getSourcePinterest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63697,7 +63757,7 @@ func (s *Sources) GetSourceTrello(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceTrelloResponse{ + res := &operations.GetSourcePinterestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63734,11 +63794,11 @@ func (s *Sources) GetSourceTrello(ctx context.Context, request operations.GetSou } -// GetSourceTrustpilot - Get Source details -func (s *Sources) GetSourceTrustpilot(ctx context.Context, request operations.GetSourceTrustpilotRequest, opts ...operations.Option) (*operations.GetSourceTrustpilotResponse, error) { +// GetSourcePipedrive - Get Source details +func (s *Sources) GetSourcePipedrive(ctx context.Context, request operations.GetSourcePipedriveRequest, opts ...operations.Option) (*operations.GetSourcePipedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTrustpilot", + OperationID: "getSourcePipedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63811,7 +63871,7 @@ func (s *Sources) GetSourceTrustpilot(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceTrustpilotResponse{ + res := &operations.GetSourcePipedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63848,11 +63908,11 @@ func (s *Sources) GetSourceTrustpilot(ctx context.Context, request operations.Ge } -// GetSourceTvmazeSchedule - Get Source details -func (s *Sources) GetSourceTvmazeSchedule(ctx context.Context, request operations.GetSourceTvmazeScheduleRequest, opts ...operations.Option) (*operations.GetSourceTvmazeScheduleResponse, error) { +// GetSourcePlanhat - Get Source details +func (s *Sources) GetSourcePlanhat(ctx context.Context, request operations.GetSourcePlanhatRequest, opts ...operations.Option) (*operations.GetSourcePlanhatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTvmazeSchedule", + OperationID: "getSourcePlanhat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63925,7 +63985,7 @@ func (s *Sources) GetSourceTvmazeSchedule(ctx context.Context, request operation } } - res := &operations.GetSourceTvmazeScheduleResponse{ + res := &operations.GetSourcePlanhatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63962,11 +64022,11 @@ func (s *Sources) GetSourceTvmazeSchedule(ctx context.Context, request operation } -// GetSourceTwilio - Get Source details -func (s *Sources) GetSourceTwilio(ctx context.Context, request operations.GetSourceTwilioRequest, opts ...operations.Option) (*operations.GetSourceTwilioResponse, error) { +// GetSourcePocket - Get Source details +func (s *Sources) GetSourcePocket(ctx context.Context, request operations.GetSourcePocketRequest, opts ...operations.Option) (*operations.GetSourcePocketResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTwilio", + OperationID: "getSourcePocket", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64039,7 +64099,7 @@ func (s *Sources) GetSourceTwilio(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceTwilioResponse{ + res := &operations.GetSourcePocketResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64076,11 +64136,11 @@ func (s *Sources) GetSourceTwilio(ctx context.Context, request operations.GetSou } -// GetSourceTwilioTaskrouter - Get Source details -func (s *Sources) GetSourceTwilioTaskrouter(ctx context.Context, request operations.GetSourceTwilioTaskrouterRequest, opts ...operations.Option) (*operations.GetSourceTwilioTaskrouterResponse, error) { +// GetSourcePokeapi - Get Source details +func (s *Sources) GetSourcePokeapi(ctx context.Context, request operations.GetSourcePokeapiRequest, opts ...operations.Option) (*operations.GetSourcePokeapiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTwilioTaskrouter", + OperationID: "getSourcePokeapi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64153,7 +64213,7 @@ func (s *Sources) GetSourceTwilioTaskrouter(ctx context.Context, request operati } } - res := &operations.GetSourceTwilioTaskrouterResponse{ + res := &operations.GetSourcePokeapiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64190,11 +64250,11 @@ func (s *Sources) GetSourceTwilioTaskrouter(ctx context.Context, request operati } -// GetSourceTwitter - Get Source details -func (s *Sources) GetSourceTwitter(ctx context.Context, request operations.GetSourceTwitterRequest, opts ...operations.Option) (*operations.GetSourceTwitterResponse, error) { +// GetSourcePolygonStockAPI - Get Source details +func (s *Sources) GetSourcePolygonStockAPI(ctx context.Context, request operations.GetSourcePolygonStockAPIRequest, opts ...operations.Option) (*operations.GetSourcePolygonStockAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTwitter", + OperationID: "getSourcePolygonStockApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64267,7 +64327,7 @@ func (s *Sources) GetSourceTwitter(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceTwitterResponse{ + res := &operations.GetSourcePolygonStockAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64304,11 +64364,11 @@ func (s *Sources) GetSourceTwitter(ctx context.Context, request operations.GetSo } -// GetSourceTypeform - Get Source details -func (s *Sources) GetSourceTypeform(ctx context.Context, request operations.GetSourceTypeformRequest, opts ...operations.Option) (*operations.GetSourceTypeformResponse, error) { +// GetSourcePostgres - Get Source details +func (s *Sources) GetSourcePostgres(ctx context.Context, request operations.GetSourcePostgresRequest, opts ...operations.Option) (*operations.GetSourcePostgresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTypeform", + OperationID: "getSourcePostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64381,7 +64441,7 @@ func (s *Sources) GetSourceTypeform(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceTypeformResponse{ + res := &operations.GetSourcePostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64418,11 +64478,11 @@ func (s *Sources) GetSourceTypeform(ctx context.Context, request operations.GetS } -// GetSourceUsCensus - Get Source details -func (s *Sources) GetSourceUsCensus(ctx context.Context, request operations.GetSourceUsCensusRequest, opts ...operations.Option) (*operations.GetSourceUsCensusResponse, error) { +// GetSourcePosthog - Get Source details +func (s *Sources) GetSourcePosthog(ctx context.Context, request operations.GetSourcePosthogRequest, opts ...operations.Option) (*operations.GetSourcePosthogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceUsCensus", + OperationID: "getSourcePosthog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64495,7 +64555,7 @@ func (s *Sources) GetSourceUsCensus(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceUsCensusResponse{ + res := &operations.GetSourcePosthogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64532,11 +64592,11 @@ func (s *Sources) GetSourceUsCensus(ctx context.Context, request operations.GetS } -// GetSourceVantage - Get Source details -func (s *Sources) GetSourceVantage(ctx context.Context, request operations.GetSourceVantageRequest, opts ...operations.Option) (*operations.GetSourceVantageResponse, error) { +// GetSourcePostmarkapp - Get Source details +func (s *Sources) GetSourcePostmarkapp(ctx context.Context, request operations.GetSourcePostmarkappRequest, opts ...operations.Option) (*operations.GetSourcePostmarkappResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceVantage", + OperationID: "getSourcePostmarkapp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64609,7 +64669,7 @@ func (s *Sources) GetSourceVantage(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceVantageResponse{ + res := &operations.GetSourcePostmarkappResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64646,11 +64706,11 @@ func (s *Sources) GetSourceVantage(ctx context.Context, request operations.GetSo } -// GetSourceWebflow - Get Source details -func (s *Sources) GetSourceWebflow(ctx context.Context, request operations.GetSourceWebflowRequest, opts ...operations.Option) (*operations.GetSourceWebflowResponse, error) { +// GetSourcePrestashop - Get Source details +func (s *Sources) GetSourcePrestashop(ctx context.Context, request operations.GetSourcePrestashopRequest, opts ...operations.Option) (*operations.GetSourcePrestashopResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceWebflow", + OperationID: "getSourcePrestashop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64723,7 +64783,7 @@ func (s *Sources) GetSourceWebflow(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceWebflowResponse{ + res := &operations.GetSourcePrestashopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64760,11 +64820,11 @@ func (s *Sources) GetSourceWebflow(ctx context.Context, request operations.GetSo } -// GetSourceWhiskyHunter - Get Source details -func (s *Sources) GetSourceWhiskyHunter(ctx context.Context, request operations.GetSourceWhiskyHunterRequest, opts ...operations.Option) (*operations.GetSourceWhiskyHunterResponse, error) { +// GetSourcePypi - Get Source details +func (s *Sources) GetSourcePypi(ctx context.Context, request operations.GetSourcePypiRequest, opts ...operations.Option) (*operations.GetSourcePypiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceWhiskyHunter", + OperationID: "getSourcePypi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64837,7 +64897,7 @@ func (s *Sources) GetSourceWhiskyHunter(ctx context.Context, request operations. } } - res := &operations.GetSourceWhiskyHunterResponse{ + res := &operations.GetSourcePypiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64874,11 +64934,11 @@ func (s *Sources) GetSourceWhiskyHunter(ctx context.Context, request operations. } -// GetSourceWikipediaPageviews - Get Source details -func (s *Sources) GetSourceWikipediaPageviews(ctx context.Context, request operations.GetSourceWikipediaPageviewsRequest, opts ...operations.Option) (*operations.GetSourceWikipediaPageviewsResponse, error) { +// GetSourceQualaroo - Get Source details +func (s *Sources) GetSourceQualaroo(ctx context.Context, request operations.GetSourceQualarooRequest, opts ...operations.Option) (*operations.GetSourceQualarooResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceWikipediaPageviews", + OperationID: "getSourceQualaroo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64951,7 +65011,7 @@ func (s *Sources) GetSourceWikipediaPageviews(ctx context.Context, request opera } } - res := &operations.GetSourceWikipediaPageviewsResponse{ + res := &operations.GetSourceQualarooResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64988,11 +65048,11 @@ func (s *Sources) GetSourceWikipediaPageviews(ctx context.Context, request opera } -// GetSourceWoocommerce - Get Source details -func (s *Sources) GetSourceWoocommerce(ctx context.Context, request operations.GetSourceWoocommerceRequest, opts ...operations.Option) (*operations.GetSourceWoocommerceResponse, error) { +// GetSourceRailz - Get Source details +func (s *Sources) GetSourceRailz(ctx context.Context, request operations.GetSourceRailzRequest, opts ...operations.Option) (*operations.GetSourceRailzResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceWoocommerce", + OperationID: "getSourceRailz", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65065,7 +65125,7 @@ func (s *Sources) GetSourceWoocommerce(ctx context.Context, request operations.G } } - res := &operations.GetSourceWoocommerceResponse{ + res := &operations.GetSourceRailzResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65102,11 +65162,11 @@ func (s *Sources) GetSourceWoocommerce(ctx context.Context, request operations.G } -// GetSourceXkcd - Get Source details -func (s *Sources) GetSourceXkcd(ctx context.Context, request operations.GetSourceXkcdRequest, opts ...operations.Option) (*operations.GetSourceXkcdResponse, error) { +// GetSourceRecharge - Get Source details +func (s *Sources) GetSourceRecharge(ctx context.Context, request operations.GetSourceRechargeRequest, opts ...operations.Option) (*operations.GetSourceRechargeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceXkcd", + OperationID: "getSourceRecharge", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65179,7 +65239,7 @@ func (s *Sources) GetSourceXkcd(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceXkcdResponse{ + res := &operations.GetSourceRechargeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65216,11 +65276,11 @@ func (s *Sources) GetSourceXkcd(ctx context.Context, request operations.GetSourc } -// GetSourceYandexMetrica - Get Source details -func (s *Sources) GetSourceYandexMetrica(ctx context.Context, request operations.GetSourceYandexMetricaRequest, opts ...operations.Option) (*operations.GetSourceYandexMetricaResponse, error) { +// GetSourceRecreation - Get Source details +func (s *Sources) GetSourceRecreation(ctx context.Context, request operations.GetSourceRecreationRequest, opts ...operations.Option) (*operations.GetSourceRecreationResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceYandexMetrica", + OperationID: "getSourceRecreation", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65293,7 +65353,7 @@ func (s *Sources) GetSourceYandexMetrica(ctx context.Context, request operations } } - res := &operations.GetSourceYandexMetricaResponse{ + res := &operations.GetSourceRecreationResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65330,11 +65390,11 @@ func (s *Sources) GetSourceYandexMetrica(ctx context.Context, request operations } -// GetSourceYotpo - Get Source details -func (s *Sources) GetSourceYotpo(ctx context.Context, request operations.GetSourceYotpoRequest, opts ...operations.Option) (*operations.GetSourceYotpoResponse, error) { +// GetSourceRecruitee - Get Source details +func (s *Sources) GetSourceRecruitee(ctx context.Context, request operations.GetSourceRecruiteeRequest, opts ...operations.Option) (*operations.GetSourceRecruiteeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceYotpo", + OperationID: "getSourceRecruitee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65407,7 +65467,7 @@ func (s *Sources) GetSourceYotpo(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceYotpoResponse{ + res := &operations.GetSourceRecruiteeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65444,11 +65504,11 @@ func (s *Sources) GetSourceYotpo(ctx context.Context, request operations.GetSour } -// GetSourceYoutubeAnalytics - Get Source details -func (s *Sources) GetSourceYoutubeAnalytics(ctx context.Context, request operations.GetSourceYoutubeAnalyticsRequest, opts ...operations.Option) (*operations.GetSourceYoutubeAnalyticsResponse, error) { +// GetSourceRecurly - Get Source details +func (s *Sources) GetSourceRecurly(ctx context.Context, request operations.GetSourceRecurlyRequest, opts ...operations.Option) (*operations.GetSourceRecurlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceYoutubeAnalytics", + OperationID: "getSourceRecurly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65521,7 +65581,7 @@ func (s *Sources) GetSourceYoutubeAnalytics(ctx context.Context, request operati } } - res := &operations.GetSourceYoutubeAnalyticsResponse{ + res := &operations.GetSourceRecurlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65558,11 +65618,11 @@ func (s *Sources) GetSourceYoutubeAnalytics(ctx context.Context, request operati } -// GetSourceZendeskChat - Get Source details -func (s *Sources) GetSourceZendeskChat(ctx context.Context, request operations.GetSourceZendeskChatRequest, opts ...operations.Option) (*operations.GetSourceZendeskChatResponse, error) { +// GetSourceReddit - Get Source details +func (s *Sources) GetSourceReddit(ctx context.Context, request operations.GetSourceRedditRequest, opts ...operations.Option) (*operations.GetSourceRedditResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceZendeskChat", + OperationID: "getSourceReddit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65635,7 +65695,7 @@ func (s *Sources) GetSourceZendeskChat(ctx context.Context, request operations.G } } - res := &operations.GetSourceZendeskChatResponse{ + res := &operations.GetSourceRedditResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65672,11 +65732,11 @@ func (s *Sources) GetSourceZendeskChat(ctx context.Context, request operations.G } -// GetSourceZendeskSell - Get Source details -func (s *Sources) GetSourceZendeskSell(ctx context.Context, request operations.GetSourceZendeskSellRequest, opts ...operations.Option) (*operations.GetSourceZendeskSellResponse, error) { +// GetSourceRedshift - Get Source details +func (s *Sources) GetSourceRedshift(ctx context.Context, request operations.GetSourceRedshiftRequest, opts ...operations.Option) (*operations.GetSourceRedshiftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceZendeskSell", + OperationID: "getSourceRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65749,7 +65809,7 @@ func (s *Sources) GetSourceZendeskSell(ctx context.Context, request operations.G } } - res := &operations.GetSourceZendeskSellResponse{ + res := &operations.GetSourceRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65786,11 +65846,11 @@ func (s *Sources) GetSourceZendeskSell(ctx context.Context, request operations.G } -// GetSourceZendeskSunshine - Get Source details -func (s *Sources) GetSourceZendeskSunshine(ctx context.Context, request operations.GetSourceZendeskSunshineRequest, opts ...operations.Option) (*operations.GetSourceZendeskSunshineResponse, error) { +// GetSourceRetently - Get Source details +func (s *Sources) GetSourceRetently(ctx context.Context, request operations.GetSourceRetentlyRequest, opts ...operations.Option) (*operations.GetSourceRetentlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceZendeskSunshine", + OperationID: "getSourceRetently", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65863,7 +65923,7 @@ func (s *Sources) GetSourceZendeskSunshine(ctx context.Context, request operatio } } - res := &operations.GetSourceZendeskSunshineResponse{ + res := &operations.GetSourceRetentlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65900,11 +65960,11 @@ func (s *Sources) GetSourceZendeskSunshine(ctx context.Context, request operatio } -// GetSourceZendeskSupport - Get Source details -func (s *Sources) GetSourceZendeskSupport(ctx context.Context, request operations.GetSourceZendeskSupportRequest, opts ...operations.Option) (*operations.GetSourceZendeskSupportResponse, error) { +// GetSourceRkiCovid - Get Source details +func (s *Sources) GetSourceRkiCovid(ctx context.Context, request operations.GetSourceRkiCovidRequest, opts ...operations.Option) (*operations.GetSourceRkiCovidResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceZendeskSupport", + OperationID: "getSourceRkiCovid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65977,7 +66037,7 @@ func (s *Sources) GetSourceZendeskSupport(ctx context.Context, request operation } } - res := &operations.GetSourceZendeskSupportResponse{ + res := &operations.GetSourceRkiCovidResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66014,11 +66074,11 @@ func (s *Sources) GetSourceZendeskSupport(ctx context.Context, request operation } -// GetSourceZendeskTalk - Get Source details -func (s *Sources) GetSourceZendeskTalk(ctx context.Context, request operations.GetSourceZendeskTalkRequest, opts ...operations.Option) (*operations.GetSourceZendeskTalkResponse, error) { +// GetSourceRss - Get Source details +func (s *Sources) GetSourceRss(ctx context.Context, request operations.GetSourceRssRequest, opts ...operations.Option) (*operations.GetSourceRssResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceZendeskTalk", + OperationID: "getSourceRss", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66091,7 +66151,7 @@ func (s *Sources) GetSourceZendeskTalk(ctx context.Context, request operations.G } } - res := &operations.GetSourceZendeskTalkResponse{ + res := &operations.GetSourceRssResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66128,11 +66188,11 @@ func (s *Sources) GetSourceZendeskTalk(ctx context.Context, request operations.G } -// GetSourceZenloop - Get Source details -func (s *Sources) GetSourceZenloop(ctx context.Context, request operations.GetSourceZenloopRequest, opts ...operations.Option) (*operations.GetSourceZenloopResponse, error) { +// GetSourceS3 - Get Source details +func (s *Sources) GetSourceS3(ctx context.Context, request operations.GetSourceS3Request, opts ...operations.Option) (*operations.GetSourceS3Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceZenloop", + OperationID: "getSourceS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66205,7 +66265,7 @@ func (s *Sources) GetSourceZenloop(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceZenloopResponse{ + res := &operations.GetSourceS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66242,11 +66302,11 @@ func (s *Sources) GetSourceZenloop(ctx context.Context, request operations.GetSo } -// GetSourceZohoCrm - Get Source details -func (s *Sources) GetSourceZohoCrm(ctx context.Context, request operations.GetSourceZohoCrmRequest, opts ...operations.Option) (*operations.GetSourceZohoCrmResponse, error) { +// GetSourceSalesforce - Get Source details +func (s *Sources) GetSourceSalesforce(ctx context.Context, request operations.GetSourceSalesforceRequest, opts ...operations.Option) (*operations.GetSourceSalesforceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceZohoCrm", + OperationID: "getSourceSalesforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66319,7 +66379,7 @@ func (s *Sources) GetSourceZohoCrm(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceZohoCrmResponse{ + res := &operations.GetSourceSalesforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66356,11 +66416,11 @@ func (s *Sources) GetSourceZohoCrm(ctx context.Context, request operations.GetSo } -// GetSourceZoom - Get Source details -func (s *Sources) GetSourceZoom(ctx context.Context, request operations.GetSourceZoomRequest, opts ...operations.Option) (*operations.GetSourceZoomResponse, error) { +// GetSourceSalesloft - Get Source details +func (s *Sources) GetSourceSalesloft(ctx context.Context, request operations.GetSourceSalesloftRequest, opts ...operations.Option) (*operations.GetSourceSalesloftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceZoom", + OperationID: "getSourceSalesloft", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66433,7 +66493,7 @@ func (s *Sources) GetSourceZoom(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceZoomResponse{ + res := &operations.GetSourceSalesloftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66470,126 +66530,11 @@ func (s *Sources) GetSourceZoom(ctx context.Context, request operations.GetSourc } -// InitiateOAuth - Initiate OAuth for a source -// Given a source ID, workspace ID, and redirect URL, initiates OAuth for the source. -// -// This returns a fully formed URL for performing user authentication against the relevant source identity provider (IdP). Once authentication has been completed, the IdP will redirect to an Airbyte endpoint which will save the access and refresh tokens off as a secret and return the secret ID to the redirect URL specified in the `secret_id` query string parameter. -// -// That secret ID can be used to create a source with credentials in place of actual tokens. -func (s *Sources) InitiateOAuth(ctx context.Context, request shared.InitiateOauthRequest, opts ...operations.Option) (*operations.InitiateOAuthResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "initiateOAuth", - 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/initiateOAuth") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "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", "*/*") - 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.InitiateOAuthResponse{ - 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: - fallthrough - 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 - -} - -// ListSources - List sources -func (s *Sources) ListSources(ctx context.Context, request operations.ListSourcesRequest, opts ...operations.Option) (*operations.ListSourcesResponse, error) { +// GetSourceSapFieldglass - Get Source details +func (s *Sources) GetSourceSapFieldglass(ctx context.Context, request operations.GetSourceSapFieldglassRequest, opts ...operations.Option) (*operations.GetSourceSapFieldglassResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "listSources", + OperationID: "getSourceSapFieldglass", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66606,7 +66551,7 @@ func (s *Sources) ListSources(ctx context.Context, request operations.ListSource } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := url.JoinPath(baseURL, "/sources") + opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -66629,10 +66574,6 @@ func (s *Sources) ListSources(ctx context.Context, request operations.ListSource req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err } @@ -66666,7 +66607,7 @@ func (s *Sources) ListSources(ctx context.Context, request operations.ListSource } } - res := &operations.ListSourcesResponse{ + res := &operations.GetSourceSapFieldglassResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66683,12 +66624,12 @@ func (s *Sources) ListSources(ctx context.Context, request operations.ListSource case httpRes.StatusCode == 200: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - var out shared.SourcesResponse + var out shared.SourceResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.SourcesResponse = &out + 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) } @@ -66703,11 +66644,11 @@ func (s *Sources) ListSources(ctx context.Context, request operations.ListSource } -// PatchSource - Update a Source -func (s *Sources) PatchSource(ctx context.Context, request operations.PatchSourceRequest, opts ...operations.Option) (*operations.PatchSourceResponse, error) { +// GetSourceSavvycal - Get Source details +func (s *Sources) GetSourceSavvycal(ctx context.Context, request operations.GetSourceSavvycalRequest, opts ...operations.Option) (*operations.GetSourceSavvycalResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "patchSource", + OperationID: "getSourceSavvycal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66729,11 +66670,6 @@ func (s *Sources) PatchSource(ctx context.Context, request operations.PatchSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePatchRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -66745,13 +66681,12 @@ func (s *Sources) PatchSource(ctx context.Context, request operations.PatchSourc defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PATCH", opURL, bodyReader) + 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) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -66786,7 +66721,7 @@ func (s *Sources) PatchSource(ctx context.Context, request operations.PatchSourc } } - res := &operations.PatchSourceResponse{ + res := &operations.GetSourceSavvycalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66823,11 +66758,11 @@ func (s *Sources) PatchSource(ctx context.Context, request operations.PatchSourc } -// PutSource - Update a Source and fully overwrite it -func (s *Sources) PutSource(ctx context.Context, request operations.PutSourceRequest, opts ...operations.Option) (*operations.PutSourceResponse, error) { +// GetSourceScryfall - Get Source details +func (s *Sources) GetSourceScryfall(ctx context.Context, request operations.GetSourceScryfallRequest, opts ...operations.Option) (*operations.GetSourceScryfallResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSource", + OperationID: "getSourceScryfall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66849,11 +66784,6 @@ func (s *Sources) PutSource(ctx context.Context, request operations.PutSourceReq return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePutRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -66865,13 +66795,12 @@ func (s *Sources) PutSource(ctx context.Context, request operations.PutSourceReq defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + 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) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -66906,7 +66835,7 @@ func (s *Sources) PutSource(ctx context.Context, request operations.PutSourceReq } } - res := &operations.PutSourceResponse{ + res := &operations.GetSourceScryfallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66943,11 +66872,11 @@ func (s *Sources) PutSource(ctx context.Context, request operations.PutSourceReq } -// PutSourceAha - Update a Source fully -func (s *Sources) PutSourceAha(ctx context.Context, request operations.PutSourceAhaRequest, opts ...operations.Option) (*operations.PutSourceAhaResponse, error) { +// GetSourceSecoda - Get Source details +func (s *Sources) GetSourceSecoda(ctx context.Context, request operations.GetSourceSecodaRequest, opts ...operations.Option) (*operations.GetSourceSecodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAha", + OperationID: "getSourceSecoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66969,11 +66898,120 @@ func (s *Sources) PutSourceAha(ctx context.Context, request operations.PutSource return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAhaPutRequest", "json", `request:"mediaType=application/json"`) + 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.GetSourceSecodaResponse{ + 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 + +} + +// GetSourceSendgrid - Get Source details +func (s *Sources) GetSourceSendgrid(ctx context.Context, request operations.GetSourceSendgridRequest, opts ...operations.Option) (*operations.GetSourceSendgridResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSendgrid", + 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 @@ -66985,13 +67023,12 @@ func (s *Sources) PutSourceAha(ctx context.Context, request operations.PutSource defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + 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 @@ -67026,7 +67063,7832 @@ func (s *Sources) PutSourceAha(ctx context.Context, request operations.PutSource } } - res := &operations.PutSourceAhaResponse{ + res := &operations.GetSourceSendgridResponse{ + 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 + +} + +// GetSourceSendinblue - Get Source details +func (s *Sources) GetSourceSendinblue(ctx context.Context, request operations.GetSourceSendinblueRequest, opts ...operations.Option) (*operations.GetSourceSendinblueResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSendinblue", + 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.GetSourceSendinblueResponse{ + 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 + +} + +// GetSourceSenseforce - Get Source details +func (s *Sources) GetSourceSenseforce(ctx context.Context, request operations.GetSourceSenseforceRequest, opts ...operations.Option) (*operations.GetSourceSenseforceResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSenseforce", + 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.GetSourceSenseforceResponse{ + 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 + +} + +// GetSourceSentry - Get Source details +func (s *Sources) GetSourceSentry(ctx context.Context, request operations.GetSourceSentryRequest, opts ...operations.Option) (*operations.GetSourceSentryResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSentry", + 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.GetSourceSentryResponse{ + 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 + +} + +// GetSourceSftp - Get Source details +func (s *Sources) GetSourceSftp(ctx context.Context, request operations.GetSourceSftpRequest, opts ...operations.Option) (*operations.GetSourceSftpResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSftp", + 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.GetSourceSftpResponse{ + 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 + +} + +// GetSourceSftpBulk - Get Source details +func (s *Sources) GetSourceSftpBulk(ctx context.Context, request operations.GetSourceSftpBulkRequest, opts ...operations.Option) (*operations.GetSourceSftpBulkResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSftpBulk", + 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.GetSourceSftpBulkResponse{ + 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 + +} + +// GetSourceShopify - Get Source details +func (s *Sources) GetSourceShopify(ctx context.Context, request operations.GetSourceShopifyRequest, opts ...operations.Option) (*operations.GetSourceShopifyResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceShopify", + 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.GetSourceShopifyResponse{ + 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 + +} + +// GetSourceShortio - Get Source details +func (s *Sources) GetSourceShortio(ctx context.Context, request operations.GetSourceShortioRequest, opts ...operations.Option) (*operations.GetSourceShortioResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceShortio", + 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.GetSourceShortioResponse{ + 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 + +} + +// GetSourceSlack - Get Source details +func (s *Sources) GetSourceSlack(ctx context.Context, request operations.GetSourceSlackRequest, opts ...operations.Option) (*operations.GetSourceSlackResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSlack", + 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.GetSourceSlackResponse{ + 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 + +} + +// GetSourceSmaily - Get Source details +func (s *Sources) GetSourceSmaily(ctx context.Context, request operations.GetSourceSmailyRequest, opts ...operations.Option) (*operations.GetSourceSmailyResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSmaily", + 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.GetSourceSmailyResponse{ + 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 + +} + +// GetSourceSmartengage - Get Source details +func (s *Sources) GetSourceSmartengage(ctx context.Context, request operations.GetSourceSmartengageRequest, opts ...operations.Option) (*operations.GetSourceSmartengageResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSmartengage", + 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.GetSourceSmartengageResponse{ + 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 + +} + +// GetSourceSmartsheets - Get Source details +func (s *Sources) GetSourceSmartsheets(ctx context.Context, request operations.GetSourceSmartsheetsRequest, opts ...operations.Option) (*operations.GetSourceSmartsheetsResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSmartsheets", + 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.GetSourceSmartsheetsResponse{ + 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 + +} + +// GetSourceSnapchatMarketing - Get Source details +func (s *Sources) GetSourceSnapchatMarketing(ctx context.Context, request operations.GetSourceSnapchatMarketingRequest, opts ...operations.Option) (*operations.GetSourceSnapchatMarketingResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSnapchatMarketing", + 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.GetSourceSnapchatMarketingResponse{ + 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 + +} + +// GetSourceSnowflake - Get Source details +func (s *Sources) GetSourceSnowflake(ctx context.Context, request operations.GetSourceSnowflakeRequest, opts ...operations.Option) (*operations.GetSourceSnowflakeResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSnowflake", + 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.GetSourceSnowflakeResponse{ + 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 + +} + +// GetSourceSonarCloud - Get Source details +func (s *Sources) GetSourceSonarCloud(ctx context.Context, request operations.GetSourceSonarCloudRequest, opts ...operations.Option) (*operations.GetSourceSonarCloudResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSonarCloud", + 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.GetSourceSonarCloudResponse{ + 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 + +} + +// GetSourceSpacexAPI - Get Source details +func (s *Sources) GetSourceSpacexAPI(ctx context.Context, request operations.GetSourceSpacexAPIRequest, opts ...operations.Option) (*operations.GetSourceSpacexAPIResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSpacexApi", + 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.GetSourceSpacexAPIResponse{ + 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 + +} + +// GetSourceSquare - Get Source details +func (s *Sources) GetSourceSquare(ctx context.Context, request operations.GetSourceSquareRequest, opts ...operations.Option) (*operations.GetSourceSquareResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSquare", + 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.GetSourceSquareResponse{ + 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 + +} + +// GetSourceStrava - Get Source details +func (s *Sources) GetSourceStrava(ctx context.Context, request operations.GetSourceStravaRequest, opts ...operations.Option) (*operations.GetSourceStravaResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceStrava", + 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.GetSourceStravaResponse{ + 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 + +} + +// GetSourceStripe - Get Source details +func (s *Sources) GetSourceStripe(ctx context.Context, request operations.GetSourceStripeRequest, opts ...operations.Option) (*operations.GetSourceStripeResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceStripe", + 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.GetSourceStripeResponse{ + 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 + +} + +// GetSourceSurveySparrow - Get Source details +func (s *Sources) GetSourceSurveySparrow(ctx context.Context, request operations.GetSourceSurveySparrowRequest, opts ...operations.Option) (*operations.GetSourceSurveySparrowResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSurveySparrow", + 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.GetSourceSurveySparrowResponse{ + 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 + +} + +// GetSourceSurveymonkey - Get Source details +func (s *Sources) GetSourceSurveymonkey(ctx context.Context, request operations.GetSourceSurveymonkeyRequest, opts ...operations.Option) (*operations.GetSourceSurveymonkeyResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceSurveymonkey", + 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.GetSourceSurveymonkeyResponse{ + 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 + +} + +// GetSourceTempo - Get Source details +func (s *Sources) GetSourceTempo(ctx context.Context, request operations.GetSourceTempoRequest, opts ...operations.Option) (*operations.GetSourceTempoResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTempo", + 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.GetSourceTempoResponse{ + 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 + +} + +// GetSourceTheGuardianAPI - Get Source details +func (s *Sources) GetSourceTheGuardianAPI(ctx context.Context, request operations.GetSourceTheGuardianAPIRequest, opts ...operations.Option) (*operations.GetSourceTheGuardianAPIResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTheGuardianApi", + 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.GetSourceTheGuardianAPIResponse{ + 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 + +} + +// GetSourceTiktokMarketing - Get Source details +func (s *Sources) GetSourceTiktokMarketing(ctx context.Context, request operations.GetSourceTiktokMarketingRequest, opts ...operations.Option) (*operations.GetSourceTiktokMarketingResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTiktokMarketing", + 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.GetSourceTiktokMarketingResponse{ + 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 + +} + +// GetSourceTrello - Get Source details +func (s *Sources) GetSourceTrello(ctx context.Context, request operations.GetSourceTrelloRequest, opts ...operations.Option) (*operations.GetSourceTrelloResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTrello", + 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.GetSourceTrelloResponse{ + 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 + +} + +// GetSourceTrustpilot - Get Source details +func (s *Sources) GetSourceTrustpilot(ctx context.Context, request operations.GetSourceTrustpilotRequest, opts ...operations.Option) (*operations.GetSourceTrustpilotResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTrustpilot", + 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.GetSourceTrustpilotResponse{ + 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 + +} + +// GetSourceTvmazeSchedule - Get Source details +func (s *Sources) GetSourceTvmazeSchedule(ctx context.Context, request operations.GetSourceTvmazeScheduleRequest, opts ...operations.Option) (*operations.GetSourceTvmazeScheduleResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTvmazeSchedule", + 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.GetSourceTvmazeScheduleResponse{ + 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 + +} + +// GetSourceTwilio - Get Source details +func (s *Sources) GetSourceTwilio(ctx context.Context, request operations.GetSourceTwilioRequest, opts ...operations.Option) (*operations.GetSourceTwilioResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTwilio", + 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.GetSourceTwilioResponse{ + 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 + +} + +// GetSourceTwilioTaskrouter - Get Source details +func (s *Sources) GetSourceTwilioTaskrouter(ctx context.Context, request operations.GetSourceTwilioTaskrouterRequest, opts ...operations.Option) (*operations.GetSourceTwilioTaskrouterResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTwilioTaskrouter", + 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.GetSourceTwilioTaskrouterResponse{ + 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 + +} + +// GetSourceTwitter - Get Source details +func (s *Sources) GetSourceTwitter(ctx context.Context, request operations.GetSourceTwitterRequest, opts ...operations.Option) (*operations.GetSourceTwitterResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTwitter", + 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.GetSourceTwitterResponse{ + 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 + +} + +// GetSourceTypeform - Get Source details +func (s *Sources) GetSourceTypeform(ctx context.Context, request operations.GetSourceTypeformRequest, opts ...operations.Option) (*operations.GetSourceTypeformResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceTypeform", + 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.GetSourceTypeformResponse{ + 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 + +} + +// GetSourceUsCensus - Get Source details +func (s *Sources) GetSourceUsCensus(ctx context.Context, request operations.GetSourceUsCensusRequest, opts ...operations.Option) (*operations.GetSourceUsCensusResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceUsCensus", + 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.GetSourceUsCensusResponse{ + 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 + +} + +// GetSourceVantage - Get Source details +func (s *Sources) GetSourceVantage(ctx context.Context, request operations.GetSourceVantageRequest, opts ...operations.Option) (*operations.GetSourceVantageResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceVantage", + 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.GetSourceVantageResponse{ + 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 + +} + +// GetSourceWebflow - Get Source details +func (s *Sources) GetSourceWebflow(ctx context.Context, request operations.GetSourceWebflowRequest, opts ...operations.Option) (*operations.GetSourceWebflowResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceWebflow", + 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.GetSourceWebflowResponse{ + 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 + +} + +// GetSourceWhiskyHunter - Get Source details +func (s *Sources) GetSourceWhiskyHunter(ctx context.Context, request operations.GetSourceWhiskyHunterRequest, opts ...operations.Option) (*operations.GetSourceWhiskyHunterResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceWhiskyHunter", + 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.GetSourceWhiskyHunterResponse{ + 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 + +} + +// GetSourceWikipediaPageviews - Get Source details +func (s *Sources) GetSourceWikipediaPageviews(ctx context.Context, request operations.GetSourceWikipediaPageviewsRequest, opts ...operations.Option) (*operations.GetSourceWikipediaPageviewsResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceWikipediaPageviews", + 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.GetSourceWikipediaPageviewsResponse{ + 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 + +} + +// GetSourceWoocommerce - Get Source details +func (s *Sources) GetSourceWoocommerce(ctx context.Context, request operations.GetSourceWoocommerceRequest, opts ...operations.Option) (*operations.GetSourceWoocommerceResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceWoocommerce", + 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.GetSourceWoocommerceResponse{ + 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 + +} + +// GetSourceXkcd - Get Source details +func (s *Sources) GetSourceXkcd(ctx context.Context, request operations.GetSourceXkcdRequest, opts ...operations.Option) (*operations.GetSourceXkcdResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceXkcd", + 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.GetSourceXkcdResponse{ + 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 + +} + +// GetSourceYandexMetrica - Get Source details +func (s *Sources) GetSourceYandexMetrica(ctx context.Context, request operations.GetSourceYandexMetricaRequest, opts ...operations.Option) (*operations.GetSourceYandexMetricaResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceYandexMetrica", + 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.GetSourceYandexMetricaResponse{ + 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 + +} + +// GetSourceYotpo - Get Source details +func (s *Sources) GetSourceYotpo(ctx context.Context, request operations.GetSourceYotpoRequest, opts ...operations.Option) (*operations.GetSourceYotpoResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceYotpo", + 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.GetSourceYotpoResponse{ + 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 + +} + +// GetSourceYoutubeAnalytics - Get Source details +func (s *Sources) GetSourceYoutubeAnalytics(ctx context.Context, request operations.GetSourceYoutubeAnalyticsRequest, opts ...operations.Option) (*operations.GetSourceYoutubeAnalyticsResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceYoutubeAnalytics", + 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.GetSourceYoutubeAnalyticsResponse{ + 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 + +} + +// GetSourceZendeskChat - Get Source details +func (s *Sources) GetSourceZendeskChat(ctx context.Context, request operations.GetSourceZendeskChatRequest, opts ...operations.Option) (*operations.GetSourceZendeskChatResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceZendeskChat", + 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.GetSourceZendeskChatResponse{ + 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 + +} + +// GetSourceZendeskSell - Get Source details +func (s *Sources) GetSourceZendeskSell(ctx context.Context, request operations.GetSourceZendeskSellRequest, opts ...operations.Option) (*operations.GetSourceZendeskSellResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceZendeskSell", + 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.GetSourceZendeskSellResponse{ + 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 + +} + +// GetSourceZendeskSunshine - Get Source details +func (s *Sources) GetSourceZendeskSunshine(ctx context.Context, request operations.GetSourceZendeskSunshineRequest, opts ...operations.Option) (*operations.GetSourceZendeskSunshineResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceZendeskSunshine", + 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.GetSourceZendeskSunshineResponse{ + 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 + +} + +// GetSourceZendeskSupport - Get Source details +func (s *Sources) GetSourceZendeskSupport(ctx context.Context, request operations.GetSourceZendeskSupportRequest, opts ...operations.Option) (*operations.GetSourceZendeskSupportResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceZendeskSupport", + 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.GetSourceZendeskSupportResponse{ + 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 + +} + +// GetSourceZendeskTalk - Get Source details +func (s *Sources) GetSourceZendeskTalk(ctx context.Context, request operations.GetSourceZendeskTalkRequest, opts ...operations.Option) (*operations.GetSourceZendeskTalkResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceZendeskTalk", + 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.GetSourceZendeskTalkResponse{ + 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 + +} + +// GetSourceZenloop - Get Source details +func (s *Sources) GetSourceZenloop(ctx context.Context, request operations.GetSourceZenloopRequest, opts ...operations.Option) (*operations.GetSourceZenloopResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceZenloop", + 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.GetSourceZenloopResponse{ + 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 + +} + +// GetSourceZohoCrm - Get Source details +func (s *Sources) GetSourceZohoCrm(ctx context.Context, request operations.GetSourceZohoCrmRequest, opts ...operations.Option) (*operations.GetSourceZohoCrmResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceZohoCrm", + 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.GetSourceZohoCrmResponse{ + 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 + +} + +// GetSourceZoom - Get Source details +func (s *Sources) GetSourceZoom(ctx context.Context, request operations.GetSourceZoomRequest, opts ...operations.Option) (*operations.GetSourceZoomResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourceZoom", + 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.GetSourceZoomResponse{ + 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 + +} + +// InitiateOAuth - Initiate OAuth for a source +// Given a source ID, workspace ID, and redirect URL, initiates OAuth for the source. +// +// This returns a fully formed URL for performing user authentication against the relevant source identity provider (IdP). Once authentication has been completed, the IdP will redirect to an Airbyte endpoint which will save the access and refresh tokens off as a secret and return the secret ID to the redirect URL specified in the `secret_id` query string parameter. +// +// That secret ID can be used to create a source with credentials in place of actual tokens. +func (s *Sources) InitiateOAuth(ctx context.Context, request shared.InitiateOauthRequest, opts ...operations.Option) (*operations.InitiateOAuthResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "initiateOAuth", + 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/initiateOAuth") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "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", "*/*") + 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.InitiateOAuthResponse{ + 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: + fallthrough + 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 + +} + +// ListSources - List sources +func (s *Sources) ListSources(ctx context.Context, request operations.ListSourcesRequest, opts ...operations.Option) (*operations.ListSourcesResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "listSources", + 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) + } + + 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.PopulateQueryParams(ctx, req, request, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + 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.ListSourcesResponse{ + 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.SourcesResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SourcesResponse = &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 + +} + +// PatchSource - Update a Source +func (s *Sources) PatchSource(ctx context.Context, request operations.PatchSourceRequest, opts ...operations.Option) (*operations.PatchSourceResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "patchSource", + 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, "SourcePatchRequest", "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, "PATCH", 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.PatchSourceResponse{ + 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 + +} + +// PutSource - Update a Source and fully overwrite it +func (s *Sources) PutSource(ctx context.Context, request operations.PutSourceRequest, opts ...operations.Option) (*operations.PutSourceResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSource", + 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, "SourcePutRequest", "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", "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.PutSourceResponse{ + 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 + +} + +// PutSourceAha - Update a Source fully +func (s *Sources) PutSourceAha(ctx context.Context, request operations.PutSourceAhaRequest, opts ...operations.Option) (*operations.PutSourceAhaResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAha", + 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, "SourceAhaPutRequest", "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.PutSourceAhaResponse{ + 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 + +} + +// PutSourceAirbyte - Update a Source fully +func (s *Sources) PutSourceAirbyte(ctx context.Context, request operations.PutSourceAirbyteRequest, opts ...operations.Option) (*operations.PutSourceAirbyteResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAirbyte", + 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, "SourceAirbytePutRequest", "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.PutSourceAirbyteResponse{ + 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 + +} + +// PutSourceAircall - Update a Source fully +func (s *Sources) PutSourceAircall(ctx context.Context, request operations.PutSourceAircallRequest, opts ...operations.Option) (*operations.PutSourceAircallResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAircall", + 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, "SourceAircallPutRequest", "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.PutSourceAircallResponse{ + 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 + +} + +// PutSourceAirtable - Update a Source fully +func (s *Sources) PutSourceAirtable(ctx context.Context, request operations.PutSourceAirtableRequest, opts ...operations.Option) (*operations.PutSourceAirtableResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAirtable", + 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, "SourceAirtablePutRequest", "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.PutSourceAirtableResponse{ + 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 + +} + +// PutSourceAmazonAds - Update a Source fully +func (s *Sources) PutSourceAmazonAds(ctx context.Context, request operations.PutSourceAmazonAdsRequest, opts ...operations.Option) (*operations.PutSourceAmazonAdsResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAmazonAds", + 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, "SourceAmazonAdsPutRequest", "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.PutSourceAmazonAdsResponse{ + 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 + +} + +// PutSourceAmazonSellerPartner - Update a Source fully +func (s *Sources) PutSourceAmazonSellerPartner(ctx context.Context, request operations.PutSourceAmazonSellerPartnerRequest, opts ...operations.Option) (*operations.PutSourceAmazonSellerPartnerResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAmazonSellerPartner", + 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, "SourceAmazonSellerPartnerPutRequest", "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.PutSourceAmazonSellerPartnerResponse{ + 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 + +} + +// PutSourceAmazonSqs - Update a Source fully +func (s *Sources) PutSourceAmazonSqs(ctx context.Context, request operations.PutSourceAmazonSqsRequest, opts ...operations.Option) (*operations.PutSourceAmazonSqsResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAmazonSqs", + 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, "SourceAmazonSqsPutRequest", "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.PutSourceAmazonSqsResponse{ + 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 + +} + +// PutSourceAmplitude - Update a Source fully +func (s *Sources) PutSourceAmplitude(ctx context.Context, request operations.PutSourceAmplitudeRequest, opts ...operations.Option) (*operations.PutSourceAmplitudeResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAmplitude", + 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, "SourceAmplitudePutRequest", "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.PutSourceAmplitudeResponse{ + 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 + +} + +// PutSourceApifyDataset - Update a Source fully +func (s *Sources) PutSourceApifyDataset(ctx context.Context, request operations.PutSourceApifyDatasetRequest, opts ...operations.Option) (*operations.PutSourceApifyDatasetResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceApifyDataset", + 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, "SourceApifyDatasetPutRequest", "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.PutSourceApifyDatasetResponse{ + 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 + +} + +// PutSourceAppfollow - Update a Source fully +func (s *Sources) PutSourceAppfollow(ctx context.Context, request operations.PutSourceAppfollowRequest, opts ...operations.Option) (*operations.PutSourceAppfollowResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAppfollow", + 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, "SourceAppfollowPutRequest", "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.PutSourceAppfollowResponse{ + 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 + +} + +// PutSourceAsana - Update a Source fully +func (s *Sources) PutSourceAsana(ctx context.Context, request operations.PutSourceAsanaRequest, opts ...operations.Option) (*operations.PutSourceAsanaResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAsana", + 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, "SourceAsanaPutRequest", "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.PutSourceAsanaResponse{ + 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 + +} + +// PutSourceAuth0 - Update a Source fully +func (s *Sources) PutSourceAuth0(ctx context.Context, request operations.PutSourceAuth0Request, opts ...operations.Option) (*operations.PutSourceAuth0Response, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAuth0", + 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, "SourceAuth0PutRequest", "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.PutSourceAuth0Response{ + 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 + +} + +// PutSourceAwsCloudtrail - Update a Source fully +func (s *Sources) PutSourceAwsCloudtrail(ctx context.Context, request operations.PutSourceAwsCloudtrailRequest, opts ...operations.Option) (*operations.PutSourceAwsCloudtrailResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAwsCloudtrail", + 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, "SourceAwsCloudtrailPutRequest", "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.PutSourceAwsCloudtrailResponse{ + 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 + +} + +// PutSourceAzureBlobStorage - Update a Source fully +func (s *Sources) PutSourceAzureBlobStorage(ctx context.Context, request operations.PutSourceAzureBlobStorageRequest, opts ...operations.Option) (*operations.PutSourceAzureBlobStorageResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAzureBlobStorage", + 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, "SourceAzureBlobStoragePutRequest", "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.PutSourceAzureBlobStorageResponse{ + 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 + +} + +// PutSourceAzureTable - Update a Source fully +func (s *Sources) PutSourceAzureTable(ctx context.Context, request operations.PutSourceAzureTableRequest, opts ...operations.Option) (*operations.PutSourceAzureTableResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceAzureTable", + 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, "SourceAzureTablePutRequest", "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.PutSourceAzureTableResponse{ + 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 + +} + +// PutSourceBambooHr - Update a Source fully +func (s *Sources) PutSourceBambooHr(ctx context.Context, request operations.PutSourceBambooHrRequest, opts ...operations.Option) (*operations.PutSourceBambooHrResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceBambooHr", + 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, "SourceBambooHrPutRequest", "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.PutSourceBambooHrResponse{ + 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 + +} + +// PutSourceBasecamp - Update a Source fully +func (s *Sources) PutSourceBasecamp(ctx context.Context, request operations.PutSourceBasecampRequest, opts ...operations.Option) (*operations.PutSourceBasecampResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceBasecamp", + 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, "SourceBasecampPutRequest", "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.PutSourceBasecampResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67053,11 +74915,11 @@ func (s *Sources) PutSourceAha(ctx context.Context, request operations.PutSource } -// PutSourceAircall - Update a Source fully -func (s *Sources) PutSourceAircall(ctx context.Context, request operations.PutSourceAircallRequest, opts ...operations.Option) (*operations.PutSourceAircallResponse, error) { +// PutSourceBigquery - Update a Source fully +func (s *Sources) PutSourceBigquery(ctx context.Context, request operations.PutSourceBigqueryRequest, opts ...operations.Option) (*operations.PutSourceBigqueryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAircall", + OperationID: "putSourceBigquery", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67079,7 +74941,7 @@ func (s *Sources) PutSourceAircall(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAircallPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBigqueryPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -67136,7 +74998,7 @@ func (s *Sources) PutSourceAircall(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceAircallResponse{ + res := &operations.PutSourceBigqueryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67163,11 +75025,11 @@ func (s *Sources) PutSourceAircall(ctx context.Context, request operations.PutSo } -// PutSourceAirtable - Update a Source fully -func (s *Sources) PutSourceAirtable(ctx context.Context, request operations.PutSourceAirtableRequest, opts ...operations.Option) (*operations.PutSourceAirtableResponse, error) { +// PutSourceBingAds - Update a Source fully +func (s *Sources) PutSourceBingAds(ctx context.Context, request operations.PutSourceBingAdsRequest, opts ...operations.Option) (*operations.PutSourceBingAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAirtable", + OperationID: "putSourceBingAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67189,7 +75051,7 @@ func (s *Sources) PutSourceAirtable(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAirtablePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBingAdsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -67246,7 +75108,7 @@ func (s *Sources) PutSourceAirtable(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceAirtableResponse{ + res := &operations.PutSourceBingAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67273,11 +75135,11 @@ func (s *Sources) PutSourceAirtable(ctx context.Context, request operations.PutS } -// PutSourceAmazonAds - Update a Source fully -func (s *Sources) PutSourceAmazonAds(ctx context.Context, request operations.PutSourceAmazonAdsRequest, opts ...operations.Option) (*operations.PutSourceAmazonAdsResponse, error) { +// PutSourceBraintree - Update a Source fully +func (s *Sources) PutSourceBraintree(ctx context.Context, request operations.PutSourceBraintreeRequest, opts ...operations.Option) (*operations.PutSourceBraintreeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAmazonAds", + OperationID: "putSourceBraintree", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67299,7 +75161,7 @@ func (s *Sources) PutSourceAmazonAds(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAmazonAdsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBraintreePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -67356,7 +75218,7 @@ func (s *Sources) PutSourceAmazonAds(ctx context.Context, request operations.Put } } - res := &operations.PutSourceAmazonAdsResponse{ + res := &operations.PutSourceBraintreeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67383,11 +75245,11 @@ func (s *Sources) PutSourceAmazonAds(ctx context.Context, request operations.Put } -// PutSourceAmazonSellerPartner - Update a Source fully -func (s *Sources) PutSourceAmazonSellerPartner(ctx context.Context, request operations.PutSourceAmazonSellerPartnerRequest, opts ...operations.Option) (*operations.PutSourceAmazonSellerPartnerResponse, error) { +// PutSourceBraze - Update a Source fully +func (s *Sources) PutSourceBraze(ctx context.Context, request operations.PutSourceBrazeRequest, opts ...operations.Option) (*operations.PutSourceBrazeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAmazonSellerPartner", + OperationID: "putSourceBraze", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67409,7 +75271,7 @@ func (s *Sources) PutSourceAmazonSellerPartner(ctx context.Context, request oper return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAmazonSellerPartnerPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBrazePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -67466,7 +75328,7 @@ func (s *Sources) PutSourceAmazonSellerPartner(ctx context.Context, request oper } } - res := &operations.PutSourceAmazonSellerPartnerResponse{ + res := &operations.PutSourceBrazeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67493,11 +75355,11 @@ func (s *Sources) PutSourceAmazonSellerPartner(ctx context.Context, request oper } -// PutSourceAmazonSqs - Update a Source fully -func (s *Sources) PutSourceAmazonSqs(ctx context.Context, request operations.PutSourceAmazonSqsRequest, opts ...operations.Option) (*operations.PutSourceAmazonSqsResponse, error) { +// PutSourceBreezyHr - Update a Source fully +func (s *Sources) PutSourceBreezyHr(ctx context.Context, request operations.PutSourceBreezyHrRequest, opts ...operations.Option) (*operations.PutSourceBreezyHrResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAmazonSqs", + OperationID: "putSourceBreezyHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67519,7 +75381,7 @@ func (s *Sources) PutSourceAmazonSqs(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAmazonSqsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBreezyHrPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -67576,7 +75438,7 @@ func (s *Sources) PutSourceAmazonSqs(ctx context.Context, request operations.Put } } - res := &operations.PutSourceAmazonSqsResponse{ + res := &operations.PutSourceBreezyHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67603,11 +75465,11 @@ func (s *Sources) PutSourceAmazonSqs(ctx context.Context, request operations.Put } -// PutSourceAmplitude - Update a Source fully -func (s *Sources) PutSourceAmplitude(ctx context.Context, request operations.PutSourceAmplitudeRequest, opts ...operations.Option) (*operations.PutSourceAmplitudeResponse, error) { +// PutSourceCalendly - Update a Source fully +func (s *Sources) PutSourceCalendly(ctx context.Context, request operations.PutSourceCalendlyRequest, opts ...operations.Option) (*operations.PutSourceCalendlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAmplitude", + OperationID: "putSourceCalendly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67629,7 +75491,7 @@ func (s *Sources) PutSourceAmplitude(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAmplitudePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCalendlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -67686,7 +75548,7 @@ func (s *Sources) PutSourceAmplitude(ctx context.Context, request operations.Put } } - res := &operations.PutSourceAmplitudeResponse{ + res := &operations.PutSourceCalendlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67713,11 +75575,11 @@ func (s *Sources) PutSourceAmplitude(ctx context.Context, request operations.Put } -// PutSourceApifyDataset - Update a Source fully -func (s *Sources) PutSourceApifyDataset(ctx context.Context, request operations.PutSourceApifyDatasetRequest, opts ...operations.Option) (*operations.PutSourceApifyDatasetResponse, 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: "putSourceApifyDataset", + OperationID: "putSourceCart", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67739,7 +75601,7 @@ func (s *Sources) PutSourceApifyDataset(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceApifyDatasetPutRequest", "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 } @@ -67796,7 +75658,7 @@ func (s *Sources) PutSourceApifyDataset(ctx context.Context, request operations. } } - res := &operations.PutSourceApifyDatasetResponse{ + res := &operations.PutSourceCartResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67823,11 +75685,11 @@ func (s *Sources) PutSourceApifyDataset(ctx context.Context, request operations. } -// PutSourceAppfollow - Update a Source fully -func (s *Sources) PutSourceAppfollow(ctx context.Context, request operations.PutSourceAppfollowRequest, opts ...operations.Option) (*operations.PutSourceAppfollowResponse, 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: "putSourceAppfollow", + OperationID: "putSourceChargebee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67849,7 +75711,7 @@ func (s *Sources) PutSourceAppfollow(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAppfollowPutRequest", "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 } @@ -67906,7 +75768,7 @@ func (s *Sources) PutSourceAppfollow(ctx context.Context, request operations.Put } } - res := &operations.PutSourceAppfollowResponse{ + res := &operations.PutSourceChargebeeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67933,11 +75795,11 @@ func (s *Sources) PutSourceAppfollow(ctx context.Context, request operations.Put } -// PutSourceAsana - Update a Source fully -func (s *Sources) PutSourceAsana(ctx context.Context, request operations.PutSourceAsanaRequest, opts ...operations.Option) (*operations.PutSourceAsanaResponse, 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: "putSourceAsana", + OperationID: "putSourceChartmogul", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67959,7 +75821,7 @@ func (s *Sources) PutSourceAsana(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAsanaPutRequest", "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 } @@ -68016,7 +75878,7 @@ func (s *Sources) PutSourceAsana(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceAsanaResponse{ + res := &operations.PutSourceChartmogulResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68043,11 +75905,11 @@ func (s *Sources) PutSourceAsana(ctx context.Context, request operations.PutSour } -// PutSourceAuth0 - Update a Source fully -func (s *Sources) PutSourceAuth0(ctx context.Context, request operations.PutSourceAuth0Request, opts ...operations.Option) (*operations.PutSourceAuth0Response, error) { +// PutSourceClazar - Update a Source fully +func (s *Sources) PutSourceClazar(ctx context.Context, request operations.PutSourceClazarRequest, opts ...operations.Option) (*operations.PutSourceClazarResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAuth0", + OperationID: "putSourceClazar", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68069,7 +75931,7 @@ func (s *Sources) PutSourceAuth0(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAuth0PutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClazarPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -68126,7 +75988,7 @@ func (s *Sources) PutSourceAuth0(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceAuth0Response{ + res := &operations.PutSourceClazarResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68153,11 +76015,11 @@ func (s *Sources) PutSourceAuth0(ctx context.Context, request operations.PutSour } -// PutSourceAwsCloudtrail - Update a Source fully -func (s *Sources) PutSourceAwsCloudtrail(ctx context.Context, request operations.PutSourceAwsCloudtrailRequest, opts ...operations.Option) (*operations.PutSourceAwsCloudtrailResponse, error) { +// PutSourceClickhouse - Update a Source fully +func (s *Sources) PutSourceClickhouse(ctx context.Context, request operations.PutSourceClickhouseRequest, opts ...operations.Option) (*operations.PutSourceClickhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAwsCloudtrail", + OperationID: "putSourceClickhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68179,7 +76041,7 @@ func (s *Sources) PutSourceAwsCloudtrail(ctx context.Context, request operations return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAwsCloudtrailPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClickhousePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -68236,7 +76098,7 @@ func (s *Sources) PutSourceAwsCloudtrail(ctx context.Context, request operations } } - res := &operations.PutSourceAwsCloudtrailResponse{ + res := &operations.PutSourceClickhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68263,11 +76125,11 @@ func (s *Sources) PutSourceAwsCloudtrail(ctx context.Context, request operations } -// PutSourceAzureBlobStorage - Update a Source fully -func (s *Sources) PutSourceAzureBlobStorage(ctx context.Context, request operations.PutSourceAzureBlobStorageRequest, opts ...operations.Option) (*operations.PutSourceAzureBlobStorageResponse, error) { +// PutSourceClickupAPI - Update a Source fully +func (s *Sources) PutSourceClickupAPI(ctx context.Context, request operations.PutSourceClickupAPIRequest, opts ...operations.Option) (*operations.PutSourceClickupAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAzureBlobStorage", + OperationID: "putSourceClickupApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68289,7 +76151,7 @@ func (s *Sources) PutSourceAzureBlobStorage(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAzureBlobStoragePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClickupAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -68346,7 +76208,7 @@ func (s *Sources) PutSourceAzureBlobStorage(ctx context.Context, request operati } } - res := &operations.PutSourceAzureBlobStorageResponse{ + res := &operations.PutSourceClickupAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68373,11 +76235,11 @@ func (s *Sources) PutSourceAzureBlobStorage(ctx context.Context, request operati } -// PutSourceAzureTable - Update a Source fully -func (s *Sources) PutSourceAzureTable(ctx context.Context, request operations.PutSourceAzureTableRequest, opts ...operations.Option) (*operations.PutSourceAzureTableResponse, error) { +// PutSourceClockify - Update a Source fully +func (s *Sources) PutSourceClockify(ctx context.Context, request operations.PutSourceClockifyRequest, opts ...operations.Option) (*operations.PutSourceClockifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAzureTable", + OperationID: "putSourceClockify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68399,7 +76261,7 @@ func (s *Sources) PutSourceAzureTable(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAzureTablePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClockifyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -68456,7 +76318,7 @@ func (s *Sources) PutSourceAzureTable(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceAzureTableResponse{ + res := &operations.PutSourceClockifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68483,11 +76345,11 @@ func (s *Sources) PutSourceAzureTable(ctx context.Context, request operations.Pu } -// PutSourceBambooHr - Update a Source fully -func (s *Sources) PutSourceBambooHr(ctx context.Context, request operations.PutSourceBambooHrRequest, opts ...operations.Option) (*operations.PutSourceBambooHrResponse, error) { +// PutSourceCloseCom - Update a Source fully +func (s *Sources) PutSourceCloseCom(ctx context.Context, request operations.PutSourceCloseComRequest, opts ...operations.Option) (*operations.PutSourceCloseComResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceBambooHr", + OperationID: "putSourceCloseCom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68509,7 +76371,7 @@ func (s *Sources) PutSourceBambooHr(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBambooHrPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCloseComPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -68566,7 +76428,7 @@ func (s *Sources) PutSourceBambooHr(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceBambooHrResponse{ + res := &operations.PutSourceCloseComResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68593,11 +76455,11 @@ func (s *Sources) PutSourceBambooHr(ctx context.Context, request operations.PutS } -// PutSourceBigquery - Update a Source fully -func (s *Sources) PutSourceBigquery(ctx context.Context, request operations.PutSourceBigqueryRequest, opts ...operations.Option) (*operations.PutSourceBigqueryResponse, error) { +// PutSourceCoda - Update a Source fully +func (s *Sources) PutSourceCoda(ctx context.Context, request operations.PutSourceCodaRequest, opts ...operations.Option) (*operations.PutSourceCodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceBigquery", + OperationID: "putSourceCoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68619,7 +76481,7 @@ func (s *Sources) PutSourceBigquery(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBigqueryPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCodaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -68676,7 +76538,7 @@ func (s *Sources) PutSourceBigquery(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceBigqueryResponse{ + res := &operations.PutSourceCodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68703,11 +76565,11 @@ func (s *Sources) PutSourceBigquery(ctx context.Context, request operations.PutS } -// PutSourceBingAds - Update a Source fully -func (s *Sources) PutSourceBingAds(ctx context.Context, request operations.PutSourceBingAdsRequest, opts ...operations.Option) (*operations.PutSourceBingAdsResponse, error) { +// PutSourceCoinAPI - Update a Source fully +func (s *Sources) PutSourceCoinAPI(ctx context.Context, request operations.PutSourceCoinAPIRequest, opts ...operations.Option) (*operations.PutSourceCoinAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceBingAds", + OperationID: "putSourceCoinApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68729,7 +76591,7 @@ func (s *Sources) PutSourceBingAds(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBingAdsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCoinAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -68786,7 +76648,7 @@ func (s *Sources) PutSourceBingAds(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceBingAdsResponse{ + res := &operations.PutSourceCoinAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68813,11 +76675,121 @@ func (s *Sources) PutSourceBingAds(ctx context.Context, request operations.PutSo } -// PutSourceBraintree - Update a Source fully -func (s *Sources) PutSourceBraintree(ctx context.Context, request operations.PutSourceBraintreeRequest, opts ...operations.Option) (*operations.PutSourceBraintreeResponse, error) { +// PutSourceCoinmarketcap - Update a Source fully +func (s *Sources) PutSourceCoinmarketcap(ctx context.Context, request operations.PutSourceCoinmarketcapRequest, opts ...operations.Option) (*operations.PutSourceCoinmarketcapResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceBraintree", + OperationID: "putSourceCoinmarketcap", + 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, "SourceCoinmarketcapPutRequest", "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.PutSourceCoinmarketcapResponse{ + 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 + +} + +// PutSourceConfigcat - Update a Source fully +func (s *Sources) PutSourceConfigcat(ctx context.Context, request operations.PutSourceConfigcatRequest, opts ...operations.Option) (*operations.PutSourceConfigcatResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceConfigcat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68839,7 +76811,7 @@ func (s *Sources) PutSourceBraintree(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBraintreePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceConfigcatPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -68896,7 +76868,7 @@ func (s *Sources) PutSourceBraintree(ctx context.Context, request operations.Put } } - res := &operations.PutSourceBraintreeResponse{ + res := &operations.PutSourceConfigcatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68923,11 +76895,11 @@ func (s *Sources) PutSourceBraintree(ctx context.Context, request operations.Put } -// PutSourceBraze - Update a Source fully -func (s *Sources) PutSourceBraze(ctx context.Context, request operations.PutSourceBrazeRequest, opts ...operations.Option) (*operations.PutSourceBrazeResponse, error) { +// PutSourceConfluence - Update a Source fully +func (s *Sources) PutSourceConfluence(ctx context.Context, request operations.PutSourceConfluenceRequest, opts ...operations.Option) (*operations.PutSourceConfluenceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceBraze", + OperationID: "putSourceConfluence", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68949,7 +76921,7 @@ func (s *Sources) PutSourceBraze(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBrazePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceConfluencePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69006,7 +76978,7 @@ func (s *Sources) PutSourceBraze(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceBrazeResponse{ + res := &operations.PutSourceConfluenceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69033,11 +77005,11 @@ func (s *Sources) PutSourceBraze(ctx context.Context, request operations.PutSour } -// PutSourceCart - Update a Source fully -func (s *Sources) PutSourceCart(ctx context.Context, request operations.PutSourceCartRequest, opts ...operations.Option) (*operations.PutSourceCartResponse, error) { +// PutSourceConvex - Update a Source fully +func (s *Sources) PutSourceConvex(ctx context.Context, request operations.PutSourceConvexRequest, opts ...operations.Option) (*operations.PutSourceConvexResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceCart", + OperationID: "putSourceConvex", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69059,7 +77031,7 @@ func (s *Sources) PutSourceCart(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCartPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceConvexPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69116,7 +77088,7 @@ func (s *Sources) PutSourceCart(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceCartResponse{ + res := &operations.PutSourceConvexResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69143,11 +77115,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) { +// PutSourceCustom - Update a Source fully +func (s *Sources) PutSourceCustom(ctx context.Context, request operations.PutSourceCustomRequest, opts ...operations.Option) (*operations.PutSourceCustomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceChargebee", + OperationID: "putSourceCustom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69169,7 +77141,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, "SourceCustomPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69226,7 +77198,7 @@ func (s *Sources) PutSourceChargebee(ctx context.Context, request operations.Put } } - res := &operations.PutSourceChargebeeResponse{ + res := &operations.PutSourceCustomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69253,11 +77225,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) { +// PutSourceCustomerIo - Update a Source fully +func (s *Sources) PutSourceCustomerIo(ctx context.Context, request operations.PutSourceCustomerIoRequest, opts ...operations.Option) (*operations.PutSourceCustomerIoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceChartmogul", + OperationID: "putSourceCustomerIo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69279,7 +77251,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, "SourceCustomerIoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69336,7 +77308,7 @@ func (s *Sources) PutSourceChartmogul(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceChartmogulResponse{ + res := &operations.PutSourceCustomerIoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69363,11 +77335,11 @@ func (s *Sources) PutSourceChartmogul(ctx context.Context, request operations.Pu } -// PutSourceClickhouse - Update a Source fully -func (s *Sources) PutSourceClickhouse(ctx context.Context, request operations.PutSourceClickhouseRequest, opts ...operations.Option) (*operations.PutSourceClickhouseResponse, error) { +// 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: "putSourceClickhouse", + OperationID: "putSourceDatadog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69389,7 +77361,7 @@ func (s *Sources) PutSourceClickhouse(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClickhousePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDatadogPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69446,7 +77418,7 @@ func (s *Sources) PutSourceClickhouse(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceClickhouseResponse{ + res := &operations.PutSourceDatadogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69473,11 +77445,11 @@ func (s *Sources) PutSourceClickhouse(ctx context.Context, request operations.Pu } -// PutSourceClickupAPI - Update a Source fully -func (s *Sources) PutSourceClickupAPI(ctx context.Context, request operations.PutSourceClickupAPIRequest, opts ...operations.Option) (*operations.PutSourceClickupAPIResponse, error) { +// PutSourceDatascope - Update a Source fully +func (s *Sources) PutSourceDatascope(ctx context.Context, request operations.PutSourceDatascopeRequest, opts ...operations.Option) (*operations.PutSourceDatascopeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceClickupApi", + OperationID: "putSourceDatascope", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69499,7 +77471,7 @@ func (s *Sources) PutSourceClickupAPI(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClickupAPIPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDatascopePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69556,7 +77528,7 @@ func (s *Sources) PutSourceClickupAPI(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceClickupAPIResponse{ + res := &operations.PutSourceDatascopeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69583,11 +77555,11 @@ func (s *Sources) PutSourceClickupAPI(ctx context.Context, request operations.Pu } -// PutSourceClockify - Update a Source fully -func (s *Sources) PutSourceClockify(ctx context.Context, request operations.PutSourceClockifyRequest, opts ...operations.Option) (*operations.PutSourceClockifyResponse, error) { +// PutSourceDbt - Update a Source fully +func (s *Sources) PutSourceDbt(ctx context.Context, request operations.PutSourceDbtRequest, opts ...operations.Option) (*operations.PutSourceDbtResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceClockify", + OperationID: "putSourceDbt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69609,7 +77581,7 @@ func (s *Sources) PutSourceClockify(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClockifyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDbtPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69666,7 +77638,7 @@ func (s *Sources) PutSourceClockify(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceClockifyResponse{ + res := &operations.PutSourceDbtResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69693,11 +77665,11 @@ func (s *Sources) PutSourceClockify(ctx context.Context, request operations.PutS } -// PutSourceCloseCom - Update a Source fully -func (s *Sources) PutSourceCloseCom(ctx context.Context, request operations.PutSourceCloseComRequest, opts ...operations.Option) (*operations.PutSourceCloseComResponse, error) { +// PutSourceDelighted - Update a Source fully +func (s *Sources) PutSourceDelighted(ctx context.Context, request operations.PutSourceDelightedRequest, opts ...operations.Option) (*operations.PutSourceDelightedResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceCloseCom", + OperationID: "putSourceDelighted", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69719,7 +77691,7 @@ func (s *Sources) PutSourceCloseCom(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCloseComPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDelightedPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69776,7 +77748,7 @@ func (s *Sources) PutSourceCloseCom(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceCloseComResponse{ + res := &operations.PutSourceDelightedResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69803,11 +77775,11 @@ func (s *Sources) PutSourceCloseCom(ctx context.Context, request operations.PutS } -// PutSourceCoda - Update a Source fully -func (s *Sources) PutSourceCoda(ctx context.Context, request operations.PutSourceCodaRequest, opts ...operations.Option) (*operations.PutSourceCodaResponse, error) { +// PutSourceDixa - Update a Source fully +func (s *Sources) PutSourceDixa(ctx context.Context, request operations.PutSourceDixaRequest, opts ...operations.Option) (*operations.PutSourceDixaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceCoda", + OperationID: "putSourceDixa", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69829,7 +77801,7 @@ func (s *Sources) PutSourceCoda(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCodaPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDixaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69886,7 +77858,7 @@ func (s *Sources) PutSourceCoda(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceCodaResponse{ + res := &operations.PutSourceDixaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69913,11 +77885,11 @@ func (s *Sources) PutSourceCoda(ctx context.Context, request operations.PutSourc } -// PutSourceCoinAPI - Update a Source fully -func (s *Sources) PutSourceCoinAPI(ctx context.Context, request operations.PutSourceCoinAPIRequest, opts ...operations.Option) (*operations.PutSourceCoinAPIResponse, error) { +// PutSourceDockerhub - Update a Source fully +func (s *Sources) PutSourceDockerhub(ctx context.Context, request operations.PutSourceDockerhubRequest, opts ...operations.Option) (*operations.PutSourceDockerhubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceCoinApi", + OperationID: "putSourceDockerhub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69939,7 +77911,7 @@ func (s *Sources) PutSourceCoinAPI(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCoinAPIPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDockerhubPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69996,7 +77968,7 @@ func (s *Sources) PutSourceCoinAPI(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceCoinAPIResponse{ + res := &operations.PutSourceDockerhubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70023,11 +77995,11 @@ func (s *Sources) PutSourceCoinAPI(ctx context.Context, request operations.PutSo } -// PutSourceCoinmarketcap - Update a Source fully -func (s *Sources) PutSourceCoinmarketcap(ctx context.Context, request operations.PutSourceCoinmarketcapRequest, opts ...operations.Option) (*operations.PutSourceCoinmarketcapResponse, error) { +// PutSourceDremio - Update a Source fully +func (s *Sources) PutSourceDremio(ctx context.Context, request operations.PutSourceDremioRequest, opts ...operations.Option) (*operations.PutSourceDremioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceCoinmarketcap", + OperationID: "putSourceDremio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70049,7 +78021,7 @@ func (s *Sources) PutSourceCoinmarketcap(ctx context.Context, request operations return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCoinmarketcapPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDremioPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -70106,7 +78078,7 @@ func (s *Sources) PutSourceCoinmarketcap(ctx context.Context, request operations } } - res := &operations.PutSourceCoinmarketcapResponse{ + res := &operations.PutSourceDremioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70133,11 +78105,11 @@ func (s *Sources) PutSourceCoinmarketcap(ctx context.Context, request operations } -// PutSourceConfigcat - Update a Source fully -func (s *Sources) PutSourceConfigcat(ctx context.Context, request operations.PutSourceConfigcatRequest, opts ...operations.Option) (*operations.PutSourceConfigcatResponse, error) { +// PutSourceDynamodb - Update a Source fully +func (s *Sources) PutSourceDynamodb(ctx context.Context, request operations.PutSourceDynamodbRequest, opts ...operations.Option) (*operations.PutSourceDynamodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceConfigcat", + OperationID: "putSourceDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70159,7 +78131,7 @@ func (s *Sources) PutSourceConfigcat(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceConfigcatPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDynamodbPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -70216,7 +78188,7 @@ func (s *Sources) PutSourceConfigcat(ctx context.Context, request operations.Put } } - res := &operations.PutSourceConfigcatResponse{ + res := &operations.PutSourceDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70243,11 +78215,11 @@ func (s *Sources) PutSourceConfigcat(ctx context.Context, request operations.Put } -// PutSourceConfluence - Update a Source fully -func (s *Sources) PutSourceConfluence(ctx context.Context, request operations.PutSourceConfluenceRequest, opts ...operations.Option) (*operations.PutSourceConfluenceResponse, error) { +// PutSourceEmailoctopus - Update a Source fully +func (s *Sources) PutSourceEmailoctopus(ctx context.Context, request operations.PutSourceEmailoctopusRequest, opts ...operations.Option) (*operations.PutSourceEmailoctopusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceConfluence", + OperationID: "putSourceEmailoctopus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70269,7 +78241,7 @@ func (s *Sources) PutSourceConfluence(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceConfluencePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceEmailoctopusPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -70326,7 +78298,7 @@ func (s *Sources) PutSourceConfluence(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceConfluenceResponse{ + res := &operations.PutSourceEmailoctopusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70353,11 +78325,11 @@ func (s *Sources) PutSourceConfluence(ctx context.Context, request operations.Pu } -// PutSourceConvex - Update a Source fully -func (s *Sources) PutSourceConvex(ctx context.Context, request operations.PutSourceConvexRequest, opts ...operations.Option) (*operations.PutSourceConvexResponse, error) { +// PutSourceExchangeRates - Update a Source fully +func (s *Sources) PutSourceExchangeRates(ctx context.Context, request operations.PutSourceExchangeRatesRequest, opts ...operations.Option) (*operations.PutSourceExchangeRatesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceConvex", + OperationID: "putSourceExchangeRates", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70379,7 +78351,7 @@ func (s *Sources) PutSourceConvex(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceConvexPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceExchangeRatesPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -70436,7 +78408,7 @@ func (s *Sources) PutSourceConvex(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceConvexResponse{ + res := &operations.PutSourceExchangeRatesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70463,11 +78435,11 @@ func (s *Sources) PutSourceConvex(ctx context.Context, request operations.PutSou } -// PutSourceCustom - Update a Source fully -func (s *Sources) PutSourceCustom(ctx context.Context, request operations.PutSourceCustomRequest, opts ...operations.Option) (*operations.PutSourceCustomResponse, error) { +// PutSourceFacebookMarketing - Update a Source fully +func (s *Sources) PutSourceFacebookMarketing(ctx context.Context, request operations.PutSourceFacebookMarketingRequest, opts ...operations.Option) (*operations.PutSourceFacebookMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceCustom", + OperationID: "putSourceFacebookMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70489,7 +78461,7 @@ func (s *Sources) PutSourceCustom(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCustomPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFacebookMarketingPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -70546,7 +78518,7 @@ func (s *Sources) PutSourceCustom(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceCustomResponse{ + res := &operations.PutSourceFacebookMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70573,11 +78545,11 @@ func (s *Sources) PutSourceCustom(ctx context.Context, request operations.PutSou } -// PutSourceDatascope - Update a Source fully -func (s *Sources) PutSourceDatascope(ctx context.Context, request operations.PutSourceDatascopeRequest, opts ...operations.Option) (*operations.PutSourceDatascopeResponse, error) { +// PutSourceFaker - Update a Source fully +func (s *Sources) PutSourceFaker(ctx context.Context, request operations.PutSourceFakerRequest, opts ...operations.Option) (*operations.PutSourceFakerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceDatascope", + OperationID: "putSourceFaker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70599,7 +78571,117 @@ func (s *Sources) PutSourceDatascope(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDatascopePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFakerPutRequest", "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.PutSourceFakerResponse{ + 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 + +} + +// PutSourceFauna - Update a Source fully +func (s *Sources) PutSourceFauna(ctx context.Context, request operations.PutSourceFaunaRequest, opts ...operations.Option) (*operations.PutSourceFaunaResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourceFauna", + 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, "SourceFaunaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -70656,7 +78738,7 @@ func (s *Sources) PutSourceDatascope(ctx context.Context, request operations.Put } } - res := &operations.PutSourceDatascopeResponse{ + res := &operations.PutSourceFaunaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70683,11 +78765,11 @@ func (s *Sources) PutSourceDatascope(ctx context.Context, request operations.Put } -// PutSourceDelighted - Update a Source fully -func (s *Sources) PutSourceDelighted(ctx context.Context, request operations.PutSourceDelightedRequest, opts ...operations.Option) (*operations.PutSourceDelightedResponse, error) { +// PutSourceFile - Update a Source fully +func (s *Sources) PutSourceFile(ctx context.Context, request operations.PutSourceFileRequest, opts ...operations.Option) (*operations.PutSourceFileResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceDelighted", + OperationID: "putSourceFile", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70709,7 +78791,7 @@ func (s *Sources) PutSourceDelighted(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDelightedPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFilePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -70766,7 +78848,7 @@ func (s *Sources) PutSourceDelighted(ctx context.Context, request operations.Put } } - res := &operations.PutSourceDelightedResponse{ + res := &operations.PutSourceFileResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70793,11 +78875,11 @@ func (s *Sources) PutSourceDelighted(ctx context.Context, request operations.Put } -// PutSourceDixa - Update a Source fully -func (s *Sources) PutSourceDixa(ctx context.Context, request operations.PutSourceDixaRequest, opts ...operations.Option) (*operations.PutSourceDixaResponse, error) { +// PutSourceFirebolt - Update a Source fully +func (s *Sources) PutSourceFirebolt(ctx context.Context, request operations.PutSourceFireboltRequest, opts ...operations.Option) (*operations.PutSourceFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceDixa", + OperationID: "putSourceFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70819,7 +78901,7 @@ func (s *Sources) PutSourceDixa(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDixaPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFireboltPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -70876,7 +78958,7 @@ func (s *Sources) PutSourceDixa(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceDixaResponse{ + res := &operations.PutSourceFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70903,11 +78985,11 @@ func (s *Sources) PutSourceDixa(ctx context.Context, request operations.PutSourc } -// PutSourceDockerhub - Update a Source fully -func (s *Sources) PutSourceDockerhub(ctx context.Context, request operations.PutSourceDockerhubRequest, opts ...operations.Option) (*operations.PutSourceDockerhubResponse, error) { +// PutSourceFleetio - Update a Source fully +func (s *Sources) PutSourceFleetio(ctx context.Context, request operations.PutSourceFleetioRequest, opts ...operations.Option) (*operations.PutSourceFleetioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceDockerhub", + OperationID: "putSourceFleetio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70929,7 +79011,7 @@ func (s *Sources) PutSourceDockerhub(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDockerhubPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFleetioPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -70986,7 +79068,7 @@ func (s *Sources) PutSourceDockerhub(ctx context.Context, request operations.Put } } - res := &operations.PutSourceDockerhubResponse{ + res := &operations.PutSourceFleetioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71013,11 +79095,11 @@ func (s *Sources) PutSourceDockerhub(ctx context.Context, request operations.Put } -// PutSourceDremio - Update a Source fully -func (s *Sources) PutSourceDremio(ctx context.Context, request operations.PutSourceDremioRequest, opts ...operations.Option) (*operations.PutSourceDremioResponse, error) { +// PutSourceFreshcaller - Update a Source fully +func (s *Sources) PutSourceFreshcaller(ctx context.Context, request operations.PutSourceFreshcallerRequest, opts ...operations.Option) (*operations.PutSourceFreshcallerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceDremio", + OperationID: "putSourceFreshcaller", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71039,7 +79121,7 @@ func (s *Sources) PutSourceDremio(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDremioPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFreshcallerPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -71096,7 +79178,7 @@ func (s *Sources) PutSourceDremio(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceDremioResponse{ + res := &operations.PutSourceFreshcallerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71123,11 +79205,11 @@ func (s *Sources) PutSourceDremio(ctx context.Context, request operations.PutSou } -// PutSourceDynamodb - Update a Source fully -func (s *Sources) PutSourceDynamodb(ctx context.Context, request operations.PutSourceDynamodbRequest, opts ...operations.Option) (*operations.PutSourceDynamodbResponse, error) { +// PutSourceFreshdesk - Update a Source fully +func (s *Sources) PutSourceFreshdesk(ctx context.Context, request operations.PutSourceFreshdeskRequest, opts ...operations.Option) (*operations.PutSourceFreshdeskResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceDynamodb", + OperationID: "putSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71149,7 +79231,7 @@ func (s *Sources) PutSourceDynamodb(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDynamodbPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFreshdeskPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -71206,7 +79288,7 @@ func (s *Sources) PutSourceDynamodb(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceDynamodbResponse{ + res := &operations.PutSourceFreshdeskResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71233,11 +79315,11 @@ func (s *Sources) PutSourceDynamodb(ctx context.Context, request operations.PutS } -// PutSourceEmailoctopus - Update a Source fully -func (s *Sources) PutSourceEmailoctopus(ctx context.Context, request operations.PutSourceEmailoctopusRequest, opts ...operations.Option) (*operations.PutSourceEmailoctopusResponse, error) { +// PutSourceFreshsales - Update a Source fully +func (s *Sources) PutSourceFreshsales(ctx context.Context, request operations.PutSourceFreshsalesRequest, opts ...operations.Option) (*operations.PutSourceFreshsalesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceEmailoctopus", + OperationID: "putSourceFreshsales", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71259,7 +79341,7 @@ func (s *Sources) PutSourceEmailoctopus(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceEmailoctopusPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFreshsalesPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -71316,7 +79398,7 @@ func (s *Sources) PutSourceEmailoctopus(ctx context.Context, request operations. } } - res := &operations.PutSourceEmailoctopusResponse{ + res := &operations.PutSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71343,11 +79425,11 @@ func (s *Sources) PutSourceEmailoctopus(ctx context.Context, request operations. } -// PutSourceExchangeRates - Update a Source fully -func (s *Sources) PutSourceExchangeRates(ctx context.Context, request operations.PutSourceExchangeRatesRequest, opts ...operations.Option) (*operations.PutSourceExchangeRatesResponse, error) { +// PutSourceGainsightPx - Update a Source fully +func (s *Sources) PutSourceGainsightPx(ctx context.Context, request operations.PutSourceGainsightPxRequest, opts ...operations.Option) (*operations.PutSourceGainsightPxResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceExchangeRates", + OperationID: "putSourceGainsightPx", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71369,7 +79451,7 @@ func (s *Sources) PutSourceExchangeRates(ctx context.Context, request operations return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceExchangeRatesPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGainsightPxPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -71426,7 +79508,7 @@ func (s *Sources) PutSourceExchangeRates(ctx context.Context, request operations } } - res := &operations.PutSourceExchangeRatesResponse{ + res := &operations.PutSourceGainsightPxResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71453,11 +79535,11 @@ func (s *Sources) PutSourceExchangeRates(ctx context.Context, request operations } -// PutSourceFacebookMarketing - Update a Source fully -func (s *Sources) PutSourceFacebookMarketing(ctx context.Context, request operations.PutSourceFacebookMarketingRequest, opts ...operations.Option) (*operations.PutSourceFacebookMarketingResponse, error) { +// PutSourceGcs - Update a Source fully +func (s *Sources) PutSourceGcs(ctx context.Context, request operations.PutSourceGcsRequest, opts ...operations.Option) (*operations.PutSourceGcsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceFacebookMarketing", + OperationID: "putSourceGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71479,7 +79561,7 @@ func (s *Sources) PutSourceFacebookMarketing(ctx context.Context, request operat return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFacebookMarketingPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGcsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -71536,7 +79618,7 @@ func (s *Sources) PutSourceFacebookMarketing(ctx context.Context, request operat } } - res := &operations.PutSourceFacebookMarketingResponse{ + res := &operations.PutSourceGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71563,11 +79645,11 @@ func (s *Sources) PutSourceFacebookMarketing(ctx context.Context, request operat } -// PutSourceFaker - Update a Source fully -func (s *Sources) PutSourceFaker(ctx context.Context, request operations.PutSourceFakerRequest, opts ...operations.Option) (*operations.PutSourceFakerResponse, error) { +// PutSourceGetlago - Update a Source fully +func (s *Sources) PutSourceGetlago(ctx context.Context, request operations.PutSourceGetlagoRequest, opts ...operations.Option) (*operations.PutSourceGetlagoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceFaker", + OperationID: "putSourceGetlago", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71589,7 +79671,7 @@ func (s *Sources) PutSourceFaker(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFakerPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGetlagoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -71646,7 +79728,7 @@ func (s *Sources) PutSourceFaker(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceFakerResponse{ + res := &operations.PutSourceGetlagoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71673,11 +79755,11 @@ func (s *Sources) PutSourceFaker(ctx context.Context, request operations.PutSour } -// PutSourceFauna - Update a Source fully -func (s *Sources) PutSourceFauna(ctx context.Context, request operations.PutSourceFaunaRequest, opts ...operations.Option) (*operations.PutSourceFaunaResponse, error) { +// PutSourceGithub - Update a Source fully +func (s *Sources) PutSourceGithub(ctx context.Context, request operations.PutSourceGithubRequest, opts ...operations.Option) (*operations.PutSourceGithubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceFauna", + OperationID: "putSourceGithub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71699,7 +79781,7 @@ func (s *Sources) PutSourceFauna(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFaunaPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGithubPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -71756,7 +79838,7 @@ func (s *Sources) PutSourceFauna(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceFaunaResponse{ + res := &operations.PutSourceGithubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71783,11 +79865,11 @@ func (s *Sources) PutSourceFauna(ctx context.Context, request operations.PutSour } -// PutSourceFile - Update a Source fully -func (s *Sources) PutSourceFile(ctx context.Context, request operations.PutSourceFileRequest, opts ...operations.Option) (*operations.PutSourceFileResponse, error) { +// PutSourceGitlab - Update a Source fully +func (s *Sources) PutSourceGitlab(ctx context.Context, request operations.PutSourceGitlabRequest, opts ...operations.Option) (*operations.PutSourceGitlabResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceFile", + OperationID: "putSourceGitlab", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71809,7 +79891,7 @@ func (s *Sources) PutSourceFile(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFilePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGitlabPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -71866,7 +79948,7 @@ func (s *Sources) PutSourceFile(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceFileResponse{ + res := &operations.PutSourceGitlabResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71893,11 +79975,11 @@ func (s *Sources) PutSourceFile(ctx context.Context, request operations.PutSourc } -// PutSourceFirebolt - Update a Source fully -func (s *Sources) PutSourceFirebolt(ctx context.Context, request operations.PutSourceFireboltRequest, opts ...operations.Option) (*operations.PutSourceFireboltResponse, error) { +// PutSourceGlassfrog - Update a Source fully +func (s *Sources) PutSourceGlassfrog(ctx context.Context, request operations.PutSourceGlassfrogRequest, opts ...operations.Option) (*operations.PutSourceGlassfrogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceFirebolt", + OperationID: "putSourceGlassfrog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71919,7 +80001,7 @@ func (s *Sources) PutSourceFirebolt(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFireboltPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGlassfrogPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -71976,7 +80058,7 @@ func (s *Sources) PutSourceFirebolt(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceFireboltResponse{ + res := &operations.PutSourceGlassfrogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72003,11 +80085,11 @@ func (s *Sources) PutSourceFirebolt(ctx context.Context, request operations.PutS } -// PutSourceFleetio - Update a Source fully -func (s *Sources) PutSourceFleetio(ctx context.Context, request operations.PutSourceFleetioRequest, opts ...operations.Option) (*operations.PutSourceFleetioResponse, error) { +// PutSourceGnews - Update a Source fully +func (s *Sources) PutSourceGnews(ctx context.Context, request operations.PutSourceGnewsRequest, opts ...operations.Option) (*operations.PutSourceGnewsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceFleetio", + OperationID: "putSourceGnews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72029,7 +80111,7 @@ func (s *Sources) PutSourceFleetio(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFleetioPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGnewsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -72086,7 +80168,7 @@ func (s *Sources) PutSourceFleetio(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceFleetioResponse{ + res := &operations.PutSourceGnewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72113,11 +80195,11 @@ func (s *Sources) PutSourceFleetio(ctx context.Context, request operations.PutSo } -// PutSourceFreshcaller - Update a Source fully -func (s *Sources) PutSourceFreshcaller(ctx context.Context, request operations.PutSourceFreshcallerRequest, opts ...operations.Option) (*operations.PutSourceFreshcallerResponse, error) { +// PutSourceGoldcast - Update a Source fully +func (s *Sources) PutSourceGoldcast(ctx context.Context, request operations.PutSourceGoldcastRequest, opts ...operations.Option) (*operations.PutSourceGoldcastResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceFreshcaller", + OperationID: "putSourceGoldcast", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72139,7 +80221,7 @@ func (s *Sources) PutSourceFreshcaller(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFreshcallerPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoldcastPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -72196,7 +80278,7 @@ func (s *Sources) PutSourceFreshcaller(ctx context.Context, request operations.P } } - res := &operations.PutSourceFreshcallerResponse{ + res := &operations.PutSourceGoldcastResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72223,11 +80305,11 @@ func (s *Sources) PutSourceFreshcaller(ctx context.Context, request operations.P } -// PutSourceFreshdesk - Update a Source fully -func (s *Sources) PutSourceFreshdesk(ctx context.Context, request operations.PutSourceFreshdeskRequest, opts ...operations.Option) (*operations.PutSourceFreshdeskResponse, 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: "putSourceFreshdesk", + OperationID: "putSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72249,7 +80331,7 @@ func (s *Sources) PutSourceFreshdesk(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFreshdeskPutRequest", "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 } @@ -72306,7 +80388,7 @@ func (s *Sources) PutSourceFreshdesk(ctx context.Context, request operations.Put } } - res := &operations.PutSourceFreshdeskResponse{ + res := &operations.PutSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72333,11 +80415,11 @@ func (s *Sources) PutSourceFreshdesk(ctx context.Context, request operations.Put } -// PutSourceFreshsales - Update a Source fully -func (s *Sources) PutSourceFreshsales(ctx context.Context, request operations.PutSourceFreshsalesRequest, opts ...operations.Option) (*operations.PutSourceFreshsalesResponse, 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: "putSourceFreshsales", + OperationID: "putSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72359,7 +80441,7 @@ func (s *Sources) PutSourceFreshsales(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFreshsalesPutRequest", "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 } @@ -72416,7 +80498,7 @@ func (s *Sources) PutSourceFreshsales(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceFreshsalesResponse{ + res := &operations.PutSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72443,11 +80525,11 @@ func (s *Sources) PutSourceFreshsales(ctx context.Context, request operations.Pu } -// PutSourceGainsightPx - Update a Source fully -func (s *Sources) PutSourceGainsightPx(ctx context.Context, request operations.PutSourceGainsightPxRequest, opts ...operations.Option) (*operations.PutSourceGainsightPxResponse, error) { +// PutSourceGoogleDirectory - Update a Source fully +func (s *Sources) PutSourceGoogleDirectory(ctx context.Context, request operations.PutSourceGoogleDirectoryRequest, opts ...operations.Option) (*operations.PutSourceGoogleDirectoryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGainsightPx", + OperationID: "putSourceGoogleDirectory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72469,7 +80551,7 @@ func (s *Sources) PutSourceGainsightPx(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGainsightPxPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleDirectoryPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -72526,7 +80608,7 @@ func (s *Sources) PutSourceGainsightPx(ctx context.Context, request operations.P } } - res := &operations.PutSourceGainsightPxResponse{ + res := &operations.PutSourceGoogleDirectoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72553,11 +80635,11 @@ func (s *Sources) PutSourceGainsightPx(ctx context.Context, request operations.P } -// PutSourceGcs - Update a Source fully -func (s *Sources) PutSourceGcs(ctx context.Context, request operations.PutSourceGcsRequest, opts ...operations.Option) (*operations.PutSourceGcsResponse, error) { +// PutSourceGoogleDrive - Update a Source fully +func (s *Sources) PutSourceGoogleDrive(ctx context.Context, request operations.PutSourceGoogleDriveRequest, opts ...operations.Option) (*operations.PutSourceGoogleDriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGcs", + OperationID: "putSourceGoogleDrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72579,7 +80661,7 @@ func (s *Sources) PutSourceGcs(ctx context.Context, request operations.PutSource return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGcsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleDrivePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -72636,7 +80718,7 @@ func (s *Sources) PutSourceGcs(ctx context.Context, request operations.PutSource } } - res := &operations.PutSourceGcsResponse{ + res := &operations.PutSourceGoogleDriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72663,11 +80745,11 @@ func (s *Sources) PutSourceGcs(ctx context.Context, request operations.PutSource } -// PutSourceGetlago - Update a Source fully -func (s *Sources) PutSourceGetlago(ctx context.Context, request operations.PutSourceGetlagoRequest, opts ...operations.Option) (*operations.PutSourceGetlagoResponse, error) { +// PutSourceGooglePagespeedInsights - Update a Source fully +func (s *Sources) PutSourceGooglePagespeedInsights(ctx context.Context, request operations.PutSourceGooglePagespeedInsightsRequest, opts ...operations.Option) (*operations.PutSourceGooglePagespeedInsightsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGetlago", + OperationID: "putSourceGooglePagespeedInsights", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72689,7 +80771,7 @@ func (s *Sources) PutSourceGetlago(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGetlagoPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGooglePagespeedInsightsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -72746,7 +80828,7 @@ func (s *Sources) PutSourceGetlago(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceGetlagoResponse{ + res := &operations.PutSourceGooglePagespeedInsightsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72773,11 +80855,11 @@ func (s *Sources) PutSourceGetlago(ctx context.Context, request operations.PutSo } -// PutSourceGithub - Update a Source fully -func (s *Sources) PutSourceGithub(ctx context.Context, request operations.PutSourceGithubRequest, opts ...operations.Option) (*operations.PutSourceGithubResponse, error) { +// PutSourceGoogleSearchConsole - Update a Source fully +func (s *Sources) PutSourceGoogleSearchConsole(ctx context.Context, request operations.PutSourceGoogleSearchConsoleRequest, opts ...operations.Option) (*operations.PutSourceGoogleSearchConsoleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGithub", + OperationID: "putSourceGoogleSearchConsole", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72799,7 +80881,7 @@ func (s *Sources) PutSourceGithub(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGithubPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleSearchConsolePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -72856,7 +80938,7 @@ func (s *Sources) PutSourceGithub(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceGithubResponse{ + res := &operations.PutSourceGoogleSearchConsoleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72883,11 +80965,11 @@ func (s *Sources) PutSourceGithub(ctx context.Context, request operations.PutSou } -// PutSourceGitlab - Update a Source fully -func (s *Sources) PutSourceGitlab(ctx context.Context, request operations.PutSourceGitlabRequest, opts ...operations.Option) (*operations.PutSourceGitlabResponse, error) { +// PutSourceGoogleSheets - Update a Source fully +func (s *Sources) PutSourceGoogleSheets(ctx context.Context, request operations.PutSourceGoogleSheetsRequest, opts ...operations.Option) (*operations.PutSourceGoogleSheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGitlab", + OperationID: "putSourceGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72909,7 +80991,7 @@ func (s *Sources) PutSourceGitlab(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGitlabPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleSheetsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -72966,7 +81048,7 @@ func (s *Sources) PutSourceGitlab(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceGitlabResponse{ + res := &operations.PutSourceGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72993,11 +81075,11 @@ func (s *Sources) PutSourceGitlab(ctx context.Context, request operations.PutSou } -// PutSourceGlassfrog - Update a Source fully -func (s *Sources) PutSourceGlassfrog(ctx context.Context, request operations.PutSourceGlassfrogRequest, opts ...operations.Option) (*operations.PutSourceGlassfrogResponse, error) { +// PutSourceGoogleWebfonts - Update a Source fully +func (s *Sources) PutSourceGoogleWebfonts(ctx context.Context, request operations.PutSourceGoogleWebfontsRequest, opts ...operations.Option) (*operations.PutSourceGoogleWebfontsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGlassfrog", + OperationID: "putSourceGoogleWebfonts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73019,7 +81101,7 @@ func (s *Sources) PutSourceGlassfrog(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGlassfrogPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleWebfontsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73076,7 +81158,7 @@ func (s *Sources) PutSourceGlassfrog(ctx context.Context, request operations.Put } } - res := &operations.PutSourceGlassfrogResponse{ + res := &operations.PutSourceGoogleWebfontsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73103,11 +81185,11 @@ func (s *Sources) PutSourceGlassfrog(ctx context.Context, request operations.Put } -// PutSourceGnews - Update a Source fully -func (s *Sources) PutSourceGnews(ctx context.Context, request operations.PutSourceGnewsRequest, opts ...operations.Option) (*operations.PutSourceGnewsResponse, error) { +// PutSourceGreenhouse - Update a Source fully +func (s *Sources) PutSourceGreenhouse(ctx context.Context, request operations.PutSourceGreenhouseRequest, opts ...operations.Option) (*operations.PutSourceGreenhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGnews", + OperationID: "putSourceGreenhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73129,7 +81211,7 @@ func (s *Sources) PutSourceGnews(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGnewsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGreenhousePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73186,7 +81268,7 @@ func (s *Sources) PutSourceGnews(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceGnewsResponse{ + res := &operations.PutSourceGreenhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73213,11 +81295,11 @@ func (s *Sources) PutSourceGnews(ctx context.Context, request operations.PutSour } -// PutSourceGoogleAds - Update a Source fully -func (s *Sources) PutSourceGoogleAds(ctx context.Context, request operations.PutSourceGoogleAdsRequest, opts ...operations.Option) (*operations.PutSourceGoogleAdsResponse, error) { +// PutSourceGridly - Update a Source fully +func (s *Sources) PutSourceGridly(ctx context.Context, request operations.PutSourceGridlyRequest, opts ...operations.Option) (*operations.PutSourceGridlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleAds", + OperationID: "putSourceGridly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73239,7 +81321,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, "SourceGridlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73296,7 +81378,7 @@ func (s *Sources) PutSourceGoogleAds(ctx context.Context, request operations.Put } } - res := &operations.PutSourceGoogleAdsResponse{ + res := &operations.PutSourceGridlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73323,11 +81405,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) { +// PutSourceHardcodedRecords - Update a Source fully +func (s *Sources) PutSourceHardcodedRecords(ctx context.Context, request operations.PutSourceHardcodedRecordsRequest, opts ...operations.Option) (*operations.PutSourceHardcodedRecordsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleAnalyticsDataApi", + OperationID: "putSourceHardcodedRecords", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73349,7 +81431,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, "SourceHardcodedRecordsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73406,7 +81488,7 @@ func (s *Sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } } - res := &operations.PutSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.PutSourceHardcodedRecordsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73433,11 +81515,11 @@ func (s *Sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } -// PutSourceGoogleAnalyticsV4ServiceAccountOnly - Update a Source fully -func (s *Sources) PutSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Context, request operations.PutSourceGoogleAnalyticsV4ServiceAccountOnlyRequest, opts ...operations.Option) (*operations.PutSourceGoogleAnalyticsV4ServiceAccountOnlyResponse, error) { +// PutSourceHarvest - Update a Source fully +func (s *Sources) PutSourceHarvest(ctx context.Context, request operations.PutSourceHarvestRequest, opts ...operations.Option) (*operations.PutSourceHarvestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleAnalyticsV4ServiceAccountOnly", + OperationID: "putSourceHarvest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73459,7 +81541,7 @@ func (s *Sources) PutSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Conte return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHarvestPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73516,7 +81598,7 @@ func (s *Sources) PutSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Conte } } - res := &operations.PutSourceGoogleAnalyticsV4ServiceAccountOnlyResponse{ + res := &operations.PutSourceHarvestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73543,11 +81625,11 @@ func (s *Sources) PutSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Conte } -// PutSourceGoogleDirectory - Update a Source fully -func (s *Sources) PutSourceGoogleDirectory(ctx context.Context, request operations.PutSourceGoogleDirectoryRequest, opts ...operations.Option) (*operations.PutSourceGoogleDirectoryResponse, error) { +// PutSourceHibob - Update a Source fully +func (s *Sources) PutSourceHibob(ctx context.Context, request operations.PutSourceHibobRequest, opts ...operations.Option) (*operations.PutSourceHibobResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleDirectory", + OperationID: "putSourceHibob", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73569,7 +81651,7 @@ func (s *Sources) PutSourceGoogleDirectory(ctx context.Context, request operatio return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleDirectoryPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHibobPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73626,7 +81708,7 @@ func (s *Sources) PutSourceGoogleDirectory(ctx context.Context, request operatio } } - res := &operations.PutSourceGoogleDirectoryResponse{ + res := &operations.PutSourceHibobResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73653,11 +81735,11 @@ func (s *Sources) PutSourceGoogleDirectory(ctx context.Context, request operatio } -// PutSourceGoogleDrive - Update a Source fully -func (s *Sources) PutSourceGoogleDrive(ctx context.Context, request operations.PutSourceGoogleDriveRequest, opts ...operations.Option) (*operations.PutSourceGoogleDriveResponse, error) { +// PutSourceHighLevel - Update a Source fully +func (s *Sources) PutSourceHighLevel(ctx context.Context, request operations.PutSourceHighLevelRequest, opts ...operations.Option) (*operations.PutSourceHighLevelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleDrive", + OperationID: "putSourceHighLevel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73679,7 +81761,7 @@ func (s *Sources) PutSourceGoogleDrive(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleDrivePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHighLevelPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73736,7 +81818,7 @@ func (s *Sources) PutSourceGoogleDrive(ctx context.Context, request operations.P } } - res := &operations.PutSourceGoogleDriveResponse{ + res := &operations.PutSourceHighLevelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73763,11 +81845,11 @@ func (s *Sources) PutSourceGoogleDrive(ctx context.Context, request operations.P } -// PutSourceGooglePagespeedInsights - Update a Source fully -func (s *Sources) PutSourceGooglePagespeedInsights(ctx context.Context, request operations.PutSourceGooglePagespeedInsightsRequest, opts ...operations.Option) (*operations.PutSourceGooglePagespeedInsightsResponse, error) { +// PutSourceHubplanner - Update a Source fully +func (s *Sources) PutSourceHubplanner(ctx context.Context, request operations.PutSourceHubplannerRequest, opts ...operations.Option) (*operations.PutSourceHubplannerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGooglePagespeedInsights", + OperationID: "putSourceHubplanner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73789,7 +81871,7 @@ func (s *Sources) PutSourceGooglePagespeedInsights(ctx context.Context, request return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGooglePagespeedInsightsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHubplannerPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73846,7 +81928,7 @@ func (s *Sources) PutSourceGooglePagespeedInsights(ctx context.Context, request } } - res := &operations.PutSourceGooglePagespeedInsightsResponse{ + res := &operations.PutSourceHubplannerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73873,11 +81955,11 @@ func (s *Sources) PutSourceGooglePagespeedInsights(ctx context.Context, request } -// PutSourceGoogleSearchConsole - Update a Source fully -func (s *Sources) PutSourceGoogleSearchConsole(ctx context.Context, request operations.PutSourceGoogleSearchConsoleRequest, opts ...operations.Option) (*operations.PutSourceGoogleSearchConsoleResponse, error) { +// PutSourceHubspot - Update a Source fully +func (s *Sources) PutSourceHubspot(ctx context.Context, request operations.PutSourceHubspotRequest, opts ...operations.Option) (*operations.PutSourceHubspotResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleSearchConsole", + OperationID: "putSourceHubspot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73899,7 +81981,7 @@ func (s *Sources) PutSourceGoogleSearchConsole(ctx context.Context, request oper return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleSearchConsolePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHubspotPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73956,7 +82038,7 @@ func (s *Sources) PutSourceGoogleSearchConsole(ctx context.Context, request oper } } - res := &operations.PutSourceGoogleSearchConsoleResponse{ + res := &operations.PutSourceHubspotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73983,11 +82065,11 @@ func (s *Sources) PutSourceGoogleSearchConsole(ctx context.Context, request oper } -// PutSourceGoogleSheets - Update a Source fully -func (s *Sources) PutSourceGoogleSheets(ctx context.Context, request operations.PutSourceGoogleSheetsRequest, opts ...operations.Option) (*operations.PutSourceGoogleSheetsResponse, error) { +// PutSourceInsightly - Update a Source fully +func (s *Sources) PutSourceInsightly(ctx context.Context, request operations.PutSourceInsightlyRequest, opts ...operations.Option) (*operations.PutSourceInsightlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleSheets", + OperationID: "putSourceInsightly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74009,7 +82091,7 @@ func (s *Sources) PutSourceGoogleSheets(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleSheetsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceInsightlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74066,7 +82148,7 @@ func (s *Sources) PutSourceGoogleSheets(ctx context.Context, request operations. } } - res := &operations.PutSourceGoogleSheetsResponse{ + res := &operations.PutSourceInsightlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74093,11 +82175,11 @@ func (s *Sources) PutSourceGoogleSheets(ctx context.Context, request operations. } -// PutSourceGoogleWebfonts - Update a Source fully -func (s *Sources) PutSourceGoogleWebfonts(ctx context.Context, request operations.PutSourceGoogleWebfontsRequest, opts ...operations.Option) (*operations.PutSourceGoogleWebfontsResponse, error) { +// PutSourceInstagram - Update a Source fully +func (s *Sources) PutSourceInstagram(ctx context.Context, request operations.PutSourceInstagramRequest, opts ...operations.Option) (*operations.PutSourceInstagramResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleWebfonts", + OperationID: "putSourceInstagram", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74119,7 +82201,7 @@ func (s *Sources) PutSourceGoogleWebfonts(ctx context.Context, request operation return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleWebfontsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceInstagramPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74176,7 +82258,7 @@ func (s *Sources) PutSourceGoogleWebfonts(ctx context.Context, request operation } } - res := &operations.PutSourceGoogleWebfontsResponse{ + res := &operations.PutSourceInstagramResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74203,11 +82285,11 @@ func (s *Sources) PutSourceGoogleWebfonts(ctx context.Context, request operation } -// PutSourceGreenhouse - Update a Source fully -func (s *Sources) PutSourceGreenhouse(ctx context.Context, request operations.PutSourceGreenhouseRequest, opts ...operations.Option) (*operations.PutSourceGreenhouseResponse, error) { +// PutSourceInstatus - Update a Source fully +func (s *Sources) PutSourceInstatus(ctx context.Context, request operations.PutSourceInstatusRequest, opts ...operations.Option) (*operations.PutSourceInstatusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGreenhouse", + OperationID: "putSourceInstatus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74229,7 +82311,7 @@ func (s *Sources) PutSourceGreenhouse(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGreenhousePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceInstatusPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74286,7 +82368,7 @@ func (s *Sources) PutSourceGreenhouse(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceGreenhouseResponse{ + res := &operations.PutSourceInstatusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74313,11 +82395,11 @@ func (s *Sources) PutSourceGreenhouse(ctx context.Context, request operations.Pu } -// PutSourceGridly - Update a Source fully -func (s *Sources) PutSourceGridly(ctx context.Context, request operations.PutSourceGridlyRequest, opts ...operations.Option) (*operations.PutSourceGridlyResponse, error) { +// PutSourceIntercom - Update a Source fully +func (s *Sources) PutSourceIntercom(ctx context.Context, request operations.PutSourceIntercomRequest, opts ...operations.Option) (*operations.PutSourceIntercomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGridly", + OperationID: "putSourceIntercom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74339,7 +82421,7 @@ func (s *Sources) PutSourceGridly(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGridlyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceIntercomPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74396,7 +82478,7 @@ func (s *Sources) PutSourceGridly(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceGridlyResponse{ + res := &operations.PutSourceIntercomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74423,11 +82505,11 @@ func (s *Sources) PutSourceGridly(ctx context.Context, request operations.PutSou } -// PutSourceHarvest - Update a Source fully -func (s *Sources) PutSourceHarvest(ctx context.Context, request operations.PutSourceHarvestRequest, opts ...operations.Option) (*operations.PutSourceHarvestResponse, error) { +// PutSourceIp2whois - Update a Source fully +func (s *Sources) PutSourceIp2whois(ctx context.Context, request operations.PutSourceIp2whoisRequest, opts ...operations.Option) (*operations.PutSourceIp2whoisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceHarvest", + OperationID: "putSourceIp2whois", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74449,7 +82531,7 @@ func (s *Sources) PutSourceHarvest(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHarvestPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceIp2whoisPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74506,7 +82588,7 @@ func (s *Sources) PutSourceHarvest(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceHarvestResponse{ + res := &operations.PutSourceIp2whoisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74533,11 +82615,11 @@ func (s *Sources) PutSourceHarvest(ctx context.Context, request operations.PutSo } -// PutSourceHubplanner - Update a Source fully -func (s *Sources) PutSourceHubplanner(ctx context.Context, request operations.PutSourceHubplannerRequest, opts ...operations.Option) (*operations.PutSourceHubplannerResponse, error) { +// PutSourceIterable - Update a Source fully +func (s *Sources) PutSourceIterable(ctx context.Context, request operations.PutSourceIterableRequest, opts ...operations.Option) (*operations.PutSourceIterableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceHubplanner", + OperationID: "putSourceIterable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74559,7 +82641,7 @@ func (s *Sources) PutSourceHubplanner(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHubplannerPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceIterablePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74616,7 +82698,7 @@ func (s *Sources) PutSourceHubplanner(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceHubplannerResponse{ + res := &operations.PutSourceIterableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74643,11 +82725,11 @@ func (s *Sources) PutSourceHubplanner(ctx context.Context, request operations.Pu } -// PutSourceHubspot - Update a Source fully -func (s *Sources) PutSourceHubspot(ctx context.Context, request operations.PutSourceHubspotRequest, opts ...operations.Option) (*operations.PutSourceHubspotResponse, error) { +// PutSourceJira - Update a Source fully +func (s *Sources) PutSourceJira(ctx context.Context, request operations.PutSourceJiraRequest, opts ...operations.Option) (*operations.PutSourceJiraResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceHubspot", + OperationID: "putSourceJira", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74669,7 +82751,7 @@ func (s *Sources) PutSourceHubspot(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHubspotPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceJiraPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74726,7 +82808,7 @@ func (s *Sources) PutSourceHubspot(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceHubspotResponse{ + res := &operations.PutSourceJiraResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74753,11 +82835,11 @@ func (s *Sources) PutSourceHubspot(ctx context.Context, request operations.PutSo } -// PutSourceInsightly - Update a Source fully -func (s *Sources) PutSourceInsightly(ctx context.Context, request operations.PutSourceInsightlyRequest, opts ...operations.Option) (*operations.PutSourceInsightlyResponse, error) { +// PutSourceK6Cloud - Update a Source fully +func (s *Sources) PutSourceK6Cloud(ctx context.Context, request operations.PutSourceK6CloudRequest, opts ...operations.Option) (*operations.PutSourceK6CloudResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceInsightly", + OperationID: "putSourceK6Cloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74779,7 +82861,7 @@ func (s *Sources) PutSourceInsightly(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceInsightlyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceK6CloudPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74836,7 +82918,7 @@ func (s *Sources) PutSourceInsightly(ctx context.Context, request operations.Put } } - res := &operations.PutSourceInsightlyResponse{ + res := &operations.PutSourceK6CloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74863,11 +82945,11 @@ func (s *Sources) PutSourceInsightly(ctx context.Context, request operations.Put } -// PutSourceInstagram - Update a Source fully -func (s *Sources) PutSourceInstagram(ctx context.Context, request operations.PutSourceInstagramRequest, opts ...operations.Option) (*operations.PutSourceInstagramResponse, error) { +// PutSourceKlarna - Update a Source fully +func (s *Sources) PutSourceKlarna(ctx context.Context, request operations.PutSourceKlarnaRequest, opts ...operations.Option) (*operations.PutSourceKlarnaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceInstagram", + OperationID: "putSourceKlarna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74889,7 +82971,7 @@ func (s *Sources) PutSourceInstagram(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceInstagramPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKlarnaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74946,7 +83028,7 @@ func (s *Sources) PutSourceInstagram(ctx context.Context, request operations.Put } } - res := &operations.PutSourceInstagramResponse{ + res := &operations.PutSourceKlarnaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74973,11 +83055,11 @@ func (s *Sources) PutSourceInstagram(ctx context.Context, request operations.Put } -// PutSourceInstatus - Update a Source fully -func (s *Sources) PutSourceInstatus(ctx context.Context, request operations.PutSourceInstatusRequest, opts ...operations.Option) (*operations.PutSourceInstatusResponse, error) { +// PutSourceKlaviyo - Update a Source fully +func (s *Sources) PutSourceKlaviyo(ctx context.Context, request operations.PutSourceKlaviyoRequest, opts ...operations.Option) (*operations.PutSourceKlaviyoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceInstatus", + OperationID: "putSourceKlaviyo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74999,7 +83081,7 @@ func (s *Sources) PutSourceInstatus(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceInstatusPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKlaviyoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75056,7 +83138,7 @@ func (s *Sources) PutSourceInstatus(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceInstatusResponse{ + res := &operations.PutSourceKlaviyoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75083,11 +83165,11 @@ func (s *Sources) PutSourceInstatus(ctx context.Context, request operations.PutS } -// PutSourceIntercom - Update a Source fully -func (s *Sources) PutSourceIntercom(ctx context.Context, request operations.PutSourceIntercomRequest, opts ...operations.Option) (*operations.PutSourceIntercomResponse, error) { +// PutSourceKyve - Update a Source fully +func (s *Sources) PutSourceKyve(ctx context.Context, request operations.PutSourceKyveRequest, opts ...operations.Option) (*operations.PutSourceKyveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceIntercom", + OperationID: "putSourceKyve", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75109,7 +83191,7 @@ func (s *Sources) PutSourceIntercom(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceIntercomPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKyvePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75166,7 +83248,7 @@ func (s *Sources) PutSourceIntercom(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceIntercomResponse{ + res := &operations.PutSourceKyveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75193,11 +83275,11 @@ func (s *Sources) PutSourceIntercom(ctx context.Context, request operations.PutS } -// PutSourceIp2whois - Update a Source fully -func (s *Sources) PutSourceIp2whois(ctx context.Context, request operations.PutSourceIp2whoisRequest, opts ...operations.Option) (*operations.PutSourceIp2whoisResponse, error) { +// PutSourceLaunchdarkly - Update a Source fully +func (s *Sources) PutSourceLaunchdarkly(ctx context.Context, request operations.PutSourceLaunchdarklyRequest, opts ...operations.Option) (*operations.PutSourceLaunchdarklyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceIp2whois", + OperationID: "putSourceLaunchdarkly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75219,7 +83301,7 @@ func (s *Sources) PutSourceIp2whois(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceIp2whoisPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLaunchdarklyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75276,7 +83358,7 @@ func (s *Sources) PutSourceIp2whois(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceIp2whoisResponse{ + res := &operations.PutSourceLaunchdarklyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75303,11 +83385,11 @@ func (s *Sources) PutSourceIp2whois(ctx context.Context, request operations.PutS } -// PutSourceIterable - Update a Source fully -func (s *Sources) PutSourceIterable(ctx context.Context, request operations.PutSourceIterableRequest, opts ...operations.Option) (*operations.PutSourceIterableResponse, error) { +// PutSourceLeadfeeder - Update a Source fully +func (s *Sources) PutSourceLeadfeeder(ctx context.Context, request operations.PutSourceLeadfeederRequest, opts ...operations.Option) (*operations.PutSourceLeadfeederResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceIterable", + OperationID: "putSourceLeadfeeder", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75329,7 +83411,7 @@ func (s *Sources) PutSourceIterable(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceIterablePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLeadfeederPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75386,7 +83468,7 @@ func (s *Sources) PutSourceIterable(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceIterableResponse{ + res := &operations.PutSourceLeadfeederResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75413,11 +83495,11 @@ func (s *Sources) PutSourceIterable(ctx context.Context, request operations.PutS } -// PutSourceJira - Update a Source fully -func (s *Sources) PutSourceJira(ctx context.Context, request operations.PutSourceJiraRequest, opts ...operations.Option) (*operations.PutSourceJiraResponse, error) { +// PutSourceLemlist - Update a Source fully +func (s *Sources) PutSourceLemlist(ctx context.Context, request operations.PutSourceLemlistRequest, opts ...operations.Option) (*operations.PutSourceLemlistResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceJira", + OperationID: "putSourceLemlist", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75439,7 +83521,7 @@ func (s *Sources) PutSourceJira(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceJiraPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLemlistPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75496,7 +83578,7 @@ func (s *Sources) PutSourceJira(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceJiraResponse{ + res := &operations.PutSourceLemlistResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75523,11 +83605,11 @@ func (s *Sources) PutSourceJira(ctx context.Context, request operations.PutSourc } -// PutSourceK6Cloud - Update a Source fully -func (s *Sources) PutSourceK6Cloud(ctx context.Context, request operations.PutSourceK6CloudRequest, opts ...operations.Option) (*operations.PutSourceK6CloudResponse, error) { +// PutSourceLeverHiring - Update a Source fully +func (s *Sources) PutSourceLeverHiring(ctx context.Context, request operations.PutSourceLeverHiringRequest, opts ...operations.Option) (*operations.PutSourceLeverHiringResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceK6Cloud", + OperationID: "putSourceLeverHiring", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75549,7 +83631,7 @@ func (s *Sources) PutSourceK6Cloud(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceK6CloudPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLeverHiringPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75606,7 +83688,7 @@ func (s *Sources) PutSourceK6Cloud(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceK6CloudResponse{ + res := &operations.PutSourceLeverHiringResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75633,11 +83715,11 @@ func (s *Sources) PutSourceK6Cloud(ctx context.Context, request operations.PutSo } -// PutSourceKlarna - Update a Source fully -func (s *Sources) PutSourceKlarna(ctx context.Context, request operations.PutSourceKlarnaRequest, opts ...operations.Option) (*operations.PutSourceKlarnaResponse, error) { +// PutSourceLinkedinAds - Update a Source fully +func (s *Sources) PutSourceLinkedinAds(ctx context.Context, request operations.PutSourceLinkedinAdsRequest, opts ...operations.Option) (*operations.PutSourceLinkedinAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceKlarna", + OperationID: "putSourceLinkedinAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75659,7 +83741,7 @@ func (s *Sources) PutSourceKlarna(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKlarnaPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLinkedinAdsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75716,7 +83798,7 @@ func (s *Sources) PutSourceKlarna(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceKlarnaResponse{ + res := &operations.PutSourceLinkedinAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75743,11 +83825,11 @@ func (s *Sources) PutSourceKlarna(ctx context.Context, request operations.PutSou } -// PutSourceKlaviyo - Update a Source fully -func (s *Sources) PutSourceKlaviyo(ctx context.Context, request operations.PutSourceKlaviyoRequest, opts ...operations.Option) (*operations.PutSourceKlaviyoResponse, error) { +// PutSourceLinkedinPages - Update a Source fully +func (s *Sources) PutSourceLinkedinPages(ctx context.Context, request operations.PutSourceLinkedinPagesRequest, opts ...operations.Option) (*operations.PutSourceLinkedinPagesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceKlaviyo", + OperationID: "putSourceLinkedinPages", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75769,7 +83851,7 @@ func (s *Sources) PutSourceKlaviyo(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKlaviyoPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLinkedinPagesPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75826,7 +83908,7 @@ func (s *Sources) PutSourceKlaviyo(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceKlaviyoResponse{ + res := &operations.PutSourceLinkedinPagesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75853,11 +83935,11 @@ func (s *Sources) PutSourceKlaviyo(ctx context.Context, request operations.PutSo } -// PutSourceKyve - Update a Source fully -func (s *Sources) PutSourceKyve(ctx context.Context, request operations.PutSourceKyveRequest, opts ...operations.Option) (*operations.PutSourceKyveResponse, error) { +// PutSourceLinnworks - Update a Source fully +func (s *Sources) PutSourceLinnworks(ctx context.Context, request operations.PutSourceLinnworksRequest, opts ...operations.Option) (*operations.PutSourceLinnworksResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceKyve", + OperationID: "putSourceLinnworks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75879,7 +83961,7 @@ func (s *Sources) PutSourceKyve(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKyvePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLinnworksPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75936,7 +84018,7 @@ func (s *Sources) PutSourceKyve(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceKyveResponse{ + res := &operations.PutSourceLinnworksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75963,11 +84045,11 @@ func (s *Sources) PutSourceKyve(ctx context.Context, request operations.PutSourc } -// PutSourceLaunchdarkly - Update a Source fully -func (s *Sources) PutSourceLaunchdarkly(ctx context.Context, request operations.PutSourceLaunchdarklyRequest, opts ...operations.Option) (*operations.PutSourceLaunchdarklyResponse, error) { +// PutSourceLokalise - Update a Source fully +func (s *Sources) PutSourceLokalise(ctx context.Context, request operations.PutSourceLokaliseRequest, opts ...operations.Option) (*operations.PutSourceLokaliseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceLaunchdarkly", + OperationID: "putSourceLokalise", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75989,7 +84071,7 @@ func (s *Sources) PutSourceLaunchdarkly(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLaunchdarklyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLokalisePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76046,7 +84128,7 @@ func (s *Sources) PutSourceLaunchdarkly(ctx context.Context, request operations. } } - res := &operations.PutSourceLaunchdarklyResponse{ + res := &operations.PutSourceLokaliseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76073,11 +84155,11 @@ func (s *Sources) PutSourceLaunchdarkly(ctx context.Context, request operations. } -// PutSourceLemlist - Update a Source fully -func (s *Sources) PutSourceLemlist(ctx context.Context, request operations.PutSourceLemlistRequest, opts ...operations.Option) (*operations.PutSourceLemlistResponse, error) { +// PutSourceLooker - Update a Source fully +func (s *Sources) PutSourceLooker(ctx context.Context, request operations.PutSourceLookerRequest, opts ...operations.Option) (*operations.PutSourceLookerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceLemlist", + OperationID: "putSourceLooker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76099,7 +84181,7 @@ func (s *Sources) PutSourceLemlist(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLemlistPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLookerPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76156,7 +84238,7 @@ func (s *Sources) PutSourceLemlist(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceLemlistResponse{ + res := &operations.PutSourceLookerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76183,11 +84265,11 @@ func (s *Sources) PutSourceLemlist(ctx context.Context, request operations.PutSo } -// PutSourceLeverHiring - Update a Source fully -func (s *Sources) PutSourceLeverHiring(ctx context.Context, request operations.PutSourceLeverHiringRequest, opts ...operations.Option) (*operations.PutSourceLeverHiringResponse, error) { +// PutSourceLuma - Update a Source fully +func (s *Sources) PutSourceLuma(ctx context.Context, request operations.PutSourceLumaRequest, opts ...operations.Option) (*operations.PutSourceLumaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceLeverHiring", + OperationID: "putSourceLuma", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76209,7 +84291,7 @@ func (s *Sources) PutSourceLeverHiring(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLeverHiringPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLumaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76266,7 +84348,7 @@ func (s *Sources) PutSourceLeverHiring(ctx context.Context, request operations.P } } - res := &operations.PutSourceLeverHiringResponse{ + res := &operations.PutSourceLumaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76293,11 +84375,11 @@ func (s *Sources) PutSourceLeverHiring(ctx context.Context, request operations.P } -// PutSourceLinkedinAds - Update a Source fully -func (s *Sources) PutSourceLinkedinAds(ctx context.Context, request operations.PutSourceLinkedinAdsRequest, opts ...operations.Option) (*operations.PutSourceLinkedinAdsResponse, error) { +// PutSourceMailchimp - Update a Source fully +func (s *Sources) PutSourceMailchimp(ctx context.Context, request operations.PutSourceMailchimpRequest, opts ...operations.Option) (*operations.PutSourceMailchimpResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceLinkedinAds", + OperationID: "putSourceMailchimp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76319,7 +84401,7 @@ func (s *Sources) PutSourceLinkedinAds(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLinkedinAdsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMailchimpPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76376,7 +84458,7 @@ func (s *Sources) PutSourceLinkedinAds(ctx context.Context, request operations.P } } - res := &operations.PutSourceLinkedinAdsResponse{ + res := &operations.PutSourceMailchimpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76403,11 +84485,11 @@ func (s *Sources) PutSourceLinkedinAds(ctx context.Context, request operations.P } -// PutSourceLinkedinPages - Update a Source fully -func (s *Sources) PutSourceLinkedinPages(ctx context.Context, request operations.PutSourceLinkedinPagesRequest, opts ...operations.Option) (*operations.PutSourceLinkedinPagesResponse, error) { +// PutSourceMailgun - Update a Source fully +func (s *Sources) PutSourceMailgun(ctx context.Context, request operations.PutSourceMailgunRequest, opts ...operations.Option) (*operations.PutSourceMailgunResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceLinkedinPages", + OperationID: "putSourceMailgun", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76429,7 +84511,7 @@ func (s *Sources) PutSourceLinkedinPages(ctx context.Context, request operations return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLinkedinPagesPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMailgunPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76486,7 +84568,7 @@ func (s *Sources) PutSourceLinkedinPages(ctx context.Context, request operations } } - res := &operations.PutSourceLinkedinPagesResponse{ + res := &operations.PutSourceMailgunResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76513,11 +84595,11 @@ func (s *Sources) PutSourceLinkedinPages(ctx context.Context, request operations } -// PutSourceLinnworks - Update a Source fully -func (s *Sources) PutSourceLinnworks(ctx context.Context, request operations.PutSourceLinnworksRequest, opts ...operations.Option) (*operations.PutSourceLinnworksResponse, error) { +// PutSourceMailjetSms - Update a Source fully +func (s *Sources) PutSourceMailjetSms(ctx context.Context, request operations.PutSourceMailjetSmsRequest, opts ...operations.Option) (*operations.PutSourceMailjetSmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceLinnworks", + OperationID: "putSourceMailjetSms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76539,7 +84621,7 @@ func (s *Sources) PutSourceLinnworks(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLinnworksPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMailjetSmsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76596,7 +84678,7 @@ func (s *Sources) PutSourceLinnworks(ctx context.Context, request operations.Put } } - res := &operations.PutSourceLinnworksResponse{ + res := &operations.PutSourceMailjetSmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76623,11 +84705,11 @@ func (s *Sources) PutSourceLinnworks(ctx context.Context, request operations.Put } -// PutSourceLokalise - Update a Source fully -func (s *Sources) PutSourceLokalise(ctx context.Context, request operations.PutSourceLokaliseRequest, opts ...operations.Option) (*operations.PutSourceLokaliseResponse, error) { +// PutSourceMarketo - Update a Source fully +func (s *Sources) PutSourceMarketo(ctx context.Context, request operations.PutSourceMarketoRequest, opts ...operations.Option) (*operations.PutSourceMarketoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceLokalise", + OperationID: "putSourceMarketo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76649,7 +84731,7 @@ func (s *Sources) PutSourceLokalise(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLokalisePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMarketoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76706,7 +84788,7 @@ func (s *Sources) PutSourceLokalise(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceLokaliseResponse{ + res := &operations.PutSourceMarketoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76733,11 +84815,11 @@ func (s *Sources) PutSourceLokalise(ctx context.Context, request operations.PutS } -// PutSourceMailchimp - Update a Source fully -func (s *Sources) PutSourceMailchimp(ctx context.Context, request operations.PutSourceMailchimpRequest, opts ...operations.Option) (*operations.PutSourceMailchimpResponse, error) { +// PutSourceMetabase - Update a Source fully +func (s *Sources) PutSourceMetabase(ctx context.Context, request operations.PutSourceMetabaseRequest, opts ...operations.Option) (*operations.PutSourceMetabaseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMailchimp", + OperationID: "putSourceMetabase", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76759,7 +84841,7 @@ func (s *Sources) PutSourceMailchimp(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMailchimpPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMetabasePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76816,7 +84898,7 @@ func (s *Sources) PutSourceMailchimp(ctx context.Context, request operations.Put } } - res := &operations.PutSourceMailchimpResponse{ + res := &operations.PutSourceMetabaseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76843,11 +84925,11 @@ func (s *Sources) PutSourceMailchimp(ctx context.Context, request operations.Put } -// PutSourceMailgun - Update a Source fully -func (s *Sources) PutSourceMailgun(ctx context.Context, request operations.PutSourceMailgunRequest, opts ...operations.Option) (*operations.PutSourceMailgunResponse, error) { +// PutSourceMicrosoftOnedrive - Update a Source fully +func (s *Sources) PutSourceMicrosoftOnedrive(ctx context.Context, request operations.PutSourceMicrosoftOnedriveRequest, opts ...operations.Option) (*operations.PutSourceMicrosoftOnedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMailgun", + OperationID: "putSourceMicrosoftOnedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76869,7 +84951,7 @@ func (s *Sources) PutSourceMailgun(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMailgunPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMicrosoftOnedrivePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76926,7 +85008,7 @@ func (s *Sources) PutSourceMailgun(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceMailgunResponse{ + res := &operations.PutSourceMicrosoftOnedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76953,11 +85035,11 @@ func (s *Sources) PutSourceMailgun(ctx context.Context, request operations.PutSo } -// PutSourceMailjetSms - Update a Source fully -func (s *Sources) PutSourceMailjetSms(ctx context.Context, request operations.PutSourceMailjetSmsRequest, opts ...operations.Option) (*operations.PutSourceMailjetSmsResponse, error) { +// PutSourceMicrosoftSharepoint - Update a Source fully +func (s *Sources) PutSourceMicrosoftSharepoint(ctx context.Context, request operations.PutSourceMicrosoftSharepointRequest, opts ...operations.Option) (*operations.PutSourceMicrosoftSharepointResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMailjetSms", + OperationID: "putSourceMicrosoftSharepoint", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76979,7 +85061,7 @@ func (s *Sources) PutSourceMailjetSms(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMailjetSmsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMicrosoftSharepointPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77036,7 +85118,7 @@ func (s *Sources) PutSourceMailjetSms(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceMailjetSmsResponse{ + res := &operations.PutSourceMicrosoftSharepointResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77063,11 +85145,11 @@ func (s *Sources) PutSourceMailjetSms(ctx context.Context, request operations.Pu } -// PutSourceMarketo - Update a Source fully -func (s *Sources) PutSourceMarketo(ctx context.Context, request operations.PutSourceMarketoRequest, opts ...operations.Option) (*operations.PutSourceMarketoResponse, error) { +// PutSourceMicrosoftTeams - Update a Source fully +func (s *Sources) PutSourceMicrosoftTeams(ctx context.Context, request operations.PutSourceMicrosoftTeamsRequest, opts ...operations.Option) (*operations.PutSourceMicrosoftTeamsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMarketo", + OperationID: "putSourceMicrosoftTeams", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77089,7 +85171,7 @@ func (s *Sources) PutSourceMarketo(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMarketoPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMicrosoftTeamsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77146,7 +85228,7 @@ func (s *Sources) PutSourceMarketo(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceMarketoResponse{ + res := &operations.PutSourceMicrosoftTeamsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77173,11 +85255,11 @@ func (s *Sources) PutSourceMarketo(ctx context.Context, request operations.PutSo } -// PutSourceMetabase - Update a Source fully -func (s *Sources) PutSourceMetabase(ctx context.Context, request operations.PutSourceMetabaseRequest, opts ...operations.Option) (*operations.PutSourceMetabaseResponse, error) { +// PutSourceMixpanel - Update a Source fully +func (s *Sources) PutSourceMixpanel(ctx context.Context, request operations.PutSourceMixpanelRequest, opts ...operations.Option) (*operations.PutSourceMixpanelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMetabase", + OperationID: "putSourceMixpanel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77199,7 +85281,7 @@ func (s *Sources) PutSourceMetabase(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMetabasePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMixpanelPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77256,7 +85338,7 @@ func (s *Sources) PutSourceMetabase(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceMetabaseResponse{ + res := &operations.PutSourceMixpanelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77283,11 +85365,11 @@ func (s *Sources) PutSourceMetabase(ctx context.Context, request operations.PutS } -// PutSourceMicrosoftOnedrive - Update a Source fully -func (s *Sources) PutSourceMicrosoftOnedrive(ctx context.Context, request operations.PutSourceMicrosoftOnedriveRequest, opts ...operations.Option) (*operations.PutSourceMicrosoftOnedriveResponse, error) { +// PutSourceMonday - Update a Source fully +func (s *Sources) PutSourceMonday(ctx context.Context, request operations.PutSourceMondayRequest, opts ...operations.Option) (*operations.PutSourceMondayResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMicrosoftOnedrive", + OperationID: "putSourceMonday", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77309,7 +85391,7 @@ func (s *Sources) PutSourceMicrosoftOnedrive(ctx context.Context, request operat return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMicrosoftOnedrivePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMondayPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77366,7 +85448,7 @@ func (s *Sources) PutSourceMicrosoftOnedrive(ctx context.Context, request operat } } - res := &operations.PutSourceMicrosoftOnedriveResponse{ + res := &operations.PutSourceMondayResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77393,11 +85475,11 @@ func (s *Sources) PutSourceMicrosoftOnedrive(ctx context.Context, request operat } -// PutSourceMicrosoftSharepoint - Update a Source fully -func (s *Sources) PutSourceMicrosoftSharepoint(ctx context.Context, request operations.PutSourceMicrosoftSharepointRequest, opts ...operations.Option) (*operations.PutSourceMicrosoftSharepointResponse, error) { +// PutSourceMongodbV2 - Update a Source fully +func (s *Sources) PutSourceMongodbV2(ctx context.Context, request operations.PutSourceMongodbV2Request, opts ...operations.Option) (*operations.PutSourceMongodbV2Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMicrosoftSharepoint", + OperationID: "putSourceMongodbV2", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77419,7 +85501,7 @@ func (s *Sources) PutSourceMicrosoftSharepoint(ctx context.Context, request oper return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMicrosoftSharepointPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMongodbV2PutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77476,7 +85558,7 @@ func (s *Sources) PutSourceMicrosoftSharepoint(ctx context.Context, request oper } } - res := &operations.PutSourceMicrosoftSharepointResponse{ + res := &operations.PutSourceMongodbV2Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77503,11 +85585,11 @@ func (s *Sources) PutSourceMicrosoftSharepoint(ctx context.Context, request oper } -// PutSourceMicrosoftTeams - Update a Source fully -func (s *Sources) PutSourceMicrosoftTeams(ctx context.Context, request operations.PutSourceMicrosoftTeamsRequest, opts ...operations.Option) (*operations.PutSourceMicrosoftTeamsResponse, error) { +// PutSourceMssql - Update a Source fully +func (s *Sources) PutSourceMssql(ctx context.Context, request operations.PutSourceMssqlRequest, opts ...operations.Option) (*operations.PutSourceMssqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMicrosoftTeams", + OperationID: "putSourceMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77529,7 +85611,7 @@ func (s *Sources) PutSourceMicrosoftTeams(ctx context.Context, request operation return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMicrosoftTeamsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMssqlPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77586,7 +85668,7 @@ func (s *Sources) PutSourceMicrosoftTeams(ctx context.Context, request operation } } - res := &operations.PutSourceMicrosoftTeamsResponse{ + res := &operations.PutSourceMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77613,11 +85695,11 @@ func (s *Sources) PutSourceMicrosoftTeams(ctx context.Context, request operation } -// PutSourceMixpanel - Update a Source fully -func (s *Sources) PutSourceMixpanel(ctx context.Context, request operations.PutSourceMixpanelRequest, opts ...operations.Option) (*operations.PutSourceMixpanelResponse, error) { +// PutSourceMyHours - Update a Source fully +func (s *Sources) PutSourceMyHours(ctx context.Context, request operations.PutSourceMyHoursRequest, opts ...operations.Option) (*operations.PutSourceMyHoursResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMixpanel", + OperationID: "putSourceMyHours", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77639,7 +85721,7 @@ func (s *Sources) PutSourceMixpanel(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMixpanelPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMyHoursPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77696,7 +85778,7 @@ func (s *Sources) PutSourceMixpanel(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceMixpanelResponse{ + res := &operations.PutSourceMyHoursResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77723,11 +85805,11 @@ func (s *Sources) PutSourceMixpanel(ctx context.Context, request operations.PutS } -// PutSourceMonday - Update a Source fully -func (s *Sources) PutSourceMonday(ctx context.Context, request operations.PutSourceMondayRequest, opts ...operations.Option) (*operations.PutSourceMondayResponse, error) { +// PutSourceMysql - Update a Source fully +func (s *Sources) PutSourceMysql(ctx context.Context, request operations.PutSourceMysqlRequest, opts ...operations.Option) (*operations.PutSourceMysqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMonday", + OperationID: "putSourceMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77749,7 +85831,7 @@ func (s *Sources) PutSourceMonday(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMondayPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMysqlPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77806,7 +85888,7 @@ func (s *Sources) PutSourceMonday(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceMondayResponse{ + res := &operations.PutSourceMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77833,11 +85915,11 @@ func (s *Sources) PutSourceMonday(ctx context.Context, request operations.PutSou } -// PutSourceMongodbInternalPoc - Update a Source fully -func (s *Sources) PutSourceMongodbInternalPoc(ctx context.Context, request operations.PutSourceMongodbInternalPocRequest, opts ...operations.Option) (*operations.PutSourceMongodbInternalPocResponse, error) { +// PutSourceNetsuite - Update a Source fully +func (s *Sources) PutSourceNetsuite(ctx context.Context, request operations.PutSourceNetsuiteRequest, opts ...operations.Option) (*operations.PutSourceNetsuiteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMongodbInternalPoc", + OperationID: "putSourceNetsuite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77859,7 +85941,7 @@ func (s *Sources) PutSourceMongodbInternalPoc(ctx context.Context, request opera return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMongodbInternalPocPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNetsuitePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77916,7 +85998,7 @@ func (s *Sources) PutSourceMongodbInternalPoc(ctx context.Context, request opera } } - res := &operations.PutSourceMongodbInternalPocResponse{ + res := &operations.PutSourceNetsuiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77943,11 +86025,11 @@ func (s *Sources) PutSourceMongodbInternalPoc(ctx context.Context, request opera } -// PutSourceMongodbV2 - Update a Source fully -func (s *Sources) PutSourceMongodbV2(ctx context.Context, request operations.PutSourceMongodbV2Request, opts ...operations.Option) (*operations.PutSourceMongodbV2Response, error) { +// PutSourceNorthpassLms - Update a Source fully +func (s *Sources) PutSourceNorthpassLms(ctx context.Context, request operations.PutSourceNorthpassLmsRequest, opts ...operations.Option) (*operations.PutSourceNorthpassLmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMongodbV2", + OperationID: "putSourceNorthpassLms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77969,7 +86051,7 @@ func (s *Sources) PutSourceMongodbV2(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMongodbV2PutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNorthpassLmsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78026,7 +86108,7 @@ func (s *Sources) PutSourceMongodbV2(ctx context.Context, request operations.Put } } - res := &operations.PutSourceMongodbV2Response{ + res := &operations.PutSourceNorthpassLmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78053,11 +86135,11 @@ func (s *Sources) PutSourceMongodbV2(ctx context.Context, request operations.Put } -// PutSourceMssql - Update a Source fully -func (s *Sources) PutSourceMssql(ctx context.Context, request operations.PutSourceMssqlRequest, opts ...operations.Option) (*operations.PutSourceMssqlResponse, error) { +// PutSourceNotion - Update a Source fully +func (s *Sources) PutSourceNotion(ctx context.Context, request operations.PutSourceNotionRequest, opts ...operations.Option) (*operations.PutSourceNotionResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMssql", + OperationID: "putSourceNotion", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78079,7 +86161,7 @@ func (s *Sources) PutSourceMssql(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMssqlPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNotionPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78136,7 +86218,7 @@ func (s *Sources) PutSourceMssql(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceMssqlResponse{ + res := &operations.PutSourceNotionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78163,11 +86245,11 @@ func (s *Sources) PutSourceMssql(ctx context.Context, request operations.PutSour } -// PutSourceMyHours - Update a Source fully -func (s *Sources) PutSourceMyHours(ctx context.Context, request operations.PutSourceMyHoursRequest, opts ...operations.Option) (*operations.PutSourceMyHoursResponse, error) { +// PutSourceNytimes - Update a Source fully +func (s *Sources) PutSourceNytimes(ctx context.Context, request operations.PutSourceNytimesRequest, opts ...operations.Option) (*operations.PutSourceNytimesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMyHours", + OperationID: "putSourceNytimes", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78189,7 +86271,7 @@ func (s *Sources) PutSourceMyHours(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMyHoursPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNytimesPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78246,7 +86328,7 @@ func (s *Sources) PutSourceMyHours(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceMyHoursResponse{ + res := &operations.PutSourceNytimesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78273,11 +86355,11 @@ func (s *Sources) PutSourceMyHours(ctx context.Context, request operations.PutSo } -// PutSourceMysql - Update a Source fully -func (s *Sources) PutSourceMysql(ctx context.Context, request operations.PutSourceMysqlRequest, opts ...operations.Option) (*operations.PutSourceMysqlResponse, error) { +// PutSourceOkta - Update a Source fully +func (s *Sources) PutSourceOkta(ctx context.Context, request operations.PutSourceOktaRequest, opts ...operations.Option) (*operations.PutSourceOktaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMysql", + OperationID: "putSourceOkta", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78299,7 +86381,7 @@ func (s *Sources) PutSourceMysql(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMysqlPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOktaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78356,7 +86438,7 @@ func (s *Sources) PutSourceMysql(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceMysqlResponse{ + res := &operations.PutSourceOktaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78383,11 +86465,11 @@ func (s *Sources) PutSourceMysql(ctx context.Context, request operations.PutSour } -// PutSourceNetsuite - Update a Source fully -func (s *Sources) PutSourceNetsuite(ctx context.Context, request operations.PutSourceNetsuiteRequest, opts ...operations.Option) (*operations.PutSourceNetsuiteResponse, error) { +// PutSourceOmnisend - Update a Source fully +func (s *Sources) PutSourceOmnisend(ctx context.Context, request operations.PutSourceOmnisendRequest, opts ...operations.Option) (*operations.PutSourceOmnisendResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceNetsuite", + OperationID: "putSourceOmnisend", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78409,7 +86491,7 @@ func (s *Sources) PutSourceNetsuite(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNetsuitePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOmnisendPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78466,7 +86548,7 @@ func (s *Sources) PutSourceNetsuite(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceNetsuiteResponse{ + res := &operations.PutSourceOmnisendResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78493,11 +86575,11 @@ func (s *Sources) PutSourceNetsuite(ctx context.Context, request operations.PutS } -// PutSourceNotion - Update a Source fully -func (s *Sources) PutSourceNotion(ctx context.Context, request operations.PutSourceNotionRequest, opts ...operations.Option) (*operations.PutSourceNotionResponse, error) { +// PutSourceOnesignal - Update a Source fully +func (s *Sources) PutSourceOnesignal(ctx context.Context, request operations.PutSourceOnesignalRequest, opts ...operations.Option) (*operations.PutSourceOnesignalResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceNotion", + OperationID: "putSourceOnesignal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78519,7 +86601,7 @@ func (s *Sources) PutSourceNotion(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNotionPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOnesignalPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78576,7 +86658,7 @@ func (s *Sources) PutSourceNotion(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceNotionResponse{ + res := &operations.PutSourceOnesignalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78603,11 +86685,11 @@ func (s *Sources) PutSourceNotion(ctx context.Context, request operations.PutSou } -// PutSourceNytimes - Update a Source fully -func (s *Sources) PutSourceNytimes(ctx context.Context, request operations.PutSourceNytimesRequest, opts ...operations.Option) (*operations.PutSourceNytimesResponse, error) { +// PutSourceOracle - Update a Source fully +func (s *Sources) PutSourceOracle(ctx context.Context, request operations.PutSourceOracleRequest, opts ...operations.Option) (*operations.PutSourceOracleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceNytimes", + OperationID: "putSourceOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78629,7 +86711,7 @@ func (s *Sources) PutSourceNytimes(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNytimesPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOraclePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78686,7 +86768,7 @@ func (s *Sources) PutSourceNytimes(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceNytimesResponse{ + res := &operations.PutSourceOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78713,11 +86795,11 @@ func (s *Sources) PutSourceNytimes(ctx context.Context, request operations.PutSo } -// PutSourceOkta - Update a Source fully -func (s *Sources) PutSourceOkta(ctx context.Context, request operations.PutSourceOktaRequest, opts ...operations.Option) (*operations.PutSourceOktaResponse, error) { +// PutSourceOrb - Update a Source fully +func (s *Sources) PutSourceOrb(ctx context.Context, request operations.PutSourceOrbRequest, opts ...operations.Option) (*operations.PutSourceOrbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceOkta", + OperationID: "putSourceOrb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78739,7 +86821,7 @@ func (s *Sources) PutSourceOkta(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOktaPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOrbPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78796,7 +86878,7 @@ func (s *Sources) PutSourceOkta(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceOktaResponse{ + res := &operations.PutSourceOrbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78823,11 +86905,11 @@ func (s *Sources) PutSourceOkta(ctx context.Context, request operations.PutSourc } -// PutSourceOmnisend - Update a Source fully -func (s *Sources) PutSourceOmnisend(ctx context.Context, request operations.PutSourceOmnisendRequest, opts ...operations.Option) (*operations.PutSourceOmnisendResponse, error) { +// PutSourceOrbit - Update a Source fully +func (s *Sources) PutSourceOrbit(ctx context.Context, request operations.PutSourceOrbitRequest, opts ...operations.Option) (*operations.PutSourceOrbitResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceOmnisend", + OperationID: "putSourceOrbit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78849,7 +86931,7 @@ func (s *Sources) PutSourceOmnisend(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOmnisendPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOrbitPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78906,7 +86988,7 @@ func (s *Sources) PutSourceOmnisend(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceOmnisendResponse{ + res := &operations.PutSourceOrbitResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78933,11 +87015,11 @@ func (s *Sources) PutSourceOmnisend(ctx context.Context, request operations.PutS } -// PutSourceOnesignal - Update a Source fully -func (s *Sources) PutSourceOnesignal(ctx context.Context, request operations.PutSourceOnesignalRequest, opts ...operations.Option) (*operations.PutSourceOnesignalResponse, error) { +// PutSourceOutbrainAmplify - Update a Source fully +func (s *Sources) PutSourceOutbrainAmplify(ctx context.Context, request operations.PutSourceOutbrainAmplifyRequest, opts ...operations.Option) (*operations.PutSourceOutbrainAmplifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceOnesignal", + OperationID: "putSourceOutbrainAmplify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78959,7 +87041,7 @@ func (s *Sources) PutSourceOnesignal(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOnesignalPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOutbrainAmplifyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79016,7 +87098,7 @@ func (s *Sources) PutSourceOnesignal(ctx context.Context, request operations.Put } } - res := &operations.PutSourceOnesignalResponse{ + res := &operations.PutSourceOutbrainAmplifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79043,11 +87125,11 @@ func (s *Sources) PutSourceOnesignal(ctx context.Context, request operations.Put } -// PutSourceOracle - Update a Source fully -func (s *Sources) PutSourceOracle(ctx context.Context, request operations.PutSourceOracleRequest, opts ...operations.Option) (*operations.PutSourceOracleResponse, error) { +// PutSourceOutreach - Update a Source fully +func (s *Sources) PutSourceOutreach(ctx context.Context, request operations.PutSourceOutreachRequest, opts ...operations.Option) (*operations.PutSourceOutreachResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceOracle", + OperationID: "putSourceOutreach", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79069,7 +87151,7 @@ func (s *Sources) PutSourceOracle(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOraclePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOutreachPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79126,7 +87208,7 @@ func (s *Sources) PutSourceOracle(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceOracleResponse{ + res := &operations.PutSourceOutreachResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79153,11 +87235,11 @@ func (s *Sources) PutSourceOracle(ctx context.Context, request operations.PutSou } -// PutSourceOrb - Update a Source fully -func (s *Sources) PutSourceOrb(ctx context.Context, request operations.PutSourceOrbRequest, opts ...operations.Option) (*operations.PutSourceOrbResponse, error) { +// PutSourcePaypalTransaction - Update a Source fully +func (s *Sources) PutSourcePaypalTransaction(ctx context.Context, request operations.PutSourcePaypalTransactionRequest, opts ...operations.Option) (*operations.PutSourcePaypalTransactionResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceOrb", + OperationID: "putSourcePaypalTransaction", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79179,7 +87261,7 @@ func (s *Sources) PutSourceOrb(ctx context.Context, request operations.PutSource return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOrbPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePaypalTransactionPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79236,7 +87318,7 @@ func (s *Sources) PutSourceOrb(ctx context.Context, request operations.PutSource } } - res := &operations.PutSourceOrbResponse{ + res := &operations.PutSourcePaypalTransactionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79263,11 +87345,11 @@ func (s *Sources) PutSourceOrb(ctx context.Context, request operations.PutSource } -// PutSourceOrbit - Update a Source fully -func (s *Sources) PutSourceOrbit(ctx context.Context, request operations.PutSourceOrbitRequest, opts ...operations.Option) (*operations.PutSourceOrbitResponse, error) { +// PutSourcePaystack - Update a Source fully +func (s *Sources) PutSourcePaystack(ctx context.Context, request operations.PutSourcePaystackRequest, opts ...operations.Option) (*operations.PutSourcePaystackResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceOrbit", + OperationID: "putSourcePaystack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79289,7 +87371,7 @@ func (s *Sources) PutSourceOrbit(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOrbitPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePaystackPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79346,7 +87428,7 @@ func (s *Sources) PutSourceOrbit(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceOrbitResponse{ + res := &operations.PutSourcePaystackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79373,11 +87455,11 @@ func (s *Sources) PutSourceOrbit(ctx context.Context, request operations.PutSour } -// PutSourceOutbrainAmplify - Update a Source fully -func (s *Sources) PutSourceOutbrainAmplify(ctx context.Context, request operations.PutSourceOutbrainAmplifyRequest, opts ...operations.Option) (*operations.PutSourceOutbrainAmplifyResponse, error) { +// PutSourcePendo - Update a Source fully +func (s *Sources) PutSourcePendo(ctx context.Context, request operations.PutSourcePendoRequest, opts ...operations.Option) (*operations.PutSourcePendoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceOutbrainAmplify", + OperationID: "putSourcePendo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79399,7 +87481,7 @@ func (s *Sources) PutSourceOutbrainAmplify(ctx context.Context, request operatio return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOutbrainAmplifyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePendoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79456,7 +87538,7 @@ func (s *Sources) PutSourceOutbrainAmplify(ctx context.Context, request operatio } } - res := &operations.PutSourceOutbrainAmplifyResponse{ + res := &operations.PutSourcePendoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79483,11 +87565,11 @@ func (s *Sources) PutSourceOutbrainAmplify(ctx context.Context, request operatio } -// PutSourceOutreach - Update a Source fully -func (s *Sources) PutSourceOutreach(ctx context.Context, request operations.PutSourceOutreachRequest, opts ...operations.Option) (*operations.PutSourceOutreachResponse, error) { +// PutSourcePennylane - Update a Source fully +func (s *Sources) PutSourcePennylane(ctx context.Context, request operations.PutSourcePennylaneRequest, opts ...operations.Option) (*operations.PutSourcePennylaneResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceOutreach", + OperationID: "putSourcePennylane", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79509,7 +87591,7 @@ func (s *Sources) PutSourceOutreach(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOutreachPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePennylanePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79566,7 +87648,7 @@ func (s *Sources) PutSourceOutreach(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceOutreachResponse{ + res := &operations.PutSourcePennylaneResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79593,11 +87675,11 @@ func (s *Sources) PutSourceOutreach(ctx context.Context, request operations.PutS } -// PutSourcePaypalTransaction - Update a Source fully -func (s *Sources) PutSourcePaypalTransaction(ctx context.Context, request operations.PutSourcePaypalTransactionRequest, opts ...operations.Option) (*operations.PutSourcePaypalTransactionResponse, error) { +// PutSourcePersistiq - Update a Source fully +func (s *Sources) PutSourcePersistiq(ctx context.Context, request operations.PutSourcePersistiqRequest, opts ...operations.Option) (*operations.PutSourcePersistiqResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePaypalTransaction", + OperationID: "putSourcePersistiq", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79619,7 +87701,7 @@ func (s *Sources) PutSourcePaypalTransaction(ctx context.Context, request operat return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePaypalTransactionPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePersistiqPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79676,7 +87758,7 @@ func (s *Sources) PutSourcePaypalTransaction(ctx context.Context, request operat } } - res := &operations.PutSourcePaypalTransactionResponse{ + res := &operations.PutSourcePersistiqResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79703,11 +87785,11 @@ func (s *Sources) PutSourcePaypalTransaction(ctx context.Context, request operat } -// PutSourcePaystack - Update a Source fully -func (s *Sources) PutSourcePaystack(ctx context.Context, request operations.PutSourcePaystackRequest, opts ...operations.Option) (*operations.PutSourcePaystackResponse, error) { +// PutSourcePexelsAPI - Update a Source fully +func (s *Sources) PutSourcePexelsAPI(ctx context.Context, request operations.PutSourcePexelsAPIRequest, opts ...operations.Option) (*operations.PutSourcePexelsAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePaystack", + OperationID: "putSourcePexelsApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79729,7 +87811,7 @@ func (s *Sources) PutSourcePaystack(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePaystackPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePexelsAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79786,7 +87868,7 @@ func (s *Sources) PutSourcePaystack(ctx context.Context, request operations.PutS } } - res := &operations.PutSourcePaystackResponse{ + res := &operations.PutSourcePexelsAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79813,11 +87895,11 @@ func (s *Sources) PutSourcePaystack(ctx context.Context, request operations.PutS } -// PutSourcePendo - Update a Source fully -func (s *Sources) PutSourcePendo(ctx context.Context, request operations.PutSourcePendoRequest, opts ...operations.Option) (*operations.PutSourcePendoResponse, error) { +// PutSourcePinterest - Update a Source fully +func (s *Sources) PutSourcePinterest(ctx context.Context, request operations.PutSourcePinterestRequest, opts ...operations.Option) (*operations.PutSourcePinterestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePendo", + OperationID: "putSourcePinterest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79839,7 +87921,7 @@ func (s *Sources) PutSourcePendo(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePendoPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePinterestPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79896,7 +87978,7 @@ func (s *Sources) PutSourcePendo(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourcePendoResponse{ + res := &operations.PutSourcePinterestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79923,11 +88005,11 @@ func (s *Sources) PutSourcePendo(ctx context.Context, request operations.PutSour } -// PutSourcePersistiq - Update a Source fully -func (s *Sources) PutSourcePersistiq(ctx context.Context, request operations.PutSourcePersistiqRequest, opts ...operations.Option) (*operations.PutSourcePersistiqResponse, error) { +// PutSourcePipedrive - Update a Source fully +func (s *Sources) PutSourcePipedrive(ctx context.Context, request operations.PutSourcePipedriveRequest, opts ...operations.Option) (*operations.PutSourcePipedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePersistiq", + OperationID: "putSourcePipedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79949,7 +88031,7 @@ func (s *Sources) PutSourcePersistiq(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePersistiqPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePipedrivePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80006,7 +88088,7 @@ func (s *Sources) PutSourcePersistiq(ctx context.Context, request operations.Put } } - res := &operations.PutSourcePersistiqResponse{ + res := &operations.PutSourcePipedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80033,11 +88115,11 @@ func (s *Sources) PutSourcePersistiq(ctx context.Context, request operations.Put } -// PutSourcePexelsAPI - Update a Source fully -func (s *Sources) PutSourcePexelsAPI(ctx context.Context, request operations.PutSourcePexelsAPIRequest, opts ...operations.Option) (*operations.PutSourcePexelsAPIResponse, error) { +// PutSourcePlanhat - Update a Source fully +func (s *Sources) PutSourcePlanhat(ctx context.Context, request operations.PutSourcePlanhatRequest, opts ...operations.Option) (*operations.PutSourcePlanhatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePexelsApi", + OperationID: "putSourcePlanhat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80059,7 +88141,7 @@ func (s *Sources) PutSourcePexelsAPI(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePexelsAPIPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePlanhatPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80116,7 +88198,7 @@ func (s *Sources) PutSourcePexelsAPI(ctx context.Context, request operations.Put } } - res := &operations.PutSourcePexelsAPIResponse{ + res := &operations.PutSourcePlanhatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80143,11 +88225,11 @@ func (s *Sources) PutSourcePexelsAPI(ctx context.Context, request operations.Put } -// PutSourcePinterest - Update a Source fully -func (s *Sources) PutSourcePinterest(ctx context.Context, request operations.PutSourcePinterestRequest, opts ...operations.Option) (*operations.PutSourcePinterestResponse, error) { +// PutSourcePocket - Update a Source fully +func (s *Sources) PutSourcePocket(ctx context.Context, request operations.PutSourcePocketRequest, opts ...operations.Option) (*operations.PutSourcePocketResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePinterest", + OperationID: "putSourcePocket", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80169,7 +88251,7 @@ func (s *Sources) PutSourcePinterest(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePinterestPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePocketPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80226,7 +88308,7 @@ func (s *Sources) PutSourcePinterest(ctx context.Context, request operations.Put } } - res := &operations.PutSourcePinterestResponse{ + res := &operations.PutSourcePocketResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80253,11 +88335,11 @@ func (s *Sources) PutSourcePinterest(ctx context.Context, request operations.Put } -// PutSourcePipedrive - Update a Source fully -func (s *Sources) PutSourcePipedrive(ctx context.Context, request operations.PutSourcePipedriveRequest, opts ...operations.Option) (*operations.PutSourcePipedriveResponse, error) { +// PutSourcePokeapi - Update a Source fully +func (s *Sources) PutSourcePokeapi(ctx context.Context, request operations.PutSourcePokeapiRequest, opts ...operations.Option) (*operations.PutSourcePokeapiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePipedrive", + OperationID: "putSourcePokeapi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80279,7 +88361,7 @@ func (s *Sources) PutSourcePipedrive(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePipedrivePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePokeapiPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80336,7 +88418,7 @@ func (s *Sources) PutSourcePipedrive(ctx context.Context, request operations.Put } } - res := &operations.PutSourcePipedriveResponse{ + res := &operations.PutSourcePokeapiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80363,11 +88445,11 @@ func (s *Sources) PutSourcePipedrive(ctx context.Context, request operations.Put } -// PutSourcePocket - Update a Source fully -func (s *Sources) PutSourcePocket(ctx context.Context, request operations.PutSourcePocketRequest, opts ...operations.Option) (*operations.PutSourcePocketResponse, error) { +// PutSourcePolygonStockAPI - Update a Source fully +func (s *Sources) PutSourcePolygonStockAPI(ctx context.Context, request operations.PutSourcePolygonStockAPIRequest, opts ...operations.Option) (*operations.PutSourcePolygonStockAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePocket", + OperationID: "putSourcePolygonStockApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80389,7 +88471,7 @@ func (s *Sources) PutSourcePocket(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePocketPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePolygonStockAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80446,7 +88528,7 @@ func (s *Sources) PutSourcePocket(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourcePocketResponse{ + res := &operations.PutSourcePolygonStockAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80473,11 +88555,11 @@ func (s *Sources) PutSourcePocket(ctx context.Context, request operations.PutSou } -// PutSourcePokeapi - Update a Source fully -func (s *Sources) PutSourcePokeapi(ctx context.Context, request operations.PutSourcePokeapiRequest, opts ...operations.Option) (*operations.PutSourcePokeapiResponse, error) { +// PutSourcePostgres - Update a Source fully +func (s *Sources) PutSourcePostgres(ctx context.Context, request operations.PutSourcePostgresRequest, opts ...operations.Option) (*operations.PutSourcePostgresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePokeapi", + OperationID: "putSourcePostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80499,7 +88581,7 @@ func (s *Sources) PutSourcePokeapi(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePokeapiPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePostgresPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80556,7 +88638,7 @@ func (s *Sources) PutSourcePokeapi(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourcePokeapiResponse{ + res := &operations.PutSourcePostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80583,11 +88665,11 @@ func (s *Sources) PutSourcePokeapi(ctx context.Context, request operations.PutSo } -// PutSourcePolygonStockAPI - Update a Source fully -func (s *Sources) PutSourcePolygonStockAPI(ctx context.Context, request operations.PutSourcePolygonStockAPIRequest, opts ...operations.Option) (*operations.PutSourcePolygonStockAPIResponse, error) { +// PutSourcePosthog - Update a Source fully +func (s *Sources) PutSourcePosthog(ctx context.Context, request operations.PutSourcePosthogRequest, opts ...operations.Option) (*operations.PutSourcePosthogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePolygonStockApi", + OperationID: "putSourcePosthog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80609,7 +88691,7 @@ func (s *Sources) PutSourcePolygonStockAPI(ctx context.Context, request operatio return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePolygonStockAPIPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePosthogPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80666,7 +88748,7 @@ func (s *Sources) PutSourcePolygonStockAPI(ctx context.Context, request operatio } } - res := &operations.PutSourcePolygonStockAPIResponse{ + res := &operations.PutSourcePosthogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80693,11 +88775,11 @@ func (s *Sources) PutSourcePolygonStockAPI(ctx context.Context, request operatio } -// PutSourcePostgres - Update a Source fully -func (s *Sources) PutSourcePostgres(ctx context.Context, request operations.PutSourcePostgresRequest, opts ...operations.Option) (*operations.PutSourcePostgresResponse, error) { +// PutSourcePostmarkapp - Update a Source fully +func (s *Sources) PutSourcePostmarkapp(ctx context.Context, request operations.PutSourcePostmarkappRequest, opts ...operations.Option) (*operations.PutSourcePostmarkappResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePostgres", + OperationID: "putSourcePostmarkapp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80719,7 +88801,7 @@ func (s *Sources) PutSourcePostgres(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePostgresPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePostmarkappPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80776,7 +88858,7 @@ func (s *Sources) PutSourcePostgres(ctx context.Context, request operations.PutS } } - res := &operations.PutSourcePostgresResponse{ + res := &operations.PutSourcePostmarkappResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80803,11 +88885,11 @@ func (s *Sources) PutSourcePostgres(ctx context.Context, request operations.PutS } -// PutSourcePosthog - Update a Source fully -func (s *Sources) PutSourcePosthog(ctx context.Context, request operations.PutSourcePosthogRequest, opts ...operations.Option) (*operations.PutSourcePosthogResponse, error) { +// PutSourcePrestashop - Update a Source fully +func (s *Sources) PutSourcePrestashop(ctx context.Context, request operations.PutSourcePrestashopRequest, opts ...operations.Option) (*operations.PutSourcePrestashopResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePosthog", + OperationID: "putSourcePrestashop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80829,7 +88911,7 @@ func (s *Sources) PutSourcePosthog(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePosthogPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePrestashopPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80886,7 +88968,7 @@ func (s *Sources) PutSourcePosthog(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourcePosthogResponse{ + res := &operations.PutSourcePrestashopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80913,11 +88995,11 @@ func (s *Sources) PutSourcePosthog(ctx context.Context, request operations.PutSo } -// PutSourcePostmarkapp - Update a Source fully -func (s *Sources) PutSourcePostmarkapp(ctx context.Context, request operations.PutSourcePostmarkappRequest, opts ...operations.Option) (*operations.PutSourcePostmarkappResponse, error) { +// PutSourcePypi - Update a Source fully +func (s *Sources) PutSourcePypi(ctx context.Context, request operations.PutSourcePypiRequest, opts ...operations.Option) (*operations.PutSourcePypiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePostmarkapp", + OperationID: "putSourcePypi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80939,7 +89021,7 @@ func (s *Sources) PutSourcePostmarkapp(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePostmarkappPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePypiPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80996,7 +89078,7 @@ func (s *Sources) PutSourcePostmarkapp(ctx context.Context, request operations.P } } - res := &operations.PutSourcePostmarkappResponse{ + res := &operations.PutSourcePypiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81023,11 +89105,11 @@ func (s *Sources) PutSourcePostmarkapp(ctx context.Context, request operations.P } -// PutSourcePrestashop - Update a Source fully -func (s *Sources) PutSourcePrestashop(ctx context.Context, request operations.PutSourcePrestashopRequest, opts ...operations.Option) (*operations.PutSourcePrestashopResponse, error) { +// PutSourceQualaroo - Update a Source fully +func (s *Sources) PutSourceQualaroo(ctx context.Context, request operations.PutSourceQualarooRequest, opts ...operations.Option) (*operations.PutSourceQualarooResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePrestashop", + OperationID: "putSourceQualaroo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81049,7 +89131,7 @@ func (s *Sources) PutSourcePrestashop(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePrestashopPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceQualarooPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81106,7 +89188,7 @@ func (s *Sources) PutSourcePrestashop(ctx context.Context, request operations.Pu } } - res := &operations.PutSourcePrestashopResponse{ + res := &operations.PutSourceQualarooResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81133,11 +89215,11 @@ 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) { +// PutSourceRailz - Update a Source fully +func (s *Sources) PutSourceRailz(ctx context.Context, request operations.PutSourceRailzRequest, opts ...operations.Option) (*operations.PutSourceRailzResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePunkApi", + OperationID: "putSourceRailz", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81159,7 +89241,7 @@ func (s *Sources) PutSourcePunkAPI(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePunkAPIPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRailzPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81216,7 +89298,7 @@ func (s *Sources) PutSourcePunkAPI(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourcePunkAPIResponse{ + res := &operations.PutSourceRailzResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81243,11 +89325,11 @@ func (s *Sources) PutSourcePunkAPI(ctx context.Context, request operations.PutSo } -// PutSourcePypi - Update a Source fully -func (s *Sources) PutSourcePypi(ctx context.Context, request operations.PutSourcePypiRequest, opts ...operations.Option) (*operations.PutSourcePypiResponse, error) { +// PutSourceRecharge - Update a Source fully +func (s *Sources) PutSourceRecharge(ctx context.Context, request operations.PutSourceRechargeRequest, opts ...operations.Option) (*operations.PutSourceRechargeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePypi", + OperationID: "putSourceRecharge", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81269,7 +89351,7 @@ func (s *Sources) PutSourcePypi(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePypiPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRechargePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81326,7 +89408,7 @@ func (s *Sources) PutSourcePypi(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourcePypiResponse{ + res := &operations.PutSourceRechargeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81353,11 +89435,11 @@ func (s *Sources) PutSourcePypi(ctx context.Context, request operations.PutSourc } -// PutSourceQualaroo - Update a Source fully -func (s *Sources) PutSourceQualaroo(ctx context.Context, request operations.PutSourceQualarooRequest, opts ...operations.Option) (*operations.PutSourceQualarooResponse, error) { +// PutSourceRecreation - Update a Source fully +func (s *Sources) PutSourceRecreation(ctx context.Context, request operations.PutSourceRecreationRequest, opts ...operations.Option) (*operations.PutSourceRecreationResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceQualaroo", + OperationID: "putSourceRecreation", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81379,7 +89461,7 @@ func (s *Sources) PutSourceQualaroo(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceQualarooPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRecreationPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81436,7 +89518,7 @@ func (s *Sources) PutSourceQualaroo(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceQualarooResponse{ + res := &operations.PutSourceRecreationResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81463,11 +89545,11 @@ func (s *Sources) PutSourceQualaroo(ctx context.Context, request operations.PutS } -// PutSourceRailz - Update a Source fully -func (s *Sources) PutSourceRailz(ctx context.Context, request operations.PutSourceRailzRequest, opts ...operations.Option) (*operations.PutSourceRailzResponse, error) { +// PutSourceRecruitee - Update a Source fully +func (s *Sources) PutSourceRecruitee(ctx context.Context, request operations.PutSourceRecruiteeRequest, opts ...operations.Option) (*operations.PutSourceRecruiteeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceRailz", + OperationID: "putSourceRecruitee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81489,7 +89571,7 @@ func (s *Sources) PutSourceRailz(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRailzPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRecruiteePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81546,7 +89628,7 @@ func (s *Sources) PutSourceRailz(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceRailzResponse{ + res := &operations.PutSourceRecruiteeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81573,11 +89655,11 @@ func (s *Sources) PutSourceRailz(ctx context.Context, request operations.PutSour } -// PutSourceRecharge - Update a Source fully -func (s *Sources) PutSourceRecharge(ctx context.Context, request operations.PutSourceRechargeRequest, opts ...operations.Option) (*operations.PutSourceRechargeResponse, error) { +// PutSourceRecurly - Update a Source fully +func (s *Sources) PutSourceRecurly(ctx context.Context, request operations.PutSourceRecurlyRequest, opts ...operations.Option) (*operations.PutSourceRecurlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceRecharge", + OperationID: "putSourceRecurly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81599,7 +89681,7 @@ func (s *Sources) PutSourceRecharge(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRechargePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRecurlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81656,7 +89738,7 @@ func (s *Sources) PutSourceRecharge(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceRechargeResponse{ + res := &operations.PutSourceRecurlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81683,11 +89765,11 @@ func (s *Sources) PutSourceRecharge(ctx context.Context, request operations.PutS } -// PutSourceRecreation - Update a Source fully -func (s *Sources) PutSourceRecreation(ctx context.Context, request operations.PutSourceRecreationRequest, opts ...operations.Option) (*operations.PutSourceRecreationResponse, error) { +// PutSourceReddit - Update a Source fully +func (s *Sources) PutSourceReddit(ctx context.Context, request operations.PutSourceRedditRequest, opts ...operations.Option) (*operations.PutSourceRedditResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceRecreation", + OperationID: "putSourceReddit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81709,7 +89791,7 @@ func (s *Sources) PutSourceRecreation(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRecreationPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRedditPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81766,7 +89848,7 @@ func (s *Sources) PutSourceRecreation(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceRecreationResponse{ + res := &operations.PutSourceRedditResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81793,11 +89875,11 @@ func (s *Sources) PutSourceRecreation(ctx context.Context, request operations.Pu } -// PutSourceRecruitee - Update a Source fully -func (s *Sources) PutSourceRecruitee(ctx context.Context, request operations.PutSourceRecruiteeRequest, opts ...operations.Option) (*operations.PutSourceRecruiteeResponse, error) { +// PutSourceRedshift - Update a Source fully +func (s *Sources) PutSourceRedshift(ctx context.Context, request operations.PutSourceRedshiftRequest, opts ...operations.Option) (*operations.PutSourceRedshiftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceRecruitee", + OperationID: "putSourceRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81819,7 +89901,7 @@ func (s *Sources) PutSourceRecruitee(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRecruiteePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRedshiftPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81876,7 +89958,7 @@ func (s *Sources) PutSourceRecruitee(ctx context.Context, request operations.Put } } - res := &operations.PutSourceRecruiteeResponse{ + res := &operations.PutSourceRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81903,11 +89985,11 @@ func (s *Sources) PutSourceRecruitee(ctx context.Context, request operations.Put } -// PutSourceRecurly - Update a Source fully -func (s *Sources) PutSourceRecurly(ctx context.Context, request operations.PutSourceRecurlyRequest, opts ...operations.Option) (*operations.PutSourceRecurlyResponse, error) { +// PutSourceRetently - Update a Source fully +func (s *Sources) PutSourceRetently(ctx context.Context, request operations.PutSourceRetentlyRequest, opts ...operations.Option) (*operations.PutSourceRetentlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceRecurly", + OperationID: "putSourceRetently", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81929,7 +90011,7 @@ func (s *Sources) PutSourceRecurly(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRecurlyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRetentlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81986,7 +90068,7 @@ func (s *Sources) PutSourceRecurly(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceRecurlyResponse{ + res := &operations.PutSourceRetentlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82013,11 +90095,11 @@ func (s *Sources) PutSourceRecurly(ctx context.Context, request operations.PutSo } -// PutSourceRedshift - Update a Source fully -func (s *Sources) PutSourceRedshift(ctx context.Context, request operations.PutSourceRedshiftRequest, opts ...operations.Option) (*operations.PutSourceRedshiftResponse, error) { +// PutSourceRkiCovid - Update a Source fully +func (s *Sources) PutSourceRkiCovid(ctx context.Context, request operations.PutSourceRkiCovidRequest, opts ...operations.Option) (*operations.PutSourceRkiCovidResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceRedshift", + OperationID: "putSourceRkiCovid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82039,7 +90121,7 @@ func (s *Sources) PutSourceRedshift(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRedshiftPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRkiCovidPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82096,7 +90178,7 @@ func (s *Sources) PutSourceRedshift(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceRedshiftResponse{ + res := &operations.PutSourceRkiCovidResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82123,11 +90205,11 @@ func (s *Sources) PutSourceRedshift(ctx context.Context, request operations.PutS } -// PutSourceRetently - Update a Source fully -func (s *Sources) PutSourceRetently(ctx context.Context, request operations.PutSourceRetentlyRequest, opts ...operations.Option) (*operations.PutSourceRetentlyResponse, error) { +// PutSourceRss - Update a Source fully +func (s *Sources) PutSourceRss(ctx context.Context, request operations.PutSourceRssRequest, opts ...operations.Option) (*operations.PutSourceRssResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceRetently", + OperationID: "putSourceRss", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82149,7 +90231,7 @@ func (s *Sources) PutSourceRetently(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRetentlyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRssPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82206,7 +90288,7 @@ func (s *Sources) PutSourceRetently(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceRetentlyResponse{ + res := &operations.PutSourceRssResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82233,11 +90315,11 @@ func (s *Sources) PutSourceRetently(ctx context.Context, request operations.PutS } -// PutSourceRkiCovid - Update a Source fully -func (s *Sources) PutSourceRkiCovid(ctx context.Context, request operations.PutSourceRkiCovidRequest, opts ...operations.Option) (*operations.PutSourceRkiCovidResponse, error) { +// PutSourceS3 - Update a Source fully +func (s *Sources) PutSourceS3(ctx context.Context, request operations.PutSourceS3Request, opts ...operations.Option) (*operations.PutSourceS3Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceRkiCovid", + OperationID: "putSourceS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82259,7 +90341,7 @@ func (s *Sources) PutSourceRkiCovid(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRkiCovidPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceS3PutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82316,7 +90398,7 @@ func (s *Sources) PutSourceRkiCovid(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceRkiCovidResponse{ + res := &operations.PutSourceS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82343,11 +90425,11 @@ func (s *Sources) PutSourceRkiCovid(ctx context.Context, request operations.PutS } -// PutSourceRss - Update a Source fully -func (s *Sources) PutSourceRss(ctx context.Context, request operations.PutSourceRssRequest, opts ...operations.Option) (*operations.PutSourceRssResponse, error) { +// PutSourceSalesforce - Update a Source fully +func (s *Sources) PutSourceSalesforce(ctx context.Context, request operations.PutSourceSalesforceRequest, opts ...operations.Option) (*operations.PutSourceSalesforceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceRss", + OperationID: "putSourceSalesforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82369,7 +90451,7 @@ func (s *Sources) PutSourceRss(ctx context.Context, request operations.PutSource return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRssPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSalesforcePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82426,7 +90508,7 @@ func (s *Sources) PutSourceRss(ctx context.Context, request operations.PutSource } } - res := &operations.PutSourceRssResponse{ + res := &operations.PutSourceSalesforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82453,11 +90535,11 @@ func (s *Sources) PutSourceRss(ctx context.Context, request operations.PutSource } -// PutSourceS3 - Update a Source fully -func (s *Sources) PutSourceS3(ctx context.Context, request operations.PutSourceS3Request, opts ...operations.Option) (*operations.PutSourceS3Response, error) { +// PutSourceSalesloft - Update a Source fully +func (s *Sources) PutSourceSalesloft(ctx context.Context, request operations.PutSourceSalesloftRequest, opts ...operations.Option) (*operations.PutSourceSalesloftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceS3", + OperationID: "putSourceSalesloft", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82479,7 +90561,7 @@ func (s *Sources) PutSourceS3(ctx context.Context, request operations.PutSourceS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceS3PutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSalesloftPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82536,7 +90618,7 @@ func (s *Sources) PutSourceS3(ctx context.Context, request operations.PutSourceS } } - res := &operations.PutSourceS3Response{ + res := &operations.PutSourceSalesloftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82563,11 +90645,11 @@ func (s *Sources) PutSourceS3(ctx context.Context, request operations.PutSourceS } -// PutSourceSalesforce - Update a Source fully -func (s *Sources) PutSourceSalesforce(ctx context.Context, request operations.PutSourceSalesforceRequest, opts ...operations.Option) (*operations.PutSourceSalesforceResponse, error) { +// PutSourceSapFieldglass - Update a Source fully +func (s *Sources) PutSourceSapFieldglass(ctx context.Context, request operations.PutSourceSapFieldglassRequest, opts ...operations.Option) (*operations.PutSourceSapFieldglassResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSalesforce", + OperationID: "putSourceSapFieldglass", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82589,7 +90671,7 @@ func (s *Sources) PutSourceSalesforce(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSalesforcePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSapFieldglassPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82646,7 +90728,7 @@ func (s *Sources) PutSourceSalesforce(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceSalesforceResponse{ + res := &operations.PutSourceSapFieldglassResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82673,11 +90755,11 @@ func (s *Sources) PutSourceSalesforce(ctx context.Context, request operations.Pu } -// PutSourceSalesloft - Update a Source fully -func (s *Sources) PutSourceSalesloft(ctx context.Context, request operations.PutSourceSalesloftRequest, opts ...operations.Option) (*operations.PutSourceSalesloftResponse, error) { +// PutSourceSavvycal - Update a Source fully +func (s *Sources) PutSourceSavvycal(ctx context.Context, request operations.PutSourceSavvycalRequest, opts ...operations.Option) (*operations.PutSourceSavvycalResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSalesloft", + OperationID: "putSourceSavvycal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82699,7 +90781,7 @@ func (s *Sources) PutSourceSalesloft(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSalesloftPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSavvycalPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82756,7 +90838,7 @@ func (s *Sources) PutSourceSalesloft(ctx context.Context, request operations.Put } } - res := &operations.PutSourceSalesloftResponse{ + res := &operations.PutSourceSavvycalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82783,11 +90865,11 @@ func (s *Sources) PutSourceSalesloft(ctx context.Context, request operations.Put } -// PutSourceSapFieldglass - Update a Source fully -func (s *Sources) PutSourceSapFieldglass(ctx context.Context, request operations.PutSourceSapFieldglassRequest, opts ...operations.Option) (*operations.PutSourceSapFieldglassResponse, error) { +// PutSourceScryfall - Update a Source fully +func (s *Sources) PutSourceScryfall(ctx context.Context, request operations.PutSourceScryfallRequest, opts ...operations.Option) (*operations.PutSourceScryfallResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSapFieldglass", + OperationID: "putSourceScryfall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82809,7 +90891,7 @@ func (s *Sources) PutSourceSapFieldglass(ctx context.Context, request operations return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSapFieldglassPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceScryfallPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82866,7 +90948,7 @@ func (s *Sources) PutSourceSapFieldglass(ctx context.Context, request operations } } - res := &operations.PutSourceSapFieldglassResponse{ + res := &operations.PutSourceScryfallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes,