From 1934e7cb1dbcacf168607e797f1e323d3d6752e5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:20:49 -0500 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.402.12 (#142) Co-authored-by: speakeasybot --- .speakeasy/gen.lock | 1728 +- .speakeasy/workflow.lock | 8 +- README.md | 7 +- RELEASES.md | 12 +- ...on_dev_null.md => destination_pgvector.md} | 10 +- docs/data-sources/source_7shifts.md | 35 + docs/data-sources/source_appcues.md | 35 + docs/data-sources/source_appfigures.md | 35 + docs/data-sources/source_bitly.md | 35 + docs/data-sources/source_brevo.md | 35 + docs/data-sources/source_buildkite.md | 35 + docs/data-sources/source_buzzsprout.md | 35 + docs/data-sources/source_canny.md | 35 + docs/data-sources/source_chameleon.md | 35 + docs/data-sources/source_cimis.md | 35 + docs/data-sources/source_ezofficeinventory.md | 35 + docs/data-sources/source_front.md | 35 + ...zendesk_sell.md => source_google_tasks.md} | 10 +- docs/data-sources/source_guru.md | 35 + docs/data-sources/source_height.md | 35 + docs/data-sources/source_jotform.md | 35 + docs/data-sources/source_nylas.md | 35 + docs/data-sources/source_picqer.md | 35 + docs/data-sources/source_piwik.md | 35 + docs/data-sources/source_productboard.md | 35 + docs/data-sources/source_productive.md | 35 + docs/data-sources/source_shortcut.md | 35 + docs/data-sources/source_survicate.md | 35 + docs/data-sources/source_teamwork.md | 35 + docs/data-sources/source_when_i_work.md | 35 + docs/index.md | 2 +- docs/resources/destination_clickhouse.md | 10 +- docs/resources/destination_convex.md | 6 +- docs/resources/destination_custom.md | 6 +- docs/resources/destination_databricks.md | 8 +- docs/resources/destination_dev_null.md | 69 - docs/resources/destination_duckdb.md | 6 +- docs/resources/destination_dynamodb.md | 8 +- docs/resources/destination_elasticsearch.md | 59 +- docs/resources/destination_firebolt.md | 6 +- docs/resources/destination_firestore.md | 6 +- docs/resources/destination_gcs.md | 8 +- docs/resources/destination_google_sheets.md | 6 +- docs/resources/destination_milvus.md | 16 +- docs/resources/destination_mongodb.md | 9 +- docs/resources/destination_mssql.md | 13 +- docs/resources/destination_mysql.md | 12 +- docs/resources/destination_oracle.md | 44 +- docs/resources/destination_pgvector.md | 244 + docs/resources/destination_pinecone.md | 14 +- docs/resources/destination_postgres.md | 14 +- docs/resources/destination_pubsub.md | 14 +- docs/resources/destination_qdrant.md | 16 +- docs/resources/destination_redis.md | 10 +- docs/resources/destination_redshift.md | 16 +- docs/resources/destination_s3.md | 10 +- docs/resources/destination_s3_glue.md | 10 +- docs/resources/destination_sftp_json.md | 8 +- docs/resources/destination_snowflake.md | 12 +- .../resources/destination_snowflake_cortex.md | 14 +- docs/resources/destination_teradata.md | 10 +- docs/resources/destination_timeplus.md | 6 +- docs/resources/destination_typesense.md | 8 +- docs/resources/destination_vectara.md | 6 +- docs/resources/destination_weaviate.md | 16 +- docs/resources/destination_yellowbrick.md | 10 +- docs/resources/permission.md | 8 +- docs/resources/source_7shifts.md | 61 + docs/resources/source_aha.md | 6 +- docs/resources/source_airbyte.md | 8 +- docs/resources/source_aircall.md | 6 +- docs/resources/source_airtable.md | 8 +- docs/resources/source_amazon_ads.md | 14 +- .../resources/source_amazon_seller_partner.md | 16 +- docs/resources/source_amazon_sqs.md | 6 +- docs/resources/source_amplitude.md | 8 +- docs/resources/source_apify_dataset.md | 6 +- docs/resources/source_appcues.md | 68 + docs/resources/source_appfigures.md | 68 + docs/resources/source_appfollow.md | 6 +- docs/resources/source_asana.md | 8 +- docs/resources/source_auth0.md | 6 +- docs/resources/source_aws_cloudtrail.md | 8 +- docs/resources/source_azure_blob_storage.md | 21 +- docs/resources/source_azure_table.md | 8 +- docs/resources/source_bamboo_hr.md | 8 +- docs/resources/source_basecamp.md | 10 +- docs/resources/source_bigquery.md | 6 +- docs/resources/source_bing_ads.md | 16 +- ...source_zendesk_sell.md => source_bitly.md} | 26 +- docs/resources/source_braintree.md | 8 +- docs/resources/source_braze.md | 8 +- docs/resources/source_breezy_hr.md | 6 +- docs/resources/source_brevo.md | 61 + docs/resources/source_buildkite.md | 61 + docs/resources/source_buzzsprout.md | 63 + docs/resources/source_calendly.md | 8 +- docs/resources/source_canny.md | 59 + docs/resources/source_cart.md | 8 +- docs/resources/source_chameleon.md | 70 + docs/resources/source_chargebee.md | 6 +- docs/resources/source_chartmogul.md | 6 +- docs/resources/source_cimis.md | 82 + docs/resources/source_clazar.md | 6 +- docs/resources/source_clickhouse.md | 10 +- docs/resources/source_clickup_api.md | 8 +- 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 | 8 +- docs/resources/source_configcat.md | 8 +- docs/resources/source_confluence.md | 6 +- docs/resources/source_convex.md | 8 +- docs/resources/source_custom.md | 6 +- docs/resources/source_customer_io.md | 6 +- docs/resources/source_datadog.md | 12 +- docs/resources/source_datascope.md | 6 +- docs/resources/source_dbt.md | 6 +- docs/resources/source_delighted.md | 8 +- docs/resources/source_dixa.md | 8 +- 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_ezofficeinventory.md | 63 + docs/resources/source_facebook_marketing.md | 38 +- docs/resources/source_faker.md | 14 +- docs/resources/source_fauna.md | 10 +- docs/resources/source_file.md | 13 +- docs/resources/source_firebolt.md | 6 +- docs/resources/source_fleetio.md | 6 +- docs/resources/source_freshcaller.md | 10 +- docs/resources/source_freshdesk.md | 10 +- docs/resources/source_freshsales.md | 6 +- docs/resources/source_front.md | 66 + docs/resources/source_gainsight_px.md | 6 +- docs/resources/source_gcs.md | 21 +- docs/resources/source_getlago.md | 6 +- docs/resources/source_github.md | 12 +- docs/resources/source_gitlab.md | 14 +- docs/resources/source_glassfrog.md | 6 +- docs/resources/source_gnews.md | 20 +- docs/resources/source_goldcast.md | 6 +- docs/resources/source_google_ads.md | 6 +- .../source_google_analytics_data_api.md | 22 +- docs/resources/source_google_directory.md | 8 +- docs/resources/source_google_drive.md | 16 +- .../source_google_pagespeed_insights.md | 8 +- .../resources/source_google_search_console.md | 14 +- docs/resources/source_google_sheets.md | 8 +- docs/resources/source_google_tasks.md | 66 + docs/resources/source_google_webfonts.md | 6 +- docs/resources/source_greenhouse.md | 6 +- docs/resources/source_gridly.md | 6 +- docs/resources/source_guru.md | 70 + docs/resources/source_hardcoded_records.md | 8 +- docs/resources/source_harvest.md | 8 +- docs/resources/source_height.md | 66 + docs/resources/source_hibob.md | 8 +- docs/resources/source_high_level.md | 8 +- docs/resources/source_hubplanner.md | 6 +- docs/resources/source_hubspot.md | 8 +- docs/resources/source_insightly.md | 6 +- docs/resources/source_instagram.md | 14 +- docs/resources/source_instatus.md | 6 +- docs/resources/source_intercom.md | 8 +- docs/resources/source_ip2whois.md | 8 +- docs/resources/source_iterable.md | 6 +- docs/resources/source_jira.md | 26 +- docs/resources/source_jotform.md | 92 + docs/resources/source_k6_cloud.md | 6 +- docs/resources/source_klarna.md | 12 +- docs/resources/source_klaviyo.md | 8 +- docs/resources/source_kyve.md | 12 +- docs/resources/source_launchdarkly.md | 6 +- docs/resources/source_leadfeeder.md | 8 +- docs/resources/source_lemlist.md | 6 +- docs/resources/source_lever_hiring.md | 8 +- docs/resources/source_linkedin_ads.md | 18 +- docs/resources/source_linkedin_pages.md | 10 +- docs/resources/source_linnworks.md | 8 +- docs/resources/source_lokalise.md | 6 +- docs/resources/source_looker.md | 8 +- docs/resources/source_luma.md | 6 +- docs/resources/source_mailchimp.md | 10 +- docs/resources/source_mailgun.md | 6 +- docs/resources/source_mailjet_sms.md | 6 +- docs/resources/source_marketo.md | 6 +- docs/resources/source_metabase.md | 8 +- docs/resources/source_microsoft_onedrive.md | 18 +- docs/resources/source_microsoft_sharepoint.md | 20 +- docs/resources/source_microsoft_teams.md | 6 +- docs/resources/source_mixpanel.md | 14 +- docs/resources/source_monday.md | 6 +- docs/resources/source_mongodb_v2.md | 18 +- docs/resources/source_mssql.md | 14 +- docs/resources/source_my_hours.md | 6 +- docs/resources/source_mysql.md | 14 +- docs/resources/source_netsuite.md | 8 +- docs/resources/source_northpass_lms.md | 6 +- docs/resources/source_notion.md | 6 +- docs/resources/source_nylas.md | 65 + docs/resources/source_nytimes.md | 12 +- docs/resources/source_okta.md | 6 +- docs/resources/source_omnisend.md | 6 +- docs/resources/source_onesignal.md | 6 +- docs/resources/source_oracle.md | 63 +- docs/resources/source_orb.md | 8 +- docs/resources/source_orbit.md | 6 +- docs/resources/source_outbrain_amplify.md | 10 +- docs/resources/source_outreach.md | 6 +- docs/resources/source_paypal_transaction.md | 8 +- docs/resources/source_paystack.md | 8 +- docs/resources/source_pendo.md | 6 +- docs/resources/source_pennylane.md | 8 +- docs/resources/source_persistiq.md | 6 +- docs/resources/source_pexels_api.md | 8 +- docs/resources/source_picqer.md | 68 + docs/resources/source_pinterest.md | 16 +- docs/resources/source_pipedrive.md | 6 +- docs/resources/source_piwik.md | 63 + docs/resources/source_planhat.md | 6 +- docs/resources/source_pocket.md | 16 +- docs/resources/source_pokeapi.md | 8 +- docs/resources/source_polygon_stock_api.md | 14 +- docs/resources/source_postgres.md | 8 +- docs/resources/source_posthog.md | 6 +- docs/resources/source_postmarkapp.md | 6 +- docs/resources/source_prestashop.md | 6 +- docs/resources/source_productboard.md | 61 + docs/resources/source_productive.md | 61 + 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 | 12 +- docs/resources/source_redshift.md | 8 +- docs/resources/source_retently.md | 6 +- docs/resources/source_rki_covid.md | 6 +- docs/resources/source_rss.md | 6 +- docs/resources/source_s3.md | 123 +- docs/resources/source_salesforce.md | 12 +- docs/resources/source_salesloft.md | 6 +- docs/resources/source_sap_fieldglass.md | 6 +- docs/resources/source_savvycal.md | 6 +- docs/resources/source_scryfall.md | 6 +- docs/resources/source_secoda.md | 6 +- docs/resources/source_sendgrid.md | 8 +- docs/resources/source_sendinblue.md | 6 +- docs/resources/source_senseforce.md | 11 +- docs/resources/source_sentry.md | 8 +- docs/resources/source_sftp.md | 8 +- docs/resources/source_sftp_bulk.md | 23 +- docs/resources/source_shopify.md | 18 +- docs/resources/source_shortcut.md | 66 + docs/resources/source_shortio.md | 6 +- docs/resources/source_slack.md | 6 +- docs/resources/source_smaily.md | 6 +- docs/resources/source_smartengage.md | 6 +- docs/resources/source_smartsheets.md | 10 +- docs/resources/source_snapchat_marketing.md | 10 +- docs/resources/source_snowflake.md | 6 +- docs/resources/source_sonar_cloud.md | 6 +- docs/resources/source_spacex_api.md | 8 +- docs/resources/source_square.md | 12 +- docs/resources/source_strava.md | 6 +- docs/resources/source_stripe.md | 12 +- docs/resources/source_survey_sparrow.md | 6 +- docs/resources/source_surveymonkey.md | 8 +- docs/resources/source_survicate.md | 61 + docs/resources/source_teamwork.md | 68 + docs/resources/source_tempo.md | 6 +- docs/resources/source_the_guardian_api.md | 10 +- docs/resources/source_tiktok_marketing.md | 14 +- docs/resources/source_trello.md | 6 +- docs/resources/source_trustpilot.md | 6 +- docs/resources/source_tvmaze_schedule.md | 8 +- docs/resources/source_twilio.md | 6 +- docs/resources/source_twilio_taskrouter.md | 6 +- docs/resources/source_twitter.md | 10 +- docs/resources/source_typeform.md | 8 +- docs/resources/source_us_census.md | 10 +- docs/resources/source_vantage.md | 6 +- docs/resources/source_webflow.md | 6 +- docs/resources/source_when_i_work.md | 61 + docs/resources/source_whisky_hunter.md | 6 +- docs/resources/source_wikipedia_pageviews.md | 12 +- docs/resources/source_woocommerce.md | 6 +- docs/resources/source_xkcd.md | 6 +- docs/resources/source_yandex_metrica.md | 6 +- docs/resources/source_yotpo.md | 8 +- docs/resources/source_youtube_analytics.md | 6 +- docs/resources/source_zendesk_chat.md | 6 +- docs/resources/source_zendesk_sunshine.md | 8 +- docs/resources/source_zendesk_support.md | 14 +- docs/resources/source_zendesk_talk.md | 8 +- docs/resources/source_zenloop.md | 6 +- docs/resources/source_zoho_crm.md | 14 +- docs/resources/source_zoom.md | 6 +- docs/resources/workspace.md | 4 +- .../data-source.tf | 3 - .../data-source.tf | 3 + .../airbyte_source_7shifts/data-source.tf | 3 + .../airbyte_source_appcues/data-source.tf | 3 + .../airbyte_source_appfigures/data-source.tf | 3 + .../airbyte_source_bitly/data-source.tf | 3 + .../airbyte_source_brevo/data-source.tf | 3 + .../airbyte_source_buildkite/data-source.tf | 3 + .../airbyte_source_buzzsprout/data-source.tf | 3 + .../airbyte_source_canny/data-source.tf | 3 + .../airbyte_source_chameleon/data-source.tf | 3 + .../airbyte_source_cimis/data-source.tf | 3 + .../data-source.tf | 3 + .../airbyte_source_front/data-source.tf | 3 + .../data-source.tf | 3 + .../airbyte_source_guru/data-source.tf | 3 + .../airbyte_source_height/data-source.tf | 3 + .../airbyte_source_jotform/data-source.tf | 3 + .../airbyte_source_nylas/data-source.tf | 3 + .../airbyte_source_picqer/data-source.tf | 3 + .../airbyte_source_piwik/data-source.tf | 3 + .../data-source.tf | 3 + .../airbyte_source_productive/data-source.tf | 3 + .../airbyte_source_shortcut/data-source.tf | 3 + .../airbyte_source_survicate/data-source.tf | 3 + .../airbyte_source_teamwork/data-source.tf | 3 + .../airbyte_source_when_i_work/data-source.tf | 3 + .../data-source.tf | 3 - examples/provider/provider.tf | 2 +- .../resource.tf | 9 +- .../airbyte_destination_convex/resource.tf | 6 +- .../airbyte_destination_custom/resource.tf | 6 +- .../resource.tf | 8 +- .../airbyte_destination_dev_null/import.sh | 1 - .../airbyte_destination_dev_null/resource.tf | 10 - .../airbyte_destination_duckdb/resource.tf | 6 +- .../airbyte_destination_dynamodb/resource.tf | 8 +- .../resource.tf | 11 +- .../airbyte_destination_firebolt/resource.tf | 6 +- .../airbyte_destination_firestore/resource.tf | 6 +- .../airbyte_destination_gcs/resource.tf | 8 +- .../resource.tf | 6 +- .../airbyte_destination_milvus/resource.tf | 16 +- .../airbyte_destination_mongodb/resource.tf | 8 +- .../airbyte_destination_mssql/resource.tf | 8 +- .../airbyte_destination_mysql/resource.tf | 11 +- .../airbyte_destination_oracle/resource.tf | 13 +- .../airbyte_destination_pgvector/import.sh | 1 + .../airbyte_destination_pgvector/resource.tf | 46 + .../airbyte_destination_pinecone/resource.tf | 14 +- .../airbyte_destination_postgres/resource.tf | 13 +- .../airbyte_destination_pubsub/resource.tf | 14 +- .../airbyte_destination_qdrant/resource.tf | 16 +- .../airbyte_destination_redis/resource.tf | 10 +- .../airbyte_destination_redshift/resource.tf | 16 +- .../airbyte_destination_s3/resource.tf | 10 +- .../airbyte_destination_s3_glue/resource.tf | 10 +- .../airbyte_destination_sftp_json/resource.tf | 8 +- .../airbyte_destination_snowflake/resource.tf | 12 +- .../resource.tf | 14 +- .../airbyte_destination_teradata/resource.tf | 10 +- .../airbyte_destination_timeplus/resource.tf | 6 +- .../airbyte_destination_typesense/resource.tf | 8 +- .../airbyte_destination_vectara/resource.tf | 6 +- .../airbyte_destination_weaviate/resource.tf | 16 +- .../resource.tf | 10 +- .../resources/airbyte_permission/resource.tf | 8 +- .../airbyte_source_7shifts/import.sh | 1 + .../airbyte_source_7shifts/resource.tf | 10 + .../resources/airbyte_source_aha/resource.tf | 6 +- .../airbyte_source_airbyte/resource.tf | 8 +- .../airbyte_source_aircall/resource.tf | 6 +- .../airbyte_source_airtable/resource.tf | 8 +- .../airbyte_source_amazon_ads/resource.tf | 14 +- .../resource.tf | 14 +- .../airbyte_source_amazon_sqs/resource.tf | 6 +- .../airbyte_source_amplitude/resource.tf | 8 +- .../airbyte_source_apify_dataset/resource.tf | 6 +- .../airbyte_source_appcues/import.sh | 1 + .../airbyte_source_appcues/resource.tf | 12 + .../airbyte_source_appfigures/import.sh | 1 + .../airbyte_source_appfigures/resource.tf | 12 + .../airbyte_source_appfollow/resource.tf | 6 +- .../airbyte_source_asana/resource.tf | 7 +- .../airbyte_source_auth0/resource.tf | 6 +- .../airbyte_source_aws_cloudtrail/resource.tf | 8 +- .../resource.tf | 18 +- .../airbyte_source_azure_table/resource.tf | 8 +- .../airbyte_source_bamboo_hr/resource.tf | 8 +- .../airbyte_source_basecamp/resource.tf | 10 +- .../airbyte_source_bigquery/resource.tf | 6 +- .../airbyte_source_bing_ads/resource.tf | 16 +- .../resources/airbyte_source_bitly/import.sh | 1 + .../airbyte_source_bitly/resource.tf | 11 + .../airbyte_source_braintree/resource.tf | 8 +- .../airbyte_source_braze/resource.tf | 8 +- .../airbyte_source_breezy_hr/resource.tf | 6 +- .../resources/airbyte_source_brevo/import.sh | 1 + .../airbyte_source_brevo/resource.tf | 10 + .../airbyte_source_buildkite/import.sh | 1 + .../airbyte_source_buildkite/resource.tf | 10 + .../airbyte_source_buzzsprout/import.sh | 1 + .../airbyte_source_buzzsprout/resource.tf | 11 + .../airbyte_source_calendly/resource.tf | 8 +- .../resources/airbyte_source_canny/import.sh | 1 + .../airbyte_source_canny/resource.tf | 9 + .../resources/airbyte_source_cart/resource.tf | 8 +- .../airbyte_source_chameleon/import.sh | 1 + .../airbyte_source_chameleon/resource.tf | 13 + .../airbyte_source_chargebee/resource.tf | 6 +- .../airbyte_source_chartmogul/resource.tf | 6 +- .../resources/airbyte_source_cimis/import.sh | 1 + .../airbyte_source_cimis/resource.tf | 22 + .../airbyte_source_clazar/resource.tf | 6 +- .../airbyte_source_clickhouse/resource.tf | 9 +- .../airbyte_source_clickup_api/resource.tf | 8 +- .../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 | 8 +- .../airbyte_source_configcat/resource.tf | 8 +- .../airbyte_source_confluence/resource.tf | 6 +- .../airbyte_source_convex/resource.tf | 8 +- .../airbyte_source_custom/resource.tf | 6 +- .../airbyte_source_customer_io/resource.tf | 6 +- .../airbyte_source_datadog/resource.tf | 12 +- .../airbyte_source_datascope/resource.tf | 6 +- .../resources/airbyte_source_dbt/resource.tf | 6 +- .../airbyte_source_delighted/resource.tf | 8 +- .../resources/airbyte_source_dixa/resource.tf | 8 +- .../airbyte_source_dockerhub/resource.tf | 6 +- .../airbyte_source_dremio/resource.tf | 6 +- .../airbyte_source_dynamodb/resource.tf | 10 +- .../airbyte_source_emailoctopus/resource.tf | 6 +- .../airbyte_source_exchange_rates/resource.tf | 8 +- .../import.sh | 1 + .../resource.tf | 11 + .../resource.tf | 35 +- .../airbyte_source_faker/resource.tf | 14 +- .../airbyte_source_fauna/resource.tf | 10 +- .../resources/airbyte_source_file/resource.tf | 8 +- .../airbyte_source_firebolt/resource.tf | 6 +- .../airbyte_source_fleetio/resource.tf | 6 +- .../airbyte_source_freshcaller/resource.tf | 10 +- .../airbyte_source_freshdesk/resource.tf | 10 +- .../airbyte_source_freshsales/resource.tf | 6 +- .../resources/airbyte_source_front/import.sh | 1 + .../airbyte_source_front/resource.tf | 11 + .../airbyte_source_gainsight_px/resource.tf | 6 +- .../resources/airbyte_source_gcs/resource.tf | 18 +- .../airbyte_source_getlago/resource.tf | 6 +- .../airbyte_source_github/resource.tf | 10 +- .../airbyte_source_gitlab/resource.tf | 12 +- .../airbyte_source_glassfrog/resource.tf | 6 +- .../airbyte_source_gnews/resource.tf | 20 +- .../airbyte_source_goldcast/resource.tf | 6 +- .../airbyte_source_google_ads/resource.tf | 6 +- .../resource.tf | 22 +- .../resource.tf | 8 +- .../airbyte_source_google_drive/resource.tf | 15 +- .../resource.tf | 8 +- .../resource.tf | 13 +- .../airbyte_source_google_sheets/resource.tf | 8 +- .../airbyte_source_google_tasks/import.sh | 1 + .../airbyte_source_google_tasks/resource.tf | 11 + .../resource.tf | 6 +- .../airbyte_source_greenhouse/resource.tf | 6 +- .../airbyte_source_gridly/resource.tf | 6 +- .../resources/airbyte_source_guru/import.sh | 1 + .../resources/airbyte_source_guru/resource.tf | 13 + .../resource.tf | 8 +- .../airbyte_source_harvest/resource.tf | 7 +- .../resources/airbyte_source_height/import.sh | 1 + .../airbyte_source_height/resource.tf | 11 + .../airbyte_source_hibob/resource.tf | 8 +- .../airbyte_source_high_level/resource.tf | 8 +- .../airbyte_source_hubplanner/resource.tf | 6 +- .../airbyte_source_hubspot/resource.tf | 8 +- .../airbyte_source_insightly/resource.tf | 6 +- .../airbyte_source_instagram/resource.tf | 12 +- .../airbyte_source_instatus/resource.tf | 6 +- .../airbyte_source_intercom/resource.tf | 8 +- .../airbyte_source_ip2whois/resource.tf | 8 +- .../airbyte_source_iterable/resource.tf | 6 +- .../resources/airbyte_source_jira/resource.tf | 22 +- .../airbyte_source_jotform/import.sh | 1 + .../airbyte_source_jotform/resource.tf | 16 + .../airbyte_source_k6_cloud/resource.tf | 6 +- .../airbyte_source_klarna/resource.tf | 12 +- .../airbyte_source_klaviyo/resource.tf | 8 +- .../resources/airbyte_source_kyve/resource.tf | 10 +- .../airbyte_source_launchdarkly/resource.tf | 6 +- .../airbyte_source_leadfeeder/resource.tf | 8 +- .../airbyte_source_lemlist/resource.tf | 6 +- .../airbyte_source_lever_hiring/resource.tf | 8 +- .../airbyte_source_linkedin_ads/resource.tf | 17 +- .../airbyte_source_linkedin_pages/resource.tf | 10 +- .../airbyte_source_linnworks/resource.tf | 8 +- .../airbyte_source_lokalise/resource.tf | 6 +- .../airbyte_source_looker/resource.tf | 8 +- .../resources/airbyte_source_luma/resource.tf | 6 +- .../airbyte_source_mailchimp/resource.tf | 9 +- .../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 | 17 +- .../resource.tf | 19 +- .../resource.tf | 6 +- .../airbyte_source_mixpanel/resource.tf | 14 +- .../airbyte_source_monday/resource.tf | 6 +- .../airbyte_source_mongodb_v2/resource.tf | 18 +- .../airbyte_source_mssql/resource.tf | 14 +- .../airbyte_source_my_hours/resource.tf | 6 +- .../airbyte_source_mysql/resource.tf | 13 +- .../airbyte_source_netsuite/resource.tf | 8 +- .../airbyte_source_northpass_lms/resource.tf | 6 +- .../airbyte_source_notion/resource.tf | 6 +- .../resources/airbyte_source_nylas/import.sh | 1 + .../airbyte_source_nylas/resource.tf | 12 + .../airbyte_source_nytimes/resource.tf | 12 +- .../resources/airbyte_source_okta/resource.tf | 6 +- .../airbyte_source_omnisend/resource.tf | 6 +- .../airbyte_source_onesignal/resource.tf | 6 +- .../airbyte_source_oracle/resource.tf | 12 +- .../resources/airbyte_source_orb/resource.tf | 8 +- .../airbyte_source_orbit/resource.tf | 6 +- .../resource.tf | 10 +- .../airbyte_source_outreach/resource.tf | 6 +- .../resource.tf | 8 +- .../airbyte_source_paystack/resource.tf | 8 +- .../airbyte_source_pendo/resource.tf | 6 +- .../airbyte_source_pennylane/resource.tf | 8 +- .../airbyte_source_persistiq/resource.tf | 6 +- .../airbyte_source_pexels_api/resource.tf | 8 +- .../resources/airbyte_source_picqer/import.sh | 1 + .../airbyte_source_picqer/resource.tf | 12 + .../airbyte_source_pinterest/resource.tf | 16 +- .../airbyte_source_pipedrive/resource.tf | 6 +- .../resources/airbyte_source_piwik/import.sh | 1 + .../airbyte_source_piwik/resource.tf | 11 + .../airbyte_source_planhat/resource.tf | 6 +- .../airbyte_source_pocket/resource.tf | 16 +- .../airbyte_source_pokeapi/resource.tf | 8 +- .../resource.tf | 14 +- .../airbyte_source_postgres/resource.tf | 8 +- .../airbyte_source_posthog/resource.tf | 6 +- .../airbyte_source_postmarkapp/resource.tf | 6 +- .../airbyte_source_prestashop/resource.tf | 6 +- .../airbyte_source_productboard/import.sh | 1 + .../airbyte_source_productboard/resource.tf | 10 + .../airbyte_source_productive/import.sh | 1 + .../airbyte_source_productive/resource.tf | 10 + .../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 +- .../airbyte_source_reddit/resource.tf | 12 +- .../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 | 42 +- .../airbyte_source_salesforce/resource.tf | 12 +- .../airbyte_source_salesloft/resource.tf | 6 +- .../airbyte_source_sap_fieldglass/resource.tf | 6 +- .../airbyte_source_savvycal/resource.tf | 6 +- .../airbyte_source_scryfall/resource.tf | 6 +- .../airbyte_source_secoda/resource.tf | 6 +- .../airbyte_source_sendgrid/resource.tf | 8 +- .../airbyte_source_sendinblue/resource.tf | 6 +- .../airbyte_source_senseforce/resource.tf | 7 +- .../airbyte_source_sentry/resource.tf | 8 +- .../resources/airbyte_source_sftp/resource.tf | 8 +- .../airbyte_source_sftp_bulk/resource.tf | 20 +- .../airbyte_source_shopify/resource.tf | 18 +- .../airbyte_source_shortcut/import.sh | 1 + .../airbyte_source_shortcut/resource.tf | 11 + .../airbyte_source_shortio/resource.tf | 6 +- .../airbyte_source_slack/resource.tf | 6 +- .../airbyte_source_smaily/resource.tf | 6 +- .../airbyte_source_smartengage/resource.tf | 6 +- .../airbyte_source_smartsheets/resource.tf | 9 +- .../resource.tf | 10 +- .../airbyte_source_snowflake/resource.tf | 6 +- .../airbyte_source_sonar_cloud/resource.tf | 6 +- .../airbyte_source_spacex_api/resource.tf | 8 +- .../airbyte_source_square/resource.tf | 12 +- .../airbyte_source_strava/resource.tf | 6 +- .../airbyte_source_stripe/resource.tf | 12 +- .../airbyte_source_survey_sparrow/resource.tf | 6 +- .../airbyte_source_surveymonkey/resource.tf | 8 +- .../airbyte_source_survicate/import.sh | 1 + .../airbyte_source_survicate/resource.tf | 10 + .../airbyte_source_teamwork/import.sh | 1 + .../airbyte_source_teamwork/resource.tf | 12 + .../airbyte_source_tempo/resource.tf | 6 +- .../resource.tf | 10 +- .../resource.tf | 14 +- .../airbyte_source_trello/resource.tf | 6 +- .../airbyte_source_trustpilot/resource.tf | 6 +- .../resource.tf | 8 +- .../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 | 10 +- .../airbyte_source_vantage/resource.tf | 6 +- .../airbyte_source_webflow/resource.tf | 6 +- .../airbyte_source_when_i_work/import.sh | 1 + .../airbyte_source_when_i_work/resource.tf | 10 + .../airbyte_source_whisky_hunter/resource.tf | 6 +- .../resource.tf | 12 +- .../airbyte_source_woocommerce/resource.tf | 6 +- .../resources/airbyte_source_xkcd/resource.tf | 6 +- .../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/import.sh | 1 - .../airbyte_source_zendesk_sell/resource.tf | 9 - .../resource.tf | 8 +- .../resource.tf | 13 +- .../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 +- .../destination_clickhouse_resource.go | 7 + .../destination_clickhouse_resource_sdk.go | 14 + .../destination_devnull_resource_sdk.go | 72 - .../destination_elasticsearch_resource.go | 93 + .../destination_elasticsearch_resource_sdk.go | 136 + .../provider/destination_mongodb_resource.go | 7 + .../destination_mongodb_resource_sdk.go | 22 +- .../provider/destination_mssql_resource.go | 13 + .../destination_mssql_resource_sdk.go | 18 + .../provider/destination_mysql_resource.go | 6 + .../destination_mysql_resource_sdk.go | 14 + .../provider/destination_oracle_resource.go | 63 + .../destination_oracle_resource_sdk.go | 84 + ...go => destination_pgvector_data_source.go} | 34 +- ...> destination_pgvector_data_source_sdk.go} | 2 +- .../provider/destination_pgvector_resource.go | 658 + .../destination_pgvector_resource_sdk.go | 432 + .../provider/destination_postgres_resource.go | 6 + .../destination_postgres_resource_sdk.go | 14 + internal/provider/provider.go | 56 +- .../provider/source_7shifts_data_source.go | 139 + .../source_7shifts_data_source_sdk.go | 20 + ...resource.go => source_7shifts_resource.go} | 88 +- .../provider/source_7shifts_resource_sdk.go | 66 + .../source_amazonsellerpartner_resource.go | 10 +- .../provider/source_appcues_data_source.go | 139 + .../source_appcues_data_source_sdk.go | 20 + internal/provider/source_appcues_resource.go | 379 + .../provider/source_appcues_resource_sdk.go | 84 + .../provider/source_appfigures_data_source.go | 139 + .../source_appfigures_data_source_sdk.go | 20 + .../provider/source_appfigures_resource.go | 394 + .../source_appfigures_resource_sdk.go | 94 + internal/provider/source_asana_resource.go | 4 - .../provider/source_asana_resource_sdk.go | 14 - .../source_azureblobstorage_resource.go | 20 - .../source_azureblobstorage_resource_sdk.go | 42 - internal/provider/source_bitly_data_source.go | 139 + .../provider/source_bitly_data_source_sdk.go | 20 + internal/provider/source_bitly_resource.go | 378 + .../provider/source_bitly_resource_sdk.go | 70 + internal/provider/source_brevo_data_source.go | 139 + .../provider/source_brevo_data_source_sdk.go | 20 + internal/provider/source_brevo_resource.go | 372 + .../provider/source_brevo_resource_sdk.go | 66 + .../provider/source_buildkite_data_source.go | 139 + .../source_buildkite_data_source_sdk.go | 20 + .../provider/source_buildkite_resource.go | 372 + .../provider/source_buildkite_resource_sdk.go | 66 + .../provider/source_buzzsprout_data_source.go | 139 + .../source_buzzsprout_data_source_sdk.go | 20 + .../provider/source_buzzsprout_resource.go | 376 + .../source_buzzsprout_resource_sdk.go | 70 + internal/provider/source_calendly_resource.go | 14 +- internal/provider/source_canny_data_source.go | 139 + .../provider/source_canny_data_source_sdk.go | 20 + internal/provider/source_canny_resource.go | 365 + ...ce_sdk.go => source_canny_resource_sdk.go} | 22 +- .../provider/source_chameleon_data_source.go | 139 + .../source_chameleon_data_source_sdk.go | 20 + .../provider/source_chameleon_resource.go | 399 + .../provider/source_chameleon_resource_sdk.go | 98 + .../provider/source_chartmogul_resource.go | 14 +- internal/provider/source_cimis_data_source.go | 139 + .../provider/source_cimis_data_source_sdk.go | 20 + internal/provider/source_cimis_resource.go | 423 + .../provider/source_cimis_resource_sdk.go | 131 + .../provider/source_clickhouse_resource.go | 7 + .../source_clickhouse_resource_sdk.go | 14 + .../source_ezofficeinventory_data_source.go | 139 + ...ource_ezofficeinventory_data_source_sdk.go | 20 + .../source_ezofficeinventory_resource.go | 379 + .../source_ezofficeinventory_resource_sdk.go | 70 + .../source_facebookmarketing_resource.go | 16 - .../source_facebookmarketing_resource_sdk.go | 110 +- internal/provider/source_file_resource.go | 22 + internal/provider/source_file_resource_sdk.go | 26 +- internal/provider/source_front_data_source.go | 139 + .../provider/source_front_data_source_sdk.go | 20 + internal/provider/source_front_resource.go | 379 + .../provider/source_front_resource_sdk.go | 80 + internal/provider/source_gcs_resource.go | 20 - internal/provider/source_gcs_resource_sdk.go | 42 - internal/provider/source_github_resource.go | 8 - .../provider/source_github_resource_sdk.go | 28 - internal/provider/source_gitlab_resource.go | 8 - .../provider/source_gitlab_resource_sdk.go | 28 - ...rce_googleanalyticsdataapi_resource_sdk.go | 106 +- .../provider/source_googledrive_resource.go | 4 - .../source_googledrive_resource_sdk.go | 14 - .../source_googlesearchconsole_resource.go | 4 - ...source_googlesearchconsole_resource_sdk.go | 14 - ...e.go => source_googletasks_data_source.go} | 34 +- ... => source_googletasks_data_source_sdk.go} | 2 +- .../provider/source_googletasks_resource.go | 379 + .../source_googletasks_resource_sdk.go | 80 + internal/provider/source_guru_data_source.go | 139 + .../provider/source_guru_data_source_sdk.go | 20 + internal/provider/source_guru_resource.go | 383 + internal/provider/source_guru_resource_sdk.go | 108 + internal/provider/source_harvest_resource.go | 7 - .../provider/source_harvest_resource_sdk.go | 14 - .../provider/source_height_data_source.go | 139 + .../provider/source_height_data_source_sdk.go | 20 + internal/provider/source_height_resource.go | 379 + .../provider/source_height_resource_sdk.go | 80 + .../provider/source_instagram_resource.go | 10 - .../provider/source_instagram_resource_sdk.go | 36 +- internal/provider/source_iterable_resource.go | 14 +- internal/provider/source_jira_resource.go | 23 - internal/provider/source_jira_resource_sdk.go | 52 - .../provider/source_jotform_data_source.go | 139 + .../source_jotform_data_source_sdk.go | 20 + internal/provider/source_jotform_resource.go | 426 + .../provider/source_jotform_resource_sdk.go | 132 + internal/provider/source_kyve_resource.go | 11 - internal/provider/source_kyve_resource_sdk.go | 28 - .../provider/source_linkedinads_resource.go | 7 + .../source_linkedinads_resource_sdk.go | 14 + .../provider/source_mailchimp_resource.go | 4 - .../provider/source_mailchimp_resource_sdk.go | 14 - .../source_microsoftonedrive_resource.go | 4 - .../source_microsoftonedrive_resource_sdk.go | 14 - .../source_microsoftsharepoint_resource.go | 4 - ...source_microsoftsharepoint_resource_sdk.go | 14 - .../provider/source_mssql_resource_sdk.go | 8 +- internal/provider/source_mysql_resource.go | 7 + .../provider/source_mysql_resource_sdk.go | 14 + internal/provider/source_nylas_data_source.go | 139 + .../provider/source_nylas_data_source_sdk.go | 20 + internal/provider/source_nylas_resource.go | 389 + .../provider/source_nylas_resource_sdk.go | 74 + internal/provider/source_oracle_resource.go | 15 +- .../provider/source_oracle_resource_sdk.go | 122 +- .../provider/source_picqer_data_source.go | 139 + .../provider/source_picqer_data_source_sdk.go | 20 + internal/provider/source_picqer_resource.go | 379 + .../provider/source_picqer_resource_sdk.go | 84 + internal/provider/source_piwik_data_source.go | 139 + .../provider/source_piwik_data_source_sdk.go | 20 + internal/provider/source_piwik_resource.go | 372 + .../provider/source_piwik_resource_sdk.go | 69 + .../source_productboard_data_source.go | 139 + .../source_productboard_data_source_sdk.go | 20 + ...rce.go => source_productboard_resource.go} | 162 +- .../source_productboard_resource_sdk.go | 66 + .../provider/source_productive_data_source.go | 139 + .../source_productive_data_source_sdk.go | 20 + .../provider/source_productive_resource.go | 368 + .../source_productive_resource_sdk.go | 65 + internal/provider/source_s3_resource.go | 239 +- internal/provider/source_s3_resource_sdk.go | 670 +- internal/provider/source_sendgrid_resource.go | 14 +- .../provider/source_senseforce_resource.go | 7 - .../source_senseforce_resource_sdk.go | 14 - internal/provider/source_sftpbulk_resource.go | 20 - .../provider/source_sftpbulk_resource_sdk.go | 42 - .../provider/source_shortcut_data_source.go | 139 + .../source_shortcut_data_source_sdk.go | 20 + internal/provider/source_shortcut_resource.go | 379 + .../provider/source_shortcut_resource_sdk.go | 80 + .../provider/source_smartsheets_resource.go | 10 - .../source_smartsheets_resource_sdk.go | 14 - .../provider/source_survicate_data_source.go | 139 + .../source_survicate_data_source_sdk.go | 20 + .../provider/source_survicate_resource.go | 372 + .../provider/source_survicate_resource_sdk.go | 66 + .../provider/source_teamwork_data_source.go | 139 + .../source_teamwork_data_source_sdk.go | 20 + internal/provider/source_teamwork_resource.go | 379 + .../provider/source_teamwork_resource_sdk.go | 84 + .../provider/source_wheniwork_data_source.go | 139 + .../source_wheniwork_data_source_sdk.go | 20 + .../provider/source_wheniwork_resource.go | 370 + .../provider/source_wheniwork_resource_sdk.go | 65 + .../source_zendesksupport_resource.go | 7 - .../source_zendesksupport_resource_sdk.go | 26 +- internal/provider/types/basic.go | 9 + internal/provider/types/csv.go | 18 - internal/provider/types/csv_format.go | 1 - .../provider/types/destination_clickhouse.go | 1 + .../provider/types/destination_dev_null.go | 7 - .../destination_dev_null_test_destination.go | 7 - .../types/destination_elasticsearch.go | 1 + ...ion_elasticsearch_authentication_method.go | 1 + .../types/destination_mssql_ssl_method.go | 1 + internal/provider/types/destination_mysql.go | 1 + internal/provider/types/destination_oracle.go | 1 + ...on.go => destination_oracle_encryption.go} | 3 +- .../provider/types/destination_pgvector.go | 12 + ...go => destination_pgvector_credentials.go} | 2 +- ...estination_pgvector_postgres_connection.go | 14 + .../provider/types/destination_postgres.go | 1 + ...tination_snowflake_authorization_method.go | 6 +- ...n_snowflake_cortex_snowflake_connection.go | 14 +- internal/provider/types/enterprise.go | 9 + .../types/file_based_stream_config.go | 2 - internal/provider/types/jsonl.go | 11 - internal/provider/types/parquet.go | 11 - ..._services.go => s3_amazon_web_services.go} | 2 +- internal/provider/types/source7shifts.go | 10 + internal/provider/types/source_appcues.go | 12 + internal/provider/types/source_appfigures.go | 12 + internal/provider/types/source_asana.go | 1 - internal/provider/types/source_bitly.go | 11 + .../{source_calendly.go => source_brevo.go} | 2 +- internal/provider/types/source_buzzsprout.go | 11 + internal/provider/types/source_chameleon.go | 13 + internal/provider/types/source_cimis.go | 16 + internal/provider/types/source_clickhouse.go | 1 + .../types/source_ezofficeinventory.go | 11 + .../types/source_facebook_marketing.go | 29 +- .../types/source_file_storage_provider.go | 15 +- internal/provider/types/source_front.go | 11 + .../source_gcs_file_based_stream_config.go | 2 - internal/provider/types/source_github.go | 2 - internal/provider/types/source_gitlab.go | 2 - .../provider/types/source_google_drive.go | 8 +- .../types/source_google_drive_csv_format.go | 21 - ...e_google_drive_file_based_stream_config.go | 16 - .../types/source_google_drive_format.go | 11 - .../types/source_google_search_console.go | 1 - .../provider/types/source_google_tasks.go | 11 + internal/provider/types/source_guru.go | 13 + internal/provider/types/source_harvest.go | 1 - internal/provider/types/source_height.go | 11 + internal/provider/types/source_instagram.go | 6 +- internal/provider/types/source_jira.go | 4 - internal/provider/types/source_jotform.go | 12 + .../types/source_jotform_api_endpoint.go | 8 + internal/provider/types/source_kyve.go | 2 - .../provider/types/source_linkedin_ads.go | 1 + internal/provider/types/source_mailchimp.go | 1 - ...osoft_onedrive_file_based_stream_config.go | 1 - .../types/source_microsoft_onedrive_format.go | 2 +- ...oft_sharepoint_file_based_stream_config.go | 1 - .../source_microsoft_sharepoint_format.go | 2 +- internal/provider/types/source_mysql.go | 1 + internal/provider/types/source_nylas.go | 12 + internal/provider/types/source_oracle.go | 2 +- internal/provider/types/source_picqer.go | 12 + internal/provider/types/source_piwik.go | 11 + internal/provider/types/source_productive.go | 10 + internal/provider/types/source_s3.go | 5 - .../source_s3_file_based_stream_config.go | 18 +- .../provider/types/source_s3_file_format.go | 10 - internal/provider/types/source_s3_format.go | 11 - .../types/source_s3_s3_amazon_web_services.go | 16 - internal/provider/types/source_senseforce.go | 1 - .../types/source_sftp_bulk_authentication.go | 4 +- internal/provider/types/source_shortcut.go | 11 + internal/provider/types/source_smartsheets.go | 1 - internal/provider/types/source_teamwork.go | 12 + internal/provider/types/source_when_i_work.go | 10 + .../provider/types/source_zendesk_support.go | 7 +- .../types/standalone_mongo_db_instance.go | 1 + internal/sdk/destinations.go | 442 +- ...evnull.go => createdestinationpgvector.go} | 10 +- .../models/operations/createsource7shifts.go | 47 + .../models/operations/createsourceappcues.go | 47 + .../operations/createsourceappfigures.go | 47 + .../models/operations/createsourcebitly.go | 47 + .../models/operations/createsourcebrevo.go | 47 + .../operations/createsourcebuildkite.go | 47 + .../operations/createsourcebuzzsprout.go | 47 + .../models/operations/createsourcecanny.go | 47 + .../operations/createsourcechameleon.go | 47 + .../models/operations/createsourcecimis.go | 47 + .../createsourceezofficeinventory.go | 47 + .../models/operations/createsourcefront.go | 47 + ...desksell.go => createsourcegoogletasks.go} | 10 +- .../sdk/models/operations/createsourceguru.go | 47 + .../models/operations/createsourceheight.go | 47 + .../models/operations/createsourcejotform.go | 47 + .../models/operations/createsourcenylas.go | 47 + .../models/operations/createsourcepicqer.go | 47 + .../models/operations/createsourcepiwik.go | 47 + .../operations/createsourceproductboard.go | 47 + .../operations/createsourceproductive.go | 47 + .../models/operations/createsourceshortcut.go | 47 + .../operations/createsourcesurvicate.go | 47 + .../models/operations/createsourceteamwork.go | 47 + .../operations/createsourcewheniwork.go | 47 + ...evnull.go => deletedestinationpgvector.go} | 12 +- .../models/operations/deletesource7shifts.go | 48 + .../models/operations/deletesourceappcues.go | 48 + .../operations/deletesourceappfigures.go | 48 + .../models/operations/deletesourcebitly.go | 48 + .../models/operations/deletesourcebrevo.go | 48 + .../operations/deletesourcebuildkite.go | 48 + .../operations/deletesourcebuzzsprout.go | 48 + .../models/operations/deletesourcecanny.go | 48 + .../operations/deletesourcechameleon.go | 48 + .../models/operations/deletesourcecimis.go | 48 + .../deletesourceezofficeinventory.go | 48 + .../models/operations/deletesourcefront.go | 48 + ...desksell.go => deletesourcegoogletasks.go} | 12 +- .../sdk/models/operations/deletesourceguru.go | 48 + .../models/operations/deletesourceheight.go | 48 + .../models/operations/deletesourcejotform.go | 48 + .../models/operations/deletesourcenylas.go | 48 + .../models/operations/deletesourcepicqer.go | 48 + .../models/operations/deletesourcepiwik.go | 48 + .../operations/deletesourceproductboard.go | 48 + .../operations/deletesourceproductive.go | 48 + .../models/operations/deletesourceshortcut.go | 48 + .../operations/deletesourcesurvicate.go | 48 + .../models/operations/deletesourceteamwork.go | 48 + .../operations/deletesourcewheniwork.go | 48 + ...ondevnull.go => getdestinationpgvector.go} | 14 +- .../sdk/models/operations/getsource7shifts.go | 58 + .../sdk/models/operations/getsourceappcues.go | 58 + .../models/operations/getsourceappfigures.go | 58 + .../sdk/models/operations/getsourcebitly.go | 58 + .../sdk/models/operations/getsourcebrevo.go | 58 + .../models/operations/getsourcebuildkite.go | 58 + .../models/operations/getsourcebuzzsprout.go | 58 + .../sdk/models/operations/getsourcecanny.go | 58 + .../models/operations/getsourcechameleon.go | 58 + .../sdk/models/operations/getsourcecimis.go | 58 + .../operations/getsourceezofficeinventory.go | 58 + .../sdk/models/operations/getsourcefront.go | 58 + ...zendesksell.go => getsourcegoogletasks.go} | 14 +- .../sdk/models/operations/getsourceguru.go | 58 + .../sdk/models/operations/getsourceheight.go | 58 + .../sdk/models/operations/getsourcejotform.go | 58 + .../sdk/models/operations/getsourcenylas.go | 58 + .../sdk/models/operations/getsourcepicqer.go | 58 + .../sdk/models/operations/getsourcepiwik.go | 58 + .../operations/getsourceproductboard.go | 58 + .../models/operations/getsourceproductive.go | 58 + .../models/operations/getsourceshortcut.go | 58 + .../models/operations/getsourcesurvicate.go | 58 + .../models/operations/getsourceteamwork.go | 58 + .../models/operations/getsourcewheniwork.go | 58 + .../operations/putdestinationdevnull.go | 57 - .../operations/putdestinationpgvector.go | 57 + .../sdk/models/operations/putsource7shifts.go | 57 + .../sdk/models/operations/putsourceappcues.go | 57 + .../models/operations/putsourceappfigures.go | 57 + .../sdk/models/operations/putsourcebitly.go | 57 + .../sdk/models/operations/putsourcebrevo.go | 57 + .../models/operations/putsourcebuildkite.go | 57 + .../models/operations/putsourcebuzzsprout.go | 57 + .../sdk/models/operations/putsourcecanny.go | 57 + .../models/operations/putsourcechameleon.go | 57 + .../sdk/models/operations/putsourcecimis.go | 57 + .../operations/putsourceezofficeinventory.go | 57 + .../sdk/models/operations/putsourcefront.go | 57 + ...zendesksell.go => putsourcegoogletasks.go} | 18 +- .../sdk/models/operations/putsourceguru.go | 57 + .../sdk/models/operations/putsourceheight.go | 57 + .../sdk/models/operations/putsourcejotform.go | 57 + .../sdk/models/operations/putsourcenylas.go | 57 + .../sdk/models/operations/putsourcepicqer.go | 57 + .../sdk/models/operations/putsourcepiwik.go | 57 + .../operations/putsourceproductboard.go | 57 + .../models/operations/putsourceproductive.go | 57 + .../models/operations/putsourceshortcut.go | 57 + .../models/operations/putsourcesurvicate.go | 57 + .../models/operations/putsourceteamwork.go | 57 + .../models/operations/putsourcewheniwork.go | 57 + .../models/shared/destinationclickhouse.go | 9 + .../shared/destinationclickhouseupdate.go | 9 + .../sdk/models/shared/destinationdevnull.go | 145 - .../shared/destinationdevnullcreaterequest.go | 40 - .../models/shared/destinationdevnullupdate.go | 106 - .../models/shared/destinationelasticsearch.go | 402 +- .../shared/destinationelasticsearchupdate.go | 402 +- .../sdk/models/shared/destinationmongodb.go | 23 +- .../models/shared/destinationmongodbupdate.go | 65 +- .../sdk/models/shared/destinationmssql.go | 103 +- .../models/shared/destinationmssqlupdate.go | 103 +- .../sdk/models/shared/destinationmysql.go | 9 + .../models/shared/destinationmysqlupdate.go | 9 + .../sdk/models/shared/destinationoracle.go | 272 + .../models/shared/destinationoracleupdate.go | 272 + .../sdk/models/shared/destinationpgvector.go | 998 + .../destinationpgvectorcreaterequest.go | 50 + .../shared/destinationpgvectorputrequest.go | 40 + .../shared/destinationpgvectorupdate.go | 970 + .../sdk/models/shared/destinationpostgres.go | 9 + .../shared/destinationpostgresupdate.go | 9 + internal/sdk/models/shared/source7shifts.go | 69 + .../shared/source7shiftscreaterequest.go | 49 + .../models/shared/source7shiftsputrequest.go | 30 + .../sdk/models/shared/source7shiftsupdate.go | 39 + .../shared/sourceamazonsellerpartner.go | 24 + .../shared/sourceamazonsellerpartnerupdate.go | 24 + internal/sdk/models/shared/sourceappcues.go | 85 + .../shared/sourceappcuescreaterequest.go | 49 + .../models/shared/sourceappcuesputrequest.go | 30 + .../sdk/models/shared/sourceappcuesupdate.go | 55 + .../sdk/models/shared/sourceappfigures.go | 119 + .../shared/sourceappfigurescreaterequest.go | 49 + .../shared/sourceappfiguresputrequest.go | 30 + .../models/shared/sourceappfiguresupdate.go | 91 + internal/sdk/models/shared/sourceasana.go | 9 - .../sdk/models/shared/sourceasanaupdate.go | 9 - .../models/shared/sourceazureblobstorage.go | 54 - .../shared/sourceazureblobstorageupdate.go | 74 +- internal/sdk/models/shared/sourcebitly.go | 76 + .../models/shared/sourcebitlycreaterequest.go | 49 + .../models/shared/sourcebitlyputrequest.go | 30 + .../sdk/models/shared/sourcebitlyupdate.go | 46 + internal/sdk/models/shared/sourcebrevo.go | 68 + .../models/shared/sourcebrevocreaterequest.go | 49 + .../models/shared/sourcebrevoputrequest.go | 30 + .../sdk/models/shared/sourcebrevoupdate.go | 38 + internal/sdk/models/shared/sourcebuildkite.go | 68 + .../shared/sourcebuildkitecreaterequest.go | 49 + .../shared/sourcebuildkiteputrequest.go | 30 + .../models/shared/sourcebuildkiteupdate.go | 38 + .../sdk/models/shared/sourcebuzzsprout.go | 77 + .../shared/sourcebuzzsproutcreaterequest.go | 49 + .../shared/sourcebuzzsproutputrequest.go | 30 + .../models/shared/sourcebuzzsproutupdate.go | 47 + internal/sdk/models/shared/sourcecanny.go | 60 + .../models/shared/sourcecannycreaterequest.go | 49 + .../models/shared/sourcecannyputrequest.go | 30 + .../sdk/models/shared/sourcecannyupdate.go | 15 + internal/sdk/models/shared/sourcechameleon.go | 124 + .../shared/sourcechameleoncreaterequest.go | 49 + .../shared/sourcechameleonputrequest.go | 30 + .../models/shared/sourcechameleonupdate.go | 96 + internal/sdk/models/shared/sourcecimis.go | 174 + .../models/shared/sourcecimiscreaterequest.go | 49 + .../models/shared/sourcecimisputrequest.go | 30 + .../sdk/models/shared/sourcecimisupdate.go | 146 + .../sdk/models/shared/sourceclickhouse.go | 9 + .../models/shared/sourceclickhouseupdate.go | 9 + .../models/shared/sourceezofficeinventory.go | 79 + .../sourceezofficeinventorycreaterequest.go | 49 + .../sourceezofficeinventoryputrequest.go | 30 + .../shared/sourceezofficeinventoryupdate.go | 49 + .../models/shared/sourcefacebookmarketing.go | 27 - .../shared/sourcefacebookmarketingupdate.go | 27 - internal/sdk/models/shared/sourcefile.go | 66 + .../sdk/models/shared/sourcefileupdate.go | 126 +- internal/sdk/models/shared/sourcefront.go | 77 + .../models/shared/sourcefrontcreaterequest.go | 49 + .../models/shared/sourcefrontputrequest.go | 30 + .../sdk/models/shared/sourcefrontupdate.go | 47 + internal/sdk/models/shared/sourcegcs.go | 54 - internal/sdk/models/shared/sourcegcsupdate.go | 54 - internal/sdk/models/shared/sourcegithub.go | 20 +- .../sdk/models/shared/sourcegithubupdate.go | 18 - internal/sdk/models/shared/sourcegitlab.go | 18 - .../sdk/models/shared/sourcegitlabupdate.go | 18 - .../sourcegoogleanalyticsdataapiupdate.go | 456 +- .../sdk/models/shared/sourcegoogledrive.go | 9 - .../models/shared/sourcegoogledriveupdate.go | 9 - .../shared/sourcegooglesearchconsole.go | 9 - .../shared/sourcegooglesearchconsoleupdate.go | 9 - .../sdk/models/shared/sourcegoogletasks.go | 77 + ...t.go => sourcegoogletaskscreaterequest.go} | 16 +- ...uest.go => sourcegoogletasksputrequest.go} | 12 +- .../models/shared/sourcegoogletasksupdate.go | 47 + internal/sdk/models/shared/sourceguru.go | 94 + .../models/shared/sourcegurucreaterequest.go | 49 + .../sdk/models/shared/sourceguruputrequest.go | 30 + .../sdk/models/shared/sourceguruupdate.go | 64 + internal/sdk/models/shared/sourceharvest.go | 9 - .../sdk/models/shared/sourceharvestupdate.go | 9 - internal/sdk/models/shared/sourceheight.go | 77 + .../shared/sourceheightcreaterequest.go | 49 + .../models/shared/sourceheightputrequest.go | 30 + .../sdk/models/shared/sourceheightupdate.go | 47 + internal/sdk/models/shared/sourceinstagram.go | 22 +- .../models/shared/sourceinstagramupdate.go | 18 - internal/sdk/models/shared/sourcejira.go | 69 +- .../sdk/models/shared/sourcejiraupdate.go | 67 - internal/sdk/models/shared/sourcejotform.go | 280 + .../shared/sourcejotformcreaterequest.go | 49 + .../models/shared/sourcejotformputrequest.go | 30 + .../sdk/models/shared/sourcejotformupdate.go | 252 + internal/sdk/models/shared/sourcekyve.go | 18 - .../sdk/models/shared/sourcekyveupdate.go | 18 - .../sdk/models/shared/sourcelinkedinads.go | 11 +- .../models/shared/sourcelinkedinadsupdate.go | 9 + internal/sdk/models/shared/sourcemailchimp.go | 11 +- .../models/shared/sourcemailchimpupdate.go | 9 - .../models/shared/sourcemicrosoftonedrive.go | 9 - .../shared/sourcemicrosoftonedriveupdate.go | 9 - .../shared/sourcemicrosoftsharepoint.go | 9 - .../shared/sourcemicrosoftsharepointupdate.go | 9 - .../sdk/models/shared/sourcemssqlupdate.go | 38 +- internal/sdk/models/shared/sourcemysql.go | 9 + .../sdk/models/shared/sourcemysqlupdate.go | 9 + internal/sdk/models/shared/sourcenylas.go | 110 + .../models/shared/sourcenylascreaterequest.go | 49 + .../models/shared/sourcenylasputrequest.go | 30 + .../sdk/models/shared/sourcenylasupdate.go | 82 + internal/sdk/models/shared/sourceoracle.go | 109 +- .../sdk/models/shared/sourceoracleupdate.go | 221 +- internal/sdk/models/shared/sourcepicqer.go | 85 + .../shared/sourcepicqercreaterequest.go | 49 + .../models/shared/sourcepicqerputrequest.go | 30 + .../sdk/models/shared/sourcepicqerupdate.go | 55 + internal/sdk/models/shared/sourcepiwik.go | 76 + .../models/shared/sourcepiwikcreaterequest.go | 49 + .../models/shared/sourcepiwikputrequest.go | 30 + .../sdk/models/shared/sourcepiwikupdate.go | 31 + .../sdk/models/shared/sourceproductboard.go | 69 + .../shared/sourceproductboardcreaterequest.go | 49 + ...est.go => sourceproductboardputrequest.go} | 12 +- .../models/shared/sourceproductboardupdate.go | 39 + .../sdk/models/shared/sourceproductive.go | 68 + .../shared/sourceproductivecreaterequest.go | 49 + .../shared/sourceproductiveputrequest.go | 30 + .../models/shared/sourceproductiveupdate.go | 23 + internal/sdk/models/shared/sources3.go | 740 +- internal/sdk/models/shared/sources3update.go | 738 +- .../sdk/models/shared/sourcesenseforce.go | 11 +- .../models/shared/sourcesenseforceupdate.go | 9 - internal/sdk/models/shared/sourcesftpbulk.go | 54 - .../sdk/models/shared/sourcesftpbulkupdate.go | 54 - internal/sdk/models/shared/sourceshortcut.go | 77 + .../shared/sourceshortcutcreaterequest.go | 49 + .../models/shared/sourceshortcutputrequest.go | 30 + .../sdk/models/shared/sourceshortcutupdate.go | 47 + .../sdk/models/shared/sourcesmartsheets.go | 9 - .../models/shared/sourcesmartsheetsupdate.go | 20 - internal/sdk/models/shared/sourcesurvicate.go | 68 + .../shared/sourcesurvicatecreaterequest.go | 49 + .../shared/sourcesurvicateputrequest.go | 30 + .../models/shared/sourcesurvicateupdate.go | 38 + internal/sdk/models/shared/sourceteamwork.go | 85 + .../shared/sourceteamworkcreaterequest.go | 49 + .../models/shared/sourceteamworkputrequest.go | 30 + .../sdk/models/shared/sourceteamworkupdate.go | 55 + internal/sdk/models/shared/sourcewheniwork.go | 69 + .../shared/sourcewheniworkcreaterequest.go | 49 + .../shared/sourcewheniworkputrequest.go | 30 + .../models/shared/sourcewheniworkupdate.go | 24 + .../sdk/models/shared/sourcezendesksell.go | 60 - .../models/shared/sourcezendesksellupdate.go | 15 - .../sdk/models/shared/sourcezendesksupport.go | 11 +- .../shared/sourcezendesksupportupdate.go | 9 - internal/sdk/sources.go | 19106 ++++++++++++---- 1178 files changed, 54601 insertions(+), 12455 deletions(-) rename docs/data-sources/{destination_dev_null.md => destination_pgvector.md} (67%) create mode 100644 docs/data-sources/source_7shifts.md create mode 100644 docs/data-sources/source_appcues.md create mode 100644 docs/data-sources/source_appfigures.md create mode 100644 docs/data-sources/source_bitly.md create mode 100644 docs/data-sources/source_brevo.md create mode 100644 docs/data-sources/source_buildkite.md create mode 100644 docs/data-sources/source_buzzsprout.md create mode 100644 docs/data-sources/source_canny.md create mode 100644 docs/data-sources/source_chameleon.md create mode 100644 docs/data-sources/source_cimis.md create mode 100644 docs/data-sources/source_ezofficeinventory.md create mode 100644 docs/data-sources/source_front.md rename docs/data-sources/{source_zendesk_sell.md => source_google_tasks.md} (67%) create mode 100644 docs/data-sources/source_guru.md create mode 100644 docs/data-sources/source_height.md create mode 100644 docs/data-sources/source_jotform.md create mode 100644 docs/data-sources/source_nylas.md create mode 100644 docs/data-sources/source_picqer.md create mode 100644 docs/data-sources/source_piwik.md create mode 100644 docs/data-sources/source_productboard.md create mode 100644 docs/data-sources/source_productive.md create mode 100644 docs/data-sources/source_shortcut.md create mode 100644 docs/data-sources/source_survicate.md create mode 100644 docs/data-sources/source_teamwork.md create mode 100644 docs/data-sources/source_when_i_work.md delete mode 100644 docs/resources/destination_dev_null.md create mode 100644 docs/resources/destination_pgvector.md create mode 100644 docs/resources/source_7shifts.md create mode 100644 docs/resources/source_appcues.md create mode 100644 docs/resources/source_appfigures.md rename docs/resources/{source_zendesk_sell.md => source_bitly.md} (60%) create mode 100644 docs/resources/source_brevo.md create mode 100644 docs/resources/source_buildkite.md create mode 100644 docs/resources/source_buzzsprout.md create mode 100644 docs/resources/source_canny.md create mode 100644 docs/resources/source_chameleon.md create mode 100644 docs/resources/source_cimis.md create mode 100644 docs/resources/source_ezofficeinventory.md create mode 100644 docs/resources/source_front.md create mode 100644 docs/resources/source_google_tasks.md create mode 100644 docs/resources/source_guru.md create mode 100644 docs/resources/source_height.md create mode 100644 docs/resources/source_jotform.md create mode 100644 docs/resources/source_nylas.md create mode 100644 docs/resources/source_picqer.md create mode 100644 docs/resources/source_piwik.md create mode 100644 docs/resources/source_productboard.md create mode 100644 docs/resources/source_productive.md create mode 100644 docs/resources/source_shortcut.md create mode 100644 docs/resources/source_survicate.md create mode 100644 docs/resources/source_teamwork.md create mode 100644 docs/resources/source_when_i_work.md delete mode 100644 examples/data-sources/airbyte_destination_dev_null/data-source.tf create mode 100644 examples/data-sources/airbyte_destination_pgvector/data-source.tf create mode 100644 examples/data-sources/airbyte_source_7shifts/data-source.tf create mode 100644 examples/data-sources/airbyte_source_appcues/data-source.tf create mode 100644 examples/data-sources/airbyte_source_appfigures/data-source.tf create mode 100644 examples/data-sources/airbyte_source_bitly/data-source.tf create mode 100644 examples/data-sources/airbyte_source_brevo/data-source.tf create mode 100644 examples/data-sources/airbyte_source_buildkite/data-source.tf create mode 100644 examples/data-sources/airbyte_source_buzzsprout/data-source.tf create mode 100644 examples/data-sources/airbyte_source_canny/data-source.tf create mode 100644 examples/data-sources/airbyte_source_chameleon/data-source.tf create mode 100644 examples/data-sources/airbyte_source_cimis/data-source.tf create mode 100644 examples/data-sources/airbyte_source_ezofficeinventory/data-source.tf create mode 100644 examples/data-sources/airbyte_source_front/data-source.tf create mode 100644 examples/data-sources/airbyte_source_google_tasks/data-source.tf create mode 100644 examples/data-sources/airbyte_source_guru/data-source.tf create mode 100644 examples/data-sources/airbyte_source_height/data-source.tf create mode 100644 examples/data-sources/airbyte_source_jotform/data-source.tf create mode 100644 examples/data-sources/airbyte_source_nylas/data-source.tf create mode 100644 examples/data-sources/airbyte_source_picqer/data-source.tf create mode 100644 examples/data-sources/airbyte_source_piwik/data-source.tf create mode 100644 examples/data-sources/airbyte_source_productboard/data-source.tf create mode 100644 examples/data-sources/airbyte_source_productive/data-source.tf create mode 100644 examples/data-sources/airbyte_source_shortcut/data-source.tf create mode 100644 examples/data-sources/airbyte_source_survicate/data-source.tf create mode 100644 examples/data-sources/airbyte_source_teamwork/data-source.tf create mode 100644 examples/data-sources/airbyte_source_when_i_work/data-source.tf delete mode 100644 examples/data-sources/airbyte_source_zendesk_sell/data-source.tf delete mode 100644 examples/resources/airbyte_destination_dev_null/import.sh delete mode 100644 examples/resources/airbyte_destination_dev_null/resource.tf create mode 100644 examples/resources/airbyte_destination_pgvector/import.sh create mode 100644 examples/resources/airbyte_destination_pgvector/resource.tf create mode 100644 examples/resources/airbyte_source_7shifts/import.sh create mode 100644 examples/resources/airbyte_source_7shifts/resource.tf create mode 100644 examples/resources/airbyte_source_appcues/import.sh create mode 100644 examples/resources/airbyte_source_appcues/resource.tf create mode 100644 examples/resources/airbyte_source_appfigures/import.sh create mode 100644 examples/resources/airbyte_source_appfigures/resource.tf create mode 100644 examples/resources/airbyte_source_bitly/import.sh create mode 100644 examples/resources/airbyte_source_bitly/resource.tf create mode 100644 examples/resources/airbyte_source_brevo/import.sh create mode 100644 examples/resources/airbyte_source_brevo/resource.tf create mode 100644 examples/resources/airbyte_source_buildkite/import.sh create mode 100644 examples/resources/airbyte_source_buildkite/resource.tf create mode 100644 examples/resources/airbyte_source_buzzsprout/import.sh create mode 100644 examples/resources/airbyte_source_buzzsprout/resource.tf create mode 100644 examples/resources/airbyte_source_canny/import.sh create mode 100644 examples/resources/airbyte_source_canny/resource.tf create mode 100644 examples/resources/airbyte_source_chameleon/import.sh create mode 100644 examples/resources/airbyte_source_chameleon/resource.tf create mode 100644 examples/resources/airbyte_source_cimis/import.sh create mode 100644 examples/resources/airbyte_source_cimis/resource.tf create mode 100644 examples/resources/airbyte_source_ezofficeinventory/import.sh create mode 100644 examples/resources/airbyte_source_ezofficeinventory/resource.tf create mode 100644 examples/resources/airbyte_source_front/import.sh create mode 100644 examples/resources/airbyte_source_front/resource.tf create mode 100644 examples/resources/airbyte_source_google_tasks/import.sh create mode 100644 examples/resources/airbyte_source_google_tasks/resource.tf create mode 100644 examples/resources/airbyte_source_guru/import.sh create mode 100644 examples/resources/airbyte_source_guru/resource.tf create mode 100644 examples/resources/airbyte_source_height/import.sh create mode 100644 examples/resources/airbyte_source_height/resource.tf create mode 100644 examples/resources/airbyte_source_jotform/import.sh create mode 100644 examples/resources/airbyte_source_jotform/resource.tf create mode 100644 examples/resources/airbyte_source_nylas/import.sh create mode 100644 examples/resources/airbyte_source_nylas/resource.tf create mode 100644 examples/resources/airbyte_source_picqer/import.sh create mode 100644 examples/resources/airbyte_source_picqer/resource.tf create mode 100644 examples/resources/airbyte_source_piwik/import.sh create mode 100644 examples/resources/airbyte_source_piwik/resource.tf create mode 100644 examples/resources/airbyte_source_productboard/import.sh create mode 100644 examples/resources/airbyte_source_productboard/resource.tf create mode 100644 examples/resources/airbyte_source_productive/import.sh create mode 100644 examples/resources/airbyte_source_productive/resource.tf create mode 100644 examples/resources/airbyte_source_shortcut/import.sh create mode 100644 examples/resources/airbyte_source_shortcut/resource.tf create mode 100644 examples/resources/airbyte_source_survicate/import.sh create mode 100644 examples/resources/airbyte_source_survicate/resource.tf create mode 100644 examples/resources/airbyte_source_teamwork/import.sh create mode 100644 examples/resources/airbyte_source_teamwork/resource.tf create mode 100644 examples/resources/airbyte_source_when_i_work/import.sh create mode 100644 examples/resources/airbyte_source_when_i_work/resource.tf delete mode 100644 examples/resources/airbyte_source_zendesk_sell/import.sh delete mode 100644 examples/resources/airbyte_source_zendesk_sell/resource.tf delete mode 100644 internal/provider/destination_devnull_resource_sdk.go rename internal/provider/{destination_devnull_data_source.go => destination_pgvector_data_source.go} (71%) rename internal/provider/{destination_devnull_data_source_sdk.go => destination_pgvector_data_source_sdk.go} (84%) create mode 100644 internal/provider/destination_pgvector_resource.go create mode 100644 internal/provider/destination_pgvector_resource_sdk.go create mode 100644 internal/provider/source_7shifts_data_source.go create mode 100644 internal/provider/source_7shifts_data_source_sdk.go rename internal/provider/{source_zendesksell_resource.go => source_7shifts_resource.go} (77%) create mode 100644 internal/provider/source_7shifts_resource_sdk.go create mode 100644 internal/provider/source_appcues_data_source.go create mode 100644 internal/provider/source_appcues_data_source_sdk.go create mode 100644 internal/provider/source_appcues_resource.go create mode 100644 internal/provider/source_appcues_resource_sdk.go create mode 100644 internal/provider/source_appfigures_data_source.go create mode 100644 internal/provider/source_appfigures_data_source_sdk.go create mode 100644 internal/provider/source_appfigures_resource.go create mode 100644 internal/provider/source_appfigures_resource_sdk.go create mode 100644 internal/provider/source_bitly_data_source.go create mode 100644 internal/provider/source_bitly_data_source_sdk.go create mode 100644 internal/provider/source_bitly_resource.go create mode 100644 internal/provider/source_bitly_resource_sdk.go create mode 100644 internal/provider/source_brevo_data_source.go create mode 100644 internal/provider/source_brevo_data_source_sdk.go create mode 100644 internal/provider/source_brevo_resource.go create mode 100644 internal/provider/source_brevo_resource_sdk.go create mode 100644 internal/provider/source_buildkite_data_source.go create mode 100644 internal/provider/source_buildkite_data_source_sdk.go create mode 100644 internal/provider/source_buildkite_resource.go create mode 100644 internal/provider/source_buildkite_resource_sdk.go create mode 100644 internal/provider/source_buzzsprout_data_source.go create mode 100644 internal/provider/source_buzzsprout_data_source_sdk.go create mode 100644 internal/provider/source_buzzsprout_resource.go create mode 100644 internal/provider/source_buzzsprout_resource_sdk.go create mode 100644 internal/provider/source_canny_data_source.go create mode 100644 internal/provider/source_canny_data_source_sdk.go create mode 100644 internal/provider/source_canny_resource.go rename internal/provider/{source_zendesksell_resource_sdk.go => source_canny_resource_sdk.go} (63%) create mode 100644 internal/provider/source_chameleon_data_source.go create mode 100644 internal/provider/source_chameleon_data_source_sdk.go create mode 100644 internal/provider/source_chameleon_resource.go create mode 100644 internal/provider/source_chameleon_resource_sdk.go create mode 100644 internal/provider/source_cimis_data_source.go create mode 100644 internal/provider/source_cimis_data_source_sdk.go create mode 100644 internal/provider/source_cimis_resource.go create mode 100644 internal/provider/source_cimis_resource_sdk.go create mode 100644 internal/provider/source_ezofficeinventory_data_source.go create mode 100644 internal/provider/source_ezofficeinventory_data_source_sdk.go create mode 100644 internal/provider/source_ezofficeinventory_resource.go create mode 100644 internal/provider/source_ezofficeinventory_resource_sdk.go create mode 100644 internal/provider/source_front_data_source.go create mode 100644 internal/provider/source_front_data_source_sdk.go create mode 100644 internal/provider/source_front_resource.go create mode 100644 internal/provider/source_front_resource_sdk.go rename internal/provider/{source_zendesksell_data_source.go => source_googletasks_data_source.go} (78%) rename internal/provider/{source_zendesksell_data_source_sdk.go => source_googletasks_data_source_sdk.go} (90%) create mode 100644 internal/provider/source_googletasks_resource.go create mode 100644 internal/provider/source_googletasks_resource_sdk.go create mode 100644 internal/provider/source_guru_data_source.go create mode 100644 internal/provider/source_guru_data_source_sdk.go create mode 100644 internal/provider/source_guru_resource.go create mode 100644 internal/provider/source_guru_resource_sdk.go create mode 100644 internal/provider/source_height_data_source.go create mode 100644 internal/provider/source_height_data_source_sdk.go create mode 100644 internal/provider/source_height_resource.go create mode 100644 internal/provider/source_height_resource_sdk.go create mode 100644 internal/provider/source_jotform_data_source.go create mode 100644 internal/provider/source_jotform_data_source_sdk.go create mode 100644 internal/provider/source_jotform_resource.go create mode 100644 internal/provider/source_jotform_resource_sdk.go create mode 100644 internal/provider/source_nylas_data_source.go create mode 100644 internal/provider/source_nylas_data_source_sdk.go create mode 100644 internal/provider/source_nylas_resource.go create mode 100644 internal/provider/source_nylas_resource_sdk.go create mode 100644 internal/provider/source_picqer_data_source.go create mode 100644 internal/provider/source_picqer_data_source_sdk.go create mode 100644 internal/provider/source_picqer_resource.go create mode 100644 internal/provider/source_picqer_resource_sdk.go create mode 100644 internal/provider/source_piwik_data_source.go create mode 100644 internal/provider/source_piwik_data_source_sdk.go create mode 100644 internal/provider/source_piwik_resource.go create mode 100644 internal/provider/source_piwik_resource_sdk.go create mode 100644 internal/provider/source_productboard_data_source.go create mode 100644 internal/provider/source_productboard_data_source_sdk.go rename internal/provider/{destination_devnull_resource.go => source_productboard_resource.go} (69%) create mode 100644 internal/provider/source_productboard_resource_sdk.go create mode 100644 internal/provider/source_productive_data_source.go create mode 100644 internal/provider/source_productive_data_source_sdk.go create mode 100644 internal/provider/source_productive_resource.go create mode 100644 internal/provider/source_productive_resource_sdk.go create mode 100644 internal/provider/source_shortcut_data_source.go create mode 100644 internal/provider/source_shortcut_data_source_sdk.go create mode 100644 internal/provider/source_shortcut_resource.go create mode 100644 internal/provider/source_shortcut_resource_sdk.go create mode 100644 internal/provider/source_survicate_data_source.go create mode 100644 internal/provider/source_survicate_data_source_sdk.go create mode 100644 internal/provider/source_survicate_resource.go create mode 100644 internal/provider/source_survicate_resource_sdk.go create mode 100644 internal/provider/source_teamwork_data_source.go create mode 100644 internal/provider/source_teamwork_data_source_sdk.go create mode 100644 internal/provider/source_teamwork_resource.go create mode 100644 internal/provider/source_teamwork_resource_sdk.go create mode 100644 internal/provider/source_wheniwork_data_source.go create mode 100644 internal/provider/source_wheniwork_data_source_sdk.go create mode 100644 internal/provider/source_wheniwork_resource.go create mode 100644 internal/provider/source_wheniwork_resource_sdk.go create mode 100644 internal/provider/types/basic.go delete mode 100644 internal/provider/types/csv.go delete mode 100644 internal/provider/types/destination_dev_null.go delete mode 100644 internal/provider/types/destination_dev_null_test_destination.go rename internal/provider/types/{source_oracle_encryption.go => destination_oracle_encryption.go} (69%) create mode 100644 internal/provider/types/destination_pgvector.go rename internal/provider/types/{username_and_password.go => destination_pgvector_credentials.go} (81%) create mode 100644 internal/provider/types/destination_pgvector_postgres_connection.go create mode 100644 internal/provider/types/enterprise.go delete mode 100644 internal/provider/types/jsonl.go delete mode 100644 internal/provider/types/parquet.go rename internal/provider/types/{source_file_s3_amazon_web_services.go => s3_amazon_web_services.go} (86%) create mode 100644 internal/provider/types/source7shifts.go create mode 100644 internal/provider/types/source_appcues.go create mode 100644 internal/provider/types/source_appfigures.go create mode 100644 internal/provider/types/source_bitly.go rename internal/provider/types/{source_calendly.go => source_brevo.go} (89%) create mode 100644 internal/provider/types/source_buzzsprout.go create mode 100644 internal/provider/types/source_chameleon.go create mode 100644 internal/provider/types/source_cimis.go create mode 100644 internal/provider/types/source_ezofficeinventory.go create mode 100644 internal/provider/types/source_front.go delete mode 100644 internal/provider/types/source_google_drive_csv_format.go delete mode 100644 internal/provider/types/source_google_drive_file_based_stream_config.go delete mode 100644 internal/provider/types/source_google_drive_format.go create mode 100644 internal/provider/types/source_google_tasks.go create mode 100644 internal/provider/types/source_guru.go create mode 100644 internal/provider/types/source_height.go create mode 100644 internal/provider/types/source_jotform.go create mode 100644 internal/provider/types/source_jotform_api_endpoint.go create mode 100644 internal/provider/types/source_nylas.go create mode 100644 internal/provider/types/source_picqer.go create mode 100644 internal/provider/types/source_piwik.go create mode 100644 internal/provider/types/source_productive.go delete mode 100644 internal/provider/types/source_s3_file_format.go delete mode 100644 internal/provider/types/source_s3_format.go delete mode 100644 internal/provider/types/source_s3_s3_amazon_web_services.go create mode 100644 internal/provider/types/source_shortcut.go create mode 100644 internal/provider/types/source_teamwork.go create mode 100644 internal/provider/types/source_when_i_work.go rename internal/sdk/models/operations/{createdestinationdevnull.go => createdestinationpgvector.go} (66%) create mode 100644 internal/sdk/models/operations/createsource7shifts.go create mode 100644 internal/sdk/models/operations/createsourceappcues.go create mode 100644 internal/sdk/models/operations/createsourceappfigures.go create mode 100644 internal/sdk/models/operations/createsourcebitly.go create mode 100644 internal/sdk/models/operations/createsourcebrevo.go create mode 100644 internal/sdk/models/operations/createsourcebuildkite.go create mode 100644 internal/sdk/models/operations/createsourcebuzzsprout.go create mode 100644 internal/sdk/models/operations/createsourcecanny.go create mode 100644 internal/sdk/models/operations/createsourcechameleon.go create mode 100644 internal/sdk/models/operations/createsourcecimis.go create mode 100644 internal/sdk/models/operations/createsourceezofficeinventory.go create mode 100644 internal/sdk/models/operations/createsourcefront.go rename internal/sdk/models/operations/{createsourcezendesksell.go => createsourcegoogletasks.go} (71%) create mode 100644 internal/sdk/models/operations/createsourceguru.go create mode 100644 internal/sdk/models/operations/createsourceheight.go create mode 100644 internal/sdk/models/operations/createsourcejotform.go create mode 100644 internal/sdk/models/operations/createsourcenylas.go create mode 100644 internal/sdk/models/operations/createsourcepicqer.go create mode 100644 internal/sdk/models/operations/createsourcepiwik.go create mode 100644 internal/sdk/models/operations/createsourceproductboard.go create mode 100644 internal/sdk/models/operations/createsourceproductive.go create mode 100644 internal/sdk/models/operations/createsourceshortcut.go create mode 100644 internal/sdk/models/operations/createsourcesurvicate.go create mode 100644 internal/sdk/models/operations/createsourceteamwork.go create mode 100644 internal/sdk/models/operations/createsourcewheniwork.go rename internal/sdk/models/operations/{deletedestinationdevnull.go => deletedestinationpgvector.go} (63%) create mode 100644 internal/sdk/models/operations/deletesource7shifts.go create mode 100644 internal/sdk/models/operations/deletesourceappcues.go create mode 100644 internal/sdk/models/operations/deletesourceappfigures.go create mode 100644 internal/sdk/models/operations/deletesourcebitly.go create mode 100644 internal/sdk/models/operations/deletesourcebrevo.go create mode 100644 internal/sdk/models/operations/deletesourcebuildkite.go create mode 100644 internal/sdk/models/operations/deletesourcebuzzsprout.go create mode 100644 internal/sdk/models/operations/deletesourcecanny.go create mode 100644 internal/sdk/models/operations/deletesourcechameleon.go create mode 100644 internal/sdk/models/operations/deletesourcecimis.go create mode 100644 internal/sdk/models/operations/deletesourceezofficeinventory.go create mode 100644 internal/sdk/models/operations/deletesourcefront.go rename internal/sdk/models/operations/{deletesourcezendesksell.go => deletesourcegoogletasks.go} (65%) create mode 100644 internal/sdk/models/operations/deletesourceguru.go create mode 100644 internal/sdk/models/operations/deletesourceheight.go create mode 100644 internal/sdk/models/operations/deletesourcejotform.go create mode 100644 internal/sdk/models/operations/deletesourcenylas.go create mode 100644 internal/sdk/models/operations/deletesourcepicqer.go create mode 100644 internal/sdk/models/operations/deletesourcepiwik.go create mode 100644 internal/sdk/models/operations/deletesourceproductboard.go create mode 100644 internal/sdk/models/operations/deletesourceproductive.go create mode 100644 internal/sdk/models/operations/deletesourceshortcut.go create mode 100644 internal/sdk/models/operations/deletesourcesurvicate.go create mode 100644 internal/sdk/models/operations/deletesourceteamwork.go create mode 100644 internal/sdk/models/operations/deletesourcewheniwork.go rename internal/sdk/models/operations/{getdestinationdevnull.go => getdestinationpgvector.go} (66%) create mode 100644 internal/sdk/models/operations/getsource7shifts.go create mode 100644 internal/sdk/models/operations/getsourceappcues.go create mode 100644 internal/sdk/models/operations/getsourceappfigures.go create mode 100644 internal/sdk/models/operations/getsourcebitly.go create mode 100644 internal/sdk/models/operations/getsourcebrevo.go create mode 100644 internal/sdk/models/operations/getsourcebuildkite.go create mode 100644 internal/sdk/models/operations/getsourcebuzzsprout.go create mode 100644 internal/sdk/models/operations/getsourcecanny.go create mode 100644 internal/sdk/models/operations/getsourcechameleon.go create mode 100644 internal/sdk/models/operations/getsourcecimis.go create mode 100644 internal/sdk/models/operations/getsourceezofficeinventory.go create mode 100644 internal/sdk/models/operations/getsourcefront.go rename internal/sdk/models/operations/{getsourcezendesksell.go => getsourcegoogletasks.go} (68%) create mode 100644 internal/sdk/models/operations/getsourceguru.go create mode 100644 internal/sdk/models/operations/getsourceheight.go create mode 100644 internal/sdk/models/operations/getsourcejotform.go create mode 100644 internal/sdk/models/operations/getsourcenylas.go create mode 100644 internal/sdk/models/operations/getsourcepicqer.go create mode 100644 internal/sdk/models/operations/getsourcepiwik.go create mode 100644 internal/sdk/models/operations/getsourceproductboard.go create mode 100644 internal/sdk/models/operations/getsourceproductive.go create mode 100644 internal/sdk/models/operations/getsourceshortcut.go create mode 100644 internal/sdk/models/operations/getsourcesurvicate.go create mode 100644 internal/sdk/models/operations/getsourceteamwork.go create mode 100644 internal/sdk/models/operations/getsourcewheniwork.go delete mode 100644 internal/sdk/models/operations/putdestinationdevnull.go create mode 100644 internal/sdk/models/operations/putdestinationpgvector.go create mode 100644 internal/sdk/models/operations/putsource7shifts.go create mode 100644 internal/sdk/models/operations/putsourceappcues.go create mode 100644 internal/sdk/models/operations/putsourceappfigures.go create mode 100644 internal/sdk/models/operations/putsourcebitly.go create mode 100644 internal/sdk/models/operations/putsourcebrevo.go create mode 100644 internal/sdk/models/operations/putsourcebuildkite.go create mode 100644 internal/sdk/models/operations/putsourcebuzzsprout.go create mode 100644 internal/sdk/models/operations/putsourcecanny.go create mode 100644 internal/sdk/models/operations/putsourcechameleon.go create mode 100644 internal/sdk/models/operations/putsourcecimis.go create mode 100644 internal/sdk/models/operations/putsourceezofficeinventory.go create mode 100644 internal/sdk/models/operations/putsourcefront.go rename internal/sdk/models/operations/{putsourcezendesksell.go => putsourcegoogletasks.go} (60%) create mode 100644 internal/sdk/models/operations/putsourceguru.go create mode 100644 internal/sdk/models/operations/putsourceheight.go create mode 100644 internal/sdk/models/operations/putsourcejotform.go create mode 100644 internal/sdk/models/operations/putsourcenylas.go create mode 100644 internal/sdk/models/operations/putsourcepicqer.go create mode 100644 internal/sdk/models/operations/putsourcepiwik.go create mode 100644 internal/sdk/models/operations/putsourceproductboard.go create mode 100644 internal/sdk/models/operations/putsourceproductive.go create mode 100644 internal/sdk/models/operations/putsourceshortcut.go create mode 100644 internal/sdk/models/operations/putsourcesurvicate.go create mode 100644 internal/sdk/models/operations/putsourceteamwork.go create mode 100644 internal/sdk/models/operations/putsourcewheniwork.go delete mode 100644 internal/sdk/models/shared/destinationdevnull.go delete mode 100644 internal/sdk/models/shared/destinationdevnullcreaterequest.go delete mode 100644 internal/sdk/models/shared/destinationdevnullupdate.go create mode 100644 internal/sdk/models/shared/destinationpgvector.go create mode 100644 internal/sdk/models/shared/destinationpgvectorcreaterequest.go create mode 100644 internal/sdk/models/shared/destinationpgvectorputrequest.go create mode 100644 internal/sdk/models/shared/destinationpgvectorupdate.go create mode 100644 internal/sdk/models/shared/source7shifts.go create mode 100644 internal/sdk/models/shared/source7shiftscreaterequest.go create mode 100644 internal/sdk/models/shared/source7shiftsputrequest.go create mode 100644 internal/sdk/models/shared/source7shiftsupdate.go create mode 100644 internal/sdk/models/shared/sourceappcues.go create mode 100644 internal/sdk/models/shared/sourceappcuescreaterequest.go create mode 100644 internal/sdk/models/shared/sourceappcuesputrequest.go create mode 100644 internal/sdk/models/shared/sourceappcuesupdate.go create mode 100644 internal/sdk/models/shared/sourceappfigures.go create mode 100644 internal/sdk/models/shared/sourceappfigurescreaterequest.go create mode 100644 internal/sdk/models/shared/sourceappfiguresputrequest.go create mode 100644 internal/sdk/models/shared/sourceappfiguresupdate.go create mode 100644 internal/sdk/models/shared/sourcebitly.go create mode 100644 internal/sdk/models/shared/sourcebitlycreaterequest.go create mode 100644 internal/sdk/models/shared/sourcebitlyputrequest.go create mode 100644 internal/sdk/models/shared/sourcebitlyupdate.go create mode 100644 internal/sdk/models/shared/sourcebrevo.go create mode 100644 internal/sdk/models/shared/sourcebrevocreaterequest.go create mode 100644 internal/sdk/models/shared/sourcebrevoputrequest.go create mode 100644 internal/sdk/models/shared/sourcebrevoupdate.go create mode 100644 internal/sdk/models/shared/sourcebuildkite.go create mode 100644 internal/sdk/models/shared/sourcebuildkitecreaterequest.go create mode 100644 internal/sdk/models/shared/sourcebuildkiteputrequest.go create mode 100644 internal/sdk/models/shared/sourcebuildkiteupdate.go create mode 100644 internal/sdk/models/shared/sourcebuzzsprout.go create mode 100644 internal/sdk/models/shared/sourcebuzzsproutcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcebuzzsproutputrequest.go create mode 100644 internal/sdk/models/shared/sourcebuzzsproutupdate.go create mode 100644 internal/sdk/models/shared/sourcecanny.go create mode 100644 internal/sdk/models/shared/sourcecannycreaterequest.go create mode 100644 internal/sdk/models/shared/sourcecannyputrequest.go create mode 100644 internal/sdk/models/shared/sourcecannyupdate.go create mode 100644 internal/sdk/models/shared/sourcechameleon.go create mode 100644 internal/sdk/models/shared/sourcechameleoncreaterequest.go create mode 100644 internal/sdk/models/shared/sourcechameleonputrequest.go create mode 100644 internal/sdk/models/shared/sourcechameleonupdate.go create mode 100644 internal/sdk/models/shared/sourcecimis.go create mode 100644 internal/sdk/models/shared/sourcecimiscreaterequest.go create mode 100644 internal/sdk/models/shared/sourcecimisputrequest.go create mode 100644 internal/sdk/models/shared/sourcecimisupdate.go create mode 100644 internal/sdk/models/shared/sourceezofficeinventory.go create mode 100644 internal/sdk/models/shared/sourceezofficeinventorycreaterequest.go create mode 100644 internal/sdk/models/shared/sourceezofficeinventoryputrequest.go create mode 100644 internal/sdk/models/shared/sourceezofficeinventoryupdate.go create mode 100644 internal/sdk/models/shared/sourcefront.go create mode 100644 internal/sdk/models/shared/sourcefrontcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcefrontputrequest.go create mode 100644 internal/sdk/models/shared/sourcefrontupdate.go create mode 100644 internal/sdk/models/shared/sourcegoogletasks.go rename internal/sdk/models/shared/{sourcezendesksellcreaterequest.go => sourcegoogletaskscreaterequest.go} (62%) rename internal/sdk/models/shared/{sourcezendesksellputrequest.go => sourcegoogletasksputrequest.go} (50%) create mode 100644 internal/sdk/models/shared/sourcegoogletasksupdate.go create mode 100644 internal/sdk/models/shared/sourceguru.go create mode 100644 internal/sdk/models/shared/sourcegurucreaterequest.go create mode 100644 internal/sdk/models/shared/sourceguruputrequest.go create mode 100644 internal/sdk/models/shared/sourceguruupdate.go create mode 100644 internal/sdk/models/shared/sourceheight.go create mode 100644 internal/sdk/models/shared/sourceheightcreaterequest.go create mode 100644 internal/sdk/models/shared/sourceheightputrequest.go create mode 100644 internal/sdk/models/shared/sourceheightupdate.go create mode 100644 internal/sdk/models/shared/sourcejotform.go create mode 100644 internal/sdk/models/shared/sourcejotformcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcejotformputrequest.go create mode 100644 internal/sdk/models/shared/sourcejotformupdate.go create mode 100644 internal/sdk/models/shared/sourcenylas.go create mode 100644 internal/sdk/models/shared/sourcenylascreaterequest.go create mode 100644 internal/sdk/models/shared/sourcenylasputrequest.go create mode 100644 internal/sdk/models/shared/sourcenylasupdate.go create mode 100644 internal/sdk/models/shared/sourcepicqer.go create mode 100644 internal/sdk/models/shared/sourcepicqercreaterequest.go create mode 100644 internal/sdk/models/shared/sourcepicqerputrequest.go create mode 100644 internal/sdk/models/shared/sourcepicqerupdate.go create mode 100644 internal/sdk/models/shared/sourcepiwik.go create mode 100644 internal/sdk/models/shared/sourcepiwikcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcepiwikputrequest.go create mode 100644 internal/sdk/models/shared/sourcepiwikupdate.go create mode 100644 internal/sdk/models/shared/sourceproductboard.go create mode 100644 internal/sdk/models/shared/sourceproductboardcreaterequest.go rename internal/sdk/models/shared/{destinationdevnullputrequest.go => sourceproductboardputrequest.go} (50%) create mode 100644 internal/sdk/models/shared/sourceproductboardupdate.go create mode 100644 internal/sdk/models/shared/sourceproductive.go create mode 100644 internal/sdk/models/shared/sourceproductivecreaterequest.go create mode 100644 internal/sdk/models/shared/sourceproductiveputrequest.go create mode 100644 internal/sdk/models/shared/sourceproductiveupdate.go create mode 100644 internal/sdk/models/shared/sourceshortcut.go create mode 100644 internal/sdk/models/shared/sourceshortcutcreaterequest.go create mode 100644 internal/sdk/models/shared/sourceshortcutputrequest.go create mode 100644 internal/sdk/models/shared/sourceshortcutupdate.go create mode 100644 internal/sdk/models/shared/sourcesurvicate.go create mode 100644 internal/sdk/models/shared/sourcesurvicatecreaterequest.go create mode 100644 internal/sdk/models/shared/sourcesurvicateputrequest.go create mode 100644 internal/sdk/models/shared/sourcesurvicateupdate.go create mode 100644 internal/sdk/models/shared/sourceteamwork.go create mode 100644 internal/sdk/models/shared/sourceteamworkcreaterequest.go create mode 100644 internal/sdk/models/shared/sourceteamworkputrequest.go create mode 100644 internal/sdk/models/shared/sourceteamworkupdate.go create mode 100644 internal/sdk/models/shared/sourcewheniwork.go create mode 100644 internal/sdk/models/shared/sourcewheniworkcreaterequest.go create mode 100644 internal/sdk/models/shared/sourcewheniworkputrequest.go create mode 100644 internal/sdk/models/shared/sourcewheniworkupdate.go delete mode 100644 internal/sdk/models/shared/sourcezendesksell.go delete mode 100644 internal/sdk/models/shared/sourcezendesksellupdate.go diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ef6acb417..754fb3279 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: 66a6713e21d936ece40d623dc65a71aa + docChecksum: 0abdaa1f80a94fb7694fea53bdcaf9ea docVersion: 1.0.0 speakeasyVersion: 1.335.2 generationVersion: 2.372.3 - releaseVersion: 0.11.0 - configChecksum: 72d2d09f8c57d57e37d788c60b71836a + releaseVersion: 0.13.0 + configChecksum: f5eac03b6bac02baa3467869b6cc12d1 repoURL: https://github.com/airbytehq/terraform-provider-airbyte.git features: terraform: @@ -63,7 +63,6 @@ generatedFiles: - internal/sdk/models/operations/createdestinationconvex.go - internal/sdk/models/operations/createdestinationcustom.go - internal/sdk/models/operations/createdestinationdatabricks.go - - internal/sdk/models/operations/createdestinationdevnull.go - internal/sdk/models/operations/createdestinationduckdb.go - internal/sdk/models/operations/createdestinationdynamodb.go - internal/sdk/models/operations/createdestinationelasticsearch.go @@ -76,6 +75,7 @@ generatedFiles: - internal/sdk/models/operations/createdestinationmssql.go - internal/sdk/models/operations/createdestinationmysql.go - internal/sdk/models/operations/createdestinationoracle.go + - internal/sdk/models/operations/createdestinationpgvector.go - internal/sdk/models/operations/createdestinationpinecone.go - internal/sdk/models/operations/createdestinationpostgres.go - internal/sdk/models/operations/createdestinationpubsub.go @@ -102,7 +102,6 @@ generatedFiles: - internal/sdk/models/operations/deletedestinationconvex.go - internal/sdk/models/operations/deletedestinationcustom.go - internal/sdk/models/operations/deletedestinationdatabricks.go - - internal/sdk/models/operations/deletedestinationdevnull.go - internal/sdk/models/operations/deletedestinationduckdb.go - internal/sdk/models/operations/deletedestinationdynamodb.go - internal/sdk/models/operations/deletedestinationelasticsearch.go @@ -115,6 +114,7 @@ generatedFiles: - internal/sdk/models/operations/deletedestinationmssql.go - internal/sdk/models/operations/deletedestinationmysql.go - internal/sdk/models/operations/deletedestinationoracle.go + - internal/sdk/models/operations/deletedestinationpgvector.go - internal/sdk/models/operations/deletedestinationpinecone.go - internal/sdk/models/operations/deletedestinationpostgres.go - internal/sdk/models/operations/deletedestinationpubsub.go @@ -141,7 +141,6 @@ generatedFiles: - internal/sdk/models/operations/getdestinationconvex.go - internal/sdk/models/operations/getdestinationcustom.go - internal/sdk/models/operations/getdestinationdatabricks.go - - internal/sdk/models/operations/getdestinationdevnull.go - internal/sdk/models/operations/getdestinationduckdb.go - internal/sdk/models/operations/getdestinationdynamodb.go - internal/sdk/models/operations/getdestinationelasticsearch.go @@ -154,6 +153,7 @@ generatedFiles: - internal/sdk/models/operations/getdestinationmssql.go - internal/sdk/models/operations/getdestinationmysql.go - internal/sdk/models/operations/getdestinationoracle.go + - internal/sdk/models/operations/getdestinationpgvector.go - internal/sdk/models/operations/getdestinationpinecone.go - internal/sdk/models/operations/getdestinationpostgres.go - internal/sdk/models/operations/getdestinationpubsub.go @@ -182,7 +182,6 @@ generatedFiles: - internal/sdk/models/operations/putdestinationconvex.go - internal/sdk/models/operations/putdestinationcustom.go - internal/sdk/models/operations/putdestinationdatabricks.go - - internal/sdk/models/operations/putdestinationdevnull.go - internal/sdk/models/operations/putdestinationduckdb.go - internal/sdk/models/operations/putdestinationdynamodb.go - internal/sdk/models/operations/putdestinationelasticsearch.go @@ -195,6 +194,7 @@ generatedFiles: - internal/sdk/models/operations/putdestinationmssql.go - internal/sdk/models/operations/putdestinationmysql.go - internal/sdk/models/operations/putdestinationoracle.go + - internal/sdk/models/operations/putdestinationpgvector.go - internal/sdk/models/operations/putdestinationpinecone.go - internal/sdk/models/operations/putdestinationpostgres.go - internal/sdk/models/operations/putdestinationpubsub.go @@ -224,6 +224,7 @@ generatedFiles: - internal/sdk/models/operations/listpermissions.go - internal/sdk/models/operations/updatepermission.go - internal/sdk/models/operations/createsource.go + - internal/sdk/models/operations/createsource7shifts.go - internal/sdk/models/operations/createsourceaha.go - internal/sdk/models/operations/createsourceairbyte.go - internal/sdk/models/operations/createsourceaircall.go @@ -233,6 +234,8 @@ generatedFiles: - internal/sdk/models/operations/createsourceamazonsqs.go - internal/sdk/models/operations/createsourceamplitude.go - internal/sdk/models/operations/createsourceapifydataset.go + - internal/sdk/models/operations/createsourceappcues.go + - internal/sdk/models/operations/createsourceappfigures.go - internal/sdk/models/operations/createsourceappfollow.go - internal/sdk/models/operations/createsourceasana.go - internal/sdk/models/operations/createsourceauth0.go @@ -243,13 +246,20 @@ generatedFiles: - internal/sdk/models/operations/createsourcebasecamp.go - internal/sdk/models/operations/createsourcebigquery.go - internal/sdk/models/operations/createsourcebingads.go + - internal/sdk/models/operations/createsourcebitly.go - internal/sdk/models/operations/createsourcebraintree.go - internal/sdk/models/operations/createsourcebraze.go - internal/sdk/models/operations/createsourcebreezyhr.go + - internal/sdk/models/operations/createsourcebrevo.go + - internal/sdk/models/operations/createsourcebuildkite.go + - internal/sdk/models/operations/createsourcebuzzsprout.go - internal/sdk/models/operations/createsourcecalendly.go + - internal/sdk/models/operations/createsourcecanny.go - internal/sdk/models/operations/createsourcecart.go + - internal/sdk/models/operations/createsourcechameleon.go - internal/sdk/models/operations/createsourcechargebee.go - internal/sdk/models/operations/createsourcechartmogul.go + - internal/sdk/models/operations/createsourcecimis.go - internal/sdk/models/operations/createsourceclazar.go - internal/sdk/models/operations/createsourceclickhouse.go - internal/sdk/models/operations/createsourceclickupapi.go @@ -273,6 +283,7 @@ generatedFiles: - internal/sdk/models/operations/createsourcedynamodb.go - internal/sdk/models/operations/createsourceemailoctopus.go - internal/sdk/models/operations/createsourceexchangerates.go + - internal/sdk/models/operations/createsourceezofficeinventory.go - internal/sdk/models/operations/createsourcefacebookmarketing.go - internal/sdk/models/operations/createsourcefaker.go - internal/sdk/models/operations/createsourcefauna.go @@ -282,6 +293,7 @@ generatedFiles: - internal/sdk/models/operations/createsourcefreshcaller.go - internal/sdk/models/operations/createsourcefreshdesk.go - internal/sdk/models/operations/createsourcefreshsales.go + - internal/sdk/models/operations/createsourcefront.go - internal/sdk/models/operations/createsourcegainsightpx.go - internal/sdk/models/operations/createsourcegcs.go - internal/sdk/models/operations/createsourcegetlago.go @@ -297,11 +309,14 @@ generatedFiles: - internal/sdk/models/operations/createsourcegooglepagespeedinsights.go - internal/sdk/models/operations/createsourcegooglesearchconsole.go - internal/sdk/models/operations/createsourcegooglesheets.go + - internal/sdk/models/operations/createsourcegoogletasks.go - internal/sdk/models/operations/createsourcegooglewebfonts.go - internal/sdk/models/operations/createsourcegreenhouse.go - internal/sdk/models/operations/createsourcegridly.go + - internal/sdk/models/operations/createsourceguru.go - internal/sdk/models/operations/createsourcehardcodedrecords.go - internal/sdk/models/operations/createsourceharvest.go + - internal/sdk/models/operations/createsourceheight.go - internal/sdk/models/operations/createsourcehibob.go - internal/sdk/models/operations/createsourcehighlevel.go - internal/sdk/models/operations/createsourcehubplanner.go @@ -313,6 +328,7 @@ generatedFiles: - internal/sdk/models/operations/createsourceip2whois.go - internal/sdk/models/operations/createsourceiterable.go - internal/sdk/models/operations/createsourcejira.go + - internal/sdk/models/operations/createsourcejotform.go - internal/sdk/models/operations/createsourcek6cloud.go - internal/sdk/models/operations/createsourceklarna.go - internal/sdk/models/operations/createsourceklaviyo.go @@ -344,6 +360,7 @@ generatedFiles: - internal/sdk/models/operations/createsourcenetsuite.go - internal/sdk/models/operations/createsourcenorthpasslms.go - internal/sdk/models/operations/createsourcenotion.go + - internal/sdk/models/operations/createsourcenylas.go - internal/sdk/models/operations/createsourcenytimes.go - internal/sdk/models/operations/createsourceokta.go - internal/sdk/models/operations/createsourceomnisend.go @@ -359,8 +376,10 @@ generatedFiles: - internal/sdk/models/operations/createsourcepennylane.go - internal/sdk/models/operations/createsourcepersistiq.go - internal/sdk/models/operations/createsourcepexelsapi.go + - internal/sdk/models/operations/createsourcepicqer.go - internal/sdk/models/operations/createsourcepinterest.go - internal/sdk/models/operations/createsourcepipedrive.go + - internal/sdk/models/operations/createsourcepiwik.go - internal/sdk/models/operations/createsourceplanhat.go - internal/sdk/models/operations/createsourcepocket.go - internal/sdk/models/operations/createsourcepokeapi.go @@ -369,6 +388,8 @@ generatedFiles: - internal/sdk/models/operations/createsourceposthog.go - internal/sdk/models/operations/createsourcepostmarkapp.go - internal/sdk/models/operations/createsourceprestashop.go + - internal/sdk/models/operations/createsourceproductboard.go + - internal/sdk/models/operations/createsourceproductive.go - internal/sdk/models/operations/createsourcepypi.go - internal/sdk/models/operations/createsourcequalaroo.go - internal/sdk/models/operations/createsourcerailz.go @@ -395,6 +416,7 @@ generatedFiles: - internal/sdk/models/operations/createsourcesftp.go - internal/sdk/models/operations/createsourcesftpbulk.go - internal/sdk/models/operations/createsourceshopify.go + - internal/sdk/models/operations/createsourceshortcut.go - internal/sdk/models/operations/createsourceshortio.go - internal/sdk/models/operations/createsourceslack.go - internal/sdk/models/operations/createsourcesmaily.go @@ -409,6 +431,8 @@ generatedFiles: - internal/sdk/models/operations/createsourcestripe.go - internal/sdk/models/operations/createsourcesurveysparrow.go - internal/sdk/models/operations/createsourcesurveymonkey.go + - internal/sdk/models/operations/createsourcesurvicate.go + - internal/sdk/models/operations/createsourceteamwork.go - internal/sdk/models/operations/createsourcetempo.go - internal/sdk/models/operations/createsourcetheguardianapi.go - internal/sdk/models/operations/createsourcetiktokmarketing.go @@ -422,6 +446,7 @@ generatedFiles: - internal/sdk/models/operations/createsourceuscensus.go - internal/sdk/models/operations/createsourcevantage.go - internal/sdk/models/operations/createsourcewebflow.go + - internal/sdk/models/operations/createsourcewheniwork.go - internal/sdk/models/operations/createsourcewhiskyhunter.go - internal/sdk/models/operations/createsourcewikipediapageviews.go - internal/sdk/models/operations/createsourcewoocommerce.go @@ -430,7 +455,6 @@ generatedFiles: - internal/sdk/models/operations/createsourceyotpo.go - internal/sdk/models/operations/createsourceyoutubeanalytics.go - internal/sdk/models/operations/createsourcezendeskchat.go - - internal/sdk/models/operations/createsourcezendesksell.go - internal/sdk/models/operations/createsourcezendesksunshine.go - internal/sdk/models/operations/createsourcezendesksupport.go - internal/sdk/models/operations/createsourcezendesktalk.go @@ -438,6 +462,7 @@ generatedFiles: - internal/sdk/models/operations/createsourcezohocrm.go - internal/sdk/models/operations/createsourcezoom.go - internal/sdk/models/operations/deletesource.go + - internal/sdk/models/operations/deletesource7shifts.go - internal/sdk/models/operations/deletesourceaha.go - internal/sdk/models/operations/deletesourceairbyte.go - internal/sdk/models/operations/deletesourceaircall.go @@ -447,6 +472,8 @@ generatedFiles: - internal/sdk/models/operations/deletesourceamazonsqs.go - internal/sdk/models/operations/deletesourceamplitude.go - internal/sdk/models/operations/deletesourceapifydataset.go + - internal/sdk/models/operations/deletesourceappcues.go + - internal/sdk/models/operations/deletesourceappfigures.go - internal/sdk/models/operations/deletesourceappfollow.go - internal/sdk/models/operations/deletesourceasana.go - internal/sdk/models/operations/deletesourceauth0.go @@ -457,13 +484,20 @@ generatedFiles: - internal/sdk/models/operations/deletesourcebasecamp.go - internal/sdk/models/operations/deletesourcebigquery.go - internal/sdk/models/operations/deletesourcebingads.go + - internal/sdk/models/operations/deletesourcebitly.go - internal/sdk/models/operations/deletesourcebraintree.go - internal/sdk/models/operations/deletesourcebraze.go - internal/sdk/models/operations/deletesourcebreezyhr.go + - internal/sdk/models/operations/deletesourcebrevo.go + - internal/sdk/models/operations/deletesourcebuildkite.go + - internal/sdk/models/operations/deletesourcebuzzsprout.go - internal/sdk/models/operations/deletesourcecalendly.go + - internal/sdk/models/operations/deletesourcecanny.go - internal/sdk/models/operations/deletesourcecart.go + - internal/sdk/models/operations/deletesourcechameleon.go - internal/sdk/models/operations/deletesourcechargebee.go - internal/sdk/models/operations/deletesourcechartmogul.go + - internal/sdk/models/operations/deletesourcecimis.go - internal/sdk/models/operations/deletesourceclazar.go - internal/sdk/models/operations/deletesourceclickhouse.go - internal/sdk/models/operations/deletesourceclickupapi.go @@ -487,6 +521,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourcedynamodb.go - internal/sdk/models/operations/deletesourceemailoctopus.go - internal/sdk/models/operations/deletesourceexchangerates.go + - internal/sdk/models/operations/deletesourceezofficeinventory.go - internal/sdk/models/operations/deletesourcefacebookmarketing.go - internal/sdk/models/operations/deletesourcefaker.go - internal/sdk/models/operations/deletesourcefauna.go @@ -496,6 +531,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourcefreshcaller.go - internal/sdk/models/operations/deletesourcefreshdesk.go - internal/sdk/models/operations/deletesourcefreshsales.go + - internal/sdk/models/operations/deletesourcefront.go - internal/sdk/models/operations/deletesourcegainsightpx.go - internal/sdk/models/operations/deletesourcegcs.go - internal/sdk/models/operations/deletesourcegetlago.go @@ -511,11 +547,14 @@ generatedFiles: - internal/sdk/models/operations/deletesourcegooglepagespeedinsights.go - internal/sdk/models/operations/deletesourcegooglesearchconsole.go - internal/sdk/models/operations/deletesourcegooglesheets.go + - internal/sdk/models/operations/deletesourcegoogletasks.go - internal/sdk/models/operations/deletesourcegooglewebfonts.go - internal/sdk/models/operations/deletesourcegreenhouse.go - internal/sdk/models/operations/deletesourcegridly.go + - internal/sdk/models/operations/deletesourceguru.go - internal/sdk/models/operations/deletesourcehardcodedrecords.go - internal/sdk/models/operations/deletesourceharvest.go + - internal/sdk/models/operations/deletesourceheight.go - internal/sdk/models/operations/deletesourcehibob.go - internal/sdk/models/operations/deletesourcehighlevel.go - internal/sdk/models/operations/deletesourcehubplanner.go @@ -527,6 +566,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourceip2whois.go - internal/sdk/models/operations/deletesourceiterable.go - internal/sdk/models/operations/deletesourcejira.go + - internal/sdk/models/operations/deletesourcejotform.go - internal/sdk/models/operations/deletesourcek6cloud.go - internal/sdk/models/operations/deletesourceklarna.go - internal/sdk/models/operations/deletesourceklaviyo.go @@ -558,6 +598,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourcenetsuite.go - internal/sdk/models/operations/deletesourcenorthpasslms.go - internal/sdk/models/operations/deletesourcenotion.go + - internal/sdk/models/operations/deletesourcenylas.go - internal/sdk/models/operations/deletesourcenytimes.go - internal/sdk/models/operations/deletesourceokta.go - internal/sdk/models/operations/deletesourceomnisend.go @@ -573,8 +614,10 @@ generatedFiles: - internal/sdk/models/operations/deletesourcepennylane.go - internal/sdk/models/operations/deletesourcepersistiq.go - internal/sdk/models/operations/deletesourcepexelsapi.go + - internal/sdk/models/operations/deletesourcepicqer.go - internal/sdk/models/operations/deletesourcepinterest.go - internal/sdk/models/operations/deletesourcepipedrive.go + - internal/sdk/models/operations/deletesourcepiwik.go - internal/sdk/models/operations/deletesourceplanhat.go - internal/sdk/models/operations/deletesourcepocket.go - internal/sdk/models/operations/deletesourcepokeapi.go @@ -583,6 +626,8 @@ generatedFiles: - internal/sdk/models/operations/deletesourceposthog.go - internal/sdk/models/operations/deletesourcepostmarkapp.go - internal/sdk/models/operations/deletesourceprestashop.go + - internal/sdk/models/operations/deletesourceproductboard.go + - internal/sdk/models/operations/deletesourceproductive.go - internal/sdk/models/operations/deletesourcepypi.go - internal/sdk/models/operations/deletesourcequalaroo.go - internal/sdk/models/operations/deletesourcerailz.go @@ -609,6 +654,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourcesftp.go - internal/sdk/models/operations/deletesourcesftpbulk.go - internal/sdk/models/operations/deletesourceshopify.go + - internal/sdk/models/operations/deletesourceshortcut.go - internal/sdk/models/operations/deletesourceshortio.go - internal/sdk/models/operations/deletesourceslack.go - internal/sdk/models/operations/deletesourcesmaily.go @@ -623,6 +669,8 @@ generatedFiles: - internal/sdk/models/operations/deletesourcestripe.go - internal/sdk/models/operations/deletesourcesurveysparrow.go - internal/sdk/models/operations/deletesourcesurveymonkey.go + - internal/sdk/models/operations/deletesourcesurvicate.go + - internal/sdk/models/operations/deletesourceteamwork.go - internal/sdk/models/operations/deletesourcetempo.go - internal/sdk/models/operations/deletesourcetheguardianapi.go - internal/sdk/models/operations/deletesourcetiktokmarketing.go @@ -636,6 +684,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourceuscensus.go - internal/sdk/models/operations/deletesourcevantage.go - internal/sdk/models/operations/deletesourcewebflow.go + - internal/sdk/models/operations/deletesourcewheniwork.go - internal/sdk/models/operations/deletesourcewhiskyhunter.go - internal/sdk/models/operations/deletesourcewikipediapageviews.go - internal/sdk/models/operations/deletesourcewoocommerce.go @@ -644,7 +693,6 @@ generatedFiles: - internal/sdk/models/operations/deletesourceyotpo.go - internal/sdk/models/operations/deletesourceyoutubeanalytics.go - internal/sdk/models/operations/deletesourcezendeskchat.go - - internal/sdk/models/operations/deletesourcezendesksell.go - internal/sdk/models/operations/deletesourcezendesksunshine.go - internal/sdk/models/operations/deletesourcezendesksupport.go - internal/sdk/models/operations/deletesourcezendesktalk.go @@ -652,6 +700,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourcezohocrm.go - internal/sdk/models/operations/deletesourcezoom.go - internal/sdk/models/operations/getsource.go + - internal/sdk/models/operations/getsource7shifts.go - internal/sdk/models/operations/getsourceaha.go - internal/sdk/models/operations/getsourceairbyte.go - internal/sdk/models/operations/getsourceaircall.go @@ -661,6 +710,8 @@ generatedFiles: - internal/sdk/models/operations/getsourceamazonsqs.go - internal/sdk/models/operations/getsourceamplitude.go - internal/sdk/models/operations/getsourceapifydataset.go + - internal/sdk/models/operations/getsourceappcues.go + - internal/sdk/models/operations/getsourceappfigures.go - internal/sdk/models/operations/getsourceappfollow.go - internal/sdk/models/operations/getsourceasana.go - internal/sdk/models/operations/getsourceauth0.go @@ -671,13 +722,20 @@ generatedFiles: - internal/sdk/models/operations/getsourcebasecamp.go - internal/sdk/models/operations/getsourcebigquery.go - internal/sdk/models/operations/getsourcebingads.go + - internal/sdk/models/operations/getsourcebitly.go - internal/sdk/models/operations/getsourcebraintree.go - internal/sdk/models/operations/getsourcebraze.go - internal/sdk/models/operations/getsourcebreezyhr.go + - internal/sdk/models/operations/getsourcebrevo.go + - internal/sdk/models/operations/getsourcebuildkite.go + - internal/sdk/models/operations/getsourcebuzzsprout.go - internal/sdk/models/operations/getsourcecalendly.go + - internal/sdk/models/operations/getsourcecanny.go - internal/sdk/models/operations/getsourcecart.go + - internal/sdk/models/operations/getsourcechameleon.go - internal/sdk/models/operations/getsourcechargebee.go - internal/sdk/models/operations/getsourcechartmogul.go + - internal/sdk/models/operations/getsourcecimis.go - internal/sdk/models/operations/getsourceclazar.go - internal/sdk/models/operations/getsourceclickhouse.go - internal/sdk/models/operations/getsourceclickupapi.go @@ -701,6 +759,7 @@ generatedFiles: - internal/sdk/models/operations/getsourcedynamodb.go - internal/sdk/models/operations/getsourceemailoctopus.go - internal/sdk/models/operations/getsourceexchangerates.go + - internal/sdk/models/operations/getsourceezofficeinventory.go - internal/sdk/models/operations/getsourcefacebookmarketing.go - internal/sdk/models/operations/getsourcefaker.go - internal/sdk/models/operations/getsourcefauna.go @@ -710,6 +769,7 @@ generatedFiles: - internal/sdk/models/operations/getsourcefreshcaller.go - internal/sdk/models/operations/getsourcefreshdesk.go - internal/sdk/models/operations/getsourcefreshsales.go + - internal/sdk/models/operations/getsourcefront.go - internal/sdk/models/operations/getsourcegainsightpx.go - internal/sdk/models/operations/getsourcegcs.go - internal/sdk/models/operations/getsourcegetlago.go @@ -725,11 +785,14 @@ generatedFiles: - internal/sdk/models/operations/getsourcegooglepagespeedinsights.go - internal/sdk/models/operations/getsourcegooglesearchconsole.go - internal/sdk/models/operations/getsourcegooglesheets.go + - internal/sdk/models/operations/getsourcegoogletasks.go - internal/sdk/models/operations/getsourcegooglewebfonts.go - internal/sdk/models/operations/getsourcegreenhouse.go - internal/sdk/models/operations/getsourcegridly.go + - internal/sdk/models/operations/getsourceguru.go - internal/sdk/models/operations/getsourcehardcodedrecords.go - internal/sdk/models/operations/getsourceharvest.go + - internal/sdk/models/operations/getsourceheight.go - internal/sdk/models/operations/getsourcehibob.go - internal/sdk/models/operations/getsourcehighlevel.go - internal/sdk/models/operations/getsourcehubplanner.go @@ -741,6 +804,7 @@ generatedFiles: - internal/sdk/models/operations/getsourceip2whois.go - internal/sdk/models/operations/getsourceiterable.go - internal/sdk/models/operations/getsourcejira.go + - internal/sdk/models/operations/getsourcejotform.go - internal/sdk/models/operations/getsourcek6cloud.go - internal/sdk/models/operations/getsourceklarna.go - internal/sdk/models/operations/getsourceklaviyo.go @@ -772,6 +836,7 @@ generatedFiles: - internal/sdk/models/operations/getsourcenetsuite.go - internal/sdk/models/operations/getsourcenorthpasslms.go - internal/sdk/models/operations/getsourcenotion.go + - internal/sdk/models/operations/getsourcenylas.go - internal/sdk/models/operations/getsourcenytimes.go - internal/sdk/models/operations/getsourceokta.go - internal/sdk/models/operations/getsourceomnisend.go @@ -787,8 +852,10 @@ generatedFiles: - internal/sdk/models/operations/getsourcepennylane.go - internal/sdk/models/operations/getsourcepersistiq.go - internal/sdk/models/operations/getsourcepexelsapi.go + - internal/sdk/models/operations/getsourcepicqer.go - internal/sdk/models/operations/getsourcepinterest.go - internal/sdk/models/operations/getsourcepipedrive.go + - internal/sdk/models/operations/getsourcepiwik.go - internal/sdk/models/operations/getsourceplanhat.go - internal/sdk/models/operations/getsourcepocket.go - internal/sdk/models/operations/getsourcepokeapi.go @@ -797,6 +864,8 @@ generatedFiles: - internal/sdk/models/operations/getsourceposthog.go - internal/sdk/models/operations/getsourcepostmarkapp.go - internal/sdk/models/operations/getsourceprestashop.go + - internal/sdk/models/operations/getsourceproductboard.go + - internal/sdk/models/operations/getsourceproductive.go - internal/sdk/models/operations/getsourcepypi.go - internal/sdk/models/operations/getsourcequalaroo.go - internal/sdk/models/operations/getsourcerailz.go @@ -823,6 +892,7 @@ generatedFiles: - internal/sdk/models/operations/getsourcesftp.go - internal/sdk/models/operations/getsourcesftpbulk.go - internal/sdk/models/operations/getsourceshopify.go + - internal/sdk/models/operations/getsourceshortcut.go - internal/sdk/models/operations/getsourceshortio.go - internal/sdk/models/operations/getsourceslack.go - internal/sdk/models/operations/getsourcesmaily.go @@ -837,6 +907,8 @@ generatedFiles: - internal/sdk/models/operations/getsourcestripe.go - internal/sdk/models/operations/getsourcesurveysparrow.go - internal/sdk/models/operations/getsourcesurveymonkey.go + - internal/sdk/models/operations/getsourcesurvicate.go + - internal/sdk/models/operations/getsourceteamwork.go - internal/sdk/models/operations/getsourcetempo.go - internal/sdk/models/operations/getsourcetheguardianapi.go - internal/sdk/models/operations/getsourcetiktokmarketing.go @@ -850,6 +922,7 @@ generatedFiles: - internal/sdk/models/operations/getsourceuscensus.go - internal/sdk/models/operations/getsourcevantage.go - internal/sdk/models/operations/getsourcewebflow.go + - internal/sdk/models/operations/getsourcewheniwork.go - internal/sdk/models/operations/getsourcewhiskyhunter.go - internal/sdk/models/operations/getsourcewikipediapageviews.go - internal/sdk/models/operations/getsourcewoocommerce.go @@ -858,7 +931,6 @@ generatedFiles: - internal/sdk/models/operations/getsourceyotpo.go - internal/sdk/models/operations/getsourceyoutubeanalytics.go - internal/sdk/models/operations/getsourcezendeskchat.go - - internal/sdk/models/operations/getsourcezendesksell.go - internal/sdk/models/operations/getsourcezendesksunshine.go - internal/sdk/models/operations/getsourcezendesksupport.go - internal/sdk/models/operations/getsourcezendesktalk.go @@ -869,6 +941,7 @@ generatedFiles: - internal/sdk/models/operations/listsources.go - internal/sdk/models/operations/patchsource.go - internal/sdk/models/operations/putsource.go + - internal/sdk/models/operations/putsource7shifts.go - internal/sdk/models/operations/putsourceaha.go - internal/sdk/models/operations/putsourceairbyte.go - internal/sdk/models/operations/putsourceaircall.go @@ -878,6 +951,8 @@ generatedFiles: - internal/sdk/models/operations/putsourceamazonsqs.go - internal/sdk/models/operations/putsourceamplitude.go - internal/sdk/models/operations/putsourceapifydataset.go + - internal/sdk/models/operations/putsourceappcues.go + - internal/sdk/models/operations/putsourceappfigures.go - internal/sdk/models/operations/putsourceappfollow.go - internal/sdk/models/operations/putsourceasana.go - internal/sdk/models/operations/putsourceauth0.go @@ -888,13 +963,20 @@ generatedFiles: - internal/sdk/models/operations/putsourcebasecamp.go - internal/sdk/models/operations/putsourcebigquery.go - internal/sdk/models/operations/putsourcebingads.go + - internal/sdk/models/operations/putsourcebitly.go - internal/sdk/models/operations/putsourcebraintree.go - internal/sdk/models/operations/putsourcebraze.go - internal/sdk/models/operations/putsourcebreezyhr.go + - internal/sdk/models/operations/putsourcebrevo.go + - internal/sdk/models/operations/putsourcebuildkite.go + - internal/sdk/models/operations/putsourcebuzzsprout.go - internal/sdk/models/operations/putsourcecalendly.go + - internal/sdk/models/operations/putsourcecanny.go - internal/sdk/models/operations/putsourcecart.go + - internal/sdk/models/operations/putsourcechameleon.go - internal/sdk/models/operations/putsourcechargebee.go - internal/sdk/models/operations/putsourcechartmogul.go + - internal/sdk/models/operations/putsourcecimis.go - internal/sdk/models/operations/putsourceclazar.go - internal/sdk/models/operations/putsourceclickhouse.go - internal/sdk/models/operations/putsourceclickupapi.go @@ -918,6 +1000,7 @@ generatedFiles: - internal/sdk/models/operations/putsourcedynamodb.go - internal/sdk/models/operations/putsourceemailoctopus.go - internal/sdk/models/operations/putsourceexchangerates.go + - internal/sdk/models/operations/putsourceezofficeinventory.go - internal/sdk/models/operations/putsourcefacebookmarketing.go - internal/sdk/models/operations/putsourcefaker.go - internal/sdk/models/operations/putsourcefauna.go @@ -927,6 +1010,7 @@ generatedFiles: - internal/sdk/models/operations/putsourcefreshcaller.go - internal/sdk/models/operations/putsourcefreshdesk.go - internal/sdk/models/operations/putsourcefreshsales.go + - internal/sdk/models/operations/putsourcefront.go - internal/sdk/models/operations/putsourcegainsightpx.go - internal/sdk/models/operations/putsourcegcs.go - internal/sdk/models/operations/putsourcegetlago.go @@ -942,11 +1026,14 @@ generatedFiles: - internal/sdk/models/operations/putsourcegooglepagespeedinsights.go - internal/sdk/models/operations/putsourcegooglesearchconsole.go - internal/sdk/models/operations/putsourcegooglesheets.go + - internal/sdk/models/operations/putsourcegoogletasks.go - internal/sdk/models/operations/putsourcegooglewebfonts.go - internal/sdk/models/operations/putsourcegreenhouse.go - internal/sdk/models/operations/putsourcegridly.go + - internal/sdk/models/operations/putsourceguru.go - internal/sdk/models/operations/putsourcehardcodedrecords.go - internal/sdk/models/operations/putsourceharvest.go + - internal/sdk/models/operations/putsourceheight.go - internal/sdk/models/operations/putsourcehibob.go - internal/sdk/models/operations/putsourcehighlevel.go - internal/sdk/models/operations/putsourcehubplanner.go @@ -958,6 +1045,7 @@ generatedFiles: - internal/sdk/models/operations/putsourceip2whois.go - internal/sdk/models/operations/putsourceiterable.go - internal/sdk/models/operations/putsourcejira.go + - internal/sdk/models/operations/putsourcejotform.go - internal/sdk/models/operations/putsourcek6cloud.go - internal/sdk/models/operations/putsourceklarna.go - internal/sdk/models/operations/putsourceklaviyo.go @@ -989,6 +1077,7 @@ generatedFiles: - internal/sdk/models/operations/putsourcenetsuite.go - internal/sdk/models/operations/putsourcenorthpasslms.go - internal/sdk/models/operations/putsourcenotion.go + - internal/sdk/models/operations/putsourcenylas.go - internal/sdk/models/operations/putsourcenytimes.go - internal/sdk/models/operations/putsourceokta.go - internal/sdk/models/operations/putsourceomnisend.go @@ -1004,8 +1093,10 @@ generatedFiles: - internal/sdk/models/operations/putsourcepennylane.go - internal/sdk/models/operations/putsourcepersistiq.go - internal/sdk/models/operations/putsourcepexelsapi.go + - internal/sdk/models/operations/putsourcepicqer.go - internal/sdk/models/operations/putsourcepinterest.go - internal/sdk/models/operations/putsourcepipedrive.go + - internal/sdk/models/operations/putsourcepiwik.go - internal/sdk/models/operations/putsourceplanhat.go - internal/sdk/models/operations/putsourcepocket.go - internal/sdk/models/operations/putsourcepokeapi.go @@ -1014,6 +1105,8 @@ generatedFiles: - internal/sdk/models/operations/putsourceposthog.go - internal/sdk/models/operations/putsourcepostmarkapp.go - internal/sdk/models/operations/putsourceprestashop.go + - internal/sdk/models/operations/putsourceproductboard.go + - internal/sdk/models/operations/putsourceproductive.go - internal/sdk/models/operations/putsourcepypi.go - internal/sdk/models/operations/putsourcequalaroo.go - internal/sdk/models/operations/putsourcerailz.go @@ -1040,6 +1133,7 @@ generatedFiles: - internal/sdk/models/operations/putsourcesftp.go - internal/sdk/models/operations/putsourcesftpbulk.go - internal/sdk/models/operations/putsourceshopify.go + - internal/sdk/models/operations/putsourceshortcut.go - internal/sdk/models/operations/putsourceshortio.go - internal/sdk/models/operations/putsourceslack.go - internal/sdk/models/operations/putsourcesmaily.go @@ -1054,6 +1148,8 @@ generatedFiles: - internal/sdk/models/operations/putsourcestripe.go - internal/sdk/models/operations/putsourcesurveysparrow.go - internal/sdk/models/operations/putsourcesurveymonkey.go + - internal/sdk/models/operations/putsourcesurvicate.go + - internal/sdk/models/operations/putsourceteamwork.go - internal/sdk/models/operations/putsourcetempo.go - internal/sdk/models/operations/putsourcetheguardianapi.go - internal/sdk/models/operations/putsourcetiktokmarketing.go @@ -1067,6 +1163,7 @@ generatedFiles: - internal/sdk/models/operations/putsourceuscensus.go - internal/sdk/models/operations/putsourcevantage.go - internal/sdk/models/operations/putsourcewebflow.go + - internal/sdk/models/operations/putsourcewheniwork.go - internal/sdk/models/operations/putsourcewhiskyhunter.go - internal/sdk/models/operations/putsourcewikipediapageviews.go - internal/sdk/models/operations/putsourcewoocommerce.go @@ -1075,7 +1172,6 @@ generatedFiles: - internal/sdk/models/operations/putsourceyotpo.go - internal/sdk/models/operations/putsourceyoutubeanalytics.go - internal/sdk/models/operations/putsourcezendeskchat.go - - internal/sdk/models/operations/putsourcezendesksell.go - internal/sdk/models/operations/putsourcezendesksunshine.go - internal/sdk/models/operations/putsourcezendesksupport.go - internal/sdk/models/operations/putsourcezendesktalk.go @@ -1126,8 +1222,6 @@ generatedFiles: - internal/sdk/models/shared/destinationcustomcreaterequest.go - internal/sdk/models/shared/destinationdatabrickscreaterequest.go - internal/sdk/models/shared/destinationdatabricks.go - - internal/sdk/models/shared/destinationdevnullcreaterequest.go - - internal/sdk/models/shared/destinationdevnull.go - internal/sdk/models/shared/destinationduckdbcreaterequest.go - internal/sdk/models/shared/destinationduckdb.go - internal/sdk/models/shared/destinationdynamodbcreaterequest.go @@ -1152,6 +1246,8 @@ generatedFiles: - internal/sdk/models/shared/destinationmysql.go - internal/sdk/models/shared/destinationoraclecreaterequest.go - internal/sdk/models/shared/destinationoracle.go + - internal/sdk/models/shared/destinationpgvectorcreaterequest.go + - internal/sdk/models/shared/destinationpgvector.go - internal/sdk/models/shared/destinationpineconecreaterequest.go - internal/sdk/models/shared/destinationpinecone.go - internal/sdk/models/shared/destinationpostgrescreaterequest.go @@ -1204,8 +1300,6 @@ generatedFiles: - internal/sdk/models/shared/destinationcustomputrequest.go - internal/sdk/models/shared/destinationdatabricksputrequest.go - internal/sdk/models/shared/destinationdatabricksupdate.go - - internal/sdk/models/shared/destinationdevnullputrequest.go - - internal/sdk/models/shared/destinationdevnullupdate.go - internal/sdk/models/shared/destinationduckdbputrequest.go - internal/sdk/models/shared/destinationduckdbupdate.go - internal/sdk/models/shared/destinationdynamodbputrequest.go @@ -1230,6 +1324,8 @@ generatedFiles: - internal/sdk/models/shared/destinationmysqlupdate.go - internal/sdk/models/shared/destinationoracleputrequest.go - internal/sdk/models/shared/destinationoracleupdate.go + - internal/sdk/models/shared/destinationpgvectorputrequest.go + - internal/sdk/models/shared/destinationpgvectorupdate.go - internal/sdk/models/shared/destinationpineconeputrequest.go - internal/sdk/models/shared/destinationpineconeupdate.go - internal/sdk/models/shared/destinationpostgresputrequest.go @@ -1281,6 +1377,8 @@ generatedFiles: - internal/sdk/models/shared/permissionupdaterequest.go - internal/sdk/models/shared/sourceresponse.go - internal/sdk/models/shared/sourcecreaterequest.go + - internal/sdk/models/shared/source7shiftscreaterequest.go + - internal/sdk/models/shared/source7shifts.go - internal/sdk/models/shared/sourceahacreaterequest.go - internal/sdk/models/shared/sourceaha.go - internal/sdk/models/shared/sourceairbytecreaterequest.go @@ -1299,6 +1397,10 @@ generatedFiles: - internal/sdk/models/shared/sourceamplitude.go - internal/sdk/models/shared/sourceapifydatasetcreaterequest.go - internal/sdk/models/shared/sourceapifydataset.go + - internal/sdk/models/shared/sourceappcuescreaterequest.go + - internal/sdk/models/shared/sourceappcues.go + - internal/sdk/models/shared/sourceappfigurescreaterequest.go + - internal/sdk/models/shared/sourceappfigures.go - internal/sdk/models/shared/sourceappfollowcreaterequest.go - internal/sdk/models/shared/sourceappfollow.go - internal/sdk/models/shared/sourceasanacreaterequest.go @@ -1319,20 +1421,34 @@ generatedFiles: - internal/sdk/models/shared/sourcebigquery.go - internal/sdk/models/shared/sourcebingadscreaterequest.go - internal/sdk/models/shared/sourcebingads.go + - internal/sdk/models/shared/sourcebitlycreaterequest.go + - internal/sdk/models/shared/sourcebitly.go - internal/sdk/models/shared/sourcebraintreecreaterequest.go - 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/sourcebrevocreaterequest.go + - internal/sdk/models/shared/sourcebrevo.go + - internal/sdk/models/shared/sourcebuildkitecreaterequest.go + - internal/sdk/models/shared/sourcebuildkite.go + - internal/sdk/models/shared/sourcebuzzsproutcreaterequest.go + - internal/sdk/models/shared/sourcebuzzsprout.go - internal/sdk/models/shared/sourcecalendlycreaterequest.go - internal/sdk/models/shared/sourcecalendly.go + - internal/sdk/models/shared/sourcecannycreaterequest.go + - internal/sdk/models/shared/sourcecanny.go - internal/sdk/models/shared/sourcecartcreaterequest.go - internal/sdk/models/shared/sourcecart.go + - internal/sdk/models/shared/sourcechameleoncreaterequest.go + - internal/sdk/models/shared/sourcechameleon.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/sourcecimiscreaterequest.go + - internal/sdk/models/shared/sourcecimis.go - internal/sdk/models/shared/sourceclazarcreaterequest.go - internal/sdk/models/shared/sourceclazar.go - internal/sdk/models/shared/sourceclickhousecreaterequest.go @@ -1378,6 +1494,8 @@ generatedFiles: - internal/sdk/models/shared/sourceemailoctopus.go - internal/sdk/models/shared/sourceexchangeratescreaterequest.go - internal/sdk/models/shared/sourceexchangerates.go + - internal/sdk/models/shared/sourceezofficeinventorycreaterequest.go + - internal/sdk/models/shared/sourceezofficeinventory.go - internal/sdk/models/shared/sourcefacebookmarketingcreaterequest.go - internal/sdk/models/shared/sourcefacebookmarketing.go - internal/sdk/models/shared/sourcefakercreaterequest.go @@ -1396,6 +1514,8 @@ generatedFiles: - internal/sdk/models/shared/sourcefreshdesk.go - internal/sdk/models/shared/sourcefreshsalescreaterequest.go - internal/sdk/models/shared/sourcefreshsales.go + - internal/sdk/models/shared/sourcefrontcreaterequest.go + - internal/sdk/models/shared/sourcefront.go - internal/sdk/models/shared/sourcegainsightpxcreaterequest.go - internal/sdk/models/shared/sourcegainsightpx.go - internal/sdk/models/shared/sourcegcscreaterequest.go @@ -1426,16 +1546,22 @@ generatedFiles: - internal/sdk/models/shared/sourcegooglesearchconsole.go - internal/sdk/models/shared/sourcegooglesheetscreaterequest.go - internal/sdk/models/shared/sourcegooglesheets.go + - internal/sdk/models/shared/sourcegoogletaskscreaterequest.go + - internal/sdk/models/shared/sourcegoogletasks.go - internal/sdk/models/shared/sourcegooglewebfontscreaterequest.go - internal/sdk/models/shared/sourcegooglewebfonts.go - internal/sdk/models/shared/sourcegreenhousecreaterequest.go - internal/sdk/models/shared/sourcegreenhouse.go - internal/sdk/models/shared/sourcegridlycreaterequest.go - internal/sdk/models/shared/sourcegridly.go + - internal/sdk/models/shared/sourcegurucreaterequest.go + - internal/sdk/models/shared/sourceguru.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/sourceheightcreaterequest.go + - internal/sdk/models/shared/sourceheight.go - internal/sdk/models/shared/sourcehibobcreaterequest.go - internal/sdk/models/shared/sourcehibob.go - internal/sdk/models/shared/sourcehighlevelcreaterequest.go @@ -1458,6 +1584,8 @@ generatedFiles: - internal/sdk/models/shared/sourceiterable.go - internal/sdk/models/shared/sourcejiracreaterequest.go - internal/sdk/models/shared/sourcejira.go + - internal/sdk/models/shared/sourcejotformcreaterequest.go + - internal/sdk/models/shared/sourcejotform.go - internal/sdk/models/shared/sourcek6cloudcreaterequest.go - internal/sdk/models/shared/sourcek6cloud.go - internal/sdk/models/shared/sourceklarnacreaterequest.go @@ -1520,6 +1648,8 @@ generatedFiles: - internal/sdk/models/shared/sourcenorthpasslms.go - internal/sdk/models/shared/sourcenotioncreaterequest.go - internal/sdk/models/shared/sourcenotion.go + - internal/sdk/models/shared/sourcenylascreaterequest.go + - internal/sdk/models/shared/sourcenylas.go - internal/sdk/models/shared/sourcenytimescreaterequest.go - internal/sdk/models/shared/sourcenytimes.go - internal/sdk/models/shared/sourceoktacreaterequest.go @@ -1550,10 +1680,14 @@ generatedFiles: - internal/sdk/models/shared/sourcepersistiq.go - internal/sdk/models/shared/sourcepexelsapicreaterequest.go - internal/sdk/models/shared/sourcepexelsapi.go + - internal/sdk/models/shared/sourcepicqercreaterequest.go + - internal/sdk/models/shared/sourcepicqer.go - internal/sdk/models/shared/sourcepinterestcreaterequest.go - internal/sdk/models/shared/sourcepinterest.go - internal/sdk/models/shared/sourcepipedrivecreaterequest.go - internal/sdk/models/shared/sourcepipedrive.go + - internal/sdk/models/shared/sourcepiwikcreaterequest.go + - internal/sdk/models/shared/sourcepiwik.go - internal/sdk/models/shared/sourceplanhatcreaterequest.go - internal/sdk/models/shared/sourceplanhat.go - internal/sdk/models/shared/sourcepocketcreaterequest.go @@ -1570,6 +1704,10 @@ generatedFiles: - internal/sdk/models/shared/sourcepostmarkapp.go - internal/sdk/models/shared/sourceprestashopcreaterequest.go - internal/sdk/models/shared/sourceprestashop.go + - internal/sdk/models/shared/sourceproductboardcreaterequest.go + - internal/sdk/models/shared/sourceproductboard.go + - internal/sdk/models/shared/sourceproductivecreaterequest.go + - internal/sdk/models/shared/sourceproductive.go - internal/sdk/models/shared/sourcepypicreaterequest.go - internal/sdk/models/shared/sourcepypi.go - internal/sdk/models/shared/sourcequalaroocreaterequest.go @@ -1622,6 +1760,8 @@ generatedFiles: - internal/sdk/models/shared/sourcesftpbulk.go - internal/sdk/models/shared/sourceshopifycreaterequest.go - internal/sdk/models/shared/sourceshopify.go + - internal/sdk/models/shared/sourceshortcutcreaterequest.go + - internal/sdk/models/shared/sourceshortcut.go - internal/sdk/models/shared/sourceshortiocreaterequest.go - internal/sdk/models/shared/sourceshortio.go - internal/sdk/models/shared/sourceslackcreaterequest.go @@ -1650,6 +1790,10 @@ generatedFiles: - internal/sdk/models/shared/sourcesurveysparrow.go - internal/sdk/models/shared/sourcesurveymonkeycreaterequest.go - internal/sdk/models/shared/sourcesurveymonkey.go + - internal/sdk/models/shared/sourcesurvicatecreaterequest.go + - internal/sdk/models/shared/sourcesurvicate.go + - internal/sdk/models/shared/sourceteamworkcreaterequest.go + - internal/sdk/models/shared/sourceteamwork.go - internal/sdk/models/shared/sourcetempocreaterequest.go - internal/sdk/models/shared/sourcetempo.go - internal/sdk/models/shared/sourcetheguardianapicreaterequest.go @@ -1676,6 +1820,8 @@ generatedFiles: - internal/sdk/models/shared/sourcevantage.go - internal/sdk/models/shared/sourcewebflowcreaterequest.go - internal/sdk/models/shared/sourcewebflow.go + - internal/sdk/models/shared/sourcewheniworkcreaterequest.go + - internal/sdk/models/shared/sourcewheniwork.go - internal/sdk/models/shared/sourcewhiskyhuntercreaterequest.go - internal/sdk/models/shared/sourcewhiskyhunter.go - internal/sdk/models/shared/sourcewikipediapageviewscreaterequest.go @@ -1692,8 +1838,6 @@ generatedFiles: - internal/sdk/models/shared/sourceyoutubeanalytics.go - internal/sdk/models/shared/sourcezendeskchatcreaterequest.go - internal/sdk/models/shared/sourcezendeskchat.go - - internal/sdk/models/shared/sourcezendesksellcreaterequest.go - - internal/sdk/models/shared/sourcezendesksell.go - internal/sdk/models/shared/sourcezendesksunshinecreaterequest.go - internal/sdk/models/shared/sourcezendesksunshine.go - internal/sdk/models/shared/sourcezendesksupportcreaterequest.go @@ -1710,6 +1854,8 @@ generatedFiles: - internal/sdk/models/shared/sourcesresponse.go - internal/sdk/models/shared/sourcepatchrequest.go - internal/sdk/models/shared/sourceputrequest.go + - internal/sdk/models/shared/source7shiftsputrequest.go + - internal/sdk/models/shared/source7shiftsupdate.go - internal/sdk/models/shared/sourceahaputrequest.go - internal/sdk/models/shared/sourceahaupdate.go - internal/sdk/models/shared/sourceairbyteputrequest.go @@ -1728,6 +1874,10 @@ generatedFiles: - internal/sdk/models/shared/sourceamplitudeupdate.go - internal/sdk/models/shared/sourceapifydatasetputrequest.go - internal/sdk/models/shared/sourceapifydatasetupdate.go + - internal/sdk/models/shared/sourceappcuesputrequest.go + - internal/sdk/models/shared/sourceappcuesupdate.go + - internal/sdk/models/shared/sourceappfiguresputrequest.go + - internal/sdk/models/shared/sourceappfiguresupdate.go - internal/sdk/models/shared/sourceappfollowputrequest.go - internal/sdk/models/shared/sourceappfollowupdate.go - internal/sdk/models/shared/sourceasanaputrequest.go @@ -1748,20 +1898,34 @@ generatedFiles: - internal/sdk/models/shared/sourcebigqueryupdate.go - internal/sdk/models/shared/sourcebingadsputrequest.go - internal/sdk/models/shared/sourcebingadsupdate.go + - internal/sdk/models/shared/sourcebitlyputrequest.go + - internal/sdk/models/shared/sourcebitlyupdate.go - internal/sdk/models/shared/sourcebraintreeputrequest.go - 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/sourcebrevoputrequest.go + - internal/sdk/models/shared/sourcebrevoupdate.go + - internal/sdk/models/shared/sourcebuildkiteputrequest.go + - internal/sdk/models/shared/sourcebuildkiteupdate.go + - internal/sdk/models/shared/sourcebuzzsproutputrequest.go + - internal/sdk/models/shared/sourcebuzzsproutupdate.go - internal/sdk/models/shared/sourcecalendlyputrequest.go - internal/sdk/models/shared/sourcecalendlyupdate.go + - internal/sdk/models/shared/sourcecannyputrequest.go + - internal/sdk/models/shared/sourcecannyupdate.go - internal/sdk/models/shared/sourcecartputrequest.go - internal/sdk/models/shared/sourcecartupdate.go + - internal/sdk/models/shared/sourcechameleonputrequest.go + - internal/sdk/models/shared/sourcechameleonupdate.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/sourcecimisputrequest.go + - internal/sdk/models/shared/sourcecimisupdate.go - internal/sdk/models/shared/sourceclazarputrequest.go - internal/sdk/models/shared/sourceclazarupdate.go - internal/sdk/models/shared/sourceclickhouseputrequest.go @@ -1807,6 +1971,8 @@ generatedFiles: - internal/sdk/models/shared/sourceemailoctopusupdate.go - internal/sdk/models/shared/sourceexchangeratesputrequest.go - internal/sdk/models/shared/sourceexchangeratesupdate.go + - internal/sdk/models/shared/sourceezofficeinventoryputrequest.go + - internal/sdk/models/shared/sourceezofficeinventoryupdate.go - internal/sdk/models/shared/sourcefacebookmarketingputrequest.go - internal/sdk/models/shared/sourcefacebookmarketingupdate.go - internal/sdk/models/shared/sourcefakerputrequest.go @@ -1825,6 +1991,8 @@ generatedFiles: - internal/sdk/models/shared/sourcefreshdeskupdate.go - internal/sdk/models/shared/sourcefreshsalesputrequest.go - internal/sdk/models/shared/sourcefreshsalesupdate.go + - internal/sdk/models/shared/sourcefrontputrequest.go + - internal/sdk/models/shared/sourcefrontupdate.go - internal/sdk/models/shared/sourcegainsightpxputrequest.go - internal/sdk/models/shared/sourcegainsightpxupdate.go - internal/sdk/models/shared/sourcegcsputrequest.go @@ -1855,16 +2023,22 @@ generatedFiles: - internal/sdk/models/shared/sourcegooglesearchconsoleupdate.go - internal/sdk/models/shared/sourcegooglesheetsputrequest.go - internal/sdk/models/shared/sourcegooglesheetsupdate.go + - internal/sdk/models/shared/sourcegoogletasksputrequest.go + - internal/sdk/models/shared/sourcegoogletasksupdate.go - internal/sdk/models/shared/sourcegooglewebfontsputrequest.go - internal/sdk/models/shared/sourcegooglewebfontsupdate.go - internal/sdk/models/shared/sourcegreenhouseputrequest.go - internal/sdk/models/shared/sourcegreenhouseupdate.go - internal/sdk/models/shared/sourcegridlyputrequest.go - internal/sdk/models/shared/sourcegridlyupdate.go + - internal/sdk/models/shared/sourceguruputrequest.go + - internal/sdk/models/shared/sourceguruupdate.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/sourceheightputrequest.go + - internal/sdk/models/shared/sourceheightupdate.go - internal/sdk/models/shared/sourcehibobputrequest.go - internal/sdk/models/shared/sourcehibobupdate.go - internal/sdk/models/shared/sourcehighlevelputrequest.go @@ -1887,6 +2061,8 @@ generatedFiles: - internal/sdk/models/shared/sourceiterableupdate.go - internal/sdk/models/shared/sourcejiraputrequest.go - internal/sdk/models/shared/sourcejiraupdate.go + - internal/sdk/models/shared/sourcejotformputrequest.go + - internal/sdk/models/shared/sourcejotformupdate.go - internal/sdk/models/shared/sourcek6cloudputrequest.go - internal/sdk/models/shared/sourcek6cloudupdate.go - internal/sdk/models/shared/sourceklarnaputrequest.go @@ -1949,6 +2125,8 @@ generatedFiles: - internal/sdk/models/shared/sourcenorthpasslmsupdate.go - internal/sdk/models/shared/sourcenotionputrequest.go - internal/sdk/models/shared/sourcenotionupdate.go + - internal/sdk/models/shared/sourcenylasputrequest.go + - internal/sdk/models/shared/sourcenylasupdate.go - internal/sdk/models/shared/sourcenytimesputrequest.go - internal/sdk/models/shared/sourcenytimesupdate.go - internal/sdk/models/shared/sourceoktaputrequest.go @@ -1979,10 +2157,14 @@ generatedFiles: - internal/sdk/models/shared/sourcepersistiqupdate.go - internal/sdk/models/shared/sourcepexelsapiputrequest.go - internal/sdk/models/shared/sourcepexelsapiupdate.go + - internal/sdk/models/shared/sourcepicqerputrequest.go + - internal/sdk/models/shared/sourcepicqerupdate.go - internal/sdk/models/shared/sourcepinterestputrequest.go - internal/sdk/models/shared/sourcepinterestupdate.go - internal/sdk/models/shared/sourcepipedriveputrequest.go - internal/sdk/models/shared/sourcepipedriveupdate.go + - internal/sdk/models/shared/sourcepiwikputrequest.go + - internal/sdk/models/shared/sourcepiwikupdate.go - internal/sdk/models/shared/sourceplanhatputrequest.go - internal/sdk/models/shared/sourceplanhatupdate.go - internal/sdk/models/shared/sourcepocketputrequest.go @@ -1999,6 +2181,10 @@ generatedFiles: - internal/sdk/models/shared/sourcepostmarkappupdate.go - internal/sdk/models/shared/sourceprestashopputrequest.go - internal/sdk/models/shared/sourceprestashopupdate.go + - internal/sdk/models/shared/sourceproductboardputrequest.go + - internal/sdk/models/shared/sourceproductboardupdate.go + - internal/sdk/models/shared/sourceproductiveputrequest.go + - internal/sdk/models/shared/sourceproductiveupdate.go - internal/sdk/models/shared/sourcepypiputrequest.go - internal/sdk/models/shared/sourcepypiupdate.go - internal/sdk/models/shared/sourcequalarooputrequest.go @@ -2051,6 +2237,8 @@ generatedFiles: - internal/sdk/models/shared/sourcesftpbulkupdate.go - internal/sdk/models/shared/sourceshopifyputrequest.go - internal/sdk/models/shared/sourceshopifyupdate.go + - internal/sdk/models/shared/sourceshortcutputrequest.go + - internal/sdk/models/shared/sourceshortcutupdate.go - internal/sdk/models/shared/sourceshortioputrequest.go - internal/sdk/models/shared/sourceshortioupdate.go - internal/sdk/models/shared/sourceslackputrequest.go @@ -2079,6 +2267,10 @@ generatedFiles: - internal/sdk/models/shared/sourcesurveysparrowupdate.go - internal/sdk/models/shared/sourcesurveymonkeyputrequest.go - internal/sdk/models/shared/sourcesurveymonkeyupdate.go + - internal/sdk/models/shared/sourcesurvicateputrequest.go + - internal/sdk/models/shared/sourcesurvicateupdate.go + - internal/sdk/models/shared/sourceteamworkputrequest.go + - internal/sdk/models/shared/sourceteamworkupdate.go - internal/sdk/models/shared/sourcetempoputrequest.go - internal/sdk/models/shared/sourcetempoupdate.go - internal/sdk/models/shared/sourcetheguardianapiputrequest.go @@ -2105,6 +2297,8 @@ generatedFiles: - internal/sdk/models/shared/sourcevantageupdate.go - internal/sdk/models/shared/sourcewebflowputrequest.go - internal/sdk/models/shared/sourcewebflowupdate.go + - internal/sdk/models/shared/sourcewheniworkputrequest.go + - internal/sdk/models/shared/sourcewheniworkupdate.go - internal/sdk/models/shared/sourcewhiskyhunterputrequest.go - internal/sdk/models/shared/sourcewhiskyhunterupdate.go - internal/sdk/models/shared/sourcewikipediapageviewsputrequest.go @@ -2121,8 +2315,6 @@ generatedFiles: - internal/sdk/models/shared/sourceyoutubeanalyticsupdate.go - internal/sdk/models/shared/sourcezendeskchatputrequest.go - internal/sdk/models/shared/sourcezendeskchatupdate.go - - internal/sdk/models/shared/sourcezendesksellputrequest.go - - internal/sdk/models/shared/sourcezendesksellupdate.go - internal/sdk/models/shared/sourcezendesksunshineputrequest.go - internal/sdk/models/shared/sourcezendesksunshineupdate.go - internal/sdk/models/shared/sourcezendesksupportputrequest.go @@ -2240,8 +2432,6 @@ generatedFiles: - 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 - internal/provider/types/destination_duckdb.go - internal/provider/types/destination_dynamodb.go - internal/provider/types/api_key_secret.go @@ -2286,7 +2476,13 @@ generatedFiles: - internal/provider/types/destination_mssql_ssl_method.go - internal/provider/types/destination_mssql.go - internal/provider/types/destination_mysql.go + - internal/provider/types/native_network_encryption_nne.go + - internal/provider/types/tls_encrypted_verify_certificate.go + - internal/provider/types/destination_oracle_encryption.go - internal/provider/types/destination_oracle.go + - internal/provider/types/destination_pgvector_credentials.go + - internal/provider/types/destination_pgvector_postgres_connection.go + - internal/provider/types/destination_pgvector.go - internal/provider/types/destination_pinecone_indexing.go - internal/provider/types/destination_pinecone.go - internal/provider/types/verify_ca.go @@ -2311,7 +2507,6 @@ generatedFiles: - internal/provider/types/destination_sftp_json.go - internal/provider/types/key_pair_authentication.go - internal/provider/types/destination_snowflake_o_auth20.go - - internal/provider/types/username_and_password.go - internal/provider/types/destination_snowflake_authorization_method.go - internal/provider/types/destination_snowflake.go - internal/provider/types/destination_snowflake_cortex_snowflake_connection.go @@ -2330,6 +2525,7 @@ generatedFiles: - internal/provider/types/destination_weaviate_indexing.go - internal/provider/types/destination_weaviate.go - internal/provider/types/destination_yellowbrick.go + - internal/provider/types/source7shifts.go - internal/provider/types/source_aha.go - internal/provider/types/source_airbyte.go - internal/provider/types/source_aircall.go @@ -2343,6 +2539,8 @@ generatedFiles: - internal/provider/types/source_amazon_sqs.go - internal/provider/types/source_amplitude.go - internal/provider/types/source_apify_dataset.go + - internal/provider/types/source_appcues.go + - internal/provider/types/source_appfigures.go - internal/provider/types/source_appfollow.go - internal/provider/types/source_asana_authentication_mechanism.go - internal/provider/types/source_asana.go @@ -2372,15 +2570,19 @@ generatedFiles: - internal/provider/types/account_names.go - internal/provider/types/custom_report_config.go - internal/provider/types/source_bing_ads.go + - internal/provider/types/source_bitly.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/source_brevo.go + - internal/provider/types/source_buzzsprout.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_chameleon.go - internal/provider/types/source_chargebee.go + - internal/provider/types/source_cimis.go - internal/provider/types/source_clickhouse.go - internal/provider/types/source_clickup_api.go - internal/provider/types/source_clockify.go @@ -2403,6 +2605,7 @@ generatedFiles: - internal/provider/types/source_dynamodb_credentials.go - internal/provider/types/source_dynamodb.go - internal/provider/types/source_exchange_rates.go + - internal/provider/types/source_ezofficeinventory.go - internal/provider/types/authenticate_via_facebook_marketing_oauth.go - internal/provider/types/source_facebook_marketing_authentication.go - internal/provider/types/insight_config.go @@ -2415,7 +2618,7 @@ generatedFiles: - internal/provider/types/az_blob_azure_blob_storage.go - internal/provider/types/gcs_google_cloud_storage.go - internal/provider/types/https_public_web.go - - internal/provider/types/source_file_s3_amazon_web_services.go + - internal/provider/types/s3_amazon_web_services.go - internal/provider/types/scp_secure_copy_protocol.go - internal/provider/types/source_file_storage_provider.go - internal/provider/types/source_file.go @@ -2424,6 +2627,7 @@ generatedFiles: - internal/provider/types/source_freshcaller.go - internal/provider/types/source_freshdesk.go - internal/provider/types/source_freshsales.go + - internal/provider/types/source_front.go - internal/provider/types/api_parameter_config_model.go - internal/provider/types/via_api.go - internal/provider/types/source_gcs_processing.go @@ -2471,9 +2675,6 @@ generatedFiles: - internal/provider/types/source_google_directory.go - internal/provider/types/source_google_drive_service_account_key_authentication.go - internal/provider/types/source_google_drive_authentication.go - - internal/provider/types/source_google_drive_csv_format.go - - internal/provider/types/source_google_drive_format.go - - internal/provider/types/source_google_drive_file_based_stream_config.go - internal/provider/types/source_google_drive.go - internal/provider/types/source_google_pagespeed_insights.go - internal/provider/types/source_google_search_console_service_account_key_authentication.go @@ -2481,13 +2682,16 @@ generatedFiles: - internal/provider/types/source_google_search_console_custom_report_config.go - internal/provider/types/source_google_search_console.go - internal/provider/types/source_google_sheets.go + - internal/provider/types/source_google_tasks.go - internal/provider/types/source_google_webfonts.go - internal/provider/types/source_gridly.go + - internal/provider/types/source_guru.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_height.go - internal/provider/types/source_hibob.go - internal/provider/types/source_high_level.go - internal/provider/types/source_hubspot_authentication.go @@ -2497,6 +2701,10 @@ generatedFiles: - internal/provider/types/source_intercom.go - internal/provider/types/source_ip2whois.go - internal/provider/types/source_jira.go + - internal/provider/types/basic.go + - internal/provider/types/enterprise.go + - internal/provider/types/source_jotform_api_endpoint.go + - internal/provider/types/source_jotform.go - internal/provider/types/source_k6_cloud.go - internal/provider/types/source_klarna.go - internal/provider/types/source_klaviyo.go @@ -2558,6 +2766,7 @@ generatedFiles: - internal/provider/types/source_notion_o_auth20.go - internal/provider/types/source_notion_authentication_method.go - internal/provider/types/source_notion.go + - internal/provider/types/source_nylas.go - internal/provider/types/source_nytimes.go - internal/provider/types/o_auth20_with_private_key.go - internal/provider/types/source_okta_authorization_method.go @@ -2567,9 +2776,6 @@ generatedFiles: - internal/provider/types/service_name.go - internal/provider/types/system_idsid.go - internal/provider/types/source_oracle_connect_by.go - - internal/provider/types/native_network_encryption_nne.go - - internal/provider/types/tls_encrypted_verify_certificate.go - - internal/provider/types/source_oracle_encryption.go - internal/provider/types/source_oracle.go - internal/provider/types/source_orb.go - internal/provider/types/source_orbit.go @@ -2580,9 +2786,11 @@ generatedFiles: - internal/provider/types/source_paystack.go - internal/provider/types/source_pennylane.go - internal/provider/types/source_pexels_api.go + - internal/provider/types/source_picqer.go - internal/provider/types/report_config.go - internal/provider/types/source_pinterest.go - internal/provider/types/source_pipedrive.go + - internal/provider/types/source_piwik.go - internal/provider/types/source_pocket.go - internal/provider/types/source_pokeapi.go - internal/provider/types/source_polygon_stock_api.go @@ -2594,6 +2802,7 @@ generatedFiles: - internal/provider/types/source_posthog.go - internal/provider/types/source_postmarkapp.go - internal/provider/types/source_prestashop.go + - internal/provider/types/source_productive.go - internal/provider/types/source_pypi.go - internal/provider/types/source_qualaroo.go - internal/provider/types/source_railz.go @@ -2608,12 +2817,6 @@ generatedFiles: - internal/provider/types/source_retently.go - internal/provider/types/source_rki_covid.go - internal/provider/types/source_rss.go - - internal/provider/types/csv.go - - internal/provider/types/jsonl.go - - 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 @@ -2633,6 +2836,7 @@ generatedFiles: - internal/provider/types/source_shopify_o_auth20.go - internal/provider/types/source_shopify_shopify_authorization_method.go - internal/provider/types/source_shopify.go + - internal/provider/types/source_shortcut.go - internal/provider/types/source_shortio.go - internal/provider/types/source_slack_authentication_mechanism.go - internal/provider/types/source_slack.go @@ -2653,6 +2857,7 @@ generatedFiles: - internal/provider/types/source_surveymonkey.go - internal/provider/types/source_survey_sparrow_base_url.go - internal/provider/types/source_survey_sparrow.go + - internal/provider/types/source_teamwork.go - internal/provider/types/source_the_guardian_api.go - internal/provider/types/source_tiktok_marketing_o_auth20.go - internal/provider/types/sandbox_access_token.go @@ -2669,6 +2874,7 @@ generatedFiles: - internal/provider/types/source_typeform.go - internal/provider/types/source_us_census.go - internal/provider/types/source_webflow.go + - internal/provider/types/source_when_i_work.go - internal/provider/types/source_wikipedia_pageviews.go - internal/provider/types/source_woocommerce.go - internal/provider/types/source_xkcd.go @@ -2728,10 +2934,6 @@ generatedFiles: - internal/provider/destination_databricks_resource.go - internal/provider/destination_databricks_resource_sdk.go - examples/resources/airbyte_destination_databricks/resource.tf - - examples/resources/airbyte_destination_dev_null/import.sh - - internal/provider/destination_devnull_resource.go - - internal/provider/destination_devnull_resource_sdk.go - - examples/resources/airbyte_destination_dev_null/resource.tf - examples/resources/airbyte_destination_duckdb/import.sh - internal/provider/destination_duckdb_resource.go - internal/provider/destination_duckdb_resource_sdk.go @@ -2780,6 +2982,10 @@ generatedFiles: - internal/provider/destination_oracle_resource.go - internal/provider/destination_oracle_resource_sdk.go - examples/resources/airbyte_destination_oracle/resource.tf + - examples/resources/airbyte_destination_pgvector/import.sh + - internal/provider/destination_pgvector_resource.go + - internal/provider/destination_pgvector_resource_sdk.go + - examples/resources/airbyte_destination_pgvector/resource.tf - examples/resources/airbyte_destination_pinecone/import.sh - internal/provider/destination_pinecone_resource.go - internal/provider/destination_pinecone_resource_sdk.go @@ -2852,6 +3058,10 @@ generatedFiles: - internal/provider/permission_resource.go - internal/provider/permission_resource_sdk.go - examples/resources/airbyte_permission/resource.tf + - examples/resources/airbyte_source_7shifts/import.sh + - internal/provider/source_7shifts_resource.go + - internal/provider/source_7shifts_resource_sdk.go + - examples/resources/airbyte_source_7shifts/resource.tf - examples/resources/airbyte_source_aha/import.sh - internal/provider/source_aha_resource.go - internal/provider/source_aha_resource_sdk.go @@ -2888,6 +3098,14 @@ generatedFiles: - internal/provider/source_apifydataset_resource.go - internal/provider/source_apifydataset_resource_sdk.go - examples/resources/airbyte_source_apify_dataset/resource.tf + - examples/resources/airbyte_source_appcues/import.sh + - internal/provider/source_appcues_resource.go + - internal/provider/source_appcues_resource_sdk.go + - examples/resources/airbyte_source_appcues/resource.tf + - examples/resources/airbyte_source_appfigures/import.sh + - internal/provider/source_appfigures_resource.go + - internal/provider/source_appfigures_resource_sdk.go + - examples/resources/airbyte_source_appfigures/resource.tf - examples/resources/airbyte_source_appfollow/import.sh - internal/provider/source_appfollow_resource.go - internal/provider/source_appfollow_resource_sdk.go @@ -2928,6 +3146,10 @@ generatedFiles: - internal/provider/source_bingads_resource.go - internal/provider/source_bingads_resource_sdk.go - examples/resources/airbyte_source_bing_ads/resource.tf + - examples/resources/airbyte_source_bitly/import.sh + - internal/provider/source_bitly_resource.go + - internal/provider/source_bitly_resource_sdk.go + - examples/resources/airbyte_source_bitly/resource.tf - examples/resources/airbyte_source_braintree/import.sh - internal/provider/source_braintree_resource.go - internal/provider/source_braintree_resource_sdk.go @@ -2940,14 +3162,34 @@ generatedFiles: - 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_brevo/import.sh + - internal/provider/source_brevo_resource.go + - internal/provider/source_brevo_resource_sdk.go + - examples/resources/airbyte_source_brevo/resource.tf + - examples/resources/airbyte_source_buildkite/import.sh + - internal/provider/source_buildkite_resource.go + - internal/provider/source_buildkite_resource_sdk.go + - examples/resources/airbyte_source_buildkite/resource.tf + - examples/resources/airbyte_source_buzzsprout/import.sh + - internal/provider/source_buzzsprout_resource.go + - internal/provider/source_buzzsprout_resource_sdk.go + - examples/resources/airbyte_source_buzzsprout/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_canny/import.sh + - internal/provider/source_canny_resource.go + - internal/provider/source_canny_resource_sdk.go + - examples/resources/airbyte_source_canny/resource.tf - examples/resources/airbyte_source_cart/import.sh - internal/provider/source_cart_resource.go - internal/provider/source_cart_resource_sdk.go - examples/resources/airbyte_source_cart/resource.tf + - examples/resources/airbyte_source_chameleon/import.sh + - internal/provider/source_chameleon_resource.go + - internal/provider/source_chameleon_resource_sdk.go + - examples/resources/airbyte_source_chameleon/resource.tf - examples/resources/airbyte_source_chargebee/import.sh - internal/provider/source_chargebee_resource.go - internal/provider/source_chargebee_resource_sdk.go @@ -2956,6 +3198,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_cimis/import.sh + - internal/provider/source_cimis_resource.go + - internal/provider/source_cimis_resource_sdk.go + - examples/resources/airbyte_source_cimis/resource.tf - examples/resources/airbyte_source_clazar/import.sh - internal/provider/source_clazar_resource.go - internal/provider/source_clazar_resource_sdk.go @@ -3048,6 +3294,10 @@ generatedFiles: - internal/provider/source_exchangerates_resource.go - internal/provider/source_exchangerates_resource_sdk.go - examples/resources/airbyte_source_exchange_rates/resource.tf + - examples/resources/airbyte_source_ezofficeinventory/import.sh + - internal/provider/source_ezofficeinventory_resource.go + - internal/provider/source_ezofficeinventory_resource_sdk.go + - examples/resources/airbyte_source_ezofficeinventory/resource.tf - examples/resources/airbyte_source_facebook_marketing/import.sh - internal/provider/source_facebookmarketing_resource.go - internal/provider/source_facebookmarketing_resource_sdk.go @@ -3084,6 +3334,10 @@ generatedFiles: - internal/provider/source_freshsales_resource.go - internal/provider/source_freshsales_resource_sdk.go - examples/resources/airbyte_source_freshsales/resource.tf + - examples/resources/airbyte_source_front/import.sh + - internal/provider/source_front_resource.go + - internal/provider/source_front_resource_sdk.go + - examples/resources/airbyte_source_front/resource.tf - examples/resources/airbyte_source_gainsight_px/import.sh - internal/provider/source_gainsightpx_resource.go - internal/provider/source_gainsightpx_resource_sdk.go @@ -3144,6 +3398,10 @@ generatedFiles: - internal/provider/source_googlesheets_resource.go - internal/provider/source_googlesheets_resource_sdk.go - examples/resources/airbyte_source_google_sheets/resource.tf + - examples/resources/airbyte_source_google_tasks/import.sh + - internal/provider/source_googletasks_resource.go + - internal/provider/source_googletasks_resource_sdk.go + - examples/resources/airbyte_source_google_tasks/resource.tf - examples/resources/airbyte_source_google_webfonts/import.sh - internal/provider/source_googlewebfonts_resource.go - internal/provider/source_googlewebfonts_resource_sdk.go @@ -3156,6 +3414,10 @@ 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_guru/import.sh + - internal/provider/source_guru_resource.go + - internal/provider/source_guru_resource_sdk.go + - examples/resources/airbyte_source_guru/resource.tf - examples/resources/airbyte_source_hardcoded_records/import.sh - internal/provider/source_hardcodedrecords_resource.go - internal/provider/source_hardcodedrecords_resource_sdk.go @@ -3164,6 +3426,10 @@ generatedFiles: - internal/provider/source_harvest_resource.go - internal/provider/source_harvest_resource_sdk.go - examples/resources/airbyte_source_harvest/resource.tf + - examples/resources/airbyte_source_height/import.sh + - internal/provider/source_height_resource.go + - internal/provider/source_height_resource_sdk.go + - examples/resources/airbyte_source_height/resource.tf - examples/resources/airbyte_source_hibob/import.sh - internal/provider/source_hibob_resource.go - internal/provider/source_hibob_resource_sdk.go @@ -3208,6 +3474,10 @@ generatedFiles: - internal/provider/source_jira_resource.go - internal/provider/source_jira_resource_sdk.go - examples/resources/airbyte_source_jira/resource.tf + - examples/resources/airbyte_source_jotform/import.sh + - internal/provider/source_jotform_resource.go + - internal/provider/source_jotform_resource_sdk.go + - examples/resources/airbyte_source_jotform/resource.tf - examples/resources/airbyte_source_k6_cloud/import.sh - internal/provider/source_k6cloud_resource.go - internal/provider/source_k6cloud_resource_sdk.go @@ -3332,6 +3602,10 @@ generatedFiles: - internal/provider/source_notion_resource.go - internal/provider/source_notion_resource_sdk.go - examples/resources/airbyte_source_notion/resource.tf + - examples/resources/airbyte_source_nylas/import.sh + - internal/provider/source_nylas_resource.go + - internal/provider/source_nylas_resource_sdk.go + - examples/resources/airbyte_source_nylas/resource.tf - examples/resources/airbyte_source_nytimes/import.sh - internal/provider/source_nytimes_resource.go - internal/provider/source_nytimes_resource_sdk.go @@ -3392,6 +3666,10 @@ generatedFiles: - internal/provider/source_pexelsapi_resource.go - internal/provider/source_pexelsapi_resource_sdk.go - examples/resources/airbyte_source_pexels_api/resource.tf + - examples/resources/airbyte_source_picqer/import.sh + - internal/provider/source_picqer_resource.go + - internal/provider/source_picqer_resource_sdk.go + - examples/resources/airbyte_source_picqer/resource.tf - examples/resources/airbyte_source_pinterest/import.sh - internal/provider/source_pinterest_resource.go - internal/provider/source_pinterest_resource_sdk.go @@ -3400,6 +3678,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_piwik/import.sh + - internal/provider/source_piwik_resource.go + - internal/provider/source_piwik_resource_sdk.go + - examples/resources/airbyte_source_piwik/resource.tf - examples/resources/airbyte_source_planhat/import.sh - internal/provider/source_planhat_resource.go - internal/provider/source_planhat_resource_sdk.go @@ -3432,6 +3714,14 @@ 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_productboard/import.sh + - internal/provider/source_productboard_resource.go + - internal/provider/source_productboard_resource_sdk.go + - examples/resources/airbyte_source_productboard/resource.tf + - examples/resources/airbyte_source_productive/import.sh + - internal/provider/source_productive_resource.go + - internal/provider/source_productive_resource_sdk.go + - examples/resources/airbyte_source_productive/resource.tf - examples/resources/airbyte_source_pypi/import.sh - internal/provider/source_pypi_resource.go - internal/provider/source_pypi_resource_sdk.go @@ -3536,6 +3826,10 @@ generatedFiles: - internal/provider/source_shopify_resource.go - internal/provider/source_shopify_resource_sdk.go - examples/resources/airbyte_source_shopify/resource.tf + - examples/resources/airbyte_source_shortcut/import.sh + - internal/provider/source_shortcut_resource.go + - internal/provider/source_shortcut_resource_sdk.go + - examples/resources/airbyte_source_shortcut/resource.tf - examples/resources/airbyte_source_shortio/import.sh - internal/provider/source_shortio_resource.go - internal/provider/source_shortio_resource_sdk.go @@ -3592,6 +3886,14 @@ generatedFiles: - internal/provider/source_surveysparrow_resource.go - internal/provider/source_surveysparrow_resource_sdk.go - examples/resources/airbyte_source_survey_sparrow/resource.tf + - examples/resources/airbyte_source_survicate/import.sh + - internal/provider/source_survicate_resource.go + - internal/provider/source_survicate_resource_sdk.go + - examples/resources/airbyte_source_survicate/resource.tf + - examples/resources/airbyte_source_teamwork/import.sh + - internal/provider/source_teamwork_resource.go + - internal/provider/source_teamwork_resource_sdk.go + - examples/resources/airbyte_source_teamwork/resource.tf - examples/resources/airbyte_source_tempo/import.sh - internal/provider/source_tempo_resource.go - internal/provider/source_tempo_resource_sdk.go @@ -3644,6 +3946,10 @@ generatedFiles: - internal/provider/source_webflow_resource.go - internal/provider/source_webflow_resource_sdk.go - examples/resources/airbyte_source_webflow/resource.tf + - examples/resources/airbyte_source_when_i_work/import.sh + - internal/provider/source_wheniwork_resource.go + - internal/provider/source_wheniwork_resource_sdk.go + - examples/resources/airbyte_source_when_i_work/resource.tf - examples/resources/airbyte_source_whisky_hunter/import.sh - internal/provider/source_whiskyhunter_resource.go - internal/provider/source_whiskyhunter_resource_sdk.go @@ -3676,10 +3982,6 @@ generatedFiles: - internal/provider/source_zendeskchat_resource.go - internal/provider/source_zendeskchat_resource_sdk.go - examples/resources/airbyte_source_zendesk_chat/resource.tf - - examples/resources/airbyte_source_zendesk_sell/import.sh - - internal/provider/source_zendesksell_resource.go - - internal/provider/source_zendesksell_resource_sdk.go - - examples/resources/airbyte_source_zendesk_sell/resource.tf - examples/resources/airbyte_source_zendesk_sunshine/import.sh - internal/provider/source_zendesksunshine_resource.go - internal/provider/source_zendesksunshine_resource_sdk.go @@ -3735,9 +4037,6 @@ generatedFiles: - internal/provider/destination_databricks_data_source.go - internal/provider/destination_databricks_data_source_sdk.go - examples/data-sources/airbyte_destination_databricks/data-source.tf - - internal/provider/destination_devnull_data_source.go - - internal/provider/destination_devnull_data_source_sdk.go - - examples/data-sources/airbyte_destination_dev_null/data-source.tf - internal/provider/destination_duckdb_data_source.go - internal/provider/destination_duckdb_data_source_sdk.go - examples/data-sources/airbyte_destination_duckdb/data-source.tf @@ -3774,6 +4073,9 @@ generatedFiles: - internal/provider/destination_oracle_data_source.go - internal/provider/destination_oracle_data_source_sdk.go - examples/data-sources/airbyte_destination_oracle/data-source.tf + - internal/provider/destination_pgvector_data_source.go + - internal/provider/destination_pgvector_data_source_sdk.go + - examples/data-sources/airbyte_destination_pgvector/data-source.tf - internal/provider/destination_pinecone_data_source.go - internal/provider/destination_pinecone_data_source_sdk.go - examples/data-sources/airbyte_destination_pinecone/data-source.tf @@ -3828,6 +4130,9 @@ generatedFiles: - internal/provider/permission_data_source.go - internal/provider/permission_data_source_sdk.go - examples/data-sources/airbyte_permission/data-source.tf + - internal/provider/source_7shifts_data_source.go + - internal/provider/source_7shifts_data_source_sdk.go + - examples/data-sources/airbyte_source_7shifts/data-source.tf - internal/provider/source_aha_data_source.go - internal/provider/source_aha_data_source_sdk.go - examples/data-sources/airbyte_source_aha/data-source.tf @@ -3855,6 +4160,12 @@ generatedFiles: - internal/provider/source_apifydataset_data_source.go - internal/provider/source_apifydataset_data_source_sdk.go - examples/data-sources/airbyte_source_apify_dataset/data-source.tf + - internal/provider/source_appcues_data_source.go + - internal/provider/source_appcues_data_source_sdk.go + - examples/data-sources/airbyte_source_appcues/data-source.tf + - internal/provider/source_appfigures_data_source.go + - internal/provider/source_appfigures_data_source_sdk.go + - examples/data-sources/airbyte_source_appfigures/data-source.tf - internal/provider/source_appfollow_data_source.go - internal/provider/source_appfollow_data_source_sdk.go - examples/data-sources/airbyte_source_appfollow/data-source.tf @@ -3885,6 +4196,9 @@ generatedFiles: - internal/provider/source_bingads_data_source.go - internal/provider/source_bingads_data_source_sdk.go - examples/data-sources/airbyte_source_bing_ads/data-source.tf + - internal/provider/source_bitly_data_source.go + - internal/provider/source_bitly_data_source_sdk.go + - examples/data-sources/airbyte_source_bitly/data-source.tf - internal/provider/source_braintree_data_source.go - internal/provider/source_braintree_data_source_sdk.go - examples/data-sources/airbyte_source_braintree/data-source.tf @@ -3894,18 +4208,36 @@ generatedFiles: - 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_brevo_data_source.go + - internal/provider/source_brevo_data_source_sdk.go + - examples/data-sources/airbyte_source_brevo/data-source.tf + - internal/provider/source_buildkite_data_source.go + - internal/provider/source_buildkite_data_source_sdk.go + - examples/data-sources/airbyte_source_buildkite/data-source.tf + - internal/provider/source_buzzsprout_data_source.go + - internal/provider/source_buzzsprout_data_source_sdk.go + - examples/data-sources/airbyte_source_buzzsprout/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_canny_data_source.go + - internal/provider/source_canny_data_source_sdk.go + - examples/data-sources/airbyte_source_canny/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 + - internal/provider/source_chameleon_data_source.go + - internal/provider/source_chameleon_data_source_sdk.go + - examples/data-sources/airbyte_source_chameleon/data-source.tf - internal/provider/source_chargebee_data_source.go - internal/provider/source_chargebee_data_source_sdk.go - examples/data-sources/airbyte_source_chargebee/data-source.tf - 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_cimis_data_source.go + - internal/provider/source_cimis_data_source_sdk.go + - examples/data-sources/airbyte_source_cimis/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 @@ -3975,6 +4307,9 @@ generatedFiles: - internal/provider/source_exchangerates_data_source.go - internal/provider/source_exchangerates_data_source_sdk.go - examples/data-sources/airbyte_source_exchange_rates/data-source.tf + - internal/provider/source_ezofficeinventory_data_source.go + - internal/provider/source_ezofficeinventory_data_source_sdk.go + - examples/data-sources/airbyte_source_ezofficeinventory/data-source.tf - internal/provider/source_facebookmarketing_data_source.go - internal/provider/source_facebookmarketing_data_source_sdk.go - examples/data-sources/airbyte_source_facebook_marketing/data-source.tf @@ -4002,6 +4337,9 @@ generatedFiles: - internal/provider/source_freshsales_data_source.go - internal/provider/source_freshsales_data_source_sdk.go - examples/data-sources/airbyte_source_freshsales/data-source.tf + - internal/provider/source_front_data_source.go + - internal/provider/source_front_data_source_sdk.go + - examples/data-sources/airbyte_source_front/data-source.tf - internal/provider/source_gainsightpx_data_source.go - internal/provider/source_gainsightpx_data_source_sdk.go - examples/data-sources/airbyte_source_gainsight_px/data-source.tf @@ -4047,6 +4385,9 @@ generatedFiles: - internal/provider/source_googlesheets_data_source.go - internal/provider/source_googlesheets_data_source_sdk.go - examples/data-sources/airbyte_source_google_sheets/data-source.tf + - internal/provider/source_googletasks_data_source.go + - internal/provider/source_googletasks_data_source_sdk.go + - examples/data-sources/airbyte_source_google_tasks/data-source.tf - internal/provider/source_googlewebfonts_data_source.go - internal/provider/source_googlewebfonts_data_source_sdk.go - examples/data-sources/airbyte_source_google_webfonts/data-source.tf @@ -4056,12 +4397,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_guru_data_source.go + - internal/provider/source_guru_data_source_sdk.go + - examples/data-sources/airbyte_source_guru/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_height_data_source.go + - internal/provider/source_height_data_source_sdk.go + - examples/data-sources/airbyte_source_height/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 @@ -4095,6 +4442,9 @@ generatedFiles: - internal/provider/source_jira_data_source.go - internal/provider/source_jira_data_source_sdk.go - examples/data-sources/airbyte_source_jira/data-source.tf + - internal/provider/source_jotform_data_source.go + - internal/provider/source_jotform_data_source_sdk.go + - examples/data-sources/airbyte_source_jotform/data-source.tf - internal/provider/source_k6cloud_data_source.go - internal/provider/source_k6cloud_data_source_sdk.go - examples/data-sources/airbyte_source_k6_cloud/data-source.tf @@ -4188,6 +4538,9 @@ generatedFiles: - internal/provider/source_notion_data_source.go - internal/provider/source_notion_data_source_sdk.go - examples/data-sources/airbyte_source_notion/data-source.tf + - internal/provider/source_nylas_data_source.go + - internal/provider/source_nylas_data_source_sdk.go + - examples/data-sources/airbyte_source_nylas/data-source.tf - internal/provider/source_nytimes_data_source.go - internal/provider/source_nytimes_data_source_sdk.go - examples/data-sources/airbyte_source_nytimes/data-source.tf @@ -4233,12 +4586,18 @@ generatedFiles: - internal/provider/source_pexelsapi_data_source.go - internal/provider/source_pexelsapi_data_source_sdk.go - examples/data-sources/airbyte_source_pexels_api/data-source.tf + - internal/provider/source_picqer_data_source.go + - internal/provider/source_picqer_data_source_sdk.go + - examples/data-sources/airbyte_source_picqer/data-source.tf - internal/provider/source_pinterest_data_source.go - internal/provider/source_pinterest_data_source_sdk.go - examples/data-sources/airbyte_source_pinterest/data-source.tf - 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_piwik_data_source.go + - internal/provider/source_piwik_data_source_sdk.go + - examples/data-sources/airbyte_source_piwik/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 @@ -4263,6 +4622,12 @@ 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_productboard_data_source.go + - internal/provider/source_productboard_data_source_sdk.go + - examples/data-sources/airbyte_source_productboard/data-source.tf + - internal/provider/source_productive_data_source.go + - internal/provider/source_productive_data_source_sdk.go + - examples/data-sources/airbyte_source_productive/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 @@ -4341,6 +4706,9 @@ generatedFiles: - internal/provider/source_shopify_data_source.go - internal/provider/source_shopify_data_source_sdk.go - examples/data-sources/airbyte_source_shopify/data-source.tf + - internal/provider/source_shortcut_data_source.go + - internal/provider/source_shortcut_data_source_sdk.go + - examples/data-sources/airbyte_source_shortcut/data-source.tf - internal/provider/source_shortio_data_source.go - internal/provider/source_shortio_data_source_sdk.go - examples/data-sources/airbyte_source_shortio/data-source.tf @@ -4383,6 +4751,12 @@ generatedFiles: - internal/provider/source_surveysparrow_data_source.go - internal/provider/source_surveysparrow_data_source_sdk.go - examples/data-sources/airbyte_source_survey_sparrow/data-source.tf + - internal/provider/source_survicate_data_source.go + - internal/provider/source_survicate_data_source_sdk.go + - examples/data-sources/airbyte_source_survicate/data-source.tf + - internal/provider/source_teamwork_data_source.go + - internal/provider/source_teamwork_data_source_sdk.go + - examples/data-sources/airbyte_source_teamwork/data-source.tf - internal/provider/source_tempo_data_source.go - internal/provider/source_tempo_data_source_sdk.go - examples/data-sources/airbyte_source_tempo/data-source.tf @@ -4422,6 +4796,9 @@ generatedFiles: - internal/provider/source_webflow_data_source.go - internal/provider/source_webflow_data_source_sdk.go - examples/data-sources/airbyte_source_webflow/data-source.tf + - internal/provider/source_wheniwork_data_source.go + - internal/provider/source_wheniwork_data_source_sdk.go + - examples/data-sources/airbyte_source_when_i_work/data-source.tf - internal/provider/source_whiskyhunter_data_source.go - internal/provider/source_whiskyhunter_data_source_sdk.go - examples/data-sources/airbyte_source_whisky_hunter/data-source.tf @@ -4446,9 +4823,6 @@ generatedFiles: - internal/provider/source_zendeskchat_data_source.go - internal/provider/source_zendeskchat_data_source_sdk.go - examples/data-sources/airbyte_source_zendesk_chat/data-source.tf - - internal/provider/source_zendesksell_data_source.go - - internal/provider/source_zendesksell_data_source_sdk.go - - examples/data-sources/airbyte_source_zendesk_sell/data-source.tf - internal/provider/source_zendesksunshine_data_source.go - internal/provider/source_zendesksunshine_data_source_sdk.go - examples/data-sources/airbyte_source_zendesk_sunshine/data-source.tf @@ -4580,7 +4954,7 @@ examples: processing: chunk_size: 718347 metadata_fields: - - user.name + - age text_fields: - users.*.name name: @@ -4647,12 +5021,6 @@ examples: 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 @@ -4673,6 +5041,11 @@ examples: database: host: treasured-magnet.com port: "8123" + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: username: Stephania80 name: workspaceId: 793d9adb-6acb-4d0d-9937-77598f451c76 @@ -4795,6 +5168,17 @@ examples: workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e createDestinationElasticsearch: speakeasy-default-create-destination-elasticsearch: + requestBody: + application/json: + configuration: + endpoint: + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + name: + workspaceId: 55565f8a-f42e-41a7-a52c-135563da40b3 responses: "200": application/json: @@ -4893,13 +5277,13 @@ examples: password: Ez8LCTORZrKwNe6 username: Kathlyn.Bergstrom23 collection: - host: tcp://host.docker.internal:19530 + host: tcp://my-local-milvus:19530 processing: chunk_size: 559424 metadata_fields: - - user.name + - user text_fields: - - user.name + - text name: workspaceId: 0c438c16-b8bd-4210-a2f2-f929b7bcff73 responses: @@ -4917,16 +5301,11 @@ examples: application/json: configuration: auth_type: - password: 4BlFffn4LDm2o2l - username: Abdullah_Dooley99 + password: B4D2ol3VltojvEv + username: Cara_Stokes 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: @@ -4967,6 +5346,11 @@ examples: database: host: monstrous-washtub.name port: "3306" + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: username: Lemuel.Kessler name: workspaceId: 5b3b5d12-fc08-44cd-933a-3eccd725c67c @@ -4988,6 +5372,11 @@ examples: port: "1521" schema: airbyte sid: + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: username: Sallie_Howell76 name: workspaceId: 374f175d-2128-496a-b1ac-2a51a5781391 @@ -5000,6 +5389,40 @@ examples: destinationType: postgres name: Analytics Team Postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createDestinationPgvector: + speakeasy-default-create-destination-pgvector: + requestBody: + application/json: + configuration: + embedding: + base_url: https://your-service-name.com + dimensions: 384 + model_name: text-embedding-ada-002 + indexing: + credentials: + password: AIRBYTE_PASSWORD + database: AIRBYTE_DATABASE + default_schema: AIRBYTE_SCHEMA + host: AIRBYTE_ACCOUNT + port: "5432" + username: AIRBYTE_USER + processing: + chunk_size: 755454 + metadata_fields: + - age + text_fields: + - text + name: + workspaceId: 4ff306b3-4c81-45ba-8d48-7b61fec28f72 + 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: @@ -5014,7 +5437,7 @@ examples: processing: chunk_size: 157015 metadata_fields: - - user + - age text_fields: - users.*.name name: @@ -5080,9 +5503,9 @@ examples: processing: chunk_size: 371988 metadata_fields: - - age - text_fields: - user.name + text_fields: + - users.*.name name: workspaceId: 139a8945-5553-41c4-9434-97d1ba7e6905 responses: @@ -5134,7 +5557,7 @@ examples: tunnel_user: uploading_method: access_key_id: - file_name_pattern: '{date}' + file_name_pattern: '{timestamp}' s3_bucket_name: airbyte.staging s3_bucket_path: data_sync/test secret_access_key: @@ -5157,6 +5580,7 @@ examples: configuration: access_key_id: A012345678910EXAMPLE file_name_pattern: '{timestamp}' + format: {} role_arn: arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId s3_bucket_name: airbyte_sync s3_bucket_path: data_sync/test @@ -5252,13 +5676,13 @@ examples: database: AIRBYTE_DATABASE default_schema: AIRBYTE_SCHEMA host: AIRBYTE_ACCOUNT - role: AIRBYTE_ROLE + role: ACCOUNTADMIN username: AIRBYTE_USER warehouse: AIRBYTE_WAREHOUSE processing: chunk_size: 938233 metadata_fields: - - user.name + - user text_fields: - user.name name: @@ -5333,7 +5757,7 @@ examples: client_id: client_secret: text_fields: - - user.name + - text title_field: document_key name: workspaceId: 15c25f0c-7b92-47cd-b614-10842b8bb72c @@ -5495,6 +5919,17 @@ examples: sourceId: 0c31738c-0b2d-4887-b506-e2cd1c39cc35 sourceType: workspaceId: + createSource7shifts: + speakeasy-default-create-source7shifts: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e createSourceAha: speakeasy-default-create-source-aha: responses: @@ -5563,7 +5998,7 @@ examples: client_secret: look_back_window: 10 refresh_token: - start_date: "2022-10-10" + start_date: "2022-10-22" name: workspaceId: bb0de0c1-ea7a-4c14-b003-3c1a293b2e87 responses: @@ -5657,6 +6092,28 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAppcues: + speakeasy-default-create-source-appcues: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceAppfigures: + speakeasy-default-create-source-appfigures: + responses: + "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: @@ -5819,16 +6276,27 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBitly: + speakeasy-default-create-source-bitly: + responses: + "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 + environment: Qa merchant_id: private_key: public_key: - start_date: "2020-12-30" + start_date: "2020-11-22 20:20:05" name: workspaceId: 6d8fdc5d-2ccf-4696-81b2-3531a9aa1f4c responses: @@ -5862,6 +6330,39 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBrevo: + speakeasy-default-create-source-brevo: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBuildkite: + speakeasy-default-create-source-buildkite: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceBuzzsprout: + speakeasy-default-create-source-buzzsprout: + responses: + "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: @@ -5873,6 +6374,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCanny: + speakeasy-default-create-source-canny: + responses: + "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: @@ -5890,6 +6402,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceChameleon: + speakeasy-default-create-source-chameleon: + responses: + "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: @@ -5927,6 +6450,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceCimis: + speakeasy-default-create-source-cimis: + responses: + "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: @@ -5947,10 +6481,10 @@ examples: host: scented-slipper.org port: "8123" tunnel_method: - ssh_key: tunnel_host: tunnel_port: "22" tunnel_user: + tunnel_user_password: username: Fern18 name: workspaceId: a5d02332-c55c-4f50-a97d-78fc5b3630b6 @@ -6043,7 +6577,7 @@ examples: api_key: data_type: historical symbols: - - AVAX + - BTC name: workspaceId: b954b4d2-815c-4f51-a61e-2976c7114b9e responses: @@ -6293,6 +6827,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceEzofficeinventory: + speakeasy-default-create-source-ezofficeinventory: + responses: + "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: @@ -6346,7 +6891,7 @@ examples: configuration: dataset_name: reader_options: '{"sep": " "}' - url: gs://my-google-bucket/data.csv + url: https://storage.googleapis.com/covid19-open-data/v2/latest/epidemiology.csv name: workspaceId: 621fc4a1-2d89-4332-9fd6-49c181e147f8 responses: @@ -6447,6 +6992,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceFront: + speakeasy-default-create-source-front: + responses: + "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: @@ -6495,15 +7051,13 @@ examples: 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 + max_waiting_time: 10 repositories: - - airbytehq/airbyte - repository: airbytehq/airbyte + - airbytehq/another-repo start_date: "2021-03-01T00:00:00Z" name: workspaceId: 7a3aab5f-c9ac-452f-a58d-c99d547ac9c0 @@ -6524,10 +7078,8 @@ examples: 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" @@ -6562,7 +7114,7 @@ examples: 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 + top_headlines_query: Microsoft Windows 10 name: workspaceId: 1bad6b8b-4eb7-4444-ad5b-37cc3026054c responses: @@ -6699,10 +7251,10 @@ examples: client_id: client_secret: refresh_token: - data_state: final + data_state: all end_date: "2021-12-12" site_urls: - - sc-domain:example2.com + - https://example1.com/ name: workspaceId: c2a5437b-5ad8-4b58-90d2-0822b9282a7c responses: @@ -6735,6 +7287,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGoogleTasks: + speakeasy-default-create-source-google-tasks: + responses: + "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: @@ -6768,6 +7331,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceGuru: + speakeasy-default-create-source-guru: + responses: + "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: @@ -6785,7 +7359,6 @@ examples: 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 @@ -6798,6 +7371,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceHeight: + speakeasy-default-create-source-height: + responses: + "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: @@ -6974,6 +7558,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceJotform: + speakeasy-default-create-source-jotform: + responses: + "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: @@ -7021,7 +7616,7 @@ examples: configuration: pool_ids: "0" start_ids: 0,0 - url_base: https://api.korellia.kyve.network/ + url_base: https://api.kaon.kyve.network/ name: workspaceId: 4784f005-abff-4bc2-bf7a-34e79f249ab4 responses: @@ -7089,7 +7684,7 @@ examples: application/json: configuration: account_ids: - - "123456789" + - 123456789 start_date: "2021-05-17" name: workspaceId: 227656ca-1f4b-447d-9fde-34b63bdc1788 @@ -7369,8 +7964,8 @@ examples: auth_source: admin connection_string: mongodb+srv://cluster0.abcd1.mongodb.net/ database: - password: hbfRM4ckeuVmxcc - username: Ettie_Little56 + password: bRkuVxcAvVnsOXO + username: Loraine28 name: workspaceId: 516d602a-ed07-4f9f-8774-abf11d93f34d responses: @@ -7416,7 +8011,7 @@ examples: email: john@doe.com logs_batch_size: 30 password: ZwhYmvxt5vq4W7T - start_date: "2016-01-01" + start_date: '%Y-%m-%d' name: workspaceId: d26c4c9e-12cd-4262-ac41-2dbf486c672c responses: @@ -7436,6 +8031,11 @@ examples: database: host: intelligent-testimony.info port: "3306" + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: username: Aglae25 name: workspaceId: 3e8a017c-7803-4939-a69d-d7fca0716fcc @@ -7500,6 +8100,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceNylas: + speakeasy-default-create-source-nylas: + responses: + "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: @@ -7574,11 +8185,6 @@ examples: 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 @@ -7732,10 +8338,10 @@ examples: configuration: api_key: color: red - locale: en-US + locale: pt-BR orientation: landscape query: oceans - size: small + size: large name: workspaceId: c993ebe2-ebe4-48dd-a44c-e807999039f9 responses: @@ -7747,6 +8353,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePicqer: + speakeasy-default-create-source-picqer: + responses: + "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: @@ -7783,6 +8400,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourcePiwik: + speakeasy-default-create-source-piwik: + responses: + "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: @@ -7863,6 +8491,11 @@ examples: database: host: prestigious-mind.net port: "5432" + tunnel_method: + ssh_key: + tunnel_host: + tunnel_port: "22" + tunnel_user: username: Annetta5 name: workspaceId: 5f08061e-96a7-448f-809a-dcc31e4008a0 @@ -7925,6 +8558,28 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceProductboard: + speakeasy-default-create-source-productboard: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceProductive: + speakeasy-default-create-source-productive: + responses: + "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: @@ -8106,10 +8761,6 @@ examples: 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: @@ -8132,7 +8783,7 @@ examples: client_secret: refresh_token: start_date: "2021-07-25" - stream_slice_step: P7D + stream_slice_step: PT12H name: workspaceId: 23a37ef1-1840-4762-979e-872b37bd5c7e responses: @@ -8237,7 +8888,6 @@ examples: 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 @@ -8269,7 +8919,7 @@ examples: file_pattern: log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd` file_types: csv,json folder_path: /logs/2022 - host: www.host.com + host: 192.0.2.1 port: "22" user: Orin75 name: @@ -8324,6 +8974,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceShortcut: + speakeasy-default-create-source-shortcut: + responses: + "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: @@ -8350,7 +9011,7 @@ examples: configuration: channel_filter: - channel_one - lookback_window: 7 + lookback_window: 14 start_date: "2017-01-25T00:00:00Z" name: workspaceId: f11299a6-e70e-42e8-8f5f-1ae09c987aeb @@ -8397,7 +9058,6 @@ examples: 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: @@ -8436,7 +9096,7 @@ examples: application/json: configuration: credentials: - password: xw1nDwCTtr_fHT5 + password: wDCtrfHNo8p5p_F username: AIRBYTE_USER database: AIRBYTE_DATABASE host: accountname.us-east-2.aws.snowflakecomputing.com @@ -8527,8 +9187,8 @@ examples: account_id: call_rate_limit: 25 client_secret: - num_workers: 2 - slice_range: 360 + num_workers: 3 + slice_range: 1 start_date: "2017-01-25T00:00:00Z" name: workspaceId: 2165f2d0-9f40-4e68-848d-57b85b190505 @@ -8571,6 +9231,28 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceSurvicate: + speakeasy-default-create-source-survicate: + responses: + "200": + application/json: + configuration: + user: charles + name: Analytics Team Postgres + sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 + sourceType: postgres + workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceTeamwork: + speakeasy-default-create-source-teamwork: + responses: + "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: @@ -8592,7 +9274,7 @@ examples: query: environment AND political section: technology start_date: YYYY-MM-DD - tag: environment/plasticbags + tag: environment/energyefficiency name: workspaceId: 5fd4832a-e91a-479f-a88a-eb7401da0b54 responses: @@ -8662,7 +9344,7 @@ examples: configuration: domestic_schedule_country_code: GB start_date: - web_schedule_country_code: US + web_schedule_country_code: global name: workspaceId: aac82c31-8717-4bb8-a373-2b85adafc3f6 responses: @@ -8742,7 +9424,7 @@ examples: 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 + query_path: data/2019/cbp name: workspaceId: 04d935d9-eba8-4cfe-adc7-352031e8ed4d responses: @@ -8784,6 +9466,17 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + createSourceWhenIWork: + speakeasy-default-create-source-when-I-work: + responses: + "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: @@ -8801,11 +9494,11 @@ examples: application/json: configuration: access: desktop - agent: spider + agent: user article: Are_You_the_One%3F - country: FR + country: IN end: - project: commons.wikimedia.org + project: en.wikipedia.org start: name: workspaceId: f21f9287-2db6-4bb3-918f-411bd3403e30 @@ -9015,7 +9708,7 @@ examples: dc_region: US environment: Developer refresh_token: - start_datetime: "2000-01-01 13:00:00" + start_datetime: "2000-01-01" name: workspaceId: ab24f537-7c27-4869-8c30-012be478cb43 responses: @@ -9172,6 +9865,11 @@ examples: parameters: path: destinationId: + deleteDestinationPgvector: + speakeasy-default-delete-destination-pgvector: + parameters: + path: + destinationId: deleteDestinationPinecone: speakeasy-default-delete-destination-pinecone: parameters: @@ -9267,6 +9965,11 @@ examples: parameters: path: sourceId: + deleteSource7shifts: + speakeasy-default-delete-source7shifts: + parameters: + path: + sourceId: deleteSourceAha: speakeasy-default-delete-source-aha: parameters: @@ -9312,6 +10015,16 @@ examples: parameters: path: sourceId: + deleteSourceAppcues: + speakeasy-default-delete-source-appcues: + parameters: + path: + sourceId: + deleteSourceAppfigures: + speakeasy-default-delete-source-appfigures: + parameters: + path: + sourceId: deleteSourceAppfollow: speakeasy-default-delete-source-appfollow: parameters: @@ -9362,6 +10075,11 @@ examples: parameters: path: sourceId: + deleteSourceBitly: + speakeasy-default-delete-source-bitly: + parameters: + path: + sourceId: deleteSourceBraintree: speakeasy-default-delete-source-braintree: parameters: @@ -9377,16 +10095,41 @@ examples: parameters: path: sourceId: + deleteSourceBrevo: + speakeasy-default-delete-source-brevo: + parameters: + path: + sourceId: + deleteSourceBuildkite: + speakeasy-default-delete-source-buildkite: + parameters: + path: + sourceId: + deleteSourceBuzzsprout: + speakeasy-default-delete-source-buzzsprout: + parameters: + path: + sourceId: deleteSourceCalendly: speakeasy-default-delete-source-calendly: parameters: path: sourceId: + deleteSourceCanny: + speakeasy-default-delete-source-canny: + parameters: + path: + sourceId: deleteSourceCart: speakeasy-default-delete-source-cart: parameters: path: sourceId: + deleteSourceChameleon: + speakeasy-default-delete-source-chameleon: + parameters: + path: + sourceId: deleteSourceChargebee: speakeasy-default-delete-source-chargebee: parameters: @@ -9397,6 +10140,11 @@ examples: parameters: path: sourceId: + deleteSourceCimis: + speakeasy-default-delete-source-cimis: + parameters: + path: + sourceId: deleteSourceClazar: speakeasy-default-delete-source-clazar: parameters: @@ -9512,6 +10260,11 @@ examples: parameters: path: sourceId: + deleteSourceEzofficeinventory: + speakeasy-default-delete-source-ezofficeinventory: + parameters: + path: + sourceId: deleteSourceFacebookMarketing: speakeasy-default-delete-source-facebook-marketing: parameters: @@ -9557,6 +10310,11 @@ examples: parameters: path: sourceId: + deleteSourceFront: + speakeasy-default-delete-source-front: + parameters: + path: + sourceId: deleteSourceGainsightPx: speakeasy-default-delete-source-gainsight-px: parameters: @@ -9632,6 +10390,11 @@ examples: parameters: path: sourceId: + deleteSourceGoogleTasks: + speakeasy-default-delete-source-google-tasks: + parameters: + path: + sourceId: deleteSourceGoogleWebfonts: speakeasy-default-delete-source-google-webfonts: parameters: @@ -9647,6 +10410,11 @@ examples: parameters: path: sourceId: + deleteSourceGuru: + speakeasy-default-delete-source-guru: + parameters: + path: + sourceId: deleteSourceHardcodedRecords: speakeasy-default-delete-source-hardcoded-records: parameters: @@ -9657,6 +10425,11 @@ examples: parameters: path: sourceId: + deleteSourceHeight: + speakeasy-default-delete-source-height: + parameters: + path: + sourceId: deleteSourceHibob: speakeasy-default-delete-source-hibob: parameters: @@ -9712,6 +10485,11 @@ examples: parameters: path: sourceId: + deleteSourceJotform: + speakeasy-default-delete-source-jotform: + parameters: + path: + sourceId: deleteSourceK6Cloud: speakeasy-default-delete-source-k6-cloud: parameters: @@ -9867,6 +10645,11 @@ examples: parameters: path: sourceId: + deleteSourceNylas: + speakeasy-default-delete-source-nylas: + parameters: + path: + sourceId: deleteSourceNytimes: speakeasy-default-delete-source-nytimes: parameters: @@ -9942,6 +10725,11 @@ examples: parameters: path: sourceId: + deleteSourcePicqer: + speakeasy-default-delete-source-picqer: + parameters: + path: + sourceId: deleteSourcePinterest: speakeasy-default-delete-source-pinterest: parameters: @@ -9952,6 +10740,11 @@ examples: parameters: path: sourceId: + deleteSourcePiwik: + speakeasy-default-delete-source-piwik: + parameters: + path: + sourceId: deleteSourcePlanhat: speakeasy-default-delete-source-planhat: parameters: @@ -9992,6 +10785,16 @@ examples: parameters: path: sourceId: + deleteSourceProductboard: + speakeasy-default-delete-source-productboard: + parameters: + path: + sourceId: + deleteSourceProductive: + speakeasy-default-delete-source-productive: + parameters: + path: + sourceId: deleteSourcePypi: speakeasy-default-delete-source-pypi: parameters: @@ -10122,6 +10925,11 @@ examples: parameters: path: sourceId: + deleteSourceShortcut: + speakeasy-default-delete-source-shortcut: + parameters: + path: + sourceId: deleteSourceShortio: speakeasy-default-delete-source-shortio: parameters: @@ -10192,6 +11000,16 @@ examples: parameters: path: sourceId: + deleteSourceSurvicate: + speakeasy-default-delete-source-survicate: + parameters: + path: + sourceId: + deleteSourceTeamwork: + speakeasy-default-delete-source-teamwork: + parameters: + path: + sourceId: deleteSourceTempo: speakeasy-default-delete-source-tempo: parameters: @@ -10257,6 +11075,11 @@ examples: parameters: path: sourceId: + deleteSourceWhenIWork: + speakeasy-default-delete-source-when-I-work: + parameters: + path: + sourceId: deleteSourceWhiskyHunter: speakeasy-default-delete-source-whisky-hunter: parameters: @@ -10664,6 +11487,20 @@ examples: destinationType: postgres name: Analytics Team Postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getDestinationPgvector: + speakeasy-default-get-destination-pgvector: + 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: @@ -10942,6 +11779,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + getSource7shifts: + speakeasy-default-get-source7shifts: + 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 getSourceAha: speakeasy-default-get-source-aha: parameters: @@ -11068,6 +11919,34 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceAppcues: + speakeasy-default-get-source-appcues: + 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 + getSourceAppfigures: + speakeasy-default-get-source-appfigures: + 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: @@ -11208,6 +12087,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceBitly: + speakeasy-default-get-source-bitly: + 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: @@ -11250,6 +12143,48 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceBrevo: + speakeasy-default-get-source-brevo: + 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 + getSourceBuildkite: + speakeasy-default-get-source-buildkite: + 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 + getSourceBuzzsprout: + speakeasy-default-get-source-buzzsprout: + 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: @@ -11264,6 +12199,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCanny: + speakeasy-default-get-source-canny: + 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: @@ -11278,6 +12227,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceChameleon: + speakeasy-default-get-source-chameleon: + 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: @@ -11306,6 +12269,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceCimis: + speakeasy-default-get-source-cimis: + 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: @@ -11628,6 +12605,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceEzofficeinventory: + speakeasy-default-get-source-ezofficeinventory: + 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: @@ -11754,6 +12745,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceFront: + speakeasy-default-get-source-front: + 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: @@ -11964,6 +12969,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGoogleTasks: + speakeasy-default-get-source-google-tasks: + 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: @@ -12006,6 +13025,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceGuru: + speakeasy-default-get-source-guru: + 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: @@ -12034,6 +13067,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceHeight: + speakeasy-default-get-source-height: + 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: @@ -12188,6 +13235,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceJotform: + speakeasy-default-get-source-jotform: + 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: @@ -12622,6 +13683,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceNylas: + speakeasy-default-get-source-nylas: + 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: @@ -12832,6 +13907,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePicqer: + speakeasy-default-get-source-picqer: + 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: @@ -12860,6 +13949,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourcePiwik: + speakeasy-default-get-source-piwik: + 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: @@ -12972,6 +14075,34 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceProductboard: + speakeasy-default-get-source-productboard: + 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 + getSourceProductive: + speakeasy-default-get-source-productive: + 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: @@ -13336,6 +14467,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceShortcut: + speakeasy-default-get-source-shortcut: + 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: @@ -13532,6 +14677,34 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceSurvicate: + speakeasy-default-get-source-survicate: + 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 + getSourceTeamwork: + speakeasy-default-get-source-teamwork: + 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: @@ -13714,6 +14887,20 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 871d9b60-11d1-44cb-8c92-c246d53bf87e + getSourceWhenIWork: + speakeasy-default-get-source-when-I-work: + 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: @@ -13969,13 +15156,13 @@ examples: schedule: scheduleType: basic sourceId: - status: inactive + status: deprecated workspaceId: - connectionId: destinationId: name: schedule: - scheduleType: basic + scheduleType: manual sourceId: 49237019-645d-47d4-b45b-5eddf97775ce status: inactive workspaceId: @@ -13983,7 +15170,7 @@ examples: destinationId: al312fs-0ab1-4f72-9ed7-0b8fc27c5826 name: schedule: - scheduleType: basic + scheduleType: cron sourceId: status: inactive workspaceId: @@ -13993,13 +15180,13 @@ examples: schedule: scheduleType: manual sourceId: - status: active + status: deprecated workspaceId: - connectionId: destinationId: name: schedule: - scheduleType: manual + scheduleType: basic sourceId: status: active workspaceId: @@ -14008,9 +15195,9 @@ examples: destinationId: name: schedule: - scheduleType: cron + scheduleType: manual sourceId: - status: active + status: inactive workspaceId: next: https://api.airbyte.com/v1/connections?limit=5&offset=10 previous: https://api.airbyte.com/v1/connections?limit=5&offset=0 @@ -14061,7 +15248,7 @@ examples: application/json: data: - connectionId: - jobId: 417148 + jobId: 4995 jobType: sync startTime: status: running @@ -14302,7 +15489,7 @@ examples: processing: chunk_size: 287359 metadata_fields: - - user.name + - age text_fields: - user.name name: @@ -14367,10 +15554,10 @@ examples: host: suburban-weapon.net port: "8123" tunnel_method: - ssh_key: tunnel_host: tunnel_port: "22" tunnel_user: + tunnel_user_password: username: Eugenia74 name: workspaceId: f487aa94-5436-4945-8147-afa1da0996ca @@ -14445,6 +15632,17 @@ examples: parameters: path: destinationId: + requestBody: + application/json: + configuration: + endpoint: + tunnel_method: + tunnel_host: + tunnel_port: "22" + tunnel_user: + tunnel_user_password: + name: + workspaceId: 06a2c4b2-e1c4-4184-a2f1-4e48871f30c7 putDestinationFirebolt: speakeasy-default-put-destination-firebolt: parameters: @@ -14517,13 +15715,13 @@ examples: password: i3pUmsXfszV2JDn username: Markus_Stark collection: - host: tcp://host.docker.internal:19530 + host: https://my-instance.zone.zillizcloud.com processing: chunk_size: 562970 metadata_fields: - user.name text_fields: - - users.*.name + - text name: workspaceId: 0c7f6c5c-917a-468a-9e06-ca81caa5041c putDestinationMongodb: @@ -14536,13 +15734,7 @@ examples: configuration: database: instance_type: - host: proper-suspect.com - port: "27017" - tunnel_method: - tunnel_host: - tunnel_port: "22" - tunnel_user: - tunnel_user_password: + server_addresses: host1:27017,host2:27017,host3:27017 name: workspaceId: 0ccf1ae6-19e8-4619-ac88-506eecb550e2 putDestinationMssql: @@ -14557,11 +15749,6 @@ examples: 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 @@ -14577,10 +15764,10 @@ examples: host: whopping-bunch.com port: "3306" tunnel_method: - ssh_key: tunnel_host: tunnel_port: "22" tunnel_user: + tunnel_user_password: username: Lane_Graham56 name: workspaceId: aba24710-3cf8-4631-a128-16336c083800 @@ -14597,13 +15784,39 @@ examples: schema: airbyte sid: tunnel_method: - ssh_key: tunnel_host: tunnel_port: "22" tunnel_user: + tunnel_user_password: username: Shanie50 name: workspaceId: 52b855db-b391-417d-85cf-daa866a6145e + putDestinationPgvector: + speakeasy-default-put-destination-pgvector: + parameters: + path: + destinationId: + requestBody: + application/json: + configuration: + embedding: + cohere_key: + indexing: + credentials: + password: AIRBYTE_PASSWORD + database: AIRBYTE_DATABASE + default_schema: AIRBYTE_SCHEMA + host: AIRBYTE_ACCOUNT + port: "5432" + username: AIRBYTE_USER + processing: + chunk_size: 356011 + metadata_fields: + - user + text_fields: + - user.name + name: + workspaceId: e16ba57c-6e42-40a8-b01c-0c15f5a0aba9 putDestinationPinecone: speakeasy-default-put-destination-pinecone: parameters: @@ -14666,7 +15879,7 @@ examples: processing: chunk_size: 439309 metadata_fields: - - user.name + - user text_fields: - user.name name: @@ -14701,14 +15914,9 @@ examples: 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}' + file_name_pattern: '{sync_id}' s3_bucket_name: airbyte.staging s3_bucket_path: data_sync/test secret_access_key: @@ -14805,7 +16013,7 @@ examples: database: AIRBYTE_DATABASE default_schema: AIRBYTE_SCHEMA host: AIRBYTE_ACCOUNT - role: AIRBYTE_ROLE + role: ACCOUNTADMIN username: AIRBYTE_USER warehouse: AIRBYTE_WAREHOUSE processing: @@ -14862,7 +16070,7 @@ examples: client_id: client_secret: text_fields: - - users.*.name + - text title_field: document_key name: workspaceId: 30c0b3d6-b775-4fa7-a34d-61bb91a47efb @@ -14882,11 +16090,13 @@ examples: additional_headers: - header_key: X-OpenAI-Api-Key value: my-openai-api-key + auth: + token: host: https://my-cluster.weaviate.network processing: chunk_size: 189651 metadata_fields: - - user.name + - age text_fields: - text name: @@ -14903,11 +16113,6 @@ examples: 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 @@ -14952,6 +16157,11 @@ examples: sourceId: 18dccc91-0ab1-4f72-9ed7-0b8fc27c5826 sourceType: postgres workspaceId: 744cc0ed-7f05-4949-9e60-2a814f90c035 + putSource7shifts: + speakeasy-default-put-source7shifts: + parameters: + path: + sourceId: putSourceAha: speakeasy-default-put-source-aha: parameters: @@ -15001,7 +16211,7 @@ examples: client_secret: look_back_window: 10 refresh_token: - start_date: "2022-10-10" + start_date: "2022-10-22" name: workspaceId: c9f3d0c3-23aa-4fc1-8e92-68bd0f814a39 putSourceAmazonSellerPartner: @@ -15062,6 +16272,16 @@ examples: token: apify_api_PbVwb1cBbuvbfg2jRmAIHZKgx3NQyfEMG7uk name: workspaceId: 958efeea-8dfb-41d4-b3fd-9ed53c081060 + putSourceAppcues: + speakeasy-default-put-source-appcues: + parameters: + path: + sourceId: + putSourceAppfigures: + speakeasy-default-put-source-appfigures: + parameters: + path: + sourceId: putSourceAppfollow: speakeasy-default-put-source-appfollow: parameters: @@ -15164,6 +16384,11 @@ examples: refresh_token: name: workspaceId: be30f9e6-b0c2-4636-861d-dca3a54a43f3 + putSourceBitly: + speakeasy-default-put-source-bitly: + parameters: + path: + sourceId: putSourceBraintree: speakeasy-default-put-source-braintree: parameters: @@ -15176,7 +16401,7 @@ examples: merchant_id: private_key: public_key: - start_date: "2020-11-22 20:20:05" + start_date: "2020" name: workspaceId: c3f7c0af-f8ce-4a09-bd09-57b231100e71 putSourceBraze: @@ -15189,11 +16414,31 @@ examples: parameters: path: sourceId: + putSourceBrevo: + speakeasy-default-put-source-brevo: + parameters: + path: + sourceId: + putSourceBuildkite: + speakeasy-default-put-source-buildkite: + parameters: + path: + sourceId: + putSourceBuzzsprout: + speakeasy-default-put-source-buzzsprout: + parameters: + path: + sourceId: putSourceCalendly: speakeasy-default-put-source-calendly: parameters: path: sourceId: + putSourceCanny: + speakeasy-default-put-source-canny: + parameters: + path: + sourceId: putSourceCart: speakeasy-default-put-source-cart: parameters: @@ -15205,6 +16450,11 @@ examples: start_date: "2021-01-01T00:00:00Z" name: workspaceId: 5d482192-2f74-41ec-abe5-a12430bcee1e + putSourceChameleon: + speakeasy-default-put-source-chameleon: + parameters: + path: + sourceId: putSourceChargebee: speakeasy-default-put-source-chargebee: parameters: @@ -15230,6 +16480,11 @@ examples: start_date: "2017-01-25T00:00:00Z" name: workspaceId: acf2e341-f754-471e-a7e2-fc5a1a40ab24 + putSourceCimis: + speakeasy-default-put-source-cimis: + parameters: + path: + sourceId: putSourceClazar: speakeasy-default-put-source-clazar: parameters: @@ -15246,11 +16501,6 @@ examples: 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 @@ -15307,7 +16557,7 @@ examples: api_key: data_type: latest symbols: - - BTC + - AVAX name: workspaceId: 06f1fdc6-547d-4f6d-bdd8-67ca6f2cd366 putSourceConfigcat: @@ -15452,6 +16702,11 @@ examples: start_date: YYYY-MM-DD name: workspaceId: 0cbf2be1-5527-422a-ab9a-30762781f2bc + putSourceEzofficeinventory: + speakeasy-default-put-source-ezofficeinventory: + parameters: + path: + sourceId: putSourceFacebookMarketing: speakeasy-default-put-source-facebook-marketing: parameters: @@ -15489,8 +16744,8 @@ examples: 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 + reader_options: '{}' + url: gs://my-google-bucket/data.csv name: workspaceId: e80c4cd0-f275-427b-b261-709d02d60a63 putSourceFirebolt: @@ -15552,6 +16807,11 @@ examples: domain_name: mydomain.myfreshworks.com name: workspaceId: 7993e870-ec4c-46e6-ab82-606e4a2b6e38 + putSourceFront: + speakeasy-default-put-source-front: + parameters: + path: + sourceId: putSourceGainsightPx: speakeasy-default-put-source-gainsight-px: parameters: @@ -15585,15 +16845,13 @@ examples: application/json: configuration: api_url: https://github.company.org - branch: airbytehq/airbyte/master airbytehq/airbyte/my-branch branches: - - airbytehq/airbyte/my-branch + - airbytehq/airbyte/master credentials: access_token: max_waiting_time: 30 repositories: - - airbytehq/* - repository: airbytehq/* + - airbytehq/another-repo start_date: "2021-03-01T00:00:00Z" name: workspaceId: 4cfeb046-d067-4280-9c5d-5eedc0787454 @@ -15612,10 +16870,8 @@ examples: 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" @@ -15678,7 +16934,7 @@ examples: 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 + lookback_window: 7 property_ids: - "1738294" - "5729978930" @@ -15736,7 +16992,7 @@ examples: data_state: final end_date: "2021-12-12" site_urls: - - https://example1.com/ + - sc-domain:example2.com name: workspaceId: 8f61fc79-7435-41b1-b7b9-ea9168b64028 putSourceGoogleSheets: @@ -15752,6 +17008,11 @@ examples: spreadsheet_id: https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit name: workspaceId: f10ca325-927e-4af5-9f9f-cda8b6946821 + putSourceGoogleTasks: + speakeasy-default-put-source-google-tasks: + parameters: + path: + sourceId: putSourceGoogleWebfonts: speakeasy-default-put-source-google-webfonts: parameters: @@ -15767,6 +17028,11 @@ examples: parameters: path: sourceId: + putSourceGuru: + speakeasy-default-put-source-guru: + parameters: + path: + sourceId: putSourceHardcodedRecords: speakeasy-default-put-source-hardcoded-records: parameters: @@ -15781,10 +17047,14 @@ examples: 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 + putSourceHeight: + speakeasy-default-put-source-height: + parameters: + path: + sourceId: putSourceHibob: speakeasy-default-put-source-hibob: parameters: @@ -15891,10 +17161,15 @@ examples: email: Trystan.Kassulke@hotmail.com lookback_window_minutes: 60 projects: - - PROJ1 + - PROJ2 start_date: "2021-03-01T00:00:00Z" name: workspaceId: d8dc5b10-2e9e-4f5c-9956-919de7dc0c1d + putSourceJotform: + speakeasy-default-put-source-jotform: + parameters: + path: + sourceId: putSourceK6Cloud: speakeasy-default-put-source-k6-cloud: parameters: @@ -15926,7 +17201,7 @@ examples: application/json: configuration: pool_ids: "0" - start_ids: 0,0 + start_ids: "0" url_base: https://api.kaon.kyve.network/ name: workspaceId: f45acf60-0c6f-4706-b416-269a4b9614d1 @@ -15965,7 +17240,7 @@ examples: application/json: configuration: account_ids: - - "123456789" + - 123456789 start_date: "2021-05-17" name: workspaceId: 09ea099e-5aaf-4c67-baea-8055738ebe18 @@ -16128,7 +17403,7 @@ examples: secret: username: Jaleel7 end_date: "2021-11-16" - project_timezone: UTC + project_timezone: US/Pacific start_date: "2021-11-16" name: workspaceId: a7e22279-cec7-4ea3-ad6b-9c5d053f346e @@ -16197,10 +17472,10 @@ examples: host: mad-apse.name port: "3306" tunnel_method: + ssh_key: tunnel_host: tunnel_port: "22" tunnel_user: - tunnel_user_password: username: Wilhelm81 name: workspaceId: a840d348-a342-444f-8f85-12bc6b858af2 @@ -16238,6 +17513,11 @@ examples: start_date: "2020-11-16T00:00:00.000Z" name: workspaceId: c847397d-4123-42c5-8bf8-be53d297a2a8 + putSourceNylas: + speakeasy-default-put-source-nylas: + parameters: + path: + sourceId: putSourceNytimes: speakeasy-default-put-source-nytimes: parameters: @@ -16384,12 +17664,17 @@ examples: configuration: api_key: color: red - locale: en-US - orientation: landscape + locale: pt-BR + orientation: square query: people size: large name: workspaceId: a4617d11-ce8d-45ec-8f31-8107c4abb422 + putSourcePicqer: + speakeasy-default-put-source-picqer: + parameters: + path: + sourceId: putSourcePinterest: speakeasy-default-put-source-pinterest: parameters: @@ -16414,6 +17699,11 @@ examples: replication_start_date: 2017-01-25 00:00:00Z name: workspaceId: 7ec36229-d335-4c78-b92e-29b588cd250d + putSourcePiwik: + speakeasy-default-put-source-piwik: + parameters: + path: + sourceId: putSourcePlanhat: speakeasy-default-put-source-planhat: parameters: @@ -16474,10 +17764,10 @@ examples: host: hilarious-fowl.name port: "5432" tunnel_method: + ssh_key: tunnel_host: tunnel_port: "22" tunnel_user: - tunnel_user_password: username: Eugenia.Parker name: workspaceId: 0ea97c8c-6c85-49a7-a4a8-82adbc1993e4 @@ -16513,6 +17803,16 @@ examples: url: http://broken-toothpaste.net name: workspaceId: c482faab-a41b-4144-8512-b4a7437d50fd + putSourceProductboard: + speakeasy-default-put-source-productboard: + parameters: + path: + sourceId: + putSourceProductive: + speakeasy-default-put-source-productive: + parameters: + path: + sourceId: putSourcePypi: speakeasy-default-put-source-pypi: parameters: @@ -16625,10 +17925,6 @@ examples: 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: @@ -16645,7 +17941,7 @@ examples: client_secret: refresh_token: start_date: "2021-07-25T00:00:00Z" - stream_slice_step: P1Y + stream_slice_step: PT12H name: workspaceId: 21f37cf0-319f-476a-b85a-ec34e3b4806b putSourceSalesloft: @@ -16661,7 +17957,7 @@ examples: client_id: client_secret: refresh_token: - token_expiry_date: "2024-01-30T11:28:39.488Z" + token_expiry_date: "2024-04-16T14:52:07.719Z" start_date: "2020-11-16T00:00:00Z" name: workspaceId: c0440a90-d34f-4a54-b42e-2b7194cbf193 @@ -16706,7 +18002,6 @@ examples: 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 @@ -16742,7 +18037,7 @@ examples: credentials: password: pJfdgaQb99qZ9KB folder_path: /logs/2022 - host: 192.0.2.1 + host: www.host.com port: "22" start_date: "2021-01-01T00:00:00.000000Z" streams: [] @@ -16760,6 +18055,11 @@ examples: shop: my-store.myshopify.com name: workspaceId: 40f724ba-5f1c-4ea3-bc71-3c89ddcf3373 + putSourceShortcut: + speakeasy-default-put-source-shortcut: + parameters: + path: + sourceId: putSourceShortio: speakeasy-default-put-source-shortio: parameters: @@ -16812,7 +18112,6 @@ examples: 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: @@ -16839,7 +18138,7 @@ examples: application/json: configuration: credentials: - password: H22vQ4zHfmOXWPh + password: Hv4zfOWPF8NpeB8 username: AIRBYTE_USER database: AIRBYTE_DATABASE host: accountname.us-east-2.aws.snowflakecomputing.com @@ -16900,8 +18199,8 @@ examples: account_id: call_rate_limit: 100 client_secret: - num_workers: 1 - slice_range: 360 + num_workers: 3 + slice_range: 180 start_date: "2017-01-25T00:00:00Z" name: workspaceId: 0caf7586-8bb4-4e22-8d5f-1e8acc56a182 @@ -16923,6 +18222,16 @@ examples: start_date: "2021-01-01T00:00:00Z" name: workspaceId: 5950d05a-ff94-46ae-85af-5a45d0592be9 + putSourceSurvicate: + speakeasy-default-put-source-survicate: + parameters: + path: + sourceId: + putSourceTeamwork: + speakeasy-default-put-source-teamwork: + parameters: + path: + sourceId: putSourceTempo: speakeasy-default-put-source-tempo: parameters: @@ -16939,7 +18248,7 @@ examples: api_key: end_date: YYYY-MM-DD query: environment AND political - section: technology + section: media start_date: YYYY-MM-DD tag: environment/recycling name: @@ -16991,7 +18300,7 @@ examples: configuration: domestic_schedule_country_code: GB start_date: - web_schedule_country_code: global + web_schedule_country_code: US name: workspaceId: 0f73d3fd-3fb1-49bd-bdec-fe52a98f12fd putSourceTwilio: @@ -17041,7 +18350,7 @@ examples: configuration: api_key: query_params: get=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:* - query_path: data/timeseries/healthins/sahie + query_path: data/2019/cbp name: workspaceId: 2e0dd6f1-7f21-4810-8711-d686a0d31e73 putSourceVantage: @@ -17062,6 +18371,11 @@ examples: site_id: a relatively long hex sequence name: workspaceId: f25028c7-9fcf-4b25-927e-601c61c7870e + putSourceWhenIWork: + speakeasy-default-put-source-when-I-work: + parameters: + path: + sourceId: putSourceWhiskyHunter: speakeasy-default-put-source-whisky-hunter: parameters: @@ -17076,9 +18390,9 @@ examples: application/json: configuration: access: mobile-web - agent: spider + agent: user article: Are_You_the_One%3F - country: FR + country: IN end: project: en.wikipedia.org start: @@ -17218,7 +18532,7 @@ examples: dc_region: JP environment: Sandbox refresh_token: - start_datetime: "2000-01-01" + start_datetime: "2000-01-01T13:00:00-07:00" name: workspaceId: 39ad36db-1da4-49f8-98d0-e22ec57efbbd putSourceZoom: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8a3643210..22299e003 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:b1f27d16185260237d159e856bab906536d850ff02b61d7e6e9c40f640713aa3 - sourceBlobDigest: sha256:3b9f36ea5b600bb8f7011672629e94ea280122ca8e7a46a0f71a0dde99bea585 + sourceRevisionDigest: sha256:5bce33c153c29c41158b04ce1c5185a7f0d0b27d2c8646e729dbda6117e4d6f5 + sourceBlobDigest: sha256:5cf6fbe08b5b30ea4571bb87a46ae65cdfc8f4fb9fdd51d06c4e8bcd57b90685 tags: - latest - main @@ -11,8 +11,8 @@ targets: terraform-provider-airbyte: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:b1f27d16185260237d159e856bab906536d850ff02b61d7e6e9c40f640713aa3 - sourceBlobDigest: sha256:3b9f36ea5b600bb8f7011672629e94ea280122ca8e7a46a0f71a0dde99bea585 + sourceRevisionDigest: sha256:5bce33c153c29c41158b04ce1c5185a7f0d0b27d2c8646e729dbda6117e4d6f5 + sourceBlobDigest: sha256:5cf6fbe08b5b30ea4571bb87a46ae65cdfc8f4fb9fdd51d06c4e8bcd57b90685 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/README.md b/README.md index 3442ec9de..7dcafd408 100755 --- a/README.md +++ b/README.md @@ -24,8 +24,9 @@ airbyte-api: Programatically control Airbyte Cloud, OSS & Enterprise. ## Table of Contents -* [SDK Installation](#sdk-installation) -* [SDK Example Usage](#sdk-example-usage) +* [Installation](#installation) +* [Available Resources and Data Sources](#available-resources-and-data-sources) +* [Testing the provider locally](#testing-the-provider-locally) @@ -38,7 +39,7 @@ terraform { required_providers { airbyte = { source = "airbytehq/airbyte" - version = "0.11.0" + version = "0.13.0" } } } diff --git a/RELEASES.md b/RELEASES.md index f6c7182ab..aee5a70f8 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -68,4 +68,14 @@ Based on: ### 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 +- [Terraform v0.11.0] https://registry.terraform.io/providers/airbytehq/airbyte/0.11.0 - . + +## 2024-09-25 00:53:23 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.402.12 (2.422.15) https://github.com/speakeasy-api/speakeasy +### Generated +- [terraform v0.13.0] . +### Releases +- [Terraform v0.13.0] https://registry.terraform.io/providers/airbytehq/airbyte/0.13.0 - . \ No newline at end of file diff --git a/docs/data-sources/destination_dev_null.md b/docs/data-sources/destination_pgvector.md similarity index 67% rename from docs/data-sources/destination_dev_null.md rename to docs/data-sources/destination_pgvector.md index 91ed577f6..5869536a5 100644 --- a/docs/data-sources/destination_dev_null.md +++ b/docs/data-sources/destination_pgvector.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_destination_dev_null Data Source - terraform-provider-airbyte" +page_title: "airbyte_destination_pgvector Data Source - terraform-provider-airbyte" subcategory: "" description: |- - DestinationDevNull DataSource + DestinationPgvector DataSource --- -# airbyte_destination_dev_null (Data Source) +# airbyte_destination_pgvector (Data Source) -DestinationDevNull DataSource +DestinationPgvector DataSource ## Example Usage ```terraform -data "airbyte_destination_dev_null" "my_destination_devnull" { +data "airbyte_destination_pgvector" "my_destination_pgvector" { destination_id = "...my_destination_id..." } ``` diff --git a/docs/data-sources/source_7shifts.md b/docs/data-sources/source_7shifts.md new file mode 100644 index 000000000..770528137 --- /dev/null +++ b/docs/data-sources/source_7shifts.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_7shifts Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + Source7shifts DataSource +--- + +# airbyte_source_7shifts (Data Source) + +Source7shifts DataSource + +## Example Usage + +```terraform +data "airbyte_source_7shifts" "my_source_7shifts" { + 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_appcues.md b/docs/data-sources/source_appcues.md new file mode 100644 index 000000000..0de07af1b --- /dev/null +++ b/docs/data-sources/source_appcues.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_appcues Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceAppcues DataSource +--- + +# airbyte_source_appcues (Data Source) + +SourceAppcues DataSource + +## Example Usage + +```terraform +data "airbyte_source_appcues" "my_source_appcues" { + 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_appfigures.md b/docs/data-sources/source_appfigures.md new file mode 100644 index 000000000..1e618ba96 --- /dev/null +++ b/docs/data-sources/source_appfigures.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_appfigures Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceAppfigures DataSource +--- + +# airbyte_source_appfigures (Data Source) + +SourceAppfigures DataSource + +## Example Usage + +```terraform +data "airbyte_source_appfigures" "my_source_appfigures" { + 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_bitly.md b/docs/data-sources/source_bitly.md new file mode 100644 index 000000000..e187e8111 --- /dev/null +++ b/docs/data-sources/source_bitly.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_bitly Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceBitly DataSource +--- + +# airbyte_source_bitly (Data Source) + +SourceBitly DataSource + +## Example Usage + +```terraform +data "airbyte_source_bitly" "my_source_bitly" { + 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_brevo.md b/docs/data-sources/source_brevo.md new file mode 100644 index 000000000..e913327f8 --- /dev/null +++ b/docs/data-sources/source_brevo.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_brevo Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceBrevo DataSource +--- + +# airbyte_source_brevo (Data Source) + +SourceBrevo DataSource + +## Example Usage + +```terraform +data "airbyte_source_brevo" "my_source_brevo" { + 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_buildkite.md b/docs/data-sources/source_buildkite.md new file mode 100644 index 000000000..dee046de0 --- /dev/null +++ b/docs/data-sources/source_buildkite.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_buildkite Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceBuildkite DataSource +--- + +# airbyte_source_buildkite (Data Source) + +SourceBuildkite DataSource + +## Example Usage + +```terraform +data "airbyte_source_buildkite" "my_source_buildkite" { + 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_buzzsprout.md b/docs/data-sources/source_buzzsprout.md new file mode 100644 index 000000000..079d88d39 --- /dev/null +++ b/docs/data-sources/source_buzzsprout.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_buzzsprout Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceBuzzsprout DataSource +--- + +# airbyte_source_buzzsprout (Data Source) + +SourceBuzzsprout DataSource + +## Example Usage + +```terraform +data "airbyte_source_buzzsprout" "my_source_buzzsprout" { + 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_canny.md b/docs/data-sources/source_canny.md new file mode 100644 index 000000000..61da4a672 --- /dev/null +++ b/docs/data-sources/source_canny.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_canny Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceCanny DataSource +--- + +# airbyte_source_canny (Data Source) + +SourceCanny DataSource + +## Example Usage + +```terraform +data "airbyte_source_canny" "my_source_canny" { + 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_chameleon.md b/docs/data-sources/source_chameleon.md new file mode 100644 index 000000000..bc3c292e9 --- /dev/null +++ b/docs/data-sources/source_chameleon.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_chameleon Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceChameleon DataSource +--- + +# airbyte_source_chameleon (Data Source) + +SourceChameleon DataSource + +## Example Usage + +```terraform +data "airbyte_source_chameleon" "my_source_chameleon" { + 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_cimis.md b/docs/data-sources/source_cimis.md new file mode 100644 index 000000000..7b679936f --- /dev/null +++ b/docs/data-sources/source_cimis.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_cimis Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceCimis DataSource +--- + +# airbyte_source_cimis (Data Source) + +SourceCimis DataSource + +## Example Usage + +```terraform +data "airbyte_source_cimis" "my_source_cimis" { + 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_ezofficeinventory.md b/docs/data-sources/source_ezofficeinventory.md new file mode 100644 index 000000000..5be81ed0b --- /dev/null +++ b/docs/data-sources/source_ezofficeinventory.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_ezofficeinventory Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceEzofficeinventory DataSource +--- + +# airbyte_source_ezofficeinventory (Data Source) + +SourceEzofficeinventory DataSource + +## Example Usage + +```terraform +data "airbyte_source_ezofficeinventory" "my_source_ezofficeinventory" { + 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_front.md b/docs/data-sources/source_front.md new file mode 100644 index 000000000..562e747e0 --- /dev/null +++ b/docs/data-sources/source_front.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_front Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceFront DataSource +--- + +# airbyte_source_front (Data Source) + +SourceFront DataSource + +## Example Usage + +```terraform +data "airbyte_source_front" "my_source_front" { + 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_zendesk_sell.md b/docs/data-sources/source_google_tasks.md similarity index 67% rename from docs/data-sources/source_zendesk_sell.md rename to docs/data-sources/source_google_tasks.md index e902c59fb..12683f53c 100644 --- a/docs/data-sources/source_zendesk_sell.md +++ b/docs/data-sources/source_google_tasks.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_zendesk_sell Data Source - terraform-provider-airbyte" +page_title: "airbyte_source_google_tasks Data Source - terraform-provider-airbyte" subcategory: "" description: |- - SourceZendeskSell DataSource + SourceGoogleTasks DataSource --- -# airbyte_source_zendesk_sell (Data Source) +# airbyte_source_google_tasks (Data Source) -SourceZendeskSell DataSource +SourceGoogleTasks DataSource ## Example Usage ```terraform -data "airbyte_source_zendesk_sell" "my_source_zendesksell" { +data "airbyte_source_google_tasks" "my_source_googletasks" { source_id = "...my_source_id..." } ``` diff --git a/docs/data-sources/source_guru.md b/docs/data-sources/source_guru.md new file mode 100644 index 000000000..a9bed5e22 --- /dev/null +++ b/docs/data-sources/source_guru.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_guru Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceGuru DataSource +--- + +# airbyte_source_guru (Data Source) + +SourceGuru DataSource + +## Example Usage + +```terraform +data "airbyte_source_guru" "my_source_guru" { + 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_height.md b/docs/data-sources/source_height.md new file mode 100644 index 000000000..6850a4ce0 --- /dev/null +++ b/docs/data-sources/source_height.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_height Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceHeight DataSource +--- + +# airbyte_source_height (Data Source) + +SourceHeight DataSource + +## Example Usage + +```terraform +data "airbyte_source_height" "my_source_height" { + 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_jotform.md b/docs/data-sources/source_jotform.md new file mode 100644 index 000000000..64ec11041 --- /dev/null +++ b/docs/data-sources/source_jotform.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_jotform Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceJotform DataSource +--- + +# airbyte_source_jotform (Data Source) + +SourceJotform DataSource + +## Example Usage + +```terraform +data "airbyte_source_jotform" "my_source_jotform" { + 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_nylas.md b/docs/data-sources/source_nylas.md new file mode 100644 index 000000000..73826d930 --- /dev/null +++ b/docs/data-sources/source_nylas.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_nylas Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceNylas DataSource +--- + +# airbyte_source_nylas (Data Source) + +SourceNylas DataSource + +## Example Usage + +```terraform +data "airbyte_source_nylas" "my_source_nylas" { + 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_picqer.md b/docs/data-sources/source_picqer.md new file mode 100644 index 000000000..68a7ac762 --- /dev/null +++ b/docs/data-sources/source_picqer.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_picqer Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourcePicqer DataSource +--- + +# airbyte_source_picqer (Data Source) + +SourcePicqer DataSource + +## Example Usage + +```terraform +data "airbyte_source_picqer" "my_source_picqer" { + 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_piwik.md b/docs/data-sources/source_piwik.md new file mode 100644 index 000000000..c33c597b9 --- /dev/null +++ b/docs/data-sources/source_piwik.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_piwik Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourcePiwik DataSource +--- + +# airbyte_source_piwik (Data Source) + +SourcePiwik DataSource + +## Example Usage + +```terraform +data "airbyte_source_piwik" "my_source_piwik" { + 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_productboard.md b/docs/data-sources/source_productboard.md new file mode 100644 index 000000000..64422501f --- /dev/null +++ b/docs/data-sources/source_productboard.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_productboard Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceProductboard DataSource +--- + +# airbyte_source_productboard (Data Source) + +SourceProductboard DataSource + +## Example Usage + +```terraform +data "airbyte_source_productboard" "my_source_productboard" { + 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_productive.md b/docs/data-sources/source_productive.md new file mode 100644 index 000000000..a0e10e305 --- /dev/null +++ b/docs/data-sources/source_productive.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_productive Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceProductive DataSource +--- + +# airbyte_source_productive (Data Source) + +SourceProductive DataSource + +## Example Usage + +```terraform +data "airbyte_source_productive" "my_source_productive" { + 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_shortcut.md b/docs/data-sources/source_shortcut.md new file mode 100644 index 000000000..8d5aa1752 --- /dev/null +++ b/docs/data-sources/source_shortcut.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_shortcut Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceShortcut DataSource +--- + +# airbyte_source_shortcut (Data Source) + +SourceShortcut DataSource + +## Example Usage + +```terraform +data "airbyte_source_shortcut" "my_source_shortcut" { + 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_survicate.md b/docs/data-sources/source_survicate.md new file mode 100644 index 000000000..7b08eec26 --- /dev/null +++ b/docs/data-sources/source_survicate.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_survicate Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceSurvicate DataSource +--- + +# airbyte_source_survicate (Data Source) + +SourceSurvicate DataSource + +## Example Usage + +```terraform +data "airbyte_source_survicate" "my_source_survicate" { + 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_teamwork.md b/docs/data-sources/source_teamwork.md new file mode 100644 index 000000000..9d76cc19d --- /dev/null +++ b/docs/data-sources/source_teamwork.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_teamwork Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceTeamwork DataSource +--- + +# airbyte_source_teamwork (Data Source) + +SourceTeamwork DataSource + +## Example Usage + +```terraform +data "airbyte_source_teamwork" "my_source_teamwork" { + 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_when_i_work.md b/docs/data-sources/source_when_i_work.md new file mode 100644 index 000000000..e69d04dfa --- /dev/null +++ b/docs/data-sources/source_when_i_work.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_when_i_work Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceWhenIWork DataSource +--- + +# airbyte_source_when_i_work (Data Source) + +SourceWhenIWork DataSource + +## Example Usage + +```terraform +data "airbyte_source_when_i_work" "my_source_wheniwork" { + 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 36e64029a..4ab8cf968 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,7 +17,7 @@ terraform { required_providers { airbyte = { source = "airbytehq/airbyte" - version = "0.11.0" + version = "0.13.0" } } } diff --git a/docs/resources/destination_clickhouse.md b/docs/resources/destination_clickhouse.md index 9921a6f68..818fcda6a 100644 --- a/docs/resources/destination_clickhouse.md +++ b/docs/resources/destination_clickhouse.md @@ -21,14 +21,15 @@ resource "airbyte_destination_clickhouse" "my_destination_clickhouse" { password = "...my_password..." port = 8123 raw_data_schema = "...my_raw_data_schema..." + ssl = false tunnel_method = { no_tunnel = {} } - username = "Adah75" + username = "Mekhi.Cronin85" } - definition_id = "6d65d335-e03a-4beb-b71b-58e872ec68b6" - name = "Shawn Olson" - workspace_id = "48b53694-1566-4f22-bd30-a28af8c1d27b" + definition_id = "65d335e0-3abe-4bb7-9b58-e872ec68b6d2" + name = "Wade Schimmel" + workspace_id = "b5369415-66f2-42fd-b0a2-8af8c1d27b3e" } ``` @@ -65,6 +66,7 @@ Optional: - `password` (String, Sensitive) Password associated with the username. - `port` (Number) HTTP port of the database. Default: 8123 - `raw_data_schema` (String) The schema to write raw tables into (default: airbyte_internal) +- `ssl` (Boolean) Encrypt data using SSL. Default: false - `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method)) diff --git a/docs/resources/destination_convex.md b/docs/resources/destination_convex.md index 13e44101d..eb2b65058 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 = "e573c0eb-8223-4613-923c-e875293aec4a" - name = "Miss Peter Abernathy" - workspace_id = "23922581-a884-452d-a7c3-5eb92a9e952d" + definition_id = "73c0eb82-2361-43d2-bce8-75293aec4aa1" + name = "Jennifer Rogahn I" + workspace_id = "922581a8-8452-4de7-835e-b92a9e952da2" } ``` diff --git a/docs/resources/destination_custom.md b/docs/resources/destination_custom.md index 01a272338..68dfae2ee 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 = "a293962c-006a-4ece-a7c8-84619655998a" - name = "Roy Grimes" - workspace_id = "c560fc49-48d7-4191-bbd7-7158c7e04c57" + definition_id = "93962c00-6aec-4ee7-8884-619655998ae2" + name = "Gwen Tillman" + workspace_id = "60fc4948-d719-417b-9771-58c7e04c5798" } ``` diff --git a/docs/resources/destination_databricks.md b/docs/resources/destination_databricks.md index 17ca60e1c..af0476a29 100644 --- a/docs/resources/destination_databricks.md +++ b/docs/resources/destination_databricks.md @@ -15,7 +15,7 @@ DestinationDatabricks Resource ```terraform resource "airbyte_destination_databricks" "my_destination_databricks" { configuration = { - accept_terms = false + accept_terms = true authentication = { o_auth2_recommended = { client_id = "...my_client_id..." @@ -30,9 +30,9 @@ resource "airbyte_destination_databricks" "my_destination_databricks" { raw_schema_override = "...my_raw_schema_override..." schema = "default" } - definition_id = "bfbb5605-d730-46cf-a6f6-0bfc11e74f73" - name = "Janis Kohler" - workspace_id = "53e98a4c-0499-445e-9d6e-956416d119e8" + definition_id = "bb5605d7-306c-4fa6-b60b-fc11e74f736d" + name = "Molly Medhurst" + workspace_id = "e98a4c04-9945-4edd-ae95-6416d119e802" } ``` diff --git a/docs/resources/destination_dev_null.md b/docs/resources/destination_dev_null.md deleted file mode 100644 index 8388e2024..000000000 --- a/docs/resources/destination_dev_null.md +++ /dev/null @@ -1,69 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_destination_dev_null Resource - terraform-provider-airbyte" -subcategory: "" -description: |- - DestinationDevNull Resource ---- - -# airbyte_destination_dev_null (Resource) - -DestinationDevNull Resource - -## Example Usage - -```terraform -resource "airbyte_destination_dev_null" "my_destination_devnull" { - configuration = { - test_destination = { - silent = {} - } - } - definition_id = "02e07129-d464-44f9-9d3d-54c7cfb82ef1" - name = "Larry Brekke" - workspace_id = "57477c9e-2c85-4c90-8a20-3ff157a47112" -} -``` - - -## 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: - -- `test_destination` (Attributes) The type of destination to be used (see [below for nested schema](#nestedatt--configuration--test_destination)) - - -### Nested Schema for `configuration.test_destination` - -Optional: - -- `silent` (Attributes) (see [below for nested schema](#nestedatt--configuration--test_destination--silent)) - - -### Nested Schema for `configuration.test_destination.silent` - -## Import - -Import is supported using the following syntax: - -```shell -terraform import airbyte_destination_dev_null.my_airbyte_destination_dev_null "" -``` diff --git a/docs/resources/destination_duckdb.md b/docs/resources/destination_duckdb.md index eb913a2c8..25c9f1d05 100644 --- a/docs/resources/destination_duckdb.md +++ b/docs/resources/destination_duckdb.md @@ -19,9 +19,9 @@ resource "airbyte_destination_duckdb" "my_destination_duckdb" { motherduck_api_key = "...my_motherduck_api_key..." schema = "main" } - definition_id = "b1eeca9f-91eb-458c-b325-7456993f0626" - name = "Tom Kertzmann PhD" - workspace_id = "1987ed52-cbff-4018-9893-5bdfe2750539" + definition_id = "07129d46-44f9-4dd3-954c-7cfb82ef1e01" + name = "Emmett Herzog" + workspace_id = "77c9e2c8-5c90-44a2-83ff-157a47112db1" } ``` diff --git a/docs/resources/destination_dynamodb.md b/docs/resources/destination_dynamodb.md index c8ff6fd29..90b746961 100644 --- a/docs/resources/destination_dynamodb.md +++ b/docs/resources/destination_dynamodb.md @@ -17,13 +17,13 @@ resource "airbyte_destination_dynamodb" "my_destination_dynamodb" { configuration = { access_key_id = "A012345678910EXAMPLE" dynamodb_endpoint = "http://localhost:9000" - dynamodb_region = "us-west-1" + dynamodb_region = "us-gov-west-1" dynamodb_table_name_prefix = "airbyte_sync" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "4b807f99-3efa-4e2d-8af8-6589dab1153f" - name = "Eileen Kerluke" - workspace_id = "90b0855a-a0db-4797-942b-e7e5f1f78855" + definition_id = "eca9f91e-b58c-4332-9745-6993f0626846" + name = "Ms. Betty Shanahan" + workspace_id = "7ed52cbf-f018-4589-b5bd-fe2750539f4b" } ``` diff --git a/docs/resources/destination_elasticsearch.md b/docs/resources/destination_elasticsearch.md index f791207fb..2cc7d2a6c 100644 --- a/docs/resources/destination_elasticsearch.md +++ b/docs/resources/destination_elasticsearch.md @@ -23,11 +23,14 @@ resource "airbyte_destination_elasticsearch" "my_destination_elasticsearch" { } ca_certificate = "...my_ca_certificate..." endpoint = "...my_endpoint..." - upsert = false + tunnel_method = { + no_tunnel = {} + } + upsert = false } - definition_id = "635457da-65ed-4465-a758-afd2ad38ed7e" - name = "Thomas Vandervort" - workspace_id = "2212dc7d-0e4e-4509-9ed9-4b4ecb397d06" + definition_id = "07f993ef-ae2d-4caf-8658-9dab1153f466" + name = "Miss Harvey Mohr IV" + workspace_id = "55aa0db7-9794-42be-be5f-1f7885566354" } ``` @@ -60,6 +63,7 @@ Optional: - `authentication_method` (Attributes) The type of authentication to be used (see [below for nested schema](#nestedatt--configuration--authentication_method)) - `ca_certificate` (String, Sensitive) CA certificate +- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method)) - `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 @@ -68,6 +72,7 @@ Optional: Optional: - `api_key_secret` (Attributes) Use a api key and secret combination to authenticate (see [below for nested schema](#nestedatt--configuration--authentication_method--api_key_secret)) +- `none` (Attributes) No authentication will be used (see [below for nested schema](#nestedatt--configuration--authentication_method--none)) - `username_password` (Attributes) Basic auth header with a username and password (see [below for nested schema](#nestedatt--configuration--authentication_method--username_password)) @@ -79,6 +84,10 @@ Required: - `api_key_secret` (String, Sensitive) The secret associated with the API Key ID. + +### Nested Schema for `configuration.authentication_method.none` + + ### Nested Schema for `configuration.authentication_method.username_password` @@ -87,6 +96,48 @@ Required: - `password` (String, Sensitive) Basic auth password to access a secure Elasticsearch server - `username` (String) Basic auth username to access a secure Elasticsearch server + + + +### Nested Schema for `configuration.tunnel_method` + +Optional: + +- `no_tunnel` (Attributes) (see [below for nested schema](#nestedatt--configuration--tunnel_method--no_tunnel)) +- `password_authentication` (Attributes) (see [below for nested schema](#nestedatt--configuration--tunnel_method--password_authentication)) +- `ssh_key_authentication` (Attributes) (see [below for nested schema](#nestedatt--configuration--tunnel_method--ssh_key_authentication)) + + +### Nested Schema for `configuration.tunnel_method.no_tunnel` + + + +### Nested Schema for `configuration.tunnel_method.password_authentication` + +Required: + +- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel. +- `tunnel_user` (String) OS-level username for logging into the jump server host +- `tunnel_user_password` (String, Sensitive) OS-level password for logging into the jump server host + +Optional: + +- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections. Default: 22 + + + +### Nested Schema for `configuration.tunnel_method.ssh_key_authentication` + +Required: + +- `ssh_key` (String, Sensitive) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) +- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel. +- `tunnel_user` (String) OS-level username for logging into the jump server host. + +Optional: + +- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections. Default: 22 + ## Import Import is supported using the following syntax: diff --git a/docs/resources/destination_firebolt.md b/docs/resources/destination_firebolt.md index 9555fc35d..0ae82349f 100644 --- a/docs/resources/destination_firebolt.md +++ b/docs/resources/destination_firebolt.md @@ -30,9 +30,9 @@ resource "airbyte_destination_firebolt" "my_destination_firebolt" { } } } - definition_id = "4562efb7-ef5d-437e-a6e5-cbc1c0786ea3" - name = "Alfonso Grimes" - workspace_id = "c4202097-dcad-41af-a414-5a8ead644361" + definition_id = "57da65ed-465e-4758-afd2-ad38ed7ed0e5" + name = "Mr. Benjamin Collins" + workspace_id = "c7d0e4e5-095e-4d94-b4ec-b397d064562e" } ``` diff --git a/docs/resources/destination_firestore.md b/docs/resources/destination_firestore.md index a9ddef9fe..1b05311c4 100644 --- a/docs/resources/destination_firestore.md +++ b/docs/resources/destination_firestore.md @@ -18,9 +18,9 @@ resource "airbyte_destination_firestore" "my_destination_firestore" { credentials_json = "...my_credentials_json..." project_id = "...my_project_id..." } - definition_id = "fa9c0130-5655-43a4-a50c-dde3bcff11f6" - name = "Angela Will" - workspace_id = "23b2f88e-15f8-468b-b037-297dcd66bcb9" + definition_id = "fb7ef5d3-7ea6-4e5c-bc1c-0786ea3ea494" + name = "Mr. Ray Cummerata V" + workspace_id = "7dcad1af-a414-45a8-aad6-44361fa9c013" } ``` diff --git a/docs/resources/destination_gcs.md b/docs/resources/destination_gcs.md index 53f14d1f3..b91574663 100644 --- a/docs/resources/destination_gcs.md +++ b/docs/resources/destination_gcs.md @@ -34,11 +34,11 @@ resource "airbyte_destination_gcs" "my_destination_gcs" { } gcs_bucket_name = "airbyte_sync" gcs_bucket_path = "data_sync/test" - gcs_bucket_region = "asia-northeast3" + gcs_bucket_region = "northamerica-northeast2" } - definition_id = "13f0bea6-4a23-47e4-a59e-7bfd1d496bd1" - name = "Christie Altenwerth" - workspace_id = "4a7d5d4b-2ee1-453b-82c3-2f48f6e543a0" + definition_id = "56553a4e-50cd-4de3-bcff-11f630fa923b" + name = "Elisa Lakin" + workspace_id = "15f868bf-0372-497d-8d66-bcb9a13f0bea" } ``` diff --git a/docs/resources/destination_google_sheets.md b/docs/resources/destination_google_sheets.md index 6dd8c4b26..76996986f 100644 --- a/docs/resources/destination_google_sheets.md +++ b/docs/resources/destination_google_sheets.md @@ -22,9 +22,9 @@ resource "airbyte_destination_google_sheets" "my_destination_googlesheets" { } spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit" } - definition_id = "f0f39a6c-151a-478c-b13c-3589bc3eaba6" - name = "Freda Dicki" - workspace_id = "7f09ed83-2d18-4ddd-bef1-f87bb5069e16" + definition_id = "64a237e4-a59e-47bf-91d4-96bd14d08d4a" + name = "Marcella Hand" + workspace_id = "b2ee153b-42c3-42f4-8f6e-543a0f0f39a6" } ``` diff --git a/docs/resources/destination_milvus.md b/docs/resources/destination_milvus.md index 4370a1891..b9cbd0762 100644 --- a/docs/resources/destination_milvus.md +++ b/docs/resources/destination_milvus.md @@ -30,14 +30,14 @@ resource "airbyte_destination_milvus" "my_destination_milvus" { } collection = "...my_collection..." db = "...my_db..." - host = "tcp://host.docker.internal:19530" + host = "tcp://my-local-milvus:19530" text_field = "...my_text_field..." vector_field = "...my_vector_field..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 6 - chunk_size = 4 + chunk_overlap = 3 + chunk_size = 0 field_name_mappings = [ { from_field = "...my_from_field..." @@ -52,14 +52,14 @@ resource "airbyte_destination_milvus" "my_destination_milvus" { ] text_splitter = { by_markdown_header = { - split_level = 2 + split_level = 7 } } } } - definition_id = "5a4e1801-23f0-4d76-bb78-bf74fa22de12" - name = "Jenny Braun" - workspace_id = "f134d000-7497-474a-a87c-30892ffb0f41" + definition_id = "78cf13c3-589b-4c3e-aba6-3d3987f09ed8" + name = "Ms. Marilyn Sporer" + workspace_id = "ddbef1f8-7bb5-4069-a16a-5a735a4e1801" } ``` diff --git a/docs/resources/destination_mongodb.md b/docs/resources/destination_mongodb.md index c0d7af7a3..480f369cb 100644 --- a/docs/resources/destination_mongodb.md +++ b/docs/resources/destination_mongodb.md @@ -18,7 +18,7 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { auth_type = { login_password = { password = "...my_password..." - username = "Ubaldo12" + username = "Britney.Feeney86" } } database = "...my_database..." @@ -32,9 +32,9 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { no_tunnel = {} } } - definition_id = "48d60128-3384-4bd8-bb5c-ce3614854333" - name = "Courtney Considine" - workspace_id = "5e509f45-2521-4a04-b878-c254cd184fd1" + definition_id = "76fb78bf-74fa-422d-a127-91b5f134d000" + name = "Jamie Metz" + workspace_id = "4ae87c30-892f-4fb0-b41f-82248d601283" } ``` @@ -136,6 +136,7 @@ Optional: - `instance` (String) must be one of ["standalone"]; Default: "standalone" - `port` (Number) The Port of a Mongo database to be replicated. Default: 27017 +- `tls` (Boolean) Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see documentation. Default: false diff --git a/docs/resources/destination_mssql.md b/docs/resources/destination_mssql.md index 8b688991e..52b909f9d 100644 --- a/docs/resources/destination_mssql.md +++ b/docs/resources/destination_mssql.md @@ -28,11 +28,11 @@ resource "airbyte_destination_mssql" "my_destination_mssql" { tunnel_method = { no_tunnel = {} } - username = "Hope.Toy" + username = "Justus_Hahn54" } - definition_id = "f1c50c9e-c767-447b-86cf-86fe4a6f8bb8" - name = "Lisa Von" - workspace_id = "46f802e7-b218-43b2-bc4f-6db7afdacad2" + definition_id = "7b5cce36-1485-4433-bdf2-3c5e509f4525" + name = "Mrs. Anna Pfannerstill" + workspace_id = "878c254c-d184-4fd1-96e7-5f1c50c9ec76" } ``` @@ -80,6 +80,7 @@ Optional: - `encrypted_trust_server_certificate` (Attributes) Use the certificate provided by the server without verification. (For testing purposes only!) (see [below for nested schema](#nestedatt--configuration--ssl_method--encrypted_trust_server_certificate)) - `encrypted_verify_certificate` (Attributes) Verify and use the certificate provided by the server. (see [below for nested schema](#nestedatt--configuration--ssl_method--encrypted_verify_certificate)) +- `unencrypted` (Attributes) The data transfer will not be encrypted. (see [below for nested schema](#nestedatt--configuration--ssl_method--unencrypted)) ### Nested Schema for `configuration.ssl_method.encrypted_trust_server_certificate` @@ -93,6 +94,10 @@ Optional: - `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. + +### Nested Schema for `configuration.ssl_method.unencrypted` + + ### Nested Schema for `configuration.tunnel_method` diff --git a/docs/resources/destination_mysql.md b/docs/resources/destination_mysql.md index 29b96e841..435818246 100644 --- a/docs/resources/destination_mysql.md +++ b/docs/resources/destination_mysql.md @@ -16,20 +16,21 @@ DestinationMysql Resource resource "airbyte_destination_mysql" "my_destination_mysql" { configuration = { database = "...my_database..." - disable_type_dedupe = false + disable_type_dedupe = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." port = 3306 raw_data_schema = "...my_raw_data_schema..." + ssl = false tunnel_method = { no_tunnel = {} } - username = "Deon.Russel49" + username = "Melody_Abernathy" } - definition_id = "a6683bb7-6cbd-4d42-804b-7b603cc8cd88" - name = "Tricia Klocko I" - workspace_id = "813ef7fc-0d17-46e5-b414-549f1242182d" + definition_id = "f86fe4a6-f8bb-4810-ad64-6f802e7b2183" + name = "Phillip Prohaska" + workspace_id = "f6db7afd-acad-42c1-8cf1-7a6683bb76cb" } ``` @@ -67,6 +68,7 @@ Optional: - `password` (String, Sensitive) Password associated with the username. - `port` (Number) Port of the database. Default: 3306 - `raw_data_schema` (String) The database to write raw tables into +- `ssl` (Boolean) Encrypt data using SSL. Default: true - `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method)) diff --git a/docs/resources/destination_oracle.md b/docs/resources/destination_oracle.md index 017511bca..1ab6c7775 100644 --- a/docs/resources/destination_oracle.md +++ b/docs/resources/destination_oracle.md @@ -15,6 +15,11 @@ DestinationOracle Resource ```terraform resource "airbyte_destination_oracle" "my_destination_oracle" { configuration = { + encryption = { + native_network_encryption_nne = { + encryption_algorithm = "3DES168" + } + } host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." @@ -25,11 +30,11 @@ resource "airbyte_destination_oracle" "my_destination_oracle" { tunnel_method = { no_tunnel = {} } - username = "Emmalee.Towne89" + username = "Dolores.Cummerata25" } - definition_id = "895c9212-6184-452d-9432-f33897fec4ca" - name = "Adrienne Lockman" - workspace_id = "bf882725-c3c6-4bc3-9a6d-3f396b39ea0e" + definition_id = "b7b603cc-8cd8-487e-b603-813ef7fc0d17" + name = "Eloise Hilpert" + workspace_id = "14549f12-4218-42d1-9ef4-e895c9212618" } ``` @@ -62,6 +67,7 @@ Required: Optional: +- `encryption` (Attributes) The encryption method which is used when communicating with the database. (see [below for nested schema](#nestedatt--configuration--encryption)) - `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). - `password` (String, Sensitive) The password associated with the username. - `port` (Number) The port of the database. Default: 1521 @@ -69,6 +75,36 @@ Optional: - `schema` (String) The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema. Default: "airbyte" - `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method)) + +### Nested Schema for `configuration.encryption` + +Optional: + +- `native_network_encryption_nne` (Attributes) The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. (see [below for nested schema](#nestedatt--configuration--encryption--native_network_encryption_nne)) +- `tls_encrypted_verify_certificate` (Attributes) Verify and use the certificate provided by the server. (see [below for nested schema](#nestedatt--configuration--encryption--tls_encrypted_verify_certificate)) +- `unencrypted` (Attributes) Data transfer will not be encrypted. (see [below for nested schema](#nestedatt--configuration--encryption--unencrypted)) + + +### Nested Schema for `configuration.encryption.native_network_encryption_nne` + +Optional: + +- `encryption_algorithm` (String) This parameter defines the database encryption algorithm. must be one of ["AES256", "RC4_56", "3DES168"]; Default: "AES256" + + + +### Nested Schema for `configuration.encryption.tls_encrypted_verify_certificate` + +Required: + +- `ssl_certificate` (String, Sensitive) Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + + + +### Nested Schema for `configuration.encryption.unencrypted` + + + ### Nested Schema for `configuration.tunnel_method` diff --git a/docs/resources/destination_pgvector.md b/docs/resources/destination_pgvector.md new file mode 100644 index 000000000..e9e629e64 --- /dev/null +++ b/docs/resources/destination_pgvector.md @@ -0,0 +1,244 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_destination_pgvector Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + DestinationPgvector Resource +--- + +# airbyte_destination_pgvector (Resource) + +DestinationPgvector Resource + +## Example Usage + +```terraform +resource "airbyte_destination_pgvector" "my_destination_pgvector" { + configuration = { + embedding = { + azure_open_ai = { + api_base = "https://your-resource-name.openai.azure.com" + deployment = "your-resource-name" + openai_key = "...my_openai_key..." + } + } + indexing = { + credentials = { + password = "AIRBYTE_PASSWORD" + } + database = "AIRBYTE_DATABASE" + default_schema = "AIRBYTE_SCHEMA" + host = "AIRBYTE_ACCOUNT" + port = 5432 + username = "AIRBYTE_USER" + } + omit_raw_text = true + processing = { + chunk_overlap = 1 + chunk_size = 10 + field_name_mappings = [ + { + from_field = "...my_from_field..." + to_field = "...my_to_field..." + }, + ] + metadata_fields = [ + "...", + ] + text_fields = [ + "...", + ] + text_splitter = { + by_markdown_header = { + split_level = 2 + } + } + } + } + definition_id = "3897fec4-ca4c-48c4-bf88-2725c3c6bc39" + name = "Tyler Smith" + workspace_id = "396b39ea-0e10-4165-90e1-a2bc7de0ff63" +} +``` + + +## Schema + +### Required + +- `configuration` (Attributes) The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, +as well as to provide type safety for the configuration passed to the destination. + +The configuration model is composed of four parts: +* Processing configuration +* Embedding configuration +* Indexing configuration +* Advanced configuration + +Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. (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) Postgres can be used to store vector data and retrieve embeddings. (see [below for nested schema](#nestedatt--configuration--indexing)) +- `processing` (Attributes) (see [below for nested schema](#nestedatt--configuration--processing)) + +Optional: + +- `omit_raw_text` (Boolean) Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. Default: false + + +### Nested Schema for `configuration.embedding` + +Optional: + +- `azure_open_ai` (Attributes) Use the Azure-hosted 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--azure_open_ai)) +- `cohere` (Attributes) Use the Cohere API to embed text. (see [below for nested schema](#nestedatt--configuration--embedding--cohere)) +- `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)) +- `open_ai_compatible` (Attributes) Use a service that's compatible with the OpenAI API to embed text. (see [below for nested schema](#nestedatt--configuration--embedding--open_ai_compatible)) + + +### Nested Schema for `configuration.embedding.azure_open_ai` + +Required: + +- `api_base` (String) The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource +- `deployment` (String) The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource +- `openai_key` (String, Sensitive) The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + + + +### Nested Schema for `configuration.embedding.cohere` + +Required: + +- `cohere_key` (String, Sensitive) + + + +### Nested Schema for `configuration.embedding.fake` + + + +### Nested Schema for `configuration.embedding.open_ai` + +Required: + +- `openai_key` (String, Sensitive) + + + +### Nested Schema for `configuration.embedding.open_ai_compatible` + +Required: + +- `base_url` (String) The base URL for your OpenAI-compatible service +- `dimensions` (Number) The number of dimensions the embedding model is generating + +Optional: + +- `api_key` (String, Sensitive) Default: "" +- `model_name` (String) The name of the model to use for embedding. Default: "text-embedding-ada-002" + + + + +### Nested Schema for `configuration.indexing` + +Required: + +- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--indexing--credentials)) +- `database` (String) Enter the name of the database that you want to sync data into +- `default_schema` (String) Enter the name of the default schema +- `host` (String) Enter the account name you want to use to access the database. +- `port` (Number) Enter the port you want to use to access the database +- `username` (String) Enter the name of the user you want to use to access the database + + +### Nested Schema for `configuration.indexing.credentials` + +Required: + +- `password` (String, Sensitive) Enter the password you want to use to access the database + + + + +### 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) + +Optional: + +- `chunk_overlap` (Number) Size of overlap between chunks in tokens to store in vector store to better capture relevant context. Default: 0 +- `field_name_mappings` (Attributes List) List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. (see [below for nested schema](#nestedatt--configuration--processing--field_name_mappings)) +- `metadata_fields` (List of String) List of fields in the record that should be stored as metadata. 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 metadata 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. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. +- `text_fields` (List of String) List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. +- `text_splitter` (Attributes) Split text fields into chunks based on the specified method. (see [below for nested schema](#nestedatt--configuration--processing--text_splitter)) + + +### Nested Schema for `configuration.processing.field_name_mappings` + +Required: + +- `from_field` (String) The field name in the source +- `to_field` (String) The field name to use in the destination + + + +### Nested Schema for `configuration.processing.text_splitter` + +Optional: + +- `by_markdown_header` (Attributes) Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. (see [below for nested schema](#nestedatt--configuration--processing--text_splitter--by_markdown_header)) +- `by_programming_language` (Attributes) Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. (see [below for nested schema](#nestedatt--configuration--processing--text_splitter--by_programming_language)) +- `by_separator` (Attributes) Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. (see [below for nested schema](#nestedatt--configuration--processing--text_splitter--by_separator)) + + +### Nested Schema for `configuration.processing.text_splitter.by_separator` + +Optional: + +- `split_level` (Number) Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points. Default: 1 + + + +### Nested Schema for `configuration.processing.text_splitter.by_separator` + +Required: + +- `language` (String) Split code in suitable places based on the programming language. must be one of ["cpp", "go", "java", "js", "php", "proto", "python", "rst", "ruby", "rust", "scala", "swift", "markdown", "latex", "html", "sol"] + + + +### Nested Schema for `configuration.processing.text_splitter.by_separator` + +Optional: + +- `keep_separator` (Boolean) Whether to keep the separator in the resulting chunks. Default: false +- `separators` (List of String) List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_destination_pgvector.my_airbyte_destination_pgvector "" +``` diff --git a/docs/resources/destination_pinecone.md b/docs/resources/destination_pinecone.md index dd6205e58..a92570780 100644 --- a/docs/resources/destination_pinecone.md +++ b/docs/resources/destination_pinecone.md @@ -27,10 +27,10 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { pinecone_environment = "us-west1-gcp" pinecone_key = "...my_pinecone_key..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 0 - chunk_size = 4 + chunk_overlap = 5 + chunk_size = 3 field_name_mappings = [ { from_field = "...my_from_field..." @@ -45,14 +45,14 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { ] text_splitter = { by_markdown_header = { - split_level = 3 + split_level = 6 } } } } - definition_id = "90e1a2bc-7de0-4ff6-b737-4915d3efc2cd" - name = "Jorge Beahan" - workspace_id = "6acc1e6f-1291-4560-8b55-b326e06d2448" + definition_id = "15d3efc2-cd95-40e3-aacc-1e6f12915604" + name = "Lloyd Hartmann" + workspace_id = "26e06d24-48e4-4e42-a530-50a9afbc66c9" } ``` diff --git a/docs/resources/destination_postgres.md b/docs/resources/destination_postgres.md index 376baf260..c6df5a0fc 100644 --- a/docs/resources/destination_postgres.md +++ b/docs/resources/destination_postgres.md @@ -16,25 +16,26 @@ DestinationPostgres Resource resource "airbyte_destination_postgres" "my_destination_postgres" { configuration = { database = "...my_database..." - disable_type_dedupe = true - drop_cascade = false + disable_type_dedupe = false + drop_cascade = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." port = 5432 raw_data_schema = "...my_raw_data_schema..." schema = "public" + ssl = true ssl_mode = { allow = {} } tunnel_method = { no_tunnel = {} } - username = "Ed.Crooks" + username = "Micaela.Kris" } - definition_id = "3050a9af-bc66-4c91-ba5b-78062a6a13d9" - name = "Cody Williamson" - workspace_id = "598ffb04-2924-4fae-ae50-18c319374090" + definition_id = "62a6a13d-9b7f-4635-98ff-b042924faeae" + name = "Lisa Bergnaum" + workspace_id = "31937409-0efb-422d-b6fe-0864a856a041" } ``` @@ -74,6 +75,7 @@ Optional: - `port` (Number) Port of the database. Default: 5432 - `raw_data_schema` (String) The schema to write raw tables into - `schema` (String) The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". Default: "public" +- `ssl` (Boolean) Encrypt data using SSL. When activating SSL, please select one of the connection modes. Default: false - `ssl_mode` (Attributes) SSL connection modes. disable - Chose this mode to disable encryption of communication between Airbyte and destination database allow - Chose this mode to enable encryption only when required by the source database diff --git a/docs/resources/destination_pubsub.md b/docs/resources/destination_pubsub.md index 201c265ad..f39191e23 100644 --- a/docs/resources/destination_pubsub.md +++ b/docs/resources/destination_pubsub.md @@ -15,18 +15,18 @@ DestinationPubsub Resource ```terraform resource "airbyte_destination_pubsub" "my_destination_pubsub" { configuration = { - batching_delay_threshold = 10 - batching_element_count_threshold = 10 - batching_enabled = false - batching_request_bytes_threshold = 1 + batching_delay_threshold = 4 + batching_element_count_threshold = 0 + batching_enabled = true + batching_request_bytes_threshold = 10 credentials_json = "...my_credentials_json..." ordering_enabled = false project_id = "...my_project_id..." topic_id = "...my_topic_id..." } - definition_id = "db6fe086-4a85-46a0-8170-ff8566dc3233" - name = "Belinda Kuhn" - workspace_id = "07bf0728-b707-4755-8c67-348eaa4356f3" + definition_id = "566dc323-3597-47b0-bbf0-728b7077558c" + name = "Jackie Franey" + workspace_id = "eaa4356f-389a-4d49-9bc4-fabbf1994382" } ``` diff --git a/docs/resources/destination_qdrant.md b/docs/resources/destination_qdrant.md index 3c18557da..02d2b4739 100644 --- a/docs/resources/destination_qdrant.md +++ b/docs/resources/destination_qdrant.md @@ -29,15 +29,15 @@ resource "airbyte_destination_qdrant" "my_destination_qdrant" { } } collection = "...my_collection..." - distance_metric = "cos" + distance_metric = "dot" prefer_grpc = true text_field = "...my_text_field..." url = "...my_url..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 9 - chunk_size = 2 + chunk_overlap = 8 + chunk_size = 3 field_name_mappings = [ { from_field = "...my_from_field..." @@ -52,14 +52,14 @@ resource "airbyte_destination_qdrant" "my_destination_qdrant" { ] text_splitter = { by_markdown_header = { - split_level = 6 + split_level = 9 } } } } - definition_id = "dbc4fabb-f199-4438-a023-b4de2c1a7f28" - name = "Gerard Simonis" - workspace_id = "de3c9d6f-a94b-474b-938f-85ce1dfc1b27" + definition_id = "e2c1a7f2-88ad-43cd-a3c9-d6fa94b74b93" + name = "Cary Lueilwitz" + workspace_id = "e1dfc1b2-798d-4b19-a64b-83f63d348370" } ``` diff --git a/docs/resources/destination_redis.md b/docs/resources/destination_redis.md index e060d8df1..61849451f 100644 --- a/docs/resources/destination_redis.md +++ b/docs/resources/destination_redis.md @@ -18,7 +18,7 @@ resource "airbyte_destination_redis" "my_destination_redis" { cache_type = "hash" host = "localhost,127.0.0.1" password = "...my_password..." - port = 6 + port = 10 ssl = true ssl_mode = { disable = {} @@ -26,11 +26,11 @@ resource "airbyte_destination_redis" "my_destination_redis" { tunnel_method = { no_tunnel = {} } - username = "Salma59" + username = "Isaiah_Fay61" } - definition_id = "e64b83f6-3d34-4837-8e17-3ec9d4f32d3e" - name = "Shelly Connelly" - workspace_id = "a43c0f29-f7cb-4d12-b320-943801c3678d" + definition_id = "d4f32d3e-192a-48a4-bc0f-29f7cbd12b32" + name = "Guadalupe Gerlach" + workspace_id = "01c3678d-42b6-4294-a31a-29aaf3c68070" } ``` diff --git a/docs/resources/destination_redshift.md b/docs/resources/destination_redshift.md index b705416c4..54cf7ac1b 100644 --- a/docs/resources/destination_redshift.md +++ b/docs/resources/destination_redshift.md @@ -17,7 +17,7 @@ resource "airbyte_destination_redshift" "my_destination_redshift" { configuration = { database = "...my_database..." disable_type_dedupe = true - drop_cascade = true + drop_cascade = false host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." @@ -30,19 +30,19 @@ resource "airbyte_destination_redshift" "my_destination_redshift" { uploading_method = { awss3_staging = { access_key_id = "...my_access_key_id..." - file_name_pattern = "{timestamp}" - purge_staging_data = false + file_name_pattern = "{date}" + purge_staging_data = true s3_bucket_name = "airbyte.staging" s3_bucket_path = "data_sync/test" - s3_bucket_region = "eu-south-2" + s3_bucket_region = "ap-south-1" secret_access_key = "...my_secret_access_key..." } } - username = "Devante10" + username = "Jacky18" } - definition_id = "a29aaf3c-6807-40ec-a153-7042295e6e54" - name = "Ms. Edmund Douglas III" - workspace_id = "586b7399-0fea-469b-aba7-dc7cde8f8d83" + definition_id = "295e6e54-dc30-4616-986b-73990fea69be" + name = "Hubert Kub" + workspace_id = "7cde8f8d-8392-4aab-95fb-458bad9ea767" } ``` diff --git a/docs/resources/destination_s3.md b/docs/resources/destination_s3.md index c66b9a025..6e5265101 100644 --- a/docs/resources/destination_s3.md +++ b/docs/resources/destination_s3.md @@ -16,7 +16,7 @@ DestinationS3 Resource resource "airbyte_destination_s3" "my_destination_s3" { configuration = { access_key_id = "A012345678910EXAMPLE" - file_name_pattern = "{timestamp}" + file_name_pattern = "{date}" format = { avro_apache_avro = { compression_codec = { @@ -30,14 +30,14 @@ resource "airbyte_destination_s3" "my_destination_s3" { role_arn = "arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId" s3_bucket_name = "airbyte_sync" s3_bucket_path = "data_sync/test" - s3_bucket_region = "ap-northeast-3" + s3_bucket_region = "us-east-1" s3_endpoint = "http://localhost:9000" s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "aab15fb4-58ba-4d9e-a767-1d5852a459de" - name = "Bonnie Beatty" - workspace_id = "3420a295-e5c0-4996-a877-b187a0987534" + definition_id = "5852a459-de52-40ce-b420-a295e5c09962" + name = "Allan Kihn IV" + workspace_id = "7a098753-4412-4bc3-a17a-cbe2ad9f3186" } ``` diff --git a/docs/resources/destination_s3_glue.md b/docs/resources/destination_s3_glue.md index 274f9034e..390a31c51 100644 --- a/docs/resources/destination_s3_glue.md +++ b/docs/resources/destination_s3_glue.md @@ -24,7 +24,7 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" { compression_type = "GZIP" } } - flattening = "No flattening" + flattening = "Root level flattening" format_type = "JSONL" } } @@ -32,14 +32,14 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" { glue_serialization_library = "org.openx.data.jsonserde.JsonSerDe" s3_bucket_name = "airbyte_sync" s3_bucket_path = "data_sync/test" - s3_bucket_region = "me-central-1" + s3_bucket_region = "us-west-1" s3_endpoint = "http://localhost:9000" s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "c3217acb-e2ad-49f3-9864-86fc7b23d6b8" - name = "Billie Wisoky I" - workspace_id = "46c04b19-3fb2-4891-8e38-2726ed560cd3" + definition_id = "c7b23d6b-848f-4403-86c0-4b193fb28918" + name = "Melvin Lueilwitz" + workspace_id = "26ed560c-d3f9-4e1f-9eaf-9a8e2157a856" } ``` diff --git a/docs/resources/destination_sftp_json.md b/docs/resources/destination_sftp_json.md index ecd35855b..aea71d32d 100644 --- a/docs/resources/destination_sftp_json.md +++ b/docs/resources/destination_sftp_json.md @@ -19,11 +19,11 @@ resource "airbyte_destination_sftp_json" "my_destination_sftpjson" { host = "...my_host..." password = "...my_password..." port = 22 - username = "Kristin95" + username = "Peyton_Lang" } - definition_id = "9eaf9a8e-2157-4a85-a0c8-9e77fd0c2020" - name = "Rick Sporer" - workspace_id = "6de60f94-2f93-47a3-8595-08dd11c7ed17" + definition_id = "77fd0c20-2086-4d39-ade6-0f942f937a3c" + name = "Ms. Ada Heidenreich" + workspace_id = "d11c7ed1-7b1d-45b0-8289-a0dc02329a5c" } ``` diff --git a/docs/resources/destination_snowflake.md b/docs/resources/destination_snowflake.md index ba699397d..5c922b1c3 100644 --- a/docs/resources/destination_snowflake.md +++ b/docs/resources/destination_snowflake.md @@ -22,20 +22,20 @@ resource "airbyte_destination_snowflake" "my_destination_snowflake" { } } database = "AIRBYTE_DATABASE" - disable_type_dedupe = false - host = "accountname.us-east-2.aws.snowflakecomputing.com" + disable_type_dedupe = true + host = "accountname.snowflakecomputing.com" jdbc_url_params = "...my_jdbc_url_params..." raw_data_schema = "...my_raw_data_schema..." - retention_period_days = 9 + retention_period_days = 6 role = "AIRBYTE_ROLE" schema = "AIRBYTE_SCHEMA" use_merge_for_upsert = false username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "89a0dc02-329a-45ca-a9f3-888495eab20e" - name = "Mrs. Kelvin Dickens" - workspace_id = "3624c439-0072-45fa-be33-722ced92f8e0" + definition_id = "495eab20-ebb3-405f-b624-c43900725fa3" + name = "Stanley Emmerich" + workspace_id = "2ced92f8-e06e-4f6f-ad36-51e7d5496735" } ``` diff --git a/docs/resources/destination_snowflake_cortex.md b/docs/resources/destination_snowflake_cortex.md index 0174fe592..68a22de69 100644 --- a/docs/resources/destination_snowflake_cortex.md +++ b/docs/resources/destination_snowflake_cortex.md @@ -29,14 +29,14 @@ resource "airbyte_destination_snowflake_cortex" "my_destination_snowflakecortex" database = "AIRBYTE_DATABASE" default_schema = "AIRBYTE_SCHEMA" host = "AIRBYTE_ACCOUNT" - role = "AIRBYTE_ROLE" + role = "ACCOUNTADMIN" username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } omit_raw_text = true processing = { - chunk_overlap = 9 - chunk_size = 2 + chunk_overlap = 5 + chunk_size = 4 field_name_mappings = [ { from_field = "...my_from_field..." @@ -51,14 +51,14 @@ resource "airbyte_destination_snowflake_cortex" "my_destination_snowflakecortex" ] text_splitter = { by_markdown_header = { - split_level = 4 + split_level = 7 } } } } - definition_id = "51e7d549-6735-4da2-93c8-6a8b9fef8f53" - name = "Jessie Jones" - workspace_id = "de30a86e-4df1-49fa-ac84-c31846ef3644" + definition_id = "8b9fef8f-5387-46e3-9e30-a86e4df19faa" + name = "Willard Gerhold" + workspace_id = "1846ef36-4419-46a0-8bb9-666e7d15e7ee" } ``` diff --git a/docs/resources/destination_teradata.md b/docs/resources/destination_teradata.md index 23fca2072..3aa476c33 100644 --- a/docs/resources/destination_teradata.md +++ b/docs/resources/destination_teradata.md @@ -19,15 +19,15 @@ resource "airbyte_destination_teradata" "my_destination_teradata" { jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." schema = "airbyte_td" - ssl = true + ssl = false ssl_mode = { allow = {} } - username = "Lillian.Keebler" + username = "Rocio.Gibson" } - definition_id = "4bb9666e-7d15-4e7e-add4-643586b689fd" - name = "Eric Fadel" - workspace_id = "92fcfab7-3b9b-4a5d-b045-674ad28dce71" + definition_id = "3586b689-fdc1-43c2-92fc-fab73b9ba5d3" + name = "Amber Hansen" + workspace_id = "4ad28dce-71d7-4fd7-9366-4c8ab088c248" } ``` diff --git a/docs/resources/destination_timeplus.md b/docs/resources/destination_timeplus.md index 7cc12d0ce..3dbbe7f3a 100644 --- a/docs/resources/destination_timeplus.md +++ b/docs/resources/destination_timeplus.md @@ -18,9 +18,9 @@ resource "airbyte_destination_timeplus" "my_destination_timeplus" { 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" + definition_id = "e91396f3-4075-445d-9006-86d04e608039" + name = "Roosevelt Kuphal" + workspace_id = "0732a475-24bb-4490-aa75-3ad11902ba18" } ``` diff --git a/docs/resources/destination_typesense.md b/docs/resources/destination_typesense.md index e35300065..d51b91a04 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 = 7 + batch_size = 5 host = "...my_host..." path = "...my_path..." port = "...my_port..." protocol = "...my_protocol..." } - definition_id = "b490aa75-3ad1-4190-aba1-88860231ad19" - name = "Sandy Wuckert" - workspace_id = "1985c92d-33ca-4e7e-9b40-1c239e69c6f2" + definition_id = "860231ad-193a-4f49-9985-c92d33cae7ed" + name = "Miss Micheal Bauch" + workspace_id = "39e69c6f-21d6-4541-b3cc-cbbc51a3caa6" } ``` diff --git a/docs/resources/destination_vectara.md b/docs/resources/destination_vectara.md index 9fcbcb87c..536092666 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 = "d654173c-ccbb-4c51-a3ca-a62e557cba0d" - name = "Mr. Sherry Leuschke" - workspace_id = "a5767fcf-379f-4a40-91ea-e8db1144f7f4" + definition_id = "e557cba0-d338-4002-a576-7fcf379fa401" + name = "Kellie Oberbrunner" + workspace_id = "db1144f7-f4dc-4b28-9085-8467e5cd3332" } ``` diff --git a/docs/resources/destination_weaviate.md b/docs/resources/destination_weaviate.md index 40b4cf91f..34e58629e 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 = 9 - default_vectorizer = "text2vec-transformers" + batch_size = 6 + default_vectorizer = "text2vec-huggingface" host = "https://my-cluster.weaviate.network" tenant_id = "...my_tenant_id..." text_field = "...my_text_field..." } omit_raw_text = true processing = { - chunk_overlap = 1 - chunk_size = 6 + chunk_overlap = 5 + chunk_size = 8 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 = 0 + split_level = 8 } } } } - definition_id = "0858467e-5cd3-4332-85c7-cc3fde334f78" - name = "Maggie Nolan" - workspace_id = "aaf527fe-19eb-41bf-8ee2-339467597e80" + definition_id = "3fde334f-786a-4ae3-aaf5-27fe19eb1bf8" + name = "Sheldon Crooks" + workspace_id = "9467597e-801e-4676-89a4-6f396c7c6bf7" } ``` diff --git a/docs/resources/destination_yellowbrick.md b/docs/resources/destination_yellowbrick.md index ebd680c9a..c2ef5aff0 100644 --- a/docs/resources/destination_yellowbrick.md +++ b/docs/resources/destination_yellowbrick.md @@ -21,18 +21,18 @@ resource "airbyte_destination_yellowbrick" "my_destination_yellowbrick" { password = "...my_password..." port = 5432 schema = "public" - ssl = false + ssl = true ssl_mode = { allow = {} } tunnel_method = { no_tunnel = {} } - username = "Heath_Klocko" + username = "Cathryn7" } - definition_id = "9a46f396-c7c6-4bf7-b724-213ca1059f1e" - name = "Patricia Franecki DVM" - workspace_id = "c0eaa506-81bc-43ad-b090-c013842c101e" + definition_id = "3ca1059f-1e30-4360-bc0e-aa50681bc3ad" + name = "Miss Edward Mueller Sr." + workspace_id = "3842c101-e265-4eeb-8230-b15094cc2185" } ``` diff --git a/docs/resources/permission.md b/docs/resources/permission.md index f1afe7f56..142c3dfe4 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 = "265eebc2-30b1-4509-8cc2-1854edb75e7d" - permission_type = "organization_admin" - user_id = "c9ddc2da-362f-4af1-b28f-e26cb1bb0550" - workspace_id = "b4e34412-6e7f-4293-b6e2-37818d15373d" + organization_id = "4edb75e7-d1c9-4ddc-ada3-62faf1b28fe2" + permission_type = "organization_member" + user_id = "cb1bb055-0b4e-4344-926e-7f29336e2378" + workspace_id = "18d15373-da8d-46ee-b047-57630ddbc2db" } ``` diff --git a/docs/resources/source_7shifts.md b/docs/resources/source_7shifts.md new file mode 100644 index 000000000..02329cfcd --- /dev/null +++ b/docs/resources/source_7shifts.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_7shifts Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + Source7shifts Resource +--- + +# airbyte_source_7shifts (Resource) + +Source7shifts Resource + +## Example Usage + +```terraform +resource "airbyte_source_7shifts" "my_source_7shifts" { + configuration = { + access_token = "...my_access_token..." + start_date = "2022-10-04T13:05:54.933Z" + } + definition_id = "88dfabd5-7111-4ac6-9dff-a69fe7143a3e" + name = "Pablo Conn" + secret_id = "...my_secret_id..." + workspace_id = "d7bc1a5a-6e1c-4c19-b137-2214027ee71b" +} +``` + + +## 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_token` (String, Sensitive) Access token to use for authentication. Generate it in the 7shifts Developer Tools. +- `start_date` (String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_7shifts.my_airbyte_source_7shifts "" +``` diff --git a/docs/resources/source_aha.md b/docs/resources/source_aha.md index 0434377d8..178b87d3a 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 = "a8d6eef0-4757-4630-9dbc-2dbf188dfabd" - name = "Mr. Colleen Botsford" + definition_id = "638bd648-d548-414a-beb9-3d4bbde9f2bb" + name = "Kenneth Russel" secret_id = "...my_secret_id..." - workspace_id = "c61dffa6-9fe7-4143-a3e9-a244d7bc1a5a" + workspace_id = "fe4ad282-938c-4452-b564-4517930ed8d4" } ``` diff --git a/docs/resources/source_airbyte.md b/docs/resources/source_airbyte.md index 3eb0db1b4..7e6c09b89 100644 --- a/docs/resources/source_airbyte.md +++ b/docs/resources/source_airbyte.md @@ -17,12 +17,12 @@ 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" + start_date = "2022-03-19T07:46:59.910Z" } - definition_id = "1cc19313-7221-4402-bee7-1b638bd648d5" - name = "Nina Boyle" + definition_id = "0dabba6e-f9fc-43c3-b44f-d252e57aa673" + name = "Steve Luettgen" secret_id = "...my_secret_id..." - workspace_id = "feb93d4b-bde9-4f2b-b80c-d3fe4ad28293" + workspace_id = "9f0c220e-39e1-40d6-af09-fb849b0bdf3d" } ``` diff --git a/docs/resources/source_aircall.md b/docs/resources/source_aircall.md index d01e5b00a..b2dadf011 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 = "45275644-5179-430e-98d4-3c0dabba6ef9" - name = "Myron Emard" + definition_id = "a96c6335-4ae1-4d23-83d1-1ff934df0d75" + name = "Chelsea Lubowitz PhD" secret_id = "...my_secret_id..." - workspace_id = "744fd252-e57a-4a67-bd28-259f0c220e39" + workspace_id = "90daf918-6ab6-43a7-b2e3-879ec566b1d1" } ``` diff --git a/docs/resources/source_airtable.md b/docs/resources/source_airtable.md index dcf3408f6..ee6a818dd 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-17T07:42:16.884Z" + token_expiry_date = "2021-06-09T01:32:17.584Z" } } } - definition_id = "0d6ef09f-b849-4b0b-9f3d-5ca96c63354a" - name = "Juan Smitham" + definition_id = "bb57bf00-1ddb-43cf-874d-627d201b0d06" + name = "Johnathan Renner" secret_id = "...my_secret_id..." - workspace_id = "c3d11ff9-34df-40d7-96d8-b0d90daf9186" + workspace_id = "e6b9f25a-a9f8-4c7d-8107-048d9ffe8959" } ``` diff --git a/docs/resources/source_amazon_ads.md b/docs/resources/source_amazon_ads.md index ad7963a9a..7a567f059 100644 --- a/docs/resources/source_amazon_ads.md +++ b/docs/resources/source_amazon_ads.md @@ -22,22 +22,22 @@ resource "airbyte_source_amazon_ads" "my_source_amazonads" { "...", ] profiles = [ - 4, + 9, ] refresh_token = "...my_refresh_token..." - region = "NA" + region = "FE" report_record_types = [ - "keywords", + "targets", ] start_date = "2022-10-10" state_filter = [ - "archived", + "paused", ] } - definition_id = "3879ec56-6b1d-41d8-bb57-bf001ddb3cf0" - name = "Hazel Stehr" + definition_id = "d1e5d369-0efc-46e8-a8b1-d2ddb5daa9ea" + name = "Howard Kuphal" secret_id = "...my_secret_id..." - workspace_id = "7d201b0d-069b-4b26-a6b9-f25aa9f8c7d4" + workspace_id = "e7b29c85-e6b8-4562-8652-e0ff83c21b51" } ``` diff --git a/docs/resources/source_amazon_seller_partner.md b/docs/resources/source_amazon_seller_partner.md index c2a463349..aaae48451 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 = "PRODUCTION" + aws_environment = "SANDBOX" lwa_app_id = "...my_lwa_app_id..." lwa_client_secret = "...my_lwa_client_secret..." - period_in_days = 5 + period_in_days = 1 refresh_token = "...my_refresh_token..." - region = "AU" + region = "GB" replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" report_options_list = [ @@ -32,16 +32,16 @@ resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" option_value = "...my_option_value..." }, ] - report_name = "GET_XML_BROWSE_TREE_DATA" + report_name = "GET_MERCHANT_LISTINGS_ALL_DATA" stream_name = "...my_stream_name..." }, ] wait_to_avoid_fatal_errors = false } - definition_id = "e8959afe-ef69-4ead-9e5d-3690efc6e828" - name = "Walter Spinka" + definition_id = "6bcd5137-4519-445c-8336-0526ae8aa3c4" + name = "Craig Lang" secret_id = "...my_secret_id..." - workspace_id = "db5daa9e-a927-4cae-bb29-c85e6b856286" + workspace_id = "13b86681-05e1-4180-bb2a-875a1ca190e9" } ``` @@ -90,7 +90,7 @@ Optional: Required: - `options_list` (Attributes List) List of options (see [below for nested schema](#nestedatt--configuration--report_options_list--options_list)) -- `report_name` (String) must be one of ["GET_AFN_INVENTORY_DATA", "GET_AFN_INVENTORY_DATA_BY_COUNTRY", "GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL", "GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA", "GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA", "GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA", "GET_FBA_INVENTORY_PLANNING_DATA", "GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA", "GET_FBA_REIMBURSEMENTS_DATA", "GET_FBA_SNS_FORECAST_DATA", "GET_FBA_SNS_PERFORMANCE_DATA", "GET_FBA_STORAGE_FEE_CHARGES_DATA", "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING", "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL", "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", "GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE", "GET_FLAT_FILE_OPEN_LISTINGS_DATA", "GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE", "GET_LEDGER_DETAIL_VIEW_DATA", "GET_LEDGER_SUMMARY_VIEW_DATA", "GET_MERCHANT_CANCELLED_LISTINGS_DATA", "GET_MERCHANT_LISTINGS_ALL_DATA", "GET_MERCHANT_LISTINGS_DATA", "GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT", "GET_MERCHANT_LISTINGS_INACTIVE_DATA", "GET_MERCHANTS_LISTINGS_FYP_REPORT", "GET_ORDER_REPORT_DATA_SHIPPING", "GET_RESTOCK_INVENTORY_RECOMMENDATIONS_REPORT", "GET_SELLER_FEEDBACK_DATA", "GET_STRANDED_INVENTORY_UI_DATA", "GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE", "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", "GET_XML_BROWSE_TREE_DATA", "GET_VENDOR_REAL_TIME_INVENTORY_REPORT"] +- `report_name` (String) must be one of ["GET_AFN_INVENTORY_DATA", "GET_AFN_INVENTORY_DATA_BY_COUNTRY", "GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL", "GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA", "GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA", "GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA", "GET_FBA_INVENTORY_PLANNING_DATA", "GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA", "GET_FBA_REIMBURSEMENTS_DATA", "GET_FBA_SNS_FORECAST_DATA", "GET_FBA_SNS_PERFORMANCE_DATA", "GET_FBA_STORAGE_FEE_CHARGES_DATA", "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING", "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL", "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", "GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE", "GET_FLAT_FILE_OPEN_LISTINGS_DATA", "GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE", "GET_LEDGER_DETAIL_VIEW_DATA", "GET_LEDGER_SUMMARY_VIEW_DATA", "GET_MERCHANT_CANCELLED_LISTINGS_DATA", "GET_MERCHANT_LISTINGS_ALL_DATA", "GET_MERCHANT_LISTINGS_DATA", "GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT", "GET_MERCHANT_LISTINGS_INACTIVE_DATA", "GET_MERCHANTS_LISTINGS_FYP_REPORT", "GET_ORDER_REPORT_DATA_SHIPPING", "GET_RESTOCK_INVENTORY_RECOMMENDATIONS_REPORT", "GET_SELLER_FEEDBACK_DATA", "GET_STRANDED_INVENTORY_UI_DATA", "GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE", "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", "GET_XML_BROWSE_TREE_DATA", "GET_VENDOR_REAL_TIME_INVENTORY_REPORT", "GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT", "GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT", "GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT", "GET_SALES_AND_TRAFFIC_REPORT", "GET_VENDOR_SALES_REPORT", "GET_VENDOR_INVENTORY_REPORT", "GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT", "GET_VENDOR_TRAFFIC_REPORT"] - `stream_name` (String) diff --git a/docs/resources/source_amazon_sqs.md b/docs/resources/source_amazon_sqs.md index 6980e5d81..7a87f4bbe 100644 --- a/docs/resources/source_amazon_sqs.md +++ b/docs/resources/source_amazon_sqs.md @@ -25,10 +25,10 @@ resource "airbyte_source_amazon_sqs" "my_source_amazonsqs" { secret_key = "hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz" visibility_timeout = 15 } - definition_id = "f83c21b5-17b1-46f1-b884-6bcd51374519" - name = "Renee Schamberger" + definition_id = "82a17eb0-af63-4def-a733-56f39bea5e20" + name = "Dr. Salvador White" secret_id = "...my_secret_id..." - workspace_id = "360526ae-8aa3-4c4f-a879-13b8668105e1" + workspace_id = "905c8543-b918-44ca-87dc-adad2938da57" } ``` diff --git a/docs/resources/source_amplitude.md b/docs/resources/source_amplitude.md index fe4859a9e..c230db2c3 100644 --- a/docs/resources/source_amplitude.md +++ b/docs/resources/source_amplitude.md @@ -17,14 +17,14 @@ resource "airbyte_source_amplitude" "my_source_amplitude" { configuration = { api_key = "...my_api_key..." data_region = "Standard Server" - request_time_range = 5 + request_time_range = 3 secret_key = "...my_secret_key..." start_date = "2021-01-25T00:00:00Z" } - definition_id = "b2a875a1-ca19-40e9-9bd1-182a17eb0af6" - name = "Teri Wehner" + definition_id = "880f00a3-0dde-4f9a-90fa-7f8f441b58df" + name = "Lewis Heaney" secret_id = "...my_secret_id..." - workspace_id = "73356f39-bea5-4e20-89f0-e8905c8543b9" + workspace_id = "0bee1c5f-f223-4389-a042-261684e73ef6" } ``` diff --git a/docs/resources/source_apify_dataset.md b/docs/resources/source_apify_dataset.md index 5f4608a3e..ed0b94319 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 = "184cac7d-cada-4d29-b8da-5765e7880f00" - name = "Curtis Berge" + definition_id = "02c915f5-97cf-4589-a557-ce17ccd6b10d" + name = "Carmen Littel" secret_id = "...my_secret_id..." - workspace_id = "ef9a90fa-7f8f-4441-b58d-fc559a0bee1c" + workspace_id = "4fdfb9af-007b-4c04-991b-eb057f07c546" } ``` diff --git a/docs/resources/source_appcues.md b/docs/resources/source_appcues.md new file mode 100644 index 000000000..2945e8041 --- /dev/null +++ b/docs/resources/source_appcues.md @@ -0,0 +1,68 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_appcues Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceAppcues Resource +--- + +# airbyte_source_appcues (Resource) + +SourceAppcues Resource + +## Example Usage + +```terraform +resource "airbyte_source_appcues" "my_source_appcues" { + configuration = { + account_id = "...my_account_id..." + password = "...my_password..." + start_date = "2022-11-14T00:29:49.884Z" + username = "Bettie_Rice68" + } + definition_id = "90354f51-ed0a-4818-9e6e-55fd9ebe7b2f" + name = "Rachael O'Conner" + secret_id = "...my_secret_id..." + workspace_id = "cdfaf2b0-5210-4208-a036-b268d758466c" +} +``` + + +## 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) Account ID of Appcues found in account settings page (https://studio.appcues.com/settings/account) +- `start_date` (String) +- `username` (String) + +Optional: + +- `password` (String, Sensitive) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_appcues.my_airbyte_source_appcues "" +``` diff --git a/docs/resources/source_appfigures.md b/docs/resources/source_appfigures.md new file mode 100644 index 000000000..6193c81bb --- /dev/null +++ b/docs/resources/source_appfigures.md @@ -0,0 +1,68 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_appfigures Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceAppfigures Resource +--- + +# airbyte_source_appfigures (Resource) + +SourceAppfigures Resource + +## Example Usage + +```terraform +resource "airbyte_source_appfigures" "my_source_appfigures" { + configuration = { + api_key = "...my_api_key..." + group_by = "country" + search_store = "...my_search_store..." + start_date = "2022-10-16T08:12:09.283Z" + } + definition_id = "e10b1b39-4b84-4acd-b8db-6a4f7e23711b" + name = "Tonya Anderson" + secret_id = "...my_secret_id..." + workspace_id = "d38a1edc-b36c-4da3-951c-bc15623ec645" +} +``` + + +## 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: + +- `group_by` (String) Category term for grouping the search results. must be one of ["network", "product", "country", "date"]; Default: "product" +- `search_store` (String) The store which needs to be searched in streams. Default: "apple" + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_appfigures.my_airbyte_source_appfigures "" +``` diff --git a/docs/resources/source_appfollow.md b/docs/resources/source_appfollow.md index 5e4181516..1030ba0ee 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 = "5ff22338-9204-4226-9684-e73ef602c915" - name = "Vernon Mills" + definition_id = "3ce6c3cf-0d0e-420d-a16b-8da7b8143f85" + name = "Jacquelyn Wilderman" secret_id = "...my_secret_id..." - workspace_id = "f5896557-ce17-4ccd-ab10-d6388d4fdfb9" + workspace_id = "c7fd70e5-0457-4dcf-8f64-874e62c58d87" } ``` diff --git a/docs/resources/source_asana.md b/docs/resources/source_asana.md index eaaa79862..95a1ee35b 100644 --- a/docs/resources/source_asana.md +++ b/docs/resources/source_asana.md @@ -25,12 +25,11 @@ resource "airbyte_source_asana" "my_source_asana" { organization_export_ids = [ "{ \"see\": \"documentation\" }", ] - test_mode = true } - definition_id = "f007bc04-191b-4eb0-97f0-7c546621bdba" - name = "Robert Feeney" + definition_id = "92fd4888-7cb1-49c4-8ec8-b4573d66d007" + name = "Derek Crist" secret_id = "...my_secret_id..." - workspace_id = "f51ed0a8-181e-46e5-9fd9-ebe7b2f5ca6e" + workspace_id = "e4396e74-03ea-42d5-8959-a4fa50e807c8" } ``` @@ -60,7 +59,6 @@ Optional: - `credentials` (Attributes) Choose how to authenticate to Github (see [below for nested schema](#nestedatt--configuration--credentials)) - `organization_export_ids` (List of String) Globally unique identifiers for the organization exports -- `test_mode` (Boolean) This flag is used for testing purposes for certain streams that return a lot of data. This flag is not meant to be enabled for prod. ### Nested Schema for `configuration.credentials` diff --git a/docs/resources/source_auth0.md b/docs/resources/source_auth0.md index 4cb222559..2a94a9008 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 = "cdfaf2b0-5210-4208-a036-b268d758466c" - name = "Hector Ebert Jr." + definition_id = "6bd0cbf5-314e-4ea0-ba21-aa37367271c7" + name = "Homer Medhurst" secret_id = "...my_secret_id..." - workspace_id = "b1b394b8-4acd-4f8d-b6a4-f7e23711b260" + workspace_id = "9603df32-3c7d-4784-9b7f-8882a19738b2" } ``` diff --git a/docs/resources/source_aws_cloudtrail.md b/docs/resources/source_aws_cloudtrail.md index 8bd0135af..597fa5508 100644 --- a/docs/resources/source_aws_cloudtrail.md +++ b/docs/resources/source_aws_cloudtrail.md @@ -20,14 +20,14 @@ resource "airbyte_source_aws_cloudtrail" "my_source_awscloudtrail" { aws_secret_key = "...my_aws_secret_key..." lookup_attributes_filter = { attribute_key = "EventName" - attribute_value = "ConsoleLogin" + attribute_value = "ListInstanceAssociations" } start_date = "2021-01-01" } - definition_id = "38a1edcb-36cd-4a3d-91cb-c15623ec6453" - name = "Doyle Hirthe" + definition_id = "70494da2-1b79-4cfd-9baf-3821deb7264d" + name = "Rufus McCullough" secret_id = "...my_secret_id..." - workspace_id = "cf0d0e20-de16-4b8d-a7b8-143f851cf99c" + workspace_id = "fb531266-91bf-4b5d-b9ea-24da51fb73f4" } ``` diff --git a/docs/resources/source_azure_blob_storage.md b/docs/resources/source_azure_blob_storage.md index a8cdcc457..6d01dbc7f 100644 --- a/docs/resources/source_azure_blob_storage.md +++ b/docs/resources/source_azure_blob_storage.md @@ -29,28 +29,26 @@ resource "airbyte_source_azure_blob_storage" "my_source_azureblobstorage" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 9 + days_to_sync_if_history_is_full = 10 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] input_schema = "...my_input_schema..." - legacy_prefix = "...my_legacy_prefix..." - name = "Mrs. Olive Hills" - primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Wait for Discover" + name = "Dwayne Pfeffer" + schemaless = false + validation_policy = "Emit Record" }, ] } - definition_id = "cf4f6487-4e62-4c58-9879-2fd48887cb19" - name = "Jim Kuvalis" + definition_id = "8227a333-08df-4445-b49b-e62599f17b5c" + name = "Pamela Schimmel" secret_id = "...my_secret_id..." - workspace_id = "8b4573d6-6d00-47e5-aa2e-4396e7403ea2" + workspace_id = "2f7dd6ee-9c7e-4740-9902-82195430f896" } ``` @@ -130,8 +128,6 @@ 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 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. - `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" @@ -166,7 +162,6 @@ Optional: - `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)) - `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. - `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank. Default: "\"" - `skip_rows_after_header` (Number) The number of rows to skip after the header row. Default: 0 diff --git a/docs/resources/source_azure_table.md b/docs/resources/source_azure_table.md index 3462b975e..55460591a 100644 --- a/docs/resources/source_azure_table.md +++ b/docs/resources/source_azure_table.md @@ -17,12 +17,12 @@ resource "airbyte_source_azure_table" "my_source_azuretable" { configuration = { storage_access_key = "...my_storage_access_key..." storage_account_name = "...my_storage_account_name..." - storage_endpoint_suffix = "core.chinacloudapi.cn" + storage_endpoint_suffix = "core.windows.net" } - definition_id = "50959a4f-a50e-4807-886b-d0cbf5314eea" - name = "Lana Nienow MD" + definition_id = "a321f431-fb3a-4ad0-b8a3-612fcb5a7fdd" + name = "Warren Funk DDS" secret_id = "...my_secret_id..." - workspace_id = "a3736727-1c78-4a9a-a960-3df323c7d784" + workspace_id = "39c22fe1-7df5-47ad-b107-25ff7f1a27e8" } ``` diff --git a/docs/resources/source_bamboo_hr.md b/docs/resources/source_bamboo_hr.md index 06a5e9bbb..ed8955f26 100644 --- a/docs/resources/source_bamboo_hr.md +++ b/docs/resources/source_bamboo_hr.md @@ -18,13 +18,13 @@ resource "airbyte_source_bamboo_hr" "my_source_bamboohr" { api_key = "...my_api_key..." custom_reports_fields = "...my_custom_reports_fields..." custom_reports_include_default_fields = true - start_date = "2022-01-27T18:56:04.985Z" + start_date = "2022-07-14T18:09:20.327Z" subdomain = "...my_subdomain..." } - definition_id = "f8882a19-738b-4218-b704-94da21b79cfd" - name = "Ira Padberg" + definition_id = "f193d4f9-ab29-4a2f-8317-dec4e3eab02c" + name = "Ms. Cesar McLaughlin" secret_id = "...my_secret_id..." - workspace_id = "821deb72-64da-4d9e-9fb5-3126691bfb5d" + workspace_id = "23df16a0-cc49-4919-82a6-82b0a7074f01" } ``` diff --git a/docs/resources/source_basecamp.md b/docs/resources/source_basecamp.md index 6b3fc51b8..e05c4d037 100644 --- a/docs/resources/source_basecamp.md +++ b/docs/resources/source_basecamp.md @@ -15,16 +15,16 @@ SourceBasecamp Resource ```terraform resource "airbyte_source_basecamp" "my_source_basecamp" { configuration = { - account_id = 73.8 + account_id = 41.27 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" + start_date = "2021-08-09T14:43:07.351Z" } - definition_id = "a24da51f-b73f-4472-b2e8-bbfe18227a33" - name = "Shirley Lesch" + definition_id = "2127f33f-8652-4b25-91b0-23ec1224a7ff" + name = "Clarence Hodkiewicz" secret_id = "...my_secret_id..." - workspace_id = "445f49be-6259-49f1-bb5c-61c8d2f7dd6e" + workspace_id = "c187087d-37ac-499f-9785-1612305e0c1f" } ``` diff --git a/docs/resources/source_bigquery.md b/docs/resources/source_bigquery.md index b5bad4c82..7a02d90eb 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 = "e9c7e740-1902-4821-9543-0f8964a321f4" - name = "Mildred Weimann" + definition_id = "4b65d9eb-d757-4e59-8698-1cb460869168" + name = "Rosa Beatty" secret_id = "...my_secret_id..." - workspace_id = "aad078a3-612f-4cb5-a7fd-d854e0c39c22" + workspace_id = "adb73c36-9be0-4c12-ace5-9b9fbaef8e47" } ``` diff --git a/docs/resources/source_bing_ads.md b/docs/resources/source_bing_ads.md index 16c793e68..82b50ab3f 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 = "Bert Bins" + name = "Sherri Bayer" operator = "Equals" }, ] @@ -25,24 +25,24 @@ resource "airbyte_source_bing_ads" "my_source_bingads" { client_secret = "...my_client_secret..." custom_reports = [ { - name = "AdDynamicTextPerformanceReport" + name = "custom report" report_aggregation = "...my_report_aggregation..." report_columns = [ "...", ] - reporting_object = "GeographicPerformanceReportRequest" + reporting_object = "HotelGroupPerformanceReportRequest" }, ] developer_token = "...my_developer_token..." - lookback_window = 1 + lookback_window = 4 refresh_token = "...my_refresh_token..." - reports_start_date = "2022-01-11" + reports_start_date = "2022-10-01" tenant_id = "...my_tenant_id..." } - definition_id = "f7f1a27e-8fd2-4f19-bd4f-9ab29a2f8317" - name = "Frankie Runte" + definition_id = "a681eea7-4b87-4a1f-b187-d33223d80bb9" + name = "Curtis Jenkins" secret_id = "...my_secret_id..." - workspace_id = "3eab02cc-b908-4523-9f16-a0cc4991982a" + workspace_id = "2f45974a-2ebc-4368-8abb-376bce66a7c0" } ``` diff --git a/docs/resources/source_zendesk_sell.md b/docs/resources/source_bitly.md similarity index 60% rename from docs/resources/source_zendesk_sell.md rename to docs/resources/source_bitly.md index 6af0c9f6f..a093cdde1 100644 --- a/docs/resources/source_zendesk_sell.md +++ b/docs/resources/source_bitly.md @@ -1,26 +1,28 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_zendesk_sell Resource - terraform-provider-airbyte" +page_title: "airbyte_source_bitly Resource - terraform-provider-airbyte" subcategory: "" description: |- - SourceZendeskSell Resource + SourceBitly Resource --- -# airbyte_source_zendesk_sell (Resource) +# airbyte_source_bitly (Resource) -SourceZendeskSell Resource +SourceBitly Resource ## Example Usage ```terraform -resource "airbyte_source_zendesk_sell" "my_source_zendesksell" { +resource "airbyte_source_bitly" "my_source_bitly" { configuration = { - api_token = "f23yhd630otl94y85a8bf384958473pto95847fd006da49382716or937ruw059" + api_key = "...my_api_key..." + end_date = "2020-03-15T22:28:02.457Z" + start_date = "2022-12-31T11:13:32.886Z" } - definition_id = "95489f10-b55b-4793-92be-b1b52fdccb22" - name = "Ernest Weimann" + definition_id = "da3e9aab-7145-44cb-a418-93e1da46c4f6" + name = "Mr. Roberto Stokes" secret_id = "...my_secret_id..." - workspace_id = "f127a6aa-10ba-476f-bfe0-de8798ad00b4" + workspace_id = "011b8862-473b-4757-b910-8618e91445d8" } ``` @@ -48,12 +50,14 @@ resource "airbyte_source_zendesk_sell" "my_source_zendesksell" { Required: -- `api_token` (String, Sensitive) The API token for authenticating to Zendesk Sell +- `api_key` (String, Sensitive) +- `end_date` (String) +- `start_date` (String) ## Import Import is supported using the following syntax: ```shell -terraform import airbyte_source_zendesk_sell.my_airbyte_source_zendesk_sell "" +terraform import airbyte_source_bitly.my_airbyte_source_bitly "" ``` diff --git a/docs/resources/source_braintree.md b/docs/resources/source_braintree.md index c4124b241..13482d69e 100644 --- a/docs/resources/source_braintree.md +++ b/docs/resources/source_braintree.md @@ -15,16 +15,16 @@ SourceBraintree Resource ```terraform resource "airbyte_source_braintree" "my_source_braintree" { configuration = { - environment = "Qa" + environment = "Production" merchant_id = "...my_merchant_id..." private_key = "...my_private_key..." public_key = "...my_public_key..." start_date = "2020" } - definition_id = "a7074f01-6f72-4127-b33f-8652b2551b02" - name = "Mr. Jana Runolfsson" + definition_id = "a849cd51-7f0e-432c-ae30-2e6de92b3e43" + name = "Daisy MacGyver" secret_id = "...my_secret_id..." - workspace_id = "4a7ffb26-8dc1-4870-87d3-7ac99fd78516" + workspace_id = "6f9835e6-422d-415b-8286-21a877d2e625" } ``` diff --git a/docs/resources/source_braze.md b/docs/resources/source_braze.md index 6c3e56856..a36aa3cad 100644 --- a/docs/resources/source_braze.md +++ b/docs/resources/source_braze.md @@ -16,13 +16,13 @@ SourceBraze Resource resource "airbyte_source_braze" "my_source_braze" { configuration = { api_key = "...my_api_key..." - start_date = "2022-10-27" + start_date = "2020-07-22" url = "...my_url..." } - definition_id = "305e0c1f-4b65-4d9e-bd75-7e5946981cb4" - name = "Maria Lubowitz" + definition_id = "d80ba5ff-53c6-4fc1-8ca6-7a827c3d349f" + name = "Bertha Hagenes" secret_id = "...my_secret_id..." - workspace_id = "1686308e-adb7-43c3-a9be-0c12ece59b9f" + workspace_id = "a8589d84-94dc-4fae-a550-03801e9f4469" } ``` diff --git a/docs/resources/source_breezy_hr.md b/docs/resources/source_breezy_hr.md index 8d22ff9a3..da3f768de 100644 --- a/docs/resources/source_breezy_hr.md +++ b/docs/resources/source_breezy_hr.md @@ -18,10 +18,10 @@ resource "airbyte_source_breezy_hr" "my_source_breezyhr" { api_key = "...my_api_key..." company_id = "...my_company_id..." } - definition_id = "baef8e47-4905-488d-8e29-39574a681eea" - name = "Danielle Rice" + definition_id = "00c8feba-7b45-4cfe-a08a-bdda328f6c37" + name = "Alyssa Anderson" secret_id = "...my_secret_id..." - workspace_id = "a1fb187d-3322-43d8-8bb9-9362d2f45974" + workspace_id = "63420a6a-3ab4-4d44-b55b-910e5c999e89" } ``` diff --git a/docs/resources/source_brevo.md b/docs/resources/source_brevo.md new file mode 100644 index 000000000..360c7d4a9 --- /dev/null +++ b/docs/resources/source_brevo.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_brevo Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceBrevo Resource +--- + +# airbyte_source_brevo (Resource) + +SourceBrevo Resource + +## Example Usage + +```terraform +resource "airbyte_source_brevo" "my_source_brevo" { + configuration = { + api_key = "...my_api_key..." + start_date = "2020-11-02T09:08:40.811Z" + } + definition_id = "d0e8f2a3-7cc1-4fbe-8883-da2fecd2cab2" + name = "Darin Adams" + secret_id = "...my_secret_id..." + workspace_id = "6002c3cc-123e-4878-bd50-d4d2b80c50dc" +} +``` + + +## 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) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_brevo.my_airbyte_source_brevo "" +``` diff --git a/docs/resources/source_buildkite.md b/docs/resources/source_buildkite.md new file mode 100644 index 000000000..de47baa1d --- /dev/null +++ b/docs/resources/source_buildkite.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_buildkite Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceBuildkite Resource +--- + +# airbyte_source_buildkite (Resource) + +SourceBuildkite Resource + +## Example Usage + +```terraform +resource "airbyte_source_buildkite" "my_source_buildkite" { + configuration = { + api_key = "...my_api_key..." + start_date = "2022-09-13T08:37:58.641Z" + } + definition_id = "4f66cbf0-e9a0-45e9-94ac-e41dc5b42f2a" + name = "Beverly Leuschke" + secret_id = "...my_secret_id..." + workspace_id = "8647f2d4-2750-4604-ac1c-65661b2485a0" +} +``` + + +## 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) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_buildkite.my_airbyte_source_buildkite "" +``` diff --git a/docs/resources/source_buzzsprout.md b/docs/resources/source_buzzsprout.md new file mode 100644 index 000000000..68961e84d --- /dev/null +++ b/docs/resources/source_buzzsprout.md @@ -0,0 +1,63 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_buzzsprout Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceBuzzsprout Resource +--- + +# airbyte_source_buzzsprout (Resource) + +SourceBuzzsprout Resource + +## Example Usage + +```terraform +resource "airbyte_source_buzzsprout" "my_source_buzzsprout" { + configuration = { + api_key = "...my_api_key..." + podcast_id = "...my_podcast_id..." + start_date = "2022-12-25T14:11:43.769Z" + } + definition_id = "238eba13-61d3-4c00-8fe1-ba68d340502b" + name = "Ricardo Altenwerth" + secret_id = "...my_secret_id..." + workspace_id = "febd39e6-abf1-47c2-950c-b6e6ff332bdf" +} +``` + + +## 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) +- `podcast_id` (String) Podcast ID found in `https://www.buzzsprout.com/my/profile/api` +- `start_date` (String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_buzzsprout.my_airbyte_source_buzzsprout "" +``` diff --git a/docs/resources/source_calendly.md b/docs/resources/source_calendly.md index 518786480..616e0435c 100644 --- a/docs/resources/source_calendly.md +++ b/docs/resources/source_calendly.md @@ -16,12 +16,12 @@ SourceCalendly Resource resource "airbyte_source_calendly" "my_source_calendly" { configuration = { api_key = "...my_api_key..." - start_date = "2022-09-12T17:45:07.121Z" + start_date = "2022-09-22T09:32:58.921Z" } - definition_id = "ebc3680a-bb37-46bc-a66a-7c0ce20da3e9" - name = "Donnie Price II" + definition_id = "5775fcbb-81a7-4466-bf78-b3b7dede547f" + name = "Miss Lonnie Schaden" secret_id = "...my_secret_id..." - workspace_id = "54cb2418-93e1-4da4-ac4f-685d205011b8" + workspace_id = "53c35168-9ddb-43b3-9740-139dc2cf2cb4" } ``` diff --git a/docs/resources/source_canny.md b/docs/resources/source_canny.md new file mode 100644 index 000000000..eef460ded --- /dev/null +++ b/docs/resources/source_canny.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_canny Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceCanny Resource +--- + +# airbyte_source_canny (Resource) + +SourceCanny Resource + +## Example Usage + +```terraform +resource "airbyte_source_canny" "my_source_canny" { + configuration = { + api_key = "...my_api_key..." + } + definition_id = "16442d85-f5b6-4382-a70e-18a8172f9322" + name = "Rebecca Satterfield" + secret_id = "...my_secret_id..." + workspace_id = "9cbaa542-e6e0-4809-a1d8-4c3fbc24f860" +} +``` + + +## 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) You can find your secret API key in Your Canny Subdomain > Settings > API + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_canny.my_airbyte_source_canny "" +``` diff --git a/docs/resources/source_cart.md b/docs/resources/source_cart.md index b3c61e041..cd1c81abc 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 = "Joelle30" + user_name = "Yadira_Schmidt33" user_secret = "...my_user_secret..." } } start_date = "2021-01-01T00:00:00Z" } - definition_id = "73b75739-1086-418e-9144-5d83c494a849" - name = "Ms. Kristopher Hammes" + definition_id = "198c116e-7265-481e-a677-0fa8ec1ba804" + name = "Dewey Kautzer" secret_id = "...my_secret_id..." - workspace_id = "0e32c2e3-02e6-4de9-ab3e-43098446f983" + workspace_id = "7a40e885-1a35-441b-a6f5-d90d5a8a349e" } ``` diff --git a/docs/resources/source_chameleon.md b/docs/resources/source_chameleon.md new file mode 100644 index 000000000..8825c6e9c --- /dev/null +++ b/docs/resources/source_chameleon.md @@ -0,0 +1,70 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_chameleon Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceChameleon Resource +--- + +# airbyte_source_chameleon (Resource) + +SourceChameleon Resource + +## Example Usage + +```terraform +resource "airbyte_source_chameleon" "my_source_chameleon" { + configuration = { + api_key = "...my_api_key..." + end_date = "2022-12-14T08:22:45.312Z" + filter = "survey" + limit = "...my_limit..." + start_date = "2022-04-19T09:29:33.891Z" + } + definition_id = "dff3818d-be50-4fcb-b2a7-8173abb82e6a" + name = "Diane Luettgen" + secret_id = "...my_secret_id..." + workspace_id = "9256d746-38d1-4409-8639-cf5dd4a0c05f" +} +``` + + +## 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) +- `end_date` (String) +- `start_date` (String) + +Optional: + +- `filter` (String) Filter for using in the `segments_experiences` stream. must be one of ["tour", "survey", "launcher"]; Default: "tour" +- `limit` (String) Max records per page limit. Default: "50" + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_chameleon.my_airbyte_source_chameleon "" +``` diff --git a/docs/resources/source_chargebee.md b/docs/resources/source_chargebee.md index 1646e1c7c..c0c479f1d 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 = "422d15b8-2862-41a8-b7d2-e625cdd80ba5" - name = "Aubrey Harber" + definition_id = "f6b9b8b8-f8f6-4afb-b365-d687e087e390" + name = "Kelli Howell" secret_id = "...my_secret_id..." - workspace_id = "6fc10ca6-7a82-47c3-9349-f444d8a8589d" + workspace_id = "17faeb4f-73b7-4e8d-8371-ecbee10511b4" } ``` diff --git a/docs/resources/source_chartmogul.md b/docs/resources/source_chartmogul.md index f98371d0a..f58924eff 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 = "94dcfaea-5500-4380-9e9f-446900c8feba" - name = "Mamie Green" + definition_id = "ed171c9d-9f9b-4478-bac2-32bfa41c80b2" + name = "Lillian Grimes" secret_id = "...my_secret_id..." - workspace_id = "fea08abd-da32-48f6-8373-e06663420a6a" + workspace_id = "949a9555-9f5a-434f-b680-c88d8e9f7431" } ``` diff --git a/docs/resources/source_cimis.md b/docs/resources/source_cimis.md new file mode 100644 index 000000000..fe429a8a2 --- /dev/null +++ b/docs/resources/source_cimis.md @@ -0,0 +1,82 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_cimis Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceCimis Resource +--- + +# airbyte_source_cimis (Resource) + +SourceCimis Resource + +## Example Usage + +```terraform +resource "airbyte_source_cimis" "my_source_cimis" { + configuration = { + api_key = "...my_api_key..." + daily_data_items = [ + "{ \"see\": \"documentation\" }", + ] + end_date = "2022-11-12T10:35:00.527Z" + hourly_data_items = [ + "{ \"see\": \"documentation\" }", + ] + start_date = "2022-02-11T00:33:21.405Z" + targets = [ + "{ \"see\": \"documentation\" }", + ] + targets_type = "California zip codes" + unit_of_measure = "E" + } + definition_id = "27fd51b6-6ec3-445b-9c1b-ae74726a8cd9" + name = "Floyd Orn" + secret_id = "...my_secret_id..." + workspace_id = "47afda11-e10d-4002-a1c7-3f9ba1e39a63" +} +``` + + +## 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) +- `end_date` (String) +- `start_date` (String) +- `targets` (List of String) +- `targets_type` (String) must be one of ["WSN station numbers", "California zip codes", "decimal-degree coordinates", "street addresses"] + +Optional: + +- `daily_data_items` (List of String) +- `hourly_data_items` (List of String) +- `unit_of_measure` (String) must be one of ["E", "M"] + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_cimis.my_airbyte_source_cimis "" +``` diff --git a/docs/resources/source_clazar.md b/docs/resources/source_clazar.md index 54ec3e81d..0fb9b35f6 100644 --- a/docs/resources/source_clazar.md +++ b/docs/resources/source_clazar.md @@ -18,10 +18,10 @@ resource "airbyte_source_clazar" "my_source_clazar" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." } - definition_id = "3ab4d447-55b9-410e-9c99-9e89cbd0e8f2" - name = "Vincent Kshlerin" + definition_id = "be209caa-593e-4b80-8ec8-c0a1f11671a5" + name = "Mercedes Abernathy" secret_id = "...my_secret_id..." - workspace_id = "1fbec883-da2f-4ecd-acab-29e0bc6002c3" + workspace_id = "f4b5e4c1-9596-4433-a1d5-1484aac586d0" } ``` diff --git a/docs/resources/source_clickhouse.md b/docs/resources/source_clickhouse.md index 017294089..7765d982b 100644 --- a/docs/resources/source_clickhouse.md +++ b/docs/resources/source_clickhouse.md @@ -20,15 +20,16 @@ resource "airbyte_source_clickhouse" "my_source_clickhouse" { jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." port = 8123 + ssl = true tunnel_method = { no_tunnel = {} } - username = "Otho19" + username = "Brittany75" } - definition_id = "e8783d50-d4d2-4b80-850d-c344f66cbf0e" - name = "Trevor Bednar" + definition_id = "5465b457-a2c2-4618-be1b-91dcce8e649d" + name = "Jessie Kunze" secret_id = "...my_secret_id..." - workspace_id = "994ace41-dc5b-442f-aa22-8e88647f2d42" + workspace_id = "b58122af-6a8a-4c65-936a-205f1e4d309e" } ``` @@ -65,6 +66,7 @@ Optional: - `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about JDBC URL parameters. - `password` (String, Sensitive) The password associated with this username. - `port` (Number) The port of the database. Default: 8123 +- `ssl` (Boolean) Encrypt data using SSL. Default: true - `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method)) diff --git a/docs/resources/source_clickup_api.md b/docs/resources/source_clickup_api.md index ef9c91375..2b91c45ce 100644 --- a/docs/resources/source_clickup_api.md +++ b/docs/resources/source_clickup_api.md @@ -16,12 +16,12 @@ SourceClickupAPI Resource resource "airbyte_source_clickup_api" "my_source_clickupapi" { configuration = { api_token = "...my_api_token..." - include_closed_tasks = true + include_closed_tasks = false } - definition_id = "506042c1-c656-461b-a485-a060238eba13" - name = "Joyce Shields" + definition_id = "5800594f-bd86-4631-8cac-e02f96b83355" + name = "Dixie Kessler" secret_id = "...my_secret_id..." - workspace_id = "00cfe1ba-68d3-4405-82b9-6029febd39e6" + workspace_id = "181b36cf-1afc-4f94-a3c7-9cbeca1c7573" } ``` diff --git a/docs/resources/source_clockify.md b/docs/resources/source_clockify.md index 541920ede..742ad9728 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 = "abf17c2d-50cb-46e6-bf33-2bdf145775fc" - name = "Miss Ira Lesch" + definition_id = "a5bbba82-d4c0-4a2c-af78-12475bca9a48" + name = "Amber Osinski" secret_id = "...my_secret_id..." - workspace_id = "466bf78b-3b7d-4ede-947f-c7c1cb53c351" + workspace_id = "0ddc3156-b2ff-4d5d-ac69-da5497add71f" } ``` diff --git a/docs/resources/source_close_com.md b/docs/resources/source_close_com.md index 3ed366221..71f67186a 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 = "9ddb3b3d-7401-439d-82cf-2cb416442d85" - name = "Vernon Ratke" + definition_id = "ea586a09-709e-4dce-b2c4-357e7eb149e6" + name = "Terence Miller" secret_id = "...my_secret_id..." - workspace_id = "82e70e18-a817-42f9-b227-1c9f9cbaa542" + workspace_id = "6bd271d6-f7a7-47e5-9b04-b8d52e6bc1e2" } ``` diff --git a/docs/resources/source_coda.md b/docs/resources/source_coda.md index 3dcddea35..589d2cade 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 = "e6e08096-1d84-4c3f-bc24-f860fce85198" - name = "Andrew Cartwright" + definition_id = "2381cdc2-e964-42f3-82fe-19c32edfee92" + name = "Kim Dickens" secret_id = "...my_secret_id..." - workspace_id = "726581ee-6770-4fa8-ac1b-a804bd6457a4" + workspace_id = "3ad2c887-f28e-4f97-9a7b-102e5487915a" } ``` diff --git a/docs/resources/source_coin_api.md b/docs/resources/source_coin_api.md index 18b9d7242..90675d100 100644 --- a/docs/resources/source_coin_api.md +++ b/docs/resources/source_coin_api.md @@ -19,14 +19,14 @@ resource "airbyte_source_coin_api" "my_source_coinapi" { end_date = "2019-01-01T00:00:00" environment = "sandbox" limit = 10 - period = "2MTH" + period = "5SEC" start_date = "2019-01-01T00:00:00" symbol_id = "...my_symbol_id..." } - definition_id = "851a3541-ba6f-45d9-8d5a-8a349e2072bd" - name = "Jan DuBuque IV" + definition_id = "49e5b0b6-8d5f-4b4b-99e2-f7dc2833c76b" + name = "Sammy Hauck" secret_id = "...my_secret_id..." - workspace_id = "dbe50fcb-32a7-4817-babb-82e6a7189e92" + workspace_id = "566b4ade-0498-4ec4-8fd8-ad9161a05c5e" } ``` diff --git a/docs/resources/source_coinmarketcap.md b/docs/resources/source_coinmarketcap.md index ac0b5add0..c38299db2 100644 --- a/docs/resources/source_coinmarketcap.md +++ b/docs/resources/source_coinmarketcap.md @@ -16,15 +16,15 @@ SourceCoinmarketcap Resource resource "airbyte_source_coinmarketcap" "my_source_coinmarketcap" { configuration = { api_key = "...my_api_key..." - data_type = "latest" + data_type = "historical" symbols = [ "...", ] } - definition_id = "6d74638d-1409-4463-9cf5-dd4a0c05f536" - name = "Reginald Rath" + definition_id = "89977eae-086e-43c2-9330-82ab840e5611" + name = "Marianne Bradtke" secret_id = "...my_secret_id..." - workspace_id = "8b8f8f6a-fbf3-465d-a87e-087e3905b6a4" + workspace_id = "a0210a5c-fbec-4287-a54f-12bc84028fbb" } ``` diff --git a/docs/resources/source_configcat.md b/docs/resources/source_configcat.md index 49c3668b6..2eb58d8cc 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 = "Barney_Koss91" + username = "Alena_Satterfield76" } - definition_id = "b4f73b7e-8dc3-471e-8bee-10511b439ed1" - name = "Stephanie Runte" + definition_id = "f802e3e6-0165-4466-b52d-a9b04e26c5d5" + name = "Dr. Roman Heaney" secret_id = "...my_secret_id..." - workspace_id = "9f9b4783-ac23-42bf-a41c-80b23345c949" + workspace_id = "f713464e-d5bf-46d6-b306-cc548e68cfae" } ``` diff --git a/docs/resources/source_confluence.md b/docs/resources/source_confluence.md index 105e93f46..9ad953d75 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 = "9f5a34ff-680c-488d-8e9f-7431721e4227" - name = "Miss Dewey Hintz" + definition_id = "df143ee1-0f82-479e-827b-2c340e1d4b42" + name = "Miss Rickey Bradtke" secret_id = "...my_secret_id..." - workspace_id = "6ec345b5-c1ba-4e74-b26a-8cd9c5aad47a" + workspace_id = "2aeeab6a-16bc-40f1-be55-67777324c6ca" } ``` diff --git a/docs/resources/source_convex.md b/docs/resources/source_convex.md index c321cab32..dab2094f0 100644 --- a/docs/resources/source_convex.md +++ b/docs/resources/source_convex.md @@ -16,12 +16,12 @@ SourceConvex Resource resource "airbyte_source_convex" "my_source_convex" { configuration = { access_key = "...my_access_key..." - deployment_url = "https://cluttered-owl-337.convex.cloud" + deployment_url = "https://murky-swan-635.convex.cloud" } - definition_id = "da11e10d-002e-41c7-bf9b-a1e39a63be20" - name = "Jermaine Ortiz" + definition_id = "fcdac638-7854-4b69-842e-8b9a534c06fe" + name = "Genevieve Corwin" secret_id = "...my_secret_id..." - workspace_id = "93eb808e-c8c0-4a1f-9167-1a56d068f4b5" + workspace_id = "4eff211a-dfc7-421d-91f8-0239a929660c" } ``` diff --git a/docs/resources/source_custom.md b/docs/resources/source_custom.md index dc6b452da..6fafe17e3 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 = "e4c19596-433e-41d5-9484-aac586d05524" - name = "Lynne Hartmann" + definition_id = "93eb1144-8c1c-4d3a-be5e-f85381e22d9f" + name = "Henry Price Sr." secret_id = "...my_secret_id..." - workspace_id = "5b457a2c-2618-4fe1-b91d-cce8e649d767" + workspace_id = "24121e63-15be-4306-a4e8-3994413a7c75" } ``` diff --git a/docs/resources/source_customer_io.md b/docs/resources/source_customer_io.md index 0548851c7..24ff492ae 100644 --- a/docs/resources/source_customer_io.md +++ b/docs/resources/source_customer_io.md @@ -17,10 +17,10 @@ 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" + definition_id = "d4c70b58-82c8-481a-8878-bfdf7e2fa4a6" + name = "Lucy Christiansen" secret_id = "...my_secret_id..." - workspace_id = "00594fbd-8663-414c-ace0-2f96b833556f" + workspace_id = "34bba48e-d6d0-4eaf-bf54-c7c369f9cb0a" } ``` diff --git a/docs/resources/source_datadog.md b/docs/resources/source_datadog.md index 6a657a86b..dde87ea8e 100644 --- a/docs/resources/source_datadog.md +++ b/docs/resources/source_datadog.md @@ -18,22 +18,22 @@ resource "airbyte_source_datadog" "my_source_datadog" { api_key = "...my_api_key..." application_key = "...my_application_key..." end_date = "2022-10-01T00:00:00Z" - max_records_per_request = 4 + max_records_per_request = 2 queries = [ { data_source = "rum" - name = "Miss Carolyn MacGyver" + name = "Ms. Paul Beer" query = "...my_query..." }, ] query = "...my_query..." - site = "us5.datadoghq.com" + site = "datadoghq.eu" start_date = "2022-10-01T00:00:00Z" } - definition_id = "cf1afcf9-4e3c-479c-beca-1c7573a5bbba" - name = "Howard Stoltenberg" + definition_id = "ef770c81-f95c-45b8-9d2d-32b37f6fec5c" + name = "Thomas O'Conner" secret_id = "...my_secret_id..." - workspace_id = "0a2cef78-1247-45bc-a9a4-804a9e0ddc31" + workspace_id = "da52f695-43b8-4620-99bb-50480aaaf77a" } ``` diff --git a/docs/resources/source_datascope.md b/docs/resources/source_datascope.md index 1188394b7..1e851135a 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 = "56b2ffd5-d6c6-49da-9497-add71ffdea58" - name = "Kristi Beahan" + definition_id = "e08fd2ca-f83f-4045-910a-7c570570b889" + name = "Tara Medhurst" secret_id = "...my_secret_id..." - workspace_id = "09edcef2-c435-47e7-ab14-9e6fe9a76bd2" + workspace_id = "4e6d7c2f-caa3-486d-a1d2-ddf0351c49c6" } ``` diff --git a/docs/resources/source_dbt.md b/docs/resources/source_dbt.md index fce5a9d51..a8f18a8a4 100644 --- a/docs/resources/source_dbt.md +++ b/docs/resources/source_dbt.md @@ -18,10 +18,10 @@ resource "airbyte_source_dbt" "my_source_dbt" { account_id = "...my_account_id..." api_key_2 = "...my_api_key_2..." } - definition_id = "71d6f7a7-7e51-4b04-b8d5-2e6bc1e22381" - name = "Clint Sanford" + definition_id = "86900517-4142-45e4-938a-30ea56cdfa27" + name = "Dominic Will" secret_id = "...my_secret_id..." - workspace_id = "9642f3c2-fe19-4c32-adfe-e92bc3373ad2" + workspace_id = "25b4bae6-1112-4211-be87-b490ecc6bf75" } ``` diff --git a/docs/resources/source_delighted.md b/docs/resources/source_delighted.md index e18786631..f42b7a8f8 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-30 04:50:23" + since = "2022-05-30T04:50:23Z" } - definition_id = "7f28ef97-5a7b-4102-a548-7915a2f449e5" - name = "Jose Price" + definition_id = "16fc803c-8311-4a97-a1ae-8949629432a0" + name = "Nichole Wehner" secret_id = "...my_secret_id..." - workspace_id = "d5fb4b99-e2f7-4dc2-833c-76bbd55f566b" + workspace_id = "fe7e017f-9052-4f20-80e0-69282dd6a12c" } ``` diff --git a/docs/resources/source_dixa.md b/docs/resources/source_dixa.md index be3f05d63..1dfe62edb 100644 --- a/docs/resources/source_dixa.md +++ b/docs/resources/source_dixa.md @@ -16,13 +16,13 @@ SourceDixa Resource resource "airbyte_source_dixa" "my_source_dixa" { configuration = { api_token = "...my_api_token..." - batch_size = 1 + batch_size = 31 start_date = "YYYY-MM-DD" } - definition_id = "0498ec40-fd8a-4d91-a1a0-5c5e889977ea" - name = "Gary Little" + definition_id = "bd9faeed-a058-4285-a791-3edfcf9c9058" + name = "Ben Mills Jr." secret_id = "...my_secret_id..." - workspace_id = "3c2d3308-2ab8-440e-9611-2c1fda0210a5" + workspace_id = "ee3e4cb5-5c69-45e2-b08e-b76e351cef20" } ``` diff --git a/docs/resources/source_dockerhub.md b/docs/resources/source_dockerhub.md index 423979353..8776b28e4 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 = "cfbec287-654f-412b-8840-28fbb0cddcf8" - name = "Julia Watsica" + definition_id = "de4cfc33-2b42-4c84-8d8b-c6076e714fbf" + name = "Erma Wyman" secret_id = "...my_secret_id..." - workspace_id = "60165466-352d-4a9b-84e2-6c5d5cf50fbf" + workspace_id = "aed54ef2-4d0d-4e80-a3db-90502015d2de" } ``` diff --git a/docs/resources/source_dremio.md b/docs/resources/source_dremio.md index 14f0fba8b..88985c7cd 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 = "713464ed-5bf6-4d67-b06c-c548e68cfaef" - name = "Dr. Tom Langworth" + definition_id = "4b8db33d-2b3a-427b-8b34-2a10fbc47ca7" + name = "Lucy Bruen" secret_id = "...my_secret_id..." - workspace_id = "143ee10f-8279-4e42-bb2c-340e1d4b428b" + workspace_id = "037c7eef-972d-4f3c-94a3-49fde89ab276" } ``` diff --git a/docs/resources/source_dynamodb.md b/docs/resources/source_dynamodb.md index 50abe3384..1126ce32a 100644 --- a/docs/resources/source_dynamodb.md +++ b/docs/resources/source_dynamodb.md @@ -23,14 +23,14 @@ resource "airbyte_source_dynamodb" "my_source_dynamodb" { } } endpoint = "https://{aws_dynamo_db_url}.com" - ignore_missing_read_permissions_tables = false - region = "af-south-1" + ignore_missing_read_permissions_tables = true + region = "il-central-1" reserved_attribute_names = "name, field_name, field-name" } - definition_id = "c62aeeab-6a16-4bc0-b1be-5567777324c6" - name = "Horace Kunde" + definition_id = "ad00caee-12c4-4e65-b57e-54a27b617a01" + name = "Lorena Huel" secret_id = "...my_secret_id..." - workspace_id = "dac63878-54b6-49c4-ae8b-9a534c06fe5a" + workspace_id = "68e1922d-f283-4a61-8313-a52314031fd7" } ``` diff --git a/docs/resources/source_emailoctopus.md b/docs/resources/source_emailoctopus.md index 63a63adb1..3c7c4ffcc 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 = "2e94eff2-11ad-4fc7-a1dd-1f80239a9296" - name = "Kimberly Schamberger" + definition_id = "b82b3c16-4c19-450d-a31e-becd9b5a75a7" + name = "Maurice Wiza" secret_id = "...my_secret_id..." - workspace_id = "eb11448c-1cd3-4afe-9ef8-5381e22d9fe1" + workspace_id = "1d722b31-0b67-46fb-b31c-6d5241e9821d" } ``` diff --git a/docs/resources/source_exchange_rates.md b/docs/resources/source_exchange_rates.md index 08b0698d0..2c3fd27eb 100644 --- a/docs/resources/source_exchange_rates.md +++ b/docs/resources/source_exchange_rates.md @@ -16,14 +16,14 @@ SourceExchangeRates Resource resource "airbyte_source_exchange_rates" "my_source_exchangerates" { configuration = { access_key = "...my_access_key..." - base = "USD" + base = "EUR" ignore_weekends = true start_date = "YYYY-MM-DD" } - definition_id = "24121e63-15be-4306-a4e8-3994413a7c75" - name = "Alexander Schroeder MD" + definition_id = "3242ccd2-763a-40d3-8eb9-1c3df2593495" + name = "Phyllis Smitham" secret_id = "...my_secret_id..." - workspace_id = "5882c881-a087-48bf-9f7e-2fa4a63623e3" + workspace_id = "258f30a2-7183-4b00-ac70-45956c03ec7b" } ``` diff --git a/docs/resources/source_ezofficeinventory.md b/docs/resources/source_ezofficeinventory.md new file mode 100644 index 000000000..a8b71b3ab --- /dev/null +++ b/docs/resources/source_ezofficeinventory.md @@ -0,0 +1,63 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_ezofficeinventory Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceEzofficeinventory Resource +--- + +# airbyte_source_ezofficeinventory (Resource) + +SourceEzofficeinventory Resource + +## Example Usage + +```terraform +resource "airbyte_source_ezofficeinventory" "my_source_ezofficeinventory" { + configuration = { + api_key = "...my_api_key..." + start_date = "2021-07-04T01:47:08.951Z" + subdomain = "...my_subdomain..." + } + definition_id = "68fdfc06-92b4-4fd6-b3f5-9a8d0acc9948" + name = "Thomas Ankunding Jr." + secret_id = "...my_secret_id..." + workspace_id = "59fac1d6-c9b0-4f0f-b5d9-42704e93ebb3" +} +``` + + +## 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) Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in Settings > Integrations > API Integration and click on Update to generate a new access token +- `start_date` (String) Earliest date you want to sync historical streams (inventory_histories, asset_histories, asset_stock_histories) from +- `subdomain` (String, Sensitive) The company name used in signup, also visible in the URL when logged in. + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_ezofficeinventory.my_airbyte_source_ezofficeinventory "" +``` diff --git a/docs/resources/source_facebook_marketing.md b/docs/resources/source_facebook_marketing.md index aa715dfa4..21a1627d1 100644 --- a/docs/resources/source_facebook_marketing.md +++ b/docs/resources/source_facebook_marketing.md @@ -19,9 +19,8 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { account_ids = [ "...", ] - action_breakdowns_allow_empty = true ad_statuses = [ - "PENDING_BILLING_INFO", + "DELETED", ] adset_statuses = [ "PAUSED", @@ -29,8 +28,6 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { campaign_statuses = [ "IN_PROCESS", ] - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." credentials = { authenticate_via_facebook_marketing_oauth = { access_token = "...my_access_token..." @@ -41,35 +38,35 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { custom_insights = [ { action_breakdowns = [ - "action_destination", + "action_type", ] - action_report_time = "impression" + action_report_time = "mixed" breakdowns = [ "skan_conversion_id", ] end_date = "2017-01-26T00:00:00Z" fields = [ - "video_avg_time_watched_actions", + "account_currency", ] - insights_job_timeout = 0 - insights_lookback_window = 10 - level = "campaign" - name = "Darryl Wunsch" + insights_job_timeout = 10 + insights_lookback_window = 0 + level = "account" + name = "Kara Macejkovic" start_date = "2017-01-25T00:00:00Z" - time_increment = 8 + time_increment = 10 }, ] end_date = "2017-01-26T00:00:00Z" - fetch_thumbnail_images = true - insights_job_timeout = 10 - insights_lookback_window = 6 - page_size = 8 + fetch_thumbnail_images = false + insights_job_timeout = 8 + insights_lookback_window = 7 + page_size = 10 start_date = "2017-01-25T00:00:00Z" } - definition_id = "a3dd0007-daef-4770-881f-95c5b8dd2d32" - name = "Stanley Kutch" + definition_id = "6a32dc31-e1b4-4b67-a953-bf2defea2fd1" + name = "Dana Wuckert" secret_id = "...my_secret_id..." - workspace_id = "fec5cd0a-4fda-452f-a954-3b8620d9bb50" + workspace_id = "d3631398-5539-4f35-ad32-06afb3a724a6" } ``` @@ -103,12 +100,9 @@ Required: 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. -- `action_breakdowns_allow_empty` (Boolean) Allows action_breakdowns to be an empty list. Default: true - `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, 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 diff --git a/docs/resources/source_faker.md b/docs/resources/source_faker.md index 280f5a4ef..dce48ff01 100644 --- a/docs/resources/source_faker.md +++ b/docs/resources/source_faker.md @@ -16,15 +16,15 @@ SourceFaker Resource resource "airbyte_source_faker" "my_source_faker" { configuration = { always_updated = true - count = 6 - parallelism = 0 - records_per_slice = 7 - seed = 6 + count = 8 + parallelism = 2 + records_per_slice = 0 + seed = 0 } - definition_id = "af77ae08-fd2c-4af8-bf04-5910a7c57057" - name = "Latoya Kuvalis" + definition_id = "34e58876-cb03-40a1-a8ae-06a57c7c577a" + name = "Joe Weber" secret_id = "...my_secret_id..." - workspace_id = "169da4e6-d7c2-4fca-a386-da1d2ddf0351" + workspace_id = "addd2747-bbc7-4f24-9709-ce4fe165bc48" } ``` diff --git a/docs/resources/source_fauna.md b/docs/resources/source_fauna.md index fcecc4582..766cbf2a5 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 = 8 + page_size = 3 } domain = "...my_domain..." - port = 3 + port = 0 scheme = "...my_scheme..." secret = "...my_secret..." } - definition_id = "9c686900-5174-4142-9e4d-38a30ea56cdf" - name = "Todd Kuhlman" + definition_id = "e7fb5df2-5477-4f37-8b0e-c7c89bfb0cb9" + name = "Everett Schultz" secret_id = "...my_secret_id..." - workspace_id = "f6225b4b-ae61-4112-a113-e87b490ecc6b" + workspace_id = "27a8c72c-3eb5-4dc5-9714-db07d7698733" } ``` diff --git a/docs/resources/source_file.md b/docs/resources/source_file.md index 7667d2e6e..ce53b6dc6 100644 --- a/docs/resources/source_file.md +++ b/docs/resources/source_file.md @@ -16,7 +16,7 @@ SourceFile Resource resource "airbyte_source_file" "my_source_file" { configuration = { dataset_name = "...my_dataset_name..." - format = "yaml" + format = "jsonl" provider = { az_blob_azure_blob_storage = { sas_token = "...my_sas_token..." @@ -27,10 +27,10 @@ resource "airbyte_source_file" "my_source_file" { reader_options = "{\"sep\": \" \"}" url = "gs://my-google-bucket/data.csv" } - definition_id = "16116fc8-03c8-4311-a97a-1ae894962943" - name = "Kristine Bailey" + definition_id = "b53a479a-0805-4ff1-b93b-f9b799d63199" + name = "Gilberto Jones" secret_id = "...my_secret_id..." - workspace_id = "eacfe7e0-17f9-4052-b204-0e069282dd6a" + workspace_id = "68c85ec2-1a9a-4b56-bf13-c77e51fa773f" } ``` @@ -75,6 +75,7 @@ Optional: - `az_blob_azure_blob_storage` (Attributes) (see [below for nested schema](#nestedatt--configuration--provider--az_blob_azure_blob_storage)) - `gcs_google_cloud_storage` (Attributes) (see [below for nested schema](#nestedatt--configuration--provider--gcs_google_cloud_storage)) - `https_public_web` (Attributes) (see [below for nested schema](#nestedatt--configuration--provider--https_public_web)) +- `local_filesystem_limited` (Attributes) (see [below for nested schema](#nestedatt--configuration--provider--local_filesystem_limited)) - `s3_amazon_web_services` (Attributes) (see [below for nested schema](#nestedatt--configuration--provider--s3_amazon_web_services)) - `scp_secure_copy_protocol` (Attributes) (see [below for nested schema](#nestedatt--configuration--provider--scp_secure_copy_protocol)) - `sftp_secure_file_transfer_protocol` (Attributes) (see [below for nested schema](#nestedatt--configuration--provider--sftp_secure_file_transfer_protocol)) @@ -109,6 +110,10 @@ Optional: - `user_agent` (Boolean) Add User-Agent to request. Default: false + +### Nested Schema for `configuration.provider.local_filesystem_limited` + + ### Nested Schema for `configuration.provider.s3_amazon_web_services` diff --git a/docs/resources/source_firebolt.md b/docs/resources/source_firebolt.md index f7c0322d6..bd2c3457d 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 = "12cb01cb-d9fa-4eed-a058-28527913edfc" - name = "Virgil Rosenbaum II" + definition_id = "cf1a4306-e082-4909-997b-fabbad3671a9" + name = "Shaun Bosco" secret_id = "...my_secret_id..." - workspace_id = "8e69d20e-e3e4-4cb5-9c69-5e2f08eb76e3" + workspace_id = "c174fee4-1455-462d-a757-6235e52bb8ad" } ``` diff --git a/docs/resources/source_fleetio.md b/docs/resources/source_fleetio.md index 07225b88f..1e9a74923 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 = "51cef20d-e4cf-4c33-ab42-c84cd8bc6076" - name = "Julio Bode" + definition_id = "c8fd2a7f-940d-4ec4-8e21-6dff8929e4d2" + name = "Miss Genevieve Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "bf0cfd3a-ed54-4ef2-8d0d-e80e3db90502" + workspace_id = "94f7d68d-64a8-410b-a959-587ed0c47c0f" } ``` diff --git a/docs/resources/source_freshcaller.md b/docs/resources/source_freshcaller.md index 3deb2d51e..a3be945a9 100644 --- a/docs/resources/source_freshcaller.md +++ b/docs/resources/source_freshcaller.md @@ -17,14 +17,14 @@ resource "airbyte_source_freshcaller" "my_source_freshcaller" { configuration = { api_key = "...my_api_key..." domain = "snaptravel" - requests_per_minute = 0 + requests_per_minute = 6 start_date = "2022-01-01T12:00:00Z" - sync_lag_minutes = 9 + sync_lag_minutes = 2 } - definition_id = "2de4b8db-33d2-4b3a-a7b0-b342a10fbc47" - name = "Ms. Grant Krajcik I" + definition_id = "3c0f294c-11e4-4e99-bd29-474281bb54df" + name = "Sam Sawayn" secret_id = "...my_secret_id..." - workspace_id = "9037c7ee-f972-4df3-814a-349fde89ab27" + workspace_id = "b79e2328-88b6-4bde-a515-4a52da80f2bf" } ``` diff --git a/docs/resources/source_freshdesk.md b/docs/resources/source_freshdesk.md index df3c1831b..b430942d7 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 = 4 - requests_per_minute = 8 + lookback_window_in_days = 7 + requests_per_minute = 3 start_date = "2020-12-01T00:00:00Z" } - definition_id = "d00caee1-2c4e-465b-97e5-4a27b617a012" - name = "Ramon Robel" + definition_id = "53a69509-35ad-4536-8500-4734e30b46b9" + name = "Bobbie Toy" secret_id = "...my_secret_id..." - workspace_id = "8e1922df-283a-4614-b13a-52314031fd7b" + workspace_id = "758ac092-2711-49b9-9b60-c98bb7037ab5" } ``` diff --git a/docs/resources/source_freshsales.md b/docs/resources/source_freshsales.md index 7758d73ae..ebb612daa 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 = "82b3c164-c195-40da-b1eb-ecd9b5a75a7c" - name = "Shari Rutherford PhD" + definition_id = "561ce1bb-1cad-4aa0-a328-a3bd5563e04d" + name = "Bruce Leannon" secret_id = "...my_secret_id..." - workspace_id = "722b310b-676f-4b73-9c6d-5241e9821d4f" + workspace_id = "75265fdf-f2de-4b8c-bf26-74a92033b17b" } ``` diff --git a/docs/resources/source_front.md b/docs/resources/source_front.md new file mode 100644 index 000000000..bef4398e5 --- /dev/null +++ b/docs/resources/source_front.md @@ -0,0 +1,66 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_front Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceFront Resource +--- + +# airbyte_source_front (Resource) + +SourceFront Resource + +## Example Usage + +```terraform +resource "airbyte_source_front" "my_source_front" { + configuration = { + api_key = "...my_api_key..." + page_limit = "...my_page_limit..." + start_date = "2020-09-01T18:02:32.558Z" + } + definition_id = "c526af10-da40-41fb-8fc5-2730b39994a4" + name = "Kellie Grady" + secret_id = "...my_secret_id..." + workspace_id = "985c78fa-7d86-4bdf-9bf9-1acb12108372" +} +``` + + +## 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: + +- `page_limit` (String) Page limit for the responses. Default: "50" + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_front.my_airbyte_source_front "" +``` diff --git a/docs/resources/source_gainsight_px.md b/docs/resources/source_gainsight_px.md index 40a6dde5c..b8f35017c 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 = "c03242cc-d276-43a0-930e-b91c3df25934" - name = "Lloyd Herzog" + definition_id = "8d89e351-e868-4df1-b2c5-ad84a46153eb" + name = "April Beer" secret_id = "...my_secret_id..." - workspace_id = "c8258f30-a271-483b-80ec-7045956c03ec" + workspace_id = "26d4887c-caaf-458e-8f5c-1159d6014991" } ``` diff --git a/docs/resources/source_gcs.md b/docs/resources/source_gcs.md index 5e3bf1ec9..213caf3e8 100644 --- a/docs/resources/source_gcs.md +++ b/docs/resources/source_gcs.md @@ -20,7 +20,7 @@ resource "airbyte_source_gcs" "my_source_gcs" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 6 + days_to_sync_if_history_is_full = 9 format = { avro_format = { double_as_string = true @@ -30,19 +30,17 @@ resource "airbyte_source_gcs" "my_source_gcs" { "...", ] 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" + name = "Leland Kshlerin" + recent_n_files_to_read_for_schema_discovery = 5 + schemaless = false + validation_policy = "Wait for Discover" }, ] } - definition_id = "92b4fd67-3f59-4a8d-8acc-9948b0061059" - name = "Dr. Cameron Rosenbaum" + definition_id = "c604057d-0451-4918-9b5c-ccbbbdb31196" + name = "Mindy Morissette" secret_id = "...my_secret_id..." - workspace_id = "c9b0f0f3-5d94-4270-8e93-ebb36d8aaea0" + workspace_id = "67745afb-65f1-4720-bd7a-7ec19162647e" } ``` @@ -93,8 +91,6 @@ 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 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" @@ -131,7 +127,6 @@ Optional: - `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values. - `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition)) - `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. - `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank. Default: "\"" - `skip_rows_after_header` (Number) The number of rows to skip after the header row. Default: 0 diff --git a/docs/resources/source_getlago.md b/docs/resources/source_getlago.md index f2a2385ea..d79eac1da 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 = "0f0c4c84-b89e-4625-bae8-76a32dc31e1b" - name = "Yvette Howell" + definition_id = "680e4417-c6f4-4b50-9c82-06a4b043ef09" + name = "Ricardo Cartwright" secret_id = "...my_secret_id..." - workspace_id = "953bf2de-fea2-4fd1-85f4-8d3631398553" + workspace_id = "5b726765-eab1-4ad8-8295-4bd759bdc8b9" } ``` diff --git a/docs/resources/source_github.md b/docs/resources/source_github.md index d31f84587..1caf75302 100644 --- a/docs/resources/source_github.md +++ b/docs/resources/source_github.md @@ -15,8 +15,7 @@ SourceGithub Resource ```terraform resource "airbyte_source_github" "my_source_github" { configuration = { - api_url = "https://github.company.org" - branch = "airbytehq/airbyte/master airbytehq/airbyte/my-branch" + api_url = "https://github.com" branches = [ "...", ] @@ -31,13 +30,12 @@ resource "airbyte_source_github" "my_source_github" { repositories = [ "...", ] - repository = "airbytehq/*" start_date = "2021-03-01T00:00:00Z" } - definition_id = "3206afb3-a724-4a60-9401-34e58876cb03" - name = "Jan Bernier" + definition_id = "7f557094-a97b-4635-ad53-391630fd2f13" + name = "Lynette Gulgowski" secret_id = "...my_secret_id..." - workspace_id = "ae06a57c-7c57-47af-9e5b-addd2747bbc7" + workspace_id = "ef253f33-ac13-45dc-90f6-3794a97d5acf" } ``` @@ -71,10 +69,8 @@ Required: Optional: - `api_url` (String) Please enter your basic URL from self-hosted GitHub instance or leave it empty to use GitHub. Default: "https://api.github.com/" -- `branch` (String) (DEPRCATED) Space-delimited list of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. - `branches` (List of String) List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. - `max_waiting_time` (Number) Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync. Default: 10 -- `repository` (String) (DEPRCATED) Space-delimited list of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/airbyte airbytehq/another-repo` for multiple repositories. - `start_date` (String) The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the docs for more info diff --git a/docs/resources/source_gitlab.md b/docs/resources/source_gitlab.md index ec287f89b..5f0acde3f 100644 --- a/docs/resources/source_gitlab.md +++ b/docs/resources/source_gitlab.md @@ -15,30 +15,28 @@ SourceGitlab Resource ```terraform resource "airbyte_source_gitlab" "my_source_gitlab" { configuration = { - api_url = "https://gitlab.company.org" + api_url = "https://gitlab.com" 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-09-22T11:58:26.764Z" + token_expiry_date = "2022-11-02T09:49:39.802Z" } } - groups = "airbyte.io" groups_list = [ "...", ] - projects = "airbyte.io/documentation" projects_list = [ "...", ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "09ce4fe1-65bc-4484-8e7f-b5df25477f37" - name = "Hannah Becker" + definition_id = "a66e5ad3-9192-4931-8c65-ed70eb17cb4f" + name = "Mr. Jeremy Gislason" secret_id = "...my_secret_id..." - workspace_id = "7c89bfb0-cb9d-48df-827a-8c72c3eb5dc5" + workspace_id = "ca0d0171-1f25-4a28-9de0-4a9ce3be57bf" } ``` @@ -71,9 +69,7 @@ Required: Optional: - `api_url` (String) Please enter your basic URL from GitLab instance. Default: "gitlab.com" -- `groups` (String) [DEPRECATED] Space-delimited list of groups. e.g. airbyte.io. - `groups_list` (List of String) List of groups. e.g. airbyte.io. -- `projects` (String) [DEPRECATED] Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab. - `projects_list` (List of String) Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab. - `start_date` (String) The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. Optional. If not set, all data will be replicated. All data generated after this date will be replicated. diff --git a/docs/resources/source_glassfrog.md b/docs/resources/source_glassfrog.md index b46a6cd75..acef98149 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 = "5714db07-d769-4873-b386-b53a479a0805" - name = "Emmett Bruen" + definition_id = "a4612744-2775-4ed0-8074-e17a64885711" + name = "Jean McGlynn" secret_id = "...my_secret_id..." - workspace_id = "3bf9b799-d631-499b-96b4-68c85ec21a9a" + workspace_id = "e75a513e-0097-4779-b827-c06dd86b4fbd" } ``` diff --git a/docs/resources/source_gnews.md b/docs/resources/source_gnews.md index bc1b03d42..95a74952e 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 = "ru" + country = "ua" end_date = "2022-08-21 16:27:09" in = [ - "title", + "description", ] - language = "hi" + language = "no" nullable = [ - "description", + "content", ] - query = "Intel AND (i7 OR i9)" + query = "Apple OR Microsoft" sortby = "publishedAt" start_date = "2022-08-21 16:27:09" - top_headlines_query = "Apple OR Microsoft" - top_headlines_topic = "sports" + top_headlines_query = "Apple AND NOT iPhone" + top_headlines_topic = "nation" } - definition_id = "77e51fa7-73fc-4f1a-8306-e082909d97bf" - name = "Kerry Reinger" + definition_id = "5108cd8d-f8fd-4dac-ae82-61af8b9bb485" + name = "Nadine Jenkins" secret_id = "...my_secret_id..." - workspace_id = "3671a9ca-1d9c-4174-bee4-145562d27576" + workspace_id = "be1e785d-e7e3-427e-b787-5126eb569443" } ``` diff --git a/docs/resources/source_goldcast.md b/docs/resources/source_goldcast.md index 3e6bb9c6e..a19d2c31b 100644 --- a/docs/resources/source_goldcast.md +++ b/docs/resources/source_goldcast.md @@ -17,10 +17,10 @@ resource "airbyte_source_goldcast" "my_source_goldcast" { configuration = { access_key = "...my_access_key..." } - definition_id = "235e52bb-8adc-48fd-aa7f-940dec44e216" - name = "Moses Wolf" + definition_id = "12d5d5e6-a2d8-43c0-8c98-dd5412256513" + name = "Miss Melvin Hirthe II" secret_id = "...my_secret_id..." - workspace_id = "29e4d23a-00b4-494f-bd68-d64a810b2959" + workspace_id = "88926ab9-cfe2-4e85-afcc-9acc6e7e95c9" } ``` diff --git a/docs/resources/source_google_ads.md b/docs/resources/source_google_ads.md index 0f6640d51..259b72d09 100644 --- a/docs/resources/source_google_ads.md +++ b/docs/resources/source_google_ads.md @@ -36,10 +36,10 @@ resource "airbyte_source_google_ads" "my_source_googleads" { end_date = "2017-01-30" start_date = "2017-01-25" } - definition_id = "c47c0f9c-e33c-40f2-94c1-1e4e993d2947" - name = "Miss Andrea Lind" + definition_id = "97511d62-4796-4585-8950-01aad5e5f9cf" + name = "Dr. Joseph Schumm" secret_id = "...my_secret_id..." - workspace_id = "54dff6cf-9b79-4e23-a888-b6bde25154a5" + workspace_id = "d3acce90-aeed-4108-bb98-82d54ce598cc" } ``` diff --git a/docs/resources/source_google_analytics_data_api.md b/docs/resources/source_google_analytics_data_api.md index 4541d14e0..0ebf3a487 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 = 82.98 + value = 59.26 } } to_value = { double_value = { - value = 63.94 + value = 93.52 } } } @@ -64,12 +64,12 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda between_filter = { from_value = { double_value = { - value = 51.9 + value = 72.46 } } to_value = { double_value = { - value = 4.5 + value = 58.88 } } } @@ -81,21 +81,21 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda metrics = [ "...", ] - name = "Todd Rodriguez" + name = "Mrs. Julia Windler" }, ] date_ranges_start_date = "2021-01-01" - keep_empty_rows = false - lookback_window = 4 + keep_empty_rows = true + lookback_window = 3 property_ids = [ "...", ] - window_in_days = 120 + window_in_days = 364 } - definition_id = "950935ad-536c-4500-8734-e30b46b959e4" - name = "Julio Harber" + definition_id = "8f9d1baa-c6e0-45b1-a50c-14468d231cdd" + name = "Jordan Wunsch PhD" secret_id = "...my_secret_id..." - workspace_id = "c0922711-9b95-4b60-898b-b7037ab5561c" + workspace_id = "deee1be4-e723-4eea-b419-bc59e04a869e" } ``` diff --git a/docs/resources/source_google_directory.md b/docs/resources/source_google_directory.md index ac69e36ff..50e49ad1c 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 = "Aniya.Prohaska79@hotmail.com" + email = "Rey57@yahoo.com" } } } - definition_id = "adaa0e32-8a3b-4d55-a3e0-4de287b75265" - name = "Mack Wisozk" + definition_id = "f3b04e32-dc64-49b6-bc8e-2c7d0de0f8a2" + name = "Dustin Kozey" secret_id = "...my_secret_id..." - workspace_id = "deb8cbf2-674a-4920-b3b1-7bfcc526af10" + workspace_id = "de20e751-11fd-4061-affd-3df11978b385" } ``` diff --git a/docs/resources/source_google_drive.md b/docs/resources/source_google_drive.md index 53cf17b15..d323d4a6b 100644 --- a/docs/resources/source_google_drive.md +++ b/docs/resources/source_google_drive.md @@ -26,7 +26,7 @@ resource "airbyte_source_google_drive" "my_source_googledrive" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 3 + days_to_sync_if_history_is_full = 5 format = { avro_format = { double_as_string = true @@ -36,17 +36,16 @@ resource "airbyte_source_google_drive" "my_source_googledrive" { "...", ] input_schema = "...my_input_schema..." - name = "Dr. Shawna Robel" - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Emit Record" + name = "Adrienne Mraz DDS" + schemaless = true + validation_policy = "Skip Record" }, ] } - definition_id = "730b3999-4a41-4e4a-8985-c78fa7d86bdf" - name = "Kristy Wilderman MD" + definition_id = "284a2115-5c54-4910-a09b-e9a984e4b07b" + name = "Mrs. Rex Witting" secret_id = "...my_secret_id..." - workspace_id = "cb121083-728d-489e-b51e-868df1f2c5ad" + workspace_id = "d5606ac5-9e7c-48ae-aeb0-9ffd3753fe46" } ``` @@ -123,7 +122,6 @@ 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) 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 1721906fb..df32a847d 100644 --- a/docs/resources/source_google_pagespeed_insights.md +++ b/docs/resources/source_google_pagespeed_insights.md @@ -17,7 +17,7 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin configuration = { api_key = "...my_api_key..." categories = [ - "performance", + "pwa", ] strategies = [ "desktop", @@ -26,10 +26,10 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin "...", ] } - definition_id = "a46153eb-240d-4626-9488-7ccaaf58e0f5" - name = "Lawrence Casper" + definition_id = "403ba1bd-8103-4cfb-8228-49b585759fd7" + name = "Ervin Koss" secret_id = "...my_secret_id..." - workspace_id = "d6014991-0eec-4fc7-b384-ec604057d045" + workspace_id = "a20ea69f-1b1a-4975-9d1b-5a0295b197bb" } ``` diff --git a/docs/resources/source_google_search_console.md b/docs/resources/source_google_search_console.md index 6557a1340..6689c22e5 100644 --- a/docs/resources/source_google_search_console.md +++ b/docs/resources/source_google_search_console.md @@ -23,13 +23,12 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" refresh_token = "...my_refresh_token..." } } - custom_reports = "...my_custom_reports..." custom_reports_array = [ { dimensions = [ - "country", + "page", ] - name = "Peter Luettgen" + name = "Judith Crona" }, ] data_state = "final" @@ -37,12 +36,12 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" site_urls = [ "...", ] - start_date = "2020-11-18" + start_date = "2022-06-01" } - definition_id = "bbdb3119-64f9-49d6-b745-afb65f1720bd" - name = "Harriet Kiehn" + definition_id = "155f731c-6e6b-4c1c-af16-6aee78925477" + name = "Jimmy Lockman" secret_id = "...my_secret_id..." - workspace_id = "19162647-e680-4e44-97c6-f4b509c8206a" + workspace_id = "53022ba4-aed2-4995-8663-b6d13c6e3bbb" } ``` @@ -75,7 +74,6 @@ Required: Optional: -- `custom_reports` (String) (DEPRCATED) A JSON array describing the custom reports you want to sync from Google Search Console. See our documentation for more information on formulating custom reports. - `custom_reports_array` (Attributes List) You can add your Custom Analytics report by creating one. (see [below for nested schema](#nestedatt--configuration--custom_reports_array)) - `data_state` (String) If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our full documentation. must be one of ["final", "all"]; Default: "final" - `end_date` (String) UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward. diff --git a/docs/resources/source_google_sheets.md b/docs/resources/source_google_sheets.md index 4ff21ffe0..583b094b5 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 = 2 + batch_size = 6 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 = "043ef09e-61b7-45b7-a676-5eab1ad84295" - name = "Juana Stroman" + definition_id = "bd413d75-c669-43a6-b92e-f16650e4c312" + name = "Betsy Koss" secret_id = "...my_secret_id..." - workspace_id = "9bdc8b93-f80b-47f5-9709-4a97b6356d53" + workspace_id = "566ac796-fdac-41f4-8b8f-86701054c1db" } ``` diff --git a/docs/resources/source_google_tasks.md b/docs/resources/source_google_tasks.md new file mode 100644 index 000000000..8a1903f95 --- /dev/null +++ b/docs/resources/source_google_tasks.md @@ -0,0 +1,66 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_google_tasks Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceGoogleTasks Resource +--- + +# airbyte_source_google_tasks (Resource) + +SourceGoogleTasks Resource + +## Example Usage + +```terraform +resource "airbyte_source_google_tasks" "my_source_googletasks" { + configuration = { + api_key = "...my_api_key..." + records_limit = "...my_records_limit..." + start_date = "2022-04-01T08:43:44.262Z" + } + definition_id = "e49a8fc7-f8e2-4467-a645-cfb2449eef87" + name = "Gail Waelchi" + secret_id = "...my_secret_id..." + workspace_id = "b875ea1f-a63f-46c0-bac1-403cfd915cc5" +} +``` + + +## 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: + +- `records_limit` (String) The maximum number of records to be returned per request. Default: "50" + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_google_tasks.my_airbyte_source_google_tasks "" +``` diff --git a/docs/resources/source_google_webfonts.md b/docs/resources/source_google_webfonts.md index b44a44c48..9fee32f32 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 = "391630fd-2f13-41d4-bbef-253f33ac135d" - name = "Jackie Bayer" + definition_id = "3ae1f1c3-7b35-40eb-b398-1c89f963f1e6" + name = "Tara Goldner" secret_id = "...my_secret_id..." - workspace_id = "3794a97d-5acf-4562-93a6-6e5ad3919293" + workspace_id = "8788ff77-a589-433f-b738-d63dc7b7f8b1" } ``` diff --git a/docs/resources/source_greenhouse.md b/docs/resources/source_greenhouse.md index 209b1c753..e9d63e127 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 = "14c65ed7-0eb1-47cb-8fc2-4002ca0d0171" - name = "Ollie Cummerata" + definition_id = "6c6167f1-e8f0-4042-b922-10b5c8f204e6" + name = "Clinton Kunde" secret_id = "...my_secret_id..." - workspace_id = "28dde04a-9ce3-4be5-bbfa-46127442775e" + workspace_id = "47eb6bab-c0f9-4b18-b2ea-fdc453fb6a01" } ``` diff --git a/docs/resources/source_gridly.md b/docs/resources/source_gridly.md index c1199e981..7c1eb6974 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 = "d08074e1-7a64-4885-b11a-b94fe75a513e" - name = "Ruth Marquardt" + definition_id = "92c44771-2b4a-4020-8830-aabeffb8d976" + name = "Alice Bartell" secret_id = "...my_secret_id..." - workspace_id = "793827c0-6dd8-46b4-bbde-6ae53955108c" + workspace_id = "b440a5f2-f61a-44e4-a684-9f7bbeaaef52" } ``` diff --git a/docs/resources/source_guru.md b/docs/resources/source_guru.md new file mode 100644 index 000000000..2b56ad57a --- /dev/null +++ b/docs/resources/source_guru.md @@ -0,0 +1,70 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_guru Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceGuru Resource +--- + +# airbyte_source_guru (Resource) + +SourceGuru Resource + +## Example Usage + +```terraform +resource "airbyte_source_guru" "my_source_guru" { + configuration = { + password = "...my_password..." + search_cards_query = "...my_search_cards_query..." + start_date = "2022-12-16T14:49:37.143Z" + team_id = "...my_team_id..." + username = "Elfrieda_Fay27" + } + definition_id = "c473e8c7-bd59-4151-b4a5-53fda41daf76" + name = "Jeanette Trantow" + secret_id = "...my_secret_id..." + workspace_id = "1c5fa52e-0c6c-40cc-93e7-6e9fdef541f0" +} +``` + + +## 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) +- `username` (String) + +Optional: + +- `password` (String, Sensitive) +- `search_cards_query` (String) Query for searching cards +- `team_id` (String) Team ID received through response of /teams streams, make sure about access to the team + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_guru.my_airbyte_source_guru "" +``` diff --git a/docs/resources/source_hardcoded_records.md b/docs/resources/source_hardcoded_records.md index c5687aea8..5755a61fe 100644 --- a/docs/resources/source_hardcoded_records.md +++ b/docs/resources/source_hardcoded_records.md @@ -15,12 +15,12 @@ SourceHardcodedRecords Resource ```terraform resource "airbyte_source_hardcoded_records" "my_source_hardcodedrecords" { configuration = { - count = 9 + count = 4 } - definition_id = "8df8fdda-cae8-4261-af8b-9bb4850d654b" - name = "Albert Tromp" + definition_id = "ca13b1e8-9c14-488f-aa41-1d9d922269c9" + name = "Ricardo Gutmann" secret_id = "...my_secret_id..." - workspace_id = "5de7e327-e778-4751-a6eb-56944312d5d5" + workspace_id = "0bccdd2e-95af-46ed-bc47-c14160113c2d" } ``` diff --git a/docs/resources/source_harvest.md b/docs/resources/source_harvest.md index d7a9401e5..a529bc0c8 100644 --- a/docs/resources/source_harvest.md +++ b/docs/resources/source_harvest.md @@ -24,13 +24,12 @@ resource "airbyte_source_harvest" "my_source_harvest" { refresh_token = "...my_refresh_token..." } } - replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" } - definition_id = "d83c0cc9-8dd5-4412-a565-139361b04889" - name = "Stacey O'Keefe" + definition_id = "b5eaa64b-86a4-42db-bb85-3ec4b5e6a18b" + name = "Christie Kshlerin Jr." secret_id = "...my_secret_id..." - workspace_id = "cfe2e85a-fcc9-4acc-ae7e-95c9a7c9f197" + workspace_id = "3de8da44-3bfa-4add-a9a6-dff6cb6bf32f" } ``` @@ -64,7 +63,6 @@ Required: Optional: - `credentials` (Attributes) Choose how to authenticate to Harvest. (see [below for nested schema](#nestedatt--configuration--credentials)) -- `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. ### Nested Schema for `configuration.credentials` diff --git a/docs/resources/source_height.md b/docs/resources/source_height.md new file mode 100644 index 000000000..b2afe26d9 --- /dev/null +++ b/docs/resources/source_height.md @@ -0,0 +1,66 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_height Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceHeight Resource +--- + +# airbyte_source_height (Resource) + +SourceHeight Resource + +## Example Usage + +```terraform +resource "airbyte_source_height" "my_source_height" { + configuration = { + api_key = "...my_api_key..." + search_query = "...my_search_query..." + start_date = "2021-02-09T19:28:34.370Z" + } + definition_id = "825bea4e-c87a-4aff-ab9e-a290f7e9f416" + name = "Bridget Gutmann" + secret_id = "...my_secret_id..." + workspace_id = "69c61d27-bbad-43f0-bf8c-a743bfb1506e" +} +``` + + +## 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: + +- `search_query` (String) Search query to be used with search stream. Default: "task" + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_height.my_airbyte_source_height "" +``` diff --git a/docs/resources/source_hibob.md b/docs/resources/source_hibob.md index d936dd07a..99ee9261e 100644 --- a/docs/resources/source_hibob.md +++ b/docs/resources/source_hibob.md @@ -17,12 +17,12 @@ resource "airbyte_source_hibob" "my_source_hibob" { configuration = { is_sandbox = false password = "...my_password..." - username = "Anissa.Boyle17" + username = "Richard_Jerde72" } - definition_id = "47965850-9500-41aa-95e5-f9cfb0d1e8d3" - name = "Forrest Schmitt" + definition_id = "8b49c82f-283f-4df1-b362-a3ef9cacc879" + name = "Matt Kuhic" secret_id = "...my_secret_id..." - workspace_id = "0aeed108-7b98-482d-94ce-598cc59eb952" + workspace_id = "01647dc7-c271-4c50-84a2-5a4f7e4eabe3" } ``` diff --git a/docs/resources/source_high_level.md b/docs/resources/source_high_level.md index 87bda50cf..e8c76391d 100644 --- a/docs/resources/source_high_level.md +++ b/docs/resources/source_high_level.md @@ -17,12 +17,12 @@ 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" + start_date = "2021-11-13T14:23:46.779Z" } - definition_id = "6231c57f-d8f9-4d1b-aac6-e05b1e50c144" - name = "Marsha Stamm" + definition_id = "7768e793-45d1-4446-b033-18f29cf10b07" + name = "Julia Reichel" secret_id = "...my_secret_id..." - workspace_id = "1cdd98f8-1ede-4ee1-be4e-723eeaf419bc" + workspace_id = "b499111a-320c-4cad-9adc-1330ef574883" } ``` diff --git a/docs/resources/source_hubplanner.md b/docs/resources/source_hubplanner.md index 389502464..f7906a9c7 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 = "59e04a86-9e9d-4149-b3b0-4e32dc649b6b" - name = "Dwight Ward" + definition_id = "95b5ae04-23a6-4249-a514-955fa2ea25a5" + name = "Rosemarie Kulas Sr." secret_id = "...my_secret_id..." - workspace_id = "7d0de0f8-a2b5-47ad-9e20-e75111fd0612" + workspace_id = "e389cc42-00a4-4abb-b299-a611cc7be3e8" } ``` diff --git a/docs/resources/source_hubspot.md b/docs/resources/source_hubspot.md index f2e6a99e5..da61c80f5 100644 --- a/docs/resources/source_hubspot.md +++ b/docs/resources/source_hubspot.md @@ -22,13 +22,13 @@ resource "airbyte_source_hubspot" "my_source_hubspot" { refresh_token = "refresh_token" } } - enable_experimental_streams = false + enable_experimental_streams = true start_date = "2017-01-25T00:00:00Z" } - definition_id = "3df11978-b385-4957-a3c9-21cc9284a211" - name = "Annette Runolfsson" + definition_id = "188dc05c-92c2-4050-bdf2-ba7d43d20d33" + name = "Mrs. Don Walsh" secret_id = "...my_secret_id..." - workspace_id = "910609be-9a98-44e4-b07b-caf13ed5606a" + workspace_id = "d5352278-8fae-4aba-9eb9-3c772879b606" } ``` diff --git a/docs/resources/source_insightly.md b/docs/resources/source_insightly.md index 6b7a37310..523c7815e 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 = "9e7c8aee-eb09-4ffd-b753-fe46a1403ba1" - name = "Mr. Gilberto Lebsack" + definition_id = "6a28df31-96ea-4920-bcb7-876e75a531f3" + name = "Mr. Bradley Luettgen" secret_id = "...my_secret_id..." - workspace_id = "cfb42284-9b58-4575-9fd7-9d74aa20ea69" + workspace_id = "3b9d6749-76db-4e11-ac78-116c70bfb326" } ``` diff --git a/docs/resources/source_instagram.md b/docs/resources/source_instagram.md index 89b67dcc0..c0e39f56b 100644 --- a/docs/resources/source_instagram.md +++ b/docs/resources/source_instagram.md @@ -15,15 +15,13 @@ SourceInstagram Resource ```terraform resource "airbyte_source_instagram" "my_source_instagram" { configuration = { - access_token = "...my_access_token..." - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." - start_date = "2017-01-25T00:00:00Z" + access_token = "...my_access_token..." + start_date = "2017-01-25T00:00:00Z" } - definition_id = "b1a975dd-1b5a-4029-9b19-7bbb0227d625" - name = "Earl Bruen" + definition_id = "c47d5036-1610-47c0-bf83-920634c9db1c" + name = "Julia Huels V" secret_id = "...my_secret_id..." - workspace_id = "f731c6e6-bc1c-4af1-a6ae-e78925477f38" + workspace_id = "282f0b30-8e78-4729-bf50-24b690b2736f" } ``` @@ -55,8 +53,6 @@ Required: Optional: -- `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 a89580fb1..656202d0b 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 = "7c53022b-a4ae-4d29-95c6-63b6d13c6e3b" - name = "Pete McDermott" + definition_id = "2f7a3b95-d4ab-4cb3-adfb-bab6ad0e44a4" + name = "Wilbert Mayert DDS" secret_id = "...my_secret_id..." - workspace_id = "d413d75c-6693-4a6b-92ef-16650e4c3120" + workspace_id = "078573a2-0ac9-490f-9b2c-e7a67a85150e" } ``` diff --git a/docs/resources/source_intercom.md b/docs/resources/source_intercom.md index 538ab17d2..42d84bb3e 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 = 5 + activity_logs_time_step = 10 client_id = "...my_client_id..." client_secret = "...my_client_secret..." start_date = "2020-11-16T00:00:00Z" } - definition_id = "566ac796-fdac-41f4-8b8f-86701054c1db" - name = "Vicky Torphy" + definition_id = "20cd618d-7428-4068-92ca-7b2695261555" + name = "Mrs. Maggie Kihn" secret_id = "...my_secret_id..." - workspace_id = "a8fc7f8e-2467-4264-9cfb-2449eef8764e" + workspace_id = "98a3f979-9a12-4d6e-b3e6-6d700d477245" } ``` diff --git a/docs/resources/source_ip2whois.md b/docs/resources/source_ip2whois.md index 662d99296..e67f6cc6b 100644 --- a/docs/resources/source_ip2whois.md +++ b/docs/resources/source_ip2whois.md @@ -16,12 +16,12 @@ SourceIp2whois Resource resource "airbyte_source_ip2whois" "my_source_ip2whois" { configuration = { api_key = "...my_api_key..." - domain = "www.facebook.com" + domain = "www.google.com" } - definition_id = "4b875ea1-fa63-4f6c-8fac-1403cfd915cc" - name = "Victoria Murazik DVM" + definition_id = "d0d26d91-47bb-4356-aca6-47ba4f7aaba2" + name = "Joy Lowe I" secret_id = "...my_secret_id..." - workspace_id = "1c37b350-ebb3-4981-889f-963f1e6164cc" + workspace_id = "1a21c893-8ad6-4fcb-b78b-ed98212c704a" } ``` diff --git a/docs/resources/source_iterable.md b/docs/resources/source_iterable.md index 5d69f475c..fa6f0dc04 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 = "88ff77a5-8933-4f77-b8d6-3dc7b7f8b16c" - name = "Janet Hodkiewicz" + definition_id = "9387527d-5e3e-4f72-86d0-c0b7968b7242" + name = "Edna Kihn" secret_id = "...my_secret_id..." - workspace_id = "1e8f0042-f922-410b-9c8f-204e6a775647" + workspace_id = "2e9e26c4-c104-4f1d-be3b-1f2904477573" } ``` diff --git a/docs/resources/source_jira.md b/docs/resources/source_jira.md index 38e9ce992..5a4db9601 100644 --- a/docs/resources/source_jira.md +++ b/docs/resources/source_jira.md @@ -16,25 +16,19 @@ SourceJira Resource resource "airbyte_source_jira" "my_source_jira" { configuration = { api_token = "...my_api_token..." - domain = "jira..com" - email = "Hayley_Rohan@hotmail.com" - enable_experimental_streams = false - expand_issue_changelog = true - expand_issue_transition = true - issues_stream_expand_with = [ - "transitions", - ] - lookback_window_minutes = 60 + domain = ".jira.com" + email = "Jeramie79@gmail.com" + enable_experimental_streams = true + lookback_window_minutes = 60 projects = [ "...", ] - render_fields = false - start_date = "2021-03-01T00:00:00Z" + start_date = "2021-03-01T00:00:00Z" } - definition_id = "2eafdc45-3fb6-4a01-92c4-47712b4a0208" - name = "Lee Aufderhar" + definition_id = "8014d1f2-6365-41b7-bf9f-e0e5e5f386d0" + name = "Leland Herzog" secret_id = "...my_secret_id..." - workspace_id = "beffb8d9-7651-4059-b440-a5f2f61a4e46" + workspace_id = "3c6558d9-b03d-425b-ae3d-badc477cb62b" } ``` @@ -69,12 +63,8 @@ Required: Optional: - `enable_experimental_streams` (Boolean) Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. Default: false -- `expand_issue_changelog` (Boolean) (DEPRECATED) Expand the changelog when replicating issues. Default: false -- `expand_issue_transition` (Boolean) (DEPRECATED) Expand the transitions when replicating issues. Default: false -- `issues_stream_expand_with` (List of String) Select fields to Expand the `Issues` stream when replicating with: - `lookback_window_minutes` (Number) When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. Default: 0 - `projects` (List of String) List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. -- `render_fields` (Boolean) (DEPRECATED) Render issue fields in HTML format in addition to Jira JSON-like format. Default: false - `start_date` (String) The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the documentation. ## Import diff --git a/docs/resources/source_jotform.md b/docs/resources/source_jotform.md new file mode 100644 index 000000000..52db67174 --- /dev/null +++ b/docs/resources/source_jotform.md @@ -0,0 +1,92 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_jotform Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceJotform Resource +--- + +# airbyte_source_jotform (Resource) + +SourceJotform Resource + +## Example Usage + +```terraform +resource "airbyte_source_jotform" "my_source_jotform" { + configuration = { + api_endpoint = { + basic = { + url_prefix = "EU" + } + } + api_key = "...my_api_key..." + end_date = "2021-08-10T17:15:31.398Z" + start_date = "2021-02-10T10:54:29.564Z" + } + definition_id = "1ee42495-78a5-4bcb-bc2c-b83b2c4dd4d4" + name = "Ada Bartell" + secret_id = "...my_secret_id..." + workspace_id = "41ee0bba-b045-47d9-a639-8e6ecd841e72" +} +``` + + +## 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_endpoint` (Attributes) (see [below for nested schema](#nestedatt--configuration--api_endpoint)) +- `api_key` (String, Sensitive) +- `end_date` (String) +- `start_date` (String) + + +### Nested Schema for `configuration.api_endpoint` + +Optional: + +- `basic` (Attributes) (see [below for nested schema](#nestedatt--configuration--api_endpoint--basic)) +- `enterprise` (Attributes) (see [below for nested schema](#nestedatt--configuration--api_endpoint--enterprise)) + + +### Nested Schema for `configuration.api_endpoint.basic` + +Optional: + +- `url_prefix` (String) You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com). must be one of ["Standard", "EU", "HIPAA"]; Default: "Standard" + + + +### Nested Schema for `configuration.api_endpoint.enterprise` + +Required: + +- `enterprise_url` (String) Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_jotform.my_airbyte_source_jotform "" +``` diff --git a/docs/resources/source_k6_cloud.md b/docs/resources/source_k6_cloud.md index 80e731695..c9775757f 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 = "6849f7bb-eaae-4f52-8043-cb4c473e8c7b" - name = "Mrs. Bill Mosciski IV" + definition_id = "a766a686-faa5-412d-8044-b05c5b711236" + name = "Elsa Cole" secret_id = "...my_secret_id..." - workspace_id = "4a553fda-41da-4f76-a6ef-51c5fa52e0c6" + workspace_id = "47b86cde-c1a2-4bc2-b81e-45e3ceb6c910" } ``` diff --git a/docs/resources/source_klarna.md b/docs/resources/source_klarna.md index 85f38ec9a..f3dffda38 100644 --- a/docs/resources/source_klarna.md +++ b/docs/resources/source_klarna.md @@ -16,14 +16,14 @@ SourceKlarna Resource resource "airbyte_source_klarna" "my_source_klarna" { configuration = { password = "...my_password..." - playground = true - region = "eu" - username = "Orland.Schmeler" + playground = false + region = "oc" + username = "Lauren_Haley" } - definition_id = "e76e9fde-f541-4f06-8a13-b1e89c1488fa" - name = "Dr. Randall Casper" + definition_id = "6cb5f3bc-4b32-453e-abd5-91e25444d223" + name = "Dr. Dixie Strosin" secret_id = "...my_secret_id..." - workspace_id = "d922269c-9d64-48f0-bccd-d2e95af6ed3c" + workspace_id = "ea1c7d43-320f-4ac9-81a8-dab7e73a5971" } ``` diff --git a/docs/resources/source_klaviyo.md b/docs/resources/source_klaviyo.md index 8623d5bb7..f3e734057 100644 --- a/docs/resources/source_klaviyo.md +++ b/docs/resources/source_klaviyo.md @@ -16,13 +16,13 @@ SourceKlaviyo Resource resource "airbyte_source_klaviyo" "my_source_klaviyo" { configuration = { api_key = "...my_api_key..." - disable_fetching_predictive_analytics = true + disable_fetching_predictive_analytics = false start_date = "2017-01-25T00:00:00Z" } - definition_id = "14160113-c2d3-4cb5-aaa6-4b86a42dbbb8" - name = "Rosa VonRueden" + definition_id = "e4dc1f63-3abc-458a-942d-517fc88bc499" + name = "Al Kling" secret_id = "...my_secret_id..." - workspace_id = "b5e6a18b-0d79-4003-9e8d-a443bfaadd29" + workspace_id = "fedea337-d55b-4155-98db-92c72d541f53" } ``` diff --git a/docs/resources/source_kyve.md b/docs/resources/source_kyve.md index eafa52138..5e303a5f8 100644 --- a/docs/resources/source_kyve.md +++ b/docs/resources/source_kyve.md @@ -15,16 +15,14 @@ SourceKyve Resource ```terraform resource "airbyte_source_kyve" "my_source_kyve" { configuration = { - max_pages = 7 - page_size = 4 pool_ids = "0,1" start_ids = "0,0" - url_base = "https://api.korellia.kyve.network/" + url_base = "https://api.kaon.kyve.network/" } - definition_id = "6cb6bf32-faf8-425b-aa4e-c87aaffeb9ea" - name = "Geneva Abshire" + definition_id = "8a50561c-1cc6-4291-a1ad-7b3d761e29ef" + name = "Natalie Murphy IV" secret_id = "...my_secret_id..." - workspace_id = "e9f4166b-42b6-49c6-9d27-bbad3f0bf8ca" + workspace_id = "d2b59ab5-6edb-457c-800c-cdeed12bd5eb" } ``` @@ -57,8 +55,6 @@ Required: Optional: -- `max_pages` (Number) The maximum amount of pages to go trough. Set to 'null' for all pages. -- `page_size` (Number) The pagesize for pagination, smaller numbers are used in integration tests. Default: 100 - `url_base` (String) URL to the KYVE Chain API. Default: "https://api.kyve.network" ## Import diff --git a/docs/resources/source_launchdarkly.md b/docs/resources/source_launchdarkly.md index 0ff37e564..19282d8bc 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 = "743bfb15-06e5-4d6d-ab8b-49c82f283fdf" - name = "Yvette Effertz MD" + definition_id = "73d022a6-0873-47f9-b9cf-17c9c1c91886" + name = "Dr. Sheryl Anderson" secret_id = "...my_secret_id..." - workspace_id = "3ef9cacc-879b-4a7a-8016-47dc7c271c50" + workspace_id = "c35041fc-dcac-4222-a2ef-24d92369b1ff" } ``` diff --git a/docs/resources/source_leadfeeder.md b/docs/resources/source_leadfeeder.md index fcf39233a..2664f980a 100644 --- a/docs/resources/source_leadfeeder.md +++ b/docs/resources/source_leadfeeder.md @@ -16,12 +16,12 @@ SourceLeadfeeder Resource resource "airbyte_source_leadfeeder" "my_source_leadfeeder" { configuration = { api_token = "...my_api_token..." - start_date = "2022-09-13T08:51:10.446Z" + start_date = "2022-05-11T13:38:36.742Z" } - definition_id = "a25a4f7e-4eab-4e3a-9776-8e79345d1446" - name = "Ruth Dooley IV" + definition_id = "7ba288f1-0a06-435f-b19f-388685d8941e" + name = "Ms. Hope Rogahn" secret_id = "...my_secret_id..." - workspace_id = "f29cf10b-0742-4b93-b499-111a320ccad5" + workspace_id = "3f94739c-c80e-4e5b-b122-5778f7a023c1" } ``` diff --git a/docs/resources/source_lemlist.md b/docs/resources/source_lemlist.md index 38c4a1f37..b13c22ad0 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 = "adc1330e-f574-4883-95b5-ae0423a6249a" - name = "Gloria Green" + definition_id = "e08d80f6-94c4-48e9-90f8-4ccbad71dab0" + name = "Mrs. Vickie Barrows" secret_id = "...my_secret_id..." - workspace_id = "5fa2ea25-a51d-4762-ae38-9cc4200a4abb" + workspace_id = "124b6e7b-2083-4a37-b0c9-92762a38aa73" } ``` diff --git a/docs/resources/source_lever_hiring.md b/docs/resources/source_lever_hiring.md index d3c93e5d5..d9ebebcb0 100644 --- a/docs/resources/source_lever_hiring.md +++ b/docs/resources/source_lever_hiring.md @@ -20,13 +20,13 @@ resource "airbyte_source_lever_hiring" "my_source_leverhiring" { api_key = "...my_api_key..." } } - environment = "Production" + environment = "Sandbox" start_date = "2021-03-01T00:00:00Z" } - definition_id = "299a611c-c7be-43e8-ba71-88dc05c92c20" - name = "Linda White" + definition_id = "79a85cb7-2465-4180-a161-9872363e09a2" + name = "Homer Tremblay" secret_id = "...my_secret_id..." - workspace_id = "2ba7d43d-20d3-4384-a15e-d53522788fae" + workspace_id = "d9d77025-755e-4699-9c57-652df199422b" } ``` diff --git a/docs/resources/source_linkedin_ads.md b/docs/resources/source_linkedin_ads.md index 3e27950b9..494e1a50e 100644 --- a/docs/resources/source_linkedin_ads.md +++ b/docs/resources/source_linkedin_ads.md @@ -16,13 +16,13 @@ SourceLinkedinAds Resource resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { configuration = { account_ids = [ - 6, + 2, ] ad_analytics_reports = [ { - name = "Orlando Schuppe" - pivot_by = "MEMBER_INDUSTRY" - time_granularity = "ALL" + name = "Kathy Muller" + pivot_by = "CONVERSATION_NODE_OPTION_INDEX" + time_granularity = "MONTHLY" }, ] credentials = { @@ -30,12 +30,13 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { access_token = "...my_access_token..." } } - start_date = "2021-05-17" + lookback_window = 5 + start_date = "2021-05-17" } - definition_id = "72879b60-69b6-4a28-9f31-96ea9203cb78" - name = "Kristen Toy" + definition_id = "dbfafbdd-349a-4fd0-8d95-bcfe3342dc40" + name = "Kristi Tromp" secret_id = "...my_secret_id..." - workspace_id = "a531f3b4-802a-43b9-9674-976dbe116c78" + workspace_id = "1635af9f-94f9-485a-a22e-677c77be4e42" } ``` @@ -70,6 +71,7 @@ Optional: - `account_ids` (List of Number) Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want to pull the data from all accounts accessible by the authenticated user. See the LinkedIn docs to locate these IDs. - `ad_analytics_reports` (Attributes List) (see [below for nested schema](#nestedatt--configuration--ad_analytics_reports)) - `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials)) +- `lookback_window` (Number) How far into the past to look for records. (in days). Default: 0 ### Nested Schema for `configuration.ad_analytics_reports` diff --git a/docs/resources/source_linkedin_pages.md b/docs/resources/source_linkedin_pages.md index 3a4d08bda..d2ce26bae 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-11-26T15:57:22.522Z" - time_granularity_type = "DAY" + start_date = "2022-09-30T20:13:15.681Z" + time_granularity_type = "MONTH" } - definition_id = "c70bfb32-667c-447d-9036-16107c03f839" - name = "Donna Jerde" + definition_id = "41ce525b-4893-4048-a9c1-af9961b1c883" + name = "Clyde King" secret_id = "...my_secret_id..." - workspace_id = "c9db1c42-6709-4282-b0b3-08e78729ff50" + workspace_id = "12d8f3b6-433c-4b82-b32a-d03fd9a9d8ba" } ``` diff --git a/docs/resources/source_linnworks.md b/docs/resources/source_linnworks.md index db8e0e3a3..400413e24 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 = "2022-09-29T12:33:06.148Z" + start_date = "2021-08-06T10:11:21.935Z" token = "...my_token..." } - definition_id = "b690b273-6f2f-47a3-b95d-4abcb3edfbba" - name = "Franklin O'Reilly PhD" + definition_id = "0df86503-c474-43ee-b9bd-13e204659bbd" + name = "Vernon Huels DVM" secret_id = "...my_secret_id..." - workspace_id = "44a4dc97-0c07-4857-ba20-ac990f9b2ce7" + workspace_id = "2e20259c-6b13-4998-93fc-5430ae066d4a" } ``` diff --git a/docs/resources/source_lokalise.md b/docs/resources/source_lokalise.md index d81e99884..15b5488b7 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 = "a67a8515-0ea8-4612-8cd6-18d742806812" - name = "Luke King" + definition_id = "91bbbc35-ba89-42b6-9580-5ab7b9331a5d" + name = "Pablo Wisozk" secret_id = "...my_secret_id..." - workspace_id = "69526155-53a7-4134-98a3-f9799a12d6e3" + workspace_id = "6ab5ec8c-aacd-48d2-abfd-c0f33811ddad" } ``` diff --git a/docs/resources/source_looker.md b/docs/resources/source_looker.md index 777ad2f69..2fef2488a 100644 --- a/docs/resources/source_looker.md +++ b/docs/resources/source_looker.md @@ -17,15 +17,15 @@ resource "airbyte_source_looker" "my_source_looker" { configuration = { client_id = "...my_client_id..." client_secret = "...my_client_secret..." - domain = "domainname.looker.com" + domain = "looker.clientname.com" run_look_ids = [ "...", ] } - definition_id = "e66d700d-4772-4456-90d2-6d9147bb3566" - name = "Cameron Howe" + definition_id = "d79aa2af-68e0-40dc-9add-47961168b4fa" + name = "Rose Jakubowski" secret_id = "...my_secret_id..." - workspace_id = "ba4f7aab-a257-4841-81a2-1c8938ad6fcb" + workspace_id = "2a48f976-dd11-4df0-9849-375f6227890d" } ``` diff --git a/docs/resources/source_luma.md b/docs/resources/source_luma.md index 758b41b6d..08d713451 100644 --- a/docs/resources/source_luma.md +++ b/docs/resources/source_luma.md @@ -17,10 +17,10 @@ resource "airbyte_source_luma" "my_source_luma" { configuration = { api_key = "...my_api_key..." } - definition_id = "b78bed98-212c-4704-ae19-387527d5e3ef" - name = "Sara Gibson" + definition_id = "41f13919-c925-4e38-a517-a80112166a5e" + name = "Kyle Jones" secret_id = "...my_secret_id..." - workspace_id = "0c0b7968-b724-4213-bfe2-e9e26c4c104f" + workspace_id = "bce2e77b-bcce-4f58-8ac5-48be8a7a9dbf" } ``` diff --git a/docs/resources/source_mailchimp.md b/docs/resources/source_mailchimp.md index 0bdc58aaa..c784221db 100644 --- a/docs/resources/source_mailchimp.md +++ b/docs/resources/source_mailchimp.md @@ -20,13 +20,12 @@ resource "airbyte_source_mailchimp" "my_source_mailchimp" { apikey = "...my_apikey..." } } - data_center = "...my_data_center..." - start_date = "2020-01-01T00:00:00.000Z" + start_date = "2020-01-01T00:00:00.000Z" } - definition_id = "be3b1f29-0447-4757-b847-65c77418014d" - name = "Tabitha D'Amore" + definition_id = "c79293e2-8aa8-4190-b348-b38fe3b52011" + name = "Ms. Beatrice Ratke" secret_id = "...my_secret_id..." - workspace_id = "651b77f9-fe0e-45e5-b386-d0ac5af3c655" + workspace_id = "52a784d2-d0f1-4707-875e-2d6a49780ba1" } ``` @@ -55,7 +54,6 @@ resource "airbyte_source_mailchimp" "my_source_mailchimp" { Optional: - `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials)) -- `data_center` (String) Technical fields used to identify datacenter to send request to - `start_date` (String) The date from which you want to start syncing data for Incremental streams. Only records that have been created or modified since this date will be synced. If left blank, all data will by synced. diff --git a/docs/resources/source_mailgun.md b/docs/resources/source_mailgun.md index 22707ac13..9379d6987 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 = "b03d25be-e3db-4adc-877c-b62b59b9f1ee" - name = "Wanda Greenfelder" + definition_id = "28c6eefe-59b7-42db-a240-7ce310da7633" + name = "Samantha Becker" secret_id = "...my_secret_id..." - workspace_id = "78a5bcbb-c2cb-483b-ac4d-d4d42907741e" + workspace_id = "fec241f7-3646-4e1c-8795-83a59a825531" } ``` diff --git a/docs/resources/source_mailjet_sms.md b/docs/resources/source_mailjet_sms.md index c64c343c0..9c69e7a16 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 = "bbab0457-d926-4398-a6ec-d841e72a766a" - name = "Cassandra Hoppe" + definition_id = "40178456-a4c1-4173-9e2c-277a8e2388fd" + name = "Dr. Martha Cummings" secret_id = "...my_secret_id..." - workspace_id = "a512d804-4b05-4c5b-b112-361f26d47b86" + workspace_id = "2c51a267-6b4d-4928-aad1-9d25d5253fa0" } ``` diff --git a/docs/resources/source_marketo.md b/docs/resources/source_marketo.md index 0460a9c39..ac8037db7 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 = "ec1a2bc2-b81e-445e-bceb-6c910dc95a96" - name = "Marco Hermann" + definition_id = "f008f118-d815-472f-b24d-1e0e7e708b9f" + name = "Ralph Hermiston" secret_id = "...my_secret_id..." - workspace_id = "bc4b3253-e6bd-4591-a254-44d2234fd1d8" + workspace_id = "9f1370c2-8b27-48d2-9e4e-e4a51abe7bbe" } ``` diff --git a/docs/resources/source_metabase.md b/docs/resources/source_metabase.md index 13d7b3962..d52b9d45c 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 = "Shaniya80" + username = "Dudley_Weber" } - definition_id = "7d43320f-ac9c-41a8-9ab7-e73a5971814e" - name = "Dr. Muriel Ryan" + definition_id = "a5f867ba-5cf8-4db4-8a2c-c4047b120c3e" + name = "Clark Bogan" secret_id = "...my_secret_id..." - workspace_id = "33abc58a-542d-4517-bc88-bc4998d75efe" + workspace_id = "8e983f33-bbc2-4f8e-b5b9-5ee5dd11c77a" } ``` diff --git a/docs/resources/source_microsoft_onedrive.md b/docs/resources/source_microsoft_onedrive.md index 52d335e24..7ecd9ef44 100644 --- a/docs/resources/source_microsoft_onedrive.md +++ b/docs/resources/source_microsoft_onedrive.md @@ -25,11 +25,11 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { } drive_name = "...my_drive_name..." folder_path = "...my_folder_path..." - search_scope = "ALL" + search_scope = "ACCESSIBLE_DRIVES" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 2 + days_to_sync_if_history_is_full = 7 format = { avro_format = { double_as_string = false @@ -39,17 +39,16 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { "...", ] input_schema = "...my_input_schema..." - name = "Krystal Hamill" - primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Emit Record" + name = "Nadine Breitenberg" + schemaless = false + validation_policy = "Wait for Discover" }, ] } - definition_id = "598db92c-72d5-441f-9389-28a50561c1cc" - name = "Miss Judith McGlynn MD" + definition_id = "cd7d939b-8b6b-42c0-920a-a8be08607521" + name = "Alan Brekke" secret_id = "...my_secret_id..." - workspace_id = "d7b3d761-e29e-4f26-ae07-d2b59ab56edb" + workspace_id = "9bc9d1c8-8f1e-4e12-b8a7-db098a741266" } ``` @@ -134,7 +133,6 @@ 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) 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_microsoft_sharepoint.md b/docs/resources/source_microsoft_sharepoint.md index 775df8f11..06e982392 100644 --- a/docs/resources/source_microsoft_sharepoint.md +++ b/docs/resources/source_microsoft_sharepoint.md @@ -24,32 +24,31 @@ resource "airbyte_source_microsoft_sharepoint" "my_source_microsoftsharepoint" { } } folder_path = "...my_folder_path..." - search_scope = "SHARED_ITEMS" + search_scope = "ALL" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 0 + days_to_sync_if_history_is_full = 9 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] input_schema = "...my_input_schema..." - name = "Rosalie Schmitt" - primary_key = "...my_primary_key..." - recent_n_files_to_read_for_schema_discovery = 9 + name = "Jeremiah Bechtelar" + recent_n_files_to_read_for_schema_discovery = 10 schemaless = false - validation_policy = "Emit Record" + validation_policy = "Wait for Discover" }, ] } - definition_id = "2bd5eb73-d022-4a60-8737-f9f9cf17c9c1" - name = "Jackie Bergstrom" + definition_id = "67bbea9f-5a35-4d1b-90fb-6321f6b4ca64" + name = "Beverly Ondricka" secret_id = "...my_secret_id..." - workspace_id = "61900dfc-3504-41fc-9cac-22262ef24d92" + workspace_id = "8aec8fed-b8fc-4353-a7bf-ee523e36b74e" } ``` @@ -136,7 +135,6 @@ 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) 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" diff --git a/docs/resources/source_microsoft_teams.md b/docs/resources/source_microsoft_teams.md index 6613a1954..da6f35832 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 = "369b1ff5-a7ba-4288-b10a-0635ff19f388" - name = "Margie Heidenreich" + definition_id = "8f7b837d-76b0-42a3-9797-c2fd02395071" + name = "Ms. Melody Dach" secret_id = "...my_secret_id..." - workspace_id = "941e7db0-723f-4947-b9cc-80ee5b712257" + workspace_id = "8fda8b48-bf3f-40e9-a31e-bcafaa2ee7a1" } ``` diff --git a/docs/resources/source_mixpanel.md b/docs/resources/source_mixpanel.md index f5a19a8fa..64d23afdb 100644 --- a/docs/resources/source_mixpanel.md +++ b/docs/resources/source_mixpanel.md @@ -15,24 +15,24 @@ SourceMixpanel Resource ```terraform resource "airbyte_source_mixpanel" "my_source_mixpanel" { configuration = { - attribution_window = 5 + attribution_window = 9 credentials = { project_secret = { api_secret = "...my_api_secret..." } } - date_window_size = 5 + date_window_size = 0 end_date = "2021-11-16" - page_size = 6 + page_size = 4 project_timezone = "US/Pacific" - region = "US" + region = "EU" select_properties_by_default = false start_date = "2021-11-16" } - definition_id = "e08d80f6-94c4-48e9-90f8-4ccbad71dab0" - name = "Mrs. Vickie Barrows" + definition_id = "5b91e126-100f-409e-b706-bb016ea0ac6b" + name = "Alfonso Turcotte" secret_id = "...my_secret_id..." - workspace_id = "124b6e7b-2083-4a37-b0c9-92762a38aa73" + workspace_id = "40c173d4-d611-433d-9b2a-95937ced0062" } ``` diff --git a/docs/resources/source_monday.md b/docs/resources/source_monday.md index 3182fff78..412547eaf 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 = "d79a85cb-7246-4518-8216-19872363e09a" - name = "Monique Nitzsche" + definition_id = "e7b59a4e-7815-42cb-9266-e4c12d05e7f5" + name = "Drew Gerlach III" secret_id = "...my_secret_id..." - workspace_id = "2d9d7702-5755-4e69-95c5-7652df199422" + workspace_id = "25cbff5b-31f2-4b93-84d3-ebf32902de61" } ``` diff --git a/docs/resources/source_mongodb_v2.md b/docs/resources/source_mongodb_v2.md index f7ad4159c..7f8328848 100644 --- a/docs/resources/source_mongodb_v2.md +++ b/docs/resources/source_mongodb_v2.md @@ -23,20 +23,20 @@ resource "airbyte_source_mongodb_v2" "my_source_mongodbv2" { database = "...my_database..." password = "...my_password..." schema_enforced = false - username = "Cole62" + username = "Austin_Blanda50" } } discover_sample_size = 6 - initial_load_timeout_hours = 5 - initial_waiting_seconds = 4 - invalid_cdc_cursor_position_behavior = "Re-sync data" - queue_size = 5 - update_capture_mode = "Lookup" + initial_load_timeout_hours = 1 + initial_waiting_seconds = 6 + invalid_cdc_cursor_position_behavior = "Fail sync" + queue_size = 3 + update_capture_mode = "Post Image" } - definition_id = "1dbfafbd-d349-4afd-8cd9-5bcfe3342dc4" - name = "Anne Nienow" + definition_id = "e80aa298-0d84-4713-abef-014dd9af7c7e" + name = "Cedric Fritsch" secret_id = "...my_secret_id..." - workspace_id = "61635af9-f94f-4985-aa22-e677c77be4e4" + workspace_id = "09ea52c7-07cb-405c-8a8d-21cf34658e52" } ``` diff --git a/docs/resources/source_mssql.md b/docs/resources/source_mssql.md index 2591f8323..d41a374d2 100644 --- a/docs/resources/source_mssql.md +++ b/docs/resources/source_mssql.md @@ -22,9 +22,9 @@ resource "airbyte_source_mssql" "my_source_mssql" { port = 1433 replication_method = { read_changes_using_change_data_capture_cdc = { - initial_load_timeout_hours = 3 - initial_waiting_seconds = 2 - invalid_cdc_cursor_position_behavior = "Re-sync data" + initial_load_timeout_hours = 10 + initial_waiting_seconds = 5 + invalid_cdc_cursor_position_behavior = "Fail sync" queue_size = 3 } } @@ -37,12 +37,12 @@ resource "airbyte_source_mssql" "my_source_mssql" { tunnel_method = { no_tunnel = {} } - username = "Ayden.Sanford17" + username = "Marjorie.Herzog" } - definition_id = "5b489304-8e9c-41af-9961-b1c883a57271" - name = "Kari Lemke" + definition_id = "309cc0ee-4bba-47fa-ad57-2054daa84a4e" + name = "Tracey Wolf" secret_id = "...my_secret_id..." - workspace_id = "b6433cb8-2b32-4ad0-bfd9-a9d8ba9b0df8" + workspace_id = "10a8a64b-77a4-4fe6-b039-288c95001e51" } ``` diff --git a/docs/resources/source_my_hours.md b/docs/resources/source_my_hours.md index f59a21a17..1b6c89d17 100644 --- a/docs/resources/source_my_hours.md +++ b/docs/resources/source_my_hours.md @@ -20,10 +20,10 @@ resource "airbyte_source_my_hours" "my_source_myhours" { password = "...my_password..." start_date = "%Y-%m-%d" } - definition_id = "43ee79bd-13e2-4046-99bb-dc56c2f2e202" - name = "Lindsey Schinner" + definition_id = "22a67dad-65e8-4ae1-9217-c0fcbe7d2d34" + name = "Connie Treutel" secret_id = "...my_secret_id..." - workspace_id = "13998d3f-c543-40ae-866d-4a91bbbc35ba" + workspace_id = "62799cad-5c4b-4833-869d-3410e395a0aa" } ``` diff --git a/docs/resources/source_mysql.md b/docs/resources/source_mysql.md index 4ede9c49d..b14b8d421 100644 --- a/docs/resources/source_mysql.md +++ b/docs/resources/source_mysql.md @@ -22,24 +22,25 @@ resource "airbyte_source_mysql" "my_source_mysql" { port = 3306 replication_method = { read_changes_using_binary_log_cdc = { - initial_load_timeout_hours = 6 - initial_waiting_seconds = 1 + initial_load_timeout_hours = 3 + initial_waiting_seconds = 3 invalid_cdc_cursor_position_behavior = "Re-sync data" server_time_zone = "...my_server_time_zone..." } } + ssl = false ssl_mode = { preferred = {} } tunnel_method = { no_tunnel = {} } - username = "Harrison_Steuber" + username = "Leann60" } - definition_id = "05ab7b93-31a5-4dda-bad6-ab5ec8caacd8" - name = "Victor Pacocha" + definition_id = "78821427-992f-465a-b105-f2e570ad372e" + name = "Tomas Buckridge" secret_id = "...my_secret_id..." - workspace_id = "dc0f3381-1dda-4d7d-b9aa-2af68e00dcda" + workspace_id = "9d484141-0fd6-4e7e-8488-16b0c62b8975" } ``` @@ -77,6 +78,7 @@ Optional: - `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). For more information read about JDBC URL parameters. - `password` (String, Sensitive) The password associated with the username. - `port` (Number) The port to connect to. Default: 3306 +- `ssl` (Boolean) Encrypt data using SSL. Default: true - `ssl_mode` (Attributes) SSL connection modes. Read more in the docs. (see [below for nested schema](#nestedatt--configuration--ssl_mode)) - `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method)) diff --git a/docs/resources/source_netsuite.md b/docs/resources/source_netsuite.md index 1b3951df4..05206e7af 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 = 9 + window_in_days = 1 } - definition_id = "d4796116-8b4f-4a72-a2d2-a48f976dd11d" - name = "Brian Marvin" + definition_id = "47c3e6c8-bd1c-4cca-93b1-c40652931936" + name = "Patsy Rowe" secret_id = "...my_secret_id..." - workspace_id = "9375f622-7890-4d41-b139-19c925e38651" + workspace_id = "83b58652-384b-4db8-a1f9-c8efa40dc207" } ``` diff --git a/docs/resources/source_northpass_lms.md b/docs/resources/source_northpass_lms.md index ecc614db2..28805aa32 100644 --- a/docs/resources/source_northpass_lms.md +++ b/docs/resources/source_northpass_lms.md @@ -17,10 +17,10 @@ resource "airbyte_source_northpass_lms" "my_source_northpasslms" { configuration = { api_key = "...my_api_key..." } - definition_id = "7a801121-66a5-4ec4-af2b-ce2e77bbccef" - name = "Jennie Leuschke" + definition_id = "c50e6f12-11e1-4fcb-a6b9-0cc0df941919" + name = "Eduardo Collier" secret_id = "...my_secret_id..." - workspace_id = "548be8a7-a9db-4f52-8792-93e28aa81903" + workspace_id = "09c167af-7bc3-44c4-a3b8-38dc5f976535" } ``` diff --git a/docs/resources/source_notion.md b/docs/resources/source_notion.md index cecabcfe1..ae8eafdee 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 = "8b38fe3b-5201-4125-b292-52a784d2d0f1" - name = "Sharon Koss" + definition_id = "3a45535f-ff5d-41d3-8f0c-ce5486a3a161" + name = "Simon Hansen" secret_id = "...my_secret_id..." - workspace_id = "5e2d6a49-780b-4a1d-aa28-c6eefe59b72d" + workspace_id = "64148acb-8b41-4d5b-b94a-01397d3dfd90" } ``` diff --git a/docs/resources/source_nylas.md b/docs/resources/source_nylas.md new file mode 100644 index 000000000..ab4ea4767 --- /dev/null +++ b/docs/resources/source_nylas.md @@ -0,0 +1,65 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_nylas Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceNylas Resource +--- + +# airbyte_source_nylas (Resource) + +SourceNylas Resource + +## Example Usage + +```terraform +resource "airbyte_source_nylas" "my_source_nylas" { + configuration = { + api_key = "...my_api_key..." + api_server = "eu" + end_date = "2020-02-11T09:20:19.816Z" + start_date = "2022-07-25T10:39:24.379Z" + } + definition_id = "0497cb97-4a7d-4800-9cbe-4b7daa2d7b02" + name = "Miss Veronica Hilll" + secret_id = "...my_secret_id..." + workspace_id = "da4df01c-f56e-4e29-8adb-c5bd340789cf" +} +``` + + +## 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) +- `api_server` (String) must be one of ["us", "eu"] +- `end_date` (String) +- `start_date` (String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_nylas.my_airbyte_source_nylas "" +``` diff --git a/docs/resources/source_nytimes.md b/docs/resources/source_nytimes.md index fd95b563f..a2b0d356d 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 = "1851-01" - period = "1" + end_date = "2022-08" + period = "30" share_type = "facebook" - start_date = "2022-08" + start_date = "1851-01" } - definition_id = "407ce310-da76-4331-90ac-fec241f73646" - name = "Albert Ryan" + definition_id = "d2c04124-4365-469f-964c-d2bcf08a635d" + name = "Molly Lindgren" secret_id = "...my_secret_id..." - workspace_id = "9583a59a-8255-4310-9401-78456a4c1173" + workspace_id = "86ceccfa-e93f-47f0-b8c4-b4f8d4f6833e" } ``` diff --git a/docs/resources/source_okta.md b/docs/resources/source_okta.md index 52acb1578..af21f2f13 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 = "2c277a8e-2388-4fd0-920f-62c51a2676b4" - name = "Sergio Crooks" + definition_id = "3303ab04-5c89-41fe-9c8d-cb6cc1cd73d2" + name = "Mr. Jerald Gorczany" secret_id = "...my_secret_id..." - workspace_id = "ad19d25d-5253-4fa0-aef0-08f118d81572" + workspace_id = "6d5989e7-dbac-4e40-85a6-307276c58b5d" } ``` diff --git a/docs/resources/source_omnisend.md b/docs/resources/source_omnisend.md index f0de1f8ac..d1be29ac2 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 = "f724d1e0-e7e7-408b-9f81-5bf9f1370c28" - name = "Wayne Klein" + definition_id = "a21f7398-6a71-4e99-ac2b-81056bc977a3" + name = "Cary Graham" secret_id = "...my_secret_id..." - workspace_id = "25e4ee4a-51ab-4e7b-be4e-8da5f867ba5c" + workspace_id = "f8dd835d-8042-47d2-ba4e-1d8c723c8e5e" } ``` diff --git a/docs/resources/source_onesignal.md b/docs/resources/source_onesignal.md index 180a19106..e4cc34c6d 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 = "db48a2cc-4047-4b12-8c3e-cc1558e983f3" - name = "Patty Powlowski" + definition_id = "9fe4ef64-9387-45b5-a324-c6128aabbad0" + name = "Ethel Abernathy" secret_id = "...my_secret_id..." - workspace_id = "f8e75b95-ee5d-4d11-877a-4e3aa4d1c74f" + workspace_id = "2c3e8228-2510-41e3-a25c-69948d038885" } ``` diff --git a/docs/resources/source_oracle.md b/docs/resources/source_oracle.md index 4735f9219..6cb8a7693 100644 --- a/docs/resources/source_oracle.md +++ b/docs/resources/source_oracle.md @@ -22,25 +22,25 @@ resource "airbyte_source_oracle" "my_source_oracle" { } encryption = { native_network_encryption_nne = { - encryption_algorithm = "3DES168" + encryption_algorithm = "AES256" } } host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." - port = 9 + port = 10 schemas = [ "...", ] tunnel_method = { no_tunnel = {} } - username = "Jammie.Steuber" + username = "Nicole_Abernathy" } - definition_id = "9b8b6b2c-0920-4aa8-be08-607521b21ea9" - name = "Edmund Mraz DDS" + definition_id = "d3b8cc64-e95a-47a3-a92d-b06d3b499dcb" + name = "Oliver Torp" secret_id = "...my_secret_id..." - workspace_id = "88f1ee12-f8a7-4db0-98a7-41266a87d389" + workspace_id = "afcb0631-8407-4294-84d2-b8965caababe" } ``` @@ -68,13 +68,13 @@ resource "airbyte_source_oracle" "my_source_oracle" { Required: -- `encryption` (Attributes) The encryption method with is used when communicating with the database. (see [below for nested schema](#nestedatt--configuration--encryption)) - `host` (String) Hostname of the database. - `username` (String) The username which is used to access the database. Optional: - `connection_data` (Attributes) Connect data that will be used for DB connection (see [below for nested schema](#nestedatt--configuration--connection_data)) +- `encryption` (Attributes) The encryption method with is used when communicating with the database. (see [below for nested schema](#nestedatt--configuration--encryption)) - `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). - `password` (String, Sensitive) The password associated with the username. - `port` (Number) Port of the database. @@ -85,53 +85,58 @@ Default: 1521 - `schemas` (List of String) The list of schemas to sync from. Defaults to user. Case sensitive. - `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method)) - -### Nested Schema for `configuration.encryption` + +### Nested Schema for `configuration.connection_data` Optional: -- `native_network_encryption_nne` (Attributes) The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. (see [below for nested schema](#nestedatt--configuration--encryption--native_network_encryption_nne)) -- `tls_encrypted_verify_certificate` (Attributes) Verify and use the certificate provided by the server. (see [below for nested schema](#nestedatt--configuration--encryption--tls_encrypted_verify_certificate)) +- `service_name` (Attributes) Use service name (see [below for nested schema](#nestedatt--configuration--connection_data--service_name)) +- `system_idsid` (Attributes) Use SID (Oracle System Identifier) (see [below for nested schema](#nestedatt--configuration--connection_data--system_idsid)) - -### Nested Schema for `configuration.encryption.native_network_encryption_nne` + +### Nested Schema for `configuration.connection_data.service_name` -Optional: +Required: -- `encryption_algorithm` (String) This parameter defines what encryption algorithm is used. must be one of ["AES256", "RC4_56", "3DES168"]; Default: "AES256" +- `service_name` (String) - -### Nested Schema for `configuration.encryption.tls_encrypted_verify_certificate` + +### Nested Schema for `configuration.connection_data.system_idsid` Required: -- `ssl_certificate` (String, Sensitive) Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. +- `sid` (String) - -### Nested Schema for `configuration.connection_data` + +### Nested Schema for `configuration.encryption` Optional: -- `service_name` (Attributes) Use service name (see [below for nested schema](#nestedatt--configuration--connection_data--service_name)) -- `system_idsid` (Attributes) Use SID (Oracle System Identifier) (see [below for nested schema](#nestedatt--configuration--connection_data--system_idsid)) +- `native_network_encryption_nne` (Attributes) The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. (see [below for nested schema](#nestedatt--configuration--encryption--native_network_encryption_nne)) +- `tls_encrypted_verify_certificate` (Attributes) Verify and use the certificate provided by the server. (see [below for nested schema](#nestedatt--configuration--encryption--tls_encrypted_verify_certificate)) +- `unencrypted` (Attributes) Data transfer will not be encrypted. (see [below for nested schema](#nestedatt--configuration--encryption--unencrypted)) - -### Nested Schema for `configuration.connection_data.service_name` + +### Nested Schema for `configuration.encryption.native_network_encryption_nne` -Required: +Optional: -- `service_name` (String) +- `encryption_algorithm` (String) This parameter defines what encryption algorithm is used. must be one of ["AES256", "RC4_56", "3DES168"]; Default: "AES256" - -### Nested Schema for `configuration.connection_data.system_idsid` + +### Nested Schema for `configuration.encryption.tls_encrypted_verify_certificate` Required: -- `sid` (String) +- `ssl_certificate` (String, Sensitive) Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + + + +### Nested Schema for `configuration.encryption.unencrypted` diff --git a/docs/resources/source_orb.md b/docs/resources/source_orb.md index 9a8d2c2e5..eaccf0942 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 = 0 + lookback_window_days = 9 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 = "efa67bbe-a9f5-4a35-91bd-0fb6321f6b4c" - name = "Nathaniel Gorczany" + definition_id = "6378e724-3c02-41bc-873a-bf4dfebd414e" + name = "Mrs. Monique Jenkins" secret_id = "...my_secret_id..." - workspace_id = "a5f8aec8-fedb-48fc-b536-7bfee523e36b" + workspace_id = "6b3fca03-d92c-4b14-9102-64179a40301b" } ``` diff --git a/docs/resources/source_orbit.md b/docs/resources/source_orbit.md index c9d9309d2..2e2804bc7 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 = "74e8f7b8-37d7-46b0-aa3d-797c2fd02395" - name = "Glenda Boyer" + definition_id = "b87b13a4-3b1e-4ad7-83a4-eeb23fe55394" + name = "Shelia Hand" secret_id = "...my_secret_id..." - workspace_id = "206b8fda-8b48-4bf3-b0e9-631ebcafaa2e" + workspace_id = "6d0d2093-2d7e-488d-8619-ec39811786e4" } ``` diff --git a/docs/resources/source_outbrain_amplify.md b/docs/resources/source_outbrain_amplify.md index 68d37e477..17b4d58c7 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 = "subregion" - report_granularity = "weekly" + geo_location_breakdown = "country" + report_granularity = "monthly" start_date = "...my_start_date..." } - definition_id = "a1e0cb61-9709-45b9-9e12-6100f09eb706" - name = "Mrs. Randolph Aufderhar" + definition_id = "5272c209-71d5-444a-a5a7-d2b4609d4ec6" + name = "Melanie Kshlerin" secret_id = "...my_secret_id..." - workspace_id = "a0ac6bfa-e2b4-40c1-b3d4-d61133ddb2a9" + workspace_id = "68cce933-94d8-4a35-9b32-f900f8cfe737" } ``` diff --git a/docs/resources/source_outreach.md b/docs/resources/source_outreach.md index 2521d02ed..0d1a5bed9 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 = "5937ced0-062e-47b5-9a4e-78152cbd266e" - name = "Bernadette Carter" + definition_id = "8a587702-2972-4e23-bec3-d2ab4198d2ef" + name = "Gordon Vandervort" secret_id = "...my_secret_id..." - workspace_id = "05e7f58d-4a06-425c-bff5-b31f2b9304d3" + workspace_id = "c931e7a7-2ef9-4ee2-ac4d-080cde039dd5" } ``` diff --git a/docs/resources/source_paypal_transaction.md b/docs/resources/source_paypal_transaction.md index 7c07bf875..a0141a9a6 100644 --- a/docs/resources/source_paypal_transaction.md +++ b/docs/resources/source_paypal_transaction.md @@ -21,13 +21,13 @@ resource "airbyte_source_paypal_transaction" "my_source_paypaltransaction" { end_date = "2021-06-11T23:59:59+00:00" is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-06-11T23:59:59Z" + start_date = "2021-06-11T23:59:59+00:00" time_window = 9 } - definition_id = "61711be8-8292-44ee-80aa-2980d84713eb" - name = "Mrs. Darnell Adams" + definition_id = "10910de8-7dfe-4701-adbd-0d10cf57eb67" + name = "Melody Lowe" secret_id = "...my_secret_id..." - workspace_id = "d9af7c7e-9c46-4209-aa52-c707cb05c4a8" + workspace_id = "55d63fb2-a63d-4a09-97a6-151fac3e8ec6" } ``` diff --git a/docs/resources/source_paystack.md b/docs/resources/source_paystack.md index ef8498756..028d2ea85 100644 --- a/docs/resources/source_paystack.md +++ b/docs/resources/source_paystack.md @@ -15,14 +15,14 @@ SourcePaystack Resource ```terraform resource "airbyte_source_paystack" "my_source_paystack" { configuration = { - lookback_window_days = 9 + lookback_window_days = 6 secret_key = "...my_secret_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "cf34658e-520f-4854-a567-309cc0ee4bba" - name = "Shari Orn" + definition_id = "bb338974-cd0d-4539-af23-19a6f8898d74" + name = "Ron Runte III" secret_id = "...my_secret_id..." - workspace_id = "572054da-a84a-44e2-8fea-10a8a64b77a4" + workspace_id = "70b63c63-3751-4f6c-944c-20e73f23dc46" } ``` diff --git a/docs/resources/source_pendo.md b/docs/resources/source_pendo.md index 068ddda8c..07bf0b58c 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 = "fe630392-88c9-4500-9e51-5b2e740522a6" - name = "Angel Oberbrunner" + definition_id = "e62d66e7-2778-4d5d-b92d-16e1dcb06fc1" + name = "Ms. Tyrone Murphy DVM" secret_id = "...my_secret_id..." - workspace_id = "5e8ae1d2-17c0-4fcb-a7d2-d3433ea86279" + workspace_id = "7c1d8bfd-db09-4b9a-903f-60eb4a54b7cf" } ``` diff --git a/docs/resources/source_pennylane.md b/docs/resources/source_pennylane.md index a6099f3da..c5ba0bc7f 100644 --- a/docs/resources/source_pennylane.md +++ b/docs/resources/source_pennylane.md @@ -16,12 +16,12 @@ SourcePennylane Resource resource "airbyte_source_pennylane" "my_source_pennylane" { configuration = { api_key = "...my_api_key..." - start_time = "2021-06-24T10:30:39.947Z" + start_time = "2022-10-13T03:28:32.102Z" } - definition_id = "ad5c4b83-3469-4d34-90e3-95a0aac55dc9" - name = "Richard Moen" + definition_id = "3c55d68a-56e1-4f7b-90c6-dd1e62eb5fcf" + name = "Vicki Harris" secret_id = "...my_secret_id..." - workspace_id = "82142799-2f65-4a71-85f2-e570ad372ede" + workspace_id = "caec2ce4-1cbe-41d2-acd0-1501d52f6c56" } ``` diff --git a/docs/resources/source_persistiq.md b/docs/resources/source_persistiq.md index 5e68d9d64..77867152a 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 = "1299d484-1410-4fd6-a7ec-48816b0c62b8" - name = "Mrs. Claude Hand" + definition_id = "d3cf89e6-921c-4e0c-ba6e-cf05091d908d" + name = "Mr. Levi Beahan" secret_id = "...my_secret_id..." - workspace_id = "c3e6c8bd-1ccc-4ad3-b1c4-065293193648" + workspace_id = "53384297-3372-4c40-ac92-91353f9549bc" } ``` diff --git a/docs/resources/source_pexels_api.md b/docs/resources/source_pexels_api.md index 3d835faed..2fe1d3279 100644 --- a/docs/resources/source_pexels_api.md +++ b/docs/resources/source_pexels_api.md @@ -17,15 +17,15 @@ resource "airbyte_source_pexels_api" "my_source_pexelsapi" { configuration = { api_key = "...my_api_key..." color = "orange" - locale = "pt-BR" + locale = "en-US" orientation = "square" query = "oceans" size = "large" } - definition_id = "b5865238-4bdb-4821-b9c8-efa40dc207c5" - name = "Raquel Jakubowski Sr." + definition_id = "89bbf5d2-4f5b-4116-8e1d-c4a01d44fb97" + name = "Frances Armstrong" secret_id = "...my_secret_id..." - workspace_id = "11e1fcb2-6b90-4cc0-9f94-1919892a209c" + workspace_id = "d0de91ea-a4a7-40c9-8b87-0eb98050c39e" } ``` diff --git a/docs/resources/source_picqer.md b/docs/resources/source_picqer.md new file mode 100644 index 000000000..0fecfacc0 --- /dev/null +++ b/docs/resources/source_picqer.md @@ -0,0 +1,68 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_picqer Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourcePicqer Resource +--- + +# airbyte_source_picqer (Resource) + +SourcePicqer Resource + +## Example Usage + +```terraform +resource "airbyte_source_picqer" "my_source_picqer" { + configuration = { + organization_name = "...my_organization_name..." + password = "...my_password..." + start_date = "2022-09-19T15:03:54.645Z" + username = "Emie.Balistreri" + } + definition_id = "7bfd1cb4-db2a-4ae6-820a-c9c19db3e1c8" + name = "Rodney Rowe" + secret_id = "...my_secret_id..." + workspace_id = "acce5c37-529a-415c-b606-2a63f5716d2b" +} +``` + + +## 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: + +- `organization_name` (String) The organization name which is used to login to picqer +- `start_date` (String) +- `username` (String) + +Optional: + +- `password` (String, Sensitive) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_picqer.my_airbyte_source_picqer "" +``` diff --git a/docs/resources/source_pinterest.md b/docs/resources/source_pinterest.md index aaaf6477d..42cb15c28 100644 --- a/docs/resources/source_pinterest.md +++ b/docs/resources/source_pinterest.md @@ -27,13 +27,13 @@ resource "airbyte_source_pinterest" "my_source_pinterest" { ] click_window_days = "7" columns = [ - "TOTAL_CLICK_CHECKOUT_VALUE_IN_MICRO_DOLLAR", + "OUTBOUND_CLICK_2", ] conversion_report_time = "TIME_OF_CONVERSION" - engagement_window_days = "60" - granularity = "HOUR" - level = "KEYWORD" - name = "Stanley Green" + engagement_window_days = "0" + granularity = "WEEK" + level = "PRODUCT_ITEM" + name = "Kristen Wisoky" start_date = "2022-07-28" view_window_days = "30" }, @@ -43,10 +43,10 @@ resource "airbyte_source_pinterest" "my_source_pinterest" { "PAUSED", ] } - definition_id = "dc5f9765-35f7-43a4-9535-fff5d1d34f0c" - name = "Conrad Hane" + definition_id = "1ac64878-76fc-4ad6-95bc-ace687b33710" + name = "Alma Marks" secret_id = "...my_secret_id..." - workspace_id = "6a3a161d-c53f-4641-88ac-b8b41d5bf94a" + workspace_id = "a7b02fd2-5c77-427b-b635-4281d3e7f0bc" } ``` diff --git a/docs/resources/source_pipedrive.md b/docs/resources/source_pipedrive.md index 6aa6b57c6..9852fc29b 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 = "01397d3d-fd90-4aff-a604-97cb974a7d80" - name = "Kathleen Schiller" + definition_id = "649fe5b0-8c82-4dc4-8ca1-ab76639716f1" + name = "Clayton Doyle PhD" secret_id = "...my_secret_id..." - workspace_id = "4b7daa2d-7b02-4155-8aad-a4df01cf56ee" + workspace_id = "f025a154-586c-47cd-bb55-8f87809d3d1f" } ``` diff --git a/docs/resources/source_piwik.md b/docs/resources/source_piwik.md new file mode 100644 index 000000000..1b4946606 --- /dev/null +++ b/docs/resources/source_piwik.md @@ -0,0 +1,63 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_piwik Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourcePiwik Resource +--- + +# airbyte_source_piwik (Resource) + +SourcePiwik Resource + +## Example Usage + +```terraform +resource "airbyte_source_piwik" "my_source_piwik" { + configuration = { + client_id = "...my_client_id..." + client_secret = "...my_client_secret..." + organization_id = "...my_organization_id..." + } + definition_id = "cf2b6755-1109-40ec-ac18-f2017e88b7a8" + name = "Tonya Gutkowski" + secret_id = "...my_secret_id..." + workspace_id = "5e84efb6-a935-4326-9882-dc6ea377e2f3" +} +``` + + +## 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) +- `organization_id` (String) The organization id appearing at URL of your piwik website + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_piwik.my_airbyte_source_piwik "" +``` diff --git a/docs/resources/source_planhat.md b/docs/resources/source_planhat.md index accb49352..935d88bba 100644 --- a/docs/resources/source_planhat.md +++ b/docs/resources/source_planhat.md @@ -17,10 +17,10 @@ resource "airbyte_source_planhat" "my_source_planhat" { configuration = { api_token = "...my_api_token..." } - definition_id = "294adbc5-bd34-4078-9cf0-b8d2c0412443" - name = "Vivian Kassulke" + definition_id = "a6744848-ac2b-404b-aae9-e175304065f6" + name = "Tara King" secret_id = "...my_secret_id..." - workspace_id = "d64cd2bc-f08a-4635-97a8-c386ceccfae9" + workspace_id = "901f87c9-df1a-4f8f-9013-d5d0cf403b28" } ``` diff --git a/docs/resources/source_pocket.md b/docs/resources/source_pocket.md index fa463dd36..243ae3918 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 = "article" - detail_type = "complete" + content_type = "video" + detail_type = "simple" domain = "...my_domain..." - favorite = true + favorite = false search = "...my_search..." since = "2022-10-20 14:14:14" - sort = "site" - state = "unread" + sort = "title" + state = "archive" tag = "...my_tag..." } - definition_id = "f8c4b4f8-d4f6-4833-a1f3-303ab045c891" - name = "Ramiro Mayer" + definition_id = "a6950f00-07e3-4304-bd95-358a56819d2a" + name = "Doyle Schneider PhD" secret_id = "...my_secret_id..." - workspace_id = "dcb6cc1c-d73d-42cf-8013-6d5989e7dbac" + workspace_id = "7e3d24df-d3d5-4123-82f9-97d059d38a2e" } ``` diff --git a/docs/resources/source_pokeapi.md b/docs/resources/source_pokeapi.md index ef8fc7b3a..eed3c780c 100644 --- a/docs/resources/source_pokeapi.md +++ b/docs/resources/source_pokeapi.md @@ -15,12 +15,12 @@ SourcePokeapi Resource ```terraform resource "airbyte_source_pokeapi" "my_source_pokeapi" { configuration = { - pokemon_name = "snorlax" + pokemon_name = "luxray" } - definition_id = "4005a630-7276-4c58-b5da-21f73986a71e" - name = "Stuart Corwin" + definition_id = "fcf99c41-876f-4a0c-bc1b-99ee1e960566" + name = "Dr. Beatrice Reilly" secret_id = "...my_secret_id..." - workspace_id = "b81056bc-977a-43bf-8dff-8dd835d80427" + workspace_id = "1b3114e9-ed57-4541-8361-2b0e8c8cf11a" } ``` diff --git a/docs/resources/source_polygon_stock_api.md b/docs/resources/source_polygon_stock_api.md index 4bdfb97d2..4cf489eb2 100644 --- a/docs/resources/source_polygon_stock_api.md +++ b/docs/resources/source_polygon_stock_api.md @@ -15,20 +15,20 @@ SourcePolygonStockAPI Resource ```terraform resource "airbyte_source_polygon_stock_api" "my_source_polygonstockapi" { configuration = { - adjusted = "false" + adjusted = "true" api_key = "...my_api_key..." end_date = "2020-10-14" - limit = 120 + limit = 100 multiplier = 2 - sort = "desc" + sort = "asc" start_date = "2020-10-14" - stocks_ticker = "IBM" + stocks_ticker = "MSFT" timespan = "day" } - definition_id = "23c8e5e2-59fe-44ef-a493-875b5a324c61" - name = "Tracey Paucek" + definition_id = "52a9e475-abff-4ba2-81e7-b6908ecd761f" + name = "Sheryl Predovic V" secret_id = "...my_secret_id..." - workspace_id = "bad07307-82c3-4e82-a825-101e3e25c699" + workspace_id = "a0804c97-1e60-4235-9c09-fadad73b79d2" } ``` diff --git a/docs/resources/source_postgres.md b/docs/resources/source_postgres.md index d374afe3c..f1b6668fd 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 = "Kaylee22" + username = "Nellie_Grady" } - definition_id = "88851ec0-6fd3-4b8c-864e-95a7a3692db0" - name = "Cristina Franey" + definition_id = "cfdc6fb5-04a1-42b7-b23c-bf0223ae822e" + name = "Thelma Connelly" secret_id = "...my_secret_id..." - workspace_id = "99dcbdae-34af-4cb0-a318-40729444d2b8" + workspace_id = "8cbc0547-dc93-4d7d-b628-c47813582a6f" } ``` diff --git a/docs/resources/source_posthog.md b/docs/resources/source_posthog.md index 2be678e4d..3df90c46a 100644 --- a/docs/resources/source_posthog.md +++ b/docs/resources/source_posthog.md @@ -20,10 +20,10 @@ resource "airbyte_source_posthog" "my_source_posthog" { events_time_step = 10 start_date = "2021-01-01T00:00:00Z" } - definition_id = "aababee9-d637-48e7-a43c-021bc073abf4" - name = "Edmond Thiel" + definition_id = "9dfc7f45-8565-4e71-95c9-f06b5482c9eb" + name = "Mr. Tamara Ankunding" secret_id = "...my_secret_id..." - workspace_id = "414e5a60-3e6b-43fc-a03d-92cb14510264" + workspace_id = "0337f10a-6436-49e4-ae32-ccb4d52da612" } ``` diff --git a/docs/resources/source_postmarkapp.md b/docs/resources/source_postmarkapp.md index 0678b0f9f..117b97106 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 = "179a4030-1bb8-47b1-ba43-b1ead703a4ee" - name = "Russell Ernser" + definition_id = "8f2436a1-22e3-4949-8819-8a6bf6f1cbdb" + name = "Geraldine Pagac" secret_id = "...my_secret_id..." - workspace_id = "553942b5-8b6d-40d2-8932-d7e88d8619ec" + workspace_id = "cd0e48f1-e4b3-4046-9b6c-a0b303cf017c" } ``` diff --git a/docs/resources/source_prestashop.md b/docs/resources/source_prestashop.md index 2885d120e..654d73a21 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 = "811786e4-4e52-472c-a097-1d544a65a7d2" - name = "Miss Herbert Kerluke" + definition_id = "78363f1b-e7e9-4b4a-abfc-5ff7146c36bb" + name = "Victoria Feest" secret_id = "...my_secret_id..." - workspace_id = "4ec6467c-968c-4ce9-b394-d8a35db32f90" + workspace_id = "f0beca93-a8ae-478e-9e53-7d96eb6d5dc1" } ``` diff --git a/docs/resources/source_productboard.md b/docs/resources/source_productboard.md new file mode 100644 index 000000000..10a1676fa --- /dev/null +++ b/docs/resources/source_productboard.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_productboard Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceProductboard Resource +--- + +# airbyte_source_productboard (Resource) + +SourceProductboard Resource + +## Example Usage + +```terraform +resource "airbyte_source_productboard" "my_source_productboard" { + configuration = { + access_token = "...my_access_token..." + start_date = "2022-06-14T05:22:42.363Z" + } + definition_id = "50f80fbc-595c-4377-bbcc-fe70cf147e29" + name = "Nichole Kling" + secret_id = "...my_secret_id..." + workspace_id = "b2d7bbc2-90ef-400a-9537-2256fe50a2e7" +} +``` + + +## 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_token` (String, Sensitive) Your Productboard access token. See https://developer.productboard.com/reference/authentication for steps to generate one. +- `start_date` (String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_productboard.my_airbyte_source_productboard "" +``` diff --git a/docs/resources/source_productive.md b/docs/resources/source_productive.md new file mode 100644 index 000000000..bf8abbe72 --- /dev/null +++ b/docs/resources/source_productive.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_productive Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceProductive Resource +--- + +# airbyte_source_productive (Resource) + +SourceProductive Resource + +## Example Usage + +```terraform +resource "airbyte_source_productive" "my_source_productive" { + configuration = { + api_key = "...my_api_key..." + organization_id = "...my_organization_id..." + } + definition_id = "cfe6f34a-cc65-4c56-b5fa-6778e44b91c6" + name = "Mr. Cathy Shanahan" + secret_id = "...my_secret_id..." + workspace_id = "040ba03e-b3c0-4afc-83c8-fa6eafbbc8e3" +} +``` + + +## 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) +- `organization_id` (String) The organization ID which could be seen from `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_productive.my_airbyte_source_productive "" +``` diff --git a/docs/resources/source_pypi.md b/docs/resources/source_pypi.md index 783bd3f1c..68a813032 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 = "0f8cfe73-78a5-4877-8229-72e237ec3d2a" - name = "Bernard Cartwright" + definition_id = "e7db5a3e-446f-4c1e-8fa9-1f7ef5f462d7" + name = "Wallace Fritsch" secret_id = "...my_secret_id..." - workspace_id = "d2efe5e3-4c93-41e7-a72e-f9ee22c4d080" + workspace_id = "1977a1b2-71a5-4b00-9f29-606a36dac995" } ``` diff --git a/docs/resources/source_qualaroo.md b/docs/resources/source_qualaroo.md index 564e5e91d..2cf13677a 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 = "cde039dd-5e8c-4577-8ddd-10910de87dfe" - name = "Elizabeth Bruen" + definition_id = "92aaeb21-d89b-43db-958d-4aa1770fe21a" + name = "Susie Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "bd0d10cf-57eb-4672-b8aa-55d63fb2a63d" + workspace_id = "315af19b-c4a1-4418-827e-2e49fbe84753" } ``` diff --git a/docs/resources/source_railz.md b/docs/resources/source_railz.md index 7f14dbfcf..01093851a 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 = "a0917a61-51fa-4c3e-8ec6-9babb338974c" - name = "Paul Spencer" + definition_id = "d48e30cc-cb1d-439d-9fc6-49b7a58a5636" + name = "Anna Ziemann" secret_id = "...my_secret_id..." - workspace_id = "9af2319a-6f88-498d-b4d7-cd0670b63c63" + workspace_id = "38f32285-6cd8-48e7-a494-b9e5830e9efb" } ``` diff --git a/docs/resources/source_recharge.md b/docs/resources/source_recharge.md index 0a42b529d..4ad791e63 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 = "1f6c544c-20e7-43f2-bdc4-6e62d66e7277" - name = "Drew Herman" + definition_id = "2cdcae9f-85c7-4017-b805-26f8856cdf3f" + name = "Pat Zemlak" secret_id = "...my_secret_id..." - workspace_id = "92d16e1d-cb06-4fc1-b7a1-71f7c1d8bfdd" + workspace_id = "1999214f-3ffa-448a-8adc-06400b7b58d1" } ``` diff --git a/docs/resources/source_recreation.md b/docs/resources/source_recreation.md index f9a2f2b3f..103c82354 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 = "b09b9a90-3f60-4eb4-a54b-7cf533c55d68" - name = "Lloyd Kertzmann DVM" + definition_id = "3a2ccf2b-1ade-42f4-984b-fb0e1b3d2b89" + name = "Jesse Kassulke" secret_id = "...my_secret_id..." - workspace_id = "7b10c6dd-1e62-4eb5-bcf3-65dccaec2ce4" + workspace_id = "838cf8d2-27f3-418d-8240-654f4782740a" } ``` diff --git a/docs/resources/source_recruitee.md b/docs/resources/source_recruitee.md index 497a70e32..4387a3c5f 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 = 0 + company_id = 1 } - definition_id = "cbe1d2ec-d015-401d-92f6-c56d3cf89e69" - name = "Jean Rutherford DDS" + definition_id = "b5a46242-8ebc-45c7-bead-f0c9ce16ebe8" + name = "Josefina Pacocha" secret_id = "...my_secret_id..." - workspace_id = "7a6ecf05-091d-4908-99d0-017533842973" + workspace_id = "aee8d2bd-e48e-4efc-ab9e-0d54b0894bdd" } ``` diff --git a/docs/resources/source_recurly.md b/docs/resources/source_recurly.md index d721eb234..0e5c2ad2f 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 = "372c40ec-9291-4353-b954-9bcc34d389bb" - name = "Corey Sporer" + definition_id = "98fe3f92-c06a-49aa-b270-2875abb88c39" + name = "Marcos Kuhic" secret_id = "...my_secret_id..." - workspace_id = "f5b1164e-1dc4-4a01-944f-b97610a4d0de" + workspace_id = "66080f3e-cae3-4cb4-91ea-7992cd63d338" } ``` diff --git a/docs/resources/source_reddit.md b/docs/resources/source_reddit.md index 505ad8fce..8bc6ae37c 100644 --- a/docs/resources/source_reddit.md +++ b/docs/resources/source_reddit.md @@ -17,18 +17,18 @@ resource "airbyte_source_reddit" "my_source_reddit" { configuration = { api_key = "...my_api_key..." exact = false - include_over_18 = false - limit = 88.51 + include_over_18 = true + limit = 98.44 query = "...my_query..." - start_date = "2021-09-11T03:28:56.693Z" + start_date = "2022-05-22T10:23:38.617Z" subreddits = [ "{ \"see\": \"documentation\" }", ] } - definition_id = "4a70c9cb-870e-4b98-850c-39e7450657bf" - name = "Dennis Rutherford" + definition_id = "f7d5a433-d30c-4a4a-a9f6-84d9ab345ef3" + name = "Leah Emmerich" secret_id = "...my_secret_id..." - workspace_id = "db2aae6c-20ac-49c1-9db3-e1c883c55acc" + workspace_id = "2e52a86a-dbb5-47c5-8be7-ccff9d072474" } ``` diff --git a/docs/resources/source_redshift.md b/docs/resources/source_redshift.md index 9fb2b3e79..bb7ba964e 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 = "Garnett44" + username = "Lupe.Fritsch49" } - definition_id = "529a15c3-6062-4a63-b571-6d2b265f2af5" - name = "Faith Schmidt" + definition_id = "eb205ddb-7f1b-4711-95e0-7e103643a6df" + name = "Eugene Parker Sr." secret_id = "...my_secret_id..." - workspace_id = "bdd581ac-6487-4876-bcad-615bcace687b" + workspace_id = "25b2ac62-eb10-4f1a-8d51-fb8be0416cb4" } ``` diff --git a/docs/resources/source_retently.md b/docs/resources/source_retently.md index adce28379..26b66974d 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 = "33710669-86a7-4b02-bd25-c7727b363542" - name = "Eric Sporer" + definition_id = "9da06c23-9e7a-4f3c-a2cc-2a5392d74588" + name = "Miss Gary Gerhold II" secret_id = "...my_secret_id..." - workspace_id = "7f0bc649-fe5b-408c-82dc-40ca1ab76639" + workspace_id = "7267ce86-a322-4e02-b7e6-dd49df5c3592" } ``` diff --git a/docs/resources/source_rki_covid.md b/docs/resources/source_rki_covid.md index a1c80bcef..8f5f9cb52 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 = "716f1b83-31df-4025-a154-586c7cdfb558" - name = "Wallace Kuhlman V" + definition_id = "a5dd7ddb-d797-4d2e-b894-fd682a677b1b" + name = "Owen Ritchie" secret_id = "...my_secret_id..." - workspace_id = "d3d1fcf2-b675-4511-890e-c6c18f2017e8" + workspace_id = "eb9b5c2e-2ee8-4b85-b41c-f2efd5ed605e" } ``` diff --git a/docs/resources/source_rss.md b/docs/resources/source_rss.md index 0ee1a3950..0c0ec77e3 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 = "8b7a8364-f95e-484e-bb6a-9353261882dc" - name = "Sophie O'Conner" + definition_id = "9e4deda3-0dd3-4cfb-8aa2-fad058413083" + name = "Krystal Dietrich" secret_id = "...my_secret_id..." - workspace_id = "7e2f3a67-4484-48ac-ab04-beae9e175304" + workspace_id = "de43c907-f63c-4c02-bc2f-7f5dfb2c26b4" } ``` diff --git a/docs/resources/source_s3.md b/docs/resources/source_s3.md index e5e3d01c8..ff66627ab 100644 --- a/docs/resources/source_s3.md +++ b/docs/resources/source_s3.md @@ -18,51 +18,33 @@ resource "airbyte_source_s3" "my_source_s3" { aws_access_key_id = "...my_aws_access_key_id..." aws_secret_access_key = "...my_aws_secret_access_key..." bucket = "...my_bucket..." - dataset = "...my_dataset..." - endpoint = "my-s3-endpoint.com" - format = { - avro = {} - } - path_pattern = "**" - provider = { - aws_access_key_id = "...my_aws_access_key_id..." - aws_secret_access_key = "...my_aws_secret_access_key..." - bucket = "...my_bucket..." - endpoint = "...my_endpoint..." - path_prefix = "...my_path_prefix..." - region_name = "...my_region_name..." - role_arn = "...my_role_arn..." - start_date = "2021-01-01T00:00:00Z" - } - region_name = "...my_region_name..." - role_arn = "...my_role_arn..." - schema = "{\"column_1\": \"number\", \"column_2\": \"string\", \"column_3\": \"array\", \"column_4\": \"object\", \"column_5\": \"boolean\"}" - start_date = "2021-01-01T00:00:00.000000Z" + endpoint = "https://my-s3-endpoint.com" + region_name = "...my_region_name..." + role_arn = "...my_role_arn..." + 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 = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] 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 + name = "Christie Emard" + recent_n_files_to_read_for_schema_discovery = 3 schemaless = true - validation_policy = "Wait for Discover" + validation_policy = "Emit Record" }, ] } - definition_id = "9df1af8f-5013-4d5d-8cf4-03b2856e98a6" - name = "Herman Bartoletti Jr." + definition_id = "819ff393-429d-4316-9dd8-595e9c61e20d" + name = "Pedro West" secret_id = "...my_secret_id..." - workspace_id = "07e33047-d953-458a-9681-9d2abec21d7e" + workspace_id = "b11c60c3-a7ba-4336-a48b-e45dfad9324f" } ``` @@ -98,14 +80,9 @@ Optional: - `aws_access_key_id` (String, Sensitive) In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. - `aws_secret_access_key` (String, Sensitive) In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. -- `dataset` (String) Deprecated and will be removed soon. Please do not use this field anymore and use streams.name instead. The name of the stream you would like this source to output. Can contain letters, numbers, or underscores. -- `endpoint` (String) Endpoint to an S3 compatible service. Leave empty to use AWS. The custom endpoint must be secure, but the 'https' prefix is not required. Default: "" -- `format` (Attributes) Deprecated and will be removed soon. Please do not use this field anymore and use streams.format instead. The format of the files you'd like to replicate (see [below for nested schema](#nestedatt--configuration--format)) -- `path_pattern` (String) Deprecated and will be removed soon. Please do not use this field anymore and use streams.globs instead. A regular expression which tells the connector which files to replicate. All files which match this pattern will be replicated. Use | to separate multiple patterns. See this page to understand pattern syntax (GLOBSTAR and SPLIT flags are enabled). Use pattern ** to pick up all files. -- `provider` (Attributes) Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services (see [below for nested schema](#nestedatt--configuration--provider)) +- `endpoint` (String) Endpoint to an S3 compatible service. Leave empty to use AWS. Default: "" - `region_name` (String) AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. - `role_arn` (String) Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. -- `schema` (String) Deprecated and will be removed soon. Please do not use this field anymore and use streams.input_schema instead. Optionally provide a schema to enforce, as a valid JSON string. Ensure this is a mapping of { "column" : "type" }, where types are valid JSON Schema datatypes. Leave as {} to auto-infer the schema. Default: "{}" - `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. @@ -121,8 +98,6 @@ 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 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" @@ -158,7 +133,6 @@ Optional: - `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values. - `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition)) - `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. - `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank. Default: "\"" - `skip_rows_after_header` (Number) The number of rows to skip after the header row. Default: 0 @@ -224,77 +198,6 @@ Optional: ### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.local` - - - - - - -### Nested Schema for `configuration.format` - -Optional: - -- `avro` (Attributes) This connector utilises fastavro for Avro parsing. (see [below for nested schema](#nestedatt--configuration--format--avro)) -- `csv` (Attributes) This connector utilises PyArrow (Apache Arrow) for CSV parsing. (see [below for nested schema](#nestedatt--configuration--format--csv)) -- `jsonl` (Attributes) This connector uses PyArrow for JSON Lines (jsonl) file parsing. (see [below for nested schema](#nestedatt--configuration--format--jsonl)) -- `parquet` (Attributes) This connector utilises PyArrow (Apache Arrow) for Parquet parsing. (see [below for nested schema](#nestedatt--configuration--format--parquet)) - - -### Nested Schema for `configuration.format.avro` - - - -### Nested Schema for `configuration.format.csv` - -Optional: - -- `additional_reader_options` (String) Optionally add a valid JSON string here to provide additional options to the csv reader. Mappings must correspond to options detailed here. 'column_types' is used internally to handle schema so overriding that would likely cause problems. -- `advanced_options` (String) Optionally add a valid JSON string here to provide additional Pyarrow ReadOptions. Specify 'column_names' here if your CSV doesn't have header, or if you want to use custom column names. 'block_size' and 'encoding' are already used above, specify them again here will override the values above. -- `block_size` (Number) The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors. Default: 10000 -- `delimiter` (String) The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Default: "," -- `double_quote` (Boolean) Whether two quotes in a quoted CSV value denote a single quote in the data. Default: true -- `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. -- `infer_datatypes` (Boolean) Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings. Default: true -- `newlines_in_values` (Boolean) Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False. Default: false -- `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank. Default: "\"" - - - -### Nested Schema for `configuration.format.jsonl` - -Optional: - -- `block_size` (Number) The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors. Default: 0 -- `newlines_in_values` (Boolean) Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False. Default: false -- `unexpected_field_behavior` (String) How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details. must be one of ["ignore", "infer", "error"]; Default: "infer" - - - -### Nested Schema for `configuration.format.parquet` - -Optional: - -- `batch_size` (Number) Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide. Default: 65536 -- `buffer_size` (Number) Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide. Default: 2 -- `columns` (List of String) If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns. - - - - -### Nested Schema for `configuration.provider` - -Optional: - -- `aws_access_key_id` (String, Sensitive) In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. -- `aws_secret_access_key` (String, Sensitive) In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. -- `bucket` (String) Name of the S3 bucket where the file(s) exist. -- `endpoint` (String) Endpoint to an S3 compatible service. Leave empty to use AWS. Default: "" -- `path_prefix` (String) By providing a path-like prefix (e.g. myFolder/thisTable/) under which all the relevant files sit, we can optimize finding these in S3. This is optional but recommended if your bucket contains many folders/files which you don't need to replicate. Default: "" -- `region_name` (String) AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. -- `role_arn` (String) Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. -- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any file modified before this date will not be replicated. - ## Import Import is supported using the following syntax: diff --git a/docs/resources/source_salesforce.md b/docs/resources/source_salesforce.md index 054de2244..2a2f31289 100644 --- a/docs/resources/source_salesforce.md +++ b/docs/resources/source_salesforce.md @@ -20,19 +20,19 @@ resource "airbyte_source_salesforce" "my_source_salesforce" { force_use_bulk_api = true is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-07-25" - stream_slice_step = "P1Y" + start_date = "2021-07-25T00:00:00Z" + stream_slice_step = "P30D" streams_criteria = [ { - criteria = "not contains" + criteria = "ends with" value = "...my_value..." }, ] } - definition_id = "3d512342-f997-4d05-9d38-a2e5fcf99c41" - name = "Jessie Howe" + definition_id = "34526eae-71eb-4759-97dd-0bf2f5721957" + name = "Roman Robel" secret_id = "...my_secret_id..." - workspace_id = "0cbc1b99-ee1e-4960-9660-5b0d51b3114e" + workspace_id = "9226a954-fff9-43d1-ae39-2ce90b9169fb" } ``` diff --git a/docs/resources/source_salesloft.md b/docs/resources/source_salesloft.md index bdedebc01..d490bf59f 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 = "d57541c3-612b-40e8-88cf-11a0d259943d" - name = "Shannon Heller" + definition_id = "db2efb21-ef2b-4c48-bf07-f2e772136664" + name = "Elisa Nienow" secret_id = "...my_secret_id..." - workspace_id = "9e475abf-fba2-4c1e-bb69-08ecd761f19b" + workspace_id = "2db7532b-28cb-4785-b8d4-ad9bb4c2d04c" } ``` diff --git a/docs/resources/source_sap_fieldglass.md b/docs/resources/source_sap_fieldglass.md index 978c28c42..727830f4d 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 = "60aa0804-c971-4e60-a35d-c09fadad73b7" - name = "Miss Taylor Cassin" + definition_id = "6ceb0e44-0965-49db-b6ec-af35c15b3779" + name = "Neil Von" secret_id = "...my_secret_id..." - workspace_id = "8acfdc6f-b504-4a12-b772-3cbf0223ae82" + workspace_id = "ccb9fd6e-1ad7-4470-b832-0ef50a8ca76b" } ``` diff --git a/docs/resources/source_savvycal.md b/docs/resources/source_savvycal.md index 2b5753d5c..de6802b59 100644 --- a/docs/resources/source_savvycal.md +++ b/docs/resources/source_savvycal.md @@ -17,10 +17,10 @@ resource "airbyte_source_savvycal" "my_source_savvycal" { configuration = { api_key = "...my_api_key..." } - definition_id = "2e5327d8-cbc0-4547-9c93-d7d7628c4781" - name = "Sally Lockman" + definition_id = "083ea280-df18-404a-a7b9-f3e581495129" + name = "Marcia Schmidt" secret_id = "...my_secret_id..." - workspace_id = "6f537d9d-fc7f-4458-965e-7155c9f06b54" + workspace_id = "8696756f-e058-4810-a2b8-ad45dc078875" } ``` diff --git a/docs/resources/source_scryfall.md b/docs/resources/source_scryfall.md index aa1940718..0ecc52fb2 100644 --- a/docs/resources/source_scryfall.md +++ b/docs/resources/source_scryfall.md @@ -15,10 +15,10 @@ SourceScryfall Resource ```terraform resource "airbyte_source_scryfall" "my_source_scryfall" { configuration = {} - definition_id = "82c9eb77-003d-4033-bf10-a64369e4ee32" - name = "Clark Reichel" + definition_id = "4523f36d-ab51-4228-90f3-e992c2a3f4c8" + name = "Earnest Baumbach" secret_id = "...my_secret_id..." - workspace_id = "52da6128-f243-46a1-a2e3-949c8198a6bf" + workspace_id = "c7cc4eaf-dab4-4c1b-8af6-6c12869f984d" } ``` diff --git a/docs/resources/source_secoda.md b/docs/resources/source_secoda.md index f7e585266..d165470f9 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 = "6f1cbdb3-5a96-4cd0-a48f-1e4b30469b6c" - name = "George Ritchie I" + definition_id = "61382854-2bb3-47a4-98fa-cd1771a16fff" + name = "Mindy Beahan" secret_id = "...my_secret_id..." - workspace_id = "cf017cd9-7836-43f1-be7e-9b4aabfc5ff7" + workspace_id = "eebc306c-4f33-497c-a047-5faadeba481e" } ``` diff --git a/docs/resources/source_sendgrid.md b/docs/resources/source_sendgrid.md index 37d6aca92..c6cd37472 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 = "2022-09-11T05:44:36.588Z" + start_date = "2022-12-03T07:28:22.238Z" } - definition_id = "6c36bb73-37bf-40be-8a93-a8ae78e1e537" - name = "Julius Kemmer" + definition_id = "3dd760cc-3ae1-4d77-9ee9-78f160f45746" + name = "Dr. Salvatore Bergnaum" secret_id = "...my_secret_id..." - workspace_id = "6d5dc1e2-50f8-40fb-8595-c3777bccfe70" + workspace_id = "0243724c-2fa9-40b3-bc58-aed9663e07de" } ``` diff --git a/docs/resources/source_sendinblue.md b/docs/resources/source_sendinblue.md index 71aeb6a5f..3eb4f2906 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 = "cf147e29-3c7a-44b2-97bb-c290ef00ad53" - name = "Ruby Davis" + definition_id = "9609725c-6d5a-45da-b503-9f4e4098bb8c" + name = "Blanche Collins" secret_id = "...my_secret_id..." - workspace_id = "fe50a2e7-cfe6-4f34-acc6-5c56f5fa6778" + workspace_id = "3c013462-1866-4cf5-98db-d5ebee014e07" } ``` diff --git a/docs/resources/source_senseforce.md b/docs/resources/source_senseforce.md index 21ae9b3de..e45f3bd70 100644 --- a/docs/resources/source_senseforce.md +++ b/docs/resources/source_senseforce.md @@ -18,13 +18,12 @@ resource "airbyte_source_senseforce" "my_source_senseforce" { access_token = "...my_access_token..." backend_url = "https://galaxyapi.senseforce.io" dataset_id = "8f418098-ca28-4df5-9498-0df9fe78eda7" - slice_range = 360 start_date = "2017-01-25" } - definition_id = "91c615d1-2804-40ba-83eb-3c0afcc3c8fa" - name = "Kellie Olson" + definition_id = "dc6f53d2-53db-48b1-a39d-437be8f4cf79" + name = "Marta Ondricka" secret_id = "...my_secret_id..." - workspace_id = "bc8e3e7d-b5a3-4e44-afc1-e0fa91f7ef5f" + workspace_id = "e012beba-22c9-4964-9ef6-30f5d8739c0e" } ``` @@ -57,10 +56,6 @@ Required: - `dataset_id` (String) The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See here for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source). - `start_date` (String) UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later -Optional: - -- `slice_range` (Number) The time increment used by the connector when requesting data from the Senseforce API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted and the more likely one could run into rate limites. Furthermore, consider that large chunks of time might take a long time for the Senseforce query to return data - meaning it could take in effect longer than with more smaller time slices. If there are a lot of data per day, set this setting to 1. If there is only very little data per day, you might change the setting to 10 or more. Default: 10 - ## Import Import is supported using the following syntax: diff --git a/docs/resources/source_sentry.md b/docs/resources/source_sentry.md index b46033a0e..4897d2d6c 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 = "firsthand-hospice.com" + hostname = "essential-doctrine.net" organization = "...my_organization..." project = "...my_project..." } - definition_id = "d7c84461-977a-41b2-b1a5-b009f29606a3" - name = "Estelle Murray" + definition_id = "352ddb04-c9bc-4e38-bd66-444a186797a7" + name = "Mr. Robin Walker" secret_id = "...my_secret_id..." - workspace_id = "9592aaeb-21d8-49b3-9b55-8d4aa1770fe2" + workspace_id = "99e00879-e494-484a-b485-520644aee427" } ``` diff --git a/docs/resources/source_sftp.md b/docs/resources/source_sftp.md index 4a651e9b7..3a029e3b7 100644 --- a/docs/resources/source_sftp.md +++ b/docs/resources/source_sftp.md @@ -21,16 +21,16 @@ resource "airbyte_source_sftp" "my_source_sftp" { } } file_pattern = "log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd`" - file_types = "csv,json" + file_types = "csv" folder_path = "/logs/2022" host = "192.0.2.1" port = 22 user = "...my_user..." } - definition_id = "b03b315a-f19b-4c4a-9418-c27e2e49fbe8" - name = "Stella Hammes" + definition_id = "df9bf84b-784e-4daa-b2f4-24ed308606f0" + name = "Wendell Dare" secret_id = "...my_secret_id..." - workspace_id = "48e30ccc-b1d3-49dd-bc64-9b7a58a56364" + workspace_id = "2de7b1a9-3e59-415f-a584-4c8d7f9e67ba" } ``` diff --git a/docs/resources/source_sftp_bulk.md b/docs/resources/source_sftp_bulk.md index 208635ddb..e9a64b3de 100644 --- a/docs/resources/source_sftp_bulk.md +++ b/docs/resources/source_sftp_bulk.md @@ -21,12 +21,12 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { } } folder_path = "/logs/2022" - host = "www.host.com" + host = "192.0.2.1" port = 22 start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 2 + days_to_sync_if_history_is_full = 9 format = { avro_format = { double_as_string = true @@ -36,20 +36,18 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { "...", ] 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 + name = "Blanche MacGyver" + recent_n_files_to_read_for_schema_discovery = 2 + schemaless = false validation_policy = "Wait for Discover" }, ] - username = "Santos_Leuschke" + username = "Matt_Wilkinson" } - definition_id = "7e494b9e-5830-4e9e-bbf4-12cdcae9f85c" - name = "Maria Bernhard" + definition_id = "e57802da-a821-4998-aac7-526c0e68d41f" + name = "Misty Gibson" secret_id = "...my_secret_id..." - workspace_id = "80526f88-56cd-4f3f-9efb-e1999214f3ff" + workspace_id = "bd831a4c-af6a-4030-b232-0a84c82feed3" } ``` @@ -127,8 +125,6 @@ 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 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" @@ -165,7 +161,6 @@ Optional: - `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values. - `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition)) - `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. - `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank. Default: "\"" - `skip_rows_after_header` (Number) The number of rows to skip after the header row. Default: 0 diff --git a/docs/resources/source_shopify.md b/docs/resources/source_shopify.md index bd1cbd379..6cb634a55 100644 --- a/docs/resources/source_shopify.md +++ b/docs/resources/source_shopify.md @@ -15,23 +15,23 @@ SourceShopify Resource ```terraform resource "airbyte_source_shopify" "my_source_shopify" { configuration = { - bulk_window_in_days = 7 + bulk_window_in_days = 4 credentials = { api_password = { api_password = "...my_api_password..." } } 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" + job_checkpoint_interval = 9 + job_product_variants_include_pres_prices = true + job_termination_threshold = 5 + shop = "my-store" + start_date = "2022-08-09" } - definition_id = "06400b7b-58d1-43a2-8cf2-b1ade2f4984b" - name = "Ed Baumbach MD" + definition_id = "05259781-2242-414e-979a-97873ec6ec23" + name = "Everett McGlynn" secret_id = "...my_secret_id..." - workspace_id = "3d2b89b2-6a88-438c-b8d2-27f318d42406" + workspace_id = "834bb7f2-56aa-42ee-997a-7ac93ce2101f" } ``` diff --git a/docs/resources/source_shortcut.md b/docs/resources/source_shortcut.md new file mode 100644 index 000000000..5ef88c7d1 --- /dev/null +++ b/docs/resources/source_shortcut.md @@ -0,0 +1,66 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_shortcut Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceShortcut Resource +--- + +# airbyte_source_shortcut (Resource) + +SourceShortcut Resource + +## Example Usage + +```terraform +resource "airbyte_source_shortcut" "my_source_shortcut" { + configuration = { + api_key_2 = "...my_api_key_2..." + query = "...my_query..." + start_date = "2022-06-08T14:10:27.194Z" + } + definition_id = "2eff8de5-6504-4728-b0aa-ce290d7b3b35" + name = "Matt Wuckert" + secret_id = "...my_secret_id..." + workspace_id = "206e7c66-5127-464e-9e9c-d819ecc37ba1" +} +``` + + +## 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_2` (String, Sensitive) +- `start_date` (String) + +Optional: + +- `query` (String) Query for searching as defined in `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators`. Default: "title:Our first Epic" + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_shortcut.my_airbyte_source_shortcut "" +``` diff --git a/docs/resources/source_shortio.md b/docs/resources/source_shortio.md index 123536b7d..8bdfb36bf 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 = "54f47827-40a2-4b5a-8624-28ebc5c77ead" - name = "Kenneth Rutherford" + definition_id = "700ba64d-af2c-4d7c-8fe5-757a306443a7" + name = "Flora Ruecker" secret_id = "...my_secret_id..." - workspace_id = "e16ebe85-fa64-4aee-8d2b-de48eefceb9e" + workspace_id = "e2e1378d-b01d-476f-bdd2-7aa6e51f0c20" } ``` diff --git a/docs/resources/source_slack.md b/docs/resources/source_slack.md index bd2046ea2..96ae2ae92 100644 --- a/docs/resources/source_slack.md +++ b/docs/resources/source_slack.md @@ -28,10 +28,10 @@ resource "airbyte_source_slack" "my_source_slack" { lookback_window = 7 start_date = "2017-01-25T00:00:00Z" } - definition_id = "894bdd98-fe3f-492c-86a9-aa72702875ab" - name = "Everett Leuschke" + definition_id = "0cbfe39d-f03e-4297-96f5-cf39b34f9589" + name = "Ms. Miguel Crona" secret_id = "...my_secret_id..." - workspace_id = "98d79666-080f-43ec-ae3c-b491ea7992cd" + workspace_id = "f32822b8-2a15-49eb-82b7-c1d3540fbbe2" } ``` diff --git a/docs/resources/source_smaily.md b/docs/resources/source_smaily.md index ab0e05179..fba420758 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 = "63d3381e-fe3f-47d5-a433-d30ca4aa9f68" - name = "Elena Miller" + definition_id = "d8a9d001-0028-4d11-8128-0d807cdd8eb8" + name = "Ron Hermiston" secret_id = "...my_secret_id..." - workspace_id = "345ef318-3cb2-4e52-a86a-dbb57c5cbe7c" + workspace_id = "610938eb-2433-4624-98c5-c5aa0b5368b2" } ``` diff --git a/docs/resources/source_smartengage.md b/docs/resources/source_smartengage.md index bc27c05d9..940c6ad60 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 = "cff9d072-4747-4a4b-b7eb-205ddb7f1b71" - name = "Belinda Hilll IV" + definition_id = "6a568aa6-dc34-40bb-9546-957c12385870" + name = "Belinda Mills" secret_id = "...my_secret_id..." - workspace_id = "e103643a-6dfd-42a6-8225-b2ac62eb10f1" + workspace_id = "832c86da-d817-4ef7-9b41-7c7a0b7ebf79" } ``` diff --git a/docs/resources/source_smartsheets.md b/docs/resources/source_smartsheets.md index 21b857f95..09e94ec2c 100644 --- a/docs/resources/source_smartsheets.md +++ b/docs/resources/source_smartsheets.md @@ -21,15 +21,14 @@ resource "airbyte_source_smartsheets" "my_source_smartsheets" { } } metadata_fields = [ - "row_created_by", + "sheetcreatedAt", ] spreadsheet_id = "...my_spreadsheet_id..." - start_datetime = "2000-01-01T13:00:00" } - definition_id = "1fb8be04-16cb-449d-a06c-239e7af3ca2c" - name = "Shawn Pfannerstill" + definition_id = "1b079c0c-4f41-4192-8e56-2c711d3ef646" + name = "Donnie Kertzmann III" secret_id = "...my_secret_id..." - workspace_id = "92d74588-9040-4904-b267-ce86a322e02b" + workspace_id = "84e97a85-2f0c-4d22-882d-9facb8adccb7" } ``` @@ -63,7 +62,6 @@ Required: Optional: - `metadata_fields` (List of String) A List of available columns which metadata can be pulled from. -- `start_datetime` (String) Only rows modified after this date/time will be replicated. This should be an ISO 8601 string, for instance: `2000-01-01T13:00:00`. Default: "2020-01-01T00:00:00+00:00" ### Nested Schema for `configuration.credentials` diff --git a/docs/resources/source_snapchat_marketing.md b/docs/resources/source_snapchat_marketing.md index d553ae84e..d2171c621 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 = "conversion" + action_report_time = "impression" 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 = "1_DAY" - view_attribution_window = "1_DAY" + view_attribution_window = "6_HOUR" } - definition_id = "df5c3592-a5dd-47dd-bd79-7d2eb894fd68" - name = "Lynda Keebler" + definition_id = "85bedf1b-6a60-4ed1-862f-411dc6a0a7c7" + name = "Kathy Franecki III" secret_id = "...my_secret_id..." - workspace_id = "b1b8dbba-eb9b-45c2-a2ee-8b85f41cf2ef" + workspace_id = "4dd37177-b9cd-4d67-9dcd-9c0fa1c23293" } ``` diff --git a/docs/resources/source_snowflake.md b/docs/resources/source_snowflake.md index c065f0a77..5839773ae 100644 --- a/docs/resources/source_snowflake.md +++ b/docs/resources/source_snowflake.md @@ -29,10 +29,10 @@ resource "airbyte_source_snowflake" "my_source_snowflake" { schema = "AIRBYTE_SCHEMA" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "05e9e4de-da30-4dd3-8fb0-aa2fad058413" - name = "Penny Franecki" + definition_id = "f7ab2ac7-0a33-47a3-9131-b5bdf0c811e9" + name = "Pam Hoeger" secret_id = "...my_secret_id..." - workspace_id = "3e5de43c-907f-463c-802b-c2f7f5dfb2c2" + workspace_id = "0a295138-174c-4fa4-9536-74966ff0c642" } ``` diff --git a/docs/resources/source_sonar_cloud.md b/docs/resources/source_sonar_cloud.md index dc1b2a26c..49713cf2d 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 = "86915d33-24b4-4819-bf39-3429d3165dd8" - name = "Erika Hills" + definition_id = "d8ebc947-d1a3-46d8-935b-42d9b671ba3d" + name = "Dominick Boyer" secret_id = "...my_secret_id..." - workspace_id = "c61e20db-5f4b-4b11-860c-3a7ba336248b" + workspace_id = "eb3d6269-3ddf-4cad-b2b0-11f085229948" } ``` diff --git a/docs/resources/source_spacex_api.md b/docs/resources/source_spacex_api.md index a755d9f87..d0e88a920 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 = "e45dfad9-324f-46ab-9f83-34526eae71eb" + id = "5bd5b511-2966-4924-8de8-b867ddcc8cc1" options = "...my_options..." } - definition_id = "759d7dd0-bf2f-4572-9957-8fbbe9226a95" - name = "Elisa Wunsch" + definition_id = "e1eaa5cf-c4c8-40fc-904e-13748425fe8e" + name = "Cesar Ondricka III" secret_id = "...my_secret_id..." - workspace_id = "3d12e392-ce90-4b91-a9fb-30db2efb21ef" + workspace_id = "0ba9a257-9b42-44a0-9692-2966de033119" } ``` diff --git a/docs/resources/source_square.md b/docs/resources/source_square.md index 04c2f76d2..59d0768fe 100644 --- a/docs/resources/source_square.md +++ b/docs/resources/source_square.md @@ -20,14 +20,14 @@ resource "airbyte_source_square" "my_source_square" { api_key = "...my_api_key..." } } - include_deleted_objects = true - is_sandbox = true - start_date = "2022-03-17" + include_deleted_objects = false + is_sandbox = false + start_date = "2022-02-02" } - definition_id = "8bf07f2e-7721-4366-a46f-a9b2db7532b2" - name = "Edmund Reynolds" + definition_id = "4ba31afc-75cd-4175-a719-6a7541fa2a79" + name = "Rhonda Stehr I" secret_id = "...my_secret_id..." - workspace_id = "5b8d4ad9-bb4c-42d0-8c6c-eb0e4409659d" + workspace_id = "eedefb0b-3778-4954-a670-34f3e4d7496d" } ``` diff --git a/docs/resources/source_strava.md b/docs/resources/source_strava.md index 54aef4b65..7337c3361 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 = "ecaf35c1-5b37-479d-be3d-ccb9fd6e1ad7" - name = "Stella Balistreri" + definition_id = "b2343891-f649-4697-8812-8b0429b50eba" + name = "Angel Franey" secret_id = "...my_secret_id..." - workspace_id = "320ef50a-8ca7-46b0-83ea-280df1804a67" + workspace_id = "20deac9b-b7b4-45d9-a074-3b024bc119f8" } ``` diff --git a/docs/resources/source_stripe.md b/docs/resources/source_stripe.md index c2e75df77..7ed12bc27 100644 --- a/docs/resources/source_stripe.md +++ b/docs/resources/source_stripe.md @@ -18,15 +18,15 @@ resource "airbyte_source_stripe" "my_source_stripe" { account_id = "...my_account_id..." call_rate_limit = 100 client_secret = "...my_client_secret..." - lookback_window_days = 10 - num_workers = 1 - slice_range = 10 + lookback_window_days = 2 + num_workers = 2 + slice_range = 30 start_date = "2017-01-25T00:00:00Z" } - definition_id = "9512957c-2986-4967-96fe-05881022b8ad" - name = "Joann Schuster IV" + definition_id = "08449978-c5f0-4c0b-b0c5-d08d732ef691" + name = "Grady Block" secret_id = "...my_secret_id..." - workspace_id = "88754523-f36d-4ab5-9228-90f3e992c2a3" + workspace_id = "6e65b76b-dc3f-49ea-a358-d5b4415ac58f" } ``` diff --git a/docs/resources/source_survey_sparrow.md b/docs/resources/source_survey_sparrow.md index f44897ff1..f0156506b 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 = "f1f04aee-bc30-46c4-b339-7c20475faade" - name = "Wilbur Gleichner DVM" + definition_id = "47f127a6-aa10-4ba7-afbf-e0de8798ad00" + name = "Micheal DuBuque" secret_id = "...my_secret_id..." - workspace_id = "413dd760-cc3a-4e1d-b75e-e978f160f457" + workspace_id = "8a627c91-41ac-48dc-b207-c06da07742c2" } ``` diff --git a/docs/resources/source_surveymonkey.md b/docs/resources/source_surveymonkey.md index 3c5af916c..cc46028f0 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 = "Canada" + origin = "USA" start_date = "2021-01-01T00:00:00Z" survey_ids = [ "...", ] } - definition_id = "8fc026c7-cc4e-4afd-ab4c-1bcaf66c1286" - name = "Jerald Mertz" + definition_id = "fb370ea7-b020-459e-aef2-3fc13e66cf8a" + name = "Phil Mayer" secret_id = "...my_secret_id..." - workspace_id = "d6138285-42bb-437a-858f-acd1771a16ff" + workspace_id = "89f10b55-b793-412b-ab1b-52fdccb22b2f" } ``` diff --git a/docs/resources/source_survicate.md b/docs/resources/source_survicate.md new file mode 100644 index 000000000..3ed888ba6 --- /dev/null +++ b/docs/resources/source_survicate.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_survicate Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceSurvicate Resource +--- + +# airbyte_source_survicate (Resource) + +SourceSurvicate Resource + +## Example Usage + +```terraform +resource "airbyte_source_survicate" "my_source_survicate" { + configuration = { + api_key = "...my_api_key..." + start_date = "2022-10-30T10:23:23.725Z" + } + definition_id = "03e80205-4956-4e9a-ad9d-aedad833c055" + name = "Miss Salvador Hilpert IV" + secret_id = "...my_secret_id..." + workspace_id = "bbc1e380-6100-4a18-b6f5-072b636f98b5" +} +``` + + +## 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) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_survicate.my_airbyte_source_survicate "" +``` diff --git a/docs/resources/source_teamwork.md b/docs/resources/source_teamwork.md new file mode 100644 index 000000000..76a1ee9fa --- /dev/null +++ b/docs/resources/source_teamwork.md @@ -0,0 +1,68 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_teamwork Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceTeamwork Resource +--- + +# airbyte_source_teamwork (Resource) + +SourceTeamwork Resource + +## Example Usage + +```terraform +resource "airbyte_source_teamwork" "my_source_teamwork" { + configuration = { + password = "...my_password..." + site_name = "...my_site_name..." + start_date = "2020-06-27T05:03:40.451Z" + username = "Ambrose_Will80" + } + definition_id = "c17260a5-ebd0-4cf4-b5b7-2f05c18a11c8" + name = "Pedro Cartwright V" + secret_id = "...my_secret_id..." + workspace_id = "c2c7aa33-9899-4495-947b-12e2d4774d24" +} +``` + + +## 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: + +- `site_name` (String) The teamwork site name appearing at the url +- `start_date` (String) +- `username` (String) + +Optional: + +- `password` (String, Sensitive) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_teamwork.my_airbyte_source_teamwork "" +``` diff --git a/docs/resources/source_tempo.md b/docs/resources/source_tempo.md index 9910b3487..ca4028c75 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 = "46ac11eb-0243-4724-82fa-90b3fc58aed9" - name = "Kristen Erdman IV" + definition_id = "e5a5b3df-80e8-47ac-88d7-3096598895bd" + name = "Miss Kurt Larkin" secret_id = "...my_secret_id..." - workspace_id = "de960972-5c6d-45a5-9a35-039f4e4098bb" + workspace_id = "d18174b5-fdf3-4211-b15e-0b967ac0fe88" } ``` diff --git a/docs/resources/source_the_guardian_api.md b/docs/resources/source_the_guardian_api.md index a8fb72733..0538984f0 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 = "amusement park" - section = "housing-network" + query = "environment AND political" + section = "technology" start_date = "YYYY-MM-DD" tag = "environment/recycling" } - definition_id = "a23b3c01-3462-4186-acf5-18dbd5ebee01" - name = "Sonja Abshire" + definition_id = "7e848040-b9f1-4499-9ddb-8a59a67c83fd" + name = "Duane Sporer" secret_id = "...my_secret_id..." - workspace_id = "adc6f53d-253d-4b8b-9e39-d437be8f4cf7" + workspace_id = "0b32fa02-e1c3-46ea-ae2a-493453ab987b" } ``` diff --git a/docs/resources/source_tiktok_marketing.md b/docs/resources/source_tiktok_marketing.md index ffa3ef173..04ffdd0a6 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 = 6 + attribution_window = 5 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-01-13" - include_deleted = true - start_date = "2021-09-07" + end_date = "2022-05-10" + include_deleted = false + start_date = "2022-08-15" } - definition_id = "e012beba-22c9-4964-9ef6-30f5d8739c0e" - name = "Hazel Pfeffer" + definition_id = "eb5b6f75-d446-4aae-b18d-05d9d9e1d46f" + name = "Marc Boyer" secret_id = "...my_secret_id..." - workspace_id = "2ddb04c9-bce3-487d-a644-4a186797a763" + workspace_id = "54e9e7e5-7484-4de0-aaba-6f0f14e7378b" } ``` diff --git a/docs/resources/source_trello.md b/docs/resources/source_trello.md index 8907c79d3..ee2027272 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 = "0f99e008-79e4-4948-8a74-85520644aee4" - name = "Melinda Zboncak" + definition_id = "37527a54-8f48-410e-ab60-f065130056f9" + name = "Sonya Schulist" secret_id = "...my_secret_id..." - workspace_id = "df9bf84b-784e-4daa-b2f4-24ed308606f0" + workspace_id = "123a35af-023c-42b5-a9d8-41a38ae3ec6a" } ``` diff --git a/docs/resources/source_trustpilot.md b/docs/resources/source_trustpilot.md index d864ff688..6c6f70708 100644 --- a/docs/resources/source_trustpilot.md +++ b/docs/resources/source_trustpilot.md @@ -25,10 +25,10 @@ resource "airbyte_source_trustpilot" "my_source_trustpilot" { } start_date = "%Y-%m-%dT%H:%M:%SZ" } - definition_id = "992622de-7b1a-493e-9915-fe5844c8d7f9" - name = "Reginald Kreiger" + definition_id = "a76308e2-8188-410e-b61b-40ea12469466" + name = "Crystal Rutherford" secret_id = "...my_secret_id..." - workspace_id = "df74d23a-87a4-42ab-b6ae-57802daa8219" + workspace_id = "f85dbdf8-ab2f-4267-87a5-b6047904d383" } ``` diff --git a/docs/resources/source_tvmaze_schedule.md b/docs/resources/source_tvmaze_schedule.md index 4fff2300d..e83bb1e5c 100644 --- a/docs/resources/source_tvmaze_schedule.md +++ b/docs/resources/source_tvmaze_schedule.md @@ -18,12 +18,12 @@ resource "airbyte_source_tvmaze_schedule" "my_source_tvmazeschedule" { domestic_schedule_country_code = "GB" end_date = "...my_end_date..." start_date = "...my_start_date..." - web_schedule_country_code = "GB" + web_schedule_country_code = "global" } - definition_id = "eac7526c-0e68-4d41-b294-78bd831a4caf" - name = "Hattie Beer DVM" + definition_id = "f6a8328b-9367-4edf-a4a3-46dad742eb3f" + name = "Mr. Jack Dach" secret_id = "...my_secret_id..." - workspace_id = "2320a84c-82fe-4ed3-9fd4-712605259781" + workspace_id = "70668071-f391-47b5-a4a0-ba6fe0b4bda7" } ``` diff --git a/docs/resources/source_twilio.md b/docs/resources/source_twilio.md index 531e00d85..eb5b126ed 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 = "214e979a-9787-43ec-aec2-3f8936834bb7" - name = "Howard Herman" + definition_id = "23a3cf02-bc52-434b-8593-a96f3714908f" + name = "Dixie Gorczany" secret_id = "...my_secret_id..." - workspace_id = "a2eed97a-7ac9-43ce-a101-f692eff8de56" + workspace_id = "87082bd5-be86-4662-8ddb-59a0cab9b4c3" } ``` diff --git a/docs/resources/source_twilio_taskrouter.md b/docs/resources/source_twilio_taskrouter.md index e0a4a9c8e..7fb638840 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 = "50472830-aace-4290-97b3-b358aff5206e" - name = "Angelica Huels" + definition_id = "f12901d6-a4d9-4272-b20b-42214f471b20" + name = "Renee Schumm" secret_id = "...my_secret_id..." - workspace_id = "12764ede-9cd8-419e-8c37-ba1700ba64da" + workspace_id = "38b2a3f7-649c-47fe-8f2d-88dd1cee167e" } ``` diff --git a/docs/resources/source_twitter.md b/docs/resources/source_twitter.md index becc6d3b2..324378f47 100644 --- a/docs/resources/source_twitter.md +++ b/docs/resources/source_twitter.md @@ -16,14 +16,14 @@ SourceTwitter Resource resource "airbyte_source_twitter" "my_source_twitter" { configuration = { api_key = "...my_api_key..." - end_date = "2022-07-12T09:29:20.072Z" + end_date = "2021-04-21T11:17:41.200Z" query = "...my_query..." - start_date = "2020-06-17T06:17:32.127Z" + start_date = "2022-09-15T17:46:04.469Z" } - definition_id = "7c8fe575-7a30-4644-ba75-bcf4e2e1378d" - name = "Steven Brown" + definition_id = "daf01c7b-ae15-429d-8545-fe15a70ff5c6" + name = "Sally Pollich" secret_id = "...my_secret_id..." - workspace_id = "6f7dd27a-a6e5-41f0-820e-4312d0cbfe39" + workspace_id = "edc6409a-047c-475e-8f25-490869daf063" } ``` diff --git a/docs/resources/source_typeform.md b/docs/resources/source_typeform.md index a8bf570df..d736554df 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 = "2020-01-31T16:32:17.420Z" + token_expiry_date = "2022-07-29T12:53:45.825Z" } } form_ids = [ @@ -29,10 +29,10 @@ resource "airbyte_source_typeform" "my_source_typeform" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "e297d6f5-cf39-4b34-b958-9f42198f3282" - name = "Latoya Leuschke" + definition_id = "fb2f6de2-ea36-4801-8ecd-1ad5ec49d168" + name = "Jennie Klocko" secret_id = "...my_secret_id..." - workspace_id = "159ebc2b-7c1d-4354-8fbb-e2d8a9d00100" + workspace_id = "da8c4417-78e3-4947-a95b-8130b0d1b71f" } ``` diff --git a/docs/resources/source_us_census.md b/docs/resources/source_us_census.md index a9dec0468..ee0acdb67 100644 --- a/docs/resources/source_us_census.md +++ b/docs/resources/source_us_census.md @@ -16,13 +16,13 @@ SourceUsCensus Resource resource "airbyte_source_us_census" "my_source_uscensus" { configuration = { api_key = "...my_api_key..." - query_params = "get=NAME,NAICS2017_LABEL,LFO_LABEL,EMPSZES_LABEL,ESTAB,PAYANN,PAYQTR1,EMP&for=us:*&NAICS2017=72&LFO=001&EMPSZES=001" - query_path = "data/2018/acs" + query_params = "get=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:*" + query_path = "data/2019/cbp" } - definition_id = "d11c1280-d807-4cdd-8eb8-c75c4610938e" - name = "Benjamin Greenholt" + definition_id = "ee300f65-8219-4293-8e7b-1b4ec3d718f0" + name = "Miss Henrietta Sipes" secret_id = "...my_secret_id..." - workspace_id = "624d8c5c-5aa0-4b53-a8b2-6a568aa6dc34" + workspace_id = "a3001af4-d2a5-48a4-9f5f-d75cbebab8bd" } ``` diff --git a/docs/resources/source_vantage.md b/docs/resources/source_vantage.md index b618e4ee6..1747207fe 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 = "0bb15469-57c1-4238-9870-2998d832c86d" - name = "Ms. Wilfred Larkin" + definition_id = "8990fea4-c7f8-425f-b877-6c87f290dbb5" + name = "Carl Bins" secret_id = "...my_secret_id..." - workspace_id = "f75b417c-7a0b-47eb-b790-1b079c0c4f41" + workspace_id = "33e77c5c-900b-46e5-95bf-b7e7038464bf" } ``` diff --git a/docs/resources/source_webflow.md b/docs/resources/source_webflow.md index 20d3289a8..a7213a08f 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 = "1920e562-c711-4d3e-b646-ca6a0584e97a" - name = "Leon Corkery DDS" + definition_id = "64f6ff9e-8e9f-4b1f-942f-e101b4395357" + name = "Geoffrey Rowe" secret_id = "...my_secret_id..." - workspace_id = "d22882d9-facb-48ad-8cb7-919041885bed" + workspace_id = "4750edd3-b5b4-4d0f-887b-07cfdecccf7a" } ``` diff --git a/docs/resources/source_when_i_work.md b/docs/resources/source_when_i_work.md new file mode 100644 index 000000000..e8324a498 --- /dev/null +++ b/docs/resources/source_when_i_work.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_when_i_work Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceWhenIWork Resource +--- + +# airbyte_source_when_i_work (Resource) + +SourceWhenIWork Resource + +## Example Usage + +```terraform +resource "airbyte_source_when_i_work" "my_source_wheniwork" { + configuration = { + email = "Deshawn10@gmail.com" + password = "...my_password..." + } + definition_id = "75a9064a-5032-4959-97b8-87bcaaeb3780" + name = "Sean Stehr" + secret_id = "...my_secret_id..." + workspace_id = "7ca3ce9c-b3aa-45ee-b838-6c40c0bb623b" +} +``` + + +## 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: + +- `email` (String, Sensitive) Email of your when-i-work account +- `password` (String, Sensitive) Password for your when-i-work account + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_when_i_work.my_airbyte_source_when_i_work "" +``` diff --git a/docs/resources/source_whisky_hunter.md b/docs/resources/source_whisky_hunter.md index d45700568..2b81ce79b 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 = "f1b6a60e-d146-42f4-91dc-6a0a7c772330" - name = "Clara Shanahan" + definition_id = "c51ff84c-3c0a-4b4b-ae1a-36821935d459" + name = "Mr. Sergio Reichel" secret_id = "...my_secret_id..." - workspace_id = "7177b9cd-d675-4dcd-9c0f-a1c232938176" + workspace_id = "efa65de9-044a-406f-9294-180ca35f3494" } ``` diff --git a/docs/resources/source_wikipedia_pageviews.md b/docs/resources/source_wikipedia_pageviews.md index 7b0e31a06..947ca5fc8 100644 --- a/docs/resources/source_wikipedia_pageviews.md +++ b/docs/resources/source_wikipedia_pageviews.md @@ -16,17 +16,17 @@ SourceWikipediaPageviews Resource resource "airbyte_source_wikipedia_pageviews" "my_source_wikipediapageviews" { configuration = { access = "mobile-web" - agent = "user" + agent = "all-agents" article = "Are_You_the_One%3F" - country = "IN" + country = "FR" end = "...my_end..." - project = "en.wikipedia.org" + project = "www.mediawiki.org" start = "...my_start..." } - definition_id = "ac70a337-a3d1-431b-9bdf-0c811e90b6ae" - name = "Lee Deckow" + definition_id = "c999b10a-73ba-40c6-911f-95cb65e559b3" + name = "Lawrence Senger" secret_id = "...my_secret_id..." - workspace_id = "138174cf-a455-4367-8966-ff0c6426b6cd" + workspace_id = "bd06debd-ebc5-4381-8f44-a1e8a05bc47e" } ``` diff --git a/docs/resources/source_woocommerce.md b/docs/resources/source_woocommerce.md index b6bac0fba..264e43de8 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 = "bc947d1a-36d8-4135-b42d-9b671ba3daf1" - name = "Faith Watsica" + definition_id = "5b33aab9-bd23-403d-b2a1-c65a55e757d5" + name = "Nancy Grady" secret_id = "...my_secret_id..." - workspace_id = "d62693dd-fcad-432b-811f-0852299485bd" + workspace_id = "5c9b62f3-d937-4ad7-80fd-70a723540d37" } ``` diff --git a/docs/resources/source_xkcd.md b/docs/resources/source_xkcd.md index 07593921c..f557d2b29 100644 --- a/docs/resources/source_xkcd.md +++ b/docs/resources/source_xkcd.md @@ -17,10 +17,10 @@ resource "airbyte_source_xkcd" "my_source_xkcd" { configuration = { comic_number = "...my_comic_number..." } - definition_id = "5b511296-6924-4cde-8b86-7ddcc8cc1e1e" - name = "Dana Hickle" + definition_id = "dfb41358-a13b-44aa-916f-496122ab5517" + name = "Ronnie Lueilwitz" secret_id = "...my_secret_id..." - workspace_id = "c4c80fc9-04e1-4374-8425-fe8edba3050b" + workspace_id = "eb7876a0-574e-46cc-bce7-443ab0c740ec" } ``` diff --git a/docs/resources/source_yandex_metrica.md b/docs/resources/source_yandex_metrica.md index 9aa4d47f1..31eef330f 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 = "579b424a-0569-4229-a6de-0331191cf44b" - name = "Jacob Bergnaum" + definition_id = "7bfa06d4-99c4-49a4-9eb2-7129d8820f70" + name = "Andres Schumm" secret_id = "...my_secret_id..." - workspace_id = "c75cd175-6719-46a7-941f-a2a7924db04e" + workspace_id = "78e77f23-2c62-4b19-bfe7-2e063d1bd835" } ``` diff --git a/docs/resources/source_yotpo.md b/docs/resources/source_yotpo.md index 1a0b38db5..f56190976 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 = "Santiago_Von2@hotmail.com" + email = "Ismael_Bruen@gmail.com" start_date = "2022-03-01T00:00:00.000Z" } - definition_id = "77895426-7034-4f3e-8d74-96d90ab23438" - name = "Walter Wintheiser" + definition_id = "e8dd3803-417f-4b9b-870c-02d1bcbbed9b" + name = "Myra Romaguera II" secret_id = "...my_secret_id..." - workspace_id = "9697c812-8b04-429b-90eb-a2d38220deac" + workspace_id = "7eb1ca59-8630-42b5-876a-985642b25e45" } ``` diff --git a/docs/resources/source_youtube_analytics.md b/docs/resources/source_youtube_analytics.md index e10c70f9b..e24aaa359 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 = "9bb7b45d-9607-443b-824b-c119f8fb36f9" - name = "Ms. Marie Cummings" + definition_id = "9bfc35e9-0346-480b-8207-4084a44f8250" + name = "Delbert Pfeffer" secret_id = "...my_secret_id..." - workspace_id = "49978c5f-0c0b-470c-9d08-d732ef691ae1" + workspace_id = "e137bba0-0e04-4662-b501-253647b50bf3" } ``` diff --git a/docs/resources/source_zendesk_chat.md b/docs/resources/source_zendesk_chat.md index cba4c5076..8fa7b9ebd 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 = "6e65b76b-dc3f-49ea-a358-d5b4415ac58f" - name = "Kristine Yundt" + definition_id = "a08ea6fb-1c9f-4ea1-b3f2-b7b846f1d4ea" + name = "Cindy Glover PhD" secret_id = "...my_secret_id..." - workspace_id = "370ea7b0-2059-4e2e-b23f-c13e66cf8aae" + workspace_id = "7485ff0c-13c5-44df-81d9-04e542b79de7" } ``` diff --git a/docs/resources/source_zendesk_sunshine.md b/docs/resources/source_zendesk_sunshine.md index dfa12e863..e1f5208bf 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 = "Gracie_Howell@gmail.com" + email = "Hannah48@yahoo.com" } } start_date = "2021-01-01T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "7c9141ac-8dcf-4207-806d-a07742c26203" - name = "Felix Beer II" + definition_id = "03f51ef1-7f33-4075-8552-dc86ef5bfa62" + name = "Adrian Klocko" secret_id = "...my_secret_id..." - workspace_id = "4956e9a2-d9da-4eda-9833-c055c950c18b" + workspace_id = "8c8ef0ca-87b0-4611-9e8d-1dd81a7a336c" } ``` diff --git a/docs/resources/source_zendesk_support.md b/docs/resources/source_zendesk_support.md index 32e1878a7..f14bcf3e9 100644 --- a/docs/resources/source_zendesk_support.md +++ b/docs/resources/source_zendesk_support.md @@ -19,17 +19,16 @@ resource "airbyte_source_zendesk_support" "my_source_zendesksupport" { api_token = { additional_properties = "{ \"see\": \"documentation\" }" api_token = "...my_api_token..." - email = "Priscilla.Bergstrom51@hotmail.com" + email = "Sibyl.Kuhn37@hotmail.com" } } - ignore_pagination = true - start_date = "2020-10-15T00:00:00Z" - subdomain = "...my_subdomain..." + start_date = "2020-10-15T00:00:00Z" + subdomain = "...my_subdomain..." } - definition_id = "00a18f6f-5072-4b63-af98-b5cd0fbbcc17" - name = "Katie Bartoletti" + definition_id = "7d0d61fb-64b1-495d-b09b-664eddec27a2" + name = "Byron Lakin" secret_id = "...my_secret_id..." - workspace_id = "ebd0cf43-5b72-4f05-818a-11c8951c09c2" + workspace_id = "54579de1-c1b0-4368-bea0-77f09d380eb8" } ``` @@ -62,7 +61,6 @@ Required: Optional: - `credentials` (Attributes) Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. (see [below for nested schema](#nestedatt--configuration--credentials)) -- `ignore_pagination` (Boolean) Makes each stream read a single page of data. Default: false - `start_date` (String) The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. diff --git a/docs/resources/source_zendesk_talk.md b/docs/resources/source_zendesk_talk.md index 90210b859..212103808 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 = "Jan.OConner@hotmail.com" + email = "Rosetta80@yahoo.com" } } start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "89949514-7b12-4e2d-8774-d24e5a5b3df8" - name = "Kerry Lynch" + definition_id = "4fedbcbf-3e77-4c50-8d4a-9e4cf2cbf64f" + name = "Mrs. Dana Durgan" secret_id = "...my_secret_id..." - workspace_id = "c48d7309-6598-4895-bdb7-81b6d18174b5" + workspace_id = "f5123775-cbfc-468f-bdb9-d76708c4a402" } ``` diff --git a/docs/resources/source_zenloop.md b/docs/resources/source_zenloop.md index 5fdd4a48c..cf15e1f8b 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 = "fdf3211f-15e0-4b96-bac0-fe887647e848" - name = "Pauline Bechtelar" + definition_id = "515d7f66-3f4a-4f02-981b-fb7704b3ca57" + name = "Mrs. Cassandra Schmidt" secret_id = "...my_secret_id..." - workspace_id = "f14991dd-b8a5-49a6-bc83-fdb6d5a0b32f" + workspace_id = "ea5ae8be-9a74-4d2f-a902-70b8919de211" } ``` diff --git a/docs/resources/source_zoho_crm.md b/docs/resources/source_zoho_crm.md index e71ebfd96..9d9104c81 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 = "IN" - edition = "Free" - environment = "Production" + dc_region = "EU" + edition = "Enterprise" + environment = "Sandbox" refresh_token = "...my_refresh_token..." - start_datetime = "2000-01-01T13:00:00-07:00" + start_datetime = "2000-01-01 13:00" } - definition_id = "36ea6e2a-4934-453a-b987-b81a066eb5b6" - name = "Gabriel Hartmann" + definition_id = "6f243316-dd2c-4a1b-893b-a4ee10def03d" + name = "Dr. Alice Wuckert" secret_id = "...my_secret_id..." - workspace_id = "46aaeb18-d05d-49d9-a1d4-6fb619254e9e" + workspace_id = "d688efce-4cb4-4a0c-8783-aaeb2f046b35" } ``` diff --git a/docs/resources/source_zoom.md b/docs/resources/source_zoom.md index c89990ad2..8af3ce796 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 = "7e57484d-e0ea-4ba6-b0f1-4e7378bf2375" - name = "Allison Ondricka" + definition_id = "14db9a0e-6f1f-46fb-a229-4ac15ae0525b" + name = "Johnnie Braun" secret_id = "...my_secret_id..." - workspace_id = "8f4810e2-b60f-4065-9300-56f91ac7e123" + workspace_id = "8032522c-1981-45ba-94d9-03614afc86e6" } ``` diff --git a/docs/resources/workspace.md b/docs/resources/workspace.md index 4b065239e..10bf6bdd8 100644 --- a/docs/resources/workspace.md +++ b/docs/resources/workspace.md @@ -14,8 +14,8 @@ Workspace Resource ```terraform resource "airbyte_workspace" "my_workspace" { - name = "Leonard Hamill" - organization_id = "023c2b52-9d84-41a3-8ae3-ec6aa76308e2" + name = "Tara Wiza" + organization_id = "a0c5318a-3511-4952-a18f-333c5e795edb" } ``` diff --git a/examples/data-sources/airbyte_destination_dev_null/data-source.tf b/examples/data-sources/airbyte_destination_dev_null/data-source.tf deleted file mode 100644 index 8f7090375..000000000 --- a/examples/data-sources/airbyte_destination_dev_null/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -data "airbyte_destination_dev_null" "my_destination_devnull" { - destination_id = "...my_destination_id..." -} \ No newline at end of file diff --git a/examples/data-sources/airbyte_destination_pgvector/data-source.tf b/examples/data-sources/airbyte_destination_pgvector/data-source.tf new file mode 100644 index 000000000..e6269a86a --- /dev/null +++ b/examples/data-sources/airbyte_destination_pgvector/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_destination_pgvector" "my_destination_pgvector" { + destination_id = "...my_destination_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_7shifts/data-source.tf b/examples/data-sources/airbyte_source_7shifts/data-source.tf new file mode 100644 index 000000000..f7776ee7f --- /dev/null +++ b/examples/data-sources/airbyte_source_7shifts/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_7shifts" "my_source_7shifts" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_appcues/data-source.tf b/examples/data-sources/airbyte_source_appcues/data-source.tf new file mode 100644 index 000000000..b6503bcc1 --- /dev/null +++ b/examples/data-sources/airbyte_source_appcues/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_appcues" "my_source_appcues" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_appfigures/data-source.tf b/examples/data-sources/airbyte_source_appfigures/data-source.tf new file mode 100644 index 000000000..23a5251b6 --- /dev/null +++ b/examples/data-sources/airbyte_source_appfigures/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_appfigures" "my_source_appfigures" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_bitly/data-source.tf b/examples/data-sources/airbyte_source_bitly/data-source.tf new file mode 100644 index 000000000..824e535b1 --- /dev/null +++ b/examples/data-sources/airbyte_source_bitly/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_bitly" "my_source_bitly" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_brevo/data-source.tf b/examples/data-sources/airbyte_source_brevo/data-source.tf new file mode 100644 index 000000000..b6aa095fe --- /dev/null +++ b/examples/data-sources/airbyte_source_brevo/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_brevo" "my_source_brevo" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_buildkite/data-source.tf b/examples/data-sources/airbyte_source_buildkite/data-source.tf new file mode 100644 index 000000000..dddd1c649 --- /dev/null +++ b/examples/data-sources/airbyte_source_buildkite/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_buildkite" "my_source_buildkite" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_buzzsprout/data-source.tf b/examples/data-sources/airbyte_source_buzzsprout/data-source.tf new file mode 100644 index 000000000..d692260f1 --- /dev/null +++ b/examples/data-sources/airbyte_source_buzzsprout/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_buzzsprout" "my_source_buzzsprout" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_canny/data-source.tf b/examples/data-sources/airbyte_source_canny/data-source.tf new file mode 100644 index 000000000..3f95663cf --- /dev/null +++ b/examples/data-sources/airbyte_source_canny/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_canny" "my_source_canny" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_chameleon/data-source.tf b/examples/data-sources/airbyte_source_chameleon/data-source.tf new file mode 100644 index 000000000..853898a30 --- /dev/null +++ b/examples/data-sources/airbyte_source_chameleon/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_chameleon" "my_source_chameleon" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_cimis/data-source.tf b/examples/data-sources/airbyte_source_cimis/data-source.tf new file mode 100644 index 000000000..e759ac7be --- /dev/null +++ b/examples/data-sources/airbyte_source_cimis/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_cimis" "my_source_cimis" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_ezofficeinventory/data-source.tf b/examples/data-sources/airbyte_source_ezofficeinventory/data-source.tf new file mode 100644 index 000000000..323783c8e --- /dev/null +++ b/examples/data-sources/airbyte_source_ezofficeinventory/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_ezofficeinventory" "my_source_ezofficeinventory" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_front/data-source.tf b/examples/data-sources/airbyte_source_front/data-source.tf new file mode 100644 index 000000000..7df1a07c9 --- /dev/null +++ b/examples/data-sources/airbyte_source_front/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_front" "my_source_front" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_google_tasks/data-source.tf b/examples/data-sources/airbyte_source_google_tasks/data-source.tf new file mode 100644 index 000000000..f5ec3cbc7 --- /dev/null +++ b/examples/data-sources/airbyte_source_google_tasks/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_google_tasks" "my_source_googletasks" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_guru/data-source.tf b/examples/data-sources/airbyte_source_guru/data-source.tf new file mode 100644 index 000000000..8b237f7b4 --- /dev/null +++ b/examples/data-sources/airbyte_source_guru/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_guru" "my_source_guru" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_height/data-source.tf b/examples/data-sources/airbyte_source_height/data-source.tf new file mode 100644 index 000000000..84a512feb --- /dev/null +++ b/examples/data-sources/airbyte_source_height/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_height" "my_source_height" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_jotform/data-source.tf b/examples/data-sources/airbyte_source_jotform/data-source.tf new file mode 100644 index 000000000..121fba4d8 --- /dev/null +++ b/examples/data-sources/airbyte_source_jotform/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_jotform" "my_source_jotform" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_nylas/data-source.tf b/examples/data-sources/airbyte_source_nylas/data-source.tf new file mode 100644 index 000000000..7f4afbb6a --- /dev/null +++ b/examples/data-sources/airbyte_source_nylas/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_nylas" "my_source_nylas" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_picqer/data-source.tf b/examples/data-sources/airbyte_source_picqer/data-source.tf new file mode 100644 index 000000000..155136307 --- /dev/null +++ b/examples/data-sources/airbyte_source_picqer/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_picqer" "my_source_picqer" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_piwik/data-source.tf b/examples/data-sources/airbyte_source_piwik/data-source.tf new file mode 100644 index 000000000..3a6be918c --- /dev/null +++ b/examples/data-sources/airbyte_source_piwik/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_piwik" "my_source_piwik" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_productboard/data-source.tf b/examples/data-sources/airbyte_source_productboard/data-source.tf new file mode 100644 index 000000000..f7de23838 --- /dev/null +++ b/examples/data-sources/airbyte_source_productboard/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_productboard" "my_source_productboard" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_productive/data-source.tf b/examples/data-sources/airbyte_source_productive/data-source.tf new file mode 100644 index 000000000..96c5ec006 --- /dev/null +++ b/examples/data-sources/airbyte_source_productive/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_productive" "my_source_productive" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_shortcut/data-source.tf b/examples/data-sources/airbyte_source_shortcut/data-source.tf new file mode 100644 index 000000000..b5ff4b981 --- /dev/null +++ b/examples/data-sources/airbyte_source_shortcut/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_shortcut" "my_source_shortcut" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_survicate/data-source.tf b/examples/data-sources/airbyte_source_survicate/data-source.tf new file mode 100644 index 000000000..843200ee0 --- /dev/null +++ b/examples/data-sources/airbyte_source_survicate/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_survicate" "my_source_survicate" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_teamwork/data-source.tf b/examples/data-sources/airbyte_source_teamwork/data-source.tf new file mode 100644 index 000000000..29e30ffee --- /dev/null +++ b/examples/data-sources/airbyte_source_teamwork/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_teamwork" "my_source_teamwork" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_when_i_work/data-source.tf b/examples/data-sources/airbyte_source_when_i_work/data-source.tf new file mode 100644 index 000000000..74983e769 --- /dev/null +++ b/examples/data-sources/airbyte_source_when_i_work/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_when_i_work" "my_source_wheniwork" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_zendesk_sell/data-source.tf b/examples/data-sources/airbyte_source_zendesk_sell/data-source.tf deleted file mode 100644 index ecb04ca59..000000000 --- a/examples/data-sources/airbyte_source_zendesk_sell/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -data "airbyte_source_zendesk_sell" "my_source_zendesksell" { - source_id = "...my_source_id..." -} \ No newline at end of file diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index d583f70fa..6812048a5 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { airbyte = { source = "airbytehq/airbyte" - version = "0.11.0" + version = "0.13.0" } } } diff --git a/examples/resources/airbyte_destination_clickhouse/resource.tf b/examples/resources/airbyte_destination_clickhouse/resource.tf index b55cf48ac..5eabdd596 100644 --- a/examples/resources/airbyte_destination_clickhouse/resource.tf +++ b/examples/resources/airbyte_destination_clickhouse/resource.tf @@ -6,12 +6,13 @@ resource "airbyte_destination_clickhouse" "my_destination_clickhouse" { password = "...my_password..." port = 8123 raw_data_schema = "...my_raw_data_schema..." + ssl = false tunnel_method = { no_tunnel = {} } - username = "Adah75" + username = "Mekhi.Cronin85" } - definition_id = "6d65d335-e03a-4beb-b71b-58e872ec68b6" - name = "Shawn Olson" - workspace_id = "48b53694-1566-4f22-bd30-a28af8c1d27b" + definition_id = "65d335e0-3abe-4bb7-9b58-e872ec68b6d2" + name = "Wade Schimmel" + workspace_id = "b5369415-66f2-42fd-b0a2-8af8c1d27b3e" } \ 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 f556b5045..6c37af9d0 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 = "e573c0eb-8223-4613-923c-e875293aec4a" - name = "Miss Peter Abernathy" - workspace_id = "23922581-a884-452d-a7c3-5eb92a9e952d" + definition_id = "73c0eb82-2361-43d2-bce8-75293aec4aa1" + name = "Jennifer Rogahn I" + workspace_id = "922581a8-8452-4de7-835e-b92a9e952da2" } \ 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 0aaf7a863..2a8653b2f 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 = "a293962c-006a-4ece-a7c8-84619655998a" - name = "Roy Grimes" - workspace_id = "c560fc49-48d7-4191-bbd7-7158c7e04c57" + definition_id = "93962c00-6aec-4ee7-8884-619655998ae2" + name = "Gwen Tillman" + workspace_id = "60fc4948-d719-417b-9771-58c7e04c5798" } \ 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 b85b0ee09..edf04beea 100644 --- a/examples/resources/airbyte_destination_databricks/resource.tf +++ b/examples/resources/airbyte_destination_databricks/resource.tf @@ -1,6 +1,6 @@ resource "airbyte_destination_databricks" "my_destination_databricks" { configuration = { - accept_terms = false + accept_terms = true authentication = { o_auth2_recommended = { client_id = "...my_client_id..." @@ -15,7 +15,7 @@ resource "airbyte_destination_databricks" "my_destination_databricks" { raw_schema_override = "...my_raw_schema_override..." schema = "default" } - definition_id = "bfbb5605-d730-46cf-a6f6-0bfc11e74f73" - name = "Janis Kohler" - workspace_id = "53e98a4c-0499-445e-9d6e-956416d119e8" + definition_id = "bb5605d7-306c-4fa6-b60b-fc11e74f736d" + name = "Molly Medhurst" + workspace_id = "e98a4c04-9945-4edd-ae95-6416d119e802" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_dev_null/import.sh b/examples/resources/airbyte_destination_dev_null/import.sh deleted file mode 100644 index 8bb0bfa3a..000000000 --- a/examples/resources/airbyte_destination_dev_null/import.sh +++ /dev/null @@ -1 +0,0 @@ -terraform import airbyte_destination_dev_null.my_airbyte_destination_dev_null "" diff --git a/examples/resources/airbyte_destination_dev_null/resource.tf b/examples/resources/airbyte_destination_dev_null/resource.tf deleted file mode 100644 index 605947f98..000000000 --- a/examples/resources/airbyte_destination_dev_null/resource.tf +++ /dev/null @@ -1,10 +0,0 @@ -resource "airbyte_destination_dev_null" "my_destination_devnull" { - configuration = { - test_destination = { - silent = {} - } - } - definition_id = "02e07129-d464-44f9-9d3d-54c7cfb82ef1" - name = "Larry Brekke" - workspace_id = "57477c9e-2c85-4c90-8a20-3ff157a47112" -} \ No newline at end of file diff --git a/examples/resources/airbyte_destination_duckdb/resource.tf b/examples/resources/airbyte_destination_duckdb/resource.tf index a32d49c5a..2489b781b 100644 --- a/examples/resources/airbyte_destination_duckdb/resource.tf +++ b/examples/resources/airbyte_destination_duckdb/resource.tf @@ -4,7 +4,7 @@ resource "airbyte_destination_duckdb" "my_destination_duckdb" { motherduck_api_key = "...my_motherduck_api_key..." schema = "main" } - definition_id = "b1eeca9f-91eb-458c-b325-7456993f0626" - name = "Tom Kertzmann PhD" - workspace_id = "1987ed52-cbff-4018-9893-5bdfe2750539" + definition_id = "07129d46-44f9-4dd3-954c-7cfb82ef1e01" + name = "Emmett Herzog" + workspace_id = "77c9e2c8-5c90-44a2-83ff-157a47112db1" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_dynamodb/resource.tf b/examples/resources/airbyte_destination_dynamodb/resource.tf index 03926d0bf..7068dce57 100644 --- a/examples/resources/airbyte_destination_dynamodb/resource.tf +++ b/examples/resources/airbyte_destination_dynamodb/resource.tf @@ -2,11 +2,11 @@ resource "airbyte_destination_dynamodb" "my_destination_dynamodb" { configuration = { access_key_id = "A012345678910EXAMPLE" dynamodb_endpoint = "http://localhost:9000" - dynamodb_region = "us-west-1" + dynamodb_region = "us-gov-west-1" dynamodb_table_name_prefix = "airbyte_sync" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "4b807f99-3efa-4e2d-8af8-6589dab1153f" - name = "Eileen Kerluke" - workspace_id = "90b0855a-a0db-4797-942b-e7e5f1f78855" + definition_id = "eca9f91e-b58c-4332-9745-6993f0626846" + name = "Ms. Betty Shanahan" + workspace_id = "7ed52cbf-f018-4589-b5bd-fe2750539f4b" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_elasticsearch/resource.tf b/examples/resources/airbyte_destination_elasticsearch/resource.tf index 1384f50a3..30c6df131 100644 --- a/examples/resources/airbyte_destination_elasticsearch/resource.tf +++ b/examples/resources/airbyte_destination_elasticsearch/resource.tf @@ -8,9 +8,12 @@ resource "airbyte_destination_elasticsearch" "my_destination_elasticsearch" { } ca_certificate = "...my_ca_certificate..." endpoint = "...my_endpoint..." - upsert = false + tunnel_method = { + no_tunnel = {} + } + upsert = false } - definition_id = "635457da-65ed-4465-a758-afd2ad38ed7e" - name = "Thomas Vandervort" - workspace_id = "2212dc7d-0e4e-4509-9ed9-4b4ecb397d06" + definition_id = "07f993ef-ae2d-4caf-8658-9dab1153f466" + name = "Miss Harvey Mohr IV" + workspace_id = "55aa0db7-9794-42be-be5f-1f7885566354" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_firebolt/resource.tf b/examples/resources/airbyte_destination_firebolt/resource.tf index 069dd9184..196a7f920 100644 --- a/examples/resources/airbyte_destination_firebolt/resource.tf +++ b/examples/resources/airbyte_destination_firebolt/resource.tf @@ -15,7 +15,7 @@ resource "airbyte_destination_firebolt" "my_destination_firebolt" { } } } - definition_id = "4562efb7-ef5d-437e-a6e5-cbc1c0786ea3" - name = "Alfonso Grimes" - workspace_id = "c4202097-dcad-41af-a414-5a8ead644361" + definition_id = "57da65ed-465e-4758-afd2-ad38ed7ed0e5" + name = "Mr. Benjamin Collins" + workspace_id = "c7d0e4e5-095e-4d94-b4ec-b397d064562e" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_firestore/resource.tf b/examples/resources/airbyte_destination_firestore/resource.tf index 9f83f0c3c..5f4547704 100644 --- a/examples/resources/airbyte_destination_firestore/resource.tf +++ b/examples/resources/airbyte_destination_firestore/resource.tf @@ -3,7 +3,7 @@ resource "airbyte_destination_firestore" "my_destination_firestore" { credentials_json = "...my_credentials_json..." project_id = "...my_project_id..." } - definition_id = "fa9c0130-5655-43a4-a50c-dde3bcff11f6" - name = "Angela Will" - workspace_id = "23b2f88e-15f8-468b-b037-297dcd66bcb9" + definition_id = "fb7ef5d3-7ea6-4e5c-bc1c-0786ea3ea494" + name = "Mr. Ray Cummerata V" + workspace_id = "7dcad1af-a414-45a8-aad6-44361fa9c013" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_gcs/resource.tf b/examples/resources/airbyte_destination_gcs/resource.tf index 5d32ae2e4..d2fc48587 100644 --- a/examples/resources/airbyte_destination_gcs/resource.tf +++ b/examples/resources/airbyte_destination_gcs/resource.tf @@ -19,9 +19,9 @@ resource "airbyte_destination_gcs" "my_destination_gcs" { } gcs_bucket_name = "airbyte_sync" gcs_bucket_path = "data_sync/test" - gcs_bucket_region = "asia-northeast3" + gcs_bucket_region = "northamerica-northeast2" } - definition_id = "13f0bea6-4a23-47e4-a59e-7bfd1d496bd1" - name = "Christie Altenwerth" - workspace_id = "4a7d5d4b-2ee1-453b-82c3-2f48f6e543a0" + definition_id = "56553a4e-50cd-4de3-bcff-11f630fa923b" + name = "Elisa Lakin" + workspace_id = "15f868bf-0372-497d-8d66-bcb9a13f0bea" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_google_sheets/resource.tf b/examples/resources/airbyte_destination_google_sheets/resource.tf index adf25e881..610e9f352 100644 --- a/examples/resources/airbyte_destination_google_sheets/resource.tf +++ b/examples/resources/airbyte_destination_google_sheets/resource.tf @@ -7,7 +7,7 @@ resource "airbyte_destination_google_sheets" "my_destination_googlesheets" { } spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit" } - definition_id = "f0f39a6c-151a-478c-b13c-3589bc3eaba6" - name = "Freda Dicki" - workspace_id = "7f09ed83-2d18-4ddd-bef1-f87bb5069e16" + definition_id = "64a237e4-a59e-47bf-91d4-96bd14d08d4a" + name = "Marcella Hand" + workspace_id = "b2ee153b-42c3-42f4-8f6e-543a0f0f39a6" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_milvus/resource.tf b/examples/resources/airbyte_destination_milvus/resource.tf index d0f21b896..8bea596bc 100644 --- a/examples/resources/airbyte_destination_milvus/resource.tf +++ b/examples/resources/airbyte_destination_milvus/resource.tf @@ -15,14 +15,14 @@ resource "airbyte_destination_milvus" "my_destination_milvus" { } collection = "...my_collection..." db = "...my_db..." - host = "tcp://host.docker.internal:19530" + host = "tcp://my-local-milvus:19530" text_field = "...my_text_field..." vector_field = "...my_vector_field..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 6 - chunk_size = 4 + chunk_overlap = 3 + chunk_size = 0 field_name_mappings = [ { from_field = "...my_from_field..." @@ -37,12 +37,12 @@ resource "airbyte_destination_milvus" "my_destination_milvus" { ] text_splitter = { by_markdown_header = { - split_level = 2 + split_level = 7 } } } } - definition_id = "5a4e1801-23f0-4d76-bb78-bf74fa22de12" - name = "Jenny Braun" - workspace_id = "f134d000-7497-474a-a87c-30892ffb0f41" + definition_id = "78cf13c3-589b-4c3e-aba6-3d3987f09ed8" + name = "Ms. Marilyn Sporer" + workspace_id = "ddbef1f8-7bb5-4069-a16a-5a735a4e1801" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_mongodb/resource.tf b/examples/resources/airbyte_destination_mongodb/resource.tf index 0e99749fb..5c5a65178 100644 --- a/examples/resources/airbyte_destination_mongodb/resource.tf +++ b/examples/resources/airbyte_destination_mongodb/resource.tf @@ -3,7 +3,7 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { auth_type = { login_password = { password = "...my_password..." - username = "Ubaldo12" + username = "Britney.Feeney86" } } database = "...my_database..." @@ -17,7 +17,7 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { no_tunnel = {} } } - definition_id = "48d60128-3384-4bd8-bb5c-ce3614854333" - name = "Courtney Considine" - workspace_id = "5e509f45-2521-4a04-b878-c254cd184fd1" + definition_id = "76fb78bf-74fa-422d-a127-91b5f134d000" + name = "Jamie Metz" + workspace_id = "4ae87c30-892f-4fb0-b41f-82248d601283" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_mssql/resource.tf b/examples/resources/airbyte_destination_mssql/resource.tf index a8d18de0f..3f272f11d 100644 --- a/examples/resources/airbyte_destination_mssql/resource.tf +++ b/examples/resources/airbyte_destination_mssql/resource.tf @@ -13,9 +13,9 @@ resource "airbyte_destination_mssql" "my_destination_mssql" { tunnel_method = { no_tunnel = {} } - username = "Hope.Toy" + username = "Justus_Hahn54" } - definition_id = "f1c50c9e-c767-447b-86cf-86fe4a6f8bb8" - name = "Lisa Von" - workspace_id = "46f802e7-b218-43b2-bc4f-6db7afdacad2" + definition_id = "7b5cce36-1485-4433-bdf2-3c5e509f4525" + name = "Mrs. Anna Pfannerstill" + workspace_id = "878c254c-d184-4fd1-96e7-5f1c50c9ec76" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_mysql/resource.tf b/examples/resources/airbyte_destination_mysql/resource.tf index ac85f61c3..6540a9e41 100644 --- a/examples/resources/airbyte_destination_mysql/resource.tf +++ b/examples/resources/airbyte_destination_mysql/resource.tf @@ -1,18 +1,19 @@ resource "airbyte_destination_mysql" "my_destination_mysql" { configuration = { database = "...my_database..." - disable_type_dedupe = false + disable_type_dedupe = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." port = 3306 raw_data_schema = "...my_raw_data_schema..." + ssl = false tunnel_method = { no_tunnel = {} } - username = "Deon.Russel49" + username = "Melody_Abernathy" } - definition_id = "a6683bb7-6cbd-4d42-804b-7b603cc8cd88" - name = "Tricia Klocko I" - workspace_id = "813ef7fc-0d17-46e5-b414-549f1242182d" + definition_id = "f86fe4a6-f8bb-4810-ad64-6f802e7b2183" + name = "Phillip Prohaska" + workspace_id = "f6db7afd-acad-42c1-8cf1-7a6683bb76cb" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_oracle/resource.tf b/examples/resources/airbyte_destination_oracle/resource.tf index 1ab3c8868..6c236c34f 100644 --- a/examples/resources/airbyte_destination_oracle/resource.tf +++ b/examples/resources/airbyte_destination_oracle/resource.tf @@ -1,5 +1,10 @@ resource "airbyte_destination_oracle" "my_destination_oracle" { configuration = { + encryption = { + native_network_encryption_nne = { + encryption_algorithm = "3DES168" + } + } host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." @@ -10,9 +15,9 @@ resource "airbyte_destination_oracle" "my_destination_oracle" { tunnel_method = { no_tunnel = {} } - username = "Emmalee.Towne89" + username = "Dolores.Cummerata25" } - definition_id = "895c9212-6184-452d-9432-f33897fec4ca" - name = "Adrienne Lockman" - workspace_id = "bf882725-c3c6-4bc3-9a6d-3f396b39ea0e" + definition_id = "b7b603cc-8cd8-487e-b603-813ef7fc0d17" + name = "Eloise Hilpert" + workspace_id = "14549f12-4218-42d1-9ef4-e895c9212618" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_pgvector/import.sh b/examples/resources/airbyte_destination_pgvector/import.sh new file mode 100644 index 000000000..71badb9f6 --- /dev/null +++ b/examples/resources/airbyte_destination_pgvector/import.sh @@ -0,0 +1 @@ +terraform import airbyte_destination_pgvector.my_airbyte_destination_pgvector "" diff --git a/examples/resources/airbyte_destination_pgvector/resource.tf b/examples/resources/airbyte_destination_pgvector/resource.tf new file mode 100644 index 000000000..a127e6942 --- /dev/null +++ b/examples/resources/airbyte_destination_pgvector/resource.tf @@ -0,0 +1,46 @@ +resource "airbyte_destination_pgvector" "my_destination_pgvector" { + configuration = { + embedding = { + azure_open_ai = { + api_base = "https://your-resource-name.openai.azure.com" + deployment = "your-resource-name" + openai_key = "...my_openai_key..." + } + } + indexing = { + credentials = { + password = "AIRBYTE_PASSWORD" + } + database = "AIRBYTE_DATABASE" + default_schema = "AIRBYTE_SCHEMA" + host = "AIRBYTE_ACCOUNT" + port = 5432 + username = "AIRBYTE_USER" + } + omit_raw_text = true + processing = { + chunk_overlap = 1 + chunk_size = 10 + field_name_mappings = [ + { + from_field = "...my_from_field..." + to_field = "...my_to_field..." + }, + ] + metadata_fields = [ + "...", + ] + text_fields = [ + "...", + ] + text_splitter = { + by_markdown_header = { + split_level = 2 + } + } + } + } + definition_id = "3897fec4-ca4c-48c4-bf88-2725c3c6bc39" + name = "Tyler Smith" + workspace_id = "396b39ea-0e10-4165-90e1-a2bc7de0ff63" +} \ No newline at end of file diff --git a/examples/resources/airbyte_destination_pinecone/resource.tf b/examples/resources/airbyte_destination_pinecone/resource.tf index 4d03ebcc1..26e8f307f 100644 --- a/examples/resources/airbyte_destination_pinecone/resource.tf +++ b/examples/resources/airbyte_destination_pinecone/resource.tf @@ -12,10 +12,10 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { pinecone_environment = "us-west1-gcp" pinecone_key = "...my_pinecone_key..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 0 - chunk_size = 4 + chunk_overlap = 5 + chunk_size = 3 field_name_mappings = [ { from_field = "...my_from_field..." @@ -30,12 +30,12 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { ] text_splitter = { by_markdown_header = { - split_level = 3 + split_level = 6 } } } } - definition_id = "90e1a2bc-7de0-4ff6-b737-4915d3efc2cd" - name = "Jorge Beahan" - workspace_id = "6acc1e6f-1291-4560-8b55-b326e06d2448" + definition_id = "15d3efc2-cd95-40e3-aacc-1e6f12915604" + name = "Lloyd Hartmann" + workspace_id = "26e06d24-48e4-4e42-a530-50a9afbc66c9" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_postgres/resource.tf b/examples/resources/airbyte_destination_postgres/resource.tf index 46d2472ef..30b2ae8a0 100644 --- a/examples/resources/airbyte_destination_postgres/resource.tf +++ b/examples/resources/airbyte_destination_postgres/resource.tf @@ -1,23 +1,24 @@ resource "airbyte_destination_postgres" "my_destination_postgres" { configuration = { database = "...my_database..." - disable_type_dedupe = true - drop_cascade = false + disable_type_dedupe = false + drop_cascade = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." port = 5432 raw_data_schema = "...my_raw_data_schema..." schema = "public" + ssl = true ssl_mode = { allow = {} } tunnel_method = { no_tunnel = {} } - username = "Ed.Crooks" + username = "Micaela.Kris" } - definition_id = "3050a9af-bc66-4c91-ba5b-78062a6a13d9" - name = "Cody Williamson" - workspace_id = "598ffb04-2924-4fae-ae50-18c319374090" + definition_id = "62a6a13d-9b7f-4635-98ff-b042924faeae" + name = "Lisa Bergnaum" + workspace_id = "31937409-0efb-422d-b6fe-0864a856a041" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_pubsub/resource.tf b/examples/resources/airbyte_destination_pubsub/resource.tf index b8419cad9..cab072294 100644 --- a/examples/resources/airbyte_destination_pubsub/resource.tf +++ b/examples/resources/airbyte_destination_pubsub/resource.tf @@ -1,15 +1,15 @@ resource "airbyte_destination_pubsub" "my_destination_pubsub" { configuration = { - batching_delay_threshold = 10 - batching_element_count_threshold = 10 - batching_enabled = false - batching_request_bytes_threshold = 1 + batching_delay_threshold = 4 + batching_element_count_threshold = 0 + batching_enabled = true + batching_request_bytes_threshold = 10 credentials_json = "...my_credentials_json..." ordering_enabled = false project_id = "...my_project_id..." topic_id = "...my_topic_id..." } - definition_id = "db6fe086-4a85-46a0-8170-ff8566dc3233" - name = "Belinda Kuhn" - workspace_id = "07bf0728-b707-4755-8c67-348eaa4356f3" + definition_id = "566dc323-3597-47b0-bbf0-728b7077558c" + name = "Jackie Franey" + workspace_id = "eaa4356f-389a-4d49-9bc4-fabbf1994382" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_qdrant/resource.tf b/examples/resources/airbyte_destination_qdrant/resource.tf index ffb43bb7d..166398cfe 100644 --- a/examples/resources/airbyte_destination_qdrant/resource.tf +++ b/examples/resources/airbyte_destination_qdrant/resource.tf @@ -14,15 +14,15 @@ resource "airbyte_destination_qdrant" "my_destination_qdrant" { } } collection = "...my_collection..." - distance_metric = "cos" + distance_metric = "dot" prefer_grpc = true text_field = "...my_text_field..." url = "...my_url..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 9 - chunk_size = 2 + chunk_overlap = 8 + chunk_size = 3 field_name_mappings = [ { from_field = "...my_from_field..." @@ -37,12 +37,12 @@ resource "airbyte_destination_qdrant" "my_destination_qdrant" { ] text_splitter = { by_markdown_header = { - split_level = 6 + split_level = 9 } } } } - definition_id = "dbc4fabb-f199-4438-a023-b4de2c1a7f28" - name = "Gerard Simonis" - workspace_id = "de3c9d6f-a94b-474b-938f-85ce1dfc1b27" + definition_id = "e2c1a7f2-88ad-43cd-a3c9-d6fa94b74b93" + name = "Cary Lueilwitz" + workspace_id = "e1dfc1b2-798d-4b19-a64b-83f63d348370" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_redis/resource.tf b/examples/resources/airbyte_destination_redis/resource.tf index 1ca624220..4c49a2a10 100644 --- a/examples/resources/airbyte_destination_redis/resource.tf +++ b/examples/resources/airbyte_destination_redis/resource.tf @@ -3,7 +3,7 @@ resource "airbyte_destination_redis" "my_destination_redis" { cache_type = "hash" host = "localhost,127.0.0.1" password = "...my_password..." - port = 6 + port = 10 ssl = true ssl_mode = { disable = {} @@ -11,9 +11,9 @@ resource "airbyte_destination_redis" "my_destination_redis" { tunnel_method = { no_tunnel = {} } - username = "Salma59" + username = "Isaiah_Fay61" } - definition_id = "e64b83f6-3d34-4837-8e17-3ec9d4f32d3e" - name = "Shelly Connelly" - workspace_id = "a43c0f29-f7cb-4d12-b320-943801c3678d" + definition_id = "d4f32d3e-192a-48a4-bc0f-29f7cbd12b32" + name = "Guadalupe Gerlach" + workspace_id = "01c3678d-42b6-4294-a31a-29aaf3c68070" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_redshift/resource.tf b/examples/resources/airbyte_destination_redshift/resource.tf index 0b8a2eb01..a95210a0d 100644 --- a/examples/resources/airbyte_destination_redshift/resource.tf +++ b/examples/resources/airbyte_destination_redshift/resource.tf @@ -2,7 +2,7 @@ resource "airbyte_destination_redshift" "my_destination_redshift" { configuration = { database = "...my_database..." disable_type_dedupe = true - drop_cascade = true + drop_cascade = false host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." @@ -15,17 +15,17 @@ resource "airbyte_destination_redshift" "my_destination_redshift" { uploading_method = { awss3_staging = { access_key_id = "...my_access_key_id..." - file_name_pattern = "{timestamp}" - purge_staging_data = false + file_name_pattern = "{date}" + purge_staging_data = true s3_bucket_name = "airbyte.staging" s3_bucket_path = "data_sync/test" - s3_bucket_region = "eu-south-2" + s3_bucket_region = "ap-south-1" secret_access_key = "...my_secret_access_key..." } } - username = "Devante10" + username = "Jacky18" } - definition_id = "a29aaf3c-6807-40ec-a153-7042295e6e54" - name = "Ms. Edmund Douglas III" - workspace_id = "586b7399-0fea-469b-aba7-dc7cde8f8d83" + definition_id = "295e6e54-dc30-4616-986b-73990fea69be" + name = "Hubert Kub" + workspace_id = "7cde8f8d-8392-4aab-95fb-458bad9ea767" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_s3/resource.tf b/examples/resources/airbyte_destination_s3/resource.tf index e0b503a64..2a1c26442 100644 --- a/examples/resources/airbyte_destination_s3/resource.tf +++ b/examples/resources/airbyte_destination_s3/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_destination_s3" "my_destination_s3" { configuration = { access_key_id = "A012345678910EXAMPLE" - file_name_pattern = "{timestamp}" + file_name_pattern = "{date}" format = { avro_apache_avro = { compression_codec = { @@ -15,12 +15,12 @@ resource "airbyte_destination_s3" "my_destination_s3" { role_arn = "arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId" s3_bucket_name = "airbyte_sync" s3_bucket_path = "data_sync/test" - s3_bucket_region = "ap-northeast-3" + s3_bucket_region = "us-east-1" s3_endpoint = "http://localhost:9000" s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "aab15fb4-58ba-4d9e-a767-1d5852a459de" - name = "Bonnie Beatty" - workspace_id = "3420a295-e5c0-4996-a877-b187a0987534" + definition_id = "5852a459-de52-40ce-b420-a295e5c09962" + name = "Allan Kihn IV" + workspace_id = "7a098753-4412-4bc3-a17a-cbe2ad9f3186" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_s3_glue/resource.tf b/examples/resources/airbyte_destination_s3_glue/resource.tf index 0ce1e1c17..e73155081 100644 --- a/examples/resources/airbyte_destination_s3_glue/resource.tf +++ b/examples/resources/airbyte_destination_s3_glue/resource.tf @@ -9,7 +9,7 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" { compression_type = "GZIP" } } - flattening = "No flattening" + flattening = "Root level flattening" format_type = "JSONL" } } @@ -17,12 +17,12 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" { glue_serialization_library = "org.openx.data.jsonserde.JsonSerDe" s3_bucket_name = "airbyte_sync" s3_bucket_path = "data_sync/test" - s3_bucket_region = "me-central-1" + s3_bucket_region = "us-west-1" s3_endpoint = "http://localhost:9000" s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "c3217acb-e2ad-49f3-9864-86fc7b23d6b8" - name = "Billie Wisoky I" - workspace_id = "46c04b19-3fb2-4891-8e38-2726ed560cd3" + definition_id = "c7b23d6b-848f-4403-86c0-4b193fb28918" + name = "Melvin Lueilwitz" + workspace_id = "26ed560c-d3f9-4e1f-9eaf-9a8e2157a856" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_sftp_json/resource.tf b/examples/resources/airbyte_destination_sftp_json/resource.tf index c2068361b..2c4058c68 100644 --- a/examples/resources/airbyte_destination_sftp_json/resource.tf +++ b/examples/resources/airbyte_destination_sftp_json/resource.tf @@ -4,9 +4,9 @@ resource "airbyte_destination_sftp_json" "my_destination_sftpjson" { host = "...my_host..." password = "...my_password..." port = 22 - username = "Kristin95" + username = "Peyton_Lang" } - definition_id = "9eaf9a8e-2157-4a85-a0c8-9e77fd0c2020" - name = "Rick Sporer" - workspace_id = "6de60f94-2f93-47a3-8595-08dd11c7ed17" + definition_id = "77fd0c20-2086-4d39-ade6-0f942f937a3c" + name = "Ms. Ada Heidenreich" + workspace_id = "d11c7ed1-7b1d-45b0-8289-a0dc02329a5c" } \ 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 cd335ec77..3d9bbddd0 100644 --- a/examples/resources/airbyte_destination_snowflake/resource.tf +++ b/examples/resources/airbyte_destination_snowflake/resource.tf @@ -7,18 +7,18 @@ resource "airbyte_destination_snowflake" "my_destination_snowflake" { } } database = "AIRBYTE_DATABASE" - disable_type_dedupe = false - host = "accountname.us-east-2.aws.snowflakecomputing.com" + disable_type_dedupe = true + host = "accountname.snowflakecomputing.com" jdbc_url_params = "...my_jdbc_url_params..." raw_data_schema = "...my_raw_data_schema..." - retention_period_days = 9 + retention_period_days = 6 role = "AIRBYTE_ROLE" schema = "AIRBYTE_SCHEMA" use_merge_for_upsert = false username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "89a0dc02-329a-45ca-a9f3-888495eab20e" - name = "Mrs. Kelvin Dickens" - workspace_id = "3624c439-0072-45fa-be33-722ced92f8e0" + definition_id = "495eab20-ebb3-405f-b624-c43900725fa3" + name = "Stanley Emmerich" + workspace_id = "2ced92f8-e06e-4f6f-ad36-51e7d5496735" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_snowflake_cortex/resource.tf b/examples/resources/airbyte_destination_snowflake_cortex/resource.tf index 501c72446..4011771e6 100644 --- a/examples/resources/airbyte_destination_snowflake_cortex/resource.tf +++ b/examples/resources/airbyte_destination_snowflake_cortex/resource.tf @@ -14,14 +14,14 @@ resource "airbyte_destination_snowflake_cortex" "my_destination_snowflakecortex" database = "AIRBYTE_DATABASE" default_schema = "AIRBYTE_SCHEMA" host = "AIRBYTE_ACCOUNT" - role = "AIRBYTE_ROLE" + role = "ACCOUNTADMIN" username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } omit_raw_text = true processing = { - chunk_overlap = 9 - chunk_size = 2 + chunk_overlap = 5 + chunk_size = 4 field_name_mappings = [ { from_field = "...my_from_field..." @@ -36,12 +36,12 @@ resource "airbyte_destination_snowflake_cortex" "my_destination_snowflakecortex" ] text_splitter = { by_markdown_header = { - split_level = 4 + split_level = 7 } } } } - definition_id = "51e7d549-6735-4da2-93c8-6a8b9fef8f53" - name = "Jessie Jones" - workspace_id = "de30a86e-4df1-49fa-ac84-c31846ef3644" + definition_id = "8b9fef8f-5387-46e3-9e30-a86e4df19faa" + name = "Willard Gerhold" + workspace_id = "1846ef36-4419-46a0-8bb9-666e7d15e7ee" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_teradata/resource.tf b/examples/resources/airbyte_destination_teradata/resource.tf index e17fb737d..47299ca30 100644 --- a/examples/resources/airbyte_destination_teradata/resource.tf +++ b/examples/resources/airbyte_destination_teradata/resource.tf @@ -4,13 +4,13 @@ resource "airbyte_destination_teradata" "my_destination_teradata" { jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." schema = "airbyte_td" - ssl = true + ssl = false ssl_mode = { allow = {} } - username = "Lillian.Keebler" + username = "Rocio.Gibson" } - definition_id = "4bb9666e-7d15-4e7e-add4-643586b689fd" - name = "Eric Fadel" - workspace_id = "92fcfab7-3b9b-4a5d-b045-674ad28dce71" + definition_id = "3586b689-fdc1-43c2-92fc-fab73b9ba5d3" + name = "Amber Hansen" + workspace_id = "4ad28dce-71d7-4fd7-9366-4c8ab088c248" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_timeplus/resource.tf b/examples/resources/airbyte_destination_timeplus/resource.tf index 1faf861e2..529705779 100644 --- a/examples/resources/airbyte_destination_timeplus/resource.tf +++ b/examples/resources/airbyte_destination_timeplus/resource.tf @@ -3,7 +3,7 @@ resource "airbyte_destination_timeplus" "my_destination_timeplus" { 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" + definition_id = "e91396f3-4075-445d-9006-86d04e608039" + name = "Roosevelt Kuphal" + workspace_id = "0732a475-24bb-4490-aa75-3ad11902ba18" } \ 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 69f43fe83..29e201ea8 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 = 7 + batch_size = 5 host = "...my_host..." path = "...my_path..." port = "...my_port..." protocol = "...my_protocol..." } - definition_id = "b490aa75-3ad1-4190-aba1-88860231ad19" - name = "Sandy Wuckert" - workspace_id = "1985c92d-33ca-4e7e-9b40-1c239e69c6f2" + definition_id = "860231ad-193a-4f49-9985-c92d33cae7ed" + name = "Miss Micheal Bauch" + workspace_id = "39e69c6f-21d6-4541-b3cc-cbbc51a3caa6" } \ 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 5a9e8d0a8..2544e791f 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 = "d654173c-ccbb-4c51-a3ca-a62e557cba0d" - name = "Mr. Sherry Leuschke" - workspace_id = "a5767fcf-379f-4a40-91ea-e8db1144f7f4" + definition_id = "e557cba0-d338-4002-a576-7fcf379fa401" + name = "Kellie Oberbrunner" + workspace_id = "db1144f7-f4dc-4b28-9085-8467e5cd3332" } \ 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 46d876414..ba1686125 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 = 9 - default_vectorizer = "text2vec-transformers" + batch_size = 6 + default_vectorizer = "text2vec-huggingface" host = "https://my-cluster.weaviate.network" tenant_id = "...my_tenant_id..." text_field = "...my_text_field..." } omit_raw_text = true processing = { - chunk_overlap = 1 - chunk_size = 6 + chunk_overlap = 5 + chunk_size = 8 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 = 0 + split_level = 8 } } } } - definition_id = "0858467e-5cd3-4332-85c7-cc3fde334f78" - name = "Maggie Nolan" - workspace_id = "aaf527fe-19eb-41bf-8ee2-339467597e80" + definition_id = "3fde334f-786a-4ae3-aaf5-27fe19eb1bf8" + name = "Sheldon Crooks" + workspace_id = "9467597e-801e-4676-89a4-6f396c7c6bf7" } \ 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 e8cfd16c7..bc24a5e77 100644 --- a/examples/resources/airbyte_destination_yellowbrick/resource.tf +++ b/examples/resources/airbyte_destination_yellowbrick/resource.tf @@ -6,16 +6,16 @@ resource "airbyte_destination_yellowbrick" "my_destination_yellowbrick" { password = "...my_password..." port = 5432 schema = "public" - ssl = false + ssl = true ssl_mode = { allow = {} } tunnel_method = { no_tunnel = {} } - username = "Heath_Klocko" + username = "Cathryn7" } - definition_id = "9a46f396-c7c6-4bf7-b724-213ca1059f1e" - name = "Patricia Franecki DVM" - workspace_id = "c0eaa506-81bc-43ad-b090-c013842c101e" + definition_id = "3ca1059f-1e30-4360-bc0e-aa50681bc3ad" + name = "Miss Edward Mueller Sr." + workspace_id = "3842c101-e265-4eeb-8230-b15094cc2185" } \ No newline at end of file diff --git a/examples/resources/airbyte_permission/resource.tf b/examples/resources/airbyte_permission/resource.tf index 2b302b5a6..a86678876 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 = "265eebc2-30b1-4509-8cc2-1854edb75e7d" - permission_type = "organization_admin" - user_id = "c9ddc2da-362f-4af1-b28f-e26cb1bb0550" - workspace_id = "b4e34412-6e7f-4293-b6e2-37818d15373d" + organization_id = "4edb75e7-d1c9-4ddc-ada3-62faf1b28fe2" + permission_type = "organization_member" + user_id = "cb1bb055-0b4e-4344-926e-7f29336e2378" + workspace_id = "18d15373-da8d-46ee-b047-57630ddbc2db" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_7shifts/import.sh b/examples/resources/airbyte_source_7shifts/import.sh new file mode 100644 index 000000000..0bd8d47c9 --- /dev/null +++ b/examples/resources/airbyte_source_7shifts/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_7shifts.my_airbyte_source_7shifts "" diff --git a/examples/resources/airbyte_source_7shifts/resource.tf b/examples/resources/airbyte_source_7shifts/resource.tf new file mode 100644 index 000000000..2766381af --- /dev/null +++ b/examples/resources/airbyte_source_7shifts/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_7shifts" "my_source_7shifts" { + configuration = { + access_token = "...my_access_token..." + start_date = "2022-10-04T13:05:54.933Z" + } + definition_id = "88dfabd5-7111-4ac6-9dff-a69fe7143a3e" + name = "Pablo Conn" + secret_id = "...my_secret_id..." + workspace_id = "d7bc1a5a-6e1c-4c19-b137-2214027ee71b" +} \ 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 5169ab2e5..d5a6eb757 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 = "a8d6eef0-4757-4630-9dbc-2dbf188dfabd" - name = "Mr. Colleen Botsford" + definition_id = "638bd648-d548-414a-beb9-3d4bbde9f2bb" + name = "Kenneth Russel" secret_id = "...my_secret_id..." - workspace_id = "c61dffa6-9fe7-4143-a3e9-a244d7bc1a5a" + workspace_id = "fe4ad282-938c-4452-b564-4517930ed8d4" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_airbyte/resource.tf b/examples/resources/airbyte_source_airbyte/resource.tf index 0a9f191da..51680bc26 100644 --- a/examples/resources/airbyte_source_airbyte/resource.tf +++ b/examples/resources/airbyte_source_airbyte/resource.tf @@ -2,10 +2,10 @@ 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" + start_date = "2022-03-19T07:46:59.910Z" } - definition_id = "1cc19313-7221-4402-bee7-1b638bd648d5" - name = "Nina Boyle" + definition_id = "0dabba6e-f9fc-43c3-b44f-d252e57aa673" + name = "Steve Luettgen" secret_id = "...my_secret_id..." - workspace_id = "feb93d4b-bde9-4f2b-b80c-d3fe4ad28293" + workspace_id = "9f0c220e-39e1-40d6-af09-fb849b0bdf3d" } \ 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 b63f86891..0213c7770 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 = "45275644-5179-430e-98d4-3c0dabba6ef9" - name = "Myron Emard" + definition_id = "a96c6335-4ae1-4d23-83d1-1ff934df0d75" + name = "Chelsea Lubowitz PhD" secret_id = "...my_secret_id..." - workspace_id = "744fd252-e57a-4a67-bd28-259f0c220e39" + workspace_id = "90daf918-6ab6-43a7-b2e3-879ec566b1d1" } \ 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 efa7969b6..3b3c799ae 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-17T07:42:16.884Z" + token_expiry_date = "2021-06-09T01:32:17.584Z" } } } - definition_id = "0d6ef09f-b849-4b0b-9f3d-5ca96c63354a" - name = "Juan Smitham" + definition_id = "bb57bf00-1ddb-43cf-874d-627d201b0d06" + name = "Johnathan Renner" secret_id = "...my_secret_id..." - workspace_id = "c3d11ff9-34df-40d7-96d8-b0d90daf9186" + workspace_id = "e6b9f25a-a9f8-4c7d-8107-048d9ffe8959" } \ 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 ebf45edb6..0c2a5970c 100644 --- a/examples/resources/airbyte_source_amazon_ads/resource.tf +++ b/examples/resources/airbyte_source_amazon_ads/resource.tf @@ -7,20 +7,20 @@ resource "airbyte_source_amazon_ads" "my_source_amazonads" { "...", ] profiles = [ - 4, + 9, ] refresh_token = "...my_refresh_token..." - region = "NA" + region = "FE" report_record_types = [ - "keywords", + "targets", ] start_date = "2022-10-10" state_filter = [ - "archived", + "paused", ] } - definition_id = "3879ec56-6b1d-41d8-bb57-bf001ddb3cf0" - name = "Hazel Stehr" + definition_id = "d1e5d369-0efc-46e8-a8b1-d2ddb5daa9ea" + name = "Howard Kuphal" secret_id = "...my_secret_id..." - workspace_id = "7d201b0d-069b-4b26-a6b9-f25aa9f8c7d4" + workspace_id = "e7b29c85-e6b8-4562-8652-e0ff83c21b51" } \ 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 cd6afd823..7dd049501 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 = "PRODUCTION" + aws_environment = "SANDBOX" lwa_app_id = "...my_lwa_app_id..." lwa_client_secret = "...my_lwa_client_secret..." - period_in_days = 5 + period_in_days = 1 refresh_token = "...my_refresh_token..." - region = "AU" + region = "GB" replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" report_options_list = [ @@ -17,14 +17,14 @@ resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" option_value = "...my_option_value..." }, ] - report_name = "GET_XML_BROWSE_TREE_DATA" + report_name = "GET_MERCHANT_LISTINGS_ALL_DATA" stream_name = "...my_stream_name..." }, ] wait_to_avoid_fatal_errors = false } - definition_id = "e8959afe-ef69-4ead-9e5d-3690efc6e828" - name = "Walter Spinka" + definition_id = "6bcd5137-4519-445c-8336-0526ae8aa3c4" + name = "Craig Lang" secret_id = "...my_secret_id..." - workspace_id = "db5daa9e-a927-4cae-bb29-c85e6b856286" + workspace_id = "13b86681-05e1-4180-bb2a-875a1ca190e9" } \ 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 0be466cc9..1280dd6ed 100644 --- a/examples/resources/airbyte_source_amazon_sqs/resource.tf +++ b/examples/resources/airbyte_source_amazon_sqs/resource.tf @@ -10,8 +10,8 @@ resource "airbyte_source_amazon_sqs" "my_source_amazonsqs" { secret_key = "hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz" visibility_timeout = 15 } - definition_id = "f83c21b5-17b1-46f1-b884-6bcd51374519" - name = "Renee Schamberger" + definition_id = "82a17eb0-af63-4def-a733-56f39bea5e20" + name = "Dr. Salvador White" secret_id = "...my_secret_id..." - workspace_id = "360526ae-8aa3-4c4f-a879-13b8668105e1" + workspace_id = "905c8543-b918-44ca-87dc-adad2938da57" } \ 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 379514dae..c772f29de 100644 --- a/examples/resources/airbyte_source_amplitude/resource.tf +++ b/examples/resources/airbyte_source_amplitude/resource.tf @@ -2,12 +2,12 @@ resource "airbyte_source_amplitude" "my_source_amplitude" { configuration = { api_key = "...my_api_key..." data_region = "Standard Server" - request_time_range = 5 + request_time_range = 3 secret_key = "...my_secret_key..." start_date = "2021-01-25T00:00:00Z" } - definition_id = "b2a875a1-ca19-40e9-9bd1-182a17eb0af6" - name = "Teri Wehner" + definition_id = "880f00a3-0dde-4f9a-90fa-7f8f441b58df" + name = "Lewis Heaney" secret_id = "...my_secret_id..." - workspace_id = "73356f39-bea5-4e20-89f0-e8905c8543b9" + workspace_id = "0bee1c5f-f223-4389-a042-261684e73ef6" } \ 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 e6dd158ba..91a982f8b 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 = "184cac7d-cada-4d29-b8da-5765e7880f00" - name = "Curtis Berge" + definition_id = "02c915f5-97cf-4589-a557-ce17ccd6b10d" + name = "Carmen Littel" secret_id = "...my_secret_id..." - workspace_id = "ef9a90fa-7f8f-4441-b58d-fc559a0bee1c" + workspace_id = "4fdfb9af-007b-4c04-991b-eb057f07c546" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_appcues/import.sh b/examples/resources/airbyte_source_appcues/import.sh new file mode 100644 index 000000000..f4cdba73a --- /dev/null +++ b/examples/resources/airbyte_source_appcues/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_appcues.my_airbyte_source_appcues "" diff --git a/examples/resources/airbyte_source_appcues/resource.tf b/examples/resources/airbyte_source_appcues/resource.tf new file mode 100644 index 000000000..2db8b161a --- /dev/null +++ b/examples/resources/airbyte_source_appcues/resource.tf @@ -0,0 +1,12 @@ +resource "airbyte_source_appcues" "my_source_appcues" { + configuration = { + account_id = "...my_account_id..." + password = "...my_password..." + start_date = "2022-11-14T00:29:49.884Z" + username = "Bettie_Rice68" + } + definition_id = "90354f51-ed0a-4818-9e6e-55fd9ebe7b2f" + name = "Rachael O'Conner" + secret_id = "...my_secret_id..." + workspace_id = "cdfaf2b0-5210-4208-a036-b268d758466c" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_appfigures/import.sh b/examples/resources/airbyte_source_appfigures/import.sh new file mode 100644 index 000000000..676d0bfcd --- /dev/null +++ b/examples/resources/airbyte_source_appfigures/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_appfigures.my_airbyte_source_appfigures "" diff --git a/examples/resources/airbyte_source_appfigures/resource.tf b/examples/resources/airbyte_source_appfigures/resource.tf new file mode 100644 index 000000000..43aa7d932 --- /dev/null +++ b/examples/resources/airbyte_source_appfigures/resource.tf @@ -0,0 +1,12 @@ +resource "airbyte_source_appfigures" "my_source_appfigures" { + configuration = { + api_key = "...my_api_key..." + group_by = "country" + search_store = "...my_search_store..." + start_date = "2022-10-16T08:12:09.283Z" + } + definition_id = "e10b1b39-4b84-4acd-b8db-6a4f7e23711b" + name = "Tonya Anderson" + secret_id = "...my_secret_id..." + workspace_id = "d38a1edc-b36c-4da3-951c-bc15623ec645" +} \ 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 33e79e701..4a0f8ba15 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 = "5ff22338-9204-4226-9684-e73ef602c915" - name = "Vernon Mills" + definition_id = "3ce6c3cf-0d0e-420d-a16b-8da7b8143f85" + name = "Jacquelyn Wilderman" secret_id = "...my_secret_id..." - workspace_id = "f5896557-ce17-4ccd-ab10-d6388d4fdfb9" + workspace_id = "c7fd70e5-0457-4dcf-8f64-874e62c58d87" } \ 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 9302d1fc2..af08478f9 100644 --- a/examples/resources/airbyte_source_asana/resource.tf +++ b/examples/resources/airbyte_source_asana/resource.tf @@ -10,10 +10,9 @@ resource "airbyte_source_asana" "my_source_asana" { organization_export_ids = [ "{ \"see\": \"documentation\" }", ] - test_mode = true } - definition_id = "f007bc04-191b-4eb0-97f0-7c546621bdba" - name = "Robert Feeney" + definition_id = "92fd4888-7cb1-49c4-8ec8-b4573d66d007" + name = "Derek Crist" secret_id = "...my_secret_id..." - workspace_id = "f51ed0a8-181e-46e5-9fd9-ebe7b2f5ca6e" + workspace_id = "e4396e74-03ea-42d5-8959-a4fa50e807c8" } \ 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 e13df62eb..b3bec71bf 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 = "cdfaf2b0-5210-4208-a036-b268d758466c" - name = "Hector Ebert Jr." + definition_id = "6bd0cbf5-314e-4ea0-ba21-aa37367271c7" + name = "Homer Medhurst" secret_id = "...my_secret_id..." - workspace_id = "b1b394b8-4acd-4f8d-b6a4-f7e23711b260" + workspace_id = "9603df32-3c7d-4784-9b7f-8882a19738b2" } \ 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 e77886ba2..c5451ab22 100644 --- a/examples/resources/airbyte_source_aws_cloudtrail/resource.tf +++ b/examples/resources/airbyte_source_aws_cloudtrail/resource.tf @@ -5,12 +5,12 @@ resource "airbyte_source_aws_cloudtrail" "my_source_awscloudtrail" { aws_secret_key = "...my_aws_secret_key..." lookup_attributes_filter = { attribute_key = "EventName" - attribute_value = "ConsoleLogin" + attribute_value = "ListInstanceAssociations" } start_date = "2021-01-01" } - definition_id = "38a1edcb-36cd-4a3d-91cb-c15623ec6453" - name = "Doyle Hirthe" + definition_id = "70494da2-1b79-4cfd-9baf-3821deb7264d" + name = "Rufus McCullough" secret_id = "...my_secret_id..." - workspace_id = "cf0d0e20-de16-4b8d-a7b8-143f851cf99c" + workspace_id = "fb531266-91bf-4b5d-b9ea-24da51fb73f4" } \ 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 388785e66..e88371967 100644 --- a/examples/resources/airbyte_source_azure_blob_storage/resource.tf +++ b/examples/resources/airbyte_source_azure_blob_storage/resource.tf @@ -14,26 +14,24 @@ resource "airbyte_source_azure_blob_storage" "my_source_azureblobstorage" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 9 + days_to_sync_if_history_is_full = 10 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] input_schema = "...my_input_schema..." - legacy_prefix = "...my_legacy_prefix..." - name = "Mrs. Olive Hills" - primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Wait for Discover" + name = "Dwayne Pfeffer" + schemaless = false + validation_policy = "Emit Record" }, ] } - definition_id = "cf4f6487-4e62-4c58-9879-2fd48887cb19" - name = "Jim Kuvalis" + definition_id = "8227a333-08df-4445-b49b-e62599f17b5c" + name = "Pamela Schimmel" secret_id = "...my_secret_id..." - workspace_id = "8b4573d6-6d00-47e5-aa2e-4396e7403ea2" + workspace_id = "2f7dd6ee-9c7e-4740-9902-82195430f896" } \ 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 553cc97aa..ecea37455 100644 --- a/examples/resources/airbyte_source_azure_table/resource.tf +++ b/examples/resources/airbyte_source_azure_table/resource.tf @@ -2,10 +2,10 @@ resource "airbyte_source_azure_table" "my_source_azuretable" { configuration = { storage_access_key = "...my_storage_access_key..." storage_account_name = "...my_storage_account_name..." - storage_endpoint_suffix = "core.chinacloudapi.cn" + storage_endpoint_suffix = "core.windows.net" } - definition_id = "50959a4f-a50e-4807-886b-d0cbf5314eea" - name = "Lana Nienow MD" + definition_id = "a321f431-fb3a-4ad0-b8a3-612fcb5a7fdd" + name = "Warren Funk DDS" secret_id = "...my_secret_id..." - workspace_id = "a3736727-1c78-4a9a-a960-3df323c7d784" + workspace_id = "39c22fe1-7df5-47ad-b107-25ff7f1a27e8" } \ 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 da30ce571..6cd6ec23a 100644 --- a/examples/resources/airbyte_source_bamboo_hr/resource.tf +++ b/examples/resources/airbyte_source_bamboo_hr/resource.tf @@ -3,11 +3,11 @@ resource "airbyte_source_bamboo_hr" "my_source_bamboohr" { api_key = "...my_api_key..." custom_reports_fields = "...my_custom_reports_fields..." custom_reports_include_default_fields = true - start_date = "2022-01-27T18:56:04.985Z" + start_date = "2022-07-14T18:09:20.327Z" subdomain = "...my_subdomain..." } - definition_id = "f8882a19-738b-4218-b704-94da21b79cfd" - name = "Ira Padberg" + definition_id = "f193d4f9-ab29-4a2f-8317-dec4e3eab02c" + name = "Ms. Cesar McLaughlin" secret_id = "...my_secret_id..." - workspace_id = "821deb72-64da-4d9e-9fb5-3126691bfb5d" + workspace_id = "23df16a0-cc49-4919-82a6-82b0a7074f01" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_basecamp/resource.tf b/examples/resources/airbyte_source_basecamp/resource.tf index e937bd835..a7f7325c6 100644 --- a/examples/resources/airbyte_source_basecamp/resource.tf +++ b/examples/resources/airbyte_source_basecamp/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_basecamp" "my_source_basecamp" { configuration = { - account_id = 73.8 + account_id = 41.27 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" + start_date = "2021-08-09T14:43:07.351Z" } - definition_id = "a24da51f-b73f-4472-b2e8-bbfe18227a33" - name = "Shirley Lesch" + definition_id = "2127f33f-8652-4b25-91b0-23ec1224a7ff" + name = "Clarence Hodkiewicz" secret_id = "...my_secret_id..." - workspace_id = "445f49be-6259-49f1-bb5c-61c8d2f7dd6e" + workspace_id = "c187087d-37ac-499f-9785-1612305e0c1f" } \ 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 0e3cfb5f2..876e194fa 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 = "e9c7e740-1902-4821-9543-0f8964a321f4" - name = "Mildred Weimann" + definition_id = "4b65d9eb-d757-4e59-8698-1cb460869168" + name = "Rosa Beatty" secret_id = "...my_secret_id..." - workspace_id = "aad078a3-612f-4cb5-a7fd-d854e0c39c22" + workspace_id = "adb73c36-9be0-4c12-ace5-9b9fbaef8e47" } \ 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 bd6b3831e..3d0042a44 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 = "Bert Bins" + name = "Sherri Bayer" operator = "Equals" }, ] @@ -10,22 +10,22 @@ resource "airbyte_source_bing_ads" "my_source_bingads" { client_secret = "...my_client_secret..." custom_reports = [ { - name = "AdDynamicTextPerformanceReport" + name = "custom report" report_aggregation = "...my_report_aggregation..." report_columns = [ "...", ] - reporting_object = "GeographicPerformanceReportRequest" + reporting_object = "HotelGroupPerformanceReportRequest" }, ] developer_token = "...my_developer_token..." - lookback_window = 1 + lookback_window = 4 refresh_token = "...my_refresh_token..." - reports_start_date = "2022-01-11" + reports_start_date = "2022-10-01" tenant_id = "...my_tenant_id..." } - definition_id = "f7f1a27e-8fd2-4f19-bd4f-9ab29a2f8317" - name = "Frankie Runte" + definition_id = "a681eea7-4b87-4a1f-b187-d33223d80bb9" + name = "Curtis Jenkins" secret_id = "...my_secret_id..." - workspace_id = "3eab02cc-b908-4523-9f16-a0cc4991982a" + workspace_id = "2f45974a-2ebc-4368-8abb-376bce66a7c0" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_bitly/import.sh b/examples/resources/airbyte_source_bitly/import.sh new file mode 100644 index 000000000..106ca6282 --- /dev/null +++ b/examples/resources/airbyte_source_bitly/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_bitly.my_airbyte_source_bitly "" diff --git a/examples/resources/airbyte_source_bitly/resource.tf b/examples/resources/airbyte_source_bitly/resource.tf new file mode 100644 index 000000000..dd18dca67 --- /dev/null +++ b/examples/resources/airbyte_source_bitly/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_bitly" "my_source_bitly" { + configuration = { + api_key = "...my_api_key..." + end_date = "2020-03-15T22:28:02.457Z" + start_date = "2022-12-31T11:13:32.886Z" + } + definition_id = "da3e9aab-7145-44cb-a418-93e1da46c4f6" + name = "Mr. Roberto Stokes" + secret_id = "...my_secret_id..." + workspace_id = "011b8862-473b-4757-b910-8618e91445d8" +} \ 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 d6a7ce912..15c50d8b3 100644 --- a/examples/resources/airbyte_source_braintree/resource.tf +++ b/examples/resources/airbyte_source_braintree/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_braintree" "my_source_braintree" { configuration = { - environment = "Qa" + environment = "Production" merchant_id = "...my_merchant_id..." private_key = "...my_private_key..." public_key = "...my_public_key..." start_date = "2020" } - definition_id = "a7074f01-6f72-4127-b33f-8652b2551b02" - name = "Mr. Jana Runolfsson" + definition_id = "a849cd51-7f0e-432c-ae30-2e6de92b3e43" + name = "Daisy MacGyver" secret_id = "...my_secret_id..." - workspace_id = "4a7ffb26-8dc1-4870-87d3-7ac99fd78516" + workspace_id = "6f9835e6-422d-415b-8286-21a877d2e625" } \ 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 1d5b116f1..6bfe1684a 100644 --- a/examples/resources/airbyte_source_braze/resource.tf +++ b/examples/resources/airbyte_source_braze/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_braze" "my_source_braze" { configuration = { api_key = "...my_api_key..." - start_date = "2022-10-27" + start_date = "2020-07-22" url = "...my_url..." } - definition_id = "305e0c1f-4b65-4d9e-bd75-7e5946981cb4" - name = "Maria Lubowitz" + definition_id = "d80ba5ff-53c6-4fc1-8ca6-7a827c3d349f" + name = "Bertha Hagenes" secret_id = "...my_secret_id..." - workspace_id = "1686308e-adb7-43c3-a9be-0c12ece59b9f" + workspace_id = "a8589d84-94dc-4fae-a550-03801e9f4469" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_breezy_hr/resource.tf b/examples/resources/airbyte_source_breezy_hr/resource.tf index 03237e8c1..f100e16cd 100644 --- a/examples/resources/airbyte_source_breezy_hr/resource.tf +++ b/examples/resources/airbyte_source_breezy_hr/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_breezy_hr" "my_source_breezyhr" { api_key = "...my_api_key..." company_id = "...my_company_id..." } - definition_id = "baef8e47-4905-488d-8e29-39574a681eea" - name = "Danielle Rice" + definition_id = "00c8feba-7b45-4cfe-a08a-bdda328f6c37" + name = "Alyssa Anderson" secret_id = "...my_secret_id..." - workspace_id = "a1fb187d-3322-43d8-8bb9-9362d2f45974" + workspace_id = "63420a6a-3ab4-4d44-b55b-910e5c999e89" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_brevo/import.sh b/examples/resources/airbyte_source_brevo/import.sh new file mode 100644 index 000000000..f56d98ccb --- /dev/null +++ b/examples/resources/airbyte_source_brevo/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_brevo.my_airbyte_source_brevo "" diff --git a/examples/resources/airbyte_source_brevo/resource.tf b/examples/resources/airbyte_source_brevo/resource.tf new file mode 100644 index 000000000..091a05b6e --- /dev/null +++ b/examples/resources/airbyte_source_brevo/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_brevo" "my_source_brevo" { + configuration = { + api_key = "...my_api_key..." + start_date = "2020-11-02T09:08:40.811Z" + } + definition_id = "d0e8f2a3-7cc1-4fbe-8883-da2fecd2cab2" + name = "Darin Adams" + secret_id = "...my_secret_id..." + workspace_id = "6002c3cc-123e-4878-bd50-d4d2b80c50dc" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_buildkite/import.sh b/examples/resources/airbyte_source_buildkite/import.sh new file mode 100644 index 000000000..0c8568baa --- /dev/null +++ b/examples/resources/airbyte_source_buildkite/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_buildkite.my_airbyte_source_buildkite "" diff --git a/examples/resources/airbyte_source_buildkite/resource.tf b/examples/resources/airbyte_source_buildkite/resource.tf new file mode 100644 index 000000000..30f5f29c4 --- /dev/null +++ b/examples/resources/airbyte_source_buildkite/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_buildkite" "my_source_buildkite" { + configuration = { + api_key = "...my_api_key..." + start_date = "2022-09-13T08:37:58.641Z" + } + definition_id = "4f66cbf0-e9a0-45e9-94ac-e41dc5b42f2a" + name = "Beverly Leuschke" + secret_id = "...my_secret_id..." + workspace_id = "8647f2d4-2750-4604-ac1c-65661b2485a0" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_buzzsprout/import.sh b/examples/resources/airbyte_source_buzzsprout/import.sh new file mode 100644 index 000000000..629581f5b --- /dev/null +++ b/examples/resources/airbyte_source_buzzsprout/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_buzzsprout.my_airbyte_source_buzzsprout "" diff --git a/examples/resources/airbyte_source_buzzsprout/resource.tf b/examples/resources/airbyte_source_buzzsprout/resource.tf new file mode 100644 index 000000000..7e944a09b --- /dev/null +++ b/examples/resources/airbyte_source_buzzsprout/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_buzzsprout" "my_source_buzzsprout" { + configuration = { + api_key = "...my_api_key..." + podcast_id = "...my_podcast_id..." + start_date = "2022-12-25T14:11:43.769Z" + } + definition_id = "238eba13-61d3-4c00-8fe1-ba68d340502b" + name = "Ricardo Altenwerth" + secret_id = "...my_secret_id..." + workspace_id = "febd39e6-abf1-47c2-950c-b6e6ff332bdf" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_calendly/resource.tf b/examples/resources/airbyte_source_calendly/resource.tf index 466b618f1..a763bd690 100644 --- a/examples/resources/airbyte_source_calendly/resource.tf +++ b/examples/resources/airbyte_source_calendly/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_calendly" "my_source_calendly" { configuration = { api_key = "...my_api_key..." - start_date = "2022-09-12T17:45:07.121Z" + start_date = "2022-09-22T09:32:58.921Z" } - definition_id = "ebc3680a-bb37-46bc-a66a-7c0ce20da3e9" - name = "Donnie Price II" + definition_id = "5775fcbb-81a7-4466-bf78-b3b7dede547f" + name = "Miss Lonnie Schaden" secret_id = "...my_secret_id..." - workspace_id = "54cb2418-93e1-4da4-ac4f-685d205011b8" + workspace_id = "53c35168-9ddb-43b3-9740-139dc2cf2cb4" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_canny/import.sh b/examples/resources/airbyte_source_canny/import.sh new file mode 100644 index 000000000..aaa72c964 --- /dev/null +++ b/examples/resources/airbyte_source_canny/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_canny.my_airbyte_source_canny "" diff --git a/examples/resources/airbyte_source_canny/resource.tf b/examples/resources/airbyte_source_canny/resource.tf new file mode 100644 index 000000000..5c485352f --- /dev/null +++ b/examples/resources/airbyte_source_canny/resource.tf @@ -0,0 +1,9 @@ +resource "airbyte_source_canny" "my_source_canny" { + configuration = { + api_key = "...my_api_key..." + } + definition_id = "16442d85-f5b6-4382-a70e-18a8172f9322" + name = "Rebecca Satterfield" + secret_id = "...my_secret_id..." + workspace_id = "9cbaa542-e6e0-4809-a1d8-4c3fbc24f860" +} \ 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 b7b177353..a342b5e6d 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 = "Joelle30" + user_name = "Yadira_Schmidt33" user_secret = "...my_user_secret..." } } start_date = "2021-01-01T00:00:00Z" } - definition_id = "73b75739-1086-418e-9144-5d83c494a849" - name = "Ms. Kristopher Hammes" + definition_id = "198c116e-7265-481e-a677-0fa8ec1ba804" + name = "Dewey Kautzer" secret_id = "...my_secret_id..." - workspace_id = "0e32c2e3-02e6-4de9-ab3e-43098446f983" + workspace_id = "7a40e885-1a35-441b-a6f5-d90d5a8a349e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_chameleon/import.sh b/examples/resources/airbyte_source_chameleon/import.sh new file mode 100644 index 000000000..1ab9067e7 --- /dev/null +++ b/examples/resources/airbyte_source_chameleon/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_chameleon.my_airbyte_source_chameleon "" diff --git a/examples/resources/airbyte_source_chameleon/resource.tf b/examples/resources/airbyte_source_chameleon/resource.tf new file mode 100644 index 000000000..b720c289c --- /dev/null +++ b/examples/resources/airbyte_source_chameleon/resource.tf @@ -0,0 +1,13 @@ +resource "airbyte_source_chameleon" "my_source_chameleon" { + configuration = { + api_key = "...my_api_key..." + end_date = "2022-12-14T08:22:45.312Z" + filter = "survey" + limit = "...my_limit..." + start_date = "2022-04-19T09:29:33.891Z" + } + definition_id = "dff3818d-be50-4fcb-b2a7-8173abb82e6a" + name = "Diane Luettgen" + secret_id = "...my_secret_id..." + workspace_id = "9256d746-38d1-4409-8639-cf5dd4a0c05f" +} \ 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 9b9bc0c2e..a5f4fc948 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 = "422d15b8-2862-41a8-b7d2-e625cdd80ba5" - name = "Aubrey Harber" + definition_id = "f6b9b8b8-f8f6-4afb-b365-d687e087e390" + name = "Kelli Howell" secret_id = "...my_secret_id..." - workspace_id = "6fc10ca6-7a82-47c3-9349-f444d8a8589d" + workspace_id = "17faeb4f-73b7-4e8d-8371-ecbee10511b4" } \ 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 227b80d57..6b31d78b3 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 = "94dcfaea-5500-4380-9e9f-446900c8feba" - name = "Mamie Green" + definition_id = "ed171c9d-9f9b-4478-bac2-32bfa41c80b2" + name = "Lillian Grimes" secret_id = "...my_secret_id..." - workspace_id = "fea08abd-da32-48f6-8373-e06663420a6a" + workspace_id = "949a9555-9f5a-434f-b680-c88d8e9f7431" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_cimis/import.sh b/examples/resources/airbyte_source_cimis/import.sh new file mode 100644 index 000000000..09730c130 --- /dev/null +++ b/examples/resources/airbyte_source_cimis/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_cimis.my_airbyte_source_cimis "" diff --git a/examples/resources/airbyte_source_cimis/resource.tf b/examples/resources/airbyte_source_cimis/resource.tf new file mode 100644 index 000000000..ed4d38001 --- /dev/null +++ b/examples/resources/airbyte_source_cimis/resource.tf @@ -0,0 +1,22 @@ +resource "airbyte_source_cimis" "my_source_cimis" { + configuration = { + api_key = "...my_api_key..." + daily_data_items = [ + "{ \"see\": \"documentation\" }", + ] + end_date = "2022-11-12T10:35:00.527Z" + hourly_data_items = [ + "{ \"see\": \"documentation\" }", + ] + start_date = "2022-02-11T00:33:21.405Z" + targets = [ + "{ \"see\": \"documentation\" }", + ] + targets_type = "California zip codes" + unit_of_measure = "E" + } + definition_id = "27fd51b6-6ec3-445b-9c1b-ae74726a8cd9" + name = "Floyd Orn" + secret_id = "...my_secret_id..." + workspace_id = "47afda11-e10d-4002-a1c7-3f9ba1e39a63" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_clazar/resource.tf b/examples/resources/airbyte_source_clazar/resource.tf index 8102eaf55..298df07bc 100644 --- a/examples/resources/airbyte_source_clazar/resource.tf +++ b/examples/resources/airbyte_source_clazar/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_clazar" "my_source_clazar" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." } - definition_id = "3ab4d447-55b9-410e-9c99-9e89cbd0e8f2" - name = "Vincent Kshlerin" + definition_id = "be209caa-593e-4b80-8ec8-c0a1f11671a5" + name = "Mercedes Abernathy" secret_id = "...my_secret_id..." - workspace_id = "1fbec883-da2f-4ecd-acab-29e0bc6002c3" + workspace_id = "f4b5e4c1-9596-4433-a1d5-1484aac586d0" } \ 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 3431ac94d..3a82b8030 100644 --- a/examples/resources/airbyte_source_clickhouse/resource.tf +++ b/examples/resources/airbyte_source_clickhouse/resource.tf @@ -5,13 +5,14 @@ resource "airbyte_source_clickhouse" "my_source_clickhouse" { jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." port = 8123 + ssl = true tunnel_method = { no_tunnel = {} } - username = "Otho19" + username = "Brittany75" } - definition_id = "e8783d50-d4d2-4b80-850d-c344f66cbf0e" - name = "Trevor Bednar" + definition_id = "5465b457-a2c2-4618-be1b-91dcce8e649d" + name = "Jessie Kunze" secret_id = "...my_secret_id..." - workspace_id = "994ace41-dc5b-442f-aa22-8e88647f2d42" + workspace_id = "b58122af-6a8a-4c65-936a-205f1e4d309e" } \ 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 6ee8b9b22..d11004e51 100644 --- a/examples/resources/airbyte_source_clickup_api/resource.tf +++ b/examples/resources/airbyte_source_clickup_api/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_clickup_api" "my_source_clickupapi" { configuration = { api_token = "...my_api_token..." - include_closed_tasks = true + include_closed_tasks = false } - definition_id = "506042c1-c656-461b-a485-a060238eba13" - name = "Joyce Shields" + definition_id = "5800594f-bd86-4631-8cac-e02f96b83355" + name = "Dixie Kessler" secret_id = "...my_secret_id..." - workspace_id = "00cfe1ba-68d3-4405-82b9-6029febd39e6" + workspace_id = "181b36cf-1afc-4f94-a3c7-9cbeca1c7573" } \ 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 907e06ddd..1d0dc6b48 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 = "abf17c2d-50cb-46e6-bf33-2bdf145775fc" - name = "Miss Ira Lesch" + definition_id = "a5bbba82-d4c0-4a2c-af78-12475bca9a48" + name = "Amber Osinski" secret_id = "...my_secret_id..." - workspace_id = "466bf78b-3b7d-4ede-947f-c7c1cb53c351" + workspace_id = "0ddc3156-b2ff-4d5d-ac69-da5497add71f" } \ 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 c4293170d..a4d6e53c1 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 = "9ddb3b3d-7401-439d-82cf-2cb416442d85" - name = "Vernon Ratke" + definition_id = "ea586a09-709e-4dce-b2c4-357e7eb149e6" + name = "Terence Miller" secret_id = "...my_secret_id..." - workspace_id = "82e70e18-a817-42f9-b227-1c9f9cbaa542" + workspace_id = "6bd271d6-f7a7-47e5-9b04-b8d52e6bc1e2" } \ 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 207bbf235..a864d0f70 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 = "e6e08096-1d84-4c3f-bc24-f860fce85198" - name = "Andrew Cartwright" + definition_id = "2381cdc2-e964-42f3-82fe-19c32edfee92" + name = "Kim Dickens" secret_id = "...my_secret_id..." - workspace_id = "726581ee-6770-4fa8-ac1b-a804bd6457a4" + workspace_id = "3ad2c887-f28e-4f97-9a7b-102e5487915a" } \ 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 f7a60d3f0..0fe9f708c 100644 --- a/examples/resources/airbyte_source_coin_api/resource.tf +++ b/examples/resources/airbyte_source_coin_api/resource.tf @@ -4,12 +4,12 @@ resource "airbyte_source_coin_api" "my_source_coinapi" { end_date = "2019-01-01T00:00:00" environment = "sandbox" limit = 10 - period = "2MTH" + period = "5SEC" start_date = "2019-01-01T00:00:00" symbol_id = "...my_symbol_id..." } - definition_id = "851a3541-ba6f-45d9-8d5a-8a349e2072bd" - name = "Jan DuBuque IV" + definition_id = "49e5b0b6-8d5f-4b4b-99e2-f7dc2833c76b" + name = "Sammy Hauck" secret_id = "...my_secret_id..." - workspace_id = "dbe50fcb-32a7-4817-babb-82e6a7189e92" + workspace_id = "566b4ade-0498-4ec4-8fd8-ad9161a05c5e" } \ 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 da3b5294a..89ce9ac7f 100644 --- a/examples/resources/airbyte_source_coinmarketcap/resource.tf +++ b/examples/resources/airbyte_source_coinmarketcap/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_coinmarketcap" "my_source_coinmarketcap" { configuration = { api_key = "...my_api_key..." - data_type = "latest" + data_type = "historical" symbols = [ "...", ] } - definition_id = "6d74638d-1409-4463-9cf5-dd4a0c05f536" - name = "Reginald Rath" + definition_id = "89977eae-086e-43c2-9330-82ab840e5611" + name = "Marianne Bradtke" secret_id = "...my_secret_id..." - workspace_id = "8b8f8f6a-fbf3-465d-a87e-087e3905b6a4" + workspace_id = "a0210a5c-fbec-4287-a54f-12bc84028fbb" } \ 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 93892bbf1..c5cd71dc5 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 = "Barney_Koss91" + username = "Alena_Satterfield76" } - definition_id = "b4f73b7e-8dc3-471e-8bee-10511b439ed1" - name = "Stephanie Runte" + definition_id = "f802e3e6-0165-4466-b52d-a9b04e26c5d5" + name = "Dr. Roman Heaney" secret_id = "...my_secret_id..." - workspace_id = "9f9b4783-ac23-42bf-a41c-80b23345c949" + workspace_id = "f713464e-d5bf-46d6-b306-cc548e68cfae" } \ 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 2ad769560..7e131e8ff 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 = "9f5a34ff-680c-488d-8e9f-7431721e4227" - name = "Miss Dewey Hintz" + definition_id = "df143ee1-0f82-479e-827b-2c340e1d4b42" + name = "Miss Rickey Bradtke" secret_id = "...my_secret_id..." - workspace_id = "6ec345b5-c1ba-4e74-b26a-8cd9c5aad47a" + workspace_id = "2aeeab6a-16bc-40f1-be55-67777324c6ca" } \ 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 ec91e62c1..d3ab63c08 100644 --- a/examples/resources/airbyte_source_convex/resource.tf +++ b/examples/resources/airbyte_source_convex/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_convex" "my_source_convex" { configuration = { access_key = "...my_access_key..." - deployment_url = "https://cluttered-owl-337.convex.cloud" + deployment_url = "https://murky-swan-635.convex.cloud" } - definition_id = "da11e10d-002e-41c7-bf9b-a1e39a63be20" - name = "Jermaine Ortiz" + definition_id = "fcdac638-7854-4b69-842e-8b9a534c06fe" + name = "Genevieve Corwin" secret_id = "...my_secret_id..." - workspace_id = "93eb808e-c8c0-4a1f-9167-1a56d068f4b5" + workspace_id = "4eff211a-dfc7-421d-91f8-0239a929660c" } \ 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 76acc6307..a353e7f0d 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 = "e4c19596-433e-41d5-9484-aac586d05524" - name = "Lynne Hartmann" + definition_id = "93eb1144-8c1c-4d3a-be5e-f85381e22d9f" + name = "Henry Price Sr." secret_id = "...my_secret_id..." - workspace_id = "5b457a2c-2618-4fe1-b91d-cce8e649d767" + workspace_id = "24121e63-15be-4306-a4e8-3994413a7c75" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_customer_io/resource.tf b/examples/resources/airbyte_source_customer_io/resource.tf index c1be42997..4731051b1 100644 --- a/examples/resources/airbyte_source_customer_io/resource.tf +++ b/examples/resources/airbyte_source_customer_io/resource.tf @@ -2,8 +2,8 @@ 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" + definition_id = "d4c70b58-82c8-481a-8878-bfdf7e2fa4a6" + name = "Lucy Christiansen" secret_id = "...my_secret_id..." - workspace_id = "00594fbd-8663-414c-ace0-2f96b833556f" + workspace_id = "34bba48e-d6d0-4eaf-bf54-c7c369f9cb0a" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_datadog/resource.tf b/examples/resources/airbyte_source_datadog/resource.tf index 164df7551..e7b4517c0 100644 --- a/examples/resources/airbyte_source_datadog/resource.tf +++ b/examples/resources/airbyte_source_datadog/resource.tf @@ -3,20 +3,20 @@ resource "airbyte_source_datadog" "my_source_datadog" { api_key = "...my_api_key..." application_key = "...my_application_key..." end_date = "2022-10-01T00:00:00Z" - max_records_per_request = 4 + max_records_per_request = 2 queries = [ { data_source = "rum" - name = "Miss Carolyn MacGyver" + name = "Ms. Paul Beer" query = "...my_query..." }, ] query = "...my_query..." - site = "us5.datadoghq.com" + site = "datadoghq.eu" start_date = "2022-10-01T00:00:00Z" } - definition_id = "cf1afcf9-4e3c-479c-beca-1c7573a5bbba" - name = "Howard Stoltenberg" + definition_id = "ef770c81-f95c-45b8-9d2d-32b37f6fec5c" + name = "Thomas O'Conner" secret_id = "...my_secret_id..." - workspace_id = "0a2cef78-1247-45bc-a9a4-804a9e0ddc31" + workspace_id = "da52f695-43b8-4620-99bb-50480aaaf77a" } \ 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 8c00856b6..7cb2ef2ea 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 = "56b2ffd5-d6c6-49da-9497-add71ffdea58" - name = "Kristi Beahan" + definition_id = "e08fd2ca-f83f-4045-910a-7c570570b889" + name = "Tara Medhurst" secret_id = "...my_secret_id..." - workspace_id = "09edcef2-c435-47e7-ab14-9e6fe9a76bd2" + workspace_id = "4e6d7c2f-caa3-486d-a1d2-ddf0351c49c6" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_dbt/resource.tf b/examples/resources/airbyte_source_dbt/resource.tf index b3f6ccccf..47aa5ac2d 100644 --- a/examples/resources/airbyte_source_dbt/resource.tf +++ b/examples/resources/airbyte_source_dbt/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_dbt" "my_source_dbt" { account_id = "...my_account_id..." api_key_2 = "...my_api_key_2..." } - definition_id = "71d6f7a7-7e51-4b04-b8d5-2e6bc1e22381" - name = "Clint Sanford" + definition_id = "86900517-4142-45e4-938a-30ea56cdfa27" + name = "Dominic Will" secret_id = "...my_secret_id..." - workspace_id = "9642f3c2-fe19-4c32-adfe-e92bc3373ad2" + workspace_id = "25b4bae6-1112-4211-be87-b490ecc6bf75" } \ 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 38b303140..d223924d6 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-30 04:50:23" + since = "2022-05-30T04:50:23Z" } - definition_id = "7f28ef97-5a7b-4102-a548-7915a2f449e5" - name = "Jose Price" + definition_id = "16fc803c-8311-4a97-a1ae-8949629432a0" + name = "Nichole Wehner" secret_id = "...my_secret_id..." - workspace_id = "d5fb4b99-e2f7-4dc2-833c-76bbd55f566b" + workspace_id = "fe7e017f-9052-4f20-80e0-69282dd6a12c" } \ 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 2250840ef..2af629f1c 100644 --- a/examples/resources/airbyte_source_dixa/resource.tf +++ b/examples/resources/airbyte_source_dixa/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_dixa" "my_source_dixa" { configuration = { api_token = "...my_api_token..." - batch_size = 1 + batch_size = 31 start_date = "YYYY-MM-DD" } - definition_id = "0498ec40-fd8a-4d91-a1a0-5c5e889977ea" - name = "Gary Little" + definition_id = "bd9faeed-a058-4285-a791-3edfcf9c9058" + name = "Ben Mills Jr." secret_id = "...my_secret_id..." - workspace_id = "3c2d3308-2ab8-440e-9611-2c1fda0210a5" + workspace_id = "ee3e4cb5-5c69-45e2-b08e-b76e351cef20" } \ 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 544c7928e..b4b936bbc 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 = "cfbec287-654f-412b-8840-28fbb0cddcf8" - name = "Julia Watsica" + definition_id = "de4cfc33-2b42-4c84-8d8b-c6076e714fbf" + name = "Erma Wyman" secret_id = "...my_secret_id..." - workspace_id = "60165466-352d-4a9b-84e2-6c5d5cf50fbf" + workspace_id = "aed54ef2-4d0d-4e80-a3db-90502015d2de" } \ 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 8d20e8a59..e3637d4a2 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 = "713464ed-5bf6-4d67-b06c-c548e68cfaef" - name = "Dr. Tom Langworth" + definition_id = "4b8db33d-2b3a-427b-8b34-2a10fbc47ca7" + name = "Lucy Bruen" secret_id = "...my_secret_id..." - workspace_id = "143ee10f-8279-4e42-bb2c-340e1d4b428b" + workspace_id = "037c7eef-972d-4f3c-94a3-49fde89ab276" } \ 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 d52d7ae5f..bf9a0d719 100644 --- a/examples/resources/airbyte_source_dynamodb/resource.tf +++ b/examples/resources/airbyte_source_dynamodb/resource.tf @@ -8,12 +8,12 @@ resource "airbyte_source_dynamodb" "my_source_dynamodb" { } } endpoint = "https://{aws_dynamo_db_url}.com" - ignore_missing_read_permissions_tables = false - region = "af-south-1" + ignore_missing_read_permissions_tables = true + region = "il-central-1" reserved_attribute_names = "name, field_name, field-name" } - definition_id = "c62aeeab-6a16-4bc0-b1be-5567777324c6" - name = "Horace Kunde" + definition_id = "ad00caee-12c4-4e65-b57e-54a27b617a01" + name = "Lorena Huel" secret_id = "...my_secret_id..." - workspace_id = "dac63878-54b6-49c4-ae8b-9a534c06fe5a" + workspace_id = "68e1922d-f283-4a61-8313-a52314031fd7" } \ 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 4c8a6e08e..7fc873a8f 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 = "2e94eff2-11ad-4fc7-a1dd-1f80239a9296" - name = "Kimberly Schamberger" + definition_id = "b82b3c16-4c19-450d-a31e-becd9b5a75a7" + name = "Maurice Wiza" secret_id = "...my_secret_id..." - workspace_id = "eb11448c-1cd3-4afe-9ef8-5381e22d9fe1" + workspace_id = "1d722b31-0b67-46fb-b31c-6d5241e9821d" } \ 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 1a453f64e..9f3490709 100644 --- a/examples/resources/airbyte_source_exchange_rates/resource.tf +++ b/examples/resources/airbyte_source_exchange_rates/resource.tf @@ -1,12 +1,12 @@ resource "airbyte_source_exchange_rates" "my_source_exchangerates" { configuration = { access_key = "...my_access_key..." - base = "USD" + base = "EUR" ignore_weekends = true start_date = "YYYY-MM-DD" } - definition_id = "24121e63-15be-4306-a4e8-3994413a7c75" - name = "Alexander Schroeder MD" + definition_id = "3242ccd2-763a-40d3-8eb9-1c3df2593495" + name = "Phyllis Smitham" secret_id = "...my_secret_id..." - workspace_id = "5882c881-a087-48bf-9f7e-2fa4a63623e3" + workspace_id = "258f30a2-7183-4b00-ac70-45956c03ec7b" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_ezofficeinventory/import.sh b/examples/resources/airbyte_source_ezofficeinventory/import.sh new file mode 100644 index 000000000..8ffbd2b6b --- /dev/null +++ b/examples/resources/airbyte_source_ezofficeinventory/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_ezofficeinventory.my_airbyte_source_ezofficeinventory "" diff --git a/examples/resources/airbyte_source_ezofficeinventory/resource.tf b/examples/resources/airbyte_source_ezofficeinventory/resource.tf new file mode 100644 index 000000000..443e3e70f --- /dev/null +++ b/examples/resources/airbyte_source_ezofficeinventory/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_ezofficeinventory" "my_source_ezofficeinventory" { + configuration = { + api_key = "...my_api_key..." + start_date = "2021-07-04T01:47:08.951Z" + subdomain = "...my_subdomain..." + } + definition_id = "68fdfc06-92b4-4fd6-b3f5-9a8d0acc9948" + name = "Thomas Ankunding Jr." + secret_id = "...my_secret_id..." + workspace_id = "59fac1d6-c9b0-4f0f-b5d9-42704e93ebb3" +} \ 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 790f15902..783616b4c 100644 --- a/examples/resources/airbyte_source_facebook_marketing/resource.tf +++ b/examples/resources/airbyte_source_facebook_marketing/resource.tf @@ -4,9 +4,8 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { account_ids = [ "...", ] - action_breakdowns_allow_empty = true ad_statuses = [ - "PENDING_BILLING_INFO", + "DELETED", ] adset_statuses = [ "PAUSED", @@ -14,8 +13,6 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { campaign_statuses = [ "IN_PROCESS", ] - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." credentials = { authenticate_via_facebook_marketing_oauth = { access_token = "...my_access_token..." @@ -26,33 +23,33 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { custom_insights = [ { action_breakdowns = [ - "action_destination", + "action_type", ] - action_report_time = "impression" + action_report_time = "mixed" breakdowns = [ "skan_conversion_id", ] end_date = "2017-01-26T00:00:00Z" fields = [ - "video_avg_time_watched_actions", + "account_currency", ] - insights_job_timeout = 0 - insights_lookback_window = 10 - level = "campaign" - name = "Darryl Wunsch" + insights_job_timeout = 10 + insights_lookback_window = 0 + level = "account" + name = "Kara Macejkovic" start_date = "2017-01-25T00:00:00Z" - time_increment = 8 + time_increment = 10 }, ] end_date = "2017-01-26T00:00:00Z" - fetch_thumbnail_images = true - insights_job_timeout = 10 - insights_lookback_window = 6 - page_size = 8 + fetch_thumbnail_images = false + insights_job_timeout = 8 + insights_lookback_window = 7 + page_size = 10 start_date = "2017-01-25T00:00:00Z" } - definition_id = "a3dd0007-daef-4770-881f-95c5b8dd2d32" - name = "Stanley Kutch" + definition_id = "6a32dc31-e1b4-4b67-a953-bf2defea2fd1" + name = "Dana Wuckert" secret_id = "...my_secret_id..." - workspace_id = "fec5cd0a-4fda-452f-a954-3b8620d9bb50" + workspace_id = "d3631398-5539-4f35-ad32-06afb3a724a6" } \ 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 32b157121..9e18b2c8f 100644 --- a/examples/resources/airbyte_source_faker/resource.tf +++ b/examples/resources/airbyte_source_faker/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_faker" "my_source_faker" { configuration = { always_updated = true - count = 6 - parallelism = 0 - records_per_slice = 7 - seed = 6 + count = 8 + parallelism = 2 + records_per_slice = 0 + seed = 0 } - definition_id = "af77ae08-fd2c-4af8-bf04-5910a7c57057" - name = "Latoya Kuvalis" + definition_id = "34e58876-cb03-40a1-a8ae-06a57c7c577a" + name = "Joe Weber" secret_id = "...my_secret_id..." - workspace_id = "169da4e6-d7c2-4fca-a386-da1d2ddf0351" + workspace_id = "addd2747-bbc7-4f24-9709-ce4fe165bc48" } \ 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 ed051cff0..568013a33 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 = 8 + page_size = 3 } domain = "...my_domain..." - port = 3 + port = 0 scheme = "...my_scheme..." secret = "...my_secret..." } - definition_id = "9c686900-5174-4142-9e4d-38a30ea56cdf" - name = "Todd Kuhlman" + definition_id = "e7fb5df2-5477-4f37-8b0e-c7c89bfb0cb9" + name = "Everett Schultz" secret_id = "...my_secret_id..." - workspace_id = "f6225b4b-ae61-4112-a113-e87b490ecc6b" + workspace_id = "27a8c72c-3eb5-4dc5-9714-db07d7698733" } \ 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 01b5be54e..c75a1ab20 100644 --- a/examples/resources/airbyte_source_file/resource.tf +++ b/examples/resources/airbyte_source_file/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_source_file" "my_source_file" { configuration = { dataset_name = "...my_dataset_name..." - format = "yaml" + format = "jsonl" provider = { az_blob_azure_blob_storage = { sas_token = "...my_sas_token..." @@ -12,8 +12,8 @@ resource "airbyte_source_file" "my_source_file" { reader_options = "{\"sep\": \" \"}" url = "gs://my-google-bucket/data.csv" } - definition_id = "16116fc8-03c8-4311-a97a-1ae894962943" - name = "Kristine Bailey" + definition_id = "b53a479a-0805-4ff1-b93b-f9b799d63199" + name = "Gilberto Jones" secret_id = "...my_secret_id..." - workspace_id = "eacfe7e0-17f9-4052-b204-0e069282dd6a" + workspace_id = "68c85ec2-1a9a-4b56-bf13-c77e51fa773f" } \ 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 daf9468b1..f9b4fc92e 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 = "12cb01cb-d9fa-4eed-a058-28527913edfc" - name = "Virgil Rosenbaum II" + definition_id = "cf1a4306-e082-4909-997b-fabbad3671a9" + name = "Shaun Bosco" secret_id = "...my_secret_id..." - workspace_id = "8e69d20e-e3e4-4cb5-9c69-5e2f08eb76e3" + workspace_id = "c174fee4-1455-462d-a757-6235e52bb8ad" } \ 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 cadcfeae0..eb28547e0 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 = "51cef20d-e4cf-4c33-ab42-c84cd8bc6076" - name = "Julio Bode" + definition_id = "c8fd2a7f-940d-4ec4-8e21-6dff8929e4d2" + name = "Miss Genevieve Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "bf0cfd3a-ed54-4ef2-8d0d-e80e3db90502" + workspace_id = "94f7d68d-64a8-410b-a959-587ed0c47c0f" } \ 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 d5c267f6a..856c46c7b 100644 --- a/examples/resources/airbyte_source_freshcaller/resource.tf +++ b/examples/resources/airbyte_source_freshcaller/resource.tf @@ -2,12 +2,12 @@ resource "airbyte_source_freshcaller" "my_source_freshcaller" { configuration = { api_key = "...my_api_key..." domain = "snaptravel" - requests_per_minute = 0 + requests_per_minute = 6 start_date = "2022-01-01T12:00:00Z" - sync_lag_minutes = 9 + sync_lag_minutes = 2 } - definition_id = "2de4b8db-33d2-4b3a-a7b0-b342a10fbc47" - name = "Ms. Grant Krajcik I" + definition_id = "3c0f294c-11e4-4e99-bd29-474281bb54df" + name = "Sam Sawayn" secret_id = "...my_secret_id..." - workspace_id = "9037c7ee-f972-4df3-814a-349fde89ab27" + workspace_id = "b79e2328-88b6-4bde-a515-4a52da80f2bf" } \ 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 2ba37d1a6..6df95ff74 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 = 4 - requests_per_minute = 8 + lookback_window_in_days = 7 + requests_per_minute = 3 start_date = "2020-12-01T00:00:00Z" } - definition_id = "d00caee1-2c4e-465b-97e5-4a27b617a012" - name = "Ramon Robel" + definition_id = "53a69509-35ad-4536-8500-4734e30b46b9" + name = "Bobbie Toy" secret_id = "...my_secret_id..." - workspace_id = "8e1922df-283a-4614-b13a-52314031fd7b" + workspace_id = "758ac092-2711-49b9-9b60-c98bb7037ab5" } \ 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 ae6e9ac76..6a56ed59a 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 = "82b3c164-c195-40da-b1eb-ecd9b5a75a7c" - name = "Shari Rutherford PhD" + definition_id = "561ce1bb-1cad-4aa0-a328-a3bd5563e04d" + name = "Bruce Leannon" secret_id = "...my_secret_id..." - workspace_id = "722b310b-676f-4b73-9c6d-5241e9821d4f" + workspace_id = "75265fdf-f2de-4b8c-bf26-74a92033b17b" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_front/import.sh b/examples/resources/airbyte_source_front/import.sh new file mode 100644 index 000000000..f6afc12e8 --- /dev/null +++ b/examples/resources/airbyte_source_front/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_front.my_airbyte_source_front "" diff --git a/examples/resources/airbyte_source_front/resource.tf b/examples/resources/airbyte_source_front/resource.tf new file mode 100644 index 000000000..8fbf5e082 --- /dev/null +++ b/examples/resources/airbyte_source_front/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_front" "my_source_front" { + configuration = { + api_key = "...my_api_key..." + page_limit = "...my_page_limit..." + start_date = "2020-09-01T18:02:32.558Z" + } + definition_id = "c526af10-da40-41fb-8fc5-2730b39994a4" + name = "Kellie Grady" + secret_id = "...my_secret_id..." + workspace_id = "985c78fa-7d86-4bdf-9bf9-1acb12108372" +} \ 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 c006c3ee6..deaee6b16 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 = "c03242cc-d276-43a0-930e-b91c3df25934" - name = "Lloyd Herzog" + definition_id = "8d89e351-e868-4df1-b2c5-ad84a46153eb" + name = "April Beer" secret_id = "...my_secret_id..." - workspace_id = "c8258f30-a271-483b-80ec-7045956c03ec" + workspace_id = "26d4887c-caaf-458e-8f5c-1159d6014991" } \ 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 c3552030c..ca593bebe 100644 --- a/examples/resources/airbyte_source_gcs/resource.tf +++ b/examples/resources/airbyte_source_gcs/resource.tf @@ -5,7 +5,7 @@ resource "airbyte_source_gcs" "my_source_gcs" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 6 + days_to_sync_if_history_is_full = 9 format = { avro_format = { double_as_string = true @@ -15,17 +15,15 @@ resource "airbyte_source_gcs" "my_source_gcs" { "...", ] 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" + name = "Leland Kshlerin" + recent_n_files_to_read_for_schema_discovery = 5 + schemaless = false + validation_policy = "Wait for Discover" }, ] } - definition_id = "92b4fd67-3f59-4a8d-8acc-9948b0061059" - name = "Dr. Cameron Rosenbaum" + definition_id = "c604057d-0451-4918-9b5c-ccbbbdb31196" + name = "Mindy Morissette" secret_id = "...my_secret_id..." - workspace_id = "c9b0f0f3-5d94-4270-8e93-ebb36d8aaea0" + workspace_id = "67745afb-65f1-4720-bd7a-7ec19162647e" } \ 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 d330f67a6..0337a21a5 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 = "0f0c4c84-b89e-4625-bae8-76a32dc31e1b" - name = "Yvette Howell" + definition_id = "680e4417-c6f4-4b50-9c82-06a4b043ef09" + name = "Ricardo Cartwright" secret_id = "...my_secret_id..." - workspace_id = "953bf2de-fea2-4fd1-85f4-8d3631398553" + workspace_id = "5b726765-eab1-4ad8-8295-4bd759bdc8b9" } \ 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 54967b9d0..92597ea16 100644 --- a/examples/resources/airbyte_source_github/resource.tf +++ b/examples/resources/airbyte_source_github/resource.tf @@ -1,7 +1,6 @@ resource "airbyte_source_github" "my_source_github" { configuration = { - api_url = "https://github.company.org" - branch = "airbytehq/airbyte/master airbytehq/airbyte/my-branch" + api_url = "https://github.com" branches = [ "...", ] @@ -16,11 +15,10 @@ resource "airbyte_source_github" "my_source_github" { repositories = [ "...", ] - repository = "airbytehq/*" start_date = "2021-03-01T00:00:00Z" } - definition_id = "3206afb3-a724-4a60-9401-34e58876cb03" - name = "Jan Bernier" + definition_id = "7f557094-a97b-4635-ad53-391630fd2f13" + name = "Lynette Gulgowski" secret_id = "...my_secret_id..." - workspace_id = "ae06a57c-7c57-47af-9e5b-addd2747bbc7" + workspace_id = "ef253f33-ac13-45dc-90f6-3794a97d5acf" } \ 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 fc9c8c974..66ced26a1 100644 --- a/examples/resources/airbyte_source_gitlab/resource.tf +++ b/examples/resources/airbyte_source_gitlab/resource.tf @@ -1,27 +1,25 @@ resource "airbyte_source_gitlab" "my_source_gitlab" { configuration = { - api_url = "https://gitlab.company.org" + api_url = "https://gitlab.com" 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-09-22T11:58:26.764Z" + token_expiry_date = "2022-11-02T09:49:39.802Z" } } - groups = "airbyte.io" groups_list = [ "...", ] - projects = "airbyte.io/documentation" projects_list = [ "...", ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "09ce4fe1-65bc-4484-8e7f-b5df25477f37" - name = "Hannah Becker" + definition_id = "a66e5ad3-9192-4931-8c65-ed70eb17cb4f" + name = "Mr. Jeremy Gislason" secret_id = "...my_secret_id..." - workspace_id = "7c89bfb0-cb9d-48df-827a-8c72c3eb5dc5" + workspace_id = "ca0d0171-1f25-4a28-9de0-4a9ce3be57bf" } \ 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 ff65c1107..45f2fcacb 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 = "5714db07-d769-4873-b386-b53a479a0805" - name = "Emmett Bruen" + definition_id = "a4612744-2775-4ed0-8074-e17a64885711" + name = "Jean McGlynn" secret_id = "...my_secret_id..." - workspace_id = "3bf9b799-d631-499b-96b4-68c85ec21a9a" + workspace_id = "e75a513e-0097-4779-b827-c06dd86b4fbd" } \ 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 b0374bbde..51fef5572 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 = "ru" + country = "ua" end_date = "2022-08-21 16:27:09" in = [ - "title", + "description", ] - language = "hi" + language = "no" nullable = [ - "description", + "content", ] - query = "Intel AND (i7 OR i9)" + query = "Apple OR Microsoft" sortby = "publishedAt" start_date = "2022-08-21 16:27:09" - top_headlines_query = "Apple OR Microsoft" - top_headlines_topic = "sports" + top_headlines_query = "Apple AND NOT iPhone" + top_headlines_topic = "nation" } - definition_id = "77e51fa7-73fc-4f1a-8306-e082909d97bf" - name = "Kerry Reinger" + definition_id = "5108cd8d-f8fd-4dac-ae82-61af8b9bb485" + name = "Nadine Jenkins" secret_id = "...my_secret_id..." - workspace_id = "3671a9ca-1d9c-4174-bee4-145562d27576" + workspace_id = "be1e785d-e7e3-427e-b787-5126eb569443" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_goldcast/resource.tf b/examples/resources/airbyte_source_goldcast/resource.tf index bcc3c764b..7b096ec5a 100644 --- a/examples/resources/airbyte_source_goldcast/resource.tf +++ b/examples/resources/airbyte_source_goldcast/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_goldcast" "my_source_goldcast" { configuration = { access_key = "...my_access_key..." } - definition_id = "235e52bb-8adc-48fd-aa7f-940dec44e216" - name = "Moses Wolf" + definition_id = "12d5d5e6-a2d8-43c0-8c98-dd5412256513" + name = "Miss Melvin Hirthe II" secret_id = "...my_secret_id..." - workspace_id = "29e4d23a-00b4-494f-bd68-d64a810b2959" + workspace_id = "88926ab9-cfe2-4e85-afcc-9acc6e7e95c9" } \ 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 0b2f1e34b..509e4c78b 100644 --- a/examples/resources/airbyte_source_google_ads/resource.tf +++ b/examples/resources/airbyte_source_google_ads/resource.tf @@ -21,8 +21,8 @@ resource "airbyte_source_google_ads" "my_source_googleads" { end_date = "2017-01-30" start_date = "2017-01-25" } - definition_id = "c47c0f9c-e33c-40f2-94c1-1e4e993d2947" - name = "Miss Andrea Lind" + definition_id = "97511d62-4796-4585-8950-01aad5e5f9cf" + name = "Dr. Joseph Schumm" secret_id = "...my_secret_id..." - workspace_id = "54dff6cf-9b79-4e23-a888-b6bde25154a5" + workspace_id = "d3acce90-aeed-4108-bb98-82d54ce598cc" } \ 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 1865c176e..c7f75faa5 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 = 82.98 + value = 59.26 } } to_value = { double_value = { - value = 63.94 + value = 93.52 } } } @@ -49,12 +49,12 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda between_filter = { from_value = { double_value = { - value = 51.9 + value = 72.46 } } to_value = { double_value = { - value = 4.5 + value = 58.88 } } } @@ -66,19 +66,19 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda metrics = [ "...", ] - name = "Todd Rodriguez" + name = "Mrs. Julia Windler" }, ] date_ranges_start_date = "2021-01-01" - keep_empty_rows = false - lookback_window = 4 + keep_empty_rows = true + lookback_window = 3 property_ids = [ "...", ] - window_in_days = 120 + window_in_days = 364 } - definition_id = "950935ad-536c-4500-8734-e30b46b959e4" - name = "Julio Harber" + definition_id = "8f9d1baa-c6e0-45b1-a50c-14468d231cdd" + name = "Jordan Wunsch PhD" secret_id = "...my_secret_id..." - workspace_id = "c0922711-9b95-4b60-898b-b7037ab5561c" + workspace_id = "deee1be4-e723-4eea-b419-bc59e04a869e" } \ 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 e2632caba..f927ef228 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 = "Aniya.Prohaska79@hotmail.com" + email = "Rey57@yahoo.com" } } } - definition_id = "adaa0e32-8a3b-4d55-a3e0-4de287b75265" - name = "Mack Wisozk" + definition_id = "f3b04e32-dc64-49b6-bc8e-2c7d0de0f8a2" + name = "Dustin Kozey" secret_id = "...my_secret_id..." - workspace_id = "deb8cbf2-674a-4920-b3b1-7bfcc526af10" + workspace_id = "de20e751-11fd-4061-affd-3df11978b385" } \ 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 907620a3e..2d86c4d04 100644 --- a/examples/resources/airbyte_source_google_drive/resource.tf +++ b/examples/resources/airbyte_source_google_drive/resource.tf @@ -11,7 +11,7 @@ resource "airbyte_source_google_drive" "my_source_googledrive" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 3 + days_to_sync_if_history_is_full = 5 format = { avro_format = { double_as_string = true @@ -21,15 +21,14 @@ resource "airbyte_source_google_drive" "my_source_googledrive" { "...", ] input_schema = "...my_input_schema..." - name = "Dr. Shawna Robel" - primary_key = "...my_primary_key..." - schemaless = false - validation_policy = "Emit Record" + name = "Adrienne Mraz DDS" + schemaless = true + validation_policy = "Skip Record" }, ] } - definition_id = "730b3999-4a41-4e4a-8985-c78fa7d86bdf" - name = "Kristy Wilderman MD" + definition_id = "284a2115-5c54-4910-a09b-e9a984e4b07b" + name = "Mrs. Rex Witting" secret_id = "...my_secret_id..." - workspace_id = "cb121083-728d-489e-b51e-868df1f2c5ad" + workspace_id = "d5606ac5-9e7c-48ae-aeb0-9ffd3753fe46" } \ 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 0b9fb7d11..056665e3e 100644 --- a/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf +++ b/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf @@ -2,7 +2,7 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin configuration = { api_key = "...my_api_key..." categories = [ - "performance", + "pwa", ] strategies = [ "desktop", @@ -11,8 +11,8 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin "...", ] } - definition_id = "a46153eb-240d-4626-9488-7ccaaf58e0f5" - name = "Lawrence Casper" + definition_id = "403ba1bd-8103-4cfb-8228-49b585759fd7" + name = "Ervin Koss" secret_id = "...my_secret_id..." - workspace_id = "d6014991-0eec-4fc7-b384-ec604057d045" + workspace_id = "a20ea69f-1b1a-4975-9d1b-5a0295b197bb" } \ 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 4406793cd..289db35d2 100644 --- a/examples/resources/airbyte_source_google_search_console/resource.tf +++ b/examples/resources/airbyte_source_google_search_console/resource.tf @@ -8,13 +8,12 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" refresh_token = "...my_refresh_token..." } } - custom_reports = "...my_custom_reports..." custom_reports_array = [ { dimensions = [ - "country", + "page", ] - name = "Peter Luettgen" + name = "Judith Crona" }, ] data_state = "final" @@ -22,10 +21,10 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" site_urls = [ "...", ] - start_date = "2020-11-18" + start_date = "2022-06-01" } - definition_id = "bbdb3119-64f9-49d6-b745-afb65f1720bd" - name = "Harriet Kiehn" + definition_id = "155f731c-6e6b-4c1c-af16-6aee78925477" + name = "Jimmy Lockman" secret_id = "...my_secret_id..." - workspace_id = "19162647-e680-4e44-97c6-f4b509c8206a" + workspace_id = "53022ba4-aed2-4995-8663-b6d13c6e3bbb" } \ 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 1ce610fe2..d00ef9fd8 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 = 2 + batch_size = 6 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 = "043ef09e-61b7-45b7-a676-5eab1ad84295" - name = "Juana Stroman" + definition_id = "bd413d75-c669-43a6-b92e-f16650e4c312" + name = "Betsy Koss" secret_id = "...my_secret_id..." - workspace_id = "9bdc8b93-f80b-47f5-9709-4a97b6356d53" + workspace_id = "566ac796-fdac-41f4-8b8f-86701054c1db" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_tasks/import.sh b/examples/resources/airbyte_source_google_tasks/import.sh new file mode 100644 index 000000000..9d4bedece --- /dev/null +++ b/examples/resources/airbyte_source_google_tasks/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_google_tasks.my_airbyte_source_google_tasks "" diff --git a/examples/resources/airbyte_source_google_tasks/resource.tf b/examples/resources/airbyte_source_google_tasks/resource.tf new file mode 100644 index 000000000..11984acb3 --- /dev/null +++ b/examples/resources/airbyte_source_google_tasks/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_google_tasks" "my_source_googletasks" { + configuration = { + api_key = "...my_api_key..." + records_limit = "...my_records_limit..." + start_date = "2022-04-01T08:43:44.262Z" + } + definition_id = "e49a8fc7-f8e2-4467-a645-cfb2449eef87" + name = "Gail Waelchi" + secret_id = "...my_secret_id..." + workspace_id = "b875ea1f-a63f-46c0-bac1-403cfd915cc5" +} \ 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 09d1de4ce..04d5845b9 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 = "391630fd-2f13-41d4-bbef-253f33ac135d" - name = "Jackie Bayer" + definition_id = "3ae1f1c3-7b35-40eb-b398-1c89f963f1e6" + name = "Tara Goldner" secret_id = "...my_secret_id..." - workspace_id = "3794a97d-5acf-4562-93a6-6e5ad3919293" + workspace_id = "8788ff77-a589-433f-b738-d63dc7b7f8b1" } \ 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 63024d4c6..f97f98bca 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 = "14c65ed7-0eb1-47cb-8fc2-4002ca0d0171" - name = "Ollie Cummerata" + definition_id = "6c6167f1-e8f0-4042-b922-10b5c8f204e6" + name = "Clinton Kunde" secret_id = "...my_secret_id..." - workspace_id = "28dde04a-9ce3-4be5-bbfa-46127442775e" + workspace_id = "47eb6bab-c0f9-4b18-b2ea-fdc453fb6a01" } \ 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 a701eedc8..edaca0d60 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 = "d08074e1-7a64-4885-b11a-b94fe75a513e" - name = "Ruth Marquardt" + definition_id = "92c44771-2b4a-4020-8830-aabeffb8d976" + name = "Alice Bartell" secret_id = "...my_secret_id..." - workspace_id = "793827c0-6dd8-46b4-bbde-6ae53955108c" + workspace_id = "b440a5f2-f61a-44e4-a684-9f7bbeaaef52" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_guru/import.sh b/examples/resources/airbyte_source_guru/import.sh new file mode 100644 index 000000000..da4beb9a2 --- /dev/null +++ b/examples/resources/airbyte_source_guru/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_guru.my_airbyte_source_guru "" diff --git a/examples/resources/airbyte_source_guru/resource.tf b/examples/resources/airbyte_source_guru/resource.tf new file mode 100644 index 000000000..14e5f245f --- /dev/null +++ b/examples/resources/airbyte_source_guru/resource.tf @@ -0,0 +1,13 @@ +resource "airbyte_source_guru" "my_source_guru" { + configuration = { + password = "...my_password..." + search_cards_query = "...my_search_cards_query..." + start_date = "2022-12-16T14:49:37.143Z" + team_id = "...my_team_id..." + username = "Elfrieda_Fay27" + } + definition_id = "c473e8c7-bd59-4151-b4a5-53fda41daf76" + name = "Jeanette Trantow" + secret_id = "...my_secret_id..." + workspace_id = "1c5fa52e-0c6c-40cc-93e7-6e9fdef541f0" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_hardcoded_records/resource.tf b/examples/resources/airbyte_source_hardcoded_records/resource.tf index afae1c767..b485a9fac 100644 --- a/examples/resources/airbyte_source_hardcoded_records/resource.tf +++ b/examples/resources/airbyte_source_hardcoded_records/resource.tf @@ -1,9 +1,9 @@ resource "airbyte_source_hardcoded_records" "my_source_hardcodedrecords" { configuration = { - count = 9 + count = 4 } - definition_id = "8df8fdda-cae8-4261-af8b-9bb4850d654b" - name = "Albert Tromp" + definition_id = "ca13b1e8-9c14-488f-aa41-1d9d922269c9" + name = "Ricardo Gutmann" secret_id = "...my_secret_id..." - workspace_id = "5de7e327-e778-4751-a6eb-56944312d5d5" + workspace_id = "0bccdd2e-95af-46ed-bc47-c14160113c2d" } \ 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 9ae7513a8..07f97b929 100644 --- a/examples/resources/airbyte_source_harvest/resource.tf +++ b/examples/resources/airbyte_source_harvest/resource.tf @@ -9,11 +9,10 @@ resource "airbyte_source_harvest" "my_source_harvest" { refresh_token = "...my_refresh_token..." } } - replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" } - definition_id = "d83c0cc9-8dd5-4412-a565-139361b04889" - name = "Stacey O'Keefe" + definition_id = "b5eaa64b-86a4-42db-bb85-3ec4b5e6a18b" + name = "Christie Kshlerin Jr." secret_id = "...my_secret_id..." - workspace_id = "cfe2e85a-fcc9-4acc-ae7e-95c9a7c9f197" + workspace_id = "3de8da44-3bfa-4add-a9a6-dff6cb6bf32f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_height/import.sh b/examples/resources/airbyte_source_height/import.sh new file mode 100644 index 000000000..d254fa754 --- /dev/null +++ b/examples/resources/airbyte_source_height/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_height.my_airbyte_source_height "" diff --git a/examples/resources/airbyte_source_height/resource.tf b/examples/resources/airbyte_source_height/resource.tf new file mode 100644 index 000000000..35485ff8e --- /dev/null +++ b/examples/resources/airbyte_source_height/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_height" "my_source_height" { + configuration = { + api_key = "...my_api_key..." + search_query = "...my_search_query..." + start_date = "2021-02-09T19:28:34.370Z" + } + definition_id = "825bea4e-c87a-4aff-ab9e-a290f7e9f416" + name = "Bridget Gutmann" + secret_id = "...my_secret_id..." + workspace_id = "69c61d27-bbad-43f0-bf8c-a743bfb1506e" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_hibob/resource.tf b/examples/resources/airbyte_source_hibob/resource.tf index 14b1baa7f..073c7225d 100644 --- a/examples/resources/airbyte_source_hibob/resource.tf +++ b/examples/resources/airbyte_source_hibob/resource.tf @@ -2,10 +2,10 @@ resource "airbyte_source_hibob" "my_source_hibob" { configuration = { is_sandbox = false password = "...my_password..." - username = "Anissa.Boyle17" + username = "Richard_Jerde72" } - definition_id = "47965850-9500-41aa-95e5-f9cfb0d1e8d3" - name = "Forrest Schmitt" + definition_id = "8b49c82f-283f-4df1-b362-a3ef9cacc879" + name = "Matt Kuhic" secret_id = "...my_secret_id..." - workspace_id = "0aeed108-7b98-482d-94ce-598cc59eb952" + workspace_id = "01647dc7-c271-4c50-84a2-5a4f7e4eabe3" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_high_level/resource.tf b/examples/resources/airbyte_source_high_level/resource.tf index 370e1ddd0..2d37bf21b 100644 --- a/examples/resources/airbyte_source_high_level/resource.tf +++ b/examples/resources/airbyte_source_high_level/resource.tf @@ -2,10 +2,10 @@ 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" + start_date = "2021-11-13T14:23:46.779Z" } - definition_id = "6231c57f-d8f9-4d1b-aac6-e05b1e50c144" - name = "Marsha Stamm" + definition_id = "7768e793-45d1-4446-b033-18f29cf10b07" + name = "Julia Reichel" secret_id = "...my_secret_id..." - workspace_id = "1cdd98f8-1ede-4ee1-be4e-723eeaf419bc" + workspace_id = "b499111a-320c-4cad-9adc-1330ef574883" } \ 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 0265b376e..f4a1508ee 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 = "59e04a86-9e9d-4149-b3b0-4e32dc649b6b" - name = "Dwight Ward" + definition_id = "95b5ae04-23a6-4249-a514-955fa2ea25a5" + name = "Rosemarie Kulas Sr." secret_id = "...my_secret_id..." - workspace_id = "7d0de0f8-a2b5-47ad-9e20-e75111fd0612" + workspace_id = "e389cc42-00a4-4abb-b299-a611cc7be3e8" } \ 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 9bb53f957..4506a7e47 100644 --- a/examples/resources/airbyte_source_hubspot/resource.tf +++ b/examples/resources/airbyte_source_hubspot/resource.tf @@ -7,11 +7,11 @@ resource "airbyte_source_hubspot" "my_source_hubspot" { refresh_token = "refresh_token" } } - enable_experimental_streams = false + enable_experimental_streams = true start_date = "2017-01-25T00:00:00Z" } - definition_id = "3df11978-b385-4957-a3c9-21cc9284a211" - name = "Annette Runolfsson" + definition_id = "188dc05c-92c2-4050-bdf2-ba7d43d20d33" + name = "Mrs. Don Walsh" secret_id = "...my_secret_id..." - workspace_id = "910609be-9a98-44e4-b07b-caf13ed5606a" + workspace_id = "d5352278-8fae-4aba-9eb9-3c772879b606" } \ 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 1c3bc9cb6..a7dadddea 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 = "9e7c8aee-eb09-4ffd-b753-fe46a1403ba1" - name = "Mr. Gilberto Lebsack" + definition_id = "6a28df31-96ea-4920-bcb7-876e75a531f3" + name = "Mr. Bradley Luettgen" secret_id = "...my_secret_id..." - workspace_id = "cfb42284-9b58-4575-9fd7-9d74aa20ea69" + workspace_id = "3b9d6749-76db-4e11-ac78-116c70bfb326" } \ 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 b4e5063ce..0ce418c61 100644 --- a/examples/resources/airbyte_source_instagram/resource.tf +++ b/examples/resources/airbyte_source_instagram/resource.tf @@ -1,12 +1,10 @@ resource "airbyte_source_instagram" "my_source_instagram" { configuration = { - access_token = "...my_access_token..." - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." - start_date = "2017-01-25T00:00:00Z" + access_token = "...my_access_token..." + start_date = "2017-01-25T00:00:00Z" } - definition_id = "b1a975dd-1b5a-4029-9b19-7bbb0227d625" - name = "Earl Bruen" + definition_id = "c47d5036-1610-47c0-bf83-920634c9db1c" + name = "Julia Huels V" secret_id = "...my_secret_id..." - workspace_id = "f731c6e6-bc1c-4af1-a6ae-e78925477f38" + workspace_id = "282f0b30-8e78-4729-bf50-24b690b2736f" } \ 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 47f278d98..dd8e5a1ac 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 = "7c53022b-a4ae-4d29-95c6-63b6d13c6e3b" - name = "Pete McDermott" + definition_id = "2f7a3b95-d4ab-4cb3-adfb-bab6ad0e44a4" + name = "Wilbert Mayert DDS" secret_id = "...my_secret_id..." - workspace_id = "d413d75c-6693-4a6b-92ef-16650e4c3120" + workspace_id = "078573a2-0ac9-490f-9b2c-e7a67a85150e" } \ 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 09f1e2538..eac3820e7 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 = 5 + activity_logs_time_step = 10 client_id = "...my_client_id..." client_secret = "...my_client_secret..." start_date = "2020-11-16T00:00:00Z" } - definition_id = "566ac796-fdac-41f4-8b8f-86701054c1db" - name = "Vicky Torphy" + definition_id = "20cd618d-7428-4068-92ca-7b2695261555" + name = "Mrs. Maggie Kihn" secret_id = "...my_secret_id..." - workspace_id = "a8fc7f8e-2467-4264-9cfb-2449eef8764e" + workspace_id = "98a3f979-9a12-4d6e-b3e6-6d700d477245" } \ 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 a3307b6b5..57d78a7ee 100644 --- a/examples/resources/airbyte_source_ip2whois/resource.tf +++ b/examples/resources/airbyte_source_ip2whois/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_ip2whois" "my_source_ip2whois" { configuration = { api_key = "...my_api_key..." - domain = "www.facebook.com" + domain = "www.google.com" } - definition_id = "4b875ea1-fa63-4f6c-8fac-1403cfd915cc" - name = "Victoria Murazik DVM" + definition_id = "d0d26d91-47bb-4356-aca6-47ba4f7aaba2" + name = "Joy Lowe I" secret_id = "...my_secret_id..." - workspace_id = "1c37b350-ebb3-4981-889f-963f1e6164cc" + workspace_id = "1a21c893-8ad6-4fcb-b78b-ed98212c704a" } \ 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 cc6e44a05..f4a5cf3ae 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 = "88ff77a5-8933-4f77-b8d6-3dc7b7f8b16c" - name = "Janet Hodkiewicz" + definition_id = "9387527d-5e3e-4f72-86d0-c0b7968b7242" + name = "Edna Kihn" secret_id = "...my_secret_id..." - workspace_id = "1e8f0042-f922-410b-9c8f-204e6a775647" + workspace_id = "2e9e26c4-c104-4f1d-be3b-1f2904477573" } \ 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 bd46ebc5c..73c9d845c 100644 --- a/examples/resources/airbyte_source_jira/resource.tf +++ b/examples/resources/airbyte_source_jira/resource.tf @@ -1,23 +1,17 @@ resource "airbyte_source_jira" "my_source_jira" { configuration = { api_token = "...my_api_token..." - domain = "jira..com" - email = "Hayley_Rohan@hotmail.com" - enable_experimental_streams = false - expand_issue_changelog = true - expand_issue_transition = true - issues_stream_expand_with = [ - "transitions", - ] - lookback_window_minutes = 60 + domain = ".jira.com" + email = "Jeramie79@gmail.com" + enable_experimental_streams = true + lookback_window_minutes = 60 projects = [ "...", ] - render_fields = false - start_date = "2021-03-01T00:00:00Z" + start_date = "2021-03-01T00:00:00Z" } - definition_id = "2eafdc45-3fb6-4a01-92c4-47712b4a0208" - name = "Lee Aufderhar" + definition_id = "8014d1f2-6365-41b7-bf9f-e0e5e5f386d0" + name = "Leland Herzog" secret_id = "...my_secret_id..." - workspace_id = "beffb8d9-7651-4059-b440-a5f2f61a4e46" + workspace_id = "3c6558d9-b03d-425b-ae3d-badc477cb62b" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_jotform/import.sh b/examples/resources/airbyte_source_jotform/import.sh new file mode 100644 index 000000000..f47426c6a --- /dev/null +++ b/examples/resources/airbyte_source_jotform/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_jotform.my_airbyte_source_jotform "" diff --git a/examples/resources/airbyte_source_jotform/resource.tf b/examples/resources/airbyte_source_jotform/resource.tf new file mode 100644 index 000000000..f4ef13ddf --- /dev/null +++ b/examples/resources/airbyte_source_jotform/resource.tf @@ -0,0 +1,16 @@ +resource "airbyte_source_jotform" "my_source_jotform" { + configuration = { + api_endpoint = { + basic = { + url_prefix = "EU" + } + } + api_key = "...my_api_key..." + end_date = "2021-08-10T17:15:31.398Z" + start_date = "2021-02-10T10:54:29.564Z" + } + definition_id = "1ee42495-78a5-4bcb-bc2c-b83b2c4dd4d4" + name = "Ada Bartell" + secret_id = "...my_secret_id..." + workspace_id = "41ee0bba-b045-47d9-a639-8e6ecd841e72" +} \ 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 39b76acc5..bc398d0dd 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 = "6849f7bb-eaae-4f52-8043-cb4c473e8c7b" - name = "Mrs. Bill Mosciski IV" + definition_id = "a766a686-faa5-412d-8044-b05c5b711236" + name = "Elsa Cole" secret_id = "...my_secret_id..." - workspace_id = "4a553fda-41da-4f76-a6ef-51c5fa52e0c6" + workspace_id = "47b86cde-c1a2-4bc2-b81e-45e3ceb6c910" } \ 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 543600b09..e2e0f9d0e 100644 --- a/examples/resources/airbyte_source_klarna/resource.tf +++ b/examples/resources/airbyte_source_klarna/resource.tf @@ -1,12 +1,12 @@ resource "airbyte_source_klarna" "my_source_klarna" { configuration = { password = "...my_password..." - playground = true - region = "eu" - username = "Orland.Schmeler" + playground = false + region = "oc" + username = "Lauren_Haley" } - definition_id = "e76e9fde-f541-4f06-8a13-b1e89c1488fa" - name = "Dr. Randall Casper" + definition_id = "6cb5f3bc-4b32-453e-abd5-91e25444d223" + name = "Dr. Dixie Strosin" secret_id = "...my_secret_id..." - workspace_id = "d922269c-9d64-48f0-bccd-d2e95af6ed3c" + workspace_id = "ea1c7d43-320f-4ac9-81a8-dab7e73a5971" } \ 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 834184273..15d3df25d 100644 --- a/examples/resources/airbyte_source_klaviyo/resource.tf +++ b/examples/resources/airbyte_source_klaviyo/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_klaviyo" "my_source_klaviyo" { configuration = { api_key = "...my_api_key..." - disable_fetching_predictive_analytics = true + disable_fetching_predictive_analytics = false start_date = "2017-01-25T00:00:00Z" } - definition_id = "14160113-c2d3-4cb5-aaa6-4b86a42dbbb8" - name = "Rosa VonRueden" + definition_id = "e4dc1f63-3abc-458a-942d-517fc88bc499" + name = "Al Kling" secret_id = "...my_secret_id..." - workspace_id = "b5e6a18b-0d79-4003-9e8d-a443bfaadd29" + workspace_id = "fedea337-d55b-4155-98db-92c72d541f53" } \ 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 3d92df01e..2f885d0d7 100644 --- a/examples/resources/airbyte_source_kyve/resource.tf +++ b/examples/resources/airbyte_source_kyve/resource.tf @@ -1,13 +1,11 @@ resource "airbyte_source_kyve" "my_source_kyve" { configuration = { - max_pages = 7 - page_size = 4 pool_ids = "0,1" start_ids = "0,0" - url_base = "https://api.korellia.kyve.network/" + url_base = "https://api.kaon.kyve.network/" } - definition_id = "6cb6bf32-faf8-425b-aa4e-c87aaffeb9ea" - name = "Geneva Abshire" + definition_id = "8a50561c-1cc6-4291-a1ad-7b3d761e29ef" + name = "Natalie Murphy IV" secret_id = "...my_secret_id..." - workspace_id = "e9f4166b-42b6-49c6-9d27-bbad3f0bf8ca" + workspace_id = "d2b59ab5-6edb-457c-800c-cdeed12bd5eb" } \ 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 49625ce72..612d20d45 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 = "743bfb15-06e5-4d6d-ab8b-49c82f283fdf" - name = "Yvette Effertz MD" + definition_id = "73d022a6-0873-47f9-b9cf-17c9c1c91886" + name = "Dr. Sheryl Anderson" secret_id = "...my_secret_id..." - workspace_id = "3ef9cacc-879b-4a7a-8016-47dc7c271c50" + workspace_id = "c35041fc-dcac-4222-a2ef-24d92369b1ff" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_leadfeeder/resource.tf b/examples/resources/airbyte_source_leadfeeder/resource.tf index 7bb540c17..413fc060f 100644 --- a/examples/resources/airbyte_source_leadfeeder/resource.tf +++ b/examples/resources/airbyte_source_leadfeeder/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_leadfeeder" "my_source_leadfeeder" { configuration = { api_token = "...my_api_token..." - start_date = "2022-09-13T08:51:10.446Z" + start_date = "2022-05-11T13:38:36.742Z" } - definition_id = "a25a4f7e-4eab-4e3a-9776-8e79345d1446" - name = "Ruth Dooley IV" + definition_id = "7ba288f1-0a06-435f-b19f-388685d8941e" + name = "Ms. Hope Rogahn" secret_id = "...my_secret_id..." - workspace_id = "f29cf10b-0742-4b93-b499-111a320ccad5" + workspace_id = "3f94739c-c80e-4e5b-b122-5778f7a023c1" } \ 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 114fef388..5b5e6bba4 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 = "adc1330e-f574-4883-95b5-ae0423a6249a" - name = "Gloria Green" + definition_id = "e08d80f6-94c4-48e9-90f8-4ccbad71dab0" + name = "Mrs. Vickie Barrows" secret_id = "...my_secret_id..." - workspace_id = "5fa2ea25-a51d-4762-ae38-9cc4200a4abb" + workspace_id = "124b6e7b-2083-4a37-b0c9-92762a38aa73" } \ 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 e784f79cc..5eead78c7 100644 --- a/examples/resources/airbyte_source_lever_hiring/resource.tf +++ b/examples/resources/airbyte_source_lever_hiring/resource.tf @@ -5,11 +5,11 @@ resource "airbyte_source_lever_hiring" "my_source_leverhiring" { api_key = "...my_api_key..." } } - environment = "Production" + environment = "Sandbox" start_date = "2021-03-01T00:00:00Z" } - definition_id = "299a611c-c7be-43e8-ba71-88dc05c92c20" - name = "Linda White" + definition_id = "79a85cb7-2465-4180-a161-9872363e09a2" + name = "Homer Tremblay" secret_id = "...my_secret_id..." - workspace_id = "2ba7d43d-20d3-4384-a15e-d53522788fae" + workspace_id = "d9d77025-755e-4699-9c57-652df199422b" } \ 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 91916efe7..cacc86b98 100644 --- a/examples/resources/airbyte_source_linkedin_ads/resource.tf +++ b/examples/resources/airbyte_source_linkedin_ads/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { configuration = { account_ids = [ - 6, + 2, ] ad_analytics_reports = [ { - name = "Orlando Schuppe" - pivot_by = "MEMBER_INDUSTRY" - time_granularity = "ALL" + name = "Kathy Muller" + pivot_by = "CONVERSATION_NODE_OPTION_INDEX" + time_granularity = "MONTHLY" }, ] credentials = { @@ -15,10 +15,11 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { access_token = "...my_access_token..." } } - start_date = "2021-05-17" + lookback_window = 5 + start_date = "2021-05-17" } - definition_id = "72879b60-69b6-4a28-9f31-96ea9203cb78" - name = "Kristen Toy" + definition_id = "dbfafbdd-349a-4fd0-8d95-bcfe3342dc40" + name = "Kristi Tromp" secret_id = "...my_secret_id..." - workspace_id = "a531f3b4-802a-43b9-9674-976dbe116c78" + workspace_id = "1635af9f-94f9-485a-a22e-677c77be4e42" } \ 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 d3eb35a20..03889ae73 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-11-26T15:57:22.522Z" - time_granularity_type = "DAY" + start_date = "2022-09-30T20:13:15.681Z" + time_granularity_type = "MONTH" } - definition_id = "c70bfb32-667c-447d-9036-16107c03f839" - name = "Donna Jerde" + definition_id = "41ce525b-4893-4048-a9c1-af9961b1c883" + name = "Clyde King" secret_id = "...my_secret_id..." - workspace_id = "c9db1c42-6709-4282-b0b3-08e78729ff50" + workspace_id = "12d8f3b6-433c-4b82-b32a-d03fd9a9d8ba" } \ 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 d1c4b9917..b451f19af 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 = "2022-09-29T12:33:06.148Z" + start_date = "2021-08-06T10:11:21.935Z" token = "...my_token..." } - definition_id = "b690b273-6f2f-47a3-b95d-4abcb3edfbba" - name = "Franklin O'Reilly PhD" + definition_id = "0df86503-c474-43ee-b9bd-13e204659bbd" + name = "Vernon Huels DVM" secret_id = "...my_secret_id..." - workspace_id = "44a4dc97-0c07-4857-ba20-ac990f9b2ce7" + workspace_id = "2e20259c-6b13-4998-93fc-5430ae066d4a" } \ 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 91adae6e3..5e15f197a 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 = "a67a8515-0ea8-4612-8cd6-18d742806812" - name = "Luke King" + definition_id = "91bbbc35-ba89-42b6-9580-5ab7b9331a5d" + name = "Pablo Wisozk" secret_id = "...my_secret_id..." - workspace_id = "69526155-53a7-4134-98a3-f9799a12d6e3" + workspace_id = "6ab5ec8c-aacd-48d2-abfd-c0f33811ddad" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_looker/resource.tf b/examples/resources/airbyte_source_looker/resource.tf index 0624ca711..d9faecf27 100644 --- a/examples/resources/airbyte_source_looker/resource.tf +++ b/examples/resources/airbyte_source_looker/resource.tf @@ -2,13 +2,13 @@ resource "airbyte_source_looker" "my_source_looker" { configuration = { client_id = "...my_client_id..." client_secret = "...my_client_secret..." - domain = "domainname.looker.com" + domain = "looker.clientname.com" run_look_ids = [ "...", ] } - definition_id = "e66d700d-4772-4456-90d2-6d9147bb3566" - name = "Cameron Howe" + definition_id = "d79aa2af-68e0-40dc-9add-47961168b4fa" + name = "Rose Jakubowski" secret_id = "...my_secret_id..." - workspace_id = "ba4f7aab-a257-4841-81a2-1c8938ad6fcb" + workspace_id = "2a48f976-dd11-4df0-9849-375f6227890d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_luma/resource.tf b/examples/resources/airbyte_source_luma/resource.tf index f4537e15a..e02ec32e9 100644 --- a/examples/resources/airbyte_source_luma/resource.tf +++ b/examples/resources/airbyte_source_luma/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_luma" "my_source_luma" { configuration = { api_key = "...my_api_key..." } - definition_id = "b78bed98-212c-4704-ae19-387527d5e3ef" - name = "Sara Gibson" + definition_id = "41f13919-c925-4e38-a517-a80112166a5e" + name = "Kyle Jones" secret_id = "...my_secret_id..." - workspace_id = "0c0b7968-b724-4213-bfe2-e9e26c4c104f" + workspace_id = "bce2e77b-bcce-4f58-8ac5-48be8a7a9dbf" } \ 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 df947245c..6be3d49c9 100644 --- a/examples/resources/airbyte_source_mailchimp/resource.tf +++ b/examples/resources/airbyte_source_mailchimp/resource.tf @@ -5,11 +5,10 @@ resource "airbyte_source_mailchimp" "my_source_mailchimp" { apikey = "...my_apikey..." } } - data_center = "...my_data_center..." - start_date = "2020-01-01T00:00:00.000Z" + start_date = "2020-01-01T00:00:00.000Z" } - definition_id = "be3b1f29-0447-4757-b847-65c77418014d" - name = "Tabitha D'Amore" + definition_id = "c79293e2-8aa8-4190-b348-b38fe3b52011" + name = "Ms. Beatrice Ratke" secret_id = "...my_secret_id..." - workspace_id = "651b77f9-fe0e-45e5-b386-d0ac5af3c655" + workspace_id = "52a784d2-d0f1-4707-875e-2d6a49780ba1" } \ 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 4aa8b7849..c2e31d923 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 = "b03d25be-e3db-4adc-877c-b62b59b9f1ee" - name = "Wanda Greenfelder" + definition_id = "28c6eefe-59b7-42db-a240-7ce310da7633" + name = "Samantha Becker" secret_id = "...my_secret_id..." - workspace_id = "78a5bcbb-c2cb-483b-ac4d-d4d42907741e" + workspace_id = "fec241f7-3646-4e1c-8795-83a59a825531" } \ 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 f345777f2..4834f377e 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 = "bbab0457-d926-4398-a6ec-d841e72a766a" - name = "Cassandra Hoppe" + definition_id = "40178456-a4c1-4173-9e2c-277a8e2388fd" + name = "Dr. Martha Cummings" secret_id = "...my_secret_id..." - workspace_id = "a512d804-4b05-4c5b-b112-361f26d47b86" + workspace_id = "2c51a267-6b4d-4928-aad1-9d25d5253fa0" } \ 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 0ebaa2270..4fd769b39 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 = "ec1a2bc2-b81e-445e-bceb-6c910dc95a96" - name = "Marco Hermann" + definition_id = "f008f118-d815-472f-b24d-1e0e7e708b9f" + name = "Ralph Hermiston" secret_id = "...my_secret_id..." - workspace_id = "bc4b3253-e6bd-4591-a254-44d2234fd1d8" + workspace_id = "9f1370c2-8b27-48d2-9e4e-e4a51abe7bbe" } \ 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 563381de7..2ed9cb0bb 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 = "Shaniya80" + username = "Dudley_Weber" } - definition_id = "7d43320f-ac9c-41a8-9ab7-e73a5971814e" - name = "Dr. Muriel Ryan" + definition_id = "a5f867ba-5cf8-4db4-8a2c-c4047b120c3e" + name = "Clark Bogan" secret_id = "...my_secret_id..." - workspace_id = "33abc58a-542d-4517-bc88-bc4998d75efe" + workspace_id = "8e983f33-bbc2-4f8e-b5b9-5ee5dd11c77a" } \ 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 9725ae0a6..e1f3c9a4a 100644 --- a/examples/resources/airbyte_source_microsoft_onedrive/resource.tf +++ b/examples/resources/airbyte_source_microsoft_onedrive/resource.tf @@ -10,11 +10,11 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { } drive_name = "...my_drive_name..." folder_path = "...my_folder_path..." - search_scope = "ALL" + search_scope = "ACCESSIBLE_DRIVES" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 2 + days_to_sync_if_history_is_full = 7 format = { avro_format = { double_as_string = false @@ -24,15 +24,14 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { "...", ] input_schema = "...my_input_schema..." - name = "Krystal Hamill" - primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Emit Record" + name = "Nadine Breitenberg" + schemaless = false + validation_policy = "Wait for Discover" }, ] } - definition_id = "598db92c-72d5-441f-9389-28a50561c1cc" - name = "Miss Judith McGlynn MD" + definition_id = "cd7d939b-8b6b-42c0-920a-a8be08607521" + name = "Alan Brekke" secret_id = "...my_secret_id..." - workspace_id = "d7b3d761-e29e-4f26-ae07-d2b59ab56edb" + workspace_id = "9bc9d1c8-8f1e-4e12-b8a7-db098a741266" } \ 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 24951c451..7a29c25e6 100644 --- a/examples/resources/airbyte_source_microsoft_sharepoint/resource.tf +++ b/examples/resources/airbyte_source_microsoft_sharepoint/resource.tf @@ -9,30 +9,29 @@ resource "airbyte_source_microsoft_sharepoint" "my_source_microsoftsharepoint" { } } folder_path = "...my_folder_path..." - search_scope = "SHARED_ITEMS" + search_scope = "ALL" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 0 + days_to_sync_if_history_is_full = 9 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] input_schema = "...my_input_schema..." - name = "Rosalie Schmitt" - primary_key = "...my_primary_key..." - recent_n_files_to_read_for_schema_discovery = 9 + name = "Jeremiah Bechtelar" + recent_n_files_to_read_for_schema_discovery = 10 schemaless = false - validation_policy = "Emit Record" + validation_policy = "Wait for Discover" }, ] } - definition_id = "2bd5eb73-d022-4a60-8737-f9f9cf17c9c1" - name = "Jackie Bergstrom" + definition_id = "67bbea9f-5a35-4d1b-90fb-6321f6b4ca64" + name = "Beverly Ondricka" secret_id = "...my_secret_id..." - workspace_id = "61900dfc-3504-41fc-9cac-22262ef24d92" + workspace_id = "8aec8fed-b8fc-4353-a7bf-ee523e36b74e" } \ 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 b5bf6a6dd..b2726f2cf 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 = "369b1ff5-a7ba-4288-b10a-0635ff19f388" - name = "Margie Heidenreich" + definition_id = "8f7b837d-76b0-42a3-9797-c2fd02395071" + name = "Ms. Melody Dach" secret_id = "...my_secret_id..." - workspace_id = "941e7db0-723f-4947-b9cc-80ee5b712257" + workspace_id = "8fda8b48-bf3f-40e9-a31e-bcafaa2ee7a1" } \ 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 f0ba58d6a..74a164822 100644 --- a/examples/resources/airbyte_source_mixpanel/resource.tf +++ b/examples/resources/airbyte_source_mixpanel/resource.tf @@ -1,21 +1,21 @@ resource "airbyte_source_mixpanel" "my_source_mixpanel" { configuration = { - attribution_window = 5 + attribution_window = 9 credentials = { project_secret = { api_secret = "...my_api_secret..." } } - date_window_size = 5 + date_window_size = 0 end_date = "2021-11-16" - page_size = 6 + page_size = 4 project_timezone = "US/Pacific" - region = "US" + region = "EU" select_properties_by_default = false start_date = "2021-11-16" } - definition_id = "e08d80f6-94c4-48e9-90f8-4ccbad71dab0" - name = "Mrs. Vickie Barrows" + definition_id = "5b91e126-100f-409e-b706-bb016ea0ac6b" + name = "Alfonso Turcotte" secret_id = "...my_secret_id..." - workspace_id = "124b6e7b-2083-4a37-b0c9-92762a38aa73" + workspace_id = "40c173d4-d611-433d-9b2a-95937ced0062" } \ 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 e1d19f404..0bbec0c66 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 = "d79a85cb-7246-4518-8216-19872363e09a" - name = "Monique Nitzsche" + definition_id = "e7b59a4e-7815-42cb-9266-e4c12d05e7f5" + name = "Drew Gerlach III" secret_id = "...my_secret_id..." - workspace_id = "2d9d7702-5755-4e69-95c5-7652df199422" + workspace_id = "25cbff5b-31f2-4b93-84d3-ebf32902de61" } \ 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 61c5b1cc7..8381b1e84 100644 --- a/examples/resources/airbyte_source_mongodb_v2/resource.tf +++ b/examples/resources/airbyte_source_mongodb_v2/resource.tf @@ -8,18 +8,18 @@ resource "airbyte_source_mongodb_v2" "my_source_mongodbv2" { database = "...my_database..." password = "...my_password..." schema_enforced = false - username = "Cole62" + username = "Austin_Blanda50" } } discover_sample_size = 6 - initial_load_timeout_hours = 5 - initial_waiting_seconds = 4 - invalid_cdc_cursor_position_behavior = "Re-sync data" - queue_size = 5 - update_capture_mode = "Lookup" + initial_load_timeout_hours = 1 + initial_waiting_seconds = 6 + invalid_cdc_cursor_position_behavior = "Fail sync" + queue_size = 3 + update_capture_mode = "Post Image" } - definition_id = "1dbfafbd-d349-4afd-8cd9-5bcfe3342dc4" - name = "Anne Nienow" + definition_id = "e80aa298-0d84-4713-abef-014dd9af7c7e" + name = "Cedric Fritsch" secret_id = "...my_secret_id..." - workspace_id = "61635af9-f94f-4985-aa22-e677c77be4e4" + workspace_id = "09ea52c7-07cb-405c-8a8d-21cf34658e52" } \ 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 41ee3b99d..89c15d64b 100644 --- a/examples/resources/airbyte_source_mssql/resource.tf +++ b/examples/resources/airbyte_source_mssql/resource.tf @@ -7,9 +7,9 @@ resource "airbyte_source_mssql" "my_source_mssql" { port = 1433 replication_method = { read_changes_using_change_data_capture_cdc = { - initial_load_timeout_hours = 3 - initial_waiting_seconds = 2 - invalid_cdc_cursor_position_behavior = "Re-sync data" + initial_load_timeout_hours = 10 + initial_waiting_seconds = 5 + invalid_cdc_cursor_position_behavior = "Fail sync" queue_size = 3 } } @@ -22,10 +22,10 @@ resource "airbyte_source_mssql" "my_source_mssql" { tunnel_method = { no_tunnel = {} } - username = "Ayden.Sanford17" + username = "Marjorie.Herzog" } - definition_id = "5b489304-8e9c-41af-9961-b1c883a57271" - name = "Kari Lemke" + definition_id = "309cc0ee-4bba-47fa-ad57-2054daa84a4e" + name = "Tracey Wolf" secret_id = "...my_secret_id..." - workspace_id = "b6433cb8-2b32-4ad0-bfd9-a9d8ba9b0df8" + workspace_id = "10a8a64b-77a4-4fe6-b039-288c95001e51" } \ 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 294d537f7..8e2cd4e07 100644 --- a/examples/resources/airbyte_source_my_hours/resource.tf +++ b/examples/resources/airbyte_source_my_hours/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_my_hours" "my_source_myhours" { password = "...my_password..." start_date = "%Y-%m-%d" } - definition_id = "43ee79bd-13e2-4046-99bb-dc56c2f2e202" - name = "Lindsey Schinner" + definition_id = "22a67dad-65e8-4ae1-9217-c0fcbe7d2d34" + name = "Connie Treutel" secret_id = "...my_secret_id..." - workspace_id = "13998d3f-c543-40ae-866d-4a91bbbc35ba" + workspace_id = "62799cad-5c4b-4833-869d-3410e395a0aa" } \ 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 d1b2dec87..fb80a5d7d 100644 --- a/examples/resources/airbyte_source_mysql/resource.tf +++ b/examples/resources/airbyte_source_mysql/resource.tf @@ -7,22 +7,23 @@ resource "airbyte_source_mysql" "my_source_mysql" { port = 3306 replication_method = { read_changes_using_binary_log_cdc = { - initial_load_timeout_hours = 6 - initial_waiting_seconds = 1 + initial_load_timeout_hours = 3 + initial_waiting_seconds = 3 invalid_cdc_cursor_position_behavior = "Re-sync data" server_time_zone = "...my_server_time_zone..." } } + ssl = false ssl_mode = { preferred = {} } tunnel_method = { no_tunnel = {} } - username = "Harrison_Steuber" + username = "Leann60" } - definition_id = "05ab7b93-31a5-4dda-bad6-ab5ec8caacd8" - name = "Victor Pacocha" + definition_id = "78821427-992f-465a-b105-f2e570ad372e" + name = "Tomas Buckridge" secret_id = "...my_secret_id..." - workspace_id = "dc0f3381-1dda-4d7d-b9aa-2af68e00dcda" + workspace_id = "9d484141-0fd6-4e7e-8488-16b0c62b8975" } \ 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 55dfa1515..111247aab 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 = 9 + window_in_days = 1 } - definition_id = "d4796116-8b4f-4a72-a2d2-a48f976dd11d" - name = "Brian Marvin" + definition_id = "47c3e6c8-bd1c-4cca-93b1-c40652931936" + name = "Patsy Rowe" secret_id = "...my_secret_id..." - workspace_id = "9375f622-7890-4d41-b139-19c925e38651" + workspace_id = "83b58652-384b-4db8-a1f9-c8efa40dc207" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_northpass_lms/resource.tf b/examples/resources/airbyte_source_northpass_lms/resource.tf index d71104fc8..72b9c6d96 100644 --- a/examples/resources/airbyte_source_northpass_lms/resource.tf +++ b/examples/resources/airbyte_source_northpass_lms/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_northpass_lms" "my_source_northpasslms" { configuration = { api_key = "...my_api_key..." } - definition_id = "7a801121-66a5-4ec4-af2b-ce2e77bbccef" - name = "Jennie Leuschke" + definition_id = "c50e6f12-11e1-4fcb-a6b9-0cc0df941919" + name = "Eduardo Collier" secret_id = "...my_secret_id..." - workspace_id = "548be8a7-a9db-4f52-8792-93e28aa81903" + workspace_id = "09c167af-7bc3-44c4-a3b8-38dc5f976535" } \ 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 c46db22df..cdc877200 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 = "8b38fe3b-5201-4125-b292-52a784d2d0f1" - name = "Sharon Koss" + definition_id = "3a45535f-ff5d-41d3-8f0c-ce5486a3a161" + name = "Simon Hansen" secret_id = "...my_secret_id..." - workspace_id = "5e2d6a49-780b-4a1d-aa28-c6eefe59b72d" + workspace_id = "64148acb-8b41-4d5b-b94a-01397d3dfd90" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_nylas/import.sh b/examples/resources/airbyte_source_nylas/import.sh new file mode 100644 index 000000000..d9206bfea --- /dev/null +++ b/examples/resources/airbyte_source_nylas/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_nylas.my_airbyte_source_nylas "" diff --git a/examples/resources/airbyte_source_nylas/resource.tf b/examples/resources/airbyte_source_nylas/resource.tf new file mode 100644 index 000000000..361c235ed --- /dev/null +++ b/examples/resources/airbyte_source_nylas/resource.tf @@ -0,0 +1,12 @@ +resource "airbyte_source_nylas" "my_source_nylas" { + configuration = { + api_key = "...my_api_key..." + api_server = "eu" + end_date = "2020-02-11T09:20:19.816Z" + start_date = "2022-07-25T10:39:24.379Z" + } + definition_id = "0497cb97-4a7d-4800-9cbe-4b7daa2d7b02" + name = "Miss Veronica Hilll" + secret_id = "...my_secret_id..." + workspace_id = "da4df01c-f56e-4e29-8adb-c5bd340789cf" +} \ 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 6f2f925d1..98b84120c 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 = "1851-01" - period = "1" + end_date = "2022-08" + period = "30" share_type = "facebook" - start_date = "2022-08" + start_date = "1851-01" } - definition_id = "407ce310-da76-4331-90ac-fec241f73646" - name = "Albert Ryan" + definition_id = "d2c04124-4365-469f-964c-d2bcf08a635d" + name = "Molly Lindgren" secret_id = "...my_secret_id..." - workspace_id = "9583a59a-8255-4310-9401-78456a4c1173" + workspace_id = "86ceccfa-e93f-47f0-b8c4-b4f8d4f6833e" } \ 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 cf2b51c40..4610e530d 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 = "2c277a8e-2388-4fd0-920f-62c51a2676b4" - name = "Sergio Crooks" + definition_id = "3303ab04-5c89-41fe-9c8d-cb6cc1cd73d2" + name = "Mr. Jerald Gorczany" secret_id = "...my_secret_id..." - workspace_id = "ad19d25d-5253-4fa0-aef0-08f118d81572" + workspace_id = "6d5989e7-dbac-4e40-85a6-307276c58b5d" } \ 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 9590408d1..7accce312 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 = "f724d1e0-e7e7-408b-9f81-5bf9f1370c28" - name = "Wayne Klein" + definition_id = "a21f7398-6a71-4e99-ac2b-81056bc977a3" + name = "Cary Graham" secret_id = "...my_secret_id..." - workspace_id = "25e4ee4a-51ab-4e7b-be4e-8da5f867ba5c" + workspace_id = "f8dd835d-8042-47d2-ba4e-1d8c723c8e5e" } \ 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 35d1cb280..8f93ec058 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 = "db48a2cc-4047-4b12-8c3e-cc1558e983f3" - name = "Patty Powlowski" + definition_id = "9fe4ef64-9387-45b5-a324-c6128aabbad0" + name = "Ethel Abernathy" secret_id = "...my_secret_id..." - workspace_id = "f8e75b95-ee5d-4d11-877a-4e3aa4d1c74f" + workspace_id = "2c3e8228-2510-41e3-a25c-69948d038885" } \ 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 7dfd5b7e6..ad7b7cb04 100644 --- a/examples/resources/airbyte_source_oracle/resource.tf +++ b/examples/resources/airbyte_source_oracle/resource.tf @@ -7,23 +7,23 @@ resource "airbyte_source_oracle" "my_source_oracle" { } encryption = { native_network_encryption_nne = { - encryption_algorithm = "3DES168" + encryption_algorithm = "AES256" } } host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." - port = 9 + port = 10 schemas = [ "...", ] tunnel_method = { no_tunnel = {} } - username = "Jammie.Steuber" + username = "Nicole_Abernathy" } - definition_id = "9b8b6b2c-0920-4aa8-be08-607521b21ea9" - name = "Edmund Mraz DDS" + definition_id = "d3b8cc64-e95a-47a3-a92d-b06d3b499dcb" + name = "Oliver Torp" secret_id = "...my_secret_id..." - workspace_id = "88f1ee12-f8a7-4db0-98a7-41266a87d389" + workspace_id = "afcb0631-8407-4294-84d2-b8965caababe" } \ 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 ad4447fb4..a2ddbe7ec 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 = 0 + lookback_window_days = 9 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 = "efa67bbe-a9f5-4a35-91bd-0fb6321f6b4c" - name = "Nathaniel Gorczany" + definition_id = "6378e724-3c02-41bc-873a-bf4dfebd414e" + name = "Mrs. Monique Jenkins" secret_id = "...my_secret_id..." - workspace_id = "a5f8aec8-fedb-48fc-b536-7bfee523e36b" + workspace_id = "6b3fca03-d92c-4b14-9102-64179a40301b" } \ 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 acd5ad739..b4d69f666 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 = "74e8f7b8-37d7-46b0-aa3d-797c2fd02395" - name = "Glenda Boyer" + definition_id = "b87b13a4-3b1e-4ad7-83a4-eeb23fe55394" + name = "Shelia Hand" secret_id = "...my_secret_id..." - workspace_id = "206b8fda-8b48-4bf3-b0e9-631ebcafaa2e" + workspace_id = "6d0d2093-2d7e-488d-8619-ec39811786e4" } \ 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 999c7affb..d66764849 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 = "subregion" - report_granularity = "weekly" + geo_location_breakdown = "country" + report_granularity = "monthly" start_date = "...my_start_date..." } - definition_id = "a1e0cb61-9709-45b9-9e12-6100f09eb706" - name = "Mrs. Randolph Aufderhar" + definition_id = "5272c209-71d5-444a-a5a7-d2b4609d4ec6" + name = "Melanie Kshlerin" secret_id = "...my_secret_id..." - workspace_id = "a0ac6bfa-e2b4-40c1-b3d4-d61133ddb2a9" + workspace_id = "68cce933-94d8-4a35-9b32-f900f8cfe737" } \ 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 5673b28bb..46d109ea6 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 = "5937ced0-062e-47b5-9a4e-78152cbd266e" - name = "Bernadette Carter" + definition_id = "8a587702-2972-4e23-bec3-d2ab4198d2ef" + name = "Gordon Vandervort" secret_id = "...my_secret_id..." - workspace_id = "05e7f58d-4a06-425c-bff5-b31f2b9304d3" + workspace_id = "c931e7a7-2ef9-4ee2-ac4d-080cde039dd5" } \ 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 66860c498..cfd7f2255 100644 --- a/examples/resources/airbyte_source_paypal_transaction/resource.tf +++ b/examples/resources/airbyte_source_paypal_transaction/resource.tf @@ -6,11 +6,11 @@ resource "airbyte_source_paypal_transaction" "my_source_paypaltransaction" { end_date = "2021-06-11T23:59:59+00:00" is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-06-11T23:59:59Z" + start_date = "2021-06-11T23:59:59+00:00" time_window = 9 } - definition_id = "61711be8-8292-44ee-80aa-2980d84713eb" - name = "Mrs. Darnell Adams" + definition_id = "10910de8-7dfe-4701-adbd-0d10cf57eb67" + name = "Melody Lowe" secret_id = "...my_secret_id..." - workspace_id = "d9af7c7e-9c46-4209-aa52-c707cb05c4a8" + workspace_id = "55d63fb2-a63d-4a09-97a6-151fac3e8ec6" } \ 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 ed7a8c963..819b6d9f9 100644 --- a/examples/resources/airbyte_source_paystack/resource.tf +++ b/examples/resources/airbyte_source_paystack/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_paystack" "my_source_paystack" { configuration = { - lookback_window_days = 9 + lookback_window_days = 6 secret_key = "...my_secret_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "cf34658e-520f-4854-a567-309cc0ee4bba" - name = "Shari Orn" + definition_id = "bb338974-cd0d-4539-af23-19a6f8898d74" + name = "Ron Runte III" secret_id = "...my_secret_id..." - workspace_id = "572054da-a84a-44e2-8fea-10a8a64b77a4" + workspace_id = "70b63c63-3751-4f6c-944c-20e73f23dc46" } \ 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 9dd8626c2..af285d0f2 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 = "fe630392-88c9-4500-9e51-5b2e740522a6" - name = "Angel Oberbrunner" + definition_id = "e62d66e7-2778-4d5d-b92d-16e1dcb06fc1" + name = "Ms. Tyrone Murphy DVM" secret_id = "...my_secret_id..." - workspace_id = "5e8ae1d2-17c0-4fcb-a7d2-d3433ea86279" + workspace_id = "7c1d8bfd-db09-4b9a-903f-60eb4a54b7cf" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_pennylane/resource.tf b/examples/resources/airbyte_source_pennylane/resource.tf index 0280d72fd..9edcca7a5 100644 --- a/examples/resources/airbyte_source_pennylane/resource.tf +++ b/examples/resources/airbyte_source_pennylane/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_pennylane" "my_source_pennylane" { configuration = { api_key = "...my_api_key..." - start_time = "2021-06-24T10:30:39.947Z" + start_time = "2022-10-13T03:28:32.102Z" } - definition_id = "ad5c4b83-3469-4d34-90e3-95a0aac55dc9" - name = "Richard Moen" + definition_id = "3c55d68a-56e1-4f7b-90c6-dd1e62eb5fcf" + name = "Vicki Harris" secret_id = "...my_secret_id..." - workspace_id = "82142799-2f65-4a71-85f2-e570ad372ede" + workspace_id = "caec2ce4-1cbe-41d2-acd0-1501d52f6c56" } \ 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 32e6ae069..1b743125c 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 = "1299d484-1410-4fd6-a7ec-48816b0c62b8" - name = "Mrs. Claude Hand" + definition_id = "d3cf89e6-921c-4e0c-ba6e-cf05091d908d" + name = "Mr. Levi Beahan" secret_id = "...my_secret_id..." - workspace_id = "c3e6c8bd-1ccc-4ad3-b1c4-065293193648" + workspace_id = "53384297-3372-4c40-ac92-91353f9549bc" } \ 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 de3bc8a38..e53d4a36a 100644 --- a/examples/resources/airbyte_source_pexels_api/resource.tf +++ b/examples/resources/airbyte_source_pexels_api/resource.tf @@ -2,13 +2,13 @@ resource "airbyte_source_pexels_api" "my_source_pexelsapi" { configuration = { api_key = "...my_api_key..." color = "orange" - locale = "pt-BR" + locale = "en-US" orientation = "square" query = "oceans" size = "large" } - definition_id = "b5865238-4bdb-4821-b9c8-efa40dc207c5" - name = "Raquel Jakubowski Sr." + definition_id = "89bbf5d2-4f5b-4116-8e1d-c4a01d44fb97" + name = "Frances Armstrong" secret_id = "...my_secret_id..." - workspace_id = "11e1fcb2-6b90-4cc0-9f94-1919892a209c" + workspace_id = "d0de91ea-a4a7-40c9-8b87-0eb98050c39e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_picqer/import.sh b/examples/resources/airbyte_source_picqer/import.sh new file mode 100644 index 000000000..a13acc46d --- /dev/null +++ b/examples/resources/airbyte_source_picqer/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_picqer.my_airbyte_source_picqer "" diff --git a/examples/resources/airbyte_source_picqer/resource.tf b/examples/resources/airbyte_source_picqer/resource.tf new file mode 100644 index 000000000..4142129df --- /dev/null +++ b/examples/resources/airbyte_source_picqer/resource.tf @@ -0,0 +1,12 @@ +resource "airbyte_source_picqer" "my_source_picqer" { + configuration = { + organization_name = "...my_organization_name..." + password = "...my_password..." + start_date = "2022-09-19T15:03:54.645Z" + username = "Emie.Balistreri" + } + definition_id = "7bfd1cb4-db2a-4ae6-820a-c9c19db3e1c8" + name = "Rodney Rowe" + secret_id = "...my_secret_id..." + workspace_id = "acce5c37-529a-415c-b606-2a63f5716d2b" +} \ 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 d4a474dc3..9b2cc00dc 100644 --- a/examples/resources/airbyte_source_pinterest/resource.tf +++ b/examples/resources/airbyte_source_pinterest/resource.tf @@ -12,13 +12,13 @@ resource "airbyte_source_pinterest" "my_source_pinterest" { ] click_window_days = "7" columns = [ - "TOTAL_CLICK_CHECKOUT_VALUE_IN_MICRO_DOLLAR", + "OUTBOUND_CLICK_2", ] conversion_report_time = "TIME_OF_CONVERSION" - engagement_window_days = "60" - granularity = "HOUR" - level = "KEYWORD" - name = "Stanley Green" + engagement_window_days = "0" + granularity = "WEEK" + level = "PRODUCT_ITEM" + name = "Kristen Wisoky" start_date = "2022-07-28" view_window_days = "30" }, @@ -28,8 +28,8 @@ resource "airbyte_source_pinterest" "my_source_pinterest" { "PAUSED", ] } - definition_id = "dc5f9765-35f7-43a4-9535-fff5d1d34f0c" - name = "Conrad Hane" + definition_id = "1ac64878-76fc-4ad6-95bc-ace687b33710" + name = "Alma Marks" secret_id = "...my_secret_id..." - workspace_id = "6a3a161d-c53f-4641-88ac-b8b41d5bf94a" + workspace_id = "a7b02fd2-5c77-427b-b635-4281d3e7f0bc" } \ 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 3343a7c8c..b99c0d5df 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 = "01397d3d-fd90-4aff-a604-97cb974a7d80" - name = "Kathleen Schiller" + definition_id = "649fe5b0-8c82-4dc4-8ca1-ab76639716f1" + name = "Clayton Doyle PhD" secret_id = "...my_secret_id..." - workspace_id = "4b7daa2d-7b02-4155-8aad-a4df01cf56ee" + workspace_id = "f025a154-586c-47cd-bb55-8f87809d3d1f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_piwik/import.sh b/examples/resources/airbyte_source_piwik/import.sh new file mode 100644 index 000000000..464a252ef --- /dev/null +++ b/examples/resources/airbyte_source_piwik/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_piwik.my_airbyte_source_piwik "" diff --git a/examples/resources/airbyte_source_piwik/resource.tf b/examples/resources/airbyte_source_piwik/resource.tf new file mode 100644 index 000000000..af64eed2e --- /dev/null +++ b/examples/resources/airbyte_source_piwik/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_piwik" "my_source_piwik" { + configuration = { + client_id = "...my_client_id..." + client_secret = "...my_client_secret..." + organization_id = "...my_organization_id..." + } + definition_id = "cf2b6755-1109-40ec-ac18-f2017e88b7a8" + name = "Tonya Gutkowski" + secret_id = "...my_secret_id..." + workspace_id = "5e84efb6-a935-4326-9882-dc6ea377e2f3" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_planhat/resource.tf b/examples/resources/airbyte_source_planhat/resource.tf index 9c78b8454..486edb34e 100644 --- a/examples/resources/airbyte_source_planhat/resource.tf +++ b/examples/resources/airbyte_source_planhat/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_planhat" "my_source_planhat" { configuration = { api_token = "...my_api_token..." } - definition_id = "294adbc5-bd34-4078-9cf0-b8d2c0412443" - name = "Vivian Kassulke" + definition_id = "a6744848-ac2b-404b-aae9-e175304065f6" + name = "Tara King" secret_id = "...my_secret_id..." - workspace_id = "d64cd2bc-f08a-4635-97a8-c386ceccfae9" + workspace_id = "901f87c9-df1a-4f8f-9013-d5d0cf403b28" } \ 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 54e3a6ae1..36fa585f3 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 = "article" - detail_type = "complete" + content_type = "video" + detail_type = "simple" domain = "...my_domain..." - favorite = true + favorite = false search = "...my_search..." since = "2022-10-20 14:14:14" - sort = "site" - state = "unread" + sort = "title" + state = "archive" tag = "...my_tag..." } - definition_id = "f8c4b4f8-d4f6-4833-a1f3-303ab045c891" - name = "Ramiro Mayer" + definition_id = "a6950f00-07e3-4304-bd95-358a56819d2a" + name = "Doyle Schneider PhD" secret_id = "...my_secret_id..." - workspace_id = "dcb6cc1c-d73d-42cf-8013-6d5989e7dbac" + workspace_id = "7e3d24df-d3d5-4123-82f9-97d059d38a2e" } \ 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 a31de5a4b..66169f942 100644 --- a/examples/resources/airbyte_source_pokeapi/resource.tf +++ b/examples/resources/airbyte_source_pokeapi/resource.tf @@ -1,9 +1,9 @@ resource "airbyte_source_pokeapi" "my_source_pokeapi" { configuration = { - pokemon_name = "snorlax" + pokemon_name = "luxray" } - definition_id = "4005a630-7276-4c58-b5da-21f73986a71e" - name = "Stuart Corwin" + definition_id = "fcf99c41-876f-4a0c-bc1b-99ee1e960566" + name = "Dr. Beatrice Reilly" secret_id = "...my_secret_id..." - workspace_id = "b81056bc-977a-43bf-8dff-8dd835d80427" + workspace_id = "1b3114e9-ed57-4541-8361-2b0e8c8cf11a" } \ 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 fa219c29e..06da190d5 100644 --- a/examples/resources/airbyte_source_polygon_stock_api/resource.tf +++ b/examples/resources/airbyte_source_polygon_stock_api/resource.tf @@ -1,17 +1,17 @@ resource "airbyte_source_polygon_stock_api" "my_source_polygonstockapi" { configuration = { - adjusted = "false" + adjusted = "true" api_key = "...my_api_key..." end_date = "2020-10-14" - limit = 120 + limit = 100 multiplier = 2 - sort = "desc" + sort = "asc" start_date = "2020-10-14" - stocks_ticker = "IBM" + stocks_ticker = "MSFT" timespan = "day" } - definition_id = "23c8e5e2-59fe-44ef-a493-875b5a324c61" - name = "Tracey Paucek" + definition_id = "52a9e475-abff-4ba2-81e7-b6908ecd761f" + name = "Sheryl Predovic V" secret_id = "...my_secret_id..." - workspace_id = "bad07307-82c3-4e82-a825-101e3e25c699" + workspace_id = "a0804c97-1e60-4235-9c09-fadad73b79d2" } \ 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 881fb9a62..1c5030a75 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 = "Kaylee22" + username = "Nellie_Grady" } - definition_id = "88851ec0-6fd3-4b8c-864e-95a7a3692db0" - name = "Cristina Franey" + definition_id = "cfdc6fb5-04a1-42b7-b23c-bf0223ae822e" + name = "Thelma Connelly" secret_id = "...my_secret_id..." - workspace_id = "99dcbdae-34af-4cb0-a318-40729444d2b8" + workspace_id = "8cbc0547-dc93-4d7d-b628-c47813582a6f" } \ 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 9c9c26202..cc71b3b76 100644 --- a/examples/resources/airbyte_source_posthog/resource.tf +++ b/examples/resources/airbyte_source_posthog/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_posthog" "my_source_posthog" { events_time_step = 10 start_date = "2021-01-01T00:00:00Z" } - definition_id = "aababee9-d637-48e7-a43c-021bc073abf4" - name = "Edmond Thiel" + definition_id = "9dfc7f45-8565-4e71-95c9-f06b5482c9eb" + name = "Mr. Tamara Ankunding" secret_id = "...my_secret_id..." - workspace_id = "414e5a60-3e6b-43fc-a03d-92cb14510264" + workspace_id = "0337f10a-6436-49e4-ae32-ccb4d52da612" } \ 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 65040c4c3..525b9a283 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 = "179a4030-1bb8-47b1-ba43-b1ead703a4ee" - name = "Russell Ernser" + definition_id = "8f2436a1-22e3-4949-8819-8a6bf6f1cbdb" + name = "Geraldine Pagac" secret_id = "...my_secret_id..." - workspace_id = "553942b5-8b6d-40d2-8932-d7e88d8619ec" + workspace_id = "cd0e48f1-e4b3-4046-9b6c-a0b303cf017c" } \ 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 9e057216b..4d8ddef75 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 = "811786e4-4e52-472c-a097-1d544a65a7d2" - name = "Miss Herbert Kerluke" + definition_id = "78363f1b-e7e9-4b4a-abfc-5ff7146c36bb" + name = "Victoria Feest" secret_id = "...my_secret_id..." - workspace_id = "4ec6467c-968c-4ce9-b394-d8a35db32f90" + workspace_id = "f0beca93-a8ae-478e-9e53-7d96eb6d5dc1" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_productboard/import.sh b/examples/resources/airbyte_source_productboard/import.sh new file mode 100644 index 000000000..3717b5184 --- /dev/null +++ b/examples/resources/airbyte_source_productboard/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_productboard.my_airbyte_source_productboard "" diff --git a/examples/resources/airbyte_source_productboard/resource.tf b/examples/resources/airbyte_source_productboard/resource.tf new file mode 100644 index 000000000..21de76b16 --- /dev/null +++ b/examples/resources/airbyte_source_productboard/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_productboard" "my_source_productboard" { + configuration = { + access_token = "...my_access_token..." + start_date = "2022-06-14T05:22:42.363Z" + } + definition_id = "50f80fbc-595c-4377-bbcc-fe70cf147e29" + name = "Nichole Kling" + secret_id = "...my_secret_id..." + workspace_id = "b2d7bbc2-90ef-400a-9537-2256fe50a2e7" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_productive/import.sh b/examples/resources/airbyte_source_productive/import.sh new file mode 100644 index 000000000..ddd841dc3 --- /dev/null +++ b/examples/resources/airbyte_source_productive/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_productive.my_airbyte_source_productive "" diff --git a/examples/resources/airbyte_source_productive/resource.tf b/examples/resources/airbyte_source_productive/resource.tf new file mode 100644 index 000000000..fff4a65c3 --- /dev/null +++ b/examples/resources/airbyte_source_productive/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_productive" "my_source_productive" { + configuration = { + api_key = "...my_api_key..." + organization_id = "...my_organization_id..." + } + definition_id = "cfe6f34a-cc65-4c56-b5fa-6778e44b91c6" + name = "Mr. Cathy Shanahan" + secret_id = "...my_secret_id..." + workspace_id = "040ba03e-b3c0-4afc-83c8-fa6eafbbc8e3" +} \ 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 a75aa4da7..8004bb2c4 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 = "0f8cfe73-78a5-4877-8229-72e237ec3d2a" - name = "Bernard Cartwright" + definition_id = "e7db5a3e-446f-4c1e-8fa9-1f7ef5f462d7" + name = "Wallace Fritsch" secret_id = "...my_secret_id..." - workspace_id = "d2efe5e3-4c93-41e7-a72e-f9ee22c4d080" + workspace_id = "1977a1b2-71a5-4b00-9f29-606a36dac995" } \ 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 89465ebe6..89e4ba3c1 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 = "cde039dd-5e8c-4577-8ddd-10910de87dfe" - name = "Elizabeth Bruen" + definition_id = "92aaeb21-d89b-43db-958d-4aa1770fe21a" + name = "Susie Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "bd0d10cf-57eb-4672-b8aa-55d63fb2a63d" + workspace_id = "315af19b-c4a1-4418-827e-2e49fbe84753" } \ 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 a254df981..6304d0192 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 = "a0917a61-51fa-4c3e-8ec6-9babb338974c" - name = "Paul Spencer" + definition_id = "d48e30cc-cb1d-439d-9fc6-49b7a58a5636" + name = "Anna Ziemann" secret_id = "...my_secret_id..." - workspace_id = "9af2319a-6f88-498d-b4d7-cd0670b63c63" + workspace_id = "38f32285-6cd8-48e7-a494-b9e5830e9efb" } \ 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 aa4d6ce68..b8c9e11df 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 = "1f6c544c-20e7-43f2-bdc4-6e62d66e7277" - name = "Drew Herman" + definition_id = "2cdcae9f-85c7-4017-b805-26f8856cdf3f" + name = "Pat Zemlak" secret_id = "...my_secret_id..." - workspace_id = "92d16e1d-cb06-4fc1-b7a1-71f7c1d8bfdd" + workspace_id = "1999214f-3ffa-448a-8adc-06400b7b58d1" } \ 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 cba642ee3..a06b76a38 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 = "b09b9a90-3f60-4eb4-a54b-7cf533c55d68" - name = "Lloyd Kertzmann DVM" + definition_id = "3a2ccf2b-1ade-42f4-984b-fb0e1b3d2b89" + name = "Jesse Kassulke" secret_id = "...my_secret_id..." - workspace_id = "7b10c6dd-1e62-4eb5-bcf3-65dccaec2ce4" + workspace_id = "838cf8d2-27f3-418d-8240-654f4782740a" } \ 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 2c1b5fa2f..293d3c869 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 = 0 + company_id = 1 } - definition_id = "cbe1d2ec-d015-401d-92f6-c56d3cf89e69" - name = "Jean Rutherford DDS" + definition_id = "b5a46242-8ebc-45c7-bead-f0c9ce16ebe8" + name = "Josefina Pacocha" secret_id = "...my_secret_id..." - workspace_id = "7a6ecf05-091d-4908-99d0-017533842973" + workspace_id = "aee8d2bd-e48e-4efc-ab9e-0d54b0894bdd" } \ 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 592a53e9e..fd72d331b 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 = "372c40ec-9291-4353-b954-9bcc34d389bb" - name = "Corey Sporer" + definition_id = "98fe3f92-c06a-49aa-b270-2875abb88c39" + name = "Marcos Kuhic" secret_id = "...my_secret_id..." - workspace_id = "f5b1164e-1dc4-4a01-944f-b97610a4d0de" + workspace_id = "66080f3e-cae3-4cb4-91ea-7992cd63d338" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_reddit/resource.tf b/examples/resources/airbyte_source_reddit/resource.tf index 8ab9d057f..a37441476 100644 --- a/examples/resources/airbyte_source_reddit/resource.tf +++ b/examples/resources/airbyte_source_reddit/resource.tf @@ -2,16 +2,16 @@ resource "airbyte_source_reddit" "my_source_reddit" { configuration = { api_key = "...my_api_key..." exact = false - include_over_18 = false - limit = 88.51 + include_over_18 = true + limit = 98.44 query = "...my_query..." - start_date = "2021-09-11T03:28:56.693Z" + start_date = "2022-05-22T10:23:38.617Z" subreddits = [ "{ \"see\": \"documentation\" }", ] } - definition_id = "4a70c9cb-870e-4b98-850c-39e7450657bf" - name = "Dennis Rutherford" + definition_id = "f7d5a433-d30c-4a4a-a9f6-84d9ab345ef3" + name = "Leah Emmerich" secret_id = "...my_secret_id..." - workspace_id = "db2aae6c-20ac-49c1-9db3-e1c883c55acc" + workspace_id = "2e52a86a-dbb5-47c5-8be7-ccff9d072474" } \ 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 47ed99e05..2b676fe4a 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 = "Garnett44" + username = "Lupe.Fritsch49" } - definition_id = "529a15c3-6062-4a63-b571-6d2b265f2af5" - name = "Faith Schmidt" + definition_id = "eb205ddb-7f1b-4711-95e0-7e103643a6df" + name = "Eugene Parker Sr." secret_id = "...my_secret_id..." - workspace_id = "bdd581ac-6487-4876-bcad-615bcace687b" + workspace_id = "25b2ac62-eb10-4f1a-8d51-fb8be0416cb4" } \ 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 9ac1b0efa..33745ae1a 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 = "33710669-86a7-4b02-bd25-c7727b363542" - name = "Eric Sporer" + definition_id = "9da06c23-9e7a-4f3c-a2cc-2a5392d74588" + name = "Miss Gary Gerhold II" secret_id = "...my_secret_id..." - workspace_id = "7f0bc649-fe5b-408c-82dc-40ca1ab76639" + workspace_id = "7267ce86-a322-4e02-b7e6-dd49df5c3592" } \ 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 6f298b843..d942bae22 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 = "716f1b83-31df-4025-a154-586c7cdfb558" - name = "Wallace Kuhlman V" + definition_id = "a5dd7ddb-d797-4d2e-b894-fd682a677b1b" + name = "Owen Ritchie" secret_id = "...my_secret_id..." - workspace_id = "d3d1fcf2-b675-4511-890e-c6c18f2017e8" + workspace_id = "eb9b5c2e-2ee8-4b85-b41c-f2efd5ed605e" } \ 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 2f8878024..d8f4d0c81 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 = "8b7a8364-f95e-484e-bb6a-9353261882dc" - name = "Sophie O'Conner" + definition_id = "9e4deda3-0dd3-4cfb-8aa2-fad058413083" + name = "Krystal Dietrich" secret_id = "...my_secret_id..." - workspace_id = "7e2f3a67-4484-48ac-ab04-beae9e175304" + workspace_id = "de43c907-f63c-4c02-bc2f-7f5dfb2c26b4" } \ 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 f2c14965f..36fffff34 100644 --- a/examples/resources/airbyte_source_s3/resource.tf +++ b/examples/resources/airbyte_source_s3/resource.tf @@ -3,49 +3,31 @@ resource "airbyte_source_s3" "my_source_s3" { aws_access_key_id = "...my_aws_access_key_id..." aws_secret_access_key = "...my_aws_secret_access_key..." bucket = "...my_bucket..." - dataset = "...my_dataset..." - endpoint = "my-s3-endpoint.com" - format = { - avro = {} - } - path_pattern = "**" - provider = { - aws_access_key_id = "...my_aws_access_key_id..." - aws_secret_access_key = "...my_aws_secret_access_key..." - bucket = "...my_bucket..." - endpoint = "...my_endpoint..." - path_prefix = "...my_path_prefix..." - region_name = "...my_region_name..." - role_arn = "...my_role_arn..." - start_date = "2021-01-01T00:00:00Z" - } - region_name = "...my_region_name..." - role_arn = "...my_role_arn..." - schema = "{\"column_1\": \"number\", \"column_2\": \"string\", \"column_3\": \"array\", \"column_4\": \"object\", \"column_5\": \"boolean\"}" - start_date = "2021-01-01T00:00:00.000000Z" + endpoint = "https://my-s3-endpoint.com" + region_name = "...my_region_name..." + role_arn = "...my_role_arn..." + 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 = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ "...", ] 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 + name = "Christie Emard" + recent_n_files_to_read_for_schema_discovery = 3 schemaless = true - validation_policy = "Wait for Discover" + validation_policy = "Emit Record" }, ] } - definition_id = "9df1af8f-5013-4d5d-8cf4-03b2856e98a6" - name = "Herman Bartoletti Jr." + definition_id = "819ff393-429d-4316-9dd8-595e9c61e20d" + name = "Pedro West" secret_id = "...my_secret_id..." - workspace_id = "07e33047-d953-458a-9681-9d2abec21d7e" + workspace_id = "b11c60c3-a7ba-4336-a48b-e45dfad9324f" } \ 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 fb06a03ce..fd9a55f88 100644 --- a/examples/resources/airbyte_source_salesforce/resource.tf +++ b/examples/resources/airbyte_source_salesforce/resource.tf @@ -5,17 +5,17 @@ resource "airbyte_source_salesforce" "my_source_salesforce" { force_use_bulk_api = true is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-07-25" - stream_slice_step = "P1Y" + start_date = "2021-07-25T00:00:00Z" + stream_slice_step = "P30D" streams_criteria = [ { - criteria = "not contains" + criteria = "ends with" value = "...my_value..." }, ] } - definition_id = "3d512342-f997-4d05-9d38-a2e5fcf99c41" - name = "Jessie Howe" + definition_id = "34526eae-71eb-4759-97dd-0bf2f5721957" + name = "Roman Robel" secret_id = "...my_secret_id..." - workspace_id = "0cbc1b99-ee1e-4960-9660-5b0d51b3114e" + workspace_id = "9226a954-fff9-43d1-ae39-2ce90b9169fb" } \ 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 f07c109c7..18b5904ff 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 = "d57541c3-612b-40e8-88cf-11a0d259943d" - name = "Shannon Heller" + definition_id = "db2efb21-ef2b-4c48-bf07-f2e772136664" + name = "Elisa Nienow" secret_id = "...my_secret_id..." - workspace_id = "9e475abf-fba2-4c1e-bb69-08ecd761f19b" + workspace_id = "2db7532b-28cb-4785-b8d4-ad9bb4c2d04c" } \ 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 b5ca3dd55..2ba3d4a33 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 = "60aa0804-c971-4e60-a35d-c09fadad73b7" - name = "Miss Taylor Cassin" + definition_id = "6ceb0e44-0965-49db-b6ec-af35c15b3779" + name = "Neil Von" secret_id = "...my_secret_id..." - workspace_id = "8acfdc6f-b504-4a12-b772-3cbf0223ae82" + workspace_id = "ccb9fd6e-1ad7-4470-b832-0ef50a8ca76b" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_savvycal/resource.tf b/examples/resources/airbyte_source_savvycal/resource.tf index 1a68c7489..23d6c98df 100644 --- a/examples/resources/airbyte_source_savvycal/resource.tf +++ b/examples/resources/airbyte_source_savvycal/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_savvycal" "my_source_savvycal" { configuration = { api_key = "...my_api_key..." } - definition_id = "2e5327d8-cbc0-4547-9c93-d7d7628c4781" - name = "Sally Lockman" + definition_id = "083ea280-df18-404a-a7b9-f3e581495129" + name = "Marcia Schmidt" secret_id = "...my_secret_id..." - workspace_id = "6f537d9d-fc7f-4458-965e-7155c9f06b54" + workspace_id = "8696756f-e058-4810-a2b8-ad45dc078875" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_scryfall/resource.tf b/examples/resources/airbyte_source_scryfall/resource.tf index b01a9037b..5d3fc84ff 100644 --- a/examples/resources/airbyte_source_scryfall/resource.tf +++ b/examples/resources/airbyte_source_scryfall/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_source_scryfall" "my_source_scryfall" { configuration = {} - definition_id = "82c9eb77-003d-4033-bf10-a64369e4ee32" - name = "Clark Reichel" + definition_id = "4523f36d-ab51-4228-90f3-e992c2a3f4c8" + name = "Earnest Baumbach" secret_id = "...my_secret_id..." - workspace_id = "52da6128-f243-46a1-a2e3-949c8198a6bf" + workspace_id = "c7cc4eaf-dab4-4c1b-8af6-6c12869f984d" } \ 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 5c13a20cb..f8b368431 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 = "6f1cbdb3-5a96-4cd0-a48f-1e4b30469b6c" - name = "George Ritchie I" + definition_id = "61382854-2bb3-47a4-98fa-cd1771a16fff" + name = "Mindy Beahan" secret_id = "...my_secret_id..." - workspace_id = "cf017cd9-7836-43f1-be7e-9b4aabfc5ff7" + workspace_id = "eebc306c-4f33-497c-a047-5faadeba481e" } \ 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 4dc70ca08..13047f5f3 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 = "2022-09-11T05:44:36.588Z" + start_date = "2022-12-03T07:28:22.238Z" } - definition_id = "6c36bb73-37bf-40be-8a93-a8ae78e1e537" - name = "Julius Kemmer" + definition_id = "3dd760cc-3ae1-4d77-9ee9-78f160f45746" + name = "Dr. Salvatore Bergnaum" secret_id = "...my_secret_id..." - workspace_id = "6d5dc1e2-50f8-40fb-8595-c3777bccfe70" + workspace_id = "0243724c-2fa9-40b3-bc58-aed9663e07de" } \ 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 7acafbc6e..5651c1a7e 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 = "cf147e29-3c7a-44b2-97bb-c290ef00ad53" - name = "Ruby Davis" + definition_id = "9609725c-6d5a-45da-b503-9f4e4098bb8c" + name = "Blanche Collins" secret_id = "...my_secret_id..." - workspace_id = "fe50a2e7-cfe6-4f34-acc6-5c56f5fa6778" + workspace_id = "3c013462-1866-4cf5-98db-d5ebee014e07" } \ 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 3a90a0bf7..cc364e948 100644 --- a/examples/resources/airbyte_source_senseforce/resource.tf +++ b/examples/resources/airbyte_source_senseforce/resource.tf @@ -3,11 +3,10 @@ resource "airbyte_source_senseforce" "my_source_senseforce" { access_token = "...my_access_token..." backend_url = "https://galaxyapi.senseforce.io" dataset_id = "8f418098-ca28-4df5-9498-0df9fe78eda7" - slice_range = 360 start_date = "2017-01-25" } - definition_id = "91c615d1-2804-40ba-83eb-3c0afcc3c8fa" - name = "Kellie Olson" + definition_id = "dc6f53d2-53db-48b1-a39d-437be8f4cf79" + name = "Marta Ondricka" secret_id = "...my_secret_id..." - workspace_id = "bc8e3e7d-b5a3-4e44-afc1-e0fa91f7ef5f" + workspace_id = "e012beba-22c9-4964-9ef6-30f5d8739c0e" } \ 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 82d76e999..bf9b055a3 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 = "firsthand-hospice.com" + hostname = "essential-doctrine.net" organization = "...my_organization..." project = "...my_project..." } - definition_id = "d7c84461-977a-41b2-b1a5-b009f29606a3" - name = "Estelle Murray" + definition_id = "352ddb04-c9bc-4e38-bd66-444a186797a7" + name = "Mr. Robin Walker" secret_id = "...my_secret_id..." - workspace_id = "9592aaeb-21d8-49b3-9b55-8d4aa1770fe2" + workspace_id = "99e00879-e494-484a-b485-520644aee427" } \ 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 df2e4f611..d21e52d41 100644 --- a/examples/resources/airbyte_source_sftp/resource.tf +++ b/examples/resources/airbyte_source_sftp/resource.tf @@ -6,14 +6,14 @@ resource "airbyte_source_sftp" "my_source_sftp" { } } file_pattern = "log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd`" - file_types = "csv,json" + file_types = "csv" folder_path = "/logs/2022" host = "192.0.2.1" port = 22 user = "...my_user..." } - definition_id = "b03b315a-f19b-4c4a-9418-c27e2e49fbe8" - name = "Stella Hammes" + definition_id = "df9bf84b-784e-4daa-b2f4-24ed308606f0" + name = "Wendell Dare" secret_id = "...my_secret_id..." - workspace_id = "48e30ccc-b1d3-49dd-bc64-9b7a58a56364" + workspace_id = "2de7b1a9-3e59-415f-a584-4c8d7f9e67ba" } \ 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 b2ac309a4..845863ada 100644 --- a/examples/resources/airbyte_source_sftp_bulk/resource.tf +++ b/examples/resources/airbyte_source_sftp_bulk/resource.tf @@ -6,12 +6,12 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { } } folder_path = "/logs/2022" - host = "www.host.com" + host = "192.0.2.1" port = 22 start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 2 + days_to_sync_if_history_is_full = 9 format = { avro_format = { double_as_string = true @@ -21,18 +21,16 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { "...", ] 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 + name = "Blanche MacGyver" + recent_n_files_to_read_for_schema_discovery = 2 + schemaless = false validation_policy = "Wait for Discover" }, ] - username = "Santos_Leuschke" + username = "Matt_Wilkinson" } - definition_id = "7e494b9e-5830-4e9e-bbf4-12cdcae9f85c" - name = "Maria Bernhard" + definition_id = "e57802da-a821-4998-aac7-526c0e68d41f" + name = "Misty Gibson" secret_id = "...my_secret_id..." - workspace_id = "80526f88-56cd-4f3f-9efb-e1999214f3ff" + workspace_id = "bd831a4c-af6a-4030-b232-0a84c82feed3" } \ 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 82a148f7e..1b7040209 100644 --- a/examples/resources/airbyte_source_shopify/resource.tf +++ b/examples/resources/airbyte_source_shopify/resource.tf @@ -1,20 +1,20 @@ resource "airbyte_source_shopify" "my_source_shopify" { configuration = { - bulk_window_in_days = 7 + bulk_window_in_days = 4 credentials = { api_password = { api_password = "...my_api_password..." } } 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" + job_checkpoint_interval = 9 + job_product_variants_include_pres_prices = true + job_termination_threshold = 5 + shop = "my-store" + start_date = "2022-08-09" } - definition_id = "06400b7b-58d1-43a2-8cf2-b1ade2f4984b" - name = "Ed Baumbach MD" + definition_id = "05259781-2242-414e-979a-97873ec6ec23" + name = "Everett McGlynn" secret_id = "...my_secret_id..." - workspace_id = "3d2b89b2-6a88-438c-b8d2-27f318d42406" + workspace_id = "834bb7f2-56aa-42ee-997a-7ac93ce2101f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_shortcut/import.sh b/examples/resources/airbyte_source_shortcut/import.sh new file mode 100644 index 000000000..7387da360 --- /dev/null +++ b/examples/resources/airbyte_source_shortcut/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_shortcut.my_airbyte_source_shortcut "" diff --git a/examples/resources/airbyte_source_shortcut/resource.tf b/examples/resources/airbyte_source_shortcut/resource.tf new file mode 100644 index 000000000..d6f8cb4c7 --- /dev/null +++ b/examples/resources/airbyte_source_shortcut/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_shortcut" "my_source_shortcut" { + configuration = { + api_key_2 = "...my_api_key_2..." + query = "...my_query..." + start_date = "2022-06-08T14:10:27.194Z" + } + definition_id = "2eff8de5-6504-4728-b0aa-ce290d7b3b35" + name = "Matt Wuckert" + secret_id = "...my_secret_id..." + workspace_id = "206e7c66-5127-464e-9e9c-d819ecc37ba1" +} \ 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 0cb7b33ba..83c18be42 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 = "54f47827-40a2-4b5a-8624-28ebc5c77ead" - name = "Kenneth Rutherford" + definition_id = "700ba64d-af2c-4d7c-8fe5-757a306443a7" + name = "Flora Ruecker" secret_id = "...my_secret_id..." - workspace_id = "e16ebe85-fa64-4aee-8d2b-de48eefceb9e" + workspace_id = "e2e1378d-b01d-476f-bdd2-7aa6e51f0c20" } \ 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 1ad0061d3..de28c8b84 100644 --- a/examples/resources/airbyte_source_slack/resource.tf +++ b/examples/resources/airbyte_source_slack/resource.tf @@ -13,8 +13,8 @@ resource "airbyte_source_slack" "my_source_slack" { lookback_window = 7 start_date = "2017-01-25T00:00:00Z" } - definition_id = "894bdd98-fe3f-492c-86a9-aa72702875ab" - name = "Everett Leuschke" + definition_id = "0cbfe39d-f03e-4297-96f5-cf39b34f9589" + name = "Ms. Miguel Crona" secret_id = "...my_secret_id..." - workspace_id = "98d79666-080f-43ec-ae3c-b491ea7992cd" + workspace_id = "f32822b8-2a15-49eb-82b7-c1d3540fbbe2" } \ 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 addc8276d..3dc10bdfb 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 = "63d3381e-fe3f-47d5-a433-d30ca4aa9f68" - name = "Elena Miller" + definition_id = "d8a9d001-0028-4d11-8128-0d807cdd8eb8" + name = "Ron Hermiston" secret_id = "...my_secret_id..." - workspace_id = "345ef318-3cb2-4e52-a86a-dbb57c5cbe7c" + workspace_id = "610938eb-2433-4624-98c5-c5aa0b5368b2" } \ 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 c3abb7afa..d3d98350a 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 = "cff9d072-4747-4a4b-b7eb-205ddb7f1b71" - name = "Belinda Hilll IV" + definition_id = "6a568aa6-dc34-40bb-9546-957c12385870" + name = "Belinda Mills" secret_id = "...my_secret_id..." - workspace_id = "e103643a-6dfd-42a6-8225-b2ac62eb10f1" + workspace_id = "832c86da-d817-4ef7-9b41-7c7a0b7ebf79" } \ 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 416cb71db..8863af578 100644 --- a/examples/resources/airbyte_source_smartsheets/resource.tf +++ b/examples/resources/airbyte_source_smartsheets/resource.tf @@ -6,13 +6,12 @@ resource "airbyte_source_smartsheets" "my_source_smartsheets" { } } metadata_fields = [ - "row_created_by", + "sheetcreatedAt", ] spreadsheet_id = "...my_spreadsheet_id..." - start_datetime = "2000-01-01T13:00:00" } - definition_id = "1fb8be04-16cb-449d-a06c-239e7af3ca2c" - name = "Shawn Pfannerstill" + definition_id = "1b079c0c-4f41-4192-8e56-2c711d3ef646" + name = "Donnie Kertzmann III" secret_id = "...my_secret_id..." - workspace_id = "92d74588-9040-4904-b267-ce86a322e02b" + workspace_id = "84e97a85-2f0c-4d22-882d-9facb8adccb7" } \ 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 1af386b1d..2dacf59bf 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 = "conversion" + action_report_time = "impression" 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 = "1_DAY" - view_attribution_window = "1_DAY" + view_attribution_window = "6_HOUR" } - definition_id = "df5c3592-a5dd-47dd-bd79-7d2eb894fd68" - name = "Lynda Keebler" + definition_id = "85bedf1b-6a60-4ed1-862f-411dc6a0a7c7" + name = "Kathy Franecki III" secret_id = "...my_secret_id..." - workspace_id = "b1b8dbba-eb9b-45c2-a2ee-8b85f41cf2ef" + workspace_id = "4dd37177-b9cd-4d67-9dcd-9c0fa1c23293" } \ 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 4f1d2f6a6..0f6895b14 100644 --- a/examples/resources/airbyte_source_snowflake/resource.tf +++ b/examples/resources/airbyte_source_snowflake/resource.tf @@ -14,8 +14,8 @@ resource "airbyte_source_snowflake" "my_source_snowflake" { schema = "AIRBYTE_SCHEMA" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "05e9e4de-da30-4dd3-8fb0-aa2fad058413" - name = "Penny Franecki" + definition_id = "f7ab2ac7-0a33-47a3-9131-b5bdf0c811e9" + name = "Pam Hoeger" secret_id = "...my_secret_id..." - workspace_id = "3e5de43c-907f-463c-802b-c2f7f5dfb2c2" + workspace_id = "0a295138-174c-4fa4-9536-74966ff0c642" } \ 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 2f9486884..d1e3d85ac 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 = "86915d33-24b4-4819-bf39-3429d3165dd8" - name = "Erika Hills" + definition_id = "d8ebc947-d1a3-46d8-935b-42d9b671ba3d" + name = "Dominick Boyer" secret_id = "...my_secret_id..." - workspace_id = "c61e20db-5f4b-4b11-860c-3a7ba336248b" + workspace_id = "eb3d6269-3ddf-4cad-b2b0-11f085229948" } \ 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 9d0e1ba90..e250e7ea9 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 = "e45dfad9-324f-46ab-9f83-34526eae71eb" + id = "5bd5b511-2966-4924-8de8-b867ddcc8cc1" options = "...my_options..." } - definition_id = "759d7dd0-bf2f-4572-9957-8fbbe9226a95" - name = "Elisa Wunsch" + definition_id = "e1eaa5cf-c4c8-40fc-904e-13748425fe8e" + name = "Cesar Ondricka III" secret_id = "...my_secret_id..." - workspace_id = "3d12e392-ce90-4b91-a9fb-30db2efb21ef" + workspace_id = "0ba9a257-9b42-44a0-9692-2966de033119" } \ 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 73be8975a..d897f986d 100644 --- a/examples/resources/airbyte_source_square/resource.tf +++ b/examples/resources/airbyte_source_square/resource.tf @@ -5,12 +5,12 @@ resource "airbyte_source_square" "my_source_square" { api_key = "...my_api_key..." } } - include_deleted_objects = true - is_sandbox = true - start_date = "2022-03-17" + include_deleted_objects = false + is_sandbox = false + start_date = "2022-02-02" } - definition_id = "8bf07f2e-7721-4366-a46f-a9b2db7532b2" - name = "Edmund Reynolds" + definition_id = "4ba31afc-75cd-4175-a719-6a7541fa2a79" + name = "Rhonda Stehr I" secret_id = "...my_secret_id..." - workspace_id = "5b8d4ad9-bb4c-42d0-8c6c-eb0e4409659d" + workspace_id = "eedefb0b-3778-4954-a670-34f3e4d7496d" } \ 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 07e65e4be..e3a0e379a 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 = "ecaf35c1-5b37-479d-be3d-ccb9fd6e1ad7" - name = "Stella Balistreri" + definition_id = "b2343891-f649-4697-8812-8b0429b50eba" + name = "Angel Franey" secret_id = "...my_secret_id..." - workspace_id = "320ef50a-8ca7-46b0-83ea-280df1804a67" + workspace_id = "20deac9b-b7b4-45d9-a074-3b024bc119f8" } \ 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 43f39cc66..98fcd119f 100644 --- a/examples/resources/airbyte_source_stripe/resource.tf +++ b/examples/resources/airbyte_source_stripe/resource.tf @@ -3,13 +3,13 @@ resource "airbyte_source_stripe" "my_source_stripe" { account_id = "...my_account_id..." call_rate_limit = 100 client_secret = "...my_client_secret..." - lookback_window_days = 10 - num_workers = 1 - slice_range = 10 + lookback_window_days = 2 + num_workers = 2 + slice_range = 30 start_date = "2017-01-25T00:00:00Z" } - definition_id = "9512957c-2986-4967-96fe-05881022b8ad" - name = "Joann Schuster IV" + definition_id = "08449978-c5f0-4c0b-b0c5-d08d732ef691" + name = "Grady Block" secret_id = "...my_secret_id..." - workspace_id = "88754523-f36d-4ab5-9228-90f3e992c2a3" + workspace_id = "6e65b76b-dc3f-49ea-a358-d5b4415ac58f" } \ 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 d87832af8..d226500f6 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 = "f1f04aee-bc30-46c4-b339-7c20475faade" - name = "Wilbur Gleichner DVM" + definition_id = "47f127a6-aa10-4ba7-afbf-e0de8798ad00" + name = "Micheal DuBuque" secret_id = "...my_secret_id..." - workspace_id = "413dd760-cc3a-4e1d-b75e-e978f160f457" + workspace_id = "8a627c91-41ac-48dc-b207-c06da07742c2" } \ 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 3af8f00e4..37e5323fd 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 = "Canada" + origin = "USA" start_date = "2021-01-01T00:00:00Z" survey_ids = [ "...", ] } - definition_id = "8fc026c7-cc4e-4afd-ab4c-1bcaf66c1286" - name = "Jerald Mertz" + definition_id = "fb370ea7-b020-459e-aef2-3fc13e66cf8a" + name = "Phil Mayer" secret_id = "...my_secret_id..." - workspace_id = "d6138285-42bb-437a-858f-acd1771a16ff" + workspace_id = "89f10b55-b793-412b-ab1b-52fdccb22b2f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_survicate/import.sh b/examples/resources/airbyte_source_survicate/import.sh new file mode 100644 index 000000000..de2b40139 --- /dev/null +++ b/examples/resources/airbyte_source_survicate/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_survicate.my_airbyte_source_survicate "" diff --git a/examples/resources/airbyte_source_survicate/resource.tf b/examples/resources/airbyte_source_survicate/resource.tf new file mode 100644 index 000000000..1acb56a67 --- /dev/null +++ b/examples/resources/airbyte_source_survicate/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_survicate" "my_source_survicate" { + configuration = { + api_key = "...my_api_key..." + start_date = "2022-10-30T10:23:23.725Z" + } + definition_id = "03e80205-4956-4e9a-ad9d-aedad833c055" + name = "Miss Salvador Hilpert IV" + secret_id = "...my_secret_id..." + workspace_id = "bbc1e380-6100-4a18-b6f5-072b636f98b5" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_teamwork/import.sh b/examples/resources/airbyte_source_teamwork/import.sh new file mode 100644 index 000000000..a3dc27f72 --- /dev/null +++ b/examples/resources/airbyte_source_teamwork/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_teamwork.my_airbyte_source_teamwork "" diff --git a/examples/resources/airbyte_source_teamwork/resource.tf b/examples/resources/airbyte_source_teamwork/resource.tf new file mode 100644 index 000000000..d80b83c87 --- /dev/null +++ b/examples/resources/airbyte_source_teamwork/resource.tf @@ -0,0 +1,12 @@ +resource "airbyte_source_teamwork" "my_source_teamwork" { + configuration = { + password = "...my_password..." + site_name = "...my_site_name..." + start_date = "2020-06-27T05:03:40.451Z" + username = "Ambrose_Will80" + } + definition_id = "c17260a5-ebd0-4cf4-b5b7-2f05c18a11c8" + name = "Pedro Cartwright V" + secret_id = "...my_secret_id..." + workspace_id = "c2c7aa33-9899-4495-947b-12e2d4774d24" +} \ 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 fdbe524fd..303061dc5 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 = "46ac11eb-0243-4724-82fa-90b3fc58aed9" - name = "Kristen Erdman IV" + definition_id = "e5a5b3df-80e8-47ac-88d7-3096598895bd" + name = "Miss Kurt Larkin" secret_id = "...my_secret_id..." - workspace_id = "de960972-5c6d-45a5-9a35-039f4e4098bb" + workspace_id = "d18174b5-fdf3-4211-b15e-0b967ac0fe88" } \ 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 dd464e0b7..407b80293 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 = "amusement park" - section = "housing-network" + query = "environment AND political" + section = "technology" start_date = "YYYY-MM-DD" tag = "environment/recycling" } - definition_id = "a23b3c01-3462-4186-acf5-18dbd5ebee01" - name = "Sonja Abshire" + definition_id = "7e848040-b9f1-4499-9ddb-8a59a67c83fd" + name = "Duane Sporer" secret_id = "...my_secret_id..." - workspace_id = "adc6f53d-253d-4b8b-9e39-d437be8f4cf7" + workspace_id = "0b32fa02-e1c3-46ea-ae2a-493453ab987b" } \ 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 53e80101b..fc3605aad 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 = 6 + attribution_window = 5 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-01-13" - include_deleted = true - start_date = "2021-09-07" + end_date = "2022-05-10" + include_deleted = false + start_date = "2022-08-15" } - definition_id = "e012beba-22c9-4964-9ef6-30f5d8739c0e" - name = "Hazel Pfeffer" + definition_id = "eb5b6f75-d446-4aae-b18d-05d9d9e1d46f" + name = "Marc Boyer" secret_id = "...my_secret_id..." - workspace_id = "2ddb04c9-bce3-487d-a644-4a186797a763" + workspace_id = "54e9e7e5-7484-4de0-aaba-6f0f14e7378b" } \ 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 6f2db6cae..5cfa91b57 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 = "0f99e008-79e4-4948-8a74-85520644aee4" - name = "Melinda Zboncak" + definition_id = "37527a54-8f48-410e-ab60-f065130056f9" + name = "Sonya Schulist" secret_id = "...my_secret_id..." - workspace_id = "df9bf84b-784e-4daa-b2f4-24ed308606f0" + workspace_id = "123a35af-023c-42b5-a9d8-41a38ae3ec6a" } \ 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 e222b101a..02fe2db62 100644 --- a/examples/resources/airbyte_source_trustpilot/resource.tf +++ b/examples/resources/airbyte_source_trustpilot/resource.tf @@ -10,8 +10,8 @@ resource "airbyte_source_trustpilot" "my_source_trustpilot" { } start_date = "%Y-%m-%dT%H:%M:%SZ" } - definition_id = "992622de-7b1a-493e-9915-fe5844c8d7f9" - name = "Reginald Kreiger" + definition_id = "a76308e2-8188-410e-b61b-40ea12469466" + name = "Crystal Rutherford" secret_id = "...my_secret_id..." - workspace_id = "df74d23a-87a4-42ab-b6ae-57802daa8219" + workspace_id = "f85dbdf8-ab2f-4267-87a5-b6047904d383" } \ 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 f8d5c35a4..920eb6d72 100644 --- a/examples/resources/airbyte_source_tvmaze_schedule/resource.tf +++ b/examples/resources/airbyte_source_tvmaze_schedule/resource.tf @@ -3,10 +3,10 @@ resource "airbyte_source_tvmaze_schedule" "my_source_tvmazeschedule" { domestic_schedule_country_code = "GB" end_date = "...my_end_date..." start_date = "...my_start_date..." - web_schedule_country_code = "GB" + web_schedule_country_code = "global" } - definition_id = "eac7526c-0e68-4d41-b294-78bd831a4caf" - name = "Hattie Beer DVM" + definition_id = "f6a8328b-9367-4edf-a4a3-46dad742eb3f" + name = "Mr. Jack Dach" secret_id = "...my_secret_id..." - workspace_id = "2320a84c-82fe-4ed3-9fd4-712605259781" + workspace_id = "70668071-f391-47b5-a4a0-ba6fe0b4bda7" } \ 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 9118ede2c..26e0d70fd 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 = "214e979a-9787-43ec-aec2-3f8936834bb7" - name = "Howard Herman" + definition_id = "23a3cf02-bc52-434b-8593-a96f3714908f" + name = "Dixie Gorczany" secret_id = "...my_secret_id..." - workspace_id = "a2eed97a-7ac9-43ce-a101-f692eff8de56" + workspace_id = "87082bd5-be86-4662-8ddb-59a0cab9b4c3" } \ 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 4116fa342..57d9da3eb 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 = "50472830-aace-4290-97b3-b358aff5206e" - name = "Angelica Huels" + definition_id = "f12901d6-a4d9-4272-b20b-42214f471b20" + name = "Renee Schumm" secret_id = "...my_secret_id..." - workspace_id = "12764ede-9cd8-419e-8c37-ba1700ba64da" + workspace_id = "38b2a3f7-649c-47fe-8f2d-88dd1cee167e" } \ 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 76d531462..5b57ce1e1 100644 --- a/examples/resources/airbyte_source_twitter/resource.tf +++ b/examples/resources/airbyte_source_twitter/resource.tf @@ -1,12 +1,12 @@ resource "airbyte_source_twitter" "my_source_twitter" { configuration = { api_key = "...my_api_key..." - end_date = "2022-07-12T09:29:20.072Z" + end_date = "2021-04-21T11:17:41.200Z" query = "...my_query..." - start_date = "2020-06-17T06:17:32.127Z" + start_date = "2022-09-15T17:46:04.469Z" } - definition_id = "7c8fe575-7a30-4644-ba75-bcf4e2e1378d" - name = "Steven Brown" + definition_id = "daf01c7b-ae15-429d-8545-fe15a70ff5c6" + name = "Sally Pollich" secret_id = "...my_secret_id..." - workspace_id = "6f7dd27a-a6e5-41f0-820e-4312d0cbfe39" + workspace_id = "edc6409a-047c-475e-8f25-490869daf063" } \ 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 26078ce2f..700843396 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 = "2020-01-31T16:32:17.420Z" + token_expiry_date = "2022-07-29T12:53:45.825Z" } } form_ids = [ @@ -14,8 +14,8 @@ resource "airbyte_source_typeform" "my_source_typeform" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "e297d6f5-cf39-4b34-b958-9f42198f3282" - name = "Latoya Leuschke" + definition_id = "fb2f6de2-ea36-4801-8ecd-1ad5ec49d168" + name = "Jennie Klocko" secret_id = "...my_secret_id..." - workspace_id = "159ebc2b-7c1d-4354-8fbb-e2d8a9d00100" + workspace_id = "da8c4417-78e3-4947-a95b-8130b0d1b71f" } \ 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 d41252f14..22fc62adf 100644 --- a/examples/resources/airbyte_source_us_census/resource.tf +++ b/examples/resources/airbyte_source_us_census/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_us_census" "my_source_uscensus" { configuration = { api_key = "...my_api_key..." - query_params = "get=NAME,NAICS2017_LABEL,LFO_LABEL,EMPSZES_LABEL,ESTAB,PAYANN,PAYQTR1,EMP&for=us:*&NAICS2017=72&LFO=001&EMPSZES=001" - query_path = "data/2018/acs" + query_params = "get=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:*" + query_path = "data/2019/cbp" } - definition_id = "d11c1280-d807-4cdd-8eb8-c75c4610938e" - name = "Benjamin Greenholt" + definition_id = "ee300f65-8219-4293-8e7b-1b4ec3d718f0" + name = "Miss Henrietta Sipes" secret_id = "...my_secret_id..." - workspace_id = "624d8c5c-5aa0-4b53-a8b2-6a568aa6dc34" + workspace_id = "a3001af4-d2a5-48a4-9f5f-d75cbebab8bd" } \ 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 671228f4c..f47a3098f 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 = "0bb15469-57c1-4238-9870-2998d832c86d" - name = "Ms. Wilfred Larkin" + definition_id = "8990fea4-c7f8-425f-b877-6c87f290dbb5" + name = "Carl Bins" secret_id = "...my_secret_id..." - workspace_id = "f75b417c-7a0b-47eb-b790-1b079c0c4f41" + workspace_id = "33e77c5c-900b-46e5-95bf-b7e7038464bf" } \ 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 d4fb0fbd4..21d25a455 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 = "1920e562-c711-4d3e-b646-ca6a0584e97a" - name = "Leon Corkery DDS" + definition_id = "64f6ff9e-8e9f-4b1f-942f-e101b4395357" + name = "Geoffrey Rowe" secret_id = "...my_secret_id..." - workspace_id = "d22882d9-facb-48ad-8cb7-919041885bed" + workspace_id = "4750edd3-b5b4-4d0f-887b-07cfdecccf7a" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_when_i_work/import.sh b/examples/resources/airbyte_source_when_i_work/import.sh new file mode 100644 index 000000000..020ee3993 --- /dev/null +++ b/examples/resources/airbyte_source_when_i_work/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_when_i_work.my_airbyte_source_when_i_work "" diff --git a/examples/resources/airbyte_source_when_i_work/resource.tf b/examples/resources/airbyte_source_when_i_work/resource.tf new file mode 100644 index 000000000..4f4bcb614 --- /dev/null +++ b/examples/resources/airbyte_source_when_i_work/resource.tf @@ -0,0 +1,10 @@ +resource "airbyte_source_when_i_work" "my_source_wheniwork" { + configuration = { + email = "Deshawn10@gmail.com" + password = "...my_password..." + } + definition_id = "75a9064a-5032-4959-97b8-87bcaaeb3780" + name = "Sean Stehr" + secret_id = "...my_secret_id..." + workspace_id = "7ca3ce9c-b3aa-45ee-b838-6c40c0bb623b" +} \ 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 81a689e54..f0f9f016a 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 = "f1b6a60e-d146-42f4-91dc-6a0a7c772330" - name = "Clara Shanahan" + definition_id = "c51ff84c-3c0a-4b4b-ae1a-36821935d459" + name = "Mr. Sergio Reichel" secret_id = "...my_secret_id..." - workspace_id = "7177b9cd-d675-4dcd-9c0f-a1c232938176" + workspace_id = "efa65de9-044a-406f-9294-180ca35f3494" } \ 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 4a1424b3f..d93dace9b 100644 --- a/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf +++ b/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf @@ -1,15 +1,15 @@ resource "airbyte_source_wikipedia_pageviews" "my_source_wikipediapageviews" { configuration = { access = "mobile-web" - agent = "user" + agent = "all-agents" article = "Are_You_the_One%3F" - country = "IN" + country = "FR" end = "...my_end..." - project = "en.wikipedia.org" + project = "www.mediawiki.org" start = "...my_start..." } - definition_id = "ac70a337-a3d1-431b-9bdf-0c811e90b6ae" - name = "Lee Deckow" + definition_id = "c999b10a-73ba-40c6-911f-95cb65e559b3" + name = "Lawrence Senger" secret_id = "...my_secret_id..." - workspace_id = "138174cf-a455-4367-8966-ff0c6426b6cd" + workspace_id = "bd06debd-ebc5-4381-8f44-a1e8a05bc47e" } \ 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 b59f9f3e2..2c9c6b89b 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 = "bc947d1a-36d8-4135-b42d-9b671ba3daf1" - name = "Faith Watsica" + definition_id = "5b33aab9-bd23-403d-b2a1-c65a55e757d5" + name = "Nancy Grady" secret_id = "...my_secret_id..." - workspace_id = "d62693dd-fcad-432b-811f-0852299485bd" + workspace_id = "5c9b62f3-d937-4ad7-80fd-70a723540d37" } \ 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 48ca653a5..7810cb775 100644 --- a/examples/resources/airbyte_source_xkcd/resource.tf +++ b/examples/resources/airbyte_source_xkcd/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_xkcd" "my_source_xkcd" { configuration = { comic_number = "...my_comic_number..." } - definition_id = "5b511296-6924-4cde-8b86-7ddcc8cc1e1e" - name = "Dana Hickle" + definition_id = "dfb41358-a13b-44aa-916f-496122ab5517" + name = "Ronnie Lueilwitz" secret_id = "...my_secret_id..." - workspace_id = "c4c80fc9-04e1-4374-8425-fe8edba3050b" + workspace_id = "eb7876a0-574e-46cc-bce7-443ab0c740ec" } \ 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 2d3ceec6c..1a500a948 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 = "579b424a-0569-4229-a6de-0331191cf44b" - name = "Jacob Bergnaum" + definition_id = "7bfa06d4-99c4-49a4-9eb2-7129d8820f70" + name = "Andres Schumm" secret_id = "...my_secret_id..." - workspace_id = "c75cd175-6719-46a7-941f-a2a7924db04e" + workspace_id = "78e77f23-2c62-4b19-bfe7-2e063d1bd835" } \ 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 6bdda1726..79b39b48f 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 = "Santiago_Von2@hotmail.com" + email = "Ismael_Bruen@gmail.com" start_date = "2022-03-01T00:00:00.000Z" } - definition_id = "77895426-7034-4f3e-8d74-96d90ab23438" - name = "Walter Wintheiser" + definition_id = "e8dd3803-417f-4b9b-870c-02d1bcbbed9b" + name = "Myra Romaguera II" secret_id = "...my_secret_id..." - workspace_id = "9697c812-8b04-429b-90eb-a2d38220deac" + workspace_id = "7eb1ca59-8630-42b5-876a-985642b25e45" } \ 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 5c6c4d783..0b4899221 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 = "9bb7b45d-9607-443b-824b-c119f8fb36f9" - name = "Ms. Marie Cummings" + definition_id = "9bfc35e9-0346-480b-8207-4084a44f8250" + name = "Delbert Pfeffer" secret_id = "...my_secret_id..." - workspace_id = "49978c5f-0c0b-470c-9d08-d732ef691ae1" + workspace_id = "e137bba0-0e04-4662-b501-253647b50bf3" } \ 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 4d40714de..97a1f4323 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 = "6e65b76b-dc3f-49ea-a358-d5b4415ac58f" - name = "Kristine Yundt" + definition_id = "a08ea6fb-1c9f-4ea1-b3f2-b7b846f1d4ea" + name = "Cindy Glover PhD" secret_id = "...my_secret_id..." - workspace_id = "370ea7b0-2059-4e2e-b23f-c13e66cf8aae" + workspace_id = "7485ff0c-13c5-44df-81d9-04e542b79de7" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_zendesk_sell/import.sh b/examples/resources/airbyte_source_zendesk_sell/import.sh deleted file mode 100644 index adfe8be1b..000000000 --- a/examples/resources/airbyte_source_zendesk_sell/import.sh +++ /dev/null @@ -1 +0,0 @@ -terraform import airbyte_source_zendesk_sell.my_airbyte_source_zendesk_sell "" diff --git a/examples/resources/airbyte_source_zendesk_sell/resource.tf b/examples/resources/airbyte_source_zendesk_sell/resource.tf deleted file mode 100644 index 14f339016..000000000 --- a/examples/resources/airbyte_source_zendesk_sell/resource.tf +++ /dev/null @@ -1,9 +0,0 @@ -resource "airbyte_source_zendesk_sell" "my_source_zendesksell" { - configuration = { - api_token = "f23yhd630otl94y85a8bf384958473pto95847fd006da49382716or937ruw059" - } - definition_id = "95489f10-b55b-4793-92be-b1b52fdccb22" - name = "Ernest Weimann" - secret_id = "...my_secret_id..." - 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 4ae5a5d31..580fc9877 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 = "Gracie_Howell@gmail.com" + email = "Hannah48@yahoo.com" } } start_date = "2021-01-01T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "7c9141ac-8dcf-4207-806d-a07742c26203" - name = "Felix Beer II" + definition_id = "03f51ef1-7f33-4075-8552-dc86ef5bfa62" + name = "Adrian Klocko" secret_id = "...my_secret_id..." - workspace_id = "4956e9a2-d9da-4eda-9833-c055c950c18b" + workspace_id = "8c8ef0ca-87b0-4611-9e8d-1dd81a7a336c" } \ 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 f35dfe9cf..8246fbd88 100644 --- a/examples/resources/airbyte_source_zendesk_support/resource.tf +++ b/examples/resources/airbyte_source_zendesk_support/resource.tf @@ -4,15 +4,14 @@ resource "airbyte_source_zendesk_support" "my_source_zendesksupport" { api_token = { additional_properties = "{ \"see\": \"documentation\" }" api_token = "...my_api_token..." - email = "Priscilla.Bergstrom51@hotmail.com" + email = "Sibyl.Kuhn37@hotmail.com" } } - ignore_pagination = true - start_date = "2020-10-15T00:00:00Z" - subdomain = "...my_subdomain..." + start_date = "2020-10-15T00:00:00Z" + subdomain = "...my_subdomain..." } - definition_id = "00a18f6f-5072-4b63-af98-b5cd0fbbcc17" - name = "Katie Bartoletti" + definition_id = "7d0d61fb-64b1-495d-b09b-664eddec27a2" + name = "Byron Lakin" secret_id = "...my_secret_id..." - workspace_id = "ebd0cf43-5b72-4f05-818a-11c8951c09c2" + workspace_id = "54579de1-c1b0-4368-bea0-77f09d380eb8" } \ 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 151c25d6b..666072d96 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 = "Jan.OConner@hotmail.com" + email = "Rosetta80@yahoo.com" } } start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "89949514-7b12-4e2d-8774-d24e5a5b3df8" - name = "Kerry Lynch" + definition_id = "4fedbcbf-3e77-4c50-8d4a-9e4cf2cbf64f" + name = "Mrs. Dana Durgan" secret_id = "...my_secret_id..." - workspace_id = "c48d7309-6598-4895-bdb7-81b6d18174b5" + workspace_id = "f5123775-cbfc-468f-bdb9-d76708c4a402" } \ 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 73d93cd3b..127d522f2 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 = "fdf3211f-15e0-4b96-bac0-fe887647e848" - name = "Pauline Bechtelar" + definition_id = "515d7f66-3f4a-4f02-981b-fb7704b3ca57" + name = "Mrs. Cassandra Schmidt" secret_id = "...my_secret_id..." - workspace_id = "f14991dd-b8a5-49a6-bc83-fdb6d5a0b32f" + workspace_id = "ea5ae8be-9a74-4d2f-a902-70b8919de211" } \ 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 f44889fe9..935bd6aa8 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 = "IN" - edition = "Free" - environment = "Production" + dc_region = "EU" + edition = "Enterprise" + environment = "Sandbox" refresh_token = "...my_refresh_token..." - start_datetime = "2000-01-01T13:00:00-07:00" + start_datetime = "2000-01-01 13:00" } - definition_id = "36ea6e2a-4934-453a-b987-b81a066eb5b6" - name = "Gabriel Hartmann" + definition_id = "6f243316-dd2c-4a1b-893b-a4ee10def03d" + name = "Dr. Alice Wuckert" secret_id = "...my_secret_id..." - workspace_id = "46aaeb18-d05d-49d9-a1d4-6fb619254e9e" + workspace_id = "d688efce-4cb4-4a0c-8783-aaeb2f046b35" } \ 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 20cb97afe..434936670 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 = "7e57484d-e0ea-4ba6-b0f1-4e7378bf2375" - name = "Allison Ondricka" + definition_id = "14db9a0e-6f1f-46fb-a229-4ac15ae0525b" + name = "Johnnie Braun" secret_id = "...my_secret_id..." - workspace_id = "8f4810e2-b60f-4065-9300-56f91ac7e123" + workspace_id = "8032522c-1981-45ba-94d9-03614afc86e6" } \ No newline at end of file diff --git a/examples/resources/airbyte_workspace/resource.tf b/examples/resources/airbyte_workspace/resource.tf index 425ea02fa..cbcd94d23 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 = "Leonard Hamill" - organization_id = "023c2b52-9d84-41a3-8ae3-ec6aa76308e2" + name = "Tara Wiza" + organization_id = "a0c5318a-3511-4952-a18f-333c5e795edb" } \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 68923e30a..abbcd9c1d 100755 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: oAuth2ClientCredentialsEnabled: true telemetryEnabled: true terraform: - version: 0.11.0 + version: 0.13.0 additionalDataSources: [] additionalDependencies: {} additionalResources: [] diff --git a/internal/provider/destination_clickhouse_resource.go b/internal/provider/destination_clickhouse_resource.go index 9f8a1a0e1..485e64eb8 100644 --- a/internal/provider/destination_clickhouse_resource.go +++ b/internal/provider/destination_clickhouse_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/stringplanmodifier" @@ -87,6 +88,12 @@ func (r *DestinationClickhouseResource) Schema(ctx context.Context, req resource Optional: true, Description: `The schema to write raw tables into (default: airbyte_internal)`, }, + "ssl": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Encrypt data using SSL. Default: false`, + }, "tunnel_method": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ diff --git a/internal/provider/destination_clickhouse_resource_sdk.go b/internal/provider/destination_clickhouse_resource_sdk.go index 59f7a7461..e948626ad 100644 --- a/internal/provider/destination_clickhouse_resource_sdk.go +++ b/internal/provider/destination_clickhouse_resource_sdk.go @@ -34,6 +34,12 @@ func (r *DestinationClickhouseResourceModel) ToSharedDestinationClickhouseCreate } else { rawDataSchema = nil } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var tunnelMethod *shared.DestinationClickhouseSSHTunnelMethod if r.Configuration.TunnelMethod != nil { var destinationClickhouseNoTunnel *shared.DestinationClickhouseNoTunnel @@ -100,6 +106,7 @@ func (r *DestinationClickhouseResourceModel) ToSharedDestinationClickhouseCreate Password: password, Port: port, RawDataSchema: rawDataSchema, + Ssl: ssl, TunnelMethod: tunnelMethod, Username: username, } @@ -156,6 +163,12 @@ func (r *DestinationClickhouseResourceModel) ToSharedDestinationClickhousePutReq } else { rawDataSchema = nil } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var tunnelMethod *shared.SSHTunnelMethod if r.Configuration.TunnelMethod != nil { var noTunnel *shared.NoTunnel @@ -222,6 +235,7 @@ func (r *DestinationClickhouseResourceModel) ToSharedDestinationClickhousePutReq Password: password, Port: port, RawDataSchema: rawDataSchema, + Ssl: ssl, TunnelMethod: tunnelMethod, Username: username, } diff --git a/internal/provider/destination_devnull_resource_sdk.go b/internal/provider/destination_devnull_resource_sdk.go deleted file mode 100644 index 4b976e827..000000000 --- a/internal/provider/destination_devnull_resource_sdk.go +++ /dev/null @@ -1,72 +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 *DestinationDevNullResourceModel) ToSharedDestinationDevNullCreateRequest() *shared.DestinationDevNullCreateRequest { - var testDestination shared.DestinationDevNullTestDestination - var destinationDevNullSilent *shared.DestinationDevNullSilent - if r.Configuration.TestDestination.Silent != nil { - destinationDevNullSilent = &shared.DestinationDevNullSilent{} - } - if destinationDevNullSilent != nil { - testDestination = shared.DestinationDevNullTestDestination{ - DestinationDevNullSilent: destinationDevNullSilent, - } - } - configuration := shared.DestinationDevNull{ - TestDestination: testDestination, - } - 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.DestinationDevNullCreateRequest{ - Configuration: configuration, - DefinitionID: definitionID, - Name: name, - WorkspaceID: workspaceID, - } - return &out -} - -func (r *DestinationDevNullResourceModel) 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 *DestinationDevNullResourceModel) ToSharedDestinationDevNullPutRequest() *shared.DestinationDevNullPutRequest { - var testDestination shared.TestDestination - var silent *shared.Silent - if r.Configuration.TestDestination.Silent != nil { - silent = &shared.Silent{} - } - if silent != nil { - testDestination = shared.TestDestination{ - Silent: silent, - } - } - configuration := shared.DestinationDevNullUpdate{ - TestDestination: testDestination, - } - name := r.Name.ValueString() - workspaceID := r.WorkspaceID.ValueString() - out := shared.DestinationDevNullPutRequest{ - Configuration: configuration, - Name: name, - WorkspaceID: workspaceID, - } - return &out -} diff --git a/internal/provider/destination_elasticsearch_resource.go b/internal/provider/destination_elasticsearch_resource.go index 81cfb9892..b94a1dd7d 100644 --- a/internal/provider/destination_elasticsearch_resource.go +++ b/internal/provider/destination_elasticsearch_resource.go @@ -16,6 +16,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/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/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -79,6 +80,18 @@ func (r *DestinationElasticsearchResource) Schema(ctx context.Context, req resou Description: `Use a api key and secret combination to authenticate`, Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("none"), + path.MatchRelative().AtParent().AtName("username_password"), + }...), + }, + }, + "none": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Description: `No authentication will be used`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("api_key_secret"), path.MatchRelative().AtParent().AtName("username_password"), }...), }, @@ -100,6 +113,7 @@ func (r *DestinationElasticsearchResource) Schema(ctx context.Context, req resou Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("api_key_secret"), + path.MatchRelative().AtParent().AtName("none"), }...), }, }, @@ -118,6 +132,85 @@ func (r *DestinationElasticsearchResource) Schema(ctx context.Context, req resou Required: true, Description: `The full url of the Elasticsearch server`, }, + "tunnel_method": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "no_tunnel": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("password_authentication"), + path.MatchRelative().AtParent().AtName("ssh_key_authentication"), + }...), + }, + }, + "password_authentication": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "tunnel_host": schema.StringAttribute{ + Required: true, + Description: `Hostname of the jump server host that allows inbound ssh tunnel.`, + }, + "tunnel_port": schema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(22), + Description: `Port on the proxy/jump server that accepts inbound ssh connections. Default: 22`, + }, + "tunnel_user": schema.StringAttribute{ + Required: true, + Description: `OS-level username for logging into the jump server host`, + }, + "tunnel_user_password": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `OS-level password for logging into the jump server host`, + }, + }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("no_tunnel"), + path.MatchRelative().AtParent().AtName("ssh_key_authentication"), + }...), + }, + }, + "ssh_key_authentication": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "ssh_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )`, + }, + "tunnel_host": schema.StringAttribute{ + Required: true, + Description: `Hostname of the jump server host that allows inbound ssh tunnel.`, + }, + "tunnel_port": schema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(22), + Description: `Port on the proxy/jump server that accepts inbound ssh connections. Default: 22`, + }, + "tunnel_user": schema.StringAttribute{ + Required: true, + Description: `OS-level username for logging into the jump server host.`, + }, + }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("no_tunnel"), + path.MatchRelative().AtParent().AtName("password_authentication"), + }...), + }, + }, + }, + Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, + }, "upsert": schema.BoolAttribute{ Computed: true, Optional: true, diff --git a/internal/provider/destination_elasticsearch_resource_sdk.go b/internal/provider/destination_elasticsearch_resource_sdk.go index aec51aee0..4484fd294 100644 --- a/internal/provider/destination_elasticsearch_resource_sdk.go +++ b/internal/provider/destination_elasticsearch_resource_sdk.go @@ -10,6 +10,15 @@ import ( func (r *DestinationElasticsearchResourceModel) ToSharedDestinationElasticsearchCreateRequest() *shared.DestinationElasticsearchCreateRequest { var authenticationMethod *shared.DestinationElasticsearchAuthenticationMethod if r.Configuration.AuthenticationMethod != nil { + var destinationElasticsearchNone *shared.DestinationElasticsearchNone + if r.Configuration.AuthenticationMethod.None != nil { + destinationElasticsearchNone = &shared.DestinationElasticsearchNone{} + } + if destinationElasticsearchNone != nil { + authenticationMethod = &shared.DestinationElasticsearchAuthenticationMethod{ + DestinationElasticsearchNone: destinationElasticsearchNone, + } + } var destinationElasticsearchAPIKeySecret *shared.DestinationElasticsearchAPIKeySecret if r.Configuration.AuthenticationMethod.APIKeySecret != nil { apiKeyID := r.Configuration.AuthenticationMethod.APIKeySecret.APIKeyID.ValueString() @@ -46,6 +55,64 @@ func (r *DestinationElasticsearchResourceModel) ToSharedDestinationElasticsearch caCertificate = nil } endpoint := r.Configuration.Endpoint.ValueString() + var tunnelMethod *shared.DestinationElasticsearchSSHTunnelMethod + if r.Configuration.TunnelMethod != nil { + var destinationElasticsearchNoTunnel *shared.DestinationElasticsearchNoTunnel + if r.Configuration.TunnelMethod.NoTunnel != nil { + destinationElasticsearchNoTunnel = &shared.DestinationElasticsearchNoTunnel{} + } + if destinationElasticsearchNoTunnel != nil { + tunnelMethod = &shared.DestinationElasticsearchSSHTunnelMethod{ + DestinationElasticsearchNoTunnel: destinationElasticsearchNoTunnel, + } + } + var destinationElasticsearchSSHKeyAuthentication *shared.DestinationElasticsearchSSHKeyAuthentication + if r.Configuration.TunnelMethod.SSHKeyAuthentication != nil { + sshKey := r.Configuration.TunnelMethod.SSHKeyAuthentication.SSHKey.ValueString() + tunnelHost := r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelHost.ValueString() + tunnelPort := new(int64) + if !r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelPort.IsNull() { + *tunnelPort = r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelPort.ValueInt64() + } else { + tunnelPort = nil + } + tunnelUser := r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelUser.ValueString() + destinationElasticsearchSSHKeyAuthentication = &shared.DestinationElasticsearchSSHKeyAuthentication{ + SSHKey: sshKey, + TunnelHost: tunnelHost, + TunnelPort: tunnelPort, + TunnelUser: tunnelUser, + } + } + if destinationElasticsearchSSHKeyAuthentication != nil { + tunnelMethod = &shared.DestinationElasticsearchSSHTunnelMethod{ + DestinationElasticsearchSSHKeyAuthentication: destinationElasticsearchSSHKeyAuthentication, + } + } + var destinationElasticsearchPasswordAuthentication *shared.DestinationElasticsearchPasswordAuthentication + if r.Configuration.TunnelMethod.PasswordAuthentication != nil { + tunnelHost1 := r.Configuration.TunnelMethod.PasswordAuthentication.TunnelHost.ValueString() + tunnelPort1 := new(int64) + if !r.Configuration.TunnelMethod.PasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.PasswordAuthentication.TunnelPort.IsNull() { + *tunnelPort1 = r.Configuration.TunnelMethod.PasswordAuthentication.TunnelPort.ValueInt64() + } else { + tunnelPort1 = nil + } + tunnelUser1 := r.Configuration.TunnelMethod.PasswordAuthentication.TunnelUser.ValueString() + tunnelUserPassword := r.Configuration.TunnelMethod.PasswordAuthentication.TunnelUserPassword.ValueString() + destinationElasticsearchPasswordAuthentication = &shared.DestinationElasticsearchPasswordAuthentication{ + TunnelHost: tunnelHost1, + TunnelPort: tunnelPort1, + TunnelUser: tunnelUser1, + TunnelUserPassword: tunnelUserPassword, + } + } + if destinationElasticsearchPasswordAuthentication != nil { + tunnelMethod = &shared.DestinationElasticsearchSSHTunnelMethod{ + DestinationElasticsearchPasswordAuthentication: destinationElasticsearchPasswordAuthentication, + } + } + } upsert := new(bool) if !r.Configuration.Upsert.IsUnknown() && !r.Configuration.Upsert.IsNull() { *upsert = r.Configuration.Upsert.ValueBool() @@ -56,6 +123,7 @@ func (r *DestinationElasticsearchResourceModel) ToSharedDestinationElasticsearch AuthenticationMethod: authenticationMethod, CaCertificate: caCertificate, Endpoint: endpoint, + TunnelMethod: tunnelMethod, Upsert: upsert, } definitionID := new(string) @@ -87,6 +155,15 @@ func (r *DestinationElasticsearchResourceModel) RefreshFromSharedDestinationResp func (r *DestinationElasticsearchResourceModel) ToSharedDestinationElasticsearchPutRequest() *shared.DestinationElasticsearchPutRequest { var authenticationMethod *shared.AuthenticationMethod if r.Configuration.AuthenticationMethod != nil { + var none *shared.None + if r.Configuration.AuthenticationMethod.None != nil { + none = &shared.None{} + } + if none != nil { + authenticationMethod = &shared.AuthenticationMethod{ + None: none, + } + } var apiKeySecret *shared.APIKeySecret if r.Configuration.AuthenticationMethod.APIKeySecret != nil { apiKeyID := r.Configuration.AuthenticationMethod.APIKeySecret.APIKeyID.ValueString() @@ -123,6 +200,64 @@ func (r *DestinationElasticsearchResourceModel) ToSharedDestinationElasticsearch caCertificate = nil } endpoint := r.Configuration.Endpoint.ValueString() + var tunnelMethod *shared.DestinationElasticsearchUpdateSSHTunnelMethod + if r.Configuration.TunnelMethod != nil { + var destinationElasticsearchUpdateNoTunnel *shared.DestinationElasticsearchUpdateNoTunnel + if r.Configuration.TunnelMethod.NoTunnel != nil { + destinationElasticsearchUpdateNoTunnel = &shared.DestinationElasticsearchUpdateNoTunnel{} + } + if destinationElasticsearchUpdateNoTunnel != nil { + tunnelMethod = &shared.DestinationElasticsearchUpdateSSHTunnelMethod{ + DestinationElasticsearchUpdateNoTunnel: destinationElasticsearchUpdateNoTunnel, + } + } + var destinationElasticsearchUpdateSSHKeyAuthentication *shared.DestinationElasticsearchUpdateSSHKeyAuthentication + if r.Configuration.TunnelMethod.SSHKeyAuthentication != nil { + sshKey := r.Configuration.TunnelMethod.SSHKeyAuthentication.SSHKey.ValueString() + tunnelHost := r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelHost.ValueString() + tunnelPort := new(int64) + if !r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelPort.IsNull() { + *tunnelPort = r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelPort.ValueInt64() + } else { + tunnelPort = nil + } + tunnelUser := r.Configuration.TunnelMethod.SSHKeyAuthentication.TunnelUser.ValueString() + destinationElasticsearchUpdateSSHKeyAuthentication = &shared.DestinationElasticsearchUpdateSSHKeyAuthentication{ + SSHKey: sshKey, + TunnelHost: tunnelHost, + TunnelPort: tunnelPort, + TunnelUser: tunnelUser, + } + } + if destinationElasticsearchUpdateSSHKeyAuthentication != nil { + tunnelMethod = &shared.DestinationElasticsearchUpdateSSHTunnelMethod{ + DestinationElasticsearchUpdateSSHKeyAuthentication: destinationElasticsearchUpdateSSHKeyAuthentication, + } + } + var destinationElasticsearchUpdatePasswordAuthentication *shared.DestinationElasticsearchUpdatePasswordAuthentication + if r.Configuration.TunnelMethod.PasswordAuthentication != nil { + tunnelHost1 := r.Configuration.TunnelMethod.PasswordAuthentication.TunnelHost.ValueString() + tunnelPort1 := new(int64) + if !r.Configuration.TunnelMethod.PasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.PasswordAuthentication.TunnelPort.IsNull() { + *tunnelPort1 = r.Configuration.TunnelMethod.PasswordAuthentication.TunnelPort.ValueInt64() + } else { + tunnelPort1 = nil + } + tunnelUser1 := r.Configuration.TunnelMethod.PasswordAuthentication.TunnelUser.ValueString() + tunnelUserPassword := r.Configuration.TunnelMethod.PasswordAuthentication.TunnelUserPassword.ValueString() + destinationElasticsearchUpdatePasswordAuthentication = &shared.DestinationElasticsearchUpdatePasswordAuthentication{ + TunnelHost: tunnelHost1, + TunnelPort: tunnelPort1, + TunnelUser: tunnelUser1, + TunnelUserPassword: tunnelUserPassword, + } + } + if destinationElasticsearchUpdatePasswordAuthentication != nil { + tunnelMethod = &shared.DestinationElasticsearchUpdateSSHTunnelMethod{ + DestinationElasticsearchUpdatePasswordAuthentication: destinationElasticsearchUpdatePasswordAuthentication, + } + } + } upsert := new(bool) if !r.Configuration.Upsert.IsUnknown() && !r.Configuration.Upsert.IsNull() { *upsert = r.Configuration.Upsert.ValueBool() @@ -133,6 +268,7 @@ func (r *DestinationElasticsearchResourceModel) ToSharedDestinationElasticsearch AuthenticationMethod: authenticationMethod, CaCertificate: caCertificate, Endpoint: endpoint, + TunnelMethod: tunnelMethod, Upsert: upsert, } name := r.Name.ValueString() diff --git a/internal/provider/destination_mongodb_resource.go b/internal/provider/destination_mongodb_resource.go index 462ef815c..fc3bcbc10 100644 --- a/internal/provider/destination_mongodb_resource.go +++ b/internal/provider/destination_mongodb_resource.go @@ -16,6 +16,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" @@ -188,6 +189,12 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc Default: int64default.StaticInt64(27017), Description: `The Port of a Mongo database to be replicated. Default: 27017`, }, + "tls": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see documentation. Default: false`, + }, }, Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ diff --git a/internal/provider/destination_mongodb_resource_sdk.go b/internal/provider/destination_mongodb_resource_sdk.go index 417d782c8..f86bea161 100644 --- a/internal/provider/destination_mongodb_resource_sdk.go +++ b/internal/provider/destination_mongodb_resource_sdk.go @@ -50,10 +50,17 @@ func (r *DestinationMongodbResourceModel) ToSharedDestinationMongodbCreateReques } else { port = nil } + tls := new(bool) + if !r.Configuration.InstanceType.StandaloneMongoDbInstance.TLS.IsUnknown() && !r.Configuration.InstanceType.StandaloneMongoDbInstance.TLS.IsNull() { + *tls = r.Configuration.InstanceType.StandaloneMongoDbInstance.TLS.ValueBool() + } else { + tls = nil + } destinationMongodbStandaloneMongoDbInstance = &shared.DestinationMongodbStandaloneMongoDbInstance{ Host: host, Instance: instance, Port: port, + TLS: tls, } } if destinationMongodbStandaloneMongoDbInstance != nil { @@ -199,13 +206,13 @@ func (r *DestinationMongodbResourceModel) RefreshFromSharedDestinationResponse(r func (r *DestinationMongodbResourceModel) ToSharedDestinationMongodbPutRequest() *shared.DestinationMongodbPutRequest { var authType shared.AuthorizationType - var none *shared.None + var destinationMongodbUpdateNone *shared.DestinationMongodbUpdateNone if r.Configuration.AuthType.None != nil { - none = &shared.None{} + destinationMongodbUpdateNone = &shared.DestinationMongodbUpdateNone{} } - if none != nil { + if destinationMongodbUpdateNone != nil { authType = shared.AuthorizationType{ - None: none, + DestinationMongodbUpdateNone: destinationMongodbUpdateNone, } } var loginPassword *shared.LoginPassword @@ -240,10 +247,17 @@ func (r *DestinationMongodbResourceModel) ToSharedDestinationMongodbPutRequest() } else { port = nil } + tls := new(bool) + if !r.Configuration.InstanceType.StandaloneMongoDbInstance.TLS.IsUnknown() && !r.Configuration.InstanceType.StandaloneMongoDbInstance.TLS.IsNull() { + *tls = r.Configuration.InstanceType.StandaloneMongoDbInstance.TLS.ValueBool() + } else { + tls = nil + } standaloneMongoDbInstance = &shared.StandaloneMongoDbInstance{ Host: host, Instance: instance, Port: port, + TLS: tls, } } if standaloneMongoDbInstance != nil { diff --git a/internal/provider/destination_mssql_resource.go b/internal/provider/destination_mssql_resource.go index 802313130..b131f4af3 100644 --- a/internal/provider/destination_mssql_resource.go +++ b/internal/provider/destination_mssql_resource.go @@ -104,6 +104,7 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("encrypted_verify_certificate"), + path.MatchRelative().AtParent().AtName("unencrypted"), }...), }, }, @@ -119,6 +120,18 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("encrypted_trust_server_certificate"), + path.MatchRelative().AtParent().AtName("unencrypted"), + }...), + }, + }, + "unencrypted": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Description: `The data transfer will not be encrypted.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("encrypted_trust_server_certificate"), + path.MatchRelative().AtParent().AtName("encrypted_verify_certificate"), }...), }, }, diff --git a/internal/provider/destination_mssql_resource_sdk.go b/internal/provider/destination_mssql_resource_sdk.go index 5eacdec97..ffff8ee68 100644 --- a/internal/provider/destination_mssql_resource_sdk.go +++ b/internal/provider/destination_mssql_resource_sdk.go @@ -42,6 +42,15 @@ func (r *DestinationMssqlResourceModel) ToSharedDestinationMssqlCreateRequest() } var sslMethod *shared.DestinationMssqlSSLMethod if r.Configuration.SslMethod != nil { + var destinationMssqlUnencrypted *shared.DestinationMssqlUnencrypted + if r.Configuration.SslMethod.Unencrypted != nil { + destinationMssqlUnencrypted = &shared.DestinationMssqlUnencrypted{} + } + if destinationMssqlUnencrypted != nil { + sslMethod = &shared.DestinationMssqlSSLMethod{ + DestinationMssqlUnencrypted: destinationMssqlUnencrypted, + } + } var destinationMssqlEncryptedTrustServerCertificate *shared.DestinationMssqlEncryptedTrustServerCertificate if r.Configuration.SslMethod.EncryptedTrustServerCertificate != nil { destinationMssqlEncryptedTrustServerCertificate = &shared.DestinationMssqlEncryptedTrustServerCertificate{} @@ -201,6 +210,15 @@ func (r *DestinationMssqlResourceModel) ToSharedDestinationMssqlPutRequest() *sh } var sslMethod *shared.SSLMethod if r.Configuration.SslMethod != nil { + var unencrypted *shared.Unencrypted + if r.Configuration.SslMethod.Unencrypted != nil { + unencrypted = &shared.Unencrypted{} + } + if unencrypted != nil { + sslMethod = &shared.SSLMethod{ + Unencrypted: unencrypted, + } + } var encryptedTrustServerCertificate *shared.EncryptedTrustServerCertificate if r.Configuration.SslMethod.EncryptedTrustServerCertificate != nil { encryptedTrustServerCertificate = &shared.EncryptedTrustServerCertificate{} diff --git a/internal/provider/destination_mysql_resource.go b/internal/provider/destination_mysql_resource.go index 75ffda633..7eae369ea 100644 --- a/internal/provider/destination_mysql_resource.go +++ b/internal/provider/destination_mysql_resource.go @@ -94,6 +94,12 @@ func (r *DestinationMysqlResource) Schema(ctx context.Context, req resource.Sche Optional: true, Description: `The database to write raw tables into`, }, + "ssl": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + Description: `Encrypt data using SSL. Default: true`, + }, "tunnel_method": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ diff --git a/internal/provider/destination_mysql_resource_sdk.go b/internal/provider/destination_mysql_resource_sdk.go index 51674263f..9a2289831 100644 --- a/internal/provider/destination_mysql_resource_sdk.go +++ b/internal/provider/destination_mysql_resource_sdk.go @@ -40,6 +40,12 @@ func (r *DestinationMysqlResourceModel) ToSharedDestinationMysqlCreateRequest() } else { rawDataSchema = nil } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var tunnelMethod *shared.DestinationMysqlSSHTunnelMethod if r.Configuration.TunnelMethod != nil { var destinationMysqlNoTunnel *shared.DestinationMysqlNoTunnel @@ -107,6 +113,7 @@ func (r *DestinationMysqlResourceModel) ToSharedDestinationMysqlCreateRequest() Password: password, Port: port, RawDataSchema: rawDataSchema, + Ssl: ssl, TunnelMethod: tunnelMethod, Username: username, } @@ -169,6 +176,12 @@ func (r *DestinationMysqlResourceModel) ToSharedDestinationMysqlPutRequest() *sh } else { rawDataSchema = nil } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var tunnelMethod *shared.DestinationMysqlUpdateSSHTunnelMethod if r.Configuration.TunnelMethod != nil { var destinationMysqlUpdateNoTunnel *shared.DestinationMysqlUpdateNoTunnel @@ -236,6 +249,7 @@ func (r *DestinationMysqlResourceModel) ToSharedDestinationMysqlPutRequest() *sh Password: password, Port: port, RawDataSchema: rawDataSchema, + Ssl: ssl, TunnelMethod: tunnelMethod, Username: username, } diff --git a/internal/provider/destination_oracle_resource.go b/internal/provider/destination_oracle_resource.go index e91716842..d6a5688f5 100644 --- a/internal/provider/destination_oracle_resource.go +++ b/internal/provider/destination_oracle_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/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" @@ -61,6 +62,68 @@ func (r *DestinationOracleResource) Schema(ctx context.Context, req resource.Sch }, Required: true, Attributes: map[string]schema.Attribute{ + "encryption": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "native_network_encryption_nne": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "encryption_algorithm": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("AES256"), + Description: `This parameter defines the database encryption algorithm. must be one of ["AES256", "RC4_56", "3DES168"]; Default: "AES256"`, + Validators: []validator.String{ + stringvalidator.OneOf( + "AES256", + "RC4_56", + "3DES168", + ), + }, + }, + }, + Description: `The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("tls_encrypted_verify_certificate"), + path.MatchRelative().AtParent().AtName("unencrypted"), + }...), + }, + }, + "tls_encrypted_verify_certificate": schema.SingleNestedAttribute{ + Optional: true, + 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.`, + }, + }, + Description: `Verify and use the certificate provided by the server.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("native_network_encryption_nne"), + path.MatchRelative().AtParent().AtName("unencrypted"), + }...), + }, + }, + "unencrypted": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Description: `Data transfer will not be encrypted.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("native_network_encryption_nne"), + path.MatchRelative().AtParent().AtName("tls_encrypted_verify_certificate"), + }...), + }, + }, + }, + Description: `The encryption method which is used when communicating with the database.`, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, + }, "host": schema.StringAttribute{ Required: true, Description: `The hostname of the database.`, diff --git a/internal/provider/destination_oracle_resource_sdk.go b/internal/provider/destination_oracle_resource_sdk.go index 09e389863..7710e3d49 100644 --- a/internal/provider/destination_oracle_resource_sdk.go +++ b/internal/provider/destination_oracle_resource_sdk.go @@ -8,6 +8,47 @@ import ( ) func (r *DestinationOracleResourceModel) ToSharedDestinationOracleCreateRequest() *shared.DestinationOracleCreateRequest { + var encryption *shared.DestinationOracleEncryption + if r.Configuration.Encryption != nil { + var destinationOracleUnencrypted *shared.DestinationOracleUnencrypted + if r.Configuration.Encryption.Unencrypted != nil { + destinationOracleUnencrypted = &shared.DestinationOracleUnencrypted{} + } + if destinationOracleUnencrypted != nil { + encryption = &shared.DestinationOracleEncryption{ + DestinationOracleUnencrypted: destinationOracleUnencrypted, + } + } + var destinationOracleNativeNetworkEncryptionNNE *shared.DestinationOracleNativeNetworkEncryptionNNE + if r.Configuration.Encryption.NativeNetworkEncryptionNNE != nil { + encryptionAlgorithm := new(shared.DestinationOracleEncryptionAlgorithm) + if !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsUnknown() && !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsNull() { + *encryptionAlgorithm = shared.DestinationOracleEncryptionAlgorithm(r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.ValueString()) + } else { + encryptionAlgorithm = nil + } + destinationOracleNativeNetworkEncryptionNNE = &shared.DestinationOracleNativeNetworkEncryptionNNE{ + EncryptionAlgorithm: encryptionAlgorithm, + } + } + if destinationOracleNativeNetworkEncryptionNNE != nil { + encryption = &shared.DestinationOracleEncryption{ + DestinationOracleNativeNetworkEncryptionNNE: destinationOracleNativeNetworkEncryptionNNE, + } + } + var destinationOracleTLSEncryptedVerifyCertificate *shared.DestinationOracleTLSEncryptedVerifyCertificate + if r.Configuration.Encryption.TLSEncryptedVerifyCertificate != nil { + sslCertificate := r.Configuration.Encryption.TLSEncryptedVerifyCertificate.SslCertificate.ValueString() + destinationOracleTLSEncryptedVerifyCertificate = &shared.DestinationOracleTLSEncryptedVerifyCertificate{ + SslCertificate: sslCertificate, + } + } + if destinationOracleTLSEncryptedVerifyCertificate != nil { + encryption = &shared.DestinationOracleEncryption{ + DestinationOracleTLSEncryptedVerifyCertificate: destinationOracleTLSEncryptedVerifyCertificate, + } + } + } host := r.Configuration.Host.ValueString() jdbcURLParams := new(string) if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() { @@ -100,6 +141,7 @@ func (r *DestinationOracleResourceModel) ToSharedDestinationOracleCreateRequest( } username := r.Configuration.Username.ValueString() configuration := shared.DestinationOracle{ + Encryption: encryption, Host: host, JdbcURLParams: jdbcURLParams, Password: password, @@ -137,6 +179,47 @@ func (r *DestinationOracleResourceModel) RefreshFromSharedDestinationResponse(re } func (r *DestinationOracleResourceModel) ToSharedDestinationOraclePutRequest() *shared.DestinationOraclePutRequest { + var encryption *shared.Encryption + if r.Configuration.Encryption != nil { + var destinationOracleUpdateUnencrypted *shared.DestinationOracleUpdateUnencrypted + if r.Configuration.Encryption.Unencrypted != nil { + destinationOracleUpdateUnencrypted = &shared.DestinationOracleUpdateUnencrypted{} + } + if destinationOracleUpdateUnencrypted != nil { + encryption = &shared.Encryption{ + DestinationOracleUpdateUnencrypted: destinationOracleUpdateUnencrypted, + } + } + var nativeNetworkEncryptionNNE *shared.NativeNetworkEncryptionNNE + if r.Configuration.Encryption.NativeNetworkEncryptionNNE != nil { + encryptionAlgorithm := new(shared.EncryptionAlgorithm) + if !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsUnknown() && !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsNull() { + *encryptionAlgorithm = shared.EncryptionAlgorithm(r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.ValueString()) + } else { + encryptionAlgorithm = nil + } + nativeNetworkEncryptionNNE = &shared.NativeNetworkEncryptionNNE{ + EncryptionAlgorithm: encryptionAlgorithm, + } + } + if nativeNetworkEncryptionNNE != nil { + encryption = &shared.Encryption{ + NativeNetworkEncryptionNNE: nativeNetworkEncryptionNNE, + } + } + var tlsEncryptedVerifyCertificate *shared.TLSEncryptedVerifyCertificate + if r.Configuration.Encryption.TLSEncryptedVerifyCertificate != nil { + sslCertificate := r.Configuration.Encryption.TLSEncryptedVerifyCertificate.SslCertificate.ValueString() + tlsEncryptedVerifyCertificate = &shared.TLSEncryptedVerifyCertificate{ + SslCertificate: sslCertificate, + } + } + if tlsEncryptedVerifyCertificate != nil { + encryption = &shared.Encryption{ + TLSEncryptedVerifyCertificate: tlsEncryptedVerifyCertificate, + } + } + } host := r.Configuration.Host.ValueString() jdbcURLParams := new(string) if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() { @@ -229,6 +312,7 @@ func (r *DestinationOracleResourceModel) ToSharedDestinationOraclePutRequest() * } username := r.Configuration.Username.ValueString() configuration := shared.DestinationOracleUpdate{ + Encryption: encryption, Host: host, JdbcURLParams: jdbcURLParams, Password: password, diff --git a/internal/provider/destination_devnull_data_source.go b/internal/provider/destination_pgvector_data_source.go similarity index 71% rename from internal/provider/destination_devnull_data_source.go rename to internal/provider/destination_pgvector_data_source.go index 3983a64b0..c5c366846 100644 --- a/internal/provider/destination_devnull_data_source.go +++ b/internal/provider/destination_pgvector_data_source.go @@ -14,20 +14,20 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ datasource.DataSource = &DestinationDevNullDataSource{} -var _ datasource.DataSourceWithConfigure = &DestinationDevNullDataSource{} +var _ datasource.DataSource = &DestinationPgvectorDataSource{} +var _ datasource.DataSourceWithConfigure = &DestinationPgvectorDataSource{} -func NewDestinationDevNullDataSource() datasource.DataSource { - return &DestinationDevNullDataSource{} +func NewDestinationPgvectorDataSource() datasource.DataSource { + return &DestinationPgvectorDataSource{} } -// DestinationDevNullDataSource is the data source implementation. -type DestinationDevNullDataSource struct { +// DestinationPgvectorDataSource is the data source implementation. +type DestinationPgvectorDataSource struct { client *sdk.SDK } -// DestinationDevNullDataSourceModel describes the data model. -type DestinationDevNullDataSourceModel struct { +// DestinationPgvectorDataSourceModel describes the data model. +type DestinationPgvectorDataSourceModel struct { Configuration types.String `tfsdk:"configuration"` DestinationID types.String `tfsdk:"destination_id"` DestinationType types.String `tfsdk:"destination_type"` @@ -36,14 +36,14 @@ type DestinationDevNullDataSourceModel struct { } // Metadata returns the data source type name. -func (r *DestinationDevNullDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_destination_dev_null" +func (r *DestinationPgvectorDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_destination_pgvector" } // Schema defines the schema for the data source. -func (r *DestinationDevNullDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { +func (r *DestinationPgvectorDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "DestinationDevNull DataSource", + MarkdownDescription: "DestinationPgvector DataSource", Attributes: map[string]schema.Attribute{ "configuration": schema.StringAttribute{ @@ -66,7 +66,7 @@ func (r *DestinationDevNullDataSource) Schema(ctx context.Context, req datasourc } } -func (r *DestinationDevNullDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { +func (r *DestinationPgvectorDataSource) 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 *DestinationDevNullDataSource) Configure(ctx context.Context, req dataso r.client = client } -func (r *DestinationDevNullDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data *DestinationDevNullDataSourceModel +func (r *DestinationPgvectorDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *DestinationPgvectorDataSourceModel var item types.Object resp.Diagnostics.Append(req.Config.Get(ctx, &item)...) @@ -105,10 +105,10 @@ func (r *DestinationDevNullDataSource) Read(ctx context.Context, req datasource. } destinationID := data.DestinationID.ValueString() - request := operations.GetDestinationDevNullRequest{ + request := operations.GetDestinationPgvectorRequest{ DestinationID: destinationID, } - res, err := r.client.Destinations.GetDestinationDevNull(ctx, request) + res, err := r.client.Destinations.GetDestinationPgvector(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_devnull_data_source_sdk.go b/internal/provider/destination_pgvector_data_source_sdk.go similarity index 84% rename from internal/provider/destination_devnull_data_source_sdk.go rename to internal/provider/destination_pgvector_data_source_sdk.go index 719b4506d..37b629211 100644 --- a/internal/provider/destination_devnull_data_source_sdk.go +++ b/internal/provider/destination_pgvector_data_source_sdk.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *DestinationDevNullDataSourceModel) RefreshFromSharedDestinationResponse(resp *shared.DestinationResponse) { +func (r *DestinationPgvectorDataSourceModel) RefreshFromSharedDestinationResponse(resp *shared.DestinationResponse) { if resp != nil { configurationResult, _ := json.Marshal(resp.Configuration) r.Configuration = types.StringValue(string(configurationResult)) diff --git a/internal/provider/destination_pgvector_resource.go b/internal/provider/destination_pgvector_resource.go new file mode 100644 index 000000000..2aac605b6 --- /dev/null +++ b/internal/provider/destination_pgvector_resource.go @@ -0,0 +1,658 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + speakeasy_objectplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/objectplanmodifier" + speakeasy_stringplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/stringplanmodifier" + tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/airbytehq/terraform-provider-airbyte/internal/validators" + "github.com/hashicorp/terraform-plugin-framework-validators/objectvalidator" + "github.com/hashicorp/terraform-plugin-framework-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/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" + "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 = &DestinationPgvectorResource{} +var _ resource.ResourceWithImportState = &DestinationPgvectorResource{} + +func NewDestinationPgvectorResource() resource.Resource { + return &DestinationPgvectorResource{} +} + +// DestinationPgvectorResource defines the resource implementation. +type DestinationPgvectorResource struct { + client *sdk.SDK +} + +// DestinationPgvectorResourceModel describes the resource data model. +type DestinationPgvectorResourceModel struct { + Configuration tfTypes.DestinationPgvector `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 *DestinationPgvectorResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_destination_pgvector" +} + +func (r *DestinationPgvectorResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "DestinationPgvector Resource", + Attributes: map[string]schema.Attribute{ + "configuration": schema.SingleNestedAttribute{ + PlanModifiers: []planmodifier.Object{ + speakeasy_objectplanmodifier.SuppressDiff(speakeasy_objectplanmodifier.ExplicitSuppress), + }, + Required: true, + Attributes: map[string]schema.Attribute{ + "embedding": schema.SingleNestedAttribute{ + Required: true, + Attributes: map[string]schema.Attribute{ + "azure_open_ai": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "api_base": schema.StringAttribute{ + Required: true, + Description: `The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource`, + }, + "deployment": schema.StringAttribute{ + Required: true, + Description: `The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource`, + }, + "openai_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource`, + }, + }, + Description: `Use the Azure-hosted 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("cohere"), + path.MatchRelative().AtParent().AtName("fake"), + path.MatchRelative().AtParent().AtName("open_ai"), + path.MatchRelative().AtParent().AtName("open_ai_compatible"), + }...), + }, + }, + "cohere": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "cohere_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + }, + Description: `Use the Cohere API to embed text.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("azure_open_ai"), + path.MatchRelative().AtParent().AtName("fake"), + path.MatchRelative().AtParent().AtName("open_ai"), + path.MatchRelative().AtParent().AtName("open_ai_compatible"), + }...), + }, + }, + "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("azure_open_ai"), + path.MatchRelative().AtParent().AtName("cohere"), + path.MatchRelative().AtParent().AtName("open_ai"), + path.MatchRelative().AtParent().AtName("open_ai_compatible"), + }...), + }, + }, + "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("azure_open_ai"), + path.MatchRelative().AtParent().AtName("cohere"), + path.MatchRelative().AtParent().AtName("fake"), + path.MatchRelative().AtParent().AtName("open_ai_compatible"), + }...), + }, + }, + "open_ai_compatible": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "api_key": schema.StringAttribute{ + Computed: true, + Optional: true, + Sensitive: true, + Default: stringdefault.StaticString(""), + Description: `Default: ""`, + }, + "base_url": schema.StringAttribute{ + Required: true, + Description: `The base URL for your OpenAI-compatible service`, + }, + "dimensions": schema.Int64Attribute{ + Required: true, + Description: `The number of dimensions the embedding model is generating`, + }, + "model_name": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("text-embedding-ada-002"), + Description: `The name of the model to use for embedding. Default: "text-embedding-ada-002"`, + }, + }, + Description: `Use a service that's compatible with the OpenAI API to embed text.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("azure_open_ai"), + path.MatchRelative().AtParent().AtName("cohere"), + path.MatchRelative().AtParent().AtName("fake"), + path.MatchRelative().AtParent().AtName("open_ai"), + }...), + }, + }, + }, + Description: `Embedding configuration`, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, + }, + "indexing": schema.SingleNestedAttribute{ + Required: true, + Attributes: map[string]schema.Attribute{ + "credentials": schema.SingleNestedAttribute{ + Required: true, + Attributes: map[string]schema.Attribute{ + "password": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `Enter the password you want to use to access the database`, + }, + }, + }, + "database": schema.StringAttribute{ + Required: true, + Description: `Enter the name of the database that you want to sync data into`, + }, + "default_schema": schema.StringAttribute{ + Required: true, + Description: `Enter the name of the default schema`, + }, + "host": schema.StringAttribute{ + Required: true, + Description: `Enter the account name you want to use to access the database.`, + }, + "port": schema.Int64Attribute{ + Required: true, + Description: `Enter the port you want to use to access the database`, + }, + "username": schema.StringAttribute{ + Required: true, + Description: `Enter the name of the user you want to use to access the database`, + }, + }, + Description: `Postgres can be used to store vector data and retrieve embeddings.`, + }, + "omit_raw_text": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. Default: false`, + }, + "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)`, + }, + "field_name_mappings": schema.ListNestedAttribute{ + Optional: true, + NestedObject: schema.NestedAttributeObject{ + Attributes: map[string]schema.Attribute{ + "from_field": schema.StringAttribute{ + Required: true, + Description: `The field name in the source`, + }, + "to_field": schema.StringAttribute{ + Required: true, + Description: `The field name to use in the destination`, + }, + }, + }, + Description: `List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation.`, + }, + "metadata_fields": schema.ListAttribute{ + Optional: true, + ElementType: types.StringType, + Description: `List of fields in the record that should be stored as metadata. 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 metadata 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. When specifying nested paths, all matching values are flattened into an array set to a field named by the path.`, + }, + "text_fields": schema.ListAttribute{ + Optional: true, + ElementType: types.StringType, + Description: `List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. ` + "`" + `user.name` + "`" + ` will access the ` + "`" + `name` + "`" + ` field in the ` + "`" + `user` + "`" + ` object. It's also possible to use wildcards to access all fields in an object, e.g. ` + "`" + `users.*.name` + "`" + ` will access all ` + "`" + `names` + "`" + ` fields in all entries of the ` + "`" + `users` + "`" + ` array.`, + }, + "text_splitter": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "by_markdown_header": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "split_level": schema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(1), + Description: `Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points. Default: 1`, + }, + }, + Description: `Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("by_programming_language"), + path.MatchRelative().AtParent().AtName("by_separator"), + }...), + }, + }, + "by_programming_language": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "language": schema.StringAttribute{ + Required: true, + Description: `Split code in suitable places based on the programming language. must be one of ["cpp", "go", "java", "js", "php", "proto", "python", "rst", "ruby", "rust", "scala", "swift", "markdown", "latex", "html", "sol"]`, + Validators: []validator.String{ + stringvalidator.OneOf( + "cpp", + "go", + "java", + "js", + "php", + "proto", + "python", + "rst", + "ruby", + "rust", + "scala", + "swift", + "markdown", + "latex", + "html", + "sol", + ), + }, + }, + }, + Description: `Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("by_markdown_header"), + path.MatchRelative().AtParent().AtName("by_separator"), + }...), + }, + }, + "by_separator": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "keep_separator": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Whether to keep the separator in the resulting chunks. Default: false`, + }, + "separators": schema.ListAttribute{ + Optional: true, + ElementType: types.StringType, + Description: `List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n".`, + }, + }, + Description: `Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("by_markdown_header"), + path.MatchRelative().AtParent().AtName("by_programming_language"), + }...), + }, + }, + }, + Description: `Split text fields into chunks based on the specified method.`, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, + }, + }, + }, + }, + MarkdownDescription: `The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration,` + "\n" + + `as well as to provide type safety for the configuration passed to the destination.` + "\n" + + `` + "\n" + + `The configuration model is composed of four parts:` + "\n" + + `* Processing configuration` + "\n" + + `* Embedding configuration` + "\n" + + `* Indexing configuration` + "\n" + + `* Advanced configuration` + "\n" + + `` + "\n" + + `Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class.`, + }, + "definition_id": schema.StringAttribute{ + PlanModifiers: []planmodifier.String{ + stringplanmodifier.RequiresReplaceIfConfigured(), + }, + Optional: true, + Description: `The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. Requires replacement if changed. `, + }, + "destination_id": schema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{ + speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), + }, + }, + "destination_type": schema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{ + speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), + }, + }, + "name": schema.StringAttribute{ + PlanModifiers: []planmodifier.String{ + speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), + }, + Required: true, + Description: `Name of the destination e.g. dev-mysql-instance.`, + }, + "workspace_id": schema.StringAttribute{ + PlanModifiers: []planmodifier.String{ + speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), + }, + Required: true, + }, + }, + } +} + +func (r *DestinationPgvectorResource) 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 *DestinationPgvectorResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *DestinationPgvectorResourceModel + 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.ToSharedDestinationPgvectorCreateRequest() + res, err := r.client.Destinations.CreateDestinationPgvector(ctx, request) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res != nil && res.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) + } + return + } + if res == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) + return + } + if res.StatusCode != 200 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) + return + } + if !(res.DestinationResponse != nil) { + resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res.RawResponse)) + return + } + data.RefreshFromSharedDestinationResponse(res.DestinationResponse) + refreshPlan(ctx, plan, &data, resp.Diagnostics) + destinationID := data.DestinationID.ValueString() + request1 := operations.GetDestinationPgvectorRequest{ + DestinationID: destinationID, + } + res1, err := r.client.Destinations.GetDestinationPgvector(ctx, request1) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res1 != nil && res1.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res1.RawResponse)) + } + return + } + if res1 == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res1)) + return + } + if res1.StatusCode != 200 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res1.StatusCode), debugResponse(res1.RawResponse)) + return + } + if !(res1.DestinationResponse != nil) { + resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res1.RawResponse)) + return + } + data.RefreshFromSharedDestinationResponse(res1.DestinationResponse) + refreshPlan(ctx, plan, &data, resp.Diagnostics) + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *DestinationPgvectorResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *DestinationPgvectorResourceModel + var item types.Object + + resp.Diagnostics.Append(req.State.Get(ctx, &item)...) + if resp.Diagnostics.HasError() { + return + } + + resp.Diagnostics.Append(item.As(ctx, &data, basetypes.ObjectAsOptions{ + UnhandledNullAsEmpty: true, + UnhandledUnknownAsEmpty: true, + })...) + + if resp.Diagnostics.HasError() { + return + } + + destinationID := data.DestinationID.ValueString() + request := operations.GetDestinationPgvectorRequest{ + DestinationID: destinationID, + } + res, err := r.client.Destinations.GetDestinationPgvector(ctx, request) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res != nil && res.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) + } + return + } + if res == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) + return + } + if res.StatusCode == 404 { + resp.State.RemoveResource(ctx) + return + } + if res.StatusCode != 200 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) + return + } + if !(res.DestinationResponse != nil) { + resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res.RawResponse)) + return + } + data.RefreshFromSharedDestinationResponse(res.DestinationResponse) + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *DestinationPgvectorResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *DestinationPgvectorResourceModel + 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 + } + + destinationPgvectorPutRequest := data.ToSharedDestinationPgvectorPutRequest() + destinationID := data.DestinationID.ValueString() + request := operations.PutDestinationPgvectorRequest{ + DestinationPgvectorPutRequest: destinationPgvectorPutRequest, + DestinationID: destinationID, + } + res, err := r.client.Destinations.PutDestinationPgvector(ctx, request) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res != nil && res.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) + } + return + } + if res == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) + return + } + if fmt.Sprintf("%v", res.StatusCode)[0] != '2' { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) + return + } + refreshPlan(ctx, plan, &data, resp.Diagnostics) + destinationId1 := data.DestinationID.ValueString() + request1 := operations.GetDestinationPgvectorRequest{ + DestinationID: destinationId1, + } + res1, err := r.client.Destinations.GetDestinationPgvector(ctx, request1) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res1 != nil && res1.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res1.RawResponse)) + } + return + } + if res1 == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res1)) + return + } + if res1.StatusCode != 200 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res1.StatusCode), debugResponse(res1.RawResponse)) + return + } + if !(res1.DestinationResponse != nil) { + resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res1.RawResponse)) + return + } + data.RefreshFromSharedDestinationResponse(res1.DestinationResponse) + refreshPlan(ctx, plan, &data, resp.Diagnostics) + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *DestinationPgvectorResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *DestinationPgvectorResourceModel + var item types.Object + + resp.Diagnostics.Append(req.State.Get(ctx, &item)...) + if resp.Diagnostics.HasError() { + return + } + + resp.Diagnostics.Append(item.As(ctx, &data, basetypes.ObjectAsOptions{ + UnhandledNullAsEmpty: true, + UnhandledUnknownAsEmpty: true, + })...) + + if resp.Diagnostics.HasError() { + return + } + + destinationID := data.DestinationID.ValueString() + request := operations.DeleteDestinationPgvectorRequest{ + DestinationID: destinationID, + } + res, err := r.client.Destinations.DeleteDestinationPgvector(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 *DestinationPgvectorResource) 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_pgvector_resource_sdk.go b/internal/provider/destination_pgvector_resource_sdk.go new file mode 100644 index 000000000..df747eea6 --- /dev/null +++ b/internal/provider/destination_pgvector_resource_sdk.go @@ -0,0 +1,432 @@ +// 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 *DestinationPgvectorResourceModel) ToSharedDestinationPgvectorCreateRequest() *shared.DestinationPgvectorCreateRequest { + var embedding shared.DestinationPgvectorEmbedding + var destinationPgvectorOpenAI *shared.DestinationPgvectorOpenAI + if r.Configuration.Embedding.OpenAI != nil { + openaiKey := r.Configuration.Embedding.OpenAI.OpenaiKey.ValueString() + destinationPgvectorOpenAI = &shared.DestinationPgvectorOpenAI{ + OpenaiKey: openaiKey, + } + } + if destinationPgvectorOpenAI != nil { + embedding = shared.DestinationPgvectorEmbedding{ + DestinationPgvectorOpenAI: destinationPgvectorOpenAI, + } + } + var destinationPgvectorCohere *shared.DestinationPgvectorCohere + if r.Configuration.Embedding.Cohere != nil { + cohereKey := r.Configuration.Embedding.Cohere.CohereKey.ValueString() + destinationPgvectorCohere = &shared.DestinationPgvectorCohere{ + CohereKey: cohereKey, + } + } + if destinationPgvectorCohere != nil { + embedding = shared.DestinationPgvectorEmbedding{ + DestinationPgvectorCohere: destinationPgvectorCohere, + } + } + var destinationPgvectorFake *shared.DestinationPgvectorFake + if r.Configuration.Embedding.Fake != nil { + destinationPgvectorFake = &shared.DestinationPgvectorFake{} + } + if destinationPgvectorFake != nil { + embedding = shared.DestinationPgvectorEmbedding{ + DestinationPgvectorFake: destinationPgvectorFake, + } + } + var destinationPgvectorAzureOpenAI *shared.DestinationPgvectorAzureOpenAI + if r.Configuration.Embedding.AzureOpenAI != nil { + apiBase := r.Configuration.Embedding.AzureOpenAI.APIBase.ValueString() + deployment := r.Configuration.Embedding.AzureOpenAI.Deployment.ValueString() + openaiKey1 := r.Configuration.Embedding.AzureOpenAI.OpenaiKey.ValueString() + destinationPgvectorAzureOpenAI = &shared.DestinationPgvectorAzureOpenAI{ + APIBase: apiBase, + Deployment: deployment, + OpenaiKey: openaiKey1, + } + } + if destinationPgvectorAzureOpenAI != nil { + embedding = shared.DestinationPgvectorEmbedding{ + DestinationPgvectorAzureOpenAI: destinationPgvectorAzureOpenAI, + } + } + var destinationPgvectorOpenAICompatible *shared.DestinationPgvectorOpenAICompatible + if r.Configuration.Embedding.OpenAICompatible != nil { + apiKey := new(string) + if !r.Configuration.Embedding.OpenAICompatible.APIKey.IsUnknown() && !r.Configuration.Embedding.OpenAICompatible.APIKey.IsNull() { + *apiKey = r.Configuration.Embedding.OpenAICompatible.APIKey.ValueString() + } else { + apiKey = nil + } + baseURL := r.Configuration.Embedding.OpenAICompatible.BaseURL.ValueString() + dimensions := r.Configuration.Embedding.OpenAICompatible.Dimensions.ValueInt64() + modelName := new(string) + if !r.Configuration.Embedding.OpenAICompatible.ModelName.IsUnknown() && !r.Configuration.Embedding.OpenAICompatible.ModelName.IsNull() { + *modelName = r.Configuration.Embedding.OpenAICompatible.ModelName.ValueString() + } else { + modelName = nil + } + destinationPgvectorOpenAICompatible = &shared.DestinationPgvectorOpenAICompatible{ + APIKey: apiKey, + BaseURL: baseURL, + Dimensions: dimensions, + ModelName: modelName, + } + } + if destinationPgvectorOpenAICompatible != nil { + embedding = shared.DestinationPgvectorEmbedding{ + DestinationPgvectorOpenAICompatible: destinationPgvectorOpenAICompatible, + } + } + password := r.Configuration.Indexing.Credentials.Password.ValueString() + credentials := shared.DestinationPgvectorCredentials{ + Password: password, + } + database := r.Configuration.Indexing.Database.ValueString() + defaultSchema := r.Configuration.Indexing.DefaultSchema.ValueString() + host := r.Configuration.Indexing.Host.ValueString() + port := r.Configuration.Indexing.Port.ValueInt64() + username := r.Configuration.Indexing.Username.ValueString() + indexing := shared.DestinationPgvectorPostgresConnection{ + Credentials: credentials, + Database: database, + DefaultSchema: defaultSchema, + Host: host, + Port: port, + Username: username, + } + omitRawText := new(bool) + if !r.Configuration.OmitRawText.IsUnknown() && !r.Configuration.OmitRawText.IsNull() { + *omitRawText = r.Configuration.OmitRawText.ValueBool() + } else { + omitRawText = nil + } + 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 fieldNameMappings []shared.DestinationPgvectorFieldNameMappingConfigModel = []shared.DestinationPgvectorFieldNameMappingConfigModel{} + for _, fieldNameMappingsItem := range r.Configuration.Processing.FieldNameMappings { + fromField := fieldNameMappingsItem.FromField.ValueString() + toField := fieldNameMappingsItem.ToField.ValueString() + fieldNameMappings = append(fieldNameMappings, shared.DestinationPgvectorFieldNameMappingConfigModel{ + FromField: fromField, + ToField: toField, + }) + } + var metadataFields []string = []string{} + for _, metadataFieldsItem := range r.Configuration.Processing.MetadataFields { + metadataFields = append(metadataFields, metadataFieldsItem.ValueString()) + } + var textFields []string = []string{} + for _, textFieldsItem := range r.Configuration.Processing.TextFields { + textFields = append(textFields, textFieldsItem.ValueString()) + } + var textSplitter *shared.DestinationPgvectorTextSplitter + if r.Configuration.Processing.TextSplitter != nil { + var destinationPgvectorBySeparator *shared.DestinationPgvectorBySeparator + if r.Configuration.Processing.TextSplitter.BySeparator != nil { + keepSeparator := new(bool) + if !r.Configuration.Processing.TextSplitter.BySeparator.KeepSeparator.IsUnknown() && !r.Configuration.Processing.TextSplitter.BySeparator.KeepSeparator.IsNull() { + *keepSeparator = r.Configuration.Processing.TextSplitter.BySeparator.KeepSeparator.ValueBool() + } else { + keepSeparator = nil + } + var separators []string = []string{} + for _, separatorsItem := range r.Configuration.Processing.TextSplitter.BySeparator.Separators { + separators = append(separators, separatorsItem.ValueString()) + } + destinationPgvectorBySeparator = &shared.DestinationPgvectorBySeparator{ + KeepSeparator: keepSeparator, + Separators: separators, + } + } + if destinationPgvectorBySeparator != nil { + textSplitter = &shared.DestinationPgvectorTextSplitter{ + DestinationPgvectorBySeparator: destinationPgvectorBySeparator, + } + } + var destinationPgvectorByMarkdownHeader *shared.DestinationPgvectorByMarkdownHeader + if r.Configuration.Processing.TextSplitter.ByMarkdownHeader != nil { + splitLevel := new(int64) + if !r.Configuration.Processing.TextSplitter.ByMarkdownHeader.SplitLevel.IsUnknown() && !r.Configuration.Processing.TextSplitter.ByMarkdownHeader.SplitLevel.IsNull() { + *splitLevel = r.Configuration.Processing.TextSplitter.ByMarkdownHeader.SplitLevel.ValueInt64() + } else { + splitLevel = nil + } + destinationPgvectorByMarkdownHeader = &shared.DestinationPgvectorByMarkdownHeader{ + SplitLevel: splitLevel, + } + } + if destinationPgvectorByMarkdownHeader != nil { + textSplitter = &shared.DestinationPgvectorTextSplitter{ + DestinationPgvectorByMarkdownHeader: destinationPgvectorByMarkdownHeader, + } + } + var destinationPgvectorByProgrammingLanguage *shared.DestinationPgvectorByProgrammingLanguage + if r.Configuration.Processing.TextSplitter.ByProgrammingLanguage != nil { + language := shared.DestinationPgvectorLanguage(r.Configuration.Processing.TextSplitter.ByProgrammingLanguage.Language.ValueString()) + destinationPgvectorByProgrammingLanguage = &shared.DestinationPgvectorByProgrammingLanguage{ + Language: language, + } + } + if destinationPgvectorByProgrammingLanguage != nil { + textSplitter = &shared.DestinationPgvectorTextSplitter{ + DestinationPgvectorByProgrammingLanguage: destinationPgvectorByProgrammingLanguage, + } + } + } + processing := shared.DestinationPgvectorProcessingConfigModel{ + ChunkOverlap: chunkOverlap, + ChunkSize: chunkSize, + FieldNameMappings: fieldNameMappings, + MetadataFields: metadataFields, + TextFields: textFields, + TextSplitter: textSplitter, + } + configuration := shared.DestinationPgvector{ + Embedding: embedding, + Indexing: indexing, + OmitRawText: omitRawText, + 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.DestinationPgvectorCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *DestinationPgvectorResourceModel) 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 *DestinationPgvectorResourceModel) ToSharedDestinationPgvectorPutRequest() *shared.DestinationPgvectorPutRequest { + var embedding shared.DestinationPgvectorUpdateEmbedding + var destinationPgvectorUpdateOpenAI *shared.DestinationPgvectorUpdateOpenAI + if r.Configuration.Embedding.OpenAI != nil { + openaiKey := r.Configuration.Embedding.OpenAI.OpenaiKey.ValueString() + destinationPgvectorUpdateOpenAI = &shared.DestinationPgvectorUpdateOpenAI{ + OpenaiKey: openaiKey, + } + } + if destinationPgvectorUpdateOpenAI != nil { + embedding = shared.DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateOpenAI: destinationPgvectorUpdateOpenAI, + } + } + var destinationPgvectorUpdateCohere *shared.DestinationPgvectorUpdateCohere + if r.Configuration.Embedding.Cohere != nil { + cohereKey := r.Configuration.Embedding.Cohere.CohereKey.ValueString() + destinationPgvectorUpdateCohere = &shared.DestinationPgvectorUpdateCohere{ + CohereKey: cohereKey, + } + } + if destinationPgvectorUpdateCohere != nil { + embedding = shared.DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateCohere: destinationPgvectorUpdateCohere, + } + } + var destinationPgvectorUpdateFake *shared.DestinationPgvectorUpdateFake + if r.Configuration.Embedding.Fake != nil { + destinationPgvectorUpdateFake = &shared.DestinationPgvectorUpdateFake{} + } + if destinationPgvectorUpdateFake != nil { + embedding = shared.DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateFake: destinationPgvectorUpdateFake, + } + } + var destinationPgvectorUpdateAzureOpenAI *shared.DestinationPgvectorUpdateAzureOpenAI + if r.Configuration.Embedding.AzureOpenAI != nil { + apiBase := r.Configuration.Embedding.AzureOpenAI.APIBase.ValueString() + deployment := r.Configuration.Embedding.AzureOpenAI.Deployment.ValueString() + openaiKey1 := r.Configuration.Embedding.AzureOpenAI.OpenaiKey.ValueString() + destinationPgvectorUpdateAzureOpenAI = &shared.DestinationPgvectorUpdateAzureOpenAI{ + APIBase: apiBase, + Deployment: deployment, + OpenaiKey: openaiKey1, + } + } + if destinationPgvectorUpdateAzureOpenAI != nil { + embedding = shared.DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateAzureOpenAI: destinationPgvectorUpdateAzureOpenAI, + } + } + var destinationPgvectorUpdateOpenAICompatible *shared.DestinationPgvectorUpdateOpenAICompatible + if r.Configuration.Embedding.OpenAICompatible != nil { + apiKey := new(string) + if !r.Configuration.Embedding.OpenAICompatible.APIKey.IsUnknown() && !r.Configuration.Embedding.OpenAICompatible.APIKey.IsNull() { + *apiKey = r.Configuration.Embedding.OpenAICompatible.APIKey.ValueString() + } else { + apiKey = nil + } + baseURL := r.Configuration.Embedding.OpenAICompatible.BaseURL.ValueString() + dimensions := r.Configuration.Embedding.OpenAICompatible.Dimensions.ValueInt64() + modelName := new(string) + if !r.Configuration.Embedding.OpenAICompatible.ModelName.IsUnknown() && !r.Configuration.Embedding.OpenAICompatible.ModelName.IsNull() { + *modelName = r.Configuration.Embedding.OpenAICompatible.ModelName.ValueString() + } else { + modelName = nil + } + destinationPgvectorUpdateOpenAICompatible = &shared.DestinationPgvectorUpdateOpenAICompatible{ + APIKey: apiKey, + BaseURL: baseURL, + Dimensions: dimensions, + ModelName: modelName, + } + } + if destinationPgvectorUpdateOpenAICompatible != nil { + embedding = shared.DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateOpenAICompatible: destinationPgvectorUpdateOpenAICompatible, + } + } + password := r.Configuration.Indexing.Credentials.Password.ValueString() + credentials := shared.DestinationPgvectorUpdateCredentials{ + Password: password, + } + database := r.Configuration.Indexing.Database.ValueString() + defaultSchema := r.Configuration.Indexing.DefaultSchema.ValueString() + host := r.Configuration.Indexing.Host.ValueString() + port := r.Configuration.Indexing.Port.ValueInt64() + username := r.Configuration.Indexing.Username.ValueString() + indexing := shared.PostgresConnection{ + Credentials: credentials, + Database: database, + DefaultSchema: defaultSchema, + Host: host, + Port: port, + Username: username, + } + omitRawText := new(bool) + if !r.Configuration.OmitRawText.IsUnknown() && !r.Configuration.OmitRawText.IsNull() { + *omitRawText = r.Configuration.OmitRawText.ValueBool() + } else { + omitRawText = nil + } + 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 fieldNameMappings []shared.DestinationPgvectorUpdateFieldNameMappingConfigModel = []shared.DestinationPgvectorUpdateFieldNameMappingConfigModel{} + for _, fieldNameMappingsItem := range r.Configuration.Processing.FieldNameMappings { + fromField := fieldNameMappingsItem.FromField.ValueString() + toField := fieldNameMappingsItem.ToField.ValueString() + fieldNameMappings = append(fieldNameMappings, shared.DestinationPgvectorUpdateFieldNameMappingConfigModel{ + FromField: fromField, + ToField: toField, + }) + } + var metadataFields []string = []string{} + for _, metadataFieldsItem := range r.Configuration.Processing.MetadataFields { + metadataFields = append(metadataFields, metadataFieldsItem.ValueString()) + } + var textFields []string = []string{} + for _, textFieldsItem := range r.Configuration.Processing.TextFields { + textFields = append(textFields, textFieldsItem.ValueString()) + } + var textSplitter *shared.DestinationPgvectorUpdateTextSplitter + if r.Configuration.Processing.TextSplitter != nil { + var destinationPgvectorUpdateBySeparator *shared.DestinationPgvectorUpdateBySeparator + if r.Configuration.Processing.TextSplitter.BySeparator != nil { + keepSeparator := new(bool) + if !r.Configuration.Processing.TextSplitter.BySeparator.KeepSeparator.IsUnknown() && !r.Configuration.Processing.TextSplitter.BySeparator.KeepSeparator.IsNull() { + *keepSeparator = r.Configuration.Processing.TextSplitter.BySeparator.KeepSeparator.ValueBool() + } else { + keepSeparator = nil + } + var separators []string = []string{} + for _, separatorsItem := range r.Configuration.Processing.TextSplitter.BySeparator.Separators { + separators = append(separators, separatorsItem.ValueString()) + } + destinationPgvectorUpdateBySeparator = &shared.DestinationPgvectorUpdateBySeparator{ + KeepSeparator: keepSeparator, + Separators: separators, + } + } + if destinationPgvectorUpdateBySeparator != nil { + textSplitter = &shared.DestinationPgvectorUpdateTextSplitter{ + DestinationPgvectorUpdateBySeparator: destinationPgvectorUpdateBySeparator, + } + } + var destinationPgvectorUpdateByMarkdownHeader *shared.DestinationPgvectorUpdateByMarkdownHeader + if r.Configuration.Processing.TextSplitter.ByMarkdownHeader != nil { + splitLevel := new(int64) + if !r.Configuration.Processing.TextSplitter.ByMarkdownHeader.SplitLevel.IsUnknown() && !r.Configuration.Processing.TextSplitter.ByMarkdownHeader.SplitLevel.IsNull() { + *splitLevel = r.Configuration.Processing.TextSplitter.ByMarkdownHeader.SplitLevel.ValueInt64() + } else { + splitLevel = nil + } + destinationPgvectorUpdateByMarkdownHeader = &shared.DestinationPgvectorUpdateByMarkdownHeader{ + SplitLevel: splitLevel, + } + } + if destinationPgvectorUpdateByMarkdownHeader != nil { + textSplitter = &shared.DestinationPgvectorUpdateTextSplitter{ + DestinationPgvectorUpdateByMarkdownHeader: destinationPgvectorUpdateByMarkdownHeader, + } + } + var destinationPgvectorUpdateByProgrammingLanguage *shared.DestinationPgvectorUpdateByProgrammingLanguage + if r.Configuration.Processing.TextSplitter.ByProgrammingLanguage != nil { + language := shared.DestinationPgvectorUpdateLanguage(r.Configuration.Processing.TextSplitter.ByProgrammingLanguage.Language.ValueString()) + destinationPgvectorUpdateByProgrammingLanguage = &shared.DestinationPgvectorUpdateByProgrammingLanguage{ + Language: language, + } + } + if destinationPgvectorUpdateByProgrammingLanguage != nil { + textSplitter = &shared.DestinationPgvectorUpdateTextSplitter{ + DestinationPgvectorUpdateByProgrammingLanguage: destinationPgvectorUpdateByProgrammingLanguage, + } + } + } + processing := shared.DestinationPgvectorUpdateProcessingConfigModel{ + ChunkOverlap: chunkOverlap, + ChunkSize: chunkSize, + FieldNameMappings: fieldNameMappings, + MetadataFields: metadataFields, + TextFields: textFields, + TextSplitter: textSplitter, + } + configuration := shared.DestinationPgvectorUpdate{ + Embedding: embedding, + Indexing: indexing, + OmitRawText: omitRawText, + Processing: processing, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.DestinationPgvectorPutRequest{ + 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 4e6f4124a..4b1eff175 100644 --- a/internal/provider/destination_postgres_resource.go +++ b/internal/provider/destination_postgres_resource.go @@ -107,6 +107,12 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S Default: stringdefault.StaticString("public"), Description: `The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". Default: "public"`, }, + "ssl": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Encrypt data using SSL. When activating SSL, please select one of the connection modes. Default: false`, + }, "ssl_mode": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ diff --git a/internal/provider/destination_postgres_resource_sdk.go b/internal/provider/destination_postgres_resource_sdk.go index aadf6fe78..f17b9cb93 100644 --- a/internal/provider/destination_postgres_resource_sdk.go +++ b/internal/provider/destination_postgres_resource_sdk.go @@ -52,6 +52,12 @@ func (r *DestinationPostgresResourceModel) ToSharedDestinationPostgresCreateRequ } else { schema = nil } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var sslMode *shared.DestinationPostgresSSLModes if r.Configuration.SslMode != nil { var destinationPostgresDisable *shared.DestinationPostgresDisable @@ -202,6 +208,7 @@ func (r *DestinationPostgresResourceModel) ToSharedDestinationPostgresCreateRequ Port: port, RawDataSchema: rawDataSchema, Schema: schema, + Ssl: ssl, SslMode: sslMode, TunnelMethod: tunnelMethod, Username: username, @@ -277,6 +284,12 @@ func (r *DestinationPostgresResourceModel) ToSharedDestinationPostgresPutRequest } else { schema = nil } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var sslMode *shared.SSLModes if r.Configuration.SslMode != nil { var disable *shared.Disable @@ -427,6 +440,7 @@ func (r *DestinationPostgresResourceModel) ToSharedDestinationPostgresPutRequest Port: port, RawDataSchema: rawDataSchema, Schema: schema, + Ssl: ssl, SslMode: sslMode, TunnelMethod: tunnelMethod, Username: username, diff --git a/internal/provider/provider.go b/internal/provider/provider.go index e63aa4bdb..a327a24f3 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -136,7 +136,6 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewDestinationConvexResource, NewDestinationCustomResource, NewDestinationDatabricksResource, - NewDestinationDevNullResource, NewDestinationDuckdbResource, NewDestinationDynamodbResource, NewDestinationElasticsearchResource, @@ -149,6 +148,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewDestinationMssqlResource, NewDestinationMysqlResource, NewDestinationOracleResource, + NewDestinationPgvectorResource, NewDestinationPineconeResource, NewDestinationPostgresResource, NewDestinationPubsubResource, @@ -167,6 +167,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewDestinationWeaviateResource, NewDestinationYellowbrickResource, NewPermissionResource, + NewSource7shiftsResource, NewSourceAhaResource, NewSourceAirbyteResource, NewSourceAircallResource, @@ -176,6 +177,8 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceAmazonSqsResource, NewSourceAmplitudeResource, NewSourceApifyDatasetResource, + NewSourceAppcuesResource, + NewSourceAppfiguresResource, NewSourceAppfollowResource, NewSourceAsanaResource, NewSourceAuth0Resource, @@ -186,13 +189,20 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceBasecampResource, NewSourceBigqueryResource, NewSourceBingAdsResource, + NewSourceBitlyResource, NewSourceBraintreeResource, NewSourceBrazeResource, NewSourceBreezyHrResource, + NewSourceBrevoResource, + NewSourceBuildkiteResource, + NewSourceBuzzsproutResource, NewSourceCalendlyResource, + NewSourceCannyResource, NewSourceCartResource, + NewSourceChameleonResource, NewSourceChargebeeResource, NewSourceChartmogulResource, + NewSourceCimisResource, NewSourceClazarResource, NewSourceClickhouseResource, NewSourceClickupAPIResource, @@ -216,6 +226,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceDynamodbResource, NewSourceEmailoctopusResource, NewSourceExchangeRatesResource, + NewSourceEzofficeinventoryResource, NewSourceFacebookMarketingResource, NewSourceFakerResource, NewSourceFaunaResource, @@ -225,6 +236,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceFreshcallerResource, NewSourceFreshdeskResource, NewSourceFreshsalesResource, + NewSourceFrontResource, NewSourceGainsightPxResource, NewSourceGcsResource, NewSourceGetlagoResource, @@ -240,11 +252,14 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceGooglePagespeedInsightsResource, NewSourceGoogleSearchConsoleResource, NewSourceGoogleSheetsResource, + NewSourceGoogleTasksResource, NewSourceGoogleWebfontsResource, NewSourceGreenhouseResource, NewSourceGridlyResource, + NewSourceGuruResource, NewSourceHardcodedRecordsResource, NewSourceHarvestResource, + NewSourceHeightResource, NewSourceHibobResource, NewSourceHighLevelResource, NewSourceHubplannerResource, @@ -256,6 +271,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceIp2whoisResource, NewSourceIterableResource, NewSourceJiraResource, + NewSourceJotformResource, NewSourceK6CloudResource, NewSourceKlarnaResource, NewSourceKlaviyoResource, @@ -287,6 +303,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceNetsuiteResource, NewSourceNorthpassLmsResource, NewSourceNotionResource, + NewSourceNylasResource, NewSourceNytimesResource, NewSourceOktaResource, NewSourceOmnisendResource, @@ -302,8 +319,10 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourcePennylaneResource, NewSourcePersistiqResource, NewSourcePexelsAPIResource, + NewSourcePicqerResource, NewSourcePinterestResource, NewSourcePipedriveResource, + NewSourcePiwikResource, NewSourcePlanhatResource, NewSourcePocketResource, NewSourcePokeapiResource, @@ -312,6 +331,8 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourcePosthogResource, NewSourcePostmarkappResource, NewSourcePrestashopResource, + NewSourceProductboardResource, + NewSourceProductiveResource, NewSourcePypiResource, NewSourceQualarooResource, NewSourceRailzResource, @@ -338,6 +359,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceSftpResource, NewSourceSftpBulkResource, NewSourceShopifyResource, + NewSourceShortcutResource, NewSourceShortioResource, NewSourceSlackResource, NewSourceSmailyResource, @@ -352,6 +374,8 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceStripeResource, NewSourceSurveymonkeyResource, NewSourceSurveySparrowResource, + NewSourceSurvicateResource, + NewSourceTeamworkResource, NewSourceTempoResource, NewSourceTheGuardianAPIResource, NewSourceTiktokMarketingResource, @@ -365,6 +389,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceUsCensusResource, NewSourceVantageResource, NewSourceWebflowResource, + NewSourceWhenIWorkResource, NewSourceWhiskyHunterResource, NewSourceWikipediaPageviewsResource, NewSourceWoocommerceResource, @@ -373,7 +398,6 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceYotpoResource, NewSourceYoutubeAnalyticsResource, NewSourceZendeskChatResource, - NewSourceZendeskSellResource, NewSourceZendeskSunshineResource, NewSourceZendeskSupportResource, NewSourceZendeskTalkResource, @@ -395,7 +419,6 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewDestinationConvexDataSource, NewDestinationCustomDataSource, NewDestinationDatabricksDataSource, - NewDestinationDevNullDataSource, NewDestinationDuckdbDataSource, NewDestinationDynamodbDataSource, NewDestinationElasticsearchDataSource, @@ -408,6 +431,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewDestinationMssqlDataSource, NewDestinationMysqlDataSource, NewDestinationOracleDataSource, + NewDestinationPgvectorDataSource, NewDestinationPineconeDataSource, NewDestinationPostgresDataSource, NewDestinationPubsubDataSource, @@ -426,6 +450,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewDestinationWeaviateDataSource, NewDestinationYellowbrickDataSource, NewPermissionDataSource, + NewSource7shiftsDataSource, NewSourceAhaDataSource, NewSourceAirbyteDataSource, NewSourceAircallDataSource, @@ -435,6 +460,8 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceAmazonSqsDataSource, NewSourceAmplitudeDataSource, NewSourceApifyDatasetDataSource, + NewSourceAppcuesDataSource, + NewSourceAppfiguresDataSource, NewSourceAppfollowDataSource, NewSourceAsanaDataSource, NewSourceAuth0DataSource, @@ -445,13 +472,20 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceBasecampDataSource, NewSourceBigqueryDataSource, NewSourceBingAdsDataSource, + NewSourceBitlyDataSource, NewSourceBraintreeDataSource, NewSourceBrazeDataSource, NewSourceBreezyHrDataSource, + NewSourceBrevoDataSource, + NewSourceBuildkiteDataSource, + NewSourceBuzzsproutDataSource, NewSourceCalendlyDataSource, + NewSourceCannyDataSource, NewSourceCartDataSource, + NewSourceChameleonDataSource, NewSourceChargebeeDataSource, NewSourceChartmogulDataSource, + NewSourceCimisDataSource, NewSourceClazarDataSource, NewSourceClickhouseDataSource, NewSourceClickupAPIDataSource, @@ -475,6 +509,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceDynamodbDataSource, NewSourceEmailoctopusDataSource, NewSourceExchangeRatesDataSource, + NewSourceEzofficeinventoryDataSource, NewSourceFacebookMarketingDataSource, NewSourceFakerDataSource, NewSourceFaunaDataSource, @@ -484,6 +519,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceFreshcallerDataSource, NewSourceFreshdeskDataSource, NewSourceFreshsalesDataSource, + NewSourceFrontDataSource, NewSourceGainsightPxDataSource, NewSourceGcsDataSource, NewSourceGetlagoDataSource, @@ -499,11 +535,14 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceGooglePagespeedInsightsDataSource, NewSourceGoogleSearchConsoleDataSource, NewSourceGoogleSheetsDataSource, + NewSourceGoogleTasksDataSource, NewSourceGoogleWebfontsDataSource, NewSourceGreenhouseDataSource, NewSourceGridlyDataSource, + NewSourceGuruDataSource, NewSourceHardcodedRecordsDataSource, NewSourceHarvestDataSource, + NewSourceHeightDataSource, NewSourceHibobDataSource, NewSourceHighLevelDataSource, NewSourceHubplannerDataSource, @@ -515,6 +554,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceIp2whoisDataSource, NewSourceIterableDataSource, NewSourceJiraDataSource, + NewSourceJotformDataSource, NewSourceK6CloudDataSource, NewSourceKlarnaDataSource, NewSourceKlaviyoDataSource, @@ -546,6 +586,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceNetsuiteDataSource, NewSourceNorthpassLmsDataSource, NewSourceNotionDataSource, + NewSourceNylasDataSource, NewSourceNytimesDataSource, NewSourceOktaDataSource, NewSourceOmnisendDataSource, @@ -561,8 +602,10 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourcePennylaneDataSource, NewSourcePersistiqDataSource, NewSourcePexelsAPIDataSource, + NewSourcePicqerDataSource, NewSourcePinterestDataSource, NewSourcePipedriveDataSource, + NewSourcePiwikDataSource, NewSourcePlanhatDataSource, NewSourcePocketDataSource, NewSourcePokeapiDataSource, @@ -571,6 +614,8 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourcePosthogDataSource, NewSourcePostmarkappDataSource, NewSourcePrestashopDataSource, + NewSourceProductboardDataSource, + NewSourceProductiveDataSource, NewSourcePypiDataSource, NewSourceQualarooDataSource, NewSourceRailzDataSource, @@ -597,6 +642,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceSftpDataSource, NewSourceSftpBulkDataSource, NewSourceShopifyDataSource, + NewSourceShortcutDataSource, NewSourceShortioDataSource, NewSourceSlackDataSource, NewSourceSmailyDataSource, @@ -611,6 +657,8 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceStripeDataSource, NewSourceSurveymonkeyDataSource, NewSourceSurveySparrowDataSource, + NewSourceSurvicateDataSource, + NewSourceTeamworkDataSource, NewSourceTempoDataSource, NewSourceTheGuardianAPIDataSource, NewSourceTiktokMarketingDataSource, @@ -624,6 +672,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceUsCensusDataSource, NewSourceVantageDataSource, NewSourceWebflowDataSource, + NewSourceWhenIWorkDataSource, NewSourceWhiskyHunterDataSource, NewSourceWikipediaPageviewsDataSource, NewSourceWoocommerceDataSource, @@ -632,7 +681,6 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceYotpoDataSource, NewSourceYoutubeAnalyticsDataSource, NewSourceZendeskChatDataSource, - NewSourceZendeskSellDataSource, NewSourceZendeskSunshineDataSource, NewSourceZendeskSupportDataSource, NewSourceZendeskTalkDataSource, diff --git a/internal/provider/source_7shifts_data_source.go b/internal/provider/source_7shifts_data_source.go new file mode 100644 index 000000000..9c4211790 --- /dev/null +++ b/internal/provider/source_7shifts_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 = &Source7shiftsDataSource{} +var _ datasource.DataSourceWithConfigure = &Source7shiftsDataSource{} + +func NewSource7shiftsDataSource() datasource.DataSource { + return &Source7shiftsDataSource{} +} + +// Source7shiftsDataSource is the data source implementation. +type Source7shiftsDataSource struct { + client *sdk.SDK +} + +// Source7shiftsDataSourceModel describes the data model. +type Source7shiftsDataSourceModel 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 *Source7shiftsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_7shifts" +} + +// Schema defines the schema for the data source. +func (r *Source7shiftsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "Source7shifts 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 *Source7shiftsDataSource) 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 *Source7shiftsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *Source7shiftsDataSourceModel + 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.GetSource7shiftsRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSource7shifts(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_7shifts_data_source_sdk.go b/internal/provider/source_7shifts_data_source_sdk.go new file mode 100644 index 000000000..6ba9d6892 --- /dev/null +++ b/internal/provider/source_7shifts_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 *Source7shiftsDataSourceModel) 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_zendesksell_resource.go b/internal/provider/source_7shifts_resource.go similarity index 77% rename from internal/provider/source_zendesksell_resource.go rename to internal/provider/source_7shifts_resource.go index 5a377ad89..ead2a99fd 100644 --- a/internal/provider/source_zendesksell_resource.go +++ b/internal/provider/source_7shifts_resource.go @@ -10,31 +10,33 @@ 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/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 = &SourceZendeskSellResource{} -var _ resource.ResourceWithImportState = &SourceZendeskSellResource{} +var _ resource.Resource = &Source7shiftsResource{} +var _ resource.ResourceWithImportState = &Source7shiftsResource{} -func NewSourceZendeskSellResource() resource.Resource { - return &SourceZendeskSellResource{} +func NewSource7shiftsResource() resource.Resource { + return &Source7shiftsResource{} } -// SourceZendeskSellResource defines the resource implementation. -type SourceZendeskSellResource struct { +// Source7shiftsResource defines the resource implementation. +type Source7shiftsResource struct { client *sdk.SDK } -// SourceZendeskSellResourceModel describes the resource data model. -type SourceZendeskSellResourceModel struct { - Configuration tfTypes.SourceK6Cloud `tfsdk:"configuration"` +// Source7shiftsResourceModel describes the resource data model. +type Source7shiftsResourceModel struct { + Configuration tfTypes.Source7shifts `tfsdk:"configuration"` DefinitionID types.String `tfsdk:"definition_id"` Name types.String `tfsdk:"name"` SecretID types.String `tfsdk:"secret_id"` @@ -43,13 +45,13 @@ type SourceZendeskSellResourceModel struct { WorkspaceID types.String `tfsdk:"workspace_id"` } -func (r *SourceZendeskSellResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_zendesk_sell" +func (r *Source7shiftsResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_7shifts" } -func (r *SourceZendeskSellResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { +func (r *Source7shiftsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceZendeskSell Resource", + MarkdownDescription: "Source7shifts Resource", Attributes: map[string]schema.Attribute{ "configuration": schema.SingleNestedAttribute{ PlanModifiers: []planmodifier.Object{ @@ -57,10 +59,16 @@ func (r *SourceZendeskSellResource) Schema(ctx context.Context, req resource.Sch }, Required: true, Attributes: map[string]schema.Attribute{ - "api_token": schema.StringAttribute{ + "access_token": schema.StringAttribute{ Required: true, Sensitive: true, - Description: `The API token for authenticating to Zendesk Sell`, + Description: `Access token to use for authentication. Generate it in the 7shifts Developer Tools.`, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, }, }, }, @@ -107,7 +115,7 @@ func (r *SourceZendeskSellResource) Schema(ctx context.Context, req resource.Sch } } -func (r *SourceZendeskSellResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { +func (r *Source7shiftsResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -127,8 +135,8 @@ func (r *SourceZendeskSellResource) Configure(ctx context.Context, req resource. r.client = client } -func (r *SourceZendeskSellResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *SourceZendeskSellResourceModel +func (r *Source7shiftsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *Source7shiftsResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -145,8 +153,8 @@ func (r *SourceZendeskSellResource) Create(ctx context.Context, req resource.Cre return } - request := data.ToSharedSourceZendeskSellCreateRequest() - res, err := r.client.Sources.CreateSourceZendeskSell(ctx, request) + request := data.ToSharedSource7shiftsCreateRequest() + res, err := r.client.Sources.CreateSource7shifts(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -169,10 +177,10 @@ func (r *SourceZendeskSellResource) Create(ctx context.Context, req resource.Cre data.RefreshFromSharedSourceResponse(res.SourceResponse) refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceID := data.SourceID.ValueString() - request1 := operations.GetSourceZendeskSellRequest{ + request1 := operations.GetSource7shiftsRequest{ SourceID: sourceID, } - res1, err := r.client.Sources.GetSourceZendeskSell(ctx, request1) + res1, err := r.client.Sources.GetSource7shifts(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -199,8 +207,8 @@ func (r *SourceZendeskSellResource) Create(ctx context.Context, req resource.Cre resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceZendeskSellResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *SourceZendeskSellResourceModel +func (r *Source7shiftsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *Source7shiftsResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -218,10 +226,10 @@ func (r *SourceZendeskSellResource) Read(ctx context.Context, req resource.ReadR } sourceID := data.SourceID.ValueString() - request := operations.GetSourceZendeskSellRequest{ + request := operations.GetSource7shiftsRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceZendeskSell(ctx, request) + res, err := r.client.Sources.GetSource7shifts(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -251,8 +259,8 @@ func (r *SourceZendeskSellResource) Read(ctx context.Context, req resource.ReadR resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceZendeskSellResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *SourceZendeskSellResourceModel +func (r *Source7shiftsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *Source7shiftsResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -265,13 +273,13 @@ func (r *SourceZendeskSellResource) Update(ctx context.Context, req resource.Upd return } - sourceZendeskSellPutRequest := data.ToSharedSourceZendeskSellPutRequest() + source7shiftsPutRequest := data.ToSharedSource7shiftsPutRequest() sourceID := data.SourceID.ValueString() - request := operations.PutSourceZendeskSellRequest{ - SourceZendeskSellPutRequest: sourceZendeskSellPutRequest, - SourceID: sourceID, + request := operations.PutSource7shiftsRequest{ + Source7shiftsPutRequest: source7shiftsPutRequest, + SourceID: sourceID, } - res, err := r.client.Sources.PutSourceZendeskSell(ctx, request) + res, err := r.client.Sources.PutSource7shifts(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -289,10 +297,10 @@ func (r *SourceZendeskSellResource) Update(ctx context.Context, req resource.Upd } refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceId1 := data.SourceID.ValueString() - request1 := operations.GetSourceZendeskSellRequest{ + request1 := operations.GetSource7shiftsRequest{ SourceID: sourceId1, } - res1, err := r.client.Sources.GetSourceZendeskSell(ctx, request1) + res1, err := r.client.Sources.GetSource7shifts(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -319,8 +327,8 @@ func (r *SourceZendeskSellResource) Update(ctx context.Context, req resource.Upd resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceZendeskSellResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *SourceZendeskSellResourceModel +func (r *Source7shiftsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *Source7shiftsResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -338,10 +346,10 @@ func (r *SourceZendeskSellResource) Delete(ctx context.Context, req resource.Del } sourceID := data.SourceID.ValueString() - request := operations.DeleteSourceZendeskSellRequest{ + request := operations.DeleteSource7shiftsRequest{ SourceID: sourceID, } - res, err := r.client.Sources.DeleteSourceZendeskSell(ctx, request) + res, err := r.client.Sources.DeleteSource7shifts(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -360,6 +368,6 @@ func (r *SourceZendeskSellResource) Delete(ctx context.Context, req resource.Del } -func (r *SourceZendeskSellResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { +func (r *Source7shiftsResource) 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_7shifts_resource_sdk.go b/internal/provider/source_7shifts_resource_sdk.go new file mode 100644 index 000000000..d6713415e --- /dev/null +++ b/internal/provider/source_7shifts_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 *Source7shiftsResourceModel) ToSharedSource7shiftsCreateRequest() *shared.Source7shiftsCreateRequest { + accessToken := r.Configuration.AccessToken.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.Source7shifts{ + AccessToken: accessToken, + 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.Source7shiftsCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *Source7shiftsResourceModel) 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 *Source7shiftsResourceModel) ToSharedSource7shiftsPutRequest() *shared.Source7shiftsPutRequest { + accessToken := r.Configuration.AccessToken.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.Source7shiftsUpdate{ + AccessToken: accessToken, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.Source7shiftsPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_amazonsellerpartner_resource.go b/internal/provider/source_amazonsellerpartner_resource.go index dd6e747f9..4fa34e250 100644 --- a/internal/provider/source_amazonsellerpartner_resource.go +++ b/internal/provider/source_amazonsellerpartner_resource.go @@ -174,7 +174,7 @@ func (r *SourceAmazonSellerPartnerResource) Schema(ctx context.Context, req reso }, "report_name": schema.StringAttribute{ Required: true, - Description: `must be one of ["GET_AFN_INVENTORY_DATA", "GET_AFN_INVENTORY_DATA_BY_COUNTRY", "GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL", "GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA", "GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA", "GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA", "GET_FBA_INVENTORY_PLANNING_DATA", "GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA", "GET_FBA_REIMBURSEMENTS_DATA", "GET_FBA_SNS_FORECAST_DATA", "GET_FBA_SNS_PERFORMANCE_DATA", "GET_FBA_STORAGE_FEE_CHARGES_DATA", "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING", "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL", "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", "GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE", "GET_FLAT_FILE_OPEN_LISTINGS_DATA", "GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE", "GET_LEDGER_DETAIL_VIEW_DATA", "GET_LEDGER_SUMMARY_VIEW_DATA", "GET_MERCHANT_CANCELLED_LISTINGS_DATA", "GET_MERCHANT_LISTINGS_ALL_DATA", "GET_MERCHANT_LISTINGS_DATA", "GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT", "GET_MERCHANT_LISTINGS_INACTIVE_DATA", "GET_MERCHANTS_LISTINGS_FYP_REPORT", "GET_ORDER_REPORT_DATA_SHIPPING", "GET_RESTOCK_INVENTORY_RECOMMENDATIONS_REPORT", "GET_SELLER_FEEDBACK_DATA", "GET_STRANDED_INVENTORY_UI_DATA", "GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE", "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", "GET_XML_BROWSE_TREE_DATA", "GET_VENDOR_REAL_TIME_INVENTORY_REPORT"]`, + Description: `must be one of ["GET_AFN_INVENTORY_DATA", "GET_AFN_INVENTORY_DATA_BY_COUNTRY", "GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL", "GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA", "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA", "GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA", "GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA", "GET_FBA_INVENTORY_PLANNING_DATA", "GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA", "GET_FBA_REIMBURSEMENTS_DATA", "GET_FBA_SNS_FORECAST_DATA", "GET_FBA_SNS_PERFORMANCE_DATA", "GET_FBA_STORAGE_FEE_CHARGES_DATA", "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING", "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL", "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", "GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE", "GET_FLAT_FILE_OPEN_LISTINGS_DATA", "GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE", "GET_LEDGER_DETAIL_VIEW_DATA", "GET_LEDGER_SUMMARY_VIEW_DATA", "GET_MERCHANT_CANCELLED_LISTINGS_DATA", "GET_MERCHANT_LISTINGS_ALL_DATA", "GET_MERCHANT_LISTINGS_DATA", "GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT", "GET_MERCHANT_LISTINGS_INACTIVE_DATA", "GET_MERCHANTS_LISTINGS_FYP_REPORT", "GET_ORDER_REPORT_DATA_SHIPPING", "GET_RESTOCK_INVENTORY_RECOMMENDATIONS_REPORT", "GET_SELLER_FEEDBACK_DATA", "GET_STRANDED_INVENTORY_UI_DATA", "GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE", "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", "GET_XML_BROWSE_TREE_DATA", "GET_VENDOR_REAL_TIME_INVENTORY_REPORT", "GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT", "GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT", "GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT", "GET_SALES_AND_TRAFFIC_REPORT", "GET_VENDOR_SALES_REPORT", "GET_VENDOR_INVENTORY_REPORT", "GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT", "GET_VENDOR_TRAFFIC_REPORT"]`, Validators: []validator.String{ stringvalidator.OneOf( "GET_AFN_INVENTORY_DATA", @@ -214,6 +214,14 @@ func (r *SourceAmazonSellerPartnerResource) Schema(ctx context.Context, req reso "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", "GET_XML_BROWSE_TREE_DATA", "GET_VENDOR_REAL_TIME_INVENTORY_REPORT", + "GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT", + "GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT", + "GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT", + "GET_SALES_AND_TRAFFIC_REPORT", + "GET_VENDOR_SALES_REPORT", + "GET_VENDOR_INVENTORY_REPORT", + "GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT", + "GET_VENDOR_TRAFFIC_REPORT", ), }, }, diff --git a/internal/provider/source_appcues_data_source.go b/internal/provider/source_appcues_data_source.go new file mode 100644 index 000000000..b9d70bbed --- /dev/null +++ b/internal/provider/source_appcues_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 = &SourceAppcuesDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceAppcuesDataSource{} + +func NewSourceAppcuesDataSource() datasource.DataSource { + return &SourceAppcuesDataSource{} +} + +// SourceAppcuesDataSource is the data source implementation. +type SourceAppcuesDataSource struct { + client *sdk.SDK +} + +// SourceAppcuesDataSourceModel describes the data model. +type SourceAppcuesDataSourceModel 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 *SourceAppcuesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_appcues" +} + +// Schema defines the schema for the data source. +func (r *SourceAppcuesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceAppcues 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 *SourceAppcuesDataSource) 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 *SourceAppcuesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceAppcuesDataSourceModel + 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.GetSourceAppcuesRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceAppcues(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_appcues_data_source_sdk.go b/internal/provider/source_appcues_data_source_sdk.go new file mode 100644 index 000000000..eccb95a4c --- /dev/null +++ b/internal/provider/source_appcues_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 *SourceAppcuesDataSourceModel) 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_appcues_resource.go b/internal/provider/source_appcues_resource.go new file mode 100644 index 000000000..a9a44471c --- /dev/null +++ b/internal/provider/source_appcues_resource.go @@ -0,0 +1,379 @@ +// 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 = &SourceAppcuesResource{} +var _ resource.ResourceWithImportState = &SourceAppcuesResource{} + +func NewSourceAppcuesResource() resource.Resource { + return &SourceAppcuesResource{} +} + +// SourceAppcuesResource defines the resource implementation. +type SourceAppcuesResource struct { + client *sdk.SDK +} + +// SourceAppcuesResourceModel describes the resource data model. +type SourceAppcuesResourceModel struct { + Configuration tfTypes.SourceAppcues `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 *SourceAppcuesResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_appcues" +} + +func (r *SourceAppcuesResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceAppcues 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, + Description: `Account ID of Appcues found in account settings page (https://studio.appcues.com/settings/account)`, + }, + "password": schema.StringAttribute{ + Optional: true, + Sensitive: true, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "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 *SourceAppcuesResource) 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 *SourceAppcuesResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceAppcuesResourceModel + 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.ToSharedSourceAppcuesCreateRequest() + res, err := r.client.Sources.CreateSourceAppcues(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.GetSourceAppcuesRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceAppcues(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 *SourceAppcuesResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceAppcuesResourceModel + 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.GetSourceAppcuesRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceAppcues(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 *SourceAppcuesResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceAppcuesResourceModel + 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 + } + + sourceAppcuesPutRequest := data.ToSharedSourceAppcuesPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceAppcuesRequest{ + SourceAppcuesPutRequest: sourceAppcuesPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceAppcues(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.GetSourceAppcuesRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceAppcues(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 *SourceAppcuesResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceAppcuesResourceModel + 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.DeleteSourceAppcuesRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceAppcues(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 *SourceAppcuesResource) 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_appcues_resource_sdk.go b/internal/provider/source_appcues_resource_sdk.go new file mode 100644 index 000000000..a177c571f --- /dev/null +++ b/internal/provider/source_appcues_resource_sdk.go @@ -0,0 +1,84 @@ +// 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 *SourceAppcuesResourceModel) ToSharedSourceAppcuesCreateRequest() *shared.SourceAppcuesCreateRequest { + accountID := r.Configuration.AccountID.ValueString() + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + username := r.Configuration.Username.ValueString() + configuration := shared.SourceAppcues{ + AccountID: accountID, + Password: password, + StartDate: startDate, + 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.SourceAppcuesCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceAppcuesResourceModel) 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 *SourceAppcuesResourceModel) ToSharedSourceAppcuesPutRequest() *shared.SourceAppcuesPutRequest { + accountID := r.Configuration.AccountID.ValueString() + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + username := r.Configuration.Username.ValueString() + configuration := shared.SourceAppcuesUpdate{ + AccountID: accountID, + Password: password, + StartDate: startDate, + Username: username, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceAppcuesPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_appfigures_data_source.go b/internal/provider/source_appfigures_data_source.go new file mode 100644 index 000000000..a65bf7a5f --- /dev/null +++ b/internal/provider/source_appfigures_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 = &SourceAppfiguresDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceAppfiguresDataSource{} + +func NewSourceAppfiguresDataSource() datasource.DataSource { + return &SourceAppfiguresDataSource{} +} + +// SourceAppfiguresDataSource is the data source implementation. +type SourceAppfiguresDataSource struct { + client *sdk.SDK +} + +// SourceAppfiguresDataSourceModel describes the data model. +type SourceAppfiguresDataSourceModel 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 *SourceAppfiguresDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_appfigures" +} + +// Schema defines the schema for the data source. +func (r *SourceAppfiguresDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceAppfigures 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 *SourceAppfiguresDataSource) 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 *SourceAppfiguresDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceAppfiguresDataSourceModel + 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.GetSourceAppfiguresRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceAppfigures(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_appfigures_data_source_sdk.go b/internal/provider/source_appfigures_data_source_sdk.go new file mode 100644 index 000000000..ea7838167 --- /dev/null +++ b/internal/provider/source_appfigures_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 *SourceAppfiguresDataSourceModel) 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_appfigures_resource.go b/internal/provider/source_appfigures_resource.go new file mode 100644 index 000000000..e28f7213f --- /dev/null +++ b/internal/provider/source_appfigures_resource.go @@ -0,0 +1,394 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + speakeasy_objectplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/objectplanmodifier" + speakeasy_stringplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/stringplanmodifier" + tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/airbytehq/terraform-provider-airbyte/internal/validators" + "github.com/hashicorp/terraform-plugin-framework-validators/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/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 = &SourceAppfiguresResource{} +var _ resource.ResourceWithImportState = &SourceAppfiguresResource{} + +func NewSourceAppfiguresResource() resource.Resource { + return &SourceAppfiguresResource{} +} + +// SourceAppfiguresResource defines the resource implementation. +type SourceAppfiguresResource struct { + client *sdk.SDK +} + +// SourceAppfiguresResourceModel describes the resource data model. +type SourceAppfiguresResourceModel struct { + Configuration tfTypes.SourceAppfigures `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 *SourceAppfiguresResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_appfigures" +} + +func (r *SourceAppfiguresResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceAppfigures 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, + }, + "group_by": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("product"), + Description: `Category term for grouping the search results. must be one of ["network", "product", "country", "date"]; Default: "product"`, + Validators: []validator.String{ + stringvalidator.OneOf( + "network", + "product", + "country", + "date", + ), + }, + }, + "search_store": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("apple"), + Description: `The store which needs to be searched in streams. Default: "apple"`, + }, + "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 *SourceAppfiguresResource) 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 *SourceAppfiguresResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceAppfiguresResourceModel + 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.ToSharedSourceAppfiguresCreateRequest() + res, err := r.client.Sources.CreateSourceAppfigures(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.GetSourceAppfiguresRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceAppfigures(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 *SourceAppfiguresResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceAppfiguresResourceModel + 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.GetSourceAppfiguresRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceAppfigures(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 *SourceAppfiguresResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceAppfiguresResourceModel + 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 + } + + sourceAppfiguresPutRequest := data.ToSharedSourceAppfiguresPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceAppfiguresRequest{ + SourceAppfiguresPutRequest: sourceAppfiguresPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceAppfigures(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.GetSourceAppfiguresRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceAppfigures(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 *SourceAppfiguresResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceAppfiguresResourceModel + 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.DeleteSourceAppfiguresRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceAppfigures(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 *SourceAppfiguresResource) 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_appfigures_resource_sdk.go b/internal/provider/source_appfigures_resource_sdk.go new file mode 100644 index 000000000..836d10eb3 --- /dev/null +++ b/internal/provider/source_appfigures_resource_sdk.go @@ -0,0 +1,94 @@ +// 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 *SourceAppfiguresResourceModel) ToSharedSourceAppfiguresCreateRequest() *shared.SourceAppfiguresCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + groupBy := new(shared.SourceAppfiguresGroupBy) + if !r.Configuration.GroupBy.IsUnknown() && !r.Configuration.GroupBy.IsNull() { + *groupBy = shared.SourceAppfiguresGroupBy(r.Configuration.GroupBy.ValueString()) + } else { + groupBy = nil + } + searchStore := new(string) + if !r.Configuration.SearchStore.IsUnknown() && !r.Configuration.SearchStore.IsNull() { + *searchStore = r.Configuration.SearchStore.ValueString() + } else { + searchStore = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceAppfigures{ + APIKey: apiKey, + GroupBy: groupBy, + SearchStore: searchStore, + 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.SourceAppfiguresCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceAppfiguresResourceModel) 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 *SourceAppfiguresResourceModel) ToSharedSourceAppfiguresPutRequest() *shared.SourceAppfiguresPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + groupBy := new(shared.GroupBy) + if !r.Configuration.GroupBy.IsUnknown() && !r.Configuration.GroupBy.IsNull() { + *groupBy = shared.GroupBy(r.Configuration.GroupBy.ValueString()) + } else { + groupBy = nil + } + searchStore := new(string) + if !r.Configuration.SearchStore.IsUnknown() && !r.Configuration.SearchStore.IsNull() { + *searchStore = r.Configuration.SearchStore.ValueString() + } else { + searchStore = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceAppfiguresUpdate{ + APIKey: apiKey, + GroupBy: groupBy, + SearchStore: searchStore, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceAppfiguresPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_asana_resource.go b/internal/provider/source_asana_resource.go index 5f31e8f76..9e5b37f50 100644 --- a/internal/provider/source_asana_resource.go +++ b/internal/provider/source_asana_resource.go @@ -115,10 +115,6 @@ func (r *SourceAsanaResource) Schema(ctx context.Context, req resource.SchemaReq listvalidator.ValueStringsAre(validators.IsValidJSON()), }, }, - "test_mode": schema.BoolAttribute{ - Optional: true, - Description: `This flag is used for testing purposes for certain streams that return a lot of data. This flag is not meant to be enabled for prod.`, - }, }, }, "definition_id": schema.StringAttribute{ diff --git a/internal/provider/source_asana_resource_sdk.go b/internal/provider/source_asana_resource_sdk.go index 556f8150c..97e6992e4 100644 --- a/internal/provider/source_asana_resource_sdk.go +++ b/internal/provider/source_asana_resource_sdk.go @@ -46,16 +46,9 @@ func (r *SourceAsanaResourceModel) ToSharedSourceAsanaCreateRequest() *shared.So _ = json.Unmarshal([]byte(organizationExportIdsItem.ValueString()), &organizationExportIdsTmp) organizationExportIds = append(organizationExportIds, organizationExportIdsTmp) } - testMode := new(bool) - if !r.Configuration.TestMode.IsUnknown() && !r.Configuration.TestMode.IsNull() { - *testMode = r.Configuration.TestMode.ValueBool() - } else { - testMode = nil - } configuration := shared.SourceAsana{ Credentials: credentials, OrganizationExportIds: organizationExportIds, - TestMode: testMode, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -128,16 +121,9 @@ func (r *SourceAsanaResourceModel) ToSharedSourceAsanaPutRequest() *shared.Sourc _ = json.Unmarshal([]byte(organizationExportIdsItem.ValueString()), &organizationExportIdsTmp) organizationExportIds = append(organizationExportIds, organizationExportIdsTmp) } - testMode := new(bool) - if !r.Configuration.TestMode.IsUnknown() && !r.Configuration.TestMode.IsNull() { - *testMode = r.Configuration.TestMode.ValueBool() - } else { - testMode = nil - } configuration := shared.SourceAsanaUpdate{ Credentials: credentials, OrganizationExportIds: organizationExportIds, - TestMode: testMode, } 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 2153294c7..7fa9a8ecb 100644 --- a/internal/provider/source_azureblobstorage_resource.go +++ b/internal/provider/source_azureblobstorage_resource.go @@ -254,18 +254,6 @@ func (r *SourceAzureBlobStorageResource) Schema(ctx context.Context, req resourc Default: booldefault.StaticBool(false), Description: `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": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("None"), - Description: `How to infer the types of the columns. If none, inference default to strings. must be one of ["None", "Primitive Types Only"]; Default: "None"`, - Validators: []validator.String{ - stringvalidator.OneOf( - "None", - "Primitive Types Only", - ), - }, - }, "null_values": schema.ListAttribute{ Optional: true, ElementType: types.StringType, @@ -410,18 +398,10 @@ func (r *SourceAzureBlobStorageResource) Schema(ctx context.Context, req resourc Optional: true, Description: `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": schema.StringAttribute{ - Optional: true, - 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, Description: `The name of the stream.`, }, - "primary_key": schema.StringAttribute{ - Optional: 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{ Computed: true, Optional: true, diff --git a/internal/provider/source_azureblobstorage_resource_sdk.go b/internal/provider/source_azureblobstorage_resource_sdk.go index a7937950a..2a0db7988 100644 --- a/internal/provider/source_azureblobstorage_resource_sdk.go +++ b/internal/provider/source_azureblobstorage_resource_sdk.go @@ -152,12 +152,6 @@ func (r *SourceAzureBlobStorageResourceModel) ToSharedSourceAzureBlobStorageCrea } else { ignoreErrorsOnFieldsMismatch = nil } - inferenceType := new(shared.SourceAzureBlobStorageInferenceType) - if !streamsItem.Format.CSVFormat.InferenceType.IsUnknown() && !streamsItem.Format.CSVFormat.InferenceType.IsNull() { - *inferenceType = shared.SourceAzureBlobStorageInferenceType(streamsItem.Format.CSVFormat.InferenceType.ValueString()) - } else { - inferenceType = nil - } var nullValues []string = []string{} for _, nullValuesItem := range streamsItem.Format.CSVFormat.NullValues { nullValues = append(nullValues, nullValuesItem.ValueString()) @@ -198,7 +192,6 @@ func (r *SourceAzureBlobStorageResourceModel) ToSharedSourceAzureBlobStorageCrea FalseValues: falseValues, HeaderDefinition: headerDefinition, IgnoreErrorsOnFieldsMismatch: ignoreErrorsOnFieldsMismatch, - InferenceType: inferenceType, NullValues: nullValues, QuoteChar: quoteChar, SkipRowsAfterHeader: skipRowsAfterHeader, @@ -285,19 +278,7 @@ func (r *SourceAzureBlobStorageResourceModel) ToSharedSourceAzureBlobStorageCrea } else { inputSchema = nil } - legacyPrefix := new(string) - if !streamsItem.LegacyPrefix.IsUnknown() && !streamsItem.LegacyPrefix.IsNull() { - *legacyPrefix = streamsItem.LegacyPrefix.ValueString() - } else { - legacyPrefix = nil - } name := streamsItem.Name.ValueString() - primaryKey := new(string) - if !streamsItem.PrimaryKey.IsUnknown() && !streamsItem.PrimaryKey.IsNull() { - *primaryKey = streamsItem.PrimaryKey.ValueString() - } else { - primaryKey = nil - } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -315,9 +296,7 @@ func (r *SourceAzureBlobStorageResourceModel) ToSharedSourceAzureBlobStorageCrea Format: format, Globs: globs, InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, Name: name, - PrimaryKey: primaryKey, Schemaless: schemaless, ValidationPolicy: validationPolicy, }) @@ -507,12 +486,6 @@ func (r *SourceAzureBlobStorageResourceModel) ToSharedSourceAzureBlobStoragePutR } else { ignoreErrorsOnFieldsMismatch = nil } - inferenceType := new(shared.InferenceType) - if !streamsItem.Format.CSVFormat.InferenceType.IsUnknown() && !streamsItem.Format.CSVFormat.InferenceType.IsNull() { - *inferenceType = shared.InferenceType(streamsItem.Format.CSVFormat.InferenceType.ValueString()) - } else { - inferenceType = nil - } var nullValues []string = []string{} for _, nullValuesItem := range streamsItem.Format.CSVFormat.NullValues { nullValues = append(nullValues, nullValuesItem.ValueString()) @@ -553,7 +526,6 @@ func (r *SourceAzureBlobStorageResourceModel) ToSharedSourceAzureBlobStoragePutR FalseValues: falseValues, HeaderDefinition: headerDefinition, IgnoreErrorsOnFieldsMismatch: ignoreErrorsOnFieldsMismatch, - InferenceType: inferenceType, NullValues: nullValues, QuoteChar: quoteChar, SkipRowsAfterHeader: skipRowsAfterHeader, @@ -640,19 +612,7 @@ func (r *SourceAzureBlobStorageResourceModel) ToSharedSourceAzureBlobStoragePutR } else { inputSchema = nil } - legacyPrefix := new(string) - if !streamsItem.LegacyPrefix.IsUnknown() && !streamsItem.LegacyPrefix.IsNull() { - *legacyPrefix = streamsItem.LegacyPrefix.ValueString() - } else { - legacyPrefix = nil - } name := streamsItem.Name.ValueString() - primaryKey := new(string) - if !streamsItem.PrimaryKey.IsUnknown() && !streamsItem.PrimaryKey.IsNull() { - *primaryKey = streamsItem.PrimaryKey.ValueString() - } else { - primaryKey = nil - } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -670,9 +630,7 @@ func (r *SourceAzureBlobStorageResourceModel) ToSharedSourceAzureBlobStoragePutR Format: format, Globs: globs, InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, Name: name, - PrimaryKey: primaryKey, Schemaless: schemaless, ValidationPolicy: validationPolicy, }) diff --git a/internal/provider/source_bitly_data_source.go b/internal/provider/source_bitly_data_source.go new file mode 100644 index 000000000..def0d6ca3 --- /dev/null +++ b/internal/provider/source_bitly_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 = &SourceBitlyDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceBitlyDataSource{} + +func NewSourceBitlyDataSource() datasource.DataSource { + return &SourceBitlyDataSource{} +} + +// SourceBitlyDataSource is the data source implementation. +type SourceBitlyDataSource struct { + client *sdk.SDK +} + +// SourceBitlyDataSourceModel describes the data model. +type SourceBitlyDataSourceModel 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 *SourceBitlyDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_bitly" +} + +// Schema defines the schema for the data source. +func (r *SourceBitlyDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBitly 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 *SourceBitlyDataSource) 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 *SourceBitlyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceBitlyDataSourceModel + 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.GetSourceBitlyRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBitly(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_bitly_data_source_sdk.go b/internal/provider/source_bitly_data_source_sdk.go new file mode 100644 index 000000000..b1219a1e1 --- /dev/null +++ b/internal/provider/source_bitly_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 *SourceBitlyDataSourceModel) 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_bitly_resource.go b/internal/provider/source_bitly_resource.go new file mode 100644 index 000000000..53c5ec06f --- /dev/null +++ b/internal/provider/source_bitly_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/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 = &SourceBitlyResource{} +var _ resource.ResourceWithImportState = &SourceBitlyResource{} + +func NewSourceBitlyResource() resource.Resource { + return &SourceBitlyResource{} +} + +// SourceBitlyResource defines the resource implementation. +type SourceBitlyResource struct { + client *sdk.SDK +} + +// SourceBitlyResourceModel describes the resource data model. +type SourceBitlyResourceModel struct { + Configuration tfTypes.SourceBitly `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 *SourceBitlyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_bitly" +} + +func (r *SourceBitlyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBitly 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, + }, + "end_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "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 *SourceBitlyResource) 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 *SourceBitlyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceBitlyResourceModel + 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.ToSharedSourceBitlyCreateRequest() + res, err := r.client.Sources.CreateSourceBitly(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.GetSourceBitlyRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceBitly(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 *SourceBitlyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceBitlyResourceModel + 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.GetSourceBitlyRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBitly(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 *SourceBitlyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceBitlyResourceModel + 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 + } + + sourceBitlyPutRequest := data.ToSharedSourceBitlyPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceBitlyRequest{ + SourceBitlyPutRequest: sourceBitlyPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceBitly(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.GetSourceBitlyRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceBitly(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 *SourceBitlyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceBitlyResourceModel + 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.DeleteSourceBitlyRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceBitly(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 *SourceBitlyResource) 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_bitly_resource_sdk.go b/internal/provider/source_bitly_resource_sdk.go new file mode 100644 index 000000000..2c1ee440a --- /dev/null +++ b/internal/provider/source_bitly_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 *SourceBitlyResourceModel) ToSharedSourceBitlyCreateRequest() *shared.SourceBitlyCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBitly{ + APIKey: apiKey, + EndDate: endDate, + 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.SourceBitlyCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceBitlyResourceModel) 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 *SourceBitlyResourceModel) ToSharedSourceBitlyPutRequest() *shared.SourceBitlyPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBitlyUpdate{ + APIKey: apiKey, + EndDate: endDate, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceBitlyPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_brevo_data_source.go b/internal/provider/source_brevo_data_source.go new file mode 100644 index 000000000..6d1805487 --- /dev/null +++ b/internal/provider/source_brevo_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 = &SourceBrevoDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceBrevoDataSource{} + +func NewSourceBrevoDataSource() datasource.DataSource { + return &SourceBrevoDataSource{} +} + +// SourceBrevoDataSource is the data source implementation. +type SourceBrevoDataSource struct { + client *sdk.SDK +} + +// SourceBrevoDataSourceModel describes the data model. +type SourceBrevoDataSourceModel 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 *SourceBrevoDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_brevo" +} + +// Schema defines the schema for the data source. +func (r *SourceBrevoDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBrevo 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 *SourceBrevoDataSource) 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 *SourceBrevoDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceBrevoDataSourceModel + 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.GetSourceBrevoRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBrevo(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_brevo_data_source_sdk.go b/internal/provider/source_brevo_data_source_sdk.go new file mode 100644 index 000000000..556a8b6a7 --- /dev/null +++ b/internal/provider/source_brevo_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 *SourceBrevoDataSourceModel) 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_brevo_resource.go b/internal/provider/source_brevo_resource.go new file mode 100644 index 000000000..c07779962 --- /dev/null +++ b/internal/provider/source_brevo_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 = &SourceBrevoResource{} +var _ resource.ResourceWithImportState = &SourceBrevoResource{} + +func NewSourceBrevoResource() resource.Resource { + return &SourceBrevoResource{} +} + +// SourceBrevoResource defines the resource implementation. +type SourceBrevoResource struct { + client *sdk.SDK +} + +// SourceBrevoResourceModel describes the resource data model. +type SourceBrevoResourceModel struct { + Configuration tfTypes.SourceBrevo `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 *SourceBrevoResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_brevo" +} + +func (r *SourceBrevoResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBrevo 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_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 *SourceBrevoResource) 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 *SourceBrevoResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceBrevoResourceModel + 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.ToSharedSourceBrevoCreateRequest() + res, err := r.client.Sources.CreateSourceBrevo(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.GetSourceBrevoRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceBrevo(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 *SourceBrevoResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceBrevoResourceModel + 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.GetSourceBrevoRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBrevo(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 *SourceBrevoResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceBrevoResourceModel + 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 + } + + sourceBrevoPutRequest := data.ToSharedSourceBrevoPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceBrevoRequest{ + SourceBrevoPutRequest: sourceBrevoPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceBrevo(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.GetSourceBrevoRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceBrevo(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 *SourceBrevoResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceBrevoResourceModel + 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.DeleteSourceBrevoRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceBrevo(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 *SourceBrevoResource) 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_brevo_resource_sdk.go b/internal/provider/source_brevo_resource_sdk.go new file mode 100644 index 000000000..c21dd7a60 --- /dev/null +++ b/internal/provider/source_brevo_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 *SourceBrevoResourceModel) ToSharedSourceBrevoCreateRequest() *shared.SourceBrevoCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBrevo{ + 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.SourceBrevoCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceBrevoResourceModel) 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 *SourceBrevoResourceModel) ToSharedSourceBrevoPutRequest() *shared.SourceBrevoPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBrevoUpdate{ + APIKey: apiKey, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceBrevoPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_buildkite_data_source.go b/internal/provider/source_buildkite_data_source.go new file mode 100644 index 000000000..bac7840a7 --- /dev/null +++ b/internal/provider/source_buildkite_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 = &SourceBuildkiteDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceBuildkiteDataSource{} + +func NewSourceBuildkiteDataSource() datasource.DataSource { + return &SourceBuildkiteDataSource{} +} + +// SourceBuildkiteDataSource is the data source implementation. +type SourceBuildkiteDataSource struct { + client *sdk.SDK +} + +// SourceBuildkiteDataSourceModel describes the data model. +type SourceBuildkiteDataSourceModel 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 *SourceBuildkiteDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_buildkite" +} + +// Schema defines the schema for the data source. +func (r *SourceBuildkiteDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBuildkite 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 *SourceBuildkiteDataSource) 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 *SourceBuildkiteDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceBuildkiteDataSourceModel + 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.GetSourceBuildkiteRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBuildkite(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_buildkite_data_source_sdk.go b/internal/provider/source_buildkite_data_source_sdk.go new file mode 100644 index 000000000..da093ad6c --- /dev/null +++ b/internal/provider/source_buildkite_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 *SourceBuildkiteDataSourceModel) 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_buildkite_resource.go b/internal/provider/source_buildkite_resource.go new file mode 100644 index 000000000..dbd36cbd7 --- /dev/null +++ b/internal/provider/source_buildkite_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 = &SourceBuildkiteResource{} +var _ resource.ResourceWithImportState = &SourceBuildkiteResource{} + +func NewSourceBuildkiteResource() resource.Resource { + return &SourceBuildkiteResource{} +} + +// SourceBuildkiteResource defines the resource implementation. +type SourceBuildkiteResource struct { + client *sdk.SDK +} + +// SourceBuildkiteResourceModel describes the resource data model. +type SourceBuildkiteResourceModel struct { + Configuration tfTypes.SourceBrevo `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 *SourceBuildkiteResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_buildkite" +} + +func (r *SourceBuildkiteResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBuildkite 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_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 *SourceBuildkiteResource) 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 *SourceBuildkiteResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceBuildkiteResourceModel + 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.ToSharedSourceBuildkiteCreateRequest() + res, err := r.client.Sources.CreateSourceBuildkite(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.GetSourceBuildkiteRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceBuildkite(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 *SourceBuildkiteResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceBuildkiteResourceModel + 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.GetSourceBuildkiteRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBuildkite(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 *SourceBuildkiteResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceBuildkiteResourceModel + 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 + } + + sourceBuildkitePutRequest := data.ToSharedSourceBuildkitePutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceBuildkiteRequest{ + SourceBuildkitePutRequest: sourceBuildkitePutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceBuildkite(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.GetSourceBuildkiteRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceBuildkite(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 *SourceBuildkiteResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceBuildkiteResourceModel + 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.DeleteSourceBuildkiteRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceBuildkite(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 *SourceBuildkiteResource) 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_buildkite_resource_sdk.go b/internal/provider/source_buildkite_resource_sdk.go new file mode 100644 index 000000000..389a98c52 --- /dev/null +++ b/internal/provider/source_buildkite_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 *SourceBuildkiteResourceModel) ToSharedSourceBuildkiteCreateRequest() *shared.SourceBuildkiteCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBuildkite{ + 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.SourceBuildkiteCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceBuildkiteResourceModel) 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 *SourceBuildkiteResourceModel) ToSharedSourceBuildkitePutRequest() *shared.SourceBuildkitePutRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBuildkiteUpdate{ + APIKey: apiKey, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceBuildkitePutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_buzzsprout_data_source.go b/internal/provider/source_buzzsprout_data_source.go new file mode 100644 index 000000000..63d100c5a --- /dev/null +++ b/internal/provider/source_buzzsprout_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 = &SourceBuzzsproutDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceBuzzsproutDataSource{} + +func NewSourceBuzzsproutDataSource() datasource.DataSource { + return &SourceBuzzsproutDataSource{} +} + +// SourceBuzzsproutDataSource is the data source implementation. +type SourceBuzzsproutDataSource struct { + client *sdk.SDK +} + +// SourceBuzzsproutDataSourceModel describes the data model. +type SourceBuzzsproutDataSourceModel 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 *SourceBuzzsproutDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_buzzsprout" +} + +// Schema defines the schema for the data source. +func (r *SourceBuzzsproutDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBuzzsprout 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 *SourceBuzzsproutDataSource) 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 *SourceBuzzsproutDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceBuzzsproutDataSourceModel + 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.GetSourceBuzzsproutRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBuzzsprout(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_buzzsprout_data_source_sdk.go b/internal/provider/source_buzzsprout_data_source_sdk.go new file mode 100644 index 000000000..d962ac880 --- /dev/null +++ b/internal/provider/source_buzzsprout_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 *SourceBuzzsproutDataSourceModel) 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_buzzsprout_resource.go b/internal/provider/source_buzzsprout_resource.go new file mode 100644 index 000000000..cdd34c2b9 --- /dev/null +++ b/internal/provider/source_buzzsprout_resource.go @@ -0,0 +1,376 @@ +// 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 = &SourceBuzzsproutResource{} +var _ resource.ResourceWithImportState = &SourceBuzzsproutResource{} + +func NewSourceBuzzsproutResource() resource.Resource { + return &SourceBuzzsproutResource{} +} + +// SourceBuzzsproutResource defines the resource implementation. +type SourceBuzzsproutResource struct { + client *sdk.SDK +} + +// SourceBuzzsproutResourceModel describes the resource data model. +type SourceBuzzsproutResourceModel struct { + Configuration tfTypes.SourceBuzzsprout `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 *SourceBuzzsproutResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_buzzsprout" +} + +func (r *SourceBuzzsproutResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceBuzzsprout 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, + }, + "podcast_id": schema.StringAttribute{ + Required: true, + Description: `Podcast ID found in ` + "`" + `https://www.buzzsprout.com/my/profile/api` + "`" + ``, + }, + "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 *SourceBuzzsproutResource) 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 *SourceBuzzsproutResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceBuzzsproutResourceModel + 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.ToSharedSourceBuzzsproutCreateRequest() + res, err := r.client.Sources.CreateSourceBuzzsprout(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.GetSourceBuzzsproutRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceBuzzsprout(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 *SourceBuzzsproutResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceBuzzsproutResourceModel + 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.GetSourceBuzzsproutRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceBuzzsprout(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 *SourceBuzzsproutResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceBuzzsproutResourceModel + 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 + } + + sourceBuzzsproutPutRequest := data.ToSharedSourceBuzzsproutPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceBuzzsproutRequest{ + SourceBuzzsproutPutRequest: sourceBuzzsproutPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceBuzzsprout(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.GetSourceBuzzsproutRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceBuzzsprout(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 *SourceBuzzsproutResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceBuzzsproutResourceModel + 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.DeleteSourceBuzzsproutRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceBuzzsprout(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 *SourceBuzzsproutResource) 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_buzzsprout_resource_sdk.go b/internal/provider/source_buzzsprout_resource_sdk.go new file mode 100644 index 000000000..4360133f6 --- /dev/null +++ b/internal/provider/source_buzzsprout_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 *SourceBuzzsproutResourceModel) ToSharedSourceBuzzsproutCreateRequest() *shared.SourceBuzzsproutCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + podcastID := r.Configuration.PodcastID.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBuzzsprout{ + APIKey: apiKey, + PodcastID: podcastID, + 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.SourceBuzzsproutCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceBuzzsproutResourceModel) 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 *SourceBuzzsproutResourceModel) ToSharedSourceBuzzsproutPutRequest() *shared.SourceBuzzsproutPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + podcastID := r.Configuration.PodcastID.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceBuzzsproutUpdate{ + APIKey: apiKey, + PodcastID: podcastID, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceBuzzsproutPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_calendly_resource.go b/internal/provider/source_calendly_resource.go index 667d3a901..222c7106c 100644 --- a/internal/provider/source_calendly_resource.go +++ b/internal/provider/source_calendly_resource.go @@ -36,13 +36,13 @@ type SourceCalendlyResource struct { // 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"` + Configuration tfTypes.SourceBrevo `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) { diff --git a/internal/provider/source_canny_data_source.go b/internal/provider/source_canny_data_source.go new file mode 100644 index 000000000..28eb15679 --- /dev/null +++ b/internal/provider/source_canny_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 = &SourceCannyDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceCannyDataSource{} + +func NewSourceCannyDataSource() datasource.DataSource { + return &SourceCannyDataSource{} +} + +// SourceCannyDataSource is the data source implementation. +type SourceCannyDataSource struct { + client *sdk.SDK +} + +// SourceCannyDataSourceModel describes the data model. +type SourceCannyDataSourceModel 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 *SourceCannyDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_canny" +} + +// Schema defines the schema for the data source. +func (r *SourceCannyDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceCanny 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 *SourceCannyDataSource) 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 *SourceCannyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceCannyDataSourceModel + 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.GetSourceCannyRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceCanny(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_canny_data_source_sdk.go b/internal/provider/source_canny_data_source_sdk.go new file mode 100644 index 000000000..13db03604 --- /dev/null +++ b/internal/provider/source_canny_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 *SourceCannyDataSourceModel) 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_canny_resource.go b/internal/provider/source_canny_resource.go new file mode 100644 index 000000000..48de5eedf --- /dev/null +++ b/internal/provider/source_canny_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 = &SourceCannyResource{} +var _ resource.ResourceWithImportState = &SourceCannyResource{} + +func NewSourceCannyResource() resource.Resource { + return &SourceCannyResource{} +} + +// SourceCannyResource defines the resource implementation. +type SourceCannyResource struct { + client *sdk.SDK +} + +// SourceCannyResourceModel describes the resource data model. +type SourceCannyResourceModel 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 *SourceCannyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_canny" +} + +func (r *SourceCannyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceCanny 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: `You can find your secret API key in Your Canny Subdomain > Settings > API`, + }, + }, + }, + "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 *SourceCannyResource) 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 *SourceCannyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceCannyResourceModel + 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.ToSharedSourceCannyCreateRequest() + res, err := r.client.Sources.CreateSourceCanny(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.GetSourceCannyRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceCanny(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 *SourceCannyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceCannyResourceModel + 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.GetSourceCannyRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceCanny(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 *SourceCannyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceCannyResourceModel + 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 + } + + sourceCannyPutRequest := data.ToSharedSourceCannyPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceCannyRequest{ + SourceCannyPutRequest: sourceCannyPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceCanny(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.GetSourceCannyRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceCanny(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 *SourceCannyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceCannyResourceModel + 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.DeleteSourceCannyRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceCanny(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 *SourceCannyResource) 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_zendesksell_resource_sdk.go b/internal/provider/source_canny_resource_sdk.go similarity index 63% rename from internal/provider/source_zendesksell_resource_sdk.go rename to internal/provider/source_canny_resource_sdk.go index a8baea3f9..48abe5a39 100644 --- a/internal/provider/source_zendesksell_resource_sdk.go +++ b/internal/provider/source_canny_resource_sdk.go @@ -7,10 +7,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *SourceZendeskSellResourceModel) ToSharedSourceZendeskSellCreateRequest() *shared.SourceZendeskSellCreateRequest { - apiToken := r.Configuration.APIToken.ValueString() - configuration := shared.SourceZendeskSell{ - APIToken: apiToken, +func (r *SourceCannyResourceModel) ToSharedSourceCannyCreateRequest() *shared.SourceCannyCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + configuration := shared.SourceCanny{ + APIKey: apiKey, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -26,7 +26,7 @@ func (r *SourceZendeskSellResourceModel) ToSharedSourceZendeskSellCreateRequest( secretID = nil } workspaceID := r.WorkspaceID.ValueString() - out := shared.SourceZendeskSellCreateRequest{ + out := shared.SourceCannyCreateRequest{ Configuration: configuration, DefinitionID: definitionID, Name: name, @@ -36,7 +36,7 @@ func (r *SourceZendeskSellResourceModel) ToSharedSourceZendeskSellCreateRequest( return &out } -func (r *SourceZendeskSellResourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *SourceCannyResourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { if resp != nil { r.Name = types.StringValue(resp.Name) r.SourceID = types.StringValue(resp.SourceID) @@ -45,14 +45,14 @@ func (r *SourceZendeskSellResourceModel) RefreshFromSharedSourceResponse(resp *s } } -func (r *SourceZendeskSellResourceModel) ToSharedSourceZendeskSellPutRequest() *shared.SourceZendeskSellPutRequest { - apiToken := r.Configuration.APIToken.ValueString() - configuration := shared.SourceZendeskSellUpdate{ - APIToken: apiToken, +func (r *SourceCannyResourceModel) ToSharedSourceCannyPutRequest() *shared.SourceCannyPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + configuration := shared.SourceCannyUpdate{ + APIKey: apiKey, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() - out := shared.SourceZendeskSellPutRequest{ + out := shared.SourceCannyPutRequest{ Configuration: configuration, Name: name, WorkspaceID: workspaceID, diff --git a/internal/provider/source_chameleon_data_source.go b/internal/provider/source_chameleon_data_source.go new file mode 100644 index 000000000..234f69c05 --- /dev/null +++ b/internal/provider/source_chameleon_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 = &SourceChameleonDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceChameleonDataSource{} + +func NewSourceChameleonDataSource() datasource.DataSource { + return &SourceChameleonDataSource{} +} + +// SourceChameleonDataSource is the data source implementation. +type SourceChameleonDataSource struct { + client *sdk.SDK +} + +// SourceChameleonDataSourceModel describes the data model. +type SourceChameleonDataSourceModel 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 *SourceChameleonDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_chameleon" +} + +// Schema defines the schema for the data source. +func (r *SourceChameleonDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceChameleon 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 *SourceChameleonDataSource) 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 *SourceChameleonDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceChameleonDataSourceModel + 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.GetSourceChameleonRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceChameleon(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_chameleon_data_source_sdk.go b/internal/provider/source_chameleon_data_source_sdk.go new file mode 100644 index 000000000..3ada4eb25 --- /dev/null +++ b/internal/provider/source_chameleon_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 *SourceChameleonDataSourceModel) 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_chameleon_resource.go b/internal/provider/source_chameleon_resource.go new file mode 100644 index 000000000..395056d76 --- /dev/null +++ b/internal/provider/source_chameleon_resource.go @@ -0,0 +1,399 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + speakeasy_objectplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/objectplanmodifier" + speakeasy_stringplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/stringplanmodifier" + tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/airbytehq/terraform-provider-airbyte/internal/validators" + "github.com/hashicorp/terraform-plugin-framework-validators/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/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 = &SourceChameleonResource{} +var _ resource.ResourceWithImportState = &SourceChameleonResource{} + +func NewSourceChameleonResource() resource.Resource { + return &SourceChameleonResource{} +} + +// SourceChameleonResource defines the resource implementation. +type SourceChameleonResource struct { + client *sdk.SDK +} + +// SourceChameleonResourceModel describes the resource data model. +type SourceChameleonResourceModel struct { + Configuration tfTypes.SourceChameleon `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 *SourceChameleonResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_chameleon" +} + +func (r *SourceChameleonResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceChameleon 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, + }, + "end_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "filter": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("tour"), + Description: `Filter for using in the ` + "`" + `segments_experiences` + "`" + ` stream. must be one of ["tour", "survey", "launcher"]; Default: "tour"`, + Validators: []validator.String{ + stringvalidator.OneOf( + "tour", + "survey", + "launcher", + ), + }, + }, + "limit": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("50"), + Description: `Max records per page limit. Default: "50"`, + }, + "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 *SourceChameleonResource) 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 *SourceChameleonResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceChameleonResourceModel + 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.ToSharedSourceChameleonCreateRequest() + res, err := r.client.Sources.CreateSourceChameleon(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.GetSourceChameleonRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceChameleon(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 *SourceChameleonResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceChameleonResourceModel + 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.GetSourceChameleonRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceChameleon(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 *SourceChameleonResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceChameleonResourceModel + 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 + } + + sourceChameleonPutRequest := data.ToSharedSourceChameleonPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceChameleonRequest{ + SourceChameleonPutRequest: sourceChameleonPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceChameleon(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.GetSourceChameleonRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceChameleon(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 *SourceChameleonResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceChameleonResourceModel + 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.DeleteSourceChameleonRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceChameleon(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 *SourceChameleonResource) 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_chameleon_resource_sdk.go b/internal/provider/source_chameleon_resource_sdk.go new file mode 100644 index 000000000..94005468d --- /dev/null +++ b/internal/provider/source_chameleon_resource_sdk.go @@ -0,0 +1,98 @@ +// 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 *SourceChameleonResourceModel) ToSharedSourceChameleonCreateRequest() *shared.SourceChameleonCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + filter := new(shared.SourceChameleonFilter) + if !r.Configuration.Filter.IsUnknown() && !r.Configuration.Filter.IsNull() { + *filter = shared.SourceChameleonFilter(r.Configuration.Filter.ValueString()) + } else { + filter = nil + } + limit := new(string) + if !r.Configuration.Limit.IsUnknown() && !r.Configuration.Limit.IsNull() { + *limit = r.Configuration.Limit.ValueString() + } else { + limit = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceChameleon{ + APIKey: apiKey, + EndDate: endDate, + Filter: filter, + Limit: limit, + 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.SourceChameleonCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceChameleonResourceModel) 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 *SourceChameleonResourceModel) ToSharedSourceChameleonPutRequest() *shared.SourceChameleonPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + filter := new(shared.Filter) + if !r.Configuration.Filter.IsUnknown() && !r.Configuration.Filter.IsNull() { + *filter = shared.Filter(r.Configuration.Filter.ValueString()) + } else { + filter = nil + } + limit := new(string) + if !r.Configuration.Limit.IsUnknown() && !r.Configuration.Limit.IsNull() { + *limit = r.Configuration.Limit.ValueString() + } else { + limit = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceChameleonUpdate{ + APIKey: apiKey, + EndDate: endDate, + Filter: filter, + Limit: limit, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceChameleonPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_chartmogul_resource.go b/internal/provider/source_chartmogul_resource.go index 09515a704..d5d7a4717 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.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"` + Configuration tfTypes.SourceBrevo `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_cimis_data_source.go b/internal/provider/source_cimis_data_source.go new file mode 100644 index 000000000..dabbadfb6 --- /dev/null +++ b/internal/provider/source_cimis_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 = &SourceCimisDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceCimisDataSource{} + +func NewSourceCimisDataSource() datasource.DataSource { + return &SourceCimisDataSource{} +} + +// SourceCimisDataSource is the data source implementation. +type SourceCimisDataSource struct { + client *sdk.SDK +} + +// SourceCimisDataSourceModel describes the data model. +type SourceCimisDataSourceModel 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 *SourceCimisDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_cimis" +} + +// Schema defines the schema for the data source. +func (r *SourceCimisDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceCimis 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 *SourceCimisDataSource) 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 *SourceCimisDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceCimisDataSourceModel + 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.GetSourceCimisRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceCimis(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_cimis_data_source_sdk.go b/internal/provider/source_cimis_data_source_sdk.go new file mode 100644 index 000000000..9f7ab85f5 --- /dev/null +++ b/internal/provider/source_cimis_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 *SourceCimisDataSourceModel) 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_cimis_resource.go b/internal/provider/source_cimis_resource.go new file mode 100644 index 000000000..879f5f2ce --- /dev/null +++ b/internal/provider/source_cimis_resource.go @@ -0,0 +1,423 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + speakeasy_objectplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/objectplanmodifier" + speakeasy_stringplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/stringplanmodifier" + tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/airbytehq/terraform-provider-airbyte/internal/validators" + "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" + "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/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 = &SourceCimisResource{} +var _ resource.ResourceWithImportState = &SourceCimisResource{} + +func NewSourceCimisResource() resource.Resource { + return &SourceCimisResource{} +} + +// SourceCimisResource defines the resource implementation. +type SourceCimisResource struct { + client *sdk.SDK +} + +// SourceCimisResourceModel describes the resource data model. +type SourceCimisResourceModel struct { + Configuration tfTypes.SourceCimis `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 *SourceCimisResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_cimis" +} + +func (r *SourceCimisResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceCimis 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, + }, + "daily_data_items": schema.ListAttribute{ + Optional: true, + ElementType: types.StringType, + Validators: []validator.List{ + listvalidator.ValueStringsAre(validators.IsValidJSON()), + }, + }, + "end_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "hourly_data_items": schema.ListAttribute{ + Optional: true, + ElementType: types.StringType, + Validators: []validator.List{ + listvalidator.ValueStringsAre(validators.IsValidJSON()), + }, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "targets": schema.ListAttribute{ + Required: true, + ElementType: types.StringType, + Validators: []validator.List{ + listvalidator.ValueStringsAre(validators.IsValidJSON()), + }, + }, + "targets_type": schema.StringAttribute{ + Required: true, + Description: `must be one of ["WSN station numbers", "California zip codes", "decimal-degree coordinates", "street addresses"]`, + Validators: []validator.String{ + stringvalidator.OneOf( + "WSN station numbers", + "California zip codes", + "decimal-degree coordinates", + "street addresses", + ), + }, + }, + "unit_of_measure": schema.StringAttribute{ + Optional: true, + Description: `must be one of ["E", "M"]`, + Validators: []validator.String{ + stringvalidator.OneOf( + "E", + "M", + ), + }, + }, + }, + }, + "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 *SourceCimisResource) 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 *SourceCimisResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceCimisResourceModel + 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.ToSharedSourceCimisCreateRequest() + res, err := r.client.Sources.CreateSourceCimis(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.GetSourceCimisRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceCimis(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 *SourceCimisResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceCimisResourceModel + 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.GetSourceCimisRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceCimis(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 *SourceCimisResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceCimisResourceModel + 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 + } + + sourceCimisPutRequest := data.ToSharedSourceCimisPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceCimisRequest{ + SourceCimisPutRequest: sourceCimisPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceCimis(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.GetSourceCimisRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceCimis(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 *SourceCimisResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceCimisResourceModel + 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.DeleteSourceCimisRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceCimis(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 *SourceCimisResource) 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_cimis_resource_sdk.go b/internal/provider/source_cimis_resource_sdk.go new file mode 100644 index 000000000..9254bfc1d --- /dev/null +++ b/internal/provider/source_cimis_resource_sdk.go @@ -0,0 +1,131 @@ +// 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 *SourceCimisResourceModel) ToSharedSourceCimisCreateRequest() *shared.SourceCimisCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + var dailyDataItems []interface{} = []interface{}{} + for _, dailyDataItemsItem := range r.Configuration.DailyDataItems { + var dailyDataItemsTmp interface{} + _ = json.Unmarshal([]byte(dailyDataItemsItem.ValueString()), &dailyDataItemsTmp) + dailyDataItems = append(dailyDataItems, dailyDataItemsTmp) + } + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + var hourlyDataItems []interface{} = []interface{}{} + for _, hourlyDataItemsItem := range r.Configuration.HourlyDataItems { + var hourlyDataItemsTmp interface{} + _ = json.Unmarshal([]byte(hourlyDataItemsItem.ValueString()), &hourlyDataItemsTmp) + hourlyDataItems = append(hourlyDataItems, hourlyDataItemsTmp) + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + var targets []interface{} = []interface{}{} + for _, targetsItem := range r.Configuration.Targets { + var targetsTmp interface{} + _ = json.Unmarshal([]byte(targetsItem.ValueString()), &targetsTmp) + targets = append(targets, targetsTmp) + } + targetsType := shared.SourceCimisTargetsType(r.Configuration.TargetsType.ValueString()) + unitOfMeasure := new(shared.SourceCimisUnitOfMeasure) + if !r.Configuration.UnitOfMeasure.IsUnknown() && !r.Configuration.UnitOfMeasure.IsNull() { + *unitOfMeasure = shared.SourceCimisUnitOfMeasure(r.Configuration.UnitOfMeasure.ValueString()) + } else { + unitOfMeasure = nil + } + configuration := shared.SourceCimis{ + APIKey: apiKey, + DailyDataItems: dailyDataItems, + EndDate: endDate, + HourlyDataItems: hourlyDataItems, + StartDate: startDate, + Targets: targets, + TargetsType: targetsType, + UnitOfMeasure: unitOfMeasure, + } + 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.SourceCimisCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceCimisResourceModel) 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 *SourceCimisResourceModel) ToSharedSourceCimisPutRequest() *shared.SourceCimisPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + var dailyDataItems []interface{} = []interface{}{} + for _, dailyDataItemsItem := range r.Configuration.DailyDataItems { + var dailyDataItemsTmp interface{} + _ = json.Unmarshal([]byte(dailyDataItemsItem.ValueString()), &dailyDataItemsTmp) + dailyDataItems = append(dailyDataItems, dailyDataItemsTmp) + } + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + var hourlyDataItems []interface{} = []interface{}{} + for _, hourlyDataItemsItem := range r.Configuration.HourlyDataItems { + var hourlyDataItemsTmp interface{} + _ = json.Unmarshal([]byte(hourlyDataItemsItem.ValueString()), &hourlyDataItemsTmp) + hourlyDataItems = append(hourlyDataItems, hourlyDataItemsTmp) + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + var targets []interface{} = []interface{}{} + for _, targetsItem := range r.Configuration.Targets { + var targetsTmp interface{} + _ = json.Unmarshal([]byte(targetsItem.ValueString()), &targetsTmp) + targets = append(targets, targetsTmp) + } + targetsType := shared.TargetsType(r.Configuration.TargetsType.ValueString()) + unitOfMeasure := new(shared.UnitOfMeasure) + if !r.Configuration.UnitOfMeasure.IsUnknown() && !r.Configuration.UnitOfMeasure.IsNull() { + *unitOfMeasure = shared.UnitOfMeasure(r.Configuration.UnitOfMeasure.ValueString()) + } else { + unitOfMeasure = nil + } + configuration := shared.SourceCimisUpdate{ + APIKey: apiKey, + DailyDataItems: dailyDataItems, + EndDate: endDate, + HourlyDataItems: hourlyDataItems, + StartDate: startDate, + Targets: targets, + TargetsType: targetsType, + UnitOfMeasure: unitOfMeasure, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceCimisPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_clickhouse_resource.go b/internal/provider/source_clickhouse_resource.go index 558f5cf31..49ad0df30 100644 --- a/internal/provider/source_clickhouse_resource.go +++ b/internal/provider/source_clickhouse_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/stringplanmodifier" @@ -84,6 +85,12 @@ func (r *SourceClickhouseResource) Schema(ctx context.Context, req resource.Sche Default: int64default.StaticInt64(8123), Description: `The port of the database. Default: 8123`, }, + "ssl": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + Description: `Encrypt data using SSL. Default: true`, + }, "tunnel_method": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ diff --git a/internal/provider/source_clickhouse_resource_sdk.go b/internal/provider/source_clickhouse_resource_sdk.go index f7343434d..a3b51dcb3 100644 --- a/internal/provider/source_clickhouse_resource_sdk.go +++ b/internal/provider/source_clickhouse_resource_sdk.go @@ -28,6 +28,12 @@ func (r *SourceClickhouseResourceModel) ToSharedSourceClickhouseCreateRequest() } else { port = nil } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var tunnelMethod *shared.SourceClickhouseSSHTunnelMethod if r.Configuration.TunnelMethod != nil { var sourceClickhouseNoTunnel *shared.SourceClickhouseNoTunnel @@ -93,6 +99,7 @@ func (r *SourceClickhouseResourceModel) ToSharedSourceClickhouseCreateRequest() JdbcURLParams: jdbcURLParams, Password: password, Port: port, + Ssl: ssl, TunnelMethod: tunnelMethod, Username: username, } @@ -150,6 +157,12 @@ func (r *SourceClickhouseResourceModel) ToSharedSourceClickhousePutRequest() *sh } else { port = nil } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var tunnelMethod *shared.SourceClickhouseUpdateSSHTunnelMethod if r.Configuration.TunnelMethod != nil { var sourceClickhouseUpdateNoTunnel *shared.SourceClickhouseUpdateNoTunnel @@ -215,6 +228,7 @@ func (r *SourceClickhouseResourceModel) ToSharedSourceClickhousePutRequest() *sh JdbcURLParams: jdbcURLParams, Password: password, Port: port, + Ssl: ssl, TunnelMethod: tunnelMethod, Username: username, } diff --git a/internal/provider/source_ezofficeinventory_data_source.go b/internal/provider/source_ezofficeinventory_data_source.go new file mode 100644 index 000000000..ee2c0838a --- /dev/null +++ b/internal/provider/source_ezofficeinventory_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 = &SourceEzofficeinventoryDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceEzofficeinventoryDataSource{} + +func NewSourceEzofficeinventoryDataSource() datasource.DataSource { + return &SourceEzofficeinventoryDataSource{} +} + +// SourceEzofficeinventoryDataSource is the data source implementation. +type SourceEzofficeinventoryDataSource struct { + client *sdk.SDK +} + +// SourceEzofficeinventoryDataSourceModel describes the data model. +type SourceEzofficeinventoryDataSourceModel 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 *SourceEzofficeinventoryDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_ezofficeinventory" +} + +// Schema defines the schema for the data source. +func (r *SourceEzofficeinventoryDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceEzofficeinventory 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 *SourceEzofficeinventoryDataSource) 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 *SourceEzofficeinventoryDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceEzofficeinventoryDataSourceModel + 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.GetSourceEzofficeinventoryRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceEzofficeinventory(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_ezofficeinventory_data_source_sdk.go b/internal/provider/source_ezofficeinventory_data_source_sdk.go new file mode 100644 index 000000000..3b6c817a5 --- /dev/null +++ b/internal/provider/source_ezofficeinventory_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 *SourceEzofficeinventoryDataSourceModel) 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_ezofficeinventory_resource.go b/internal/provider/source_ezofficeinventory_resource.go new file mode 100644 index 000000000..4b7faa090 --- /dev/null +++ b/internal/provider/source_ezofficeinventory_resource.go @@ -0,0 +1,379 @@ +// 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 = &SourceEzofficeinventoryResource{} +var _ resource.ResourceWithImportState = &SourceEzofficeinventoryResource{} + +func NewSourceEzofficeinventoryResource() resource.Resource { + return &SourceEzofficeinventoryResource{} +} + +// SourceEzofficeinventoryResource defines the resource implementation. +type SourceEzofficeinventoryResource struct { + client *sdk.SDK +} + +// SourceEzofficeinventoryResourceModel describes the resource data model. +type SourceEzofficeinventoryResourceModel struct { + Configuration tfTypes.SourceEzofficeinventory `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 *SourceEzofficeinventoryResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_ezofficeinventory" +} + +func (r *SourceEzofficeinventoryResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceEzofficeinventory 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: `Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in Settings > Integrations > API Integration and click on Update to generate a new access token`, + }, + "start_date": schema.StringAttribute{ + Required: true, + Description: `Earliest date you want to sync historical streams (inventory_histories, asset_histories, asset_stock_histories) from`, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "subdomain": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `The company name used in signup, also visible in the URL when logged in.`, + }, + }, + }, + "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 *SourceEzofficeinventoryResource) 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 *SourceEzofficeinventoryResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceEzofficeinventoryResourceModel + 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.ToSharedSourceEzofficeinventoryCreateRequest() + res, err := r.client.Sources.CreateSourceEzofficeinventory(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.GetSourceEzofficeinventoryRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceEzofficeinventory(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 *SourceEzofficeinventoryResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceEzofficeinventoryResourceModel + 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.GetSourceEzofficeinventoryRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceEzofficeinventory(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 *SourceEzofficeinventoryResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceEzofficeinventoryResourceModel + 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 + } + + sourceEzofficeinventoryPutRequest := data.ToSharedSourceEzofficeinventoryPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceEzofficeinventoryRequest{ + SourceEzofficeinventoryPutRequest: sourceEzofficeinventoryPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceEzofficeinventory(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.GetSourceEzofficeinventoryRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceEzofficeinventory(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 *SourceEzofficeinventoryResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceEzofficeinventoryResourceModel + 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.DeleteSourceEzofficeinventoryRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceEzofficeinventory(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 *SourceEzofficeinventoryResource) 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_ezofficeinventory_resource_sdk.go b/internal/provider/source_ezofficeinventory_resource_sdk.go new file mode 100644 index 000000000..aac7858a5 --- /dev/null +++ b/internal/provider/source_ezofficeinventory_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 *SourceEzofficeinventoryResourceModel) ToSharedSourceEzofficeinventoryCreateRequest() *shared.SourceEzofficeinventoryCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + subdomain := r.Configuration.Subdomain.ValueString() + configuration := shared.SourceEzofficeinventory{ + APIKey: apiKey, + StartDate: startDate, + Subdomain: subdomain, + } + 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.SourceEzofficeinventoryCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceEzofficeinventoryResourceModel) 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 *SourceEzofficeinventoryResourceModel) ToSharedSourceEzofficeinventoryPutRequest() *shared.SourceEzofficeinventoryPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + subdomain := r.Configuration.Subdomain.ValueString() + configuration := shared.SourceEzofficeinventoryUpdate{ + APIKey: apiKey, + StartDate: startDate, + Subdomain: subdomain, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceEzofficeinventoryPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_facebookmarketing_resource.go b/internal/provider/source_facebookmarketing_resource.go index beff2ab94..7c7ca4913 100644 --- a/internal/provider/source_facebookmarketing_resource.go +++ b/internal/provider/source_facebookmarketing_resource.go @@ -79,12 +79,6 @@ func (r *SourceFacebookMarketingResource) Schema(ctx context.Context, req resour listvalidator.UniqueValues(), }, }, - "action_breakdowns_allow_empty": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - Description: `Allows action_breakdowns to be an empty list. Default: true`, - }, "ad_statuses": schema.ListAttribute{ Optional: true, ElementType: types.StringType, @@ -100,16 +94,6 @@ func (r *SourceFacebookMarketingResource) Schema(ctx context.Context, req resour ElementType: types.StringType, Description: `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": 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{ diff --git a/internal/provider/source_facebookmarketing_resource_sdk.go b/internal/provider/source_facebookmarketing_resource_sdk.go index 486e2632a..61046ff68 100644 --- a/internal/provider/source_facebookmarketing_resource_sdk.go +++ b/internal/provider/source_facebookmarketing_resource_sdk.go @@ -19,12 +19,6 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingCr for _, accountIdsItem := range r.Configuration.AccountIds { accountIds = append(accountIds, accountIdsItem.ValueString()) } - actionBreakdownsAllowEmpty := new(bool) - if !r.Configuration.ActionBreakdownsAllowEmpty.IsUnknown() && !r.Configuration.ActionBreakdownsAllowEmpty.IsNull() { - *actionBreakdownsAllowEmpty = r.Configuration.ActionBreakdownsAllowEmpty.ValueBool() - } else { - actionBreakdownsAllowEmpty = nil - } var adStatuses []shared.SourceFacebookMarketingValidAdStatuses = []shared.SourceFacebookMarketingValidAdStatuses{} for _, adStatusesItem := range r.Configuration.AdStatuses { adStatuses = append(adStatuses, shared.SourceFacebookMarketingValidAdStatuses(adStatusesItem.ValueString())) @@ -37,18 +31,6 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingCr for _, campaignStatusesItem := range r.Configuration.CampaignStatuses { campaignStatuses = append(campaignStatuses, shared.SourceFacebookMarketingValidCampaignStatuses(campaignStatusesItem.ValueString())) } - clientID := new(string) - if !r.Configuration.ClientID.IsUnknown() && !r.Configuration.ClientID.IsNull() { - *clientID = r.Configuration.ClientID.ValueString() - } else { - clientID = nil - } - clientSecret := new(string) - if !r.Configuration.ClientSecret.IsUnknown() && !r.Configuration.ClientSecret.IsNull() { - *clientSecret = r.Configuration.ClientSecret.ValueString() - } else { - clientSecret = nil - } var credentials shared.SourceFacebookMarketingAuthentication var sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth *shared.SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth if r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth != nil { @@ -58,12 +40,12 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingCr } else { accessToken1 = nil } - clientId1 := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientID.ValueString() - clientSecret1 := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientSecret.ValueString() + clientID := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientID.ValueString() + clientSecret := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientSecret.ValueString() sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth = &shared.SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth{ AccessToken: accessToken1, - ClientID: clientId1, - ClientSecret: clientSecret1, + ClientID: clientID, + ClientSecret: clientSecret, } } if sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth != nil { @@ -191,22 +173,19 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingCr startDate1 = nil } configuration := shared.SourceFacebookMarketing{ - AccessToken: accessToken, - AccountIds: accountIds, - ActionBreakdownsAllowEmpty: actionBreakdownsAllowEmpty, - AdStatuses: adStatuses, - AdsetStatuses: adsetStatuses, - CampaignStatuses: campaignStatuses, - ClientID: clientID, - ClientSecret: clientSecret, - Credentials: credentials, - CustomInsights: customInsights, - EndDate: endDate1, - FetchThumbnailImages: fetchThumbnailImages, - InsightsJobTimeout: insightsJobTimeout1, - InsightsLookbackWindow: insightsLookbackWindow1, - PageSize: pageSize, - StartDate: startDate1, + AccessToken: accessToken, + AccountIds: accountIds, + AdStatuses: adStatuses, + AdsetStatuses: adsetStatuses, + CampaignStatuses: campaignStatuses, + Credentials: credentials, + CustomInsights: customInsights, + EndDate: endDate1, + FetchThumbnailImages: fetchThumbnailImages, + InsightsJobTimeout: insightsJobTimeout1, + InsightsLookbackWindow: insightsLookbackWindow1, + PageSize: pageSize, + StartDate: startDate1, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -252,12 +231,6 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingPu for _, accountIdsItem := range r.Configuration.AccountIds { accountIds = append(accountIds, accountIdsItem.ValueString()) } - actionBreakdownsAllowEmpty := new(bool) - if !r.Configuration.ActionBreakdownsAllowEmpty.IsUnknown() && !r.Configuration.ActionBreakdownsAllowEmpty.IsNull() { - *actionBreakdownsAllowEmpty = r.Configuration.ActionBreakdownsAllowEmpty.ValueBool() - } else { - actionBreakdownsAllowEmpty = nil - } var adStatuses []shared.ValidAdStatuses = []shared.ValidAdStatuses{} for _, adStatusesItem := range r.Configuration.AdStatuses { adStatuses = append(adStatuses, shared.ValidAdStatuses(adStatusesItem.ValueString())) @@ -270,18 +243,6 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingPu for _, campaignStatusesItem := range r.Configuration.CampaignStatuses { campaignStatuses = append(campaignStatuses, shared.ValidCampaignStatuses(campaignStatusesItem.ValueString())) } - clientID := new(string) - if !r.Configuration.ClientID.IsUnknown() && !r.Configuration.ClientID.IsNull() { - *clientID = r.Configuration.ClientID.ValueString() - } else { - clientID = nil - } - clientSecret := new(string) - if !r.Configuration.ClientSecret.IsUnknown() && !r.Configuration.ClientSecret.IsNull() { - *clientSecret = r.Configuration.ClientSecret.ValueString() - } else { - clientSecret = nil - } var credentials shared.SourceFacebookMarketingUpdateAuthentication var authenticateViaFacebookMarketingOauth *shared.AuthenticateViaFacebookMarketingOauth if r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth != nil { @@ -291,12 +252,12 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingPu } else { accessToken1 = nil } - clientId1 := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientID.ValueString() - clientSecret1 := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientSecret.ValueString() + clientID := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientID.ValueString() + clientSecret := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientSecret.ValueString() authenticateViaFacebookMarketingOauth = &shared.AuthenticateViaFacebookMarketingOauth{ AccessToken: accessToken1, - ClientID: clientId1, - ClientSecret: clientSecret1, + ClientID: clientID, + ClientSecret: clientSecret, } } if authenticateViaFacebookMarketingOauth != nil { @@ -424,22 +385,19 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingPu startDate1 = nil } configuration := shared.SourceFacebookMarketingUpdate{ - AccessToken: accessToken, - AccountIds: accountIds, - ActionBreakdownsAllowEmpty: actionBreakdownsAllowEmpty, - AdStatuses: adStatuses, - AdsetStatuses: adsetStatuses, - CampaignStatuses: campaignStatuses, - ClientID: clientID, - ClientSecret: clientSecret, - Credentials: credentials, - CustomInsights: customInsights, - EndDate: endDate1, - FetchThumbnailImages: fetchThumbnailImages, - InsightsJobTimeout: insightsJobTimeout1, - InsightsLookbackWindow: insightsLookbackWindow1, - PageSize: pageSize, - StartDate: startDate1, + AccessToken: accessToken, + AccountIds: accountIds, + AdStatuses: adStatuses, + AdsetStatuses: adsetStatuses, + CampaignStatuses: campaignStatuses, + Credentials: credentials, + CustomInsights: customInsights, + EndDate: endDate1, + FetchThumbnailImages: fetchThumbnailImages, + InsightsJobTimeout: insightsJobTimeout1, + InsightsLookbackWindow: insightsLookbackWindow1, + PageSize: pageSize, + StartDate: startDate1, } name1 := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/source_file_resource.go b/internal/provider/source_file_resource.go index d8b8c63ab..f7b0f4427 100644 --- a/internal/provider/source_file_resource.go +++ b/internal/provider/source_file_resource.go @@ -111,6 +111,7 @@ func (r *SourceFileResource) Schema(ctx context.Context, req resource.SchemaRequ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("gcs_google_cloud_storage"), path.MatchRelative().AtParent().AtName("https_public_web"), + path.MatchRelative().AtParent().AtName("local_filesystem_limited"), path.MatchRelative().AtParent().AtName("s3_amazon_web_services"), path.MatchRelative().AtParent().AtName("scp_secure_copy_protocol"), path.MatchRelative().AtParent().AtName("sftp_secure_file_transfer_protocol"), @@ -131,6 +132,7 @@ func (r *SourceFileResource) Schema(ctx context.Context, req resource.SchemaRequ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("az_blob_azure_blob_storage"), path.MatchRelative().AtParent().AtName("https_public_web"), + path.MatchRelative().AtParent().AtName("local_filesystem_limited"), path.MatchRelative().AtParent().AtName("s3_amazon_web_services"), path.MatchRelative().AtParent().AtName("scp_secure_copy_protocol"), path.MatchRelative().AtParent().AtName("sftp_secure_file_transfer_protocol"), @@ -152,6 +154,22 @@ func (r *SourceFileResource) Schema(ctx context.Context, req resource.SchemaRequ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("az_blob_azure_blob_storage"), path.MatchRelative().AtParent().AtName("gcs_google_cloud_storage"), + path.MatchRelative().AtParent().AtName("local_filesystem_limited"), + path.MatchRelative().AtParent().AtName("s3_amazon_web_services"), + path.MatchRelative().AtParent().AtName("scp_secure_copy_protocol"), + path.MatchRelative().AtParent().AtName("sftp_secure_file_transfer_protocol"), + path.MatchRelative().AtParent().AtName("ssh_secure_shell"), + }...), + }, + }, + "local_filesystem_limited": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("az_blob_azure_blob_storage"), + path.MatchRelative().AtParent().AtName("gcs_google_cloud_storage"), + path.MatchRelative().AtParent().AtName("https_public_web"), path.MatchRelative().AtParent().AtName("s3_amazon_web_services"), path.MatchRelative().AtParent().AtName("scp_secure_copy_protocol"), path.MatchRelative().AtParent().AtName("sftp_secure_file_transfer_protocol"), @@ -177,6 +195,7 @@ func (r *SourceFileResource) Schema(ctx context.Context, req resource.SchemaRequ path.MatchRelative().AtParent().AtName("az_blob_azure_blob_storage"), path.MatchRelative().AtParent().AtName("gcs_google_cloud_storage"), path.MatchRelative().AtParent().AtName("https_public_web"), + path.MatchRelative().AtParent().AtName("local_filesystem_limited"), path.MatchRelative().AtParent().AtName("scp_secure_copy_protocol"), path.MatchRelative().AtParent().AtName("sftp_secure_file_transfer_protocol"), path.MatchRelative().AtParent().AtName("ssh_secure_shell"), @@ -208,6 +227,7 @@ func (r *SourceFileResource) Schema(ctx context.Context, req resource.SchemaRequ path.MatchRelative().AtParent().AtName("az_blob_azure_blob_storage"), path.MatchRelative().AtParent().AtName("gcs_google_cloud_storage"), path.MatchRelative().AtParent().AtName("https_public_web"), + path.MatchRelative().AtParent().AtName("local_filesystem_limited"), path.MatchRelative().AtParent().AtName("s3_amazon_web_services"), path.MatchRelative().AtParent().AtName("sftp_secure_file_transfer_protocol"), path.MatchRelative().AtParent().AtName("ssh_secure_shell"), @@ -239,6 +259,7 @@ func (r *SourceFileResource) Schema(ctx context.Context, req resource.SchemaRequ path.MatchRelative().AtParent().AtName("az_blob_azure_blob_storage"), path.MatchRelative().AtParent().AtName("gcs_google_cloud_storage"), path.MatchRelative().AtParent().AtName("https_public_web"), + path.MatchRelative().AtParent().AtName("local_filesystem_limited"), path.MatchRelative().AtParent().AtName("s3_amazon_web_services"), path.MatchRelative().AtParent().AtName("scp_secure_copy_protocol"), path.MatchRelative().AtParent().AtName("ssh_secure_shell"), @@ -270,6 +291,7 @@ func (r *SourceFileResource) Schema(ctx context.Context, req resource.SchemaRequ path.MatchRelative().AtParent().AtName("az_blob_azure_blob_storage"), path.MatchRelative().AtParent().AtName("gcs_google_cloud_storage"), path.MatchRelative().AtParent().AtName("https_public_web"), + path.MatchRelative().AtParent().AtName("local_filesystem_limited"), path.MatchRelative().AtParent().AtName("s3_amazon_web_services"), path.MatchRelative().AtParent().AtName("scp_secure_copy_protocol"), path.MatchRelative().AtParent().AtName("sftp_secure_file_transfer_protocol"), diff --git a/internal/provider/source_file_resource_sdk.go b/internal/provider/source_file_resource_sdk.go index 0ebfb027e..55f5e1e77 100644 --- a/internal/provider/source_file_resource_sdk.go +++ b/internal/provider/source_file_resource_sdk.go @@ -184,6 +184,15 @@ func (r *SourceFileResourceModel) ToSharedSourceFileCreateRequest() *shared.Sour SourceFileSFTPSecureFileTransferProtocol: sourceFileSFTPSecureFileTransferProtocol, } } + var sourceFileLocalFilesystemLimited *shared.SourceFileLocalFilesystemLimited + if r.Configuration.Provider.LocalFilesystemLimited != nil { + sourceFileLocalFilesystemLimited = &shared.SourceFileLocalFilesystemLimited{} + } + if sourceFileLocalFilesystemLimited != nil { + provider = shared.SourceFileStorageProvider{ + SourceFileLocalFilesystemLimited: sourceFileLocalFilesystemLimited, + } + } readerOptions := new(string) if !r.Configuration.ReaderOptions.IsUnknown() && !r.Configuration.ReaderOptions.IsNull() { *readerOptions = r.Configuration.ReaderOptions.ValueString() @@ -274,7 +283,7 @@ func (r *SourceFileResourceModel) ToSharedSourceFilePutRequest() *shared.SourceF GCSGoogleCloudStorage: gcsGoogleCloudStorage, } } - var sourceFileUpdateS3AmazonWebServices *shared.SourceFileUpdateS3AmazonWebServices + var s3AmazonWebServices *shared.S3AmazonWebServices if r.Configuration.Provider.S3AmazonWebServices != nil { awsAccessKeyID := new(string) if !r.Configuration.Provider.S3AmazonWebServices.AwsAccessKeyID.IsUnknown() && !r.Configuration.Provider.S3AmazonWebServices.AwsAccessKeyID.IsNull() { @@ -288,14 +297,14 @@ func (r *SourceFileResourceModel) ToSharedSourceFilePutRequest() *shared.SourceF } else { awsSecretAccessKey = nil } - sourceFileUpdateS3AmazonWebServices = &shared.SourceFileUpdateS3AmazonWebServices{ + s3AmazonWebServices = &shared.S3AmazonWebServices{ AwsAccessKeyID: awsAccessKeyID, AwsSecretAccessKey: awsSecretAccessKey, } } - if sourceFileUpdateS3AmazonWebServices != nil { + if s3AmazonWebServices != nil { provider = shared.StorageProvider{ - SourceFileUpdateS3AmazonWebServices: sourceFileUpdateS3AmazonWebServices, + S3AmazonWebServices: s3AmazonWebServices, } } var azBlobAzureBlobStorage *shared.AzBlobAzureBlobStorage @@ -408,6 +417,15 @@ func (r *SourceFileResourceModel) ToSharedSourceFilePutRequest() *shared.SourceF SFTPSecureFileTransferProtocol: sftpSecureFileTransferProtocol, } } + var localFilesystemLimited *shared.LocalFilesystemLimited + if r.Configuration.Provider.LocalFilesystemLimited != nil { + localFilesystemLimited = &shared.LocalFilesystemLimited{} + } + if localFilesystemLimited != nil { + provider = shared.StorageProvider{ + LocalFilesystemLimited: localFilesystemLimited, + } + } readerOptions := new(string) if !r.Configuration.ReaderOptions.IsUnknown() && !r.Configuration.ReaderOptions.IsNull() { *readerOptions = r.Configuration.ReaderOptions.ValueString() diff --git a/internal/provider/source_front_data_source.go b/internal/provider/source_front_data_source.go new file mode 100644 index 000000000..d0363a9b8 --- /dev/null +++ b/internal/provider/source_front_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 = &SourceFrontDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceFrontDataSource{} + +func NewSourceFrontDataSource() datasource.DataSource { + return &SourceFrontDataSource{} +} + +// SourceFrontDataSource is the data source implementation. +type SourceFrontDataSource struct { + client *sdk.SDK +} + +// SourceFrontDataSourceModel describes the data model. +type SourceFrontDataSourceModel 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 *SourceFrontDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_front" +} + +// Schema defines the schema for the data source. +func (r *SourceFrontDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceFront 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 *SourceFrontDataSource) 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 *SourceFrontDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceFrontDataSourceModel + 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.GetSourceFrontRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceFront(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_front_data_source_sdk.go b/internal/provider/source_front_data_source_sdk.go new file mode 100644 index 000000000..c09fa2d76 --- /dev/null +++ b/internal/provider/source_front_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 *SourceFrontDataSourceModel) 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_front_resource.go b/internal/provider/source_front_resource.go new file mode 100644 index 000000000..82b04ae42 --- /dev/null +++ b/internal/provider/source_front_resource.go @@ -0,0 +1,379 @@ +// 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/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 = &SourceFrontResource{} +var _ resource.ResourceWithImportState = &SourceFrontResource{} + +func NewSourceFrontResource() resource.Resource { + return &SourceFrontResource{} +} + +// SourceFrontResource defines the resource implementation. +type SourceFrontResource struct { + client *sdk.SDK +} + +// SourceFrontResourceModel describes the resource data model. +type SourceFrontResourceModel struct { + Configuration tfTypes.SourceFront `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 *SourceFrontResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_front" +} + +func (r *SourceFrontResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceFront 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, + }, + "page_limit": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("50"), + Description: `Page limit for the responses. Default: "50"`, + }, + "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 *SourceFrontResource) 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 *SourceFrontResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceFrontResourceModel + 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.ToSharedSourceFrontCreateRequest() + res, err := r.client.Sources.CreateSourceFront(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.GetSourceFrontRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceFront(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 *SourceFrontResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceFrontResourceModel + 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.GetSourceFrontRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceFront(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 *SourceFrontResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceFrontResourceModel + 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 + } + + sourceFrontPutRequest := data.ToSharedSourceFrontPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceFrontRequest{ + SourceFrontPutRequest: sourceFrontPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceFront(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.GetSourceFrontRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceFront(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 *SourceFrontResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceFrontResourceModel + 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.DeleteSourceFrontRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceFront(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 *SourceFrontResource) 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_front_resource_sdk.go b/internal/provider/source_front_resource_sdk.go new file mode 100644 index 000000000..ce1030fea --- /dev/null +++ b/internal/provider/source_front_resource_sdk.go @@ -0,0 +1,80 @@ +// 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 *SourceFrontResourceModel) ToSharedSourceFrontCreateRequest() *shared.SourceFrontCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + pageLimit := new(string) + if !r.Configuration.PageLimit.IsUnknown() && !r.Configuration.PageLimit.IsNull() { + *pageLimit = r.Configuration.PageLimit.ValueString() + } else { + pageLimit = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceFront{ + APIKey: apiKey, + PageLimit: pageLimit, + 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.SourceFrontCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceFrontResourceModel) 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 *SourceFrontResourceModel) ToSharedSourceFrontPutRequest() *shared.SourceFrontPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + pageLimit := new(string) + if !r.Configuration.PageLimit.IsUnknown() && !r.Configuration.PageLimit.IsNull() { + *pageLimit = r.Configuration.PageLimit.ValueString() + } else { + pageLimit = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceFrontUpdate{ + APIKey: apiKey, + PageLimit: pageLimit, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceFrontPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_gcs_resource.go b/internal/provider/source_gcs_resource.go index 1dbcc9801..304733feb 100644 --- a/internal/provider/source_gcs_resource.go +++ b/internal/provider/source_gcs_resource.go @@ -198,18 +198,6 @@ func (r *SourceGcsResource) Schema(ctx context.Context, req resource.SchemaReque Default: booldefault.StaticBool(false), Description: `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": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("None"), - Description: `How to infer the types of the columns. If none, inference default to strings. must be one of ["None", "Primitive Types Only"]; Default: "None"`, - Validators: []validator.String{ - stringvalidator.OneOf( - "None", - "Primitive Types Only", - ), - }, - }, "null_values": schema.ListAttribute{ Optional: true, ElementType: types.StringType, @@ -416,18 +404,10 @@ func (r *SourceGcsResource) Schema(ctx context.Context, req resource.SchemaReque Optional: true, Description: `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": schema.StringAttribute{ - Optional: true, - 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, Description: `The name of the stream.`, }, - "primary_key": schema.StringAttribute{ - Optional: 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.`, diff --git a/internal/provider/source_gcs_resource_sdk.go b/internal/provider/source_gcs_resource_sdk.go index dbb3379af..f2234df20 100644 --- a/internal/provider/source_gcs_resource_sdk.go +++ b/internal/provider/source_gcs_resource_sdk.go @@ -115,12 +115,6 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source } else { ignoreErrorsOnFieldsMismatch = nil } - inferenceType := new(shared.SourceGcsInferenceType) - if !streamsItem.Format.CSVFormat.InferenceType.IsUnknown() && !streamsItem.Format.CSVFormat.InferenceType.IsNull() { - *inferenceType = shared.SourceGcsInferenceType(streamsItem.Format.CSVFormat.InferenceType.ValueString()) - } else { - inferenceType = nil - } var nullValues []string = []string{} for _, nullValuesItem := range streamsItem.Format.CSVFormat.NullValues { nullValues = append(nullValues, nullValuesItem.ValueString()) @@ -161,7 +155,6 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source FalseValues: falseValues, HeaderDefinition: headerDefinition, IgnoreErrorsOnFieldsMismatch: ignoreErrorsOnFieldsMismatch, - InferenceType: inferenceType, NullValues: nullValues, QuoteChar: quoteChar, SkipRowsAfterHeader: skipRowsAfterHeader, @@ -291,19 +284,7 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source } else { inputSchema = nil } - legacyPrefix := new(string) - if !streamsItem.LegacyPrefix.IsUnknown() && !streamsItem.LegacyPrefix.IsNull() { - *legacyPrefix = streamsItem.LegacyPrefix.ValueString() - } else { - legacyPrefix = nil - } 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() @@ -327,9 +308,7 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsCreateRequest() *shared.Source Format: format, Globs: globs, InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, Name: name1, - PrimaryKey: primaryKey, RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, Schemaless: schemaless, ValidationPolicy: validationPolicy, @@ -481,12 +460,6 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs } else { ignoreErrorsOnFieldsMismatch = nil } - inferenceType := new(shared.SourceGcsUpdateInferenceType) - if !streamsItem.Format.CSVFormat.InferenceType.IsUnknown() && !streamsItem.Format.CSVFormat.InferenceType.IsNull() { - *inferenceType = shared.SourceGcsUpdateInferenceType(streamsItem.Format.CSVFormat.InferenceType.ValueString()) - } else { - inferenceType = nil - } var nullValues []string = []string{} for _, nullValuesItem := range streamsItem.Format.CSVFormat.NullValues { nullValues = append(nullValues, nullValuesItem.ValueString()) @@ -527,7 +500,6 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs FalseValues: falseValues, HeaderDefinition: headerDefinition, IgnoreErrorsOnFieldsMismatch: ignoreErrorsOnFieldsMismatch, - InferenceType: inferenceType, NullValues: nullValues, QuoteChar: quoteChar, SkipRowsAfterHeader: skipRowsAfterHeader, @@ -657,19 +629,7 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs } else { inputSchema = nil } - legacyPrefix := new(string) - if !streamsItem.LegacyPrefix.IsUnknown() && !streamsItem.LegacyPrefix.IsNull() { - *legacyPrefix = streamsItem.LegacyPrefix.ValueString() - } else { - legacyPrefix = nil - } 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() @@ -693,9 +653,7 @@ func (r *SourceGcsResourceModel) ToSharedSourceGcsPutRequest() *shared.SourceGcs Format: format, Globs: globs, InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, Name: name1, - PrimaryKey: primaryKey, RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, Schemaless: schemaless, ValidationPolicy: validationPolicy, diff --git a/internal/provider/source_github_resource.go b/internal/provider/source_github_resource.go index ecbef5e72..82f9ac665 100644 --- a/internal/provider/source_github_resource.go +++ b/internal/provider/source_github_resource.go @@ -69,10 +69,6 @@ func (r *SourceGithubResource) Schema(ctx context.Context, req resource.SchemaRe Default: stringdefault.StaticString("https://api.github.com/"), Description: `Please enter your basic URL from self-hosted GitHub instance or leave it empty to use GitHub. Default: "https://api.github.com/"`, }, - "branch": schema.StringAttribute{ - Optional: true, - Description: `(DEPRCATED) Space-delimited list of GitHub repository branches to pull commits for, e.g. ` + "`" + `airbytehq/airbyte/master` + "`" + `. If no branches are specified for a repository, the default branch will be pulled.`, - }, "branches": schema.ListAttribute{ Optional: true, ElementType: types.StringType, @@ -141,10 +137,6 @@ func (r *SourceGithubResource) Schema(ctx context.Context, req resource.SchemaRe listvalidator.SizeAtLeast(1), }, }, - "repository": schema.StringAttribute{ - Optional: true, - Description: `(DEPRCATED) Space-delimited list of GitHub organizations/repositories, e.g. ` + "`" + `airbytehq/airbyte` + "`" + ` for single repository, ` + "`" + `airbytehq/*` + "`" + ` for get all repositories from organization and ` + "`" + `airbytehq/airbyte airbytehq/another-repo` + "`" + ` for multiple repositories.`, - }, "start_date": schema.StringAttribute{ Optional: true, Description: `The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the docs for more info`, diff --git a/internal/provider/source_github_resource_sdk.go b/internal/provider/source_github_resource_sdk.go index 88ea0c0e1..7ddf8bb98 100644 --- a/internal/provider/source_github_resource_sdk.go +++ b/internal/provider/source_github_resource_sdk.go @@ -15,12 +15,6 @@ func (r *SourceGithubResourceModel) ToSharedSourceGithubCreateRequest() *shared. } else { apiURL = nil } - branch := new(string) - if !r.Configuration.Branch.IsUnknown() && !r.Configuration.Branch.IsNull() { - *branch = r.Configuration.Branch.ValueString() - } else { - branch = nil - } var branches []string = []string{} for _, branchesItem := range r.Configuration.Branches { branches = append(branches, branchesItem.ValueString()) @@ -74,12 +68,6 @@ func (r *SourceGithubResourceModel) ToSharedSourceGithubCreateRequest() *shared. for _, repositoriesItem := range r.Configuration.Repositories { repositories = append(repositories, repositoriesItem.ValueString()) } - repository := new(string) - if !r.Configuration.Repository.IsUnknown() && !r.Configuration.Repository.IsNull() { - *repository = r.Configuration.Repository.ValueString() - } else { - repository = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -88,12 +76,10 @@ func (r *SourceGithubResourceModel) ToSharedSourceGithubCreateRequest() *shared. } configuration := shared.SourceGithub{ APIURL: apiURL, - Branch: branch, Branches: branches, Credentials: credentials, MaxWaitingTime: maxWaitingTime, Repositories: repositories, - Repository: repository, StartDate: startDate, } definitionID := new(string) @@ -136,12 +122,6 @@ func (r *SourceGithubResourceModel) ToSharedSourceGithubPutRequest() *shared.Sou } else { apiURL = nil } - branch := new(string) - if !r.Configuration.Branch.IsUnknown() && !r.Configuration.Branch.IsNull() { - *branch = r.Configuration.Branch.ValueString() - } else { - branch = nil - } var branches []string = []string{} for _, branchesItem := range r.Configuration.Branches { branches = append(branches, branchesItem.ValueString()) @@ -195,12 +175,6 @@ func (r *SourceGithubResourceModel) ToSharedSourceGithubPutRequest() *shared.Sou for _, repositoriesItem := range r.Configuration.Repositories { repositories = append(repositories, repositoriesItem.ValueString()) } - repository := new(string) - if !r.Configuration.Repository.IsUnknown() && !r.Configuration.Repository.IsNull() { - *repository = r.Configuration.Repository.ValueString() - } else { - repository = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -209,12 +183,10 @@ func (r *SourceGithubResourceModel) ToSharedSourceGithubPutRequest() *shared.Sou } configuration := shared.SourceGithubUpdate{ APIURL: apiURL, - Branch: branch, Branches: branches, Credentials: credentials, MaxWaitingTime: maxWaitingTime, Repositories: repositories, - Repository: repository, StartDate: startDate, } name := r.Name.ValueString() diff --git a/internal/provider/source_gitlab_resource.go b/internal/provider/source_gitlab_resource.go index ba18a4015..3663807e6 100644 --- a/internal/provider/source_gitlab_resource.go +++ b/internal/provider/source_gitlab_resource.go @@ -127,19 +127,11 @@ func (r *SourceGitlabResource) Schema(ctx context.Context, req resource.SchemaRe validators.ExactlyOneChild(), }, }, - "groups": schema.StringAttribute{ - Optional: true, - Description: `[DEPRECATED] Space-delimited list of groups. e.g. airbyte.io.`, - }, "groups_list": schema.ListAttribute{ Optional: true, ElementType: types.StringType, Description: `List of groups. e.g. airbyte.io.`, }, - "projects": schema.StringAttribute{ - Optional: true, - Description: `[DEPRECATED] Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab.`, - }, "projects_list": schema.ListAttribute{ Optional: true, ElementType: types.StringType, diff --git a/internal/provider/source_gitlab_resource_sdk.go b/internal/provider/source_gitlab_resource_sdk.go index 19c56499e..93b8b9259 100644 --- a/internal/provider/source_gitlab_resource_sdk.go +++ b/internal/provider/source_gitlab_resource_sdk.go @@ -48,22 +48,10 @@ func (r *SourceGitlabResourceModel) ToSharedSourceGitlabCreateRequest() *shared. SourceGitlabPrivateToken: sourceGitlabPrivateToken, } } - groups := new(string) - if !r.Configuration.Groups.IsUnknown() && !r.Configuration.Groups.IsNull() { - *groups = r.Configuration.Groups.ValueString() - } else { - groups = nil - } var groupsList []string = []string{} for _, groupsListItem := range r.Configuration.GroupsList { groupsList = append(groupsList, groupsListItem.ValueString()) } - projects := new(string) - if !r.Configuration.Projects.IsUnknown() && !r.Configuration.Projects.IsNull() { - *projects = r.Configuration.Projects.ValueString() - } else { - projects = nil - } var projectsList []string = []string{} for _, projectsListItem := range r.Configuration.ProjectsList { projectsList = append(projectsList, projectsListItem.ValueString()) @@ -77,9 +65,7 @@ func (r *SourceGitlabResourceModel) ToSharedSourceGitlabCreateRequest() *shared. configuration := shared.SourceGitlab{ APIURL: apiURL, Credentials: credentials, - Groups: groups, GroupsList: groupsList, - Projects: projects, ProjectsList: projectsList, StartDate: startDate, } @@ -156,22 +142,10 @@ func (r *SourceGitlabResourceModel) ToSharedSourceGitlabPutRequest() *shared.Sou PrivateToken: privateToken, } } - groups := new(string) - if !r.Configuration.Groups.IsUnknown() && !r.Configuration.Groups.IsNull() { - *groups = r.Configuration.Groups.ValueString() - } else { - groups = nil - } var groupsList []string = []string{} for _, groupsListItem := range r.Configuration.GroupsList { groupsList = append(groupsList, groupsListItem.ValueString()) } - projects := new(string) - if !r.Configuration.Projects.IsUnknown() && !r.Configuration.Projects.IsNull() { - *projects = r.Configuration.Projects.ValueString() - } else { - projects = nil - } var projectsList []string = []string{} for _, projectsListItem := range r.Configuration.ProjectsList { projectsList = append(projectsList, projectsListItem.ValueString()) @@ -185,9 +159,7 @@ func (r *SourceGitlabResourceModel) ToSharedSourceGitlabPutRequest() *shared.Sou configuration := shared.SourceGitlabUpdate{ APIURL: apiURL, Credentials: credentials, - Groups: groups, GroupsList: groupsList, - Projects: projects, ProjectsList: projectsList, StartDate: startDate, } diff --git a/internal/provider/source_googleanalyticsdataapi_resource_sdk.go b/internal/provider/source_googleanalyticsdataapi_resource_sdk.go index f8dd366af..6eb0d3bc7 100644 --- a/internal/provider/source_googleanalyticsdataapi_resource_sdk.go +++ b/internal/provider/source_googleanalyticsdataapi_resource_sdk.go @@ -1692,7 +1692,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic var expressions []shared.Expression = []shared.Expression{} for _, expressionsItem := range customReportsArrayItem.DimensionFilter.AndGroup.Expressions { fieldName := expressionsItem.FieldName.ValueString() - var filter shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter + var filter shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter *shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter if expressionsItem.Filter.StringFilter != nil { caseSensitive := new(bool) @@ -1713,7 +1713,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter != nil { - filter = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter{ + filter = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter, } } @@ -1735,7 +1735,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter != nil { - filter = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter{ + filter = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter, } } @@ -1776,7 +1776,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter != nil { - filter = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter{ + filter = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter, } } @@ -1838,7 +1838,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter != nil { - filter = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter{ + filter = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter, } } @@ -1861,7 +1861,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic var expressions1 []shared.SourceGoogleAnalyticsDataAPIUpdateExpression = []shared.SourceGoogleAnalyticsDataAPIUpdateExpression{} for _, expressionsItem1 := range customReportsArrayItem.DimensionFilter.OrGroup.Expressions { fieldName1 := expressionsItem1.FieldName.ValueString() - var filter1 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter + var filter1 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter *shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter if expressionsItem1.Filter.StringFilter != nil { caseSensitive2 := new(bool) @@ -1882,7 +1882,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter != nil { - filter1 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ + filter1 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter, } } @@ -1904,7 +1904,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter != nil { - filter1 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ + filter1 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter, } } @@ -1945,7 +1945,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter != nil { - filter1 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ + filter1 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter, } } @@ -2007,7 +2007,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter != nil { - filter1 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ + filter1 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter, } } @@ -2030,7 +2030,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic var expression *shared.SourceGoogleAnalyticsDataAPIUpdateSchemasExpression if customReportsArrayItem.DimensionFilter.NotExpression.Expression != nil { fieldName2 := customReportsArrayItem.DimensionFilter.NotExpression.Expression.FieldName.ValueString() - var filter2 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter + var filter2 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter var sourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter *shared.SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter if customReportsArrayItem.DimensionFilter.NotExpression.Expression.Filter.StringFilter != nil { caseSensitive4 := new(bool) @@ -2051,7 +2051,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter != nil { - filter2 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ + filter2 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter, } } @@ -2073,7 +2073,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter != nil { - filter2 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ + filter2 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter, } } @@ -2114,7 +2114,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter != nil { - filter2 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ + filter2 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter, } } @@ -2176,7 +2176,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter != nil { - filter2 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ + filter2 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter, } } @@ -2194,10 +2194,10 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic NotExpression: notExpression, } } - var filter3 *shared.Filter + var sourceGoogleAnalyticsDataAPIUpdateFilter *shared.SourceGoogleAnalyticsDataAPIUpdateFilter if customReportsArrayItem.DimensionFilter.Filter != nil { fieldName3 := customReportsArrayItem.DimensionFilter.Filter.FieldName.ValueString() - var filter4 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter + var filter3 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter var stringFilter *shared.StringFilter if customReportsArrayItem.DimensionFilter.Filter.Filter.StringFilter != nil { caseSensitive6 := new(bool) @@ -2218,7 +2218,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if stringFilter != nil { - filter4 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{ + filter3 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ StringFilter: stringFilter, } } @@ -2240,7 +2240,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if inListFilter != nil { - filter4 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{ + filter3 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ InListFilter: inListFilter, } } @@ -2281,7 +2281,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if numericFilter != nil { - filter4 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{ + filter3 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ NumericFilter: numericFilter, } } @@ -2343,18 +2343,18 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if betweenFilter != nil { - filter4 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{ + filter3 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ BetweenFilter: betweenFilter, } } - filter3 = &shared.Filter{ + sourceGoogleAnalyticsDataAPIUpdateFilter = &shared.SourceGoogleAnalyticsDataAPIUpdateFilter{ FieldName: fieldName3, - Filter: filter4, + Filter: filter3, } } - if filter3 != nil { + if sourceGoogleAnalyticsDataAPIUpdateFilter != nil { dimensionFilter = &shared.DimensionsFilter{ - Filter: filter3, + SourceGoogleAnalyticsDataAPIUpdateFilter: sourceGoogleAnalyticsDataAPIUpdateFilter, } } } @@ -2369,7 +2369,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic var expressions2 []shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayExpression = []shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayExpression{} for _, expressionsItem2 := range customReportsArrayItem.MetricFilter.AndGroup.Expressions { fieldName4 := expressionsItem2.FieldName.ValueString() - var filter5 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter + var filter4 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter *shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter if expressionsItem2.Filter.StringFilter != nil { caseSensitive8 := new(bool) @@ -2390,7 +2390,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter != nil { - filter5 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ + filter4 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter, } } @@ -2412,7 +2412,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter != nil { - filter5 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ + filter4 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter, } } @@ -2453,7 +2453,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter != nil { - filter5 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ + filter4 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter, } } @@ -2515,13 +2515,13 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter != nil { - filter5 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ + filter4 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter, } } expressions2 = append(expressions2, shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayExpression{ FieldName: fieldName4, - Filter: filter5, + Filter: filter4, }) } sourceGoogleAnalyticsDataAPIUpdateAndGroup = &shared.SourceGoogleAnalyticsDataAPIUpdateAndGroup{ @@ -2538,7 +2538,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic var expressions3 []shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterExpression = []shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterExpression{} for _, expressionsItem3 := range customReportsArrayItem.MetricFilter.OrGroup.Expressions { fieldName5 := expressionsItem3.FieldName.ValueString() - var filter6 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter + var filter5 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter *shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter if expressionsItem3.Filter.StringFilter != nil { caseSensitive10 := new(bool) @@ -2559,7 +2559,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter != nil { - filter6 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter{ + filter5 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter, } } @@ -2581,7 +2581,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter != nil { - filter6 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter{ + filter5 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter, } } @@ -2622,7 +2622,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter != nil { - filter6 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter{ + filter5 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter, } } @@ -2684,13 +2684,13 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter != nil { - filter6 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter{ + filter5 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter, } } expressions3 = append(expressions3, shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterExpression{ FieldName: fieldName5, - Filter: filter6, + Filter: filter5, }) } sourceGoogleAnalyticsDataAPIUpdateOrGroup = &shared.SourceGoogleAnalyticsDataAPIUpdateOrGroup{ @@ -2707,7 +2707,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic var expression1 *shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterExpression if customReportsArrayItem.MetricFilter.NotExpression.Expression != nil { fieldName6 := customReportsArrayItem.MetricFilter.NotExpression.Expression.FieldName.ValueString() - var filter7 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter + var filter6 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter *shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter if customReportsArrayItem.MetricFilter.NotExpression.Expression.Filter.StringFilter != nil { caseSensitive12 := new(bool) @@ -2728,7 +2728,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter != nil { - filter7 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter{ + filter6 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter, } } @@ -2750,7 +2750,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter != nil { - filter7 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter{ + filter6 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter, } } @@ -2791,7 +2791,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter != nil { - filter7 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter{ + filter6 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter, } } @@ -2853,13 +2853,13 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter != nil { - filter7 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter{ + filter6 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter, } } expression1 = &shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilterExpression{ FieldName: fieldName6, - Filter: filter7, + Filter: filter6, } } sourceGoogleAnalyticsDataAPIUpdateNotExpression = &shared.SourceGoogleAnalyticsDataAPIUpdateNotExpression{ @@ -2871,10 +2871,10 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic SourceGoogleAnalyticsDataAPIUpdateNotExpression: sourceGoogleAnalyticsDataAPIUpdateNotExpression, } } - var sourceGoogleAnalyticsDataAPIUpdateFilter *shared.SourceGoogleAnalyticsDataAPIUpdateFilter + var sourceGoogleAnalyticsDataAPIUpdateSchemasFilter *shared.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter if customReportsArrayItem.MetricFilter.Filter != nil { fieldName7 := customReportsArrayItem.MetricFilter.Filter.FieldName.ValueString() - var filter8 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter + var filter7 shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter var sourceGoogleAnalyticsDataAPIUpdateStringFilter *shared.SourceGoogleAnalyticsDataAPIUpdateStringFilter if customReportsArrayItem.MetricFilter.Filter.Filter.StringFilter != nil { caseSensitive14 := new(bool) @@ -2895,7 +2895,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateStringFilter != nil { - filter8 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ + filter7 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateStringFilter: sourceGoogleAnalyticsDataAPIUpdateStringFilter, } } @@ -2917,7 +2917,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateInListFilter != nil { - filter8 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ + filter7 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateInListFilter: sourceGoogleAnalyticsDataAPIUpdateInListFilter, } } @@ -2958,7 +2958,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateNumericFilter != nil { - filter8 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ + filter7 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateNumericFilter: sourceGoogleAnalyticsDataAPIUpdateNumericFilter, } } @@ -3020,18 +3020,18 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic } } if sourceGoogleAnalyticsDataAPIUpdateBetweenFilter != nil { - filter8 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ + filter7 = shared.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateBetweenFilter: sourceGoogleAnalyticsDataAPIUpdateBetweenFilter, } } - sourceGoogleAnalyticsDataAPIUpdateFilter = &shared.SourceGoogleAnalyticsDataAPIUpdateFilter{ + sourceGoogleAnalyticsDataAPIUpdateSchemasFilter = &shared.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{ FieldName: fieldName7, - Filter: filter8, + Filter: filter7, } } - if sourceGoogleAnalyticsDataAPIUpdateFilter != nil { + if sourceGoogleAnalyticsDataAPIUpdateSchemasFilter != nil { metricFilter = &shared.MetricsFilter{ - SourceGoogleAnalyticsDataAPIUpdateFilter: sourceGoogleAnalyticsDataAPIUpdateFilter, + SourceGoogleAnalyticsDataAPIUpdateSchemasFilter: sourceGoogleAnalyticsDataAPIUpdateSchemasFilter, } } } diff --git a/internal/provider/source_googledrive_resource.go b/internal/provider/source_googledrive_resource.go index 21d9c38e5..43290ec85 100644 --- a/internal/provider/source_googledrive_resource.go +++ b/internal/provider/source_googledrive_resource.go @@ -389,10 +389,6 @@ func (r *SourceGoogleDriveResource) Schema(ctx context.Context, req resource.Sch Required: true, Description: `The name of the stream.`, }, - "primary_key": schema.StringAttribute{ - Optional: 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{ Computed: true, Optional: true, diff --git a/internal/provider/source_googledrive_resource_sdk.go b/internal/provider/source_googledrive_resource_sdk.go index bc9beb6a2..6f9fe57ad 100644 --- a/internal/provider/source_googledrive_resource_sdk.go +++ b/internal/provider/source_googledrive_resource_sdk.go @@ -270,12 +270,6 @@ func (r *SourceGoogleDriveResourceModel) ToSharedSourceGoogleDriveCreateRequest( inputSchema = nil } name := streamsItem.Name.ValueString() - primaryKey := new(string) - if !streamsItem.PrimaryKey.IsUnknown() && !streamsItem.PrimaryKey.IsNull() { - *primaryKey = streamsItem.PrimaryKey.ValueString() - } else { - primaryKey = nil - } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -294,7 +288,6 @@ func (r *SourceGoogleDriveResourceModel) ToSharedSourceGoogleDriveCreateRequest( Globs: globs, InputSchema: inputSchema, Name: name, - PrimaryKey: primaryKey, Schemaless: schemaless, ValidationPolicy: validationPolicy, }) @@ -600,12 +593,6 @@ func (r *SourceGoogleDriveResourceModel) ToSharedSourceGoogleDrivePutRequest() * inputSchema = nil } name := streamsItem.Name.ValueString() - primaryKey := new(string) - if !streamsItem.PrimaryKey.IsUnknown() && !streamsItem.PrimaryKey.IsNull() { - *primaryKey = streamsItem.PrimaryKey.ValueString() - } else { - primaryKey = nil - } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -624,7 +611,6 @@ func (r *SourceGoogleDriveResourceModel) ToSharedSourceGoogleDrivePutRequest() * Globs: globs, InputSchema: inputSchema, Name: name, - PrimaryKey: primaryKey, Schemaless: schemaless, ValidationPolicy: validationPolicy, }) diff --git a/internal/provider/source_googlesearchconsole_resource.go b/internal/provider/source_googlesearchconsole_resource.go index dbd032ae4..0ae9c9ace 100644 --- a/internal/provider/source_googlesearchconsole_resource.go +++ b/internal/provider/source_googlesearchconsole_resource.go @@ -119,10 +119,6 @@ func (r *SourceGoogleSearchConsoleResource) Schema(ctx context.Context, req reso validators.ExactlyOneChild(), }, }, - "custom_reports": schema.StringAttribute{ - Optional: true, - Description: `(DEPRCATED) A JSON array describing the custom reports you want to sync from Google Search Console. See our documentation for more information on formulating custom reports.`, - }, "custom_reports_array": schema.ListNestedAttribute{ Optional: true, NestedObject: schema.NestedAttributeObject{ diff --git a/internal/provider/source_googlesearchconsole_resource_sdk.go b/internal/provider/source_googlesearchconsole_resource_sdk.go index d267ed687..383ec5c0b 100644 --- a/internal/provider/source_googlesearchconsole_resource_sdk.go +++ b/internal/provider/source_googlesearchconsole_resource_sdk.go @@ -47,12 +47,6 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToSharedSourceGoogleSearchConso SourceGoogleSearchConsoleServiceAccountKeyAuthentication: sourceGoogleSearchConsoleServiceAccountKeyAuthentication, } } - customReports := new(string) - if !r.Configuration.CustomReports.IsUnknown() && !r.Configuration.CustomReports.IsNull() { - *customReports = r.Configuration.CustomReports.ValueString() - } else { - customReports = nil - } var customReportsArray []shared.SourceGoogleSearchConsoleCustomReportConfig = []shared.SourceGoogleSearchConsoleCustomReportConfig{} for _, customReportsArrayItem := range r.Configuration.CustomReportsArray { var dimensions []shared.SourceGoogleSearchConsoleValidEnums = []shared.SourceGoogleSearchConsoleValidEnums{} @@ -89,7 +83,6 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToSharedSourceGoogleSearchConso } configuration := shared.SourceGoogleSearchConsole{ Authorization: authorization, - CustomReports: customReports, CustomReportsArray: customReportsArray, DataState: dataState, EndDate: endDate, @@ -168,12 +161,6 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToSharedSourceGoogleSearchConso SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication: sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication, } } - customReports := new(string) - if !r.Configuration.CustomReports.IsUnknown() && !r.Configuration.CustomReports.IsNull() { - *customReports = r.Configuration.CustomReports.ValueString() - } else { - customReports = nil - } var customReportsArray []shared.SourceGoogleSearchConsoleUpdateCustomReportConfig = []shared.SourceGoogleSearchConsoleUpdateCustomReportConfig{} for _, customReportsArrayItem := range r.Configuration.CustomReportsArray { var dimensions []shared.SourceGoogleSearchConsoleUpdateValidEnums = []shared.SourceGoogleSearchConsoleUpdateValidEnums{} @@ -210,7 +197,6 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToSharedSourceGoogleSearchConso } configuration := shared.SourceGoogleSearchConsoleUpdate{ Authorization: authorization, - CustomReports: customReports, CustomReportsArray: customReportsArray, DataState: dataState, EndDate: endDate, diff --git a/internal/provider/source_zendesksell_data_source.go b/internal/provider/source_googletasks_data_source.go similarity index 78% rename from internal/provider/source_zendesksell_data_source.go rename to internal/provider/source_googletasks_data_source.go index 23ad87d5f..2ebd8325a 100644 --- a/internal/provider/source_zendesksell_data_source.go +++ b/internal/provider/source_googletasks_data_source.go @@ -14,20 +14,20 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ datasource.DataSource = &SourceZendeskSellDataSource{} -var _ datasource.DataSourceWithConfigure = &SourceZendeskSellDataSource{} +var _ datasource.DataSource = &SourceGoogleTasksDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceGoogleTasksDataSource{} -func NewSourceZendeskSellDataSource() datasource.DataSource { - return &SourceZendeskSellDataSource{} +func NewSourceGoogleTasksDataSource() datasource.DataSource { + return &SourceGoogleTasksDataSource{} } -// SourceZendeskSellDataSource is the data source implementation. -type SourceZendeskSellDataSource struct { +// SourceGoogleTasksDataSource is the data source implementation. +type SourceGoogleTasksDataSource struct { client *sdk.SDK } -// SourceZendeskSellDataSourceModel describes the data model. -type SourceZendeskSellDataSourceModel struct { +// SourceGoogleTasksDataSourceModel describes the data model. +type SourceGoogleTasksDataSourceModel struct { Configuration types.String `tfsdk:"configuration"` Name types.String `tfsdk:"name"` SourceID types.String `tfsdk:"source_id"` @@ -36,14 +36,14 @@ type SourceZendeskSellDataSourceModel struct { } // Metadata returns the data source type name. -func (r *SourceZendeskSellDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_zendesk_sell" +func (r *SourceGoogleTasksDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_google_tasks" } // Schema defines the schema for the data source. -func (r *SourceZendeskSellDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { +func (r *SourceGoogleTasksDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceZendeskSell DataSource", + MarkdownDescription: "SourceGoogleTasks DataSource", Attributes: map[string]schema.Attribute{ "configuration": schema.StringAttribute{ @@ -66,7 +66,7 @@ func (r *SourceZendeskSellDataSource) Schema(ctx context.Context, req datasource } } -func (r *SourceZendeskSellDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { +func (r *SourceGoogleTasksDataSource) 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 *SourceZendeskSellDataSource) Configure(ctx context.Context, req datasou r.client = client } -func (r *SourceZendeskSellDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data *SourceZendeskSellDataSourceModel +func (r *SourceGoogleTasksDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceGoogleTasksDataSourceModel var item types.Object resp.Diagnostics.Append(req.Config.Get(ctx, &item)...) @@ -105,10 +105,10 @@ func (r *SourceZendeskSellDataSource) Read(ctx context.Context, req datasource.R } sourceID := data.SourceID.ValueString() - request := operations.GetSourceZendeskSellRequest{ + request := operations.GetSourceGoogleTasksRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceZendeskSell(ctx, request) + res, err := r.client.Sources.GetSourceGoogleTasks(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_zendesksell_data_source_sdk.go b/internal/provider/source_googletasks_data_source_sdk.go similarity index 90% rename from internal/provider/source_zendesksell_data_source_sdk.go rename to internal/provider/source_googletasks_data_source_sdk.go index cbaee4fb6..308876d95 100644 --- a/internal/provider/source_zendesksell_data_source_sdk.go +++ b/internal/provider/source_googletasks_data_source_sdk.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *SourceZendeskSellDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *SourceGoogleTasksDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { if resp != nil { configurationResult, _ := json.Marshal(resp.Configuration) r.Configuration = types.StringValue(string(configurationResult)) diff --git a/internal/provider/source_googletasks_resource.go b/internal/provider/source_googletasks_resource.go new file mode 100644 index 000000000..1d2830b2d --- /dev/null +++ b/internal/provider/source_googletasks_resource.go @@ -0,0 +1,379 @@ +// 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/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 = &SourceGoogleTasksResource{} +var _ resource.ResourceWithImportState = &SourceGoogleTasksResource{} + +func NewSourceGoogleTasksResource() resource.Resource { + return &SourceGoogleTasksResource{} +} + +// SourceGoogleTasksResource defines the resource implementation. +type SourceGoogleTasksResource struct { + client *sdk.SDK +} + +// SourceGoogleTasksResourceModel describes the resource data model. +type SourceGoogleTasksResourceModel struct { + Configuration tfTypes.SourceGoogleTasks `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 *SourceGoogleTasksResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_google_tasks" +} + +func (r *SourceGoogleTasksResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceGoogleTasks 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, + }, + "records_limit": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("50"), + Description: `The maximum number of records to be returned per request. Default: "50"`, + }, + "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 *SourceGoogleTasksResource) 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 *SourceGoogleTasksResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceGoogleTasksResourceModel + 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.ToSharedSourceGoogleTasksCreateRequest() + res, err := r.client.Sources.CreateSourceGoogleTasks(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.GetSourceGoogleTasksRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceGoogleTasks(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 *SourceGoogleTasksResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceGoogleTasksResourceModel + 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.GetSourceGoogleTasksRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceGoogleTasks(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 *SourceGoogleTasksResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceGoogleTasksResourceModel + 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 + } + + sourceGoogleTasksPutRequest := data.ToSharedSourceGoogleTasksPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceGoogleTasksRequest{ + SourceGoogleTasksPutRequest: sourceGoogleTasksPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceGoogleTasks(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.GetSourceGoogleTasksRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceGoogleTasks(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 *SourceGoogleTasksResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceGoogleTasksResourceModel + 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.DeleteSourceGoogleTasksRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceGoogleTasks(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 *SourceGoogleTasksResource) 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_googletasks_resource_sdk.go b/internal/provider/source_googletasks_resource_sdk.go new file mode 100644 index 000000000..ecdc0ae53 --- /dev/null +++ b/internal/provider/source_googletasks_resource_sdk.go @@ -0,0 +1,80 @@ +// 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 *SourceGoogleTasksResourceModel) ToSharedSourceGoogleTasksCreateRequest() *shared.SourceGoogleTasksCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + recordsLimit := new(string) + if !r.Configuration.RecordsLimit.IsUnknown() && !r.Configuration.RecordsLimit.IsNull() { + *recordsLimit = r.Configuration.RecordsLimit.ValueString() + } else { + recordsLimit = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceGoogleTasks{ + APIKey: apiKey, + RecordsLimit: recordsLimit, + 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.SourceGoogleTasksCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceGoogleTasksResourceModel) 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 *SourceGoogleTasksResourceModel) ToSharedSourceGoogleTasksPutRequest() *shared.SourceGoogleTasksPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + recordsLimit := new(string) + if !r.Configuration.RecordsLimit.IsUnknown() && !r.Configuration.RecordsLimit.IsNull() { + *recordsLimit = r.Configuration.RecordsLimit.ValueString() + } else { + recordsLimit = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceGoogleTasksUpdate{ + APIKey: apiKey, + RecordsLimit: recordsLimit, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceGoogleTasksPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_guru_data_source.go b/internal/provider/source_guru_data_source.go new file mode 100644 index 000000000..66b177904 --- /dev/null +++ b/internal/provider/source_guru_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 = &SourceGuruDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceGuruDataSource{} + +func NewSourceGuruDataSource() datasource.DataSource { + return &SourceGuruDataSource{} +} + +// SourceGuruDataSource is the data source implementation. +type SourceGuruDataSource struct { + client *sdk.SDK +} + +// SourceGuruDataSourceModel describes the data model. +type SourceGuruDataSourceModel 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 *SourceGuruDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_guru" +} + +// Schema defines the schema for the data source. +func (r *SourceGuruDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceGuru 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 *SourceGuruDataSource) 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 *SourceGuruDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceGuruDataSourceModel + 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.GetSourceGuruRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceGuru(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_guru_data_source_sdk.go b/internal/provider/source_guru_data_source_sdk.go new file mode 100644 index 000000000..d8f18e415 --- /dev/null +++ b/internal/provider/source_guru_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 *SourceGuruDataSourceModel) 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_guru_resource.go b/internal/provider/source_guru_resource.go new file mode 100644 index 000000000..7690ec7cb --- /dev/null +++ b/internal/provider/source_guru_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 = &SourceGuruResource{} +var _ resource.ResourceWithImportState = &SourceGuruResource{} + +func NewSourceGuruResource() resource.Resource { + return &SourceGuruResource{} +} + +// SourceGuruResource defines the resource implementation. +type SourceGuruResource struct { + client *sdk.SDK +} + +// SourceGuruResourceModel describes the resource data model. +type SourceGuruResourceModel struct { + Configuration tfTypes.SourceGuru `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 *SourceGuruResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_guru" +} + +func (r *SourceGuruResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceGuru 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{ + "password": schema.StringAttribute{ + Optional: true, + Sensitive: true, + }, + "search_cards_query": schema.StringAttribute{ + Optional: true, + Description: `Query for searching cards`, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "team_id": schema.StringAttribute{ + Optional: true, + Description: `Team ID received through response of /teams streams, make sure about access to the team`, + }, + "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 *SourceGuruResource) 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 *SourceGuruResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceGuruResourceModel + 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.ToSharedSourceGuruCreateRequest() + res, err := r.client.Sources.CreateSourceGuru(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.GetSourceGuruRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceGuru(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 *SourceGuruResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceGuruResourceModel + 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.GetSourceGuruRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceGuru(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 *SourceGuruResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceGuruResourceModel + 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 + } + + sourceGuruPutRequest := data.ToSharedSourceGuruPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceGuruRequest{ + SourceGuruPutRequest: sourceGuruPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceGuru(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.GetSourceGuruRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceGuru(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 *SourceGuruResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceGuruResourceModel + 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.DeleteSourceGuruRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceGuru(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 *SourceGuruResource) 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_guru_resource_sdk.go b/internal/provider/source_guru_resource_sdk.go new file mode 100644 index 000000000..6a75cbbc0 --- /dev/null +++ b/internal/provider/source_guru_resource_sdk.go @@ -0,0 +1,108 @@ +// 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 *SourceGuruResourceModel) ToSharedSourceGuruCreateRequest() *shared.SourceGuruCreateRequest { + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + searchCardsQuery := new(string) + if !r.Configuration.SearchCardsQuery.IsUnknown() && !r.Configuration.SearchCardsQuery.IsNull() { + *searchCardsQuery = r.Configuration.SearchCardsQuery.ValueString() + } else { + searchCardsQuery = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + teamID := new(string) + if !r.Configuration.TeamID.IsUnknown() && !r.Configuration.TeamID.IsNull() { + *teamID = r.Configuration.TeamID.ValueString() + } else { + teamID = nil + } + username := r.Configuration.Username.ValueString() + configuration := shared.SourceGuru{ + Password: password, + SearchCardsQuery: searchCardsQuery, + StartDate: startDate, + TeamID: teamID, + 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.SourceGuruCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceGuruResourceModel) 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 *SourceGuruResourceModel) ToSharedSourceGuruPutRequest() *shared.SourceGuruPutRequest { + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + searchCardsQuery := new(string) + if !r.Configuration.SearchCardsQuery.IsUnknown() && !r.Configuration.SearchCardsQuery.IsNull() { + *searchCardsQuery = r.Configuration.SearchCardsQuery.ValueString() + } else { + searchCardsQuery = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + teamID := new(string) + if !r.Configuration.TeamID.IsUnknown() && !r.Configuration.TeamID.IsNull() { + *teamID = r.Configuration.TeamID.ValueString() + } else { + teamID = nil + } + username := r.Configuration.Username.ValueString() + configuration := shared.SourceGuruUpdate{ + Password: password, + SearchCardsQuery: searchCardsQuery, + StartDate: startDate, + TeamID: teamID, + Username: username, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceGuruPutRequest{ + 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 e77b0f311..9d915c154 100644 --- a/internal/provider/source_harvest_resource.go +++ b/internal/provider/source_harvest_resource.go @@ -127,13 +127,6 @@ func (r *SourceHarvestResource) Schema(ctx context.Context, req resource.SchemaR validators.ExactlyOneChild(), }, }, - "replication_end_date": schema.StringAttribute{ - Optional: true, - Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated.`, - Validators: []validator.String{ - validators.IsRFC3339(), - }, - }, "replication_start_date": schema.StringAttribute{ Required: 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_harvest_resource_sdk.go b/internal/provider/source_harvest_resource_sdk.go index 515118074..ad358c6bc 100644 --- a/internal/provider/source_harvest_resource_sdk.go +++ b/internal/provider/source_harvest_resource_sdk.go @@ -52,17 +52,10 @@ func (r *SourceHarvestResourceModel) ToSharedSourceHarvestCreateRequest() *share } } } - replicationEndDate := new(time.Time) - if !r.Configuration.ReplicationEndDate.IsUnknown() && !r.Configuration.ReplicationEndDate.IsNull() { - *replicationEndDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.ReplicationEndDate.ValueString()) - } else { - replicationEndDate = nil - } replicationStartDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.ReplicationStartDate.ValueString()) configuration := shared.SourceHarvest{ AccountID: accountID, Credentials: credentials, - ReplicationEndDate: replicationEndDate, ReplicationStartDate: replicationStartDate, } definitionID := new(string) @@ -141,17 +134,10 @@ func (r *SourceHarvestResourceModel) ToSharedSourceHarvestPutRequest() *shared.S } } } - replicationEndDate := new(time.Time) - if !r.Configuration.ReplicationEndDate.IsUnknown() && !r.Configuration.ReplicationEndDate.IsNull() { - *replicationEndDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.ReplicationEndDate.ValueString()) - } else { - replicationEndDate = nil - } replicationStartDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.ReplicationStartDate.ValueString()) configuration := shared.SourceHarvestUpdate{ AccountID: accountID, Credentials: credentials, - ReplicationEndDate: replicationEndDate, ReplicationStartDate: replicationStartDate, } name := r.Name.ValueString() diff --git a/internal/provider/source_height_data_source.go b/internal/provider/source_height_data_source.go new file mode 100644 index 000000000..c518285e0 --- /dev/null +++ b/internal/provider/source_height_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 = &SourceHeightDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceHeightDataSource{} + +func NewSourceHeightDataSource() datasource.DataSource { + return &SourceHeightDataSource{} +} + +// SourceHeightDataSource is the data source implementation. +type SourceHeightDataSource struct { + client *sdk.SDK +} + +// SourceHeightDataSourceModel describes the data model. +type SourceHeightDataSourceModel 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 *SourceHeightDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_height" +} + +// Schema defines the schema for the data source. +func (r *SourceHeightDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceHeight 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 *SourceHeightDataSource) 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 *SourceHeightDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceHeightDataSourceModel + 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.GetSourceHeightRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceHeight(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_height_data_source_sdk.go b/internal/provider/source_height_data_source_sdk.go new file mode 100644 index 000000000..a03651983 --- /dev/null +++ b/internal/provider/source_height_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 *SourceHeightDataSourceModel) 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_height_resource.go b/internal/provider/source_height_resource.go new file mode 100644 index 000000000..058ab123b --- /dev/null +++ b/internal/provider/source_height_resource.go @@ -0,0 +1,379 @@ +// 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/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 = &SourceHeightResource{} +var _ resource.ResourceWithImportState = &SourceHeightResource{} + +func NewSourceHeightResource() resource.Resource { + return &SourceHeightResource{} +} + +// SourceHeightResource defines the resource implementation. +type SourceHeightResource struct { + client *sdk.SDK +} + +// SourceHeightResourceModel describes the resource data model. +type SourceHeightResourceModel struct { + Configuration tfTypes.SourceHeight `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 *SourceHeightResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_height" +} + +func (r *SourceHeightResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceHeight 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, + }, + "search_query": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("task"), + Description: `Search query to be used with search stream. Default: "task"`, + }, + "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 *SourceHeightResource) 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 *SourceHeightResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceHeightResourceModel + 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.ToSharedSourceHeightCreateRequest() + res, err := r.client.Sources.CreateSourceHeight(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.GetSourceHeightRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceHeight(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 *SourceHeightResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceHeightResourceModel + 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.GetSourceHeightRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceHeight(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 *SourceHeightResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceHeightResourceModel + 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 + } + + sourceHeightPutRequest := data.ToSharedSourceHeightPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceHeightRequest{ + SourceHeightPutRequest: sourceHeightPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceHeight(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.GetSourceHeightRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceHeight(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 *SourceHeightResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceHeightResourceModel + 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.DeleteSourceHeightRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceHeight(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 *SourceHeightResource) 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_height_resource_sdk.go b/internal/provider/source_height_resource_sdk.go new file mode 100644 index 000000000..b3ed458ee --- /dev/null +++ b/internal/provider/source_height_resource_sdk.go @@ -0,0 +1,80 @@ +// 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 *SourceHeightResourceModel) ToSharedSourceHeightCreateRequest() *shared.SourceHeightCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + searchQuery := new(string) + if !r.Configuration.SearchQuery.IsUnknown() && !r.Configuration.SearchQuery.IsNull() { + *searchQuery = r.Configuration.SearchQuery.ValueString() + } else { + searchQuery = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceHeight{ + APIKey: apiKey, + SearchQuery: searchQuery, + 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.SourceHeightCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceHeightResourceModel) 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 *SourceHeightResourceModel) ToSharedSourceHeightPutRequest() *shared.SourceHeightPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + searchQuery := new(string) + if !r.Configuration.SearchQuery.IsUnknown() && !r.Configuration.SearchQuery.IsNull() { + *searchQuery = r.Configuration.SearchQuery.ValueString() + } else { + searchQuery = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceHeightUpdate{ + APIKey: apiKey, + SearchQuery: searchQuery, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceHeightPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_instagram_resource.go b/internal/provider/source_instagram_resource.go index 62b09cea5..02be02191 100644 --- a/internal/provider/source_instagram_resource.go +++ b/internal/provider/source_instagram_resource.go @@ -64,16 +64,6 @@ func (r *SourceInstagramResource) Schema(ctx context.Context, req resource.Schem Sensitive: true, Description: `The value of the access token generated with instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access permissions. See the docs for more information`, }, - "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{ Optional: true, Description: `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.`, diff --git a/internal/provider/source_instagram_resource_sdk.go b/internal/provider/source_instagram_resource_sdk.go index 76c179054..f652fb2c2 100644 --- a/internal/provider/source_instagram_resource_sdk.go +++ b/internal/provider/source_instagram_resource_sdk.go @@ -10,18 +10,6 @@ import ( func (r *SourceInstagramResourceModel) ToSharedSourceInstagramCreateRequest() *shared.SourceInstagramCreateRequest { accessToken := r.Configuration.AccessToken.ValueString() - clientID := new(string) - if !r.Configuration.ClientID.IsUnknown() && !r.Configuration.ClientID.IsNull() { - *clientID = r.Configuration.ClientID.ValueString() - } else { - clientID = nil - } - clientSecret := new(string) - if !r.Configuration.ClientSecret.IsUnknown() && !r.Configuration.ClientSecret.IsNull() { - *clientSecret = r.Configuration.ClientSecret.ValueString() - } else { - clientSecret = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -29,10 +17,8 @@ func (r *SourceInstagramResourceModel) ToSharedSourceInstagramCreateRequest() *s startDate = nil } configuration := shared.SourceInstagram{ - AccessToken: accessToken, - ClientID: clientID, - ClientSecret: clientSecret, - StartDate: startDate, + AccessToken: accessToken, + StartDate: startDate, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -69,18 +55,6 @@ func (r *SourceInstagramResourceModel) RefreshFromSharedSourceResponse(resp *sha func (r *SourceInstagramResourceModel) ToSharedSourceInstagramPutRequest() *shared.SourceInstagramPutRequest { accessToken := r.Configuration.AccessToken.ValueString() - clientID := new(string) - if !r.Configuration.ClientID.IsUnknown() && !r.Configuration.ClientID.IsNull() { - *clientID = r.Configuration.ClientID.ValueString() - } else { - clientID = nil - } - clientSecret := new(string) - if !r.Configuration.ClientSecret.IsUnknown() && !r.Configuration.ClientSecret.IsNull() { - *clientSecret = r.Configuration.ClientSecret.ValueString() - } else { - clientSecret = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -88,10 +62,8 @@ func (r *SourceInstagramResourceModel) ToSharedSourceInstagramPutRequest() *shar startDate = nil } configuration := shared.SourceInstagramUpdate{ - AccessToken: accessToken, - ClientID: clientID, - ClientSecret: clientSecret, - StartDate: startDate, + AccessToken: accessToken, + StartDate: startDate, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/source_iterable_resource.go b/internal/provider/source_iterable_resource.go index ecd6e26f3..35d17d03c 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.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"` + Configuration tfTypes.SourceBrevo `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_jira_resource.go b/internal/provider/source_jira_resource.go index 395865e7c..1fff09acb 100644 --- a/internal/provider/source_jira_resource.go +++ b/internal/provider/source_jira_resource.go @@ -80,23 +80,6 @@ func (r *SourceJiraResource) Schema(ctx context.Context, req resource.SchemaRequ Default: booldefault.StaticBool(false), Description: `Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. Default: false`, }, - "expand_issue_changelog": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `(DEPRECATED) Expand the changelog when replicating issues. Default: false`, - }, - "expand_issue_transition": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `(DEPRECATED) Expand the transitions when replicating issues. Default: false`, - }, - "issues_stream_expand_with": schema.ListAttribute{ - Optional: true, - ElementType: types.StringType, - Description: `Select fields to Expand the ` + "`" + `Issues` + "`" + ` stream when replicating with: `, - }, "lookback_window_minutes": schema.Int64Attribute{ Computed: true, Optional: true, @@ -108,12 +91,6 @@ func (r *SourceJiraResource) Schema(ctx context.Context, req resource.SchemaRequ ElementType: types.StringType, Description: `List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects.`, }, - "render_fields": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `(DEPRECATED) Render issue fields in HTML format in addition to Jira JSON-like format. Default: false`, - }, "start_date": schema.StringAttribute{ Optional: true, Description: `The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the documentation.`, diff --git a/internal/provider/source_jira_resource_sdk.go b/internal/provider/source_jira_resource_sdk.go index 413feef74..d9a88b404 100644 --- a/internal/provider/source_jira_resource_sdk.go +++ b/internal/provider/source_jira_resource_sdk.go @@ -18,22 +18,6 @@ func (r *SourceJiraResourceModel) ToSharedSourceJiraCreateRequest() *shared.Sour } else { enableExperimentalStreams = nil } - expandIssueChangelog := new(bool) - if !r.Configuration.ExpandIssueChangelog.IsUnknown() && !r.Configuration.ExpandIssueChangelog.IsNull() { - *expandIssueChangelog = r.Configuration.ExpandIssueChangelog.ValueBool() - } else { - expandIssueChangelog = nil - } - expandIssueTransition := new(bool) - if !r.Configuration.ExpandIssueTransition.IsUnknown() && !r.Configuration.ExpandIssueTransition.IsNull() { - *expandIssueTransition = r.Configuration.ExpandIssueTransition.ValueBool() - } else { - expandIssueTransition = nil - } - var issuesStreamExpandWith []shared.SourceJiraIssuesStreamExpandWith = []shared.SourceJiraIssuesStreamExpandWith{} - for _, issuesStreamExpandWithItem := range r.Configuration.IssuesStreamExpandWith { - issuesStreamExpandWith = append(issuesStreamExpandWith, shared.SourceJiraIssuesStreamExpandWith(issuesStreamExpandWithItem.ValueString())) - } lookbackWindowMinutes := new(int64) if !r.Configuration.LookbackWindowMinutes.IsUnknown() && !r.Configuration.LookbackWindowMinutes.IsNull() { *lookbackWindowMinutes = r.Configuration.LookbackWindowMinutes.ValueInt64() @@ -44,12 +28,6 @@ func (r *SourceJiraResourceModel) ToSharedSourceJiraCreateRequest() *shared.Sour for _, projectsItem := range r.Configuration.Projects { projects = append(projects, projectsItem.ValueString()) } - renderFields := new(bool) - if !r.Configuration.RenderFields.IsUnknown() && !r.Configuration.RenderFields.IsNull() { - *renderFields = r.Configuration.RenderFields.ValueBool() - } else { - renderFields = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -61,12 +39,8 @@ func (r *SourceJiraResourceModel) ToSharedSourceJiraCreateRequest() *shared.Sour Domain: domain, Email: email, EnableExperimentalStreams: enableExperimentalStreams, - ExpandIssueChangelog: expandIssueChangelog, - ExpandIssueTransition: expandIssueTransition, - IssuesStreamExpandWith: issuesStreamExpandWith, LookbackWindowMinutes: lookbackWindowMinutes, Projects: projects, - RenderFields: renderFields, StartDate: startDate, } definitionID := new(string) @@ -112,22 +86,6 @@ func (r *SourceJiraResourceModel) ToSharedSourceJiraPutRequest() *shared.SourceJ } else { enableExperimentalStreams = nil } - expandIssueChangelog := new(bool) - if !r.Configuration.ExpandIssueChangelog.IsUnknown() && !r.Configuration.ExpandIssueChangelog.IsNull() { - *expandIssueChangelog = r.Configuration.ExpandIssueChangelog.ValueBool() - } else { - expandIssueChangelog = nil - } - expandIssueTransition := new(bool) - if !r.Configuration.ExpandIssueTransition.IsUnknown() && !r.Configuration.ExpandIssueTransition.IsNull() { - *expandIssueTransition = r.Configuration.ExpandIssueTransition.ValueBool() - } else { - expandIssueTransition = nil - } - var issuesStreamExpandWith []shared.IssuesStreamExpandWith = []shared.IssuesStreamExpandWith{} - for _, issuesStreamExpandWithItem := range r.Configuration.IssuesStreamExpandWith { - issuesStreamExpandWith = append(issuesStreamExpandWith, shared.IssuesStreamExpandWith(issuesStreamExpandWithItem.ValueString())) - } lookbackWindowMinutes := new(int64) if !r.Configuration.LookbackWindowMinutes.IsUnknown() && !r.Configuration.LookbackWindowMinutes.IsNull() { *lookbackWindowMinutes = r.Configuration.LookbackWindowMinutes.ValueInt64() @@ -138,12 +96,6 @@ func (r *SourceJiraResourceModel) ToSharedSourceJiraPutRequest() *shared.SourceJ for _, projectsItem := range r.Configuration.Projects { projects = append(projects, projectsItem.ValueString()) } - renderFields := new(bool) - if !r.Configuration.RenderFields.IsUnknown() && !r.Configuration.RenderFields.IsNull() { - *renderFields = r.Configuration.RenderFields.ValueBool() - } else { - renderFields = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -155,12 +107,8 @@ func (r *SourceJiraResourceModel) ToSharedSourceJiraPutRequest() *shared.SourceJ Domain: domain, Email: email, EnableExperimentalStreams: enableExperimentalStreams, - ExpandIssueChangelog: expandIssueChangelog, - ExpandIssueTransition: expandIssueTransition, - IssuesStreamExpandWith: issuesStreamExpandWith, LookbackWindowMinutes: lookbackWindowMinutes, Projects: projects, - RenderFields: renderFields, StartDate: startDate, } name := r.Name.ValueString() diff --git a/internal/provider/source_jotform_data_source.go b/internal/provider/source_jotform_data_source.go new file mode 100644 index 000000000..623c9bac0 --- /dev/null +++ b/internal/provider/source_jotform_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 = &SourceJotformDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceJotformDataSource{} + +func NewSourceJotformDataSource() datasource.DataSource { + return &SourceJotformDataSource{} +} + +// SourceJotformDataSource is the data source implementation. +type SourceJotformDataSource struct { + client *sdk.SDK +} + +// SourceJotformDataSourceModel describes the data model. +type SourceJotformDataSourceModel 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 *SourceJotformDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_jotform" +} + +// Schema defines the schema for the data source. +func (r *SourceJotformDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceJotform 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 *SourceJotformDataSource) 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 *SourceJotformDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceJotformDataSourceModel + 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.GetSourceJotformRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceJotform(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_jotform_data_source_sdk.go b/internal/provider/source_jotform_data_source_sdk.go new file mode 100644 index 000000000..fc6255b8e --- /dev/null +++ b/internal/provider/source_jotform_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 *SourceJotformDataSourceModel) 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_jotform_resource.go b/internal/provider/source_jotform_resource.go new file mode 100644 index 000000000..686464395 --- /dev/null +++ b/internal/provider/source_jotform_resource.go @@ -0,0 +1,426 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + speakeasy_objectplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/objectplanmodifier" + speakeasy_stringplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/stringplanmodifier" + tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/airbytehq/terraform-provider-airbyte/internal/validators" + "github.com/hashicorp/terraform-plugin-framework-validators/objectvalidator" + "github.com/hashicorp/terraform-plugin-framework-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/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 = &SourceJotformResource{} +var _ resource.ResourceWithImportState = &SourceJotformResource{} + +func NewSourceJotformResource() resource.Resource { + return &SourceJotformResource{} +} + +// SourceJotformResource defines the resource implementation. +type SourceJotformResource struct { + client *sdk.SDK +} + +// SourceJotformResourceModel describes the resource data model. +type SourceJotformResourceModel struct { + Configuration tfTypes.SourceJotform `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 *SourceJotformResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_jotform" +} + +func (r *SourceJotformResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceJotform 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_endpoint": schema.SingleNestedAttribute{ + Required: true, + Attributes: map[string]schema.Attribute{ + "basic": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "url_prefix": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("Standard"), + Description: `You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com). must be one of ["Standard", "EU", "HIPAA"]; Default: "Standard"`, + Validators: []validator.String{ + stringvalidator.OneOf( + "Standard", + "EU", + "HIPAA", + ), + }, + }, + }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("enterprise"), + }...), + }, + }, + "enterprise": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "enterprise_url": schema.StringAttribute{ + Required: true, + Description: `Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com`, + }, + }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("basic"), + }...), + }, + }, + }, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, + }, + "api_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "end_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "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 *SourceJotformResource) 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 *SourceJotformResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceJotformResourceModel + 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.ToSharedSourceJotformCreateRequest() + res, err := r.client.Sources.CreateSourceJotform(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.GetSourceJotformRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceJotform(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 *SourceJotformResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceJotformResourceModel + 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.GetSourceJotformRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceJotform(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 *SourceJotformResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceJotformResourceModel + 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 + } + + sourceJotformPutRequest := data.ToSharedSourceJotformPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceJotformRequest{ + SourceJotformPutRequest: sourceJotformPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceJotform(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.GetSourceJotformRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceJotform(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 *SourceJotformResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceJotformResourceModel + 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.DeleteSourceJotformRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceJotform(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 *SourceJotformResource) 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_jotform_resource_sdk.go b/internal/provider/source_jotform_resource_sdk.go new file mode 100644 index 000000000..9fcac4200 --- /dev/null +++ b/internal/provider/source_jotform_resource_sdk.go @@ -0,0 +1,132 @@ +// 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 *SourceJotformResourceModel) ToSharedSourceJotformCreateRequest() *shared.SourceJotformCreateRequest { + var apiEndpoint shared.SourceJotformAPIEndpoint + var sourceJotformBasic *shared.SourceJotformBasic + if r.Configuration.APIEndpoint.Basic != nil { + urlPrefix := new(shared.SourceJotformBaseURLPrefix) + if !r.Configuration.APIEndpoint.Basic.URLPrefix.IsUnknown() && !r.Configuration.APIEndpoint.Basic.URLPrefix.IsNull() { + *urlPrefix = shared.SourceJotformBaseURLPrefix(r.Configuration.APIEndpoint.Basic.URLPrefix.ValueString()) + } else { + urlPrefix = nil + } + sourceJotformBasic = &shared.SourceJotformBasic{ + URLPrefix: urlPrefix, + } + } + if sourceJotformBasic != nil { + apiEndpoint = shared.SourceJotformAPIEndpoint{ + SourceJotformBasic: sourceJotformBasic, + } + } + var sourceJotformEnterprise *shared.SourceJotformEnterprise + if r.Configuration.APIEndpoint.Enterprise != nil { + enterpriseURL := r.Configuration.APIEndpoint.Enterprise.EnterpriseURL.ValueString() + sourceJotformEnterprise = &shared.SourceJotformEnterprise{ + EnterpriseURL: enterpriseURL, + } + } + if sourceJotformEnterprise != nil { + apiEndpoint = shared.SourceJotformAPIEndpoint{ + SourceJotformEnterprise: sourceJotformEnterprise, + } + } + apiKey := r.Configuration.APIKey.ValueString() + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceJotform{ + APIEndpoint: apiEndpoint, + APIKey: apiKey, + EndDate: endDate, + 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.SourceJotformCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceJotformResourceModel) 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 *SourceJotformResourceModel) ToSharedSourceJotformPutRequest() *shared.SourceJotformPutRequest { + var apiEndpoint shared.APIEndpoint + var basic *shared.Basic + if r.Configuration.APIEndpoint.Basic != nil { + urlPrefix := new(shared.BaseURLPrefix) + if !r.Configuration.APIEndpoint.Basic.URLPrefix.IsUnknown() && !r.Configuration.APIEndpoint.Basic.URLPrefix.IsNull() { + *urlPrefix = shared.BaseURLPrefix(r.Configuration.APIEndpoint.Basic.URLPrefix.ValueString()) + } else { + urlPrefix = nil + } + basic = &shared.Basic{ + URLPrefix: urlPrefix, + } + } + if basic != nil { + apiEndpoint = shared.APIEndpoint{ + Basic: basic, + } + } + var enterprise *shared.Enterprise + if r.Configuration.APIEndpoint.Enterprise != nil { + enterpriseURL := r.Configuration.APIEndpoint.Enterprise.EnterpriseURL.ValueString() + enterprise = &shared.Enterprise{ + EnterpriseURL: enterpriseURL, + } + } + if enterprise != nil { + apiEndpoint = shared.APIEndpoint{ + Enterprise: enterprise, + } + } + apiKey := r.Configuration.APIKey.ValueString() + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceJotformUpdate{ + APIEndpoint: apiEndpoint, + APIKey: apiKey, + EndDate: endDate, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceJotformPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_kyve_resource.go b/internal/provider/source_kyve_resource.go index 129e7f602..233061aeb 100644 --- a/internal/provider/source_kyve_resource.go +++ b/internal/provider/source_kyve_resource.go @@ -13,7 +13,6 @@ 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/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" @@ -59,16 +58,6 @@ func (r *SourceKyveResource) Schema(ctx context.Context, req resource.SchemaRequ }, Required: true, Attributes: map[string]schema.Attribute{ - "max_pages": schema.Int64Attribute{ - Optional: true, - Description: `The maximum amount of pages to go trough. Set to 'null' for all pages.`, - }, - "page_size": schema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(100), - Description: `The pagesize for pagination, smaller numbers are used in integration tests. Default: 100`, - }, "pool_ids": schema.StringAttribute{ Required: true, Description: `The IDs of the KYVE storage pool you want to archive. (Comma separated)`, diff --git a/internal/provider/source_kyve_resource_sdk.go b/internal/provider/source_kyve_resource_sdk.go index 162760723..6c7d24c9e 100644 --- a/internal/provider/source_kyve_resource_sdk.go +++ b/internal/provider/source_kyve_resource_sdk.go @@ -8,18 +8,6 @@ import ( ) func (r *SourceKyveResourceModel) ToSharedSourceKyveCreateRequest() *shared.SourceKyveCreateRequest { - maxPages := new(int64) - if !r.Configuration.MaxPages.IsUnknown() && !r.Configuration.MaxPages.IsNull() { - *maxPages = r.Configuration.MaxPages.ValueInt64() - } else { - maxPages = nil - } - pageSize := new(int64) - if !r.Configuration.PageSize.IsUnknown() && !r.Configuration.PageSize.IsNull() { - *pageSize = r.Configuration.PageSize.ValueInt64() - } else { - pageSize = nil - } poolIds := r.Configuration.PoolIds.ValueString() startIds := r.Configuration.StartIds.ValueString() urlBase := new(string) @@ -29,8 +17,6 @@ func (r *SourceKyveResourceModel) ToSharedSourceKyveCreateRequest() *shared.Sour urlBase = nil } configuration := shared.SourceKyve{ - MaxPages: maxPages, - PageSize: pageSize, PoolIds: poolIds, StartIds: startIds, URLBase: urlBase, @@ -69,18 +55,6 @@ func (r *SourceKyveResourceModel) RefreshFromSharedSourceResponse(resp *shared.S } func (r *SourceKyveResourceModel) ToSharedSourceKyvePutRequest() *shared.SourceKyvePutRequest { - maxPages := new(int64) - if !r.Configuration.MaxPages.IsUnknown() && !r.Configuration.MaxPages.IsNull() { - *maxPages = r.Configuration.MaxPages.ValueInt64() - } else { - maxPages = nil - } - pageSize := new(int64) - if !r.Configuration.PageSize.IsUnknown() && !r.Configuration.PageSize.IsNull() { - *pageSize = r.Configuration.PageSize.ValueInt64() - } else { - pageSize = nil - } poolIds := r.Configuration.PoolIds.ValueString() startIds := r.Configuration.StartIds.ValueString() urlBase := new(string) @@ -90,8 +64,6 @@ func (r *SourceKyveResourceModel) ToSharedSourceKyvePutRequest() *shared.SourceK urlBase = nil } configuration := shared.SourceKyveUpdate{ - MaxPages: maxPages, - PageSize: pageSize, PoolIds: poolIds, StartIds: startIds, URLBase: urlBase, diff --git a/internal/provider/source_linkedinads_resource.go b/internal/provider/source_linkedinads_resource.go index 5e5c5f272..f8d4594bc 100644 --- a/internal/provider/source_linkedinads_resource.go +++ b/internal/provider/source_linkedinads_resource.go @@ -16,6 +16,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/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" @@ -166,6 +167,12 @@ func (r *SourceLinkedinAdsResource) Schema(ctx context.Context, req resource.Sch validators.ExactlyOneChild(), }, }, + "lookback_window": schema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + Description: `How far into the past to look for records. (in days). Default: 0`, + }, "start_date": schema.StringAttribute{ Required: true, Description: `UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated.`, diff --git a/internal/provider/source_linkedinads_resource_sdk.go b/internal/provider/source_linkedinads_resource_sdk.go index 6f6fad402..a64226118 100644 --- a/internal/provider/source_linkedinads_resource_sdk.go +++ b/internal/provider/source_linkedinads_resource_sdk.go @@ -55,11 +55,18 @@ func (r *SourceLinkedinAdsResourceModel) ToSharedSourceLinkedinAdsCreateRequest( } } } + lookbackWindow := new(int64) + if !r.Configuration.LookbackWindow.IsUnknown() && !r.Configuration.LookbackWindow.IsNull() { + *lookbackWindow = r.Configuration.LookbackWindow.ValueInt64() + } else { + lookbackWindow = nil + } startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) configuration := shared.SourceLinkedinAds{ AccountIds: accountIds, AdAnalyticsReports: adAnalyticsReports, Credentials: credentials, + LookbackWindow: lookbackWindow, StartDate: startDate, } definitionID := new(string) @@ -142,11 +149,18 @@ func (r *SourceLinkedinAdsResourceModel) ToSharedSourceLinkedinAdsPutRequest() * } } } + lookbackWindow := new(int64) + if !r.Configuration.LookbackWindow.IsUnknown() && !r.Configuration.LookbackWindow.IsNull() { + *lookbackWindow = r.Configuration.LookbackWindow.ValueInt64() + } else { + lookbackWindow = nil + } startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) configuration := shared.SourceLinkedinAdsUpdate{ AccountIds: accountIds, AdAnalyticsReports: adAnalyticsReports, Credentials: credentials, + LookbackWindow: lookbackWindow, StartDate: startDate, } name1 := r.Name.ValueString() diff --git a/internal/provider/source_mailchimp_resource.go b/internal/provider/source_mailchimp_resource.go index be2bea13b..b713af433 100644 --- a/internal/provider/source_mailchimp_resource.go +++ b/internal/provider/source_mailchimp_resource.go @@ -108,10 +108,6 @@ func (r *SourceMailchimpResource) Schema(ctx context.Context, req resource.Schem validators.ExactlyOneChild(), }, }, - "data_center": schema.StringAttribute{ - Optional: true, - Description: `Technical fields used to identify datacenter to send request to`, - }, "start_date": schema.StringAttribute{ Optional: true, Description: `The date from which you want to start syncing data for Incremental streams. Only records that have been created or modified since this date will be synced. If left blank, all data will by synced.`, diff --git a/internal/provider/source_mailchimp_resource_sdk.go b/internal/provider/source_mailchimp_resource_sdk.go index f61b43769..69b91151e 100644 --- a/internal/provider/source_mailchimp_resource_sdk.go +++ b/internal/provider/source_mailchimp_resource_sdk.go @@ -50,12 +50,6 @@ func (r *SourceMailchimpResourceModel) ToSharedSourceMailchimpCreateRequest() *s } } } - dataCenter := new(string) - if !r.Configuration.DataCenter.IsUnknown() && !r.Configuration.DataCenter.IsNull() { - *dataCenter = r.Configuration.DataCenter.ValueString() - } else { - dataCenter = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -64,7 +58,6 @@ func (r *SourceMailchimpResourceModel) ToSharedSourceMailchimpCreateRequest() *s } configuration := shared.SourceMailchimp{ Credentials: credentials, - DataCenter: dataCenter, StartDate: startDate, } definitionID := new(string) @@ -142,12 +135,6 @@ func (r *SourceMailchimpResourceModel) ToSharedSourceMailchimpPutRequest() *shar } } } - dataCenter := new(string) - if !r.Configuration.DataCenter.IsUnknown() && !r.Configuration.DataCenter.IsNull() { - *dataCenter = r.Configuration.DataCenter.ValueString() - } else { - dataCenter = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -156,7 +143,6 @@ func (r *SourceMailchimpResourceModel) ToSharedSourceMailchimpPutRequest() *shar } configuration := shared.SourceMailchimpUpdate{ Credentials: credentials, - DataCenter: dataCenter, StartDate: startDate, } name := r.Name.ValueString() diff --git a/internal/provider/source_microsoftonedrive_resource.go b/internal/provider/source_microsoftonedrive_resource.go index f28fe5e2e..ada17f380 100644 --- a/internal/provider/source_microsoftonedrive_resource.go +++ b/internal/provider/source_microsoftonedrive_resource.go @@ -434,10 +434,6 @@ func (r *SourceMicrosoftOnedriveResource) Schema(ctx context.Context, req resour Required: true, Description: `The name of the stream.`, }, - "primary_key": schema.StringAttribute{ - Optional: 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{ Computed: true, Optional: true, diff --git a/internal/provider/source_microsoftonedrive_resource_sdk.go b/internal/provider/source_microsoftonedrive_resource_sdk.go index 6ca5bf497..43000c7fb 100644 --- a/internal/provider/source_microsoftonedrive_resource_sdk.go +++ b/internal/provider/source_microsoftonedrive_resource_sdk.go @@ -295,12 +295,6 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedriveCr inputSchema = nil } name := streamsItem.Name.ValueString() - primaryKey := new(string) - if !streamsItem.PrimaryKey.IsUnknown() && !streamsItem.PrimaryKey.IsNull() { - *primaryKey = streamsItem.PrimaryKey.ValueString() - } else { - primaryKey = nil - } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -319,7 +313,6 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedriveCr Globs: globs, InputSchema: inputSchema, Name: name, - PrimaryKey: primaryKey, Schemaless: schemaless, ValidationPolicy: validationPolicy, }) @@ -652,12 +645,6 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedrivePu inputSchema = nil } name := streamsItem.Name.ValueString() - primaryKey := new(string) - if !streamsItem.PrimaryKey.IsUnknown() && !streamsItem.PrimaryKey.IsNull() { - *primaryKey = streamsItem.PrimaryKey.ValueString() - } else { - primaryKey = nil - } schemaless := new(bool) if !streamsItem.Schemaless.IsUnknown() && !streamsItem.Schemaless.IsNull() { *schemaless = streamsItem.Schemaless.ValueBool() @@ -676,7 +663,6 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedrivePu Globs: globs, InputSchema: inputSchema, Name: name, - PrimaryKey: primaryKey, Schemaless: schemaless, ValidationPolicy: validationPolicy, }) diff --git a/internal/provider/source_microsoftsharepoint_resource.go b/internal/provider/source_microsoftsharepoint_resource.go index 942c8305a..2c8aa2d19 100644 --- a/internal/provider/source_microsoftsharepoint_resource.go +++ b/internal/provider/source_microsoftsharepoint_resource.go @@ -446,10 +446,6 @@ func (r *SourceMicrosoftSharepointResource) Schema(ctx context.Context, req reso Required: true, Description: `The name of the stream.`, }, - "primary_key": schema.StringAttribute{ - Optional: 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.`, diff --git a/internal/provider/source_microsoftsharepoint_resource_sdk.go b/internal/provider/source_microsoftsharepoint_resource_sdk.go index c3cad36a0..a884aced9 100644 --- a/internal/provider/source_microsoftsharepoint_resource_sdk.go +++ b/internal/provider/source_microsoftsharepoint_resource_sdk.go @@ -303,12 +303,6 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi inputSchema = nil } name := 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() @@ -333,7 +327,6 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi Globs: globs, InputSchema: inputSchema, Name: name, - PrimaryKey: primaryKey, RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, Schemaless: schemaless, ValidationPolicy: validationPolicy, @@ -674,12 +667,6 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi inputSchema = nil } name := 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() @@ -704,7 +691,6 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi Globs: globs, InputSchema: inputSchema, Name: name, - PrimaryKey: primaryKey, RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, Schemaless: schemaless, ValidationPolicy: validationPolicy, diff --git a/internal/provider/source_mssql_resource_sdk.go b/internal/provider/source_mssql_resource_sdk.go index 6bf4b0aaf..522050cd3 100644 --- a/internal/provider/source_mssql_resource_sdk.go +++ b/internal/provider/source_mssql_resource_sdk.go @@ -288,13 +288,13 @@ func (r *SourceMssqlResourceModel) ToSharedSourceMssqlPutRequest() *shared.Sourc } var sslMethod *shared.SourceMssqlUpdateSSLMethod if r.Configuration.SslMethod != nil { - var unencrypted *shared.Unencrypted + var sourceMssqlUpdateUnencrypted *shared.SourceMssqlUpdateUnencrypted if r.Configuration.SslMethod.Unencrypted != nil { - unencrypted = &shared.Unencrypted{} + sourceMssqlUpdateUnencrypted = &shared.SourceMssqlUpdateUnencrypted{} } - if unencrypted != nil { + if sourceMssqlUpdateUnencrypted != nil { sslMethod = &shared.SourceMssqlUpdateSSLMethod{ - Unencrypted: unencrypted, + SourceMssqlUpdateUnencrypted: sourceMssqlUpdateUnencrypted, } } var sourceMssqlUpdateEncryptedTrustServerCertificate *shared.SourceMssqlUpdateEncryptedTrustServerCertificate diff --git a/internal/provider/source_mysql_resource.go b/internal/provider/source_mysql_resource.go index de026639b..ed92f7882 100644 --- a/internal/provider/source_mysql_resource.go +++ b/internal/provider/source_mysql_resource.go @@ -16,6 +16,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" @@ -144,6 +145,12 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq validators.ExactlyOneChild(), }, }, + "ssl": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + Description: `Encrypt data using SSL. Default: true`, + }, "ssl_mode": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ diff --git a/internal/provider/source_mysql_resource_sdk.go b/internal/provider/source_mysql_resource_sdk.go index 9137c9bd9..74a3e1db5 100644 --- a/internal/provider/source_mysql_resource_sdk.go +++ b/internal/provider/source_mysql_resource_sdk.go @@ -76,6 +76,12 @@ func (r *SourceMysqlResourceModel) ToSharedSourceMysqlCreateRequest() *shared.So SourceMysqlScanChangesWithUserDefinedCursor: sourceMysqlScanChangesWithUserDefinedCursor, } } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var sslMode *shared.SourceMysqlSSLModes if r.Configuration.SslMode != nil { var sourceMysqlPreferred *shared.SourceMysqlPreferred @@ -229,6 +235,7 @@ func (r *SourceMysqlResourceModel) ToSharedSourceMysqlCreateRequest() *shared.So Password: password, Port: port, ReplicationMethod: replicationMethod, + Ssl: ssl, SslMode: sslMode, TunnelMethod: tunnelMethod, Username: username, @@ -335,6 +342,12 @@ func (r *SourceMysqlResourceModel) ToSharedSourceMysqlPutRequest() *shared.Sourc SourceMysqlUpdateScanChangesWithUserDefinedCursor: sourceMysqlUpdateScanChangesWithUserDefinedCursor, } } + ssl := new(bool) + if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() { + *ssl = r.Configuration.Ssl.ValueBool() + } else { + ssl = nil + } var sslMode *shared.SourceMysqlUpdateSSLModes if r.Configuration.SslMode != nil { var preferred *shared.Preferred @@ -488,6 +501,7 @@ func (r *SourceMysqlResourceModel) ToSharedSourceMysqlPutRequest() *shared.Sourc Password: password, Port: port, ReplicationMethod: replicationMethod, + Ssl: ssl, SslMode: sslMode, TunnelMethod: tunnelMethod, Username: username, diff --git a/internal/provider/source_nylas_data_source.go b/internal/provider/source_nylas_data_source.go new file mode 100644 index 000000000..7e02cdf51 --- /dev/null +++ b/internal/provider/source_nylas_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 = &SourceNylasDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceNylasDataSource{} + +func NewSourceNylasDataSource() datasource.DataSource { + return &SourceNylasDataSource{} +} + +// SourceNylasDataSource is the data source implementation. +type SourceNylasDataSource struct { + client *sdk.SDK +} + +// SourceNylasDataSourceModel describes the data model. +type SourceNylasDataSourceModel 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 *SourceNylasDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_nylas" +} + +// Schema defines the schema for the data source. +func (r *SourceNylasDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceNylas 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 *SourceNylasDataSource) 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 *SourceNylasDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceNylasDataSourceModel + 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.GetSourceNylasRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceNylas(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_nylas_data_source_sdk.go b/internal/provider/source_nylas_data_source_sdk.go new file mode 100644 index 000000000..229ba67c8 --- /dev/null +++ b/internal/provider/source_nylas_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 *SourceNylasDataSourceModel) 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_nylas_resource.go b/internal/provider/source_nylas_resource.go new file mode 100644 index 000000000..89e63c6cd --- /dev/null +++ b/internal/provider/source_nylas_resource.go @@ -0,0 +1,389 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + speakeasy_objectplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/objectplanmodifier" + speakeasy_stringplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/stringplanmodifier" + tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/airbytehq/terraform-provider-airbyte/internal/validators" + "github.com/hashicorp/terraform-plugin-framework-validators/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/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 = &SourceNylasResource{} +var _ resource.ResourceWithImportState = &SourceNylasResource{} + +func NewSourceNylasResource() resource.Resource { + return &SourceNylasResource{} +} + +// SourceNylasResource defines the resource implementation. +type SourceNylasResource struct { + client *sdk.SDK +} + +// SourceNylasResourceModel describes the resource data model. +type SourceNylasResourceModel struct { + Configuration tfTypes.SourceNylas `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 *SourceNylasResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_nylas" +} + +func (r *SourceNylasResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceNylas 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, + }, + "api_server": schema.StringAttribute{ + Required: true, + Description: `must be one of ["us", "eu"]`, + Validators: []validator.String{ + stringvalidator.OneOf( + "us", + "eu", + ), + }, + }, + "end_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "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 *SourceNylasResource) 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 *SourceNylasResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceNylasResourceModel + 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.ToSharedSourceNylasCreateRequest() + res, err := r.client.Sources.CreateSourceNylas(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.GetSourceNylasRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceNylas(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 *SourceNylasResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceNylasResourceModel + 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.GetSourceNylasRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceNylas(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 *SourceNylasResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceNylasResourceModel + 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 + } + + sourceNylasPutRequest := data.ToSharedSourceNylasPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceNylasRequest{ + SourceNylasPutRequest: sourceNylasPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceNylas(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.GetSourceNylasRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceNylas(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 *SourceNylasResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceNylasResourceModel + 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.DeleteSourceNylasRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceNylas(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 *SourceNylasResource) 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_nylas_resource_sdk.go b/internal/provider/source_nylas_resource_sdk.go new file mode 100644 index 000000000..b0fcff3d2 --- /dev/null +++ b/internal/provider/source_nylas_resource_sdk.go @@ -0,0 +1,74 @@ +// 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 *SourceNylasResourceModel) ToSharedSourceNylasCreateRequest() *shared.SourceNylasCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + apiServer := shared.SourceNylasAPIServer(r.Configuration.APIServer.ValueString()) + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceNylas{ + APIKey: apiKey, + APIServer: apiServer, + EndDate: endDate, + 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.SourceNylasCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceNylasResourceModel) 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 *SourceNylasResourceModel) ToSharedSourceNylasPutRequest() *shared.SourceNylasPutRequest { + apiKey := r.Configuration.APIKey.ValueString() + apiServer := shared.APIServer(r.Configuration.APIServer.ValueString()) + endDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.EndDate.ValueString()) + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceNylasUpdate{ + APIKey: apiKey, + APIServer: apiServer, + EndDate: endDate, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceNylasPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_oracle_resource.go b/internal/provider/source_oracle_resource.go index b9696fd60..ab4604dd1 100644 --- a/internal/provider/source_oracle_resource.go +++ b/internal/provider/source_oracle_resource.go @@ -102,7 +102,7 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe }, }, "encryption": schema.SingleNestedAttribute{ - Required: true, + Optional: true, Attributes: map[string]schema.Attribute{ "native_network_encryption_nne": schema.SingleNestedAttribute{ Optional: true, @@ -125,6 +125,7 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("tls_encrypted_verify_certificate"), + path.MatchRelative().AtParent().AtName("unencrypted"), }...), }, }, @@ -141,6 +142,18 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("native_network_encryption_nne"), + path.MatchRelative().AtParent().AtName("unencrypted"), + }...), + }, + }, + "unencrypted": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Description: `Data transfer will not be encrypted.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("native_network_encryption_nne"), + path.MatchRelative().AtParent().AtName("tls_encrypted_verify_certificate"), }...), }, }, diff --git a/internal/provider/source_oracle_resource_sdk.go b/internal/provider/source_oracle_resource_sdk.go index 8d2511baa..fc7999039 100644 --- a/internal/provider/source_oracle_resource_sdk.go +++ b/internal/provider/source_oracle_resource_sdk.go @@ -35,34 +35,45 @@ func (r *SourceOracleResourceModel) ToSharedSourceOracleCreateRequest() *shared. } } } - var encryption shared.SourceOracleEncryption - var sourceOracleNativeNetworkEncryptionNNE *shared.SourceOracleNativeNetworkEncryptionNNE - if r.Configuration.Encryption.NativeNetworkEncryptionNNE != nil { - encryptionAlgorithm := new(shared.SourceOracleEncryptionAlgorithm) - if !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsUnknown() && !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsNull() { - *encryptionAlgorithm = shared.SourceOracleEncryptionAlgorithm(r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.ValueString()) - } else { - encryptionAlgorithm = nil - } - sourceOracleNativeNetworkEncryptionNNE = &shared.SourceOracleNativeNetworkEncryptionNNE{ - EncryptionAlgorithm: encryptionAlgorithm, + var encryption *shared.SourceOracleEncryption + if r.Configuration.Encryption != nil { + var sourceOracleUnencrypted *shared.SourceOracleUnencrypted + if r.Configuration.Encryption.Unencrypted != nil { + sourceOracleUnencrypted = &shared.SourceOracleUnencrypted{} } - } - if sourceOracleNativeNetworkEncryptionNNE != nil { - encryption = shared.SourceOracleEncryption{ - SourceOracleNativeNetworkEncryptionNNE: sourceOracleNativeNetworkEncryptionNNE, + if sourceOracleUnencrypted != nil { + encryption = &shared.SourceOracleEncryption{ + SourceOracleUnencrypted: sourceOracleUnencrypted, + } } - } - var sourceOracleTLSEncryptedVerifyCertificate *shared.SourceOracleTLSEncryptedVerifyCertificate - if r.Configuration.Encryption.TLSEncryptedVerifyCertificate != nil { - sslCertificate := r.Configuration.Encryption.TLSEncryptedVerifyCertificate.SslCertificate.ValueString() - sourceOracleTLSEncryptedVerifyCertificate = &shared.SourceOracleTLSEncryptedVerifyCertificate{ - SslCertificate: sslCertificate, + var sourceOracleNativeNetworkEncryptionNNE *shared.SourceOracleNativeNetworkEncryptionNNE + if r.Configuration.Encryption.NativeNetworkEncryptionNNE != nil { + encryptionAlgorithm := new(shared.SourceOracleEncryptionAlgorithm) + if !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsUnknown() && !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsNull() { + *encryptionAlgorithm = shared.SourceOracleEncryptionAlgorithm(r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.ValueString()) + } else { + encryptionAlgorithm = nil + } + sourceOracleNativeNetworkEncryptionNNE = &shared.SourceOracleNativeNetworkEncryptionNNE{ + EncryptionAlgorithm: encryptionAlgorithm, + } } - } - if sourceOracleTLSEncryptedVerifyCertificate != nil { - encryption = shared.SourceOracleEncryption{ - SourceOracleTLSEncryptedVerifyCertificate: sourceOracleTLSEncryptedVerifyCertificate, + if sourceOracleNativeNetworkEncryptionNNE != nil { + encryption = &shared.SourceOracleEncryption{ + SourceOracleNativeNetworkEncryptionNNE: sourceOracleNativeNetworkEncryptionNNE, + } + } + var sourceOracleTLSEncryptedVerifyCertificate *shared.SourceOracleTLSEncryptedVerifyCertificate + if r.Configuration.Encryption.TLSEncryptedVerifyCertificate != nil { + sslCertificate := r.Configuration.Encryption.TLSEncryptedVerifyCertificate.SslCertificate.ValueString() + sourceOracleTLSEncryptedVerifyCertificate = &shared.SourceOracleTLSEncryptedVerifyCertificate{ + SslCertificate: sslCertificate, + } + } + if sourceOracleTLSEncryptedVerifyCertificate != nil { + encryption = &shared.SourceOracleEncryption{ + SourceOracleTLSEncryptedVerifyCertificate: sourceOracleTLSEncryptedVerifyCertificate, + } } } host := r.Configuration.Host.ValueString() @@ -219,34 +230,45 @@ func (r *SourceOracleResourceModel) ToSharedSourceOraclePutRequest() *shared.Sou } } } - var encryption shared.Encryption - var nativeNetworkEncryptionNNE *shared.NativeNetworkEncryptionNNE - if r.Configuration.Encryption.NativeNetworkEncryptionNNE != nil { - encryptionAlgorithm := new(shared.EncryptionAlgorithm) - if !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsUnknown() && !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsNull() { - *encryptionAlgorithm = shared.EncryptionAlgorithm(r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.ValueString()) - } else { - encryptionAlgorithm = nil - } - nativeNetworkEncryptionNNE = &shared.NativeNetworkEncryptionNNE{ - EncryptionAlgorithm: encryptionAlgorithm, + var encryption *shared.SourceOracleUpdateEncryption + if r.Configuration.Encryption != nil { + var sourceOracleUpdateUnencrypted *shared.SourceOracleUpdateUnencrypted + if r.Configuration.Encryption.Unencrypted != nil { + sourceOracleUpdateUnencrypted = &shared.SourceOracleUpdateUnencrypted{} } - } - if nativeNetworkEncryptionNNE != nil { - encryption = shared.Encryption{ - NativeNetworkEncryptionNNE: nativeNetworkEncryptionNNE, + if sourceOracleUpdateUnencrypted != nil { + encryption = &shared.SourceOracleUpdateEncryption{ + SourceOracleUpdateUnencrypted: sourceOracleUpdateUnencrypted, + } } - } - var tlsEncryptedVerifyCertificate *shared.TLSEncryptedVerifyCertificate - if r.Configuration.Encryption.TLSEncryptedVerifyCertificate != nil { - sslCertificate := r.Configuration.Encryption.TLSEncryptedVerifyCertificate.SslCertificate.ValueString() - tlsEncryptedVerifyCertificate = &shared.TLSEncryptedVerifyCertificate{ - SslCertificate: sslCertificate, + var sourceOracleUpdateNativeNetworkEncryptionNNE *shared.SourceOracleUpdateNativeNetworkEncryptionNNE + if r.Configuration.Encryption.NativeNetworkEncryptionNNE != nil { + encryptionAlgorithm := new(shared.SourceOracleUpdateEncryptionAlgorithm) + if !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsUnknown() && !r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.IsNull() { + *encryptionAlgorithm = shared.SourceOracleUpdateEncryptionAlgorithm(r.Configuration.Encryption.NativeNetworkEncryptionNNE.EncryptionAlgorithm.ValueString()) + } else { + encryptionAlgorithm = nil + } + sourceOracleUpdateNativeNetworkEncryptionNNE = &shared.SourceOracleUpdateNativeNetworkEncryptionNNE{ + EncryptionAlgorithm: encryptionAlgorithm, + } } - } - if tlsEncryptedVerifyCertificate != nil { - encryption = shared.Encryption{ - TLSEncryptedVerifyCertificate: tlsEncryptedVerifyCertificate, + if sourceOracleUpdateNativeNetworkEncryptionNNE != nil { + encryption = &shared.SourceOracleUpdateEncryption{ + SourceOracleUpdateNativeNetworkEncryptionNNE: sourceOracleUpdateNativeNetworkEncryptionNNE, + } + } + var sourceOracleUpdateTLSEncryptedVerifyCertificate *shared.SourceOracleUpdateTLSEncryptedVerifyCertificate + if r.Configuration.Encryption.TLSEncryptedVerifyCertificate != nil { + sslCertificate := r.Configuration.Encryption.TLSEncryptedVerifyCertificate.SslCertificate.ValueString() + sourceOracleUpdateTLSEncryptedVerifyCertificate = &shared.SourceOracleUpdateTLSEncryptedVerifyCertificate{ + SslCertificate: sslCertificate, + } + } + if sourceOracleUpdateTLSEncryptedVerifyCertificate != nil { + encryption = &shared.SourceOracleUpdateEncryption{ + SourceOracleUpdateTLSEncryptedVerifyCertificate: sourceOracleUpdateTLSEncryptedVerifyCertificate, + } } } host := r.Configuration.Host.ValueString() diff --git a/internal/provider/source_picqer_data_source.go b/internal/provider/source_picqer_data_source.go new file mode 100644 index 000000000..9308df754 --- /dev/null +++ b/internal/provider/source_picqer_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 = &SourcePicqerDataSource{} +var _ datasource.DataSourceWithConfigure = &SourcePicqerDataSource{} + +func NewSourcePicqerDataSource() datasource.DataSource { + return &SourcePicqerDataSource{} +} + +// SourcePicqerDataSource is the data source implementation. +type SourcePicqerDataSource struct { + client *sdk.SDK +} + +// SourcePicqerDataSourceModel describes the data model. +type SourcePicqerDataSourceModel 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 *SourcePicqerDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_picqer" +} + +// Schema defines the schema for the data source. +func (r *SourcePicqerDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourcePicqer 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 *SourcePicqerDataSource) 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 *SourcePicqerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourcePicqerDataSourceModel + 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.GetSourcePicqerRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourcePicqer(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_picqer_data_source_sdk.go b/internal/provider/source_picqer_data_source_sdk.go new file mode 100644 index 000000000..ff606d103 --- /dev/null +++ b/internal/provider/source_picqer_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 *SourcePicqerDataSourceModel) 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_picqer_resource.go b/internal/provider/source_picqer_resource.go new file mode 100644 index 000000000..306fb885d --- /dev/null +++ b/internal/provider/source_picqer_resource.go @@ -0,0 +1,379 @@ +// 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 = &SourcePicqerResource{} +var _ resource.ResourceWithImportState = &SourcePicqerResource{} + +func NewSourcePicqerResource() resource.Resource { + return &SourcePicqerResource{} +} + +// SourcePicqerResource defines the resource implementation. +type SourcePicqerResource struct { + client *sdk.SDK +} + +// SourcePicqerResourceModel describes the resource data model. +type SourcePicqerResourceModel struct { + Configuration tfTypes.SourcePicqer `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 *SourcePicqerResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_picqer" +} + +func (r *SourcePicqerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourcePicqer 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{ + "organization_name": schema.StringAttribute{ + Required: true, + Description: `The organization name which is used to login to picqer`, + }, + "password": schema.StringAttribute{ + Optional: true, + Sensitive: true, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "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 *SourcePicqerResource) 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 *SourcePicqerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourcePicqerResourceModel + 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.ToSharedSourcePicqerCreateRequest() + res, err := r.client.Sources.CreateSourcePicqer(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.GetSourcePicqerRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourcePicqer(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 *SourcePicqerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourcePicqerResourceModel + 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.GetSourcePicqerRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourcePicqer(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 *SourcePicqerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourcePicqerResourceModel + 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 + } + + sourcePicqerPutRequest := data.ToSharedSourcePicqerPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourcePicqerRequest{ + SourcePicqerPutRequest: sourcePicqerPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourcePicqer(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.GetSourcePicqerRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourcePicqer(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 *SourcePicqerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourcePicqerResourceModel + 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.DeleteSourcePicqerRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourcePicqer(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 *SourcePicqerResource) 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_picqer_resource_sdk.go b/internal/provider/source_picqer_resource_sdk.go new file mode 100644 index 000000000..ac8ffc1b1 --- /dev/null +++ b/internal/provider/source_picqer_resource_sdk.go @@ -0,0 +1,84 @@ +// 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 *SourcePicqerResourceModel) ToSharedSourcePicqerCreateRequest() *shared.SourcePicqerCreateRequest { + organizationName := r.Configuration.OrganizationName.ValueString() + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + username := r.Configuration.Username.ValueString() + configuration := shared.SourcePicqer{ + OrganizationName: organizationName, + Password: password, + StartDate: startDate, + 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.SourcePicqerCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourcePicqerResourceModel) 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 *SourcePicqerResourceModel) ToSharedSourcePicqerPutRequest() *shared.SourcePicqerPutRequest { + organizationName := r.Configuration.OrganizationName.ValueString() + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + username := r.Configuration.Username.ValueString() + configuration := shared.SourcePicqerUpdate{ + OrganizationName: organizationName, + Password: password, + StartDate: startDate, + Username: username, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourcePicqerPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_piwik_data_source.go b/internal/provider/source_piwik_data_source.go new file mode 100644 index 000000000..b8ef81aaa --- /dev/null +++ b/internal/provider/source_piwik_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 = &SourcePiwikDataSource{} +var _ datasource.DataSourceWithConfigure = &SourcePiwikDataSource{} + +func NewSourcePiwikDataSource() datasource.DataSource { + return &SourcePiwikDataSource{} +} + +// SourcePiwikDataSource is the data source implementation. +type SourcePiwikDataSource struct { + client *sdk.SDK +} + +// SourcePiwikDataSourceModel describes the data model. +type SourcePiwikDataSourceModel 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 *SourcePiwikDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_piwik" +} + +// Schema defines the schema for the data source. +func (r *SourcePiwikDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourcePiwik 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 *SourcePiwikDataSource) 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 *SourcePiwikDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourcePiwikDataSourceModel + 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.GetSourcePiwikRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourcePiwik(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_piwik_data_source_sdk.go b/internal/provider/source_piwik_data_source_sdk.go new file mode 100644 index 000000000..3d8609a54 --- /dev/null +++ b/internal/provider/source_piwik_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 *SourcePiwikDataSourceModel) 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_piwik_resource.go b/internal/provider/source_piwik_resource.go new file mode 100644 index 000000000..f44fd1028 --- /dev/null +++ b/internal/provider/source_piwik_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/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 = &SourcePiwikResource{} +var _ resource.ResourceWithImportState = &SourcePiwikResource{} + +func NewSourcePiwikResource() resource.Resource { + return &SourcePiwikResource{} +} + +// SourcePiwikResource defines the resource implementation. +type SourcePiwikResource struct { + client *sdk.SDK +} + +// SourcePiwikResourceModel describes the resource data model. +type SourcePiwikResourceModel struct { + Configuration tfTypes.SourcePiwik `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 *SourcePiwikResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_piwik" +} + +func (r *SourcePiwikResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourcePiwik 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, + }, + "organization_id": schema.StringAttribute{ + Required: true, + Description: `The organization id appearing at URL of your piwik website`, + }, + }, + }, + "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 *SourcePiwikResource) 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 *SourcePiwikResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourcePiwikResourceModel + 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.ToSharedSourcePiwikCreateRequest() + res, err := r.client.Sources.CreateSourcePiwik(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.GetSourcePiwikRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourcePiwik(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 *SourcePiwikResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourcePiwikResourceModel + 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.GetSourcePiwikRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourcePiwik(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 *SourcePiwikResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourcePiwikResourceModel + 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 + } + + sourcePiwikPutRequest := data.ToSharedSourcePiwikPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourcePiwikRequest{ + SourcePiwikPutRequest: sourcePiwikPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourcePiwik(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.GetSourcePiwikRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourcePiwik(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 *SourcePiwikResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourcePiwikResourceModel + 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.DeleteSourcePiwikRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourcePiwik(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 *SourcePiwikResource) 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_piwik_resource_sdk.go b/internal/provider/source_piwik_resource_sdk.go new file mode 100644 index 000000000..d67b827ff --- /dev/null +++ b/internal/provider/source_piwik_resource_sdk.go @@ -0,0 +1,69 @@ +// 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 *SourcePiwikResourceModel) ToSharedSourcePiwikCreateRequest() *shared.SourcePiwikCreateRequest { + clientID := r.Configuration.ClientID.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + organizationID := r.Configuration.OrganizationID.ValueString() + configuration := shared.SourcePiwik{ + ClientID: clientID, + ClientSecret: clientSecret, + OrganizationID: organizationID, + } + 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.SourcePiwikCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourcePiwikResourceModel) 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 *SourcePiwikResourceModel) ToSharedSourcePiwikPutRequest() *shared.SourcePiwikPutRequest { + clientID := r.Configuration.ClientID.ValueString() + clientSecret := r.Configuration.ClientSecret.ValueString() + organizationID := r.Configuration.OrganizationID.ValueString() + configuration := shared.SourcePiwikUpdate{ + ClientID: clientID, + ClientSecret: clientSecret, + OrganizationID: organizationID, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourcePiwikPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_productboard_data_source.go b/internal/provider/source_productboard_data_source.go new file mode 100644 index 000000000..052713330 --- /dev/null +++ b/internal/provider/source_productboard_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 = &SourceProductboardDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceProductboardDataSource{} + +func NewSourceProductboardDataSource() datasource.DataSource { + return &SourceProductboardDataSource{} +} + +// SourceProductboardDataSource is the data source implementation. +type SourceProductboardDataSource struct { + client *sdk.SDK +} + +// SourceProductboardDataSourceModel describes the data model. +type SourceProductboardDataSourceModel 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 *SourceProductboardDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_productboard" +} + +// Schema defines the schema for the data source. +func (r *SourceProductboardDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceProductboard 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 *SourceProductboardDataSource) 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 *SourceProductboardDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceProductboardDataSourceModel + 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.GetSourceProductboardRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceProductboard(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_productboard_data_source_sdk.go b/internal/provider/source_productboard_data_source_sdk.go new file mode 100644 index 000000000..33cd0b83b --- /dev/null +++ b/internal/provider/source_productboard_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 *SourceProductboardDataSourceModel) 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/destination_devnull_resource.go b/internal/provider/source_productboard_resource.go similarity index 69% rename from internal/provider/destination_devnull_resource.go rename to internal/provider/source_productboard_resource.go index 29ccd9c6a..bbee5b134 100644 --- a/internal/provider/destination_devnull_resource.go +++ b/internal/provider/source_productboard_resource.go @@ -22,35 +22,36 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ resource.Resource = &DestinationDevNullResource{} -var _ resource.ResourceWithImportState = &DestinationDevNullResource{} +var _ resource.Resource = &SourceProductboardResource{} +var _ resource.ResourceWithImportState = &SourceProductboardResource{} -func NewDestinationDevNullResource() resource.Resource { - return &DestinationDevNullResource{} +func NewSourceProductboardResource() resource.Resource { + return &SourceProductboardResource{} } -// DestinationDevNullResource defines the resource implementation. -type DestinationDevNullResource struct { +// SourceProductboardResource defines the resource implementation. +type SourceProductboardResource struct { client *sdk.SDK } -// DestinationDevNullResourceModel describes the resource data model. -type DestinationDevNullResourceModel struct { - Configuration tfTypes.DestinationDevNull `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"` +// SourceProductboardResourceModel describes the resource data model. +type SourceProductboardResourceModel struct { + Configuration tfTypes.Source7shifts `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 *DestinationDevNullResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_destination_dev_null" +func (r *SourceProductboardResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_productboard" } -func (r *DestinationDevNullResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { +func (r *SourceProductboardResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "DestinationDevNull Resource", + MarkdownDescription: "SourceProductboard Resource", Attributes: map[string]schema.Attribute{ "configuration": schema.SingleNestedAttribute{ PlanModifiers: []planmodifier.Object{ @@ -58,17 +59,15 @@ func (r *DestinationDevNullResource) Schema(ctx context.Context, req resource.Sc }, Required: true, Attributes: map[string]schema.Attribute{ - "test_destination": schema.SingleNestedAttribute{ + "access_token": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `Your Productboard access token. See https://developer.productboard.com/reference/authentication for steps to generate one.`, + }, + "start_date": schema.StringAttribute{ Required: true, - Attributes: map[string]schema.Attribute{ - "silent": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{}, - }, - }, - Description: `The type of destination to be used`, - Validators: []validator.Object{ - validators.ExactlyOneChild(), + Validators: []validator.String{ + validators.IsRFC3339(), }, }, }, @@ -78,26 +77,33 @@ func (r *DestinationDevNullResource) Schema(ctx context.Context, req resource.Sc stringplanmodifier.RequiresReplaceIfConfigured(), }, Optional: true, - Description: `The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. Requires replacement if changed. `, + Description: `The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed. `, }, - "destination_id": schema.StringAttribute{ - Computed: true, + "name": schema.StringAttribute{ PlanModifiers: []planmodifier.String{ speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), }, + Required: true, + Description: `Name of the source e.g. dev-mysql-instance.`, }, - "destination_type": schema.StringAttribute{ + "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), }, }, - "name": schema.StringAttribute{ + "source_type": schema.StringAttribute{ + Computed: true, PlanModifiers: []planmodifier.String{ speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), }, - Required: true, - Description: `Name of the destination e.g. dev-mysql-instance.`, }, "workspace_id": schema.StringAttribute{ PlanModifiers: []planmodifier.String{ @@ -109,7 +115,7 @@ func (r *DestinationDevNullResource) Schema(ctx context.Context, req resource.Sc } } -func (r *DestinationDevNullResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { +func (r *SourceProductboardResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -129,8 +135,8 @@ func (r *DestinationDevNullResource) Configure(ctx context.Context, req resource r.client = client } -func (r *DestinationDevNullResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *DestinationDevNullResourceModel +func (r *SourceProductboardResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceProductboardResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -147,8 +153,8 @@ func (r *DestinationDevNullResource) Create(ctx context.Context, req resource.Cr return } - request := data.ToSharedDestinationDevNullCreateRequest() - res, err := r.client.Destinations.CreateDestinationDevNull(ctx, request) + request := data.ToSharedSourceProductboardCreateRequest() + res, err := r.client.Sources.CreateSourceProductboard(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -164,17 +170,17 @@ func (r *DestinationDevNullResource) Create(ctx context.Context, req resource.Cr resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) return } - if !(res.DestinationResponse != nil) { + if !(res.SourceResponse != nil) { resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res.RawResponse)) return } - data.RefreshFromSharedDestinationResponse(res.DestinationResponse) + data.RefreshFromSharedSourceResponse(res.SourceResponse) refreshPlan(ctx, plan, &data, resp.Diagnostics) - destinationID := data.DestinationID.ValueString() - request1 := operations.GetDestinationDevNullRequest{ - DestinationID: destinationID, + sourceID := data.SourceID.ValueString() + request1 := operations.GetSourceProductboardRequest{ + SourceID: sourceID, } - res1, err := r.client.Destinations.GetDestinationDevNull(ctx, request1) + res1, err := r.client.Sources.GetSourceProductboard(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -190,19 +196,19 @@ func (r *DestinationDevNullResource) Create(ctx context.Context, req resource.Cr resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res1.StatusCode), debugResponse(res1.RawResponse)) return } - if !(res1.DestinationResponse != nil) { + if !(res1.SourceResponse != nil) { resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res1.RawResponse)) return } - data.RefreshFromSharedDestinationResponse(res1.DestinationResponse) + 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 *DestinationDevNullResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *DestinationDevNullResourceModel +func (r *SourceProductboardResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceProductboardResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -219,11 +225,11 @@ func (r *DestinationDevNullResource) Read(ctx context.Context, req resource.Read return } - destinationID := data.DestinationID.ValueString() - request := operations.GetDestinationDevNullRequest{ - DestinationID: destinationID, + sourceID := data.SourceID.ValueString() + request := operations.GetSourceProductboardRequest{ + SourceID: sourceID, } - res, err := r.client.Destinations.GetDestinationDevNull(ctx, request) + res, err := r.client.Sources.GetSourceProductboard(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -243,18 +249,18 @@ func (r *DestinationDevNullResource) Read(ctx context.Context, req resource.Read resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) return } - if !(res.DestinationResponse != nil) { + if !(res.SourceResponse != nil) { resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res.RawResponse)) return } - data.RefreshFromSharedDestinationResponse(res.DestinationResponse) + data.RefreshFromSharedSourceResponse(res.SourceResponse) // Save updated data into Terraform state resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *DestinationDevNullResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *DestinationDevNullResourceModel +func (r *SourceProductboardResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceProductboardResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -267,13 +273,13 @@ func (r *DestinationDevNullResource) Update(ctx context.Context, req resource.Up return } - destinationDevNullPutRequest := data.ToSharedDestinationDevNullPutRequest() - destinationID := data.DestinationID.ValueString() - request := operations.PutDestinationDevNullRequest{ - DestinationDevNullPutRequest: destinationDevNullPutRequest, - DestinationID: destinationID, + sourceProductboardPutRequest := data.ToSharedSourceProductboardPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceProductboardRequest{ + SourceProductboardPutRequest: sourceProductboardPutRequest, + SourceID: sourceID, } - res, err := r.client.Destinations.PutDestinationDevNull(ctx, request) + res, err := r.client.Sources.PutSourceProductboard(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -290,11 +296,11 @@ func (r *DestinationDevNullResource) Update(ctx context.Context, req resource.Up return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - destinationId1 := data.DestinationID.ValueString() - request1 := operations.GetDestinationDevNullRequest{ - DestinationID: destinationId1, + sourceId1 := data.SourceID.ValueString() + request1 := operations.GetSourceProductboardRequest{ + SourceID: sourceId1, } - res1, err := r.client.Destinations.GetDestinationDevNull(ctx, request1) + res1, err := r.client.Sources.GetSourceProductboard(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -310,19 +316,19 @@ func (r *DestinationDevNullResource) Update(ctx context.Context, req resource.Up resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res1.StatusCode), debugResponse(res1.RawResponse)) return } - if !(res1.DestinationResponse != nil) { + if !(res1.SourceResponse != nil) { resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res1.RawResponse)) return } - data.RefreshFromSharedDestinationResponse(res1.DestinationResponse) + 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 *DestinationDevNullResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *DestinationDevNullResourceModel +func (r *SourceProductboardResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceProductboardResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -339,11 +345,11 @@ func (r *DestinationDevNullResource) Delete(ctx context.Context, req resource.De return } - destinationID := data.DestinationID.ValueString() - request := operations.DeleteDestinationDevNullRequest{ - DestinationID: destinationID, + sourceID := data.SourceID.ValueString() + request := operations.DeleteSourceProductboardRequest{ + SourceID: sourceID, } - res, err := r.client.Destinations.DeleteDestinationDevNull(ctx, request) + res, err := r.client.Sources.DeleteSourceProductboard(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -362,6 +368,6 @@ func (r *DestinationDevNullResource) Delete(ctx context.Context, req resource.De } -func (r *DestinationDevNullResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("destination_id"), req.ID)...) +func (r *SourceProductboardResource) 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_productboard_resource_sdk.go b/internal/provider/source_productboard_resource_sdk.go new file mode 100644 index 000000000..6120dd14c --- /dev/null +++ b/internal/provider/source_productboard_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 *SourceProductboardResourceModel) ToSharedSourceProductboardCreateRequest() *shared.SourceProductboardCreateRequest { + accessToken := r.Configuration.AccessToken.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceProductboard{ + AccessToken: accessToken, + 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.SourceProductboardCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceProductboardResourceModel) 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 *SourceProductboardResourceModel) ToSharedSourceProductboardPutRequest() *shared.SourceProductboardPutRequest { + accessToken := r.Configuration.AccessToken.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceProductboardUpdate{ + AccessToken: accessToken, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceProductboardPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_productive_data_source.go b/internal/provider/source_productive_data_source.go new file mode 100644 index 000000000..9b730a111 --- /dev/null +++ b/internal/provider/source_productive_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 = &SourceProductiveDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceProductiveDataSource{} + +func NewSourceProductiveDataSource() datasource.DataSource { + return &SourceProductiveDataSource{} +} + +// SourceProductiveDataSource is the data source implementation. +type SourceProductiveDataSource struct { + client *sdk.SDK +} + +// SourceProductiveDataSourceModel describes the data model. +type SourceProductiveDataSourceModel 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 *SourceProductiveDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_productive" +} + +// Schema defines the schema for the data source. +func (r *SourceProductiveDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceProductive 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 *SourceProductiveDataSource) 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 *SourceProductiveDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceProductiveDataSourceModel + 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.GetSourceProductiveRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceProductive(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_productive_data_source_sdk.go b/internal/provider/source_productive_data_source_sdk.go new file mode 100644 index 000000000..70b4363a8 --- /dev/null +++ b/internal/provider/source_productive_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 *SourceProductiveDataSourceModel) 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_productive_resource.go b/internal/provider/source_productive_resource.go new file mode 100644 index 000000000..2b751d9f1 --- /dev/null +++ b/internal/provider/source_productive_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 = &SourceProductiveResource{} +var _ resource.ResourceWithImportState = &SourceProductiveResource{} + +func NewSourceProductiveResource() resource.Resource { + return &SourceProductiveResource{} +} + +// SourceProductiveResource defines the resource implementation. +type SourceProductiveResource struct { + client *sdk.SDK +} + +// SourceProductiveResourceModel describes the resource data model. +type SourceProductiveResourceModel struct { + Configuration tfTypes.SourceProductive `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 *SourceProductiveResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_productive" +} + +func (r *SourceProductiveResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceProductive 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, + }, + "organization_id": schema.StringAttribute{ + Required: true, + Description: `The organization ID which could be seen from ` + "`" + `https://app.productive.io/xxxx-xxxx/settings/api-integrations` + "`" + ` page`, + }, + }, + }, + "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 *SourceProductiveResource) 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 *SourceProductiveResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceProductiveResourceModel + 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.ToSharedSourceProductiveCreateRequest() + res, err := r.client.Sources.CreateSourceProductive(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.GetSourceProductiveRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceProductive(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 *SourceProductiveResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceProductiveResourceModel + 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.GetSourceProductiveRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceProductive(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 *SourceProductiveResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceProductiveResourceModel + 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 + } + + sourceProductivePutRequest := data.ToSharedSourceProductivePutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceProductiveRequest{ + SourceProductivePutRequest: sourceProductivePutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceProductive(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.GetSourceProductiveRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceProductive(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 *SourceProductiveResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceProductiveResourceModel + 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.DeleteSourceProductiveRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceProductive(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 *SourceProductiveResource) 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_productive_resource_sdk.go b/internal/provider/source_productive_resource_sdk.go new file mode 100644 index 000000000..3be5b342f --- /dev/null +++ b/internal/provider/source_productive_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 *SourceProductiveResourceModel) ToSharedSourceProductiveCreateRequest() *shared.SourceProductiveCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + organizationID := r.Configuration.OrganizationID.ValueString() + configuration := shared.SourceProductive{ + APIKey: apiKey, + OrganizationID: organizationID, + } + 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.SourceProductiveCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceProductiveResourceModel) 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 *SourceProductiveResourceModel) ToSharedSourceProductivePutRequest() *shared.SourceProductivePutRequest { + apiKey := r.Configuration.APIKey.ValueString() + organizationID := r.Configuration.OrganizationID.ValueString() + configuration := shared.SourceProductiveUpdate{ + APIKey: apiKey, + OrganizationID: organizationID, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceProductivePutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_s3_resource.go b/internal/provider/source_s3_resource.go index 953c47c40..d1a2e57e8 100644 --- a/internal/provider/source_s3_resource.go +++ b/internal/provider/source_s3_resource.go @@ -79,222 +79,11 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques Required: true, Description: `Name of the S3 bucket where the file(s) exist.`, }, - "dataset": schema.StringAttribute{ - Optional: true, - Description: `Deprecated and will be removed soon. Please do not use this field anymore and use streams.name instead. The name of the stream you would like this source to output. Can contain letters, numbers, or underscores.`, - }, "endpoint": schema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString(""), - Description: `Endpoint to an S3 compatible service. Leave empty to use AWS. The custom endpoint must be secure, but the 'https' prefix is not required. Default: ""`, - }, - "format": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "avro": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{}, - Description: `This connector utilises fastavro for Avro parsing.`, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("csv"), - path.MatchRelative().AtParent().AtName("jsonl"), - path.MatchRelative().AtParent().AtName("parquet"), - }...), - }, - }, - "csv": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "additional_reader_options": schema.StringAttribute{ - Optional: true, - Description: `Optionally add a valid JSON string here to provide additional options to the csv reader. Mappings must correspond to options detailed here. 'column_types' is used internally to handle schema so overriding that would likely cause problems.`, - }, - "advanced_options": schema.StringAttribute{ - Optional: true, - Description: `Optionally add a valid JSON string here to provide additional Pyarrow ReadOptions. Specify 'column_names' here if your CSV doesn't have header, or if you want to use custom column names. 'block_size' and 'encoding' are already used above, specify them again here will override the values above.`, - }, - "block_size": schema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(10000), - Description: `The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors. Default: 10000`, - }, - "delimiter": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString(","), - Description: `The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Default: ","`, - }, - "double_quote": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - Description: `Whether two quotes in a quoted CSV value denote a single quote in the data. Default: true`, - }, - "encoding": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("utf8"), - Description: `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": schema.StringAttribute{ - Optional: true, - Description: `The character used for escaping special characters. To disallow escaping, leave this field blank.`, - }, - "infer_datatypes": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - Description: `Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings. Default: true`, - }, - "newlines_in_values": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False. Default: false`, - }, - "quote_char": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("\""), - Description: `The character used for quoting CSV values. To disallow quoting, make this field blank. Default: "\""`, - }, - }, - Description: `This connector utilises PyArrow (Apache Arrow) for CSV parsing.`, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("avro"), - path.MatchRelative().AtParent().AtName("jsonl"), - path.MatchRelative().AtParent().AtName("parquet"), - }...), - }, - }, - "jsonl": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "block_size": schema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - Description: `The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors. Default: 0`, - }, - "newlines_in_values": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False. Default: false`, - }, - "unexpected_field_behavior": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("infer"), - Description: `How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details. must be one of ["ignore", "infer", "error"]; Default: "infer"`, - Validators: []validator.String{ - stringvalidator.OneOf( - "ignore", - "infer", - "error", - ), - }, - }, - }, - Description: `This connector uses PyArrow for JSON Lines (jsonl) file parsing.`, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("avro"), - path.MatchRelative().AtParent().AtName("csv"), - path.MatchRelative().AtParent().AtName("parquet"), - }...), - }, - }, - "parquet": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "batch_size": schema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(65536), - Description: `Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide. Default: 65536`, - }, - "buffer_size": schema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(2), - Description: `Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide. Default: 2`, - }, - "columns": schema.ListAttribute{ - Optional: true, - ElementType: types.StringType, - Description: `If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.`, - }, - }, - Description: `This connector utilises PyArrow (Apache Arrow) for Parquet parsing.`, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("avro"), - path.MatchRelative().AtParent().AtName("csv"), - path.MatchRelative().AtParent().AtName("jsonl"), - }...), - }, - }, - }, - Description: `Deprecated and will be removed soon. Please do not use this field anymore and use streams.format instead. The format of the files you'd like to replicate`, - Validators: []validator.Object{ - validators.ExactlyOneChild(), - }, - }, - "path_pattern": schema.StringAttribute{ - Optional: true, - Description: `Deprecated and will be removed soon. Please do not use this field anymore and use streams.globs instead. A regular expression which tells the connector which files to replicate. All files which match this pattern will be replicated. Use | to separate multiple patterns. See this page to understand pattern syntax (GLOBSTAR and SPLIT flags are enabled). Use pattern ** to pick up all files.`, - }, - "provider": schema.SingleNestedAttribute{ - Optional: true, - 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 requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary.`, - }, - "aws_secret_access_key": schema.StringAttribute{ - Optional: true, - Sensitive: true, - Description: `In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary.`, - }, - "bucket": schema.StringAttribute{ - Optional: true, - Description: `Name of the S3 bucket where the file(s) exist.`, - }, - "endpoint": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString(""), - Description: `Endpoint to an S3 compatible service. Leave empty to use AWS. Default: ""`, - }, - "path_prefix": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString(""), - Description: `By providing a path-like prefix (e.g. myFolder/thisTable/) under which all the relevant files sit, we can optimize finding these in S3. This is optional but recommended if your bucket contains many folders/files which you don't need to replicate. Default: ""`, - }, - "region_name": schema.StringAttribute{ - Optional: true, - Description: `AWS region where the S3 bucket is located. If not provided, the region will be determined automatically.`, - }, - "role_arn": schema.StringAttribute{ - Optional: true, - Description: `Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page.`, - }, - "start_date": schema.StringAttribute{ - Optional: true, - Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any file modified before this date will not be replicated.`, - Validators: []validator.String{ - validators.IsRFC3339(), - }, - }, - }, - Description: `Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services`, + Description: `Endpoint to an S3 compatible service. Leave empty to use AWS. Default: ""`, }, "region_name": schema.StringAttribute{ Optional: true, @@ -304,12 +93,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques Optional: true, Description: `Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page.`, }, - "schema": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("{}"), - Description: `Deprecated and will be removed soon. Please do not use this field anymore and use streams.input_schema instead. Optionally provide a schema to enforce, as a valid JSON string. Ensure this is a mapping of { "column" : "type" }, where types are valid JSON Schema datatypes. Leave as {} to auto-infer the schema. Default: "{}"`, - }, "start_date": schema.StringAttribute{ Optional: true, Description: `UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated.`, @@ -433,18 +216,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques Default: booldefault.StaticBool(false), Description: `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": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("None"), - Description: `How to infer the types of the columns. If none, inference default to strings. must be one of ["None", "Primitive Types Only"]; Default: "None"`, - Validators: []validator.String{ - stringvalidator.OneOf( - "None", - "Primitive Types Only", - ), - }, - }, "null_values": schema.ListAttribute{ Optional: true, ElementType: types.StringType, @@ -589,18 +360,10 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques Optional: true, Description: `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": schema.StringAttribute{ - Optional: true, - 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, Description: `The name of the stream.`, }, - "primary_key": schema.StringAttribute{ - Optional: 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.`, diff --git a/internal/provider/source_s3_resource_sdk.go b/internal/provider/source_s3_resource_sdk.go index 7a0c1ae01..54abec12c 100644 --- a/internal/provider/source_s3_resource_sdk.go +++ b/internal/provider/source_s3_resource_sdk.go @@ -22,260 +22,29 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 awsSecretAccessKey = nil } bucket := r.Configuration.Bucket.ValueString() - dataset := new(string) - if !r.Configuration.Dataset.IsUnknown() && !r.Configuration.Dataset.IsNull() { - *dataset = r.Configuration.Dataset.ValueString() - } else { - dataset = nil - } endpoint := new(string) if !r.Configuration.Endpoint.IsUnknown() && !r.Configuration.Endpoint.IsNull() { *endpoint = r.Configuration.Endpoint.ValueString() } else { endpoint = nil } - var format *shared.SourceS3FileFormat - if r.Configuration.Format != nil { - var sourceS3CSV *shared.SourceS3CSV - if r.Configuration.Format.Csv != nil { - additionalReaderOptions := new(string) - if !r.Configuration.Format.Csv.AdditionalReaderOptions.IsUnknown() && !r.Configuration.Format.Csv.AdditionalReaderOptions.IsNull() { - *additionalReaderOptions = r.Configuration.Format.Csv.AdditionalReaderOptions.ValueString() - } else { - additionalReaderOptions = nil - } - advancedOptions := new(string) - if !r.Configuration.Format.Csv.AdvancedOptions.IsUnknown() && !r.Configuration.Format.Csv.AdvancedOptions.IsNull() { - *advancedOptions = r.Configuration.Format.Csv.AdvancedOptions.ValueString() - } else { - advancedOptions = nil - } - blockSize := new(int64) - if !r.Configuration.Format.Csv.BlockSize.IsUnknown() && !r.Configuration.Format.Csv.BlockSize.IsNull() { - *blockSize = r.Configuration.Format.Csv.BlockSize.ValueInt64() - } else { - blockSize = nil - } - delimiter := new(string) - if !r.Configuration.Format.Csv.Delimiter.IsUnknown() && !r.Configuration.Format.Csv.Delimiter.IsNull() { - *delimiter = r.Configuration.Format.Csv.Delimiter.ValueString() - } else { - delimiter = nil - } - doubleQuote := new(bool) - if !r.Configuration.Format.Csv.DoubleQuote.IsUnknown() && !r.Configuration.Format.Csv.DoubleQuote.IsNull() { - *doubleQuote = r.Configuration.Format.Csv.DoubleQuote.ValueBool() - } else { - doubleQuote = nil - } - encoding := new(string) - if !r.Configuration.Format.Csv.Encoding.IsUnknown() && !r.Configuration.Format.Csv.Encoding.IsNull() { - *encoding = r.Configuration.Format.Csv.Encoding.ValueString() - } else { - encoding = nil - } - escapeChar := new(string) - if !r.Configuration.Format.Csv.EscapeChar.IsUnknown() && !r.Configuration.Format.Csv.EscapeChar.IsNull() { - *escapeChar = r.Configuration.Format.Csv.EscapeChar.ValueString() - } else { - escapeChar = nil - } - inferDatatypes := new(bool) - if !r.Configuration.Format.Csv.InferDatatypes.IsUnknown() && !r.Configuration.Format.Csv.InferDatatypes.IsNull() { - *inferDatatypes = r.Configuration.Format.Csv.InferDatatypes.ValueBool() - } else { - inferDatatypes = nil - } - newlinesInValues := new(bool) - if !r.Configuration.Format.Csv.NewlinesInValues.IsUnknown() && !r.Configuration.Format.Csv.NewlinesInValues.IsNull() { - *newlinesInValues = r.Configuration.Format.Csv.NewlinesInValues.ValueBool() - } else { - newlinesInValues = nil - } - quoteChar := new(string) - if !r.Configuration.Format.Csv.QuoteChar.IsUnknown() && !r.Configuration.Format.Csv.QuoteChar.IsNull() { - *quoteChar = r.Configuration.Format.Csv.QuoteChar.ValueString() - } else { - quoteChar = nil - } - sourceS3CSV = &shared.SourceS3CSV{ - AdditionalReaderOptions: additionalReaderOptions, - AdvancedOptions: advancedOptions, - BlockSize: blockSize, - Delimiter: delimiter, - DoubleQuote: doubleQuote, - Encoding: encoding, - EscapeChar: escapeChar, - InferDatatypes: inferDatatypes, - NewlinesInValues: newlinesInValues, - QuoteChar: quoteChar, - } - } - if sourceS3CSV != nil { - format = &shared.SourceS3FileFormat{ - SourceS3CSV: sourceS3CSV, - } - } - var sourceS3Parquet *shared.SourceS3Parquet - if r.Configuration.Format.Parquet != nil { - batchSize := new(int64) - if !r.Configuration.Format.Parquet.BatchSize.IsUnknown() && !r.Configuration.Format.Parquet.BatchSize.IsNull() { - *batchSize = r.Configuration.Format.Parquet.BatchSize.ValueInt64() - } else { - batchSize = nil - } - bufferSize := new(int64) - if !r.Configuration.Format.Parquet.BufferSize.IsUnknown() && !r.Configuration.Format.Parquet.BufferSize.IsNull() { - *bufferSize = r.Configuration.Format.Parquet.BufferSize.ValueInt64() - } else { - bufferSize = nil - } - var columns []string = []string{} - for _, columnsItem := range r.Configuration.Format.Parquet.Columns { - columns = append(columns, columnsItem.ValueString()) - } - sourceS3Parquet = &shared.SourceS3Parquet{ - BatchSize: batchSize, - BufferSize: bufferSize, - Columns: columns, - } - } - if sourceS3Parquet != nil { - format = &shared.SourceS3FileFormat{ - SourceS3Parquet: sourceS3Parquet, - } - } - var sourceS3Avro *shared.SourceS3Avro - if r.Configuration.Format.Avro != nil { - sourceS3Avro = &shared.SourceS3Avro{} - } - if sourceS3Avro != nil { - format = &shared.SourceS3FileFormat{ - SourceS3Avro: sourceS3Avro, - } - } - var sourceS3Jsonl *shared.SourceS3Jsonl - if r.Configuration.Format.Jsonl != nil { - blockSize1 := new(int64) - if !r.Configuration.Format.Jsonl.BlockSize.IsUnknown() && !r.Configuration.Format.Jsonl.BlockSize.IsNull() { - *blockSize1 = r.Configuration.Format.Jsonl.BlockSize.ValueInt64() - } else { - blockSize1 = nil - } - newlinesInValues1 := new(bool) - if !r.Configuration.Format.Jsonl.NewlinesInValues.IsUnknown() && !r.Configuration.Format.Jsonl.NewlinesInValues.IsNull() { - *newlinesInValues1 = r.Configuration.Format.Jsonl.NewlinesInValues.ValueBool() - } else { - newlinesInValues1 = nil - } - unexpectedFieldBehavior := new(shared.SourceS3UnexpectedFieldBehavior) - if !r.Configuration.Format.Jsonl.UnexpectedFieldBehavior.IsUnknown() && !r.Configuration.Format.Jsonl.UnexpectedFieldBehavior.IsNull() { - *unexpectedFieldBehavior = shared.SourceS3UnexpectedFieldBehavior(r.Configuration.Format.Jsonl.UnexpectedFieldBehavior.ValueString()) - } else { - unexpectedFieldBehavior = nil - } - sourceS3Jsonl = &shared.SourceS3Jsonl{ - BlockSize: blockSize1, - NewlinesInValues: newlinesInValues1, - UnexpectedFieldBehavior: unexpectedFieldBehavior, - } - } - if sourceS3Jsonl != nil { - format = &shared.SourceS3FileFormat{ - SourceS3Jsonl: sourceS3Jsonl, - } - } - } - pathPattern := new(string) - if !r.Configuration.PathPattern.IsUnknown() && !r.Configuration.PathPattern.IsNull() { - *pathPattern = r.Configuration.PathPattern.ValueString() - } else { - pathPattern = nil - } - var provider *shared.SourceS3S3AmazonWebServices - if r.Configuration.Provider != nil { - awsAccessKeyId1 := new(string) - if !r.Configuration.Provider.AwsAccessKeyID.IsUnknown() && !r.Configuration.Provider.AwsAccessKeyID.IsNull() { - *awsAccessKeyId1 = r.Configuration.Provider.AwsAccessKeyID.ValueString() - } else { - awsAccessKeyId1 = nil - } - awsSecretAccessKey1 := new(string) - if !r.Configuration.Provider.AwsSecretAccessKey.IsUnknown() && !r.Configuration.Provider.AwsSecretAccessKey.IsNull() { - *awsSecretAccessKey1 = r.Configuration.Provider.AwsSecretAccessKey.ValueString() - } else { - awsSecretAccessKey1 = nil - } - bucket1 := new(string) - if !r.Configuration.Provider.Bucket.IsUnknown() && !r.Configuration.Provider.Bucket.IsNull() { - *bucket1 = r.Configuration.Provider.Bucket.ValueString() - } else { - bucket1 = nil - } - endpoint1 := new(string) - if !r.Configuration.Provider.Endpoint.IsUnknown() && !r.Configuration.Provider.Endpoint.IsNull() { - *endpoint1 = r.Configuration.Provider.Endpoint.ValueString() - } else { - endpoint1 = nil - } - pathPrefix := new(string) - if !r.Configuration.Provider.PathPrefix.IsUnknown() && !r.Configuration.Provider.PathPrefix.IsNull() { - *pathPrefix = r.Configuration.Provider.PathPrefix.ValueString() - } else { - pathPrefix = nil - } - regionName := new(string) - if !r.Configuration.Provider.RegionName.IsUnknown() && !r.Configuration.Provider.RegionName.IsNull() { - *regionName = r.Configuration.Provider.RegionName.ValueString() - } else { - regionName = nil - } - roleArn := new(string) - if !r.Configuration.Provider.RoleArn.IsUnknown() && !r.Configuration.Provider.RoleArn.IsNull() { - *roleArn = r.Configuration.Provider.RoleArn.ValueString() - } else { - roleArn = nil - } - startDate := new(time.Time) - if !r.Configuration.Provider.StartDate.IsUnknown() && !r.Configuration.Provider.StartDate.IsNull() { - *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.Provider.StartDate.ValueString()) - } else { - startDate = nil - } - provider = &shared.SourceS3S3AmazonWebServices{ - AwsAccessKeyID: awsAccessKeyId1, - AwsSecretAccessKey: awsSecretAccessKey1, - Bucket: bucket1, - Endpoint: endpoint1, - PathPrefix: pathPrefix, - RegionName: regionName, - RoleArn: roleArn, - StartDate: startDate, - } - } - regionName1 := new(string) + regionName := new(string) if !r.Configuration.RegionName.IsUnknown() && !r.Configuration.RegionName.IsNull() { - *regionName1 = r.Configuration.RegionName.ValueString() + *regionName = r.Configuration.RegionName.ValueString() } else { - regionName1 = nil + regionName = nil } - roleArn1 := new(string) + roleArn := new(string) if !r.Configuration.RoleArn.IsUnknown() && !r.Configuration.RoleArn.IsNull() { - *roleArn1 = r.Configuration.RoleArn.ValueString() + *roleArn = r.Configuration.RoleArn.ValueString() } else { - roleArn1 = nil + roleArn = nil } - schema := new(string) - if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() { - *schema = r.Configuration.Schema.ValueString() - } else { - schema = nil - } - startDate1 := new(time.Time) + startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { - *startDate1, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) } else { - startDate1 = nil + startDate = nil } var streams []shared.SourceS3FileBasedStreamConfig = []shared.SourceS3FileBasedStreamConfig{} for _, streamsItem := range r.Configuration.Streams { @@ -285,7 +54,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } else { daysToSyncIfHistoryIsFull = nil } - var format1 shared.SourceS3Format + var format shared.SourceS3Format var sourceS3AvroFormat *shared.SourceS3AvroFormat if streamsItem.Format.AvroFormat != nil { doubleAsString := new(bool) @@ -299,35 +68,35 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } } if sourceS3AvroFormat != nil { - format1 = shared.SourceS3Format{ + format = shared.SourceS3Format{ SourceS3AvroFormat: sourceS3AvroFormat, } } var sourceS3CSVFormat *shared.SourceS3CSVFormat if streamsItem.Format.CSVFormat != nil { - delimiter1 := new(string) + delimiter := new(string) if !streamsItem.Format.CSVFormat.Delimiter.IsUnknown() && !streamsItem.Format.CSVFormat.Delimiter.IsNull() { - *delimiter1 = streamsItem.Format.CSVFormat.Delimiter.ValueString() + *delimiter = streamsItem.Format.CSVFormat.Delimiter.ValueString() } else { - delimiter1 = nil + delimiter = nil } - doubleQuote1 := new(bool) + doubleQuote := new(bool) if !streamsItem.Format.CSVFormat.DoubleQuote.IsUnknown() && !streamsItem.Format.CSVFormat.DoubleQuote.IsNull() { - *doubleQuote1 = streamsItem.Format.CSVFormat.DoubleQuote.ValueBool() + *doubleQuote = streamsItem.Format.CSVFormat.DoubleQuote.ValueBool() } else { - doubleQuote1 = nil + doubleQuote = nil } - encoding1 := new(string) + encoding := new(string) if !streamsItem.Format.CSVFormat.Encoding.IsUnknown() && !streamsItem.Format.CSVFormat.Encoding.IsNull() { - *encoding1 = streamsItem.Format.CSVFormat.Encoding.ValueString() + *encoding = streamsItem.Format.CSVFormat.Encoding.ValueString() } else { - encoding1 = nil + encoding = nil } - escapeChar1 := new(string) + escapeChar := new(string) if !streamsItem.Format.CSVFormat.EscapeChar.IsUnknown() && !streamsItem.Format.CSVFormat.EscapeChar.IsNull() { - *escapeChar1 = streamsItem.Format.CSVFormat.EscapeChar.ValueString() + *escapeChar = streamsItem.Format.CSVFormat.EscapeChar.ValueString() } else { - escapeChar1 = nil + escapeChar = nil } var falseValues []string = []string{} for _, falseValuesItem := range streamsItem.Format.CSVFormat.FalseValues { @@ -375,21 +144,15 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } else { ignoreErrorsOnFieldsMismatch = nil } - inferenceType := new(shared.SourceS3InferenceType) - if !streamsItem.Format.CSVFormat.InferenceType.IsUnknown() && !streamsItem.Format.CSVFormat.InferenceType.IsNull() { - *inferenceType = shared.SourceS3InferenceType(streamsItem.Format.CSVFormat.InferenceType.ValueString()) - } else { - inferenceType = nil - } var nullValues []string = []string{} for _, nullValuesItem := range streamsItem.Format.CSVFormat.NullValues { nullValues = append(nullValues, nullValuesItem.ValueString()) } - quoteChar1 := new(string) + quoteChar := new(string) if !streamsItem.Format.CSVFormat.QuoteChar.IsUnknown() && !streamsItem.Format.CSVFormat.QuoteChar.IsNull() { - *quoteChar1 = streamsItem.Format.CSVFormat.QuoteChar.ValueString() + *quoteChar = streamsItem.Format.CSVFormat.QuoteChar.ValueString() } else { - quoteChar1 = nil + quoteChar = nil } skipRowsAfterHeader := new(int64) if !streamsItem.Format.CSVFormat.SkipRowsAfterHeader.IsUnknown() && !streamsItem.Format.CSVFormat.SkipRowsAfterHeader.IsNull() { @@ -414,16 +177,15 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 trueValues = append(trueValues, trueValuesItem.ValueString()) } sourceS3CSVFormat = &shared.SourceS3CSVFormat{ - Delimiter: delimiter1, - DoubleQuote: doubleQuote1, - Encoding: encoding1, - EscapeChar: escapeChar1, + Delimiter: delimiter, + DoubleQuote: doubleQuote, + Encoding: encoding, + EscapeChar: escapeChar, FalseValues: falseValues, HeaderDefinition: headerDefinition, IgnoreErrorsOnFieldsMismatch: ignoreErrorsOnFieldsMismatch, - InferenceType: inferenceType, NullValues: nullValues, - QuoteChar: quoteChar1, + QuoteChar: quoteChar, SkipRowsAfterHeader: skipRowsAfterHeader, SkipRowsBeforeHeader: skipRowsBeforeHeader, StringsCanBeNull: stringsCanBeNull, @@ -431,7 +193,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } } if sourceS3CSVFormat != nil { - format1 = shared.SourceS3Format{ + format = shared.SourceS3Format{ SourceS3CSVFormat: sourceS3CSVFormat, } } @@ -440,7 +202,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 sourceS3JsonlFormat = &shared.SourceS3JsonlFormat{} } if sourceS3JsonlFormat != nil { - format1 = shared.SourceS3Format{ + format = shared.SourceS3Format{ SourceS3JsonlFormat: sourceS3JsonlFormat, } } @@ -457,7 +219,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } } if sourceS3ParquetFormat != nil { - format1 = shared.SourceS3Format{ + format = shared.SourceS3Format{ SourceS3ParquetFormat: sourceS3ParquetFormat, } } @@ -494,7 +256,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } } if sourceS3UnstructuredDocumentFormat != nil { - format1 = shared.SourceS3Format{ + format = shared.SourceS3Format{ SourceS3UnstructuredDocumentFormat: sourceS3UnstructuredDocumentFormat, } } @@ -508,19 +270,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } else { inputSchema = nil } - legacyPrefix := new(string) - if !streamsItem.LegacyPrefix.IsUnknown() && !streamsItem.LegacyPrefix.IsNull() { - *legacyPrefix = streamsItem.LegacyPrefix.ValueString() - } else { - legacyPrefix = nil - } name := 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() @@ -541,12 +291,10 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } streams = append(streams, shared.SourceS3FileBasedStreamConfig{ DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format1, + Format: format, Globs: globs, InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, Name: name, - PrimaryKey: primaryKey, RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, Schemaless: schemaless, ValidationPolicy: validationPolicy, @@ -556,15 +304,10 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 AwsAccessKeyID: awsAccessKeyID, AwsSecretAccessKey: awsSecretAccessKey, Bucket: bucket, - Dataset: dataset, Endpoint: endpoint, - Format: format, - PathPattern: pathPattern, - Provider: provider, - RegionName: regionName1, - RoleArn: roleArn1, - Schema: schema, - StartDate: startDate1, + RegionName: regionName, + RoleArn: roleArn, + StartDate: startDate, Streams: streams, } definitionID := new(string) @@ -614,260 +357,29 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put awsSecretAccessKey = nil } bucket := r.Configuration.Bucket.ValueString() - dataset := new(string) - if !r.Configuration.Dataset.IsUnknown() && !r.Configuration.Dataset.IsNull() { - *dataset = r.Configuration.Dataset.ValueString() - } else { - dataset = nil - } endpoint := new(string) if !r.Configuration.Endpoint.IsUnknown() && !r.Configuration.Endpoint.IsNull() { *endpoint = r.Configuration.Endpoint.ValueString() } else { endpoint = nil } - var format *shared.SourceS3UpdateFileFormat - if r.Configuration.Format != nil { - var csv *shared.Csv - if r.Configuration.Format.Csv != nil { - additionalReaderOptions := new(string) - if !r.Configuration.Format.Csv.AdditionalReaderOptions.IsUnknown() && !r.Configuration.Format.Csv.AdditionalReaderOptions.IsNull() { - *additionalReaderOptions = r.Configuration.Format.Csv.AdditionalReaderOptions.ValueString() - } else { - additionalReaderOptions = nil - } - advancedOptions := new(string) - if !r.Configuration.Format.Csv.AdvancedOptions.IsUnknown() && !r.Configuration.Format.Csv.AdvancedOptions.IsNull() { - *advancedOptions = r.Configuration.Format.Csv.AdvancedOptions.ValueString() - } else { - advancedOptions = nil - } - blockSize := new(int64) - if !r.Configuration.Format.Csv.BlockSize.IsUnknown() && !r.Configuration.Format.Csv.BlockSize.IsNull() { - *blockSize = r.Configuration.Format.Csv.BlockSize.ValueInt64() - } else { - blockSize = nil - } - delimiter := new(string) - if !r.Configuration.Format.Csv.Delimiter.IsUnknown() && !r.Configuration.Format.Csv.Delimiter.IsNull() { - *delimiter = r.Configuration.Format.Csv.Delimiter.ValueString() - } else { - delimiter = nil - } - doubleQuote := new(bool) - if !r.Configuration.Format.Csv.DoubleQuote.IsUnknown() && !r.Configuration.Format.Csv.DoubleQuote.IsNull() { - *doubleQuote = r.Configuration.Format.Csv.DoubleQuote.ValueBool() - } else { - doubleQuote = nil - } - encoding := new(string) - if !r.Configuration.Format.Csv.Encoding.IsUnknown() && !r.Configuration.Format.Csv.Encoding.IsNull() { - *encoding = r.Configuration.Format.Csv.Encoding.ValueString() - } else { - encoding = nil - } - escapeChar := new(string) - if !r.Configuration.Format.Csv.EscapeChar.IsUnknown() && !r.Configuration.Format.Csv.EscapeChar.IsNull() { - *escapeChar = r.Configuration.Format.Csv.EscapeChar.ValueString() - } else { - escapeChar = nil - } - inferDatatypes := new(bool) - if !r.Configuration.Format.Csv.InferDatatypes.IsUnknown() && !r.Configuration.Format.Csv.InferDatatypes.IsNull() { - *inferDatatypes = r.Configuration.Format.Csv.InferDatatypes.ValueBool() - } else { - inferDatatypes = nil - } - newlinesInValues := new(bool) - if !r.Configuration.Format.Csv.NewlinesInValues.IsUnknown() && !r.Configuration.Format.Csv.NewlinesInValues.IsNull() { - *newlinesInValues = r.Configuration.Format.Csv.NewlinesInValues.ValueBool() - } else { - newlinesInValues = nil - } - quoteChar := new(string) - if !r.Configuration.Format.Csv.QuoteChar.IsUnknown() && !r.Configuration.Format.Csv.QuoteChar.IsNull() { - *quoteChar = r.Configuration.Format.Csv.QuoteChar.ValueString() - } else { - quoteChar = nil - } - csv = &shared.Csv{ - AdditionalReaderOptions: additionalReaderOptions, - AdvancedOptions: advancedOptions, - BlockSize: blockSize, - Delimiter: delimiter, - DoubleQuote: doubleQuote, - Encoding: encoding, - EscapeChar: escapeChar, - InferDatatypes: inferDatatypes, - NewlinesInValues: newlinesInValues, - QuoteChar: quoteChar, - } - } - if csv != nil { - format = &shared.SourceS3UpdateFileFormat{ - Csv: csv, - } - } - var parquet *shared.Parquet - if r.Configuration.Format.Parquet != nil { - batchSize := new(int64) - if !r.Configuration.Format.Parquet.BatchSize.IsUnknown() && !r.Configuration.Format.Parquet.BatchSize.IsNull() { - *batchSize = r.Configuration.Format.Parquet.BatchSize.ValueInt64() - } else { - batchSize = nil - } - bufferSize := new(int64) - if !r.Configuration.Format.Parquet.BufferSize.IsUnknown() && !r.Configuration.Format.Parquet.BufferSize.IsNull() { - *bufferSize = r.Configuration.Format.Parquet.BufferSize.ValueInt64() - } else { - bufferSize = nil - } - var columns []string = []string{} - for _, columnsItem := range r.Configuration.Format.Parquet.Columns { - columns = append(columns, columnsItem.ValueString()) - } - parquet = &shared.Parquet{ - BatchSize: batchSize, - BufferSize: bufferSize, - Columns: columns, - } - } - if parquet != nil { - format = &shared.SourceS3UpdateFileFormat{ - Parquet: parquet, - } - } - var avro *shared.Avro - if r.Configuration.Format.Avro != nil { - avro = &shared.Avro{} - } - if avro != nil { - format = &shared.SourceS3UpdateFileFormat{ - Avro: avro, - } - } - var jsonl *shared.Jsonl - if r.Configuration.Format.Jsonl != nil { - blockSize1 := new(int64) - if !r.Configuration.Format.Jsonl.BlockSize.IsUnknown() && !r.Configuration.Format.Jsonl.BlockSize.IsNull() { - *blockSize1 = r.Configuration.Format.Jsonl.BlockSize.ValueInt64() - } else { - blockSize1 = nil - } - newlinesInValues1 := new(bool) - if !r.Configuration.Format.Jsonl.NewlinesInValues.IsUnknown() && !r.Configuration.Format.Jsonl.NewlinesInValues.IsNull() { - *newlinesInValues1 = r.Configuration.Format.Jsonl.NewlinesInValues.ValueBool() - } else { - newlinesInValues1 = nil - } - unexpectedFieldBehavior := new(shared.UnexpectedFieldBehavior) - if !r.Configuration.Format.Jsonl.UnexpectedFieldBehavior.IsUnknown() && !r.Configuration.Format.Jsonl.UnexpectedFieldBehavior.IsNull() { - *unexpectedFieldBehavior = shared.UnexpectedFieldBehavior(r.Configuration.Format.Jsonl.UnexpectedFieldBehavior.ValueString()) - } else { - unexpectedFieldBehavior = nil - } - jsonl = &shared.Jsonl{ - BlockSize: blockSize1, - NewlinesInValues: newlinesInValues1, - UnexpectedFieldBehavior: unexpectedFieldBehavior, - } - } - if jsonl != nil { - format = &shared.SourceS3UpdateFileFormat{ - Jsonl: jsonl, - } - } - } - pathPattern := new(string) - if !r.Configuration.PathPattern.IsUnknown() && !r.Configuration.PathPattern.IsNull() { - *pathPattern = r.Configuration.PathPattern.ValueString() - } else { - pathPattern = nil - } - var provider *shared.S3AmazonWebServices - if r.Configuration.Provider != nil { - awsAccessKeyId1 := new(string) - if !r.Configuration.Provider.AwsAccessKeyID.IsUnknown() && !r.Configuration.Provider.AwsAccessKeyID.IsNull() { - *awsAccessKeyId1 = r.Configuration.Provider.AwsAccessKeyID.ValueString() - } else { - awsAccessKeyId1 = nil - } - awsSecretAccessKey1 := new(string) - if !r.Configuration.Provider.AwsSecretAccessKey.IsUnknown() && !r.Configuration.Provider.AwsSecretAccessKey.IsNull() { - *awsSecretAccessKey1 = r.Configuration.Provider.AwsSecretAccessKey.ValueString() - } else { - awsSecretAccessKey1 = nil - } - bucket1 := new(string) - if !r.Configuration.Provider.Bucket.IsUnknown() && !r.Configuration.Provider.Bucket.IsNull() { - *bucket1 = r.Configuration.Provider.Bucket.ValueString() - } else { - bucket1 = nil - } - endpoint1 := new(string) - if !r.Configuration.Provider.Endpoint.IsUnknown() && !r.Configuration.Provider.Endpoint.IsNull() { - *endpoint1 = r.Configuration.Provider.Endpoint.ValueString() - } else { - endpoint1 = nil - } - pathPrefix := new(string) - if !r.Configuration.Provider.PathPrefix.IsUnknown() && !r.Configuration.Provider.PathPrefix.IsNull() { - *pathPrefix = r.Configuration.Provider.PathPrefix.ValueString() - } else { - pathPrefix = nil - } - regionName := new(string) - if !r.Configuration.Provider.RegionName.IsUnknown() && !r.Configuration.Provider.RegionName.IsNull() { - *regionName = r.Configuration.Provider.RegionName.ValueString() - } else { - regionName = nil - } - roleArn := new(string) - if !r.Configuration.Provider.RoleArn.IsUnknown() && !r.Configuration.Provider.RoleArn.IsNull() { - *roleArn = r.Configuration.Provider.RoleArn.ValueString() - } else { - roleArn = nil - } - startDate := new(time.Time) - if !r.Configuration.Provider.StartDate.IsUnknown() && !r.Configuration.Provider.StartDate.IsNull() { - *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.Provider.StartDate.ValueString()) - } else { - startDate = nil - } - provider = &shared.S3AmazonWebServices{ - AwsAccessKeyID: awsAccessKeyId1, - AwsSecretAccessKey: awsSecretAccessKey1, - Bucket: bucket1, - Endpoint: endpoint1, - PathPrefix: pathPrefix, - RegionName: regionName, - RoleArn: roleArn, - StartDate: startDate, - } - } - regionName1 := new(string) + regionName := new(string) if !r.Configuration.RegionName.IsUnknown() && !r.Configuration.RegionName.IsNull() { - *regionName1 = r.Configuration.RegionName.ValueString() + *regionName = r.Configuration.RegionName.ValueString() } else { - regionName1 = nil + regionName = nil } - roleArn1 := new(string) + roleArn := new(string) if !r.Configuration.RoleArn.IsUnknown() && !r.Configuration.RoleArn.IsNull() { - *roleArn1 = r.Configuration.RoleArn.ValueString() + *roleArn = r.Configuration.RoleArn.ValueString() } else { - roleArn1 = nil + roleArn = nil } - schema := new(string) - if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() { - *schema = r.Configuration.Schema.ValueString() - } else { - schema = nil - } - startDate1 := new(time.Time) + startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { - *startDate1, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) } else { - startDate1 = nil + startDate = nil } var streams []shared.SourceS3UpdateFileBasedStreamConfig = []shared.SourceS3UpdateFileBasedStreamConfig{} for _, streamsItem := range r.Configuration.Streams { @@ -877,7 +389,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } else { daysToSyncIfHistoryIsFull = nil } - var format1 shared.SourceS3UpdateFormat + var format shared.SourceS3UpdateFormat var sourceS3UpdateAvroFormat *shared.SourceS3UpdateAvroFormat if streamsItem.Format.AvroFormat != nil { doubleAsString := new(bool) @@ -891,35 +403,35 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } } if sourceS3UpdateAvroFormat != nil { - format1 = shared.SourceS3UpdateFormat{ + format = shared.SourceS3UpdateFormat{ SourceS3UpdateAvroFormat: sourceS3UpdateAvroFormat, } } var sourceS3UpdateCSVFormat *shared.SourceS3UpdateCSVFormat if streamsItem.Format.CSVFormat != nil { - delimiter1 := new(string) + delimiter := new(string) if !streamsItem.Format.CSVFormat.Delimiter.IsUnknown() && !streamsItem.Format.CSVFormat.Delimiter.IsNull() { - *delimiter1 = streamsItem.Format.CSVFormat.Delimiter.ValueString() + *delimiter = streamsItem.Format.CSVFormat.Delimiter.ValueString() } else { - delimiter1 = nil + delimiter = nil } - doubleQuote1 := new(bool) + doubleQuote := new(bool) if !streamsItem.Format.CSVFormat.DoubleQuote.IsUnknown() && !streamsItem.Format.CSVFormat.DoubleQuote.IsNull() { - *doubleQuote1 = streamsItem.Format.CSVFormat.DoubleQuote.ValueBool() + *doubleQuote = streamsItem.Format.CSVFormat.DoubleQuote.ValueBool() } else { - doubleQuote1 = nil + doubleQuote = nil } - encoding1 := new(string) + encoding := new(string) if !streamsItem.Format.CSVFormat.Encoding.IsUnknown() && !streamsItem.Format.CSVFormat.Encoding.IsNull() { - *encoding1 = streamsItem.Format.CSVFormat.Encoding.ValueString() + *encoding = streamsItem.Format.CSVFormat.Encoding.ValueString() } else { - encoding1 = nil + encoding = nil } - escapeChar1 := new(string) + escapeChar := new(string) if !streamsItem.Format.CSVFormat.EscapeChar.IsUnknown() && !streamsItem.Format.CSVFormat.EscapeChar.IsNull() { - *escapeChar1 = streamsItem.Format.CSVFormat.EscapeChar.ValueString() + *escapeChar = streamsItem.Format.CSVFormat.EscapeChar.ValueString() } else { - escapeChar1 = nil + escapeChar = nil } var falseValues []string = []string{} for _, falseValuesItem := range streamsItem.Format.CSVFormat.FalseValues { @@ -967,21 +479,15 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } else { ignoreErrorsOnFieldsMismatch = nil } - inferenceType := new(shared.SourceS3UpdateInferenceType) - if !streamsItem.Format.CSVFormat.InferenceType.IsUnknown() && !streamsItem.Format.CSVFormat.InferenceType.IsNull() { - *inferenceType = shared.SourceS3UpdateInferenceType(streamsItem.Format.CSVFormat.InferenceType.ValueString()) - } else { - inferenceType = nil - } var nullValues []string = []string{} for _, nullValuesItem := range streamsItem.Format.CSVFormat.NullValues { nullValues = append(nullValues, nullValuesItem.ValueString()) } - quoteChar1 := new(string) + quoteChar := new(string) if !streamsItem.Format.CSVFormat.QuoteChar.IsUnknown() && !streamsItem.Format.CSVFormat.QuoteChar.IsNull() { - *quoteChar1 = streamsItem.Format.CSVFormat.QuoteChar.ValueString() + *quoteChar = streamsItem.Format.CSVFormat.QuoteChar.ValueString() } else { - quoteChar1 = nil + quoteChar = nil } skipRowsAfterHeader := new(int64) if !streamsItem.Format.CSVFormat.SkipRowsAfterHeader.IsUnknown() && !streamsItem.Format.CSVFormat.SkipRowsAfterHeader.IsNull() { @@ -1006,16 +512,15 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put trueValues = append(trueValues, trueValuesItem.ValueString()) } sourceS3UpdateCSVFormat = &shared.SourceS3UpdateCSVFormat{ - Delimiter: delimiter1, - DoubleQuote: doubleQuote1, - Encoding: encoding1, - EscapeChar: escapeChar1, + Delimiter: delimiter, + DoubleQuote: doubleQuote, + Encoding: encoding, + EscapeChar: escapeChar, FalseValues: falseValues, HeaderDefinition: headerDefinition, IgnoreErrorsOnFieldsMismatch: ignoreErrorsOnFieldsMismatch, - InferenceType: inferenceType, NullValues: nullValues, - QuoteChar: quoteChar1, + QuoteChar: quoteChar, SkipRowsAfterHeader: skipRowsAfterHeader, SkipRowsBeforeHeader: skipRowsBeforeHeader, StringsCanBeNull: stringsCanBeNull, @@ -1023,7 +528,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } } if sourceS3UpdateCSVFormat != nil { - format1 = shared.SourceS3UpdateFormat{ + format = shared.SourceS3UpdateFormat{ SourceS3UpdateCSVFormat: sourceS3UpdateCSVFormat, } } @@ -1032,7 +537,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put sourceS3UpdateJsonlFormat = &shared.SourceS3UpdateJsonlFormat{} } if sourceS3UpdateJsonlFormat != nil { - format1 = shared.SourceS3UpdateFormat{ + format = shared.SourceS3UpdateFormat{ SourceS3UpdateJsonlFormat: sourceS3UpdateJsonlFormat, } } @@ -1049,7 +554,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } } if sourceS3UpdateParquetFormat != nil { - format1 = shared.SourceS3UpdateFormat{ + format = shared.SourceS3UpdateFormat{ SourceS3UpdateParquetFormat: sourceS3UpdateParquetFormat, } } @@ -1086,7 +591,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } } if sourceS3UpdateUnstructuredDocumentFormat != nil { - format1 = shared.SourceS3UpdateFormat{ + format = shared.SourceS3UpdateFormat{ SourceS3UpdateUnstructuredDocumentFormat: sourceS3UpdateUnstructuredDocumentFormat, } } @@ -1100,19 +605,7 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } else { inputSchema = nil } - legacyPrefix := new(string) - if !streamsItem.LegacyPrefix.IsUnknown() && !streamsItem.LegacyPrefix.IsNull() { - *legacyPrefix = streamsItem.LegacyPrefix.ValueString() - } else { - legacyPrefix = nil - } name := 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() @@ -1133,12 +626,10 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } streams = append(streams, shared.SourceS3UpdateFileBasedStreamConfig{ DaysToSyncIfHistoryIsFull: daysToSyncIfHistoryIsFull, - Format: format1, + Format: format, Globs: globs, InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, Name: name, - PrimaryKey: primaryKey, RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, Schemaless: schemaless, ValidationPolicy: validationPolicy, @@ -1148,15 +639,10 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put AwsAccessKeyID: awsAccessKeyID, AwsSecretAccessKey: awsSecretAccessKey, Bucket: bucket, - Dataset: dataset, Endpoint: endpoint, - Format: format, - PathPattern: pathPattern, - Provider: provider, - RegionName: regionName1, - RoleArn: roleArn1, - Schema: schema, - StartDate: startDate1, + RegionName: regionName, + RoleArn: roleArn, + StartDate: startDate, Streams: streams, } name1 := r.Name.ValueString() diff --git a/internal/provider/source_sendgrid_resource.go b/internal/provider/source_sendgrid_resource.go index 2deb1558d..af979786d 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.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"` + Configuration tfTypes.SourceBrevo `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_senseforce_resource.go b/internal/provider/source_senseforce_resource.go index 98ebdfd25..13b1e2c29 100644 --- a/internal/provider/source_senseforce_resource.go +++ b/internal/provider/source_senseforce_resource.go @@ -14,7 +14,6 @@ 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/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" @@ -73,12 +72,6 @@ func (r *SourceSenseforceResource) Schema(ctx context.Context, req resource.Sche Required: true, Description: `The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See here for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source).`, }, - "slice_range": schema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(10), - Description: `The time increment used by the connector when requesting data from the Senseforce API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted and the more likely one could run into rate limites. Furthermore, consider that large chunks of time might take a long time for the Senseforce query to return data - meaning it could take in effect longer than with more smaller time slices. If there are a lot of data per day, set this setting to 1. If there is only very little data per day, you might change the setting to 10 or more. Default: 10`, - }, "start_date": schema.StringAttribute{ Required: true, Description: `UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later`, diff --git a/internal/provider/source_senseforce_resource_sdk.go b/internal/provider/source_senseforce_resource_sdk.go index 782a35637..f473d9ff8 100644 --- a/internal/provider/source_senseforce_resource_sdk.go +++ b/internal/provider/source_senseforce_resource_sdk.go @@ -12,18 +12,11 @@ func (r *SourceSenseforceResourceModel) ToSharedSourceSenseforceCreateRequest() accessToken := r.Configuration.AccessToken.ValueString() backendURL := r.Configuration.BackendURL.ValueString() datasetID := r.Configuration.DatasetID.ValueString() - sliceRange := new(int64) - if !r.Configuration.SliceRange.IsUnknown() && !r.Configuration.SliceRange.IsNull() { - *sliceRange = r.Configuration.SliceRange.ValueInt64() - } else { - sliceRange = nil - } startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) configuration := shared.SourceSenseforce{ AccessToken: accessToken, BackendURL: backendURL, DatasetID: datasetID, - SliceRange: sliceRange, StartDate: startDate, } definitionID := new(string) @@ -63,18 +56,11 @@ func (r *SourceSenseforceResourceModel) ToSharedSourceSenseforcePutRequest() *sh accessToken := r.Configuration.AccessToken.ValueString() backendURL := r.Configuration.BackendURL.ValueString() datasetID := r.Configuration.DatasetID.ValueString() - sliceRange := new(int64) - if !r.Configuration.SliceRange.IsUnknown() && !r.Configuration.SliceRange.IsNull() { - *sliceRange = r.Configuration.SliceRange.ValueInt64() - } else { - sliceRange = nil - } startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) configuration := shared.SourceSenseforceUpdate{ AccessToken: accessToken, BackendURL: backendURL, DatasetID: datasetID, - SliceRange: sliceRange, StartDate: startDate, } name := r.Name.ValueString() diff --git a/internal/provider/source_sftpbulk_resource.go b/internal/provider/source_sftpbulk_resource.go index e3a7a0104..c4dd8986e 100644 --- a/internal/provider/source_sftpbulk_resource.go +++ b/internal/provider/source_sftpbulk_resource.go @@ -243,18 +243,6 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema Default: booldefault.StaticBool(false), Description: `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": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("None"), - Description: `How to infer the types of the columns. If none, inference default to strings. must be one of ["None", "Primitive Types Only"]; Default: "None"`, - Validators: []validator.String{ - stringvalidator.OneOf( - "None", - "Primitive Types Only", - ), - }, - }, "null_values": schema.ListAttribute{ Optional: true, ElementType: types.StringType, @@ -461,18 +449,10 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema Optional: true, Description: `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": schema.StringAttribute{ - Optional: true, - 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, Description: `The name of the stream.`, }, - "primary_key": schema.StringAttribute{ - Optional: 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.`, diff --git a/internal/provider/source_sftpbulk_resource_sdk.go b/internal/provider/source_sftpbulk_resource_sdk.go index 81ac4dd68..39f47f94e 100644 --- a/internal/provider/source_sftpbulk_resource_sdk.go +++ b/internal/provider/source_sftpbulk_resource_sdk.go @@ -151,12 +151,6 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkCreateRequest() *sha } else { ignoreErrorsOnFieldsMismatch = nil } - inferenceType := new(shared.SourceSftpBulkInferenceType) - if !streamsItem.Format.CSVFormat.InferenceType.IsUnknown() && !streamsItem.Format.CSVFormat.InferenceType.IsNull() { - *inferenceType = shared.SourceSftpBulkInferenceType(streamsItem.Format.CSVFormat.InferenceType.ValueString()) - } else { - inferenceType = nil - } var nullValues []string = []string{} for _, nullValuesItem := range streamsItem.Format.CSVFormat.NullValues { nullValues = append(nullValues, nullValuesItem.ValueString()) @@ -197,7 +191,6 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkCreateRequest() *sha FalseValues: falseValues, HeaderDefinition: headerDefinition, IgnoreErrorsOnFieldsMismatch: ignoreErrorsOnFieldsMismatch, - InferenceType: inferenceType, NullValues: nullValues, QuoteChar: quoteChar, SkipRowsAfterHeader: skipRowsAfterHeader, @@ -327,19 +320,7 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkCreateRequest() *sha } else { inputSchema = nil } - legacyPrefix := new(string) - if !streamsItem.LegacyPrefix.IsUnknown() && !streamsItem.LegacyPrefix.IsNull() { - *legacyPrefix = streamsItem.LegacyPrefix.ValueString() - } else { - legacyPrefix = nil - } 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() @@ -363,9 +344,7 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkCreateRequest() *sha Format: format, Globs: globs, InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, Name: name1, - PrimaryKey: primaryKey, RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, Schemaless: schemaless, ValidationPolicy: validationPolicy, @@ -557,12 +536,6 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkPutRequest() *shared } else { ignoreErrorsOnFieldsMismatch = nil } - inferenceType := new(shared.SourceSftpBulkUpdateInferenceType) - if !streamsItem.Format.CSVFormat.InferenceType.IsUnknown() && !streamsItem.Format.CSVFormat.InferenceType.IsNull() { - *inferenceType = shared.SourceSftpBulkUpdateInferenceType(streamsItem.Format.CSVFormat.InferenceType.ValueString()) - } else { - inferenceType = nil - } var nullValues []string = []string{} for _, nullValuesItem := range streamsItem.Format.CSVFormat.NullValues { nullValues = append(nullValues, nullValuesItem.ValueString()) @@ -603,7 +576,6 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkPutRequest() *shared FalseValues: falseValues, HeaderDefinition: headerDefinition, IgnoreErrorsOnFieldsMismatch: ignoreErrorsOnFieldsMismatch, - InferenceType: inferenceType, NullValues: nullValues, QuoteChar: quoteChar, SkipRowsAfterHeader: skipRowsAfterHeader, @@ -733,19 +705,7 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkPutRequest() *shared } else { inputSchema = nil } - legacyPrefix := new(string) - if !streamsItem.LegacyPrefix.IsUnknown() && !streamsItem.LegacyPrefix.IsNull() { - *legacyPrefix = streamsItem.LegacyPrefix.ValueString() - } else { - legacyPrefix = nil - } 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() @@ -769,9 +729,7 @@ func (r *SourceSftpBulkResourceModel) ToSharedSourceSftpBulkPutRequest() *shared Format: format, Globs: globs, InputSchema: inputSchema, - LegacyPrefix: legacyPrefix, Name: name1, - PrimaryKey: primaryKey, RecentNFilesToReadForSchemaDiscovery: recentNFilesToReadForSchemaDiscovery, Schemaless: schemaless, ValidationPolicy: validationPolicy, diff --git a/internal/provider/source_shortcut_data_source.go b/internal/provider/source_shortcut_data_source.go new file mode 100644 index 000000000..68c11218f --- /dev/null +++ b/internal/provider/source_shortcut_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 = &SourceShortcutDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceShortcutDataSource{} + +func NewSourceShortcutDataSource() datasource.DataSource { + return &SourceShortcutDataSource{} +} + +// SourceShortcutDataSource is the data source implementation. +type SourceShortcutDataSource struct { + client *sdk.SDK +} + +// SourceShortcutDataSourceModel describes the data model. +type SourceShortcutDataSourceModel 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 *SourceShortcutDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_shortcut" +} + +// Schema defines the schema for the data source. +func (r *SourceShortcutDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceShortcut 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 *SourceShortcutDataSource) 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 *SourceShortcutDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceShortcutDataSourceModel + 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.GetSourceShortcutRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceShortcut(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_shortcut_data_source_sdk.go b/internal/provider/source_shortcut_data_source_sdk.go new file mode 100644 index 000000000..96685f372 --- /dev/null +++ b/internal/provider/source_shortcut_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 *SourceShortcutDataSourceModel) 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_shortcut_resource.go b/internal/provider/source_shortcut_resource.go new file mode 100644 index 000000000..e8ebb8dac --- /dev/null +++ b/internal/provider/source_shortcut_resource.go @@ -0,0 +1,379 @@ +// 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/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 = &SourceShortcutResource{} +var _ resource.ResourceWithImportState = &SourceShortcutResource{} + +func NewSourceShortcutResource() resource.Resource { + return &SourceShortcutResource{} +} + +// SourceShortcutResource defines the resource implementation. +type SourceShortcutResource struct { + client *sdk.SDK +} + +// SourceShortcutResourceModel describes the resource data model. +type SourceShortcutResourceModel struct { + Configuration tfTypes.SourceShortcut `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 *SourceShortcutResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_shortcut" +} + +func (r *SourceShortcutResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceShortcut 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_2": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + "query": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("title:Our first Epic"), + Description: `Query for searching as defined in ` + "`" + `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` + "`" + `. Default: "title:Our first Epic"`, + }, + "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 *SourceShortcutResource) 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 *SourceShortcutResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceShortcutResourceModel + 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.ToSharedSourceShortcutCreateRequest() + res, err := r.client.Sources.CreateSourceShortcut(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.GetSourceShortcutRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceShortcut(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 *SourceShortcutResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceShortcutResourceModel + 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.GetSourceShortcutRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceShortcut(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 *SourceShortcutResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceShortcutResourceModel + 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 + } + + sourceShortcutPutRequest := data.ToSharedSourceShortcutPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceShortcutRequest{ + SourceShortcutPutRequest: sourceShortcutPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceShortcut(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.GetSourceShortcutRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceShortcut(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 *SourceShortcutResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceShortcutResourceModel + 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.DeleteSourceShortcutRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceShortcut(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 *SourceShortcutResource) 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_shortcut_resource_sdk.go b/internal/provider/source_shortcut_resource_sdk.go new file mode 100644 index 000000000..67faf3a5e --- /dev/null +++ b/internal/provider/source_shortcut_resource_sdk.go @@ -0,0 +1,80 @@ +// 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 *SourceShortcutResourceModel) ToSharedSourceShortcutCreateRequest() *shared.SourceShortcutCreateRequest { + apiKey2 := r.Configuration.APIKey2.ValueString() + 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()) + configuration := shared.SourceShortcut{ + APIKey2: apiKey2, + Query: query, + 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.SourceShortcutCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceShortcutResourceModel) 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 *SourceShortcutResourceModel) ToSharedSourceShortcutPutRequest() *shared.SourceShortcutPutRequest { + apiKey2 := r.Configuration.APIKey2.ValueString() + 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()) + configuration := shared.SourceShortcutUpdate{ + APIKey2: apiKey2, + Query: query, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceShortcutPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_smartsheets_resource.go b/internal/provider/source_smartsheets_resource.go index 7bfb29d63..92aa3cc6d 100644 --- a/internal/provider/source_smartsheets_resource.go +++ b/internal/provider/source_smartsheets_resource.go @@ -16,7 +16,6 @@ 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/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" @@ -130,15 +129,6 @@ func (r *SourceSmartsheetsResource) Schema(ctx context.Context, req resource.Sch Required: true, Description: `The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties`, }, - "start_datetime": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("2020-01-01T00:00:00+00:00"), - Description: `Only rows modified after this date/time will be replicated. This should be an ISO 8601 string, for instance: ` + "`" + `2000-01-01T13:00:00` + "`" + `. Default: "2020-01-01T00:00:00+00:00"`, - Validators: []validator.String{ - validators.IsRFC3339(), - }, - }, }, }, "definition_id": schema.StringAttribute{ diff --git a/internal/provider/source_smartsheets_resource_sdk.go b/internal/provider/source_smartsheets_resource_sdk.go index 83de53309..0f5da2335 100644 --- a/internal/provider/source_smartsheets_resource_sdk.go +++ b/internal/provider/source_smartsheets_resource_sdk.go @@ -47,17 +47,10 @@ func (r *SourceSmartsheetsResourceModel) ToSharedSourceSmartsheetsCreateRequest( metadataFields = append(metadataFields, shared.SourceSmartsheetsValidenums(metadataFieldsItem.ValueString())) } spreadsheetID := r.Configuration.SpreadsheetID.ValueString() - startDatetime := new(time.Time) - if !r.Configuration.StartDatetime.IsUnknown() && !r.Configuration.StartDatetime.IsNull() { - *startDatetime, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDatetime.ValueString()) - } else { - startDatetime = nil - } configuration := shared.SourceSmartsheets{ Credentials: credentials, MetadataFields: metadataFields, SpreadsheetID: spreadsheetID, - StartDatetime: startDatetime, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -131,17 +124,10 @@ func (r *SourceSmartsheetsResourceModel) ToSharedSourceSmartsheetsPutRequest() * metadataFields = append(metadataFields, shared.Validenums(metadataFieldsItem.ValueString())) } spreadsheetID := r.Configuration.SpreadsheetID.ValueString() - startDatetime := new(time.Time) - if !r.Configuration.StartDatetime.IsUnknown() && !r.Configuration.StartDatetime.IsNull() { - *startDatetime, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDatetime.ValueString()) - } else { - startDatetime = nil - } configuration := shared.SourceSmartsheetsUpdate{ Credentials: credentials, MetadataFields: metadataFields, SpreadsheetID: spreadsheetID, - StartDatetime: startDatetime, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/source_survicate_data_source.go b/internal/provider/source_survicate_data_source.go new file mode 100644 index 000000000..6388c28ed --- /dev/null +++ b/internal/provider/source_survicate_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 = &SourceSurvicateDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceSurvicateDataSource{} + +func NewSourceSurvicateDataSource() datasource.DataSource { + return &SourceSurvicateDataSource{} +} + +// SourceSurvicateDataSource is the data source implementation. +type SourceSurvicateDataSource struct { + client *sdk.SDK +} + +// SourceSurvicateDataSourceModel describes the data model. +type SourceSurvicateDataSourceModel 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 *SourceSurvicateDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_survicate" +} + +// Schema defines the schema for the data source. +func (r *SourceSurvicateDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceSurvicate 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 *SourceSurvicateDataSource) 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 *SourceSurvicateDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceSurvicateDataSourceModel + 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.GetSourceSurvicateRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceSurvicate(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_survicate_data_source_sdk.go b/internal/provider/source_survicate_data_source_sdk.go new file mode 100644 index 000000000..0eb4f07a5 --- /dev/null +++ b/internal/provider/source_survicate_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 *SourceSurvicateDataSourceModel) 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_survicate_resource.go b/internal/provider/source_survicate_resource.go new file mode 100644 index 000000000..7cb77ca52 --- /dev/null +++ b/internal/provider/source_survicate_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 = &SourceSurvicateResource{} +var _ resource.ResourceWithImportState = &SourceSurvicateResource{} + +func NewSourceSurvicateResource() resource.Resource { + return &SourceSurvicateResource{} +} + +// SourceSurvicateResource defines the resource implementation. +type SourceSurvicateResource struct { + client *sdk.SDK +} + +// SourceSurvicateResourceModel describes the resource data model. +type SourceSurvicateResourceModel struct { + Configuration tfTypes.SourceBrevo `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 *SourceSurvicateResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_survicate" +} + +func (r *SourceSurvicateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceSurvicate 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_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 *SourceSurvicateResource) 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 *SourceSurvicateResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceSurvicateResourceModel + 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.ToSharedSourceSurvicateCreateRequest() + res, err := r.client.Sources.CreateSourceSurvicate(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.GetSourceSurvicateRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceSurvicate(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 *SourceSurvicateResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceSurvicateResourceModel + 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.GetSourceSurvicateRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceSurvicate(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 *SourceSurvicateResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceSurvicateResourceModel + 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 + } + + sourceSurvicatePutRequest := data.ToSharedSourceSurvicatePutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceSurvicateRequest{ + SourceSurvicatePutRequest: sourceSurvicatePutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceSurvicate(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.GetSourceSurvicateRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceSurvicate(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 *SourceSurvicateResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceSurvicateResourceModel + 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.DeleteSourceSurvicateRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceSurvicate(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 *SourceSurvicateResource) 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_survicate_resource_sdk.go b/internal/provider/source_survicate_resource_sdk.go new file mode 100644 index 000000000..3f35f814d --- /dev/null +++ b/internal/provider/source_survicate_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 *SourceSurvicateResourceModel) ToSharedSourceSurvicateCreateRequest() *shared.SourceSurvicateCreateRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceSurvicate{ + 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.SourceSurvicateCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceSurvicateResourceModel) 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 *SourceSurvicateResourceModel) ToSharedSourceSurvicatePutRequest() *shared.SourceSurvicatePutRequest { + apiKey := r.Configuration.APIKey.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + configuration := shared.SourceSurvicateUpdate{ + APIKey: apiKey, + StartDate: startDate, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceSurvicatePutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_teamwork_data_source.go b/internal/provider/source_teamwork_data_source.go new file mode 100644 index 000000000..f09ececd9 --- /dev/null +++ b/internal/provider/source_teamwork_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 = &SourceTeamworkDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceTeamworkDataSource{} + +func NewSourceTeamworkDataSource() datasource.DataSource { + return &SourceTeamworkDataSource{} +} + +// SourceTeamworkDataSource is the data source implementation. +type SourceTeamworkDataSource struct { + client *sdk.SDK +} + +// SourceTeamworkDataSourceModel describes the data model. +type SourceTeamworkDataSourceModel 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 *SourceTeamworkDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_teamwork" +} + +// Schema defines the schema for the data source. +func (r *SourceTeamworkDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceTeamwork 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 *SourceTeamworkDataSource) 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 *SourceTeamworkDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceTeamworkDataSourceModel + 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.GetSourceTeamworkRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceTeamwork(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_teamwork_data_source_sdk.go b/internal/provider/source_teamwork_data_source_sdk.go new file mode 100644 index 000000000..36b91fecd --- /dev/null +++ b/internal/provider/source_teamwork_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 *SourceTeamworkDataSourceModel) 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_teamwork_resource.go b/internal/provider/source_teamwork_resource.go new file mode 100644 index 000000000..2c99beb85 --- /dev/null +++ b/internal/provider/source_teamwork_resource.go @@ -0,0 +1,379 @@ +// 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 = &SourceTeamworkResource{} +var _ resource.ResourceWithImportState = &SourceTeamworkResource{} + +func NewSourceTeamworkResource() resource.Resource { + return &SourceTeamworkResource{} +} + +// SourceTeamworkResource defines the resource implementation. +type SourceTeamworkResource struct { + client *sdk.SDK +} + +// SourceTeamworkResourceModel describes the resource data model. +type SourceTeamworkResourceModel struct { + Configuration tfTypes.SourceTeamwork `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 *SourceTeamworkResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_teamwork" +} + +func (r *SourceTeamworkResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceTeamwork 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{ + "password": schema.StringAttribute{ + Optional: true, + Sensitive: true, + }, + "site_name": schema.StringAttribute{ + Required: true, + Description: `The teamwork site name appearing at the url`, + }, + "start_date": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "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 *SourceTeamworkResource) 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 *SourceTeamworkResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceTeamworkResourceModel + 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.ToSharedSourceTeamworkCreateRequest() + res, err := r.client.Sources.CreateSourceTeamwork(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.GetSourceTeamworkRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceTeamwork(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 *SourceTeamworkResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceTeamworkResourceModel + 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.GetSourceTeamworkRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceTeamwork(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 *SourceTeamworkResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceTeamworkResourceModel + 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 + } + + sourceTeamworkPutRequest := data.ToSharedSourceTeamworkPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceTeamworkRequest{ + SourceTeamworkPutRequest: sourceTeamworkPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceTeamwork(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.GetSourceTeamworkRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceTeamwork(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 *SourceTeamworkResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceTeamworkResourceModel + 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.DeleteSourceTeamworkRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceTeamwork(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 *SourceTeamworkResource) 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_teamwork_resource_sdk.go b/internal/provider/source_teamwork_resource_sdk.go new file mode 100644 index 000000000..96ad9c006 --- /dev/null +++ b/internal/provider/source_teamwork_resource_sdk.go @@ -0,0 +1,84 @@ +// 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 *SourceTeamworkResourceModel) ToSharedSourceTeamworkCreateRequest() *shared.SourceTeamworkCreateRequest { + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + siteName := r.Configuration.SiteName.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + username := r.Configuration.Username.ValueString() + configuration := shared.SourceTeamwork{ + Password: password, + SiteName: siteName, + StartDate: startDate, + 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.SourceTeamworkCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceTeamworkResourceModel) 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 *SourceTeamworkResourceModel) ToSharedSourceTeamworkPutRequest() *shared.SourceTeamworkPutRequest { + password := new(string) + if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() { + *password = r.Configuration.Password.ValueString() + } else { + password = nil + } + siteName := r.Configuration.SiteName.ValueString() + startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + username := r.Configuration.Username.ValueString() + configuration := shared.SourceTeamworkUpdate{ + Password: password, + SiteName: siteName, + StartDate: startDate, + Username: username, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceTeamworkPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_wheniwork_data_source.go b/internal/provider/source_wheniwork_data_source.go new file mode 100644 index 000000000..093265945 --- /dev/null +++ b/internal/provider/source_wheniwork_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 = &SourceWhenIWorkDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceWhenIWorkDataSource{} + +func NewSourceWhenIWorkDataSource() datasource.DataSource { + return &SourceWhenIWorkDataSource{} +} + +// SourceWhenIWorkDataSource is the data source implementation. +type SourceWhenIWorkDataSource struct { + client *sdk.SDK +} + +// SourceWhenIWorkDataSourceModel describes the data model. +type SourceWhenIWorkDataSourceModel 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 *SourceWhenIWorkDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_when_i_work" +} + +// Schema defines the schema for the data source. +func (r *SourceWhenIWorkDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceWhenIWork 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 *SourceWhenIWorkDataSource) 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 *SourceWhenIWorkDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceWhenIWorkDataSourceModel + 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.GetSourceWhenIWorkRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceWhenIWork(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_wheniwork_data_source_sdk.go b/internal/provider/source_wheniwork_data_source_sdk.go new file mode 100644 index 000000000..05da3d01d --- /dev/null +++ b/internal/provider/source_wheniwork_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 *SourceWhenIWorkDataSourceModel) 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_wheniwork_resource.go b/internal/provider/source_wheniwork_resource.go new file mode 100644 index 000000000..3a56eef41 --- /dev/null +++ b/internal/provider/source_wheniwork_resource.go @@ -0,0 +1,370 @@ +// 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 = &SourceWhenIWorkResource{} +var _ resource.ResourceWithImportState = &SourceWhenIWorkResource{} + +func NewSourceWhenIWorkResource() resource.Resource { + return &SourceWhenIWorkResource{} +} + +// SourceWhenIWorkResource defines the resource implementation. +type SourceWhenIWorkResource struct { + client *sdk.SDK +} + +// SourceWhenIWorkResourceModel describes the resource data model. +type SourceWhenIWorkResourceModel struct { + Configuration tfTypes.SourceWhenIWork `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 *SourceWhenIWorkResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_when_i_work" +} + +func (r *SourceWhenIWorkResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "SourceWhenIWork 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{ + "email": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `Email of your when-i-work account`, + }, + "password": schema.StringAttribute{ + Required: true, + Sensitive: true, + Description: `Password for your when-i-work account`, + }, + }, + }, + "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 *SourceWhenIWorkResource) 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 *SourceWhenIWorkResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceWhenIWorkResourceModel + 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.ToSharedSourceWhenIWorkCreateRequest() + res, err := r.client.Sources.CreateSourceWhenIWork(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.GetSourceWhenIWorkRequest{ + SourceID: sourceID, + } + res1, err := r.client.Sources.GetSourceWhenIWork(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 *SourceWhenIWorkResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceWhenIWorkResourceModel + 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.GetSourceWhenIWorkRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.GetSourceWhenIWork(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 *SourceWhenIWorkResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceWhenIWorkResourceModel + 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 + } + + sourceWhenIWorkPutRequest := data.ToSharedSourceWhenIWorkPutRequest() + sourceID := data.SourceID.ValueString() + request := operations.PutSourceWhenIWorkRequest{ + SourceWhenIWorkPutRequest: sourceWhenIWorkPutRequest, + SourceID: sourceID, + } + res, err := r.client.Sources.PutSourceWhenIWork(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.GetSourceWhenIWorkRequest{ + SourceID: sourceId1, + } + res1, err := r.client.Sources.GetSourceWhenIWork(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 *SourceWhenIWorkResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceWhenIWorkResourceModel + 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.DeleteSourceWhenIWorkRequest{ + SourceID: sourceID, + } + res, err := r.client.Sources.DeleteSourceWhenIWork(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 *SourceWhenIWorkResource) 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_wheniwork_resource_sdk.go b/internal/provider/source_wheniwork_resource_sdk.go new file mode 100644 index 000000000..e02d73afb --- /dev/null +++ b/internal/provider/source_wheniwork_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 *SourceWhenIWorkResourceModel) ToSharedSourceWhenIWorkCreateRequest() *shared.SourceWhenIWorkCreateRequest { + email := r.Configuration.Email.ValueString() + password := r.Configuration.Password.ValueString() + configuration := shared.SourceWhenIWork{ + Email: email, + Password: password, + } + 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.SourceWhenIWorkCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceWhenIWorkResourceModel) 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 *SourceWhenIWorkResourceModel) ToSharedSourceWhenIWorkPutRequest() *shared.SourceWhenIWorkPutRequest { + email := r.Configuration.Email.ValueString() + password := r.Configuration.Password.ValueString() + configuration := shared.SourceWhenIWorkUpdate{ + Email: email, + Password: password, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceWhenIWorkPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_zendesksupport_resource.go b/internal/provider/source_zendesksupport_resource.go index 0ed330b18..f959ef553 100644 --- a/internal/provider/source_zendesksupport_resource.go +++ b/internal/provider/source_zendesksupport_resource.go @@ -15,7 +15,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -128,12 +127,6 @@ func (r *SourceZendeskSupportResource) Schema(ctx context.Context, req resource. validators.ExactlyOneChild(), }, }, - "ignore_pagination": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `Makes each stream read a single page of data. Default: false`, - }, "start_date": schema.StringAttribute{ Optional: true, Description: `The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.`, diff --git a/internal/provider/source_zendesksupport_resource_sdk.go b/internal/provider/source_zendesksupport_resource_sdk.go index ecabcbee3..08e421d8e 100644 --- a/internal/provider/source_zendesksupport_resource_sdk.go +++ b/internal/provider/source_zendesksupport_resource_sdk.go @@ -63,12 +63,6 @@ func (r *SourceZendeskSupportResourceModel) ToSharedSourceZendeskSupportCreateRe } } } - ignorePagination := new(bool) - if !r.Configuration.IgnorePagination.IsUnknown() && !r.Configuration.IgnorePagination.IsNull() { - *ignorePagination = r.Configuration.IgnorePagination.ValueBool() - } else { - ignorePagination = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -77,10 +71,9 @@ func (r *SourceZendeskSupportResourceModel) ToSharedSourceZendeskSupportCreateRe } subdomain := r.Configuration.Subdomain.ValueString() configuration := shared.SourceZendeskSupport{ - Credentials: credentials, - IgnorePagination: ignorePagination, - StartDate: startDate, - Subdomain: subdomain, + Credentials: credentials, + StartDate: startDate, + Subdomain: subdomain, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -169,12 +162,6 @@ func (r *SourceZendeskSupportResourceModel) ToSharedSourceZendeskSupportPutReque } } } - ignorePagination := new(bool) - if !r.Configuration.IgnorePagination.IsUnknown() && !r.Configuration.IgnorePagination.IsNull() { - *ignorePagination = r.Configuration.IgnorePagination.ValueBool() - } else { - ignorePagination = nil - } startDate := new(time.Time) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { *startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -183,10 +170,9 @@ func (r *SourceZendeskSupportResourceModel) ToSharedSourceZendeskSupportPutReque } subdomain := r.Configuration.Subdomain.ValueString() configuration := shared.SourceZendeskSupportUpdate{ - Credentials: credentials, - IgnorePagination: ignorePagination, - StartDate: startDate, - Subdomain: subdomain, + Credentials: credentials, + StartDate: startDate, + Subdomain: subdomain, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/types/basic.go b/internal/provider/types/basic.go new file mode 100644 index 000000000..c7de0c318 --- /dev/null +++ b/internal/provider/types/basic.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 Basic struct { + URLPrefix types.String `tfsdk:"url_prefix"` +} diff --git a/internal/provider/types/csv.go b/internal/provider/types/csv.go deleted file mode 100644 index 44af15eca..000000000 --- a/internal/provider/types/csv.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type Csv struct { - AdditionalReaderOptions types.String `tfsdk:"additional_reader_options"` - AdvancedOptions types.String `tfsdk:"advanced_options"` - BlockSize types.Int64 `tfsdk:"block_size"` - Delimiter types.String `tfsdk:"delimiter"` - DoubleQuote types.Bool `tfsdk:"double_quote"` - Encoding types.String `tfsdk:"encoding"` - EscapeChar types.String `tfsdk:"escape_char"` - InferDatatypes types.Bool `tfsdk:"infer_datatypes"` - NewlinesInValues types.Bool `tfsdk:"newlines_in_values"` - QuoteChar types.String `tfsdk:"quote_char"` -} diff --git a/internal/provider/types/csv_format.go b/internal/provider/types/csv_format.go index c4fdc99fc..0da1e0ed8 100644 --- a/internal/provider/types/csv_format.go +++ b/internal/provider/types/csv_format.go @@ -12,7 +12,6 @@ type CSVFormat struct { FalseValues []types.String `tfsdk:"false_values"` HeaderDefinition *SourceAzureBlobStorageCSVHeaderDefinition `tfsdk:"header_definition"` IgnoreErrorsOnFieldsMismatch types.Bool `tfsdk:"ignore_errors_on_fields_mismatch"` - InferenceType types.String `tfsdk:"inference_type"` NullValues []types.String `tfsdk:"null_values"` QuoteChar types.String `tfsdk:"quote_char"` SkipRowsAfterHeader types.Int64 `tfsdk:"skip_rows_after_header"` diff --git a/internal/provider/types/destination_clickhouse.go b/internal/provider/types/destination_clickhouse.go index 19d766c7d..4437b761f 100644 --- a/internal/provider/types/destination_clickhouse.go +++ b/internal/provider/types/destination_clickhouse.go @@ -11,6 +11,7 @@ type DestinationClickhouse struct { Password types.String `tfsdk:"password"` Port types.Int64 `tfsdk:"port"` RawDataSchema types.String `tfsdk:"raw_data_schema"` + Ssl types.Bool `tfsdk:"ssl"` TunnelMethod *DestinationClickhouseSSHTunnelMethod `tfsdk:"tunnel_method"` Username types.String `tfsdk:"username"` } diff --git a/internal/provider/types/destination_dev_null.go b/internal/provider/types/destination_dev_null.go deleted file mode 100644 index 16cebaaad..000000000 --- a/internal/provider/types/destination_dev_null.go +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type DestinationDevNull struct { - TestDestination DestinationDevNullTestDestination `tfsdk:"test_destination"` -} diff --git a/internal/provider/types/destination_dev_null_test_destination.go b/internal/provider/types/destination_dev_null_test_destination.go deleted file mode 100644 index fbc5b71ba..000000000 --- a/internal/provider/types/destination_dev_null_test_destination.go +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type DestinationDevNullTestDestination struct { - Silent *Fake `tfsdk:"silent" tfPlanOnly:"true"` -} diff --git a/internal/provider/types/destination_elasticsearch.go b/internal/provider/types/destination_elasticsearch.go index 1290e065b..f5f022b7d 100644 --- a/internal/provider/types/destination_elasticsearch.go +++ b/internal/provider/types/destination_elasticsearch.go @@ -8,5 +8,6 @@ type DestinationElasticsearch struct { AuthenticationMethod *DestinationElasticsearchAuthenticationMethod `tfsdk:"authentication_method"` CaCertificate types.String `tfsdk:"ca_certificate"` Endpoint types.String `tfsdk:"endpoint"` + TunnelMethod *DestinationClickhouseSSHTunnelMethod `tfsdk:"tunnel_method"` Upsert types.Bool `tfsdk:"upsert"` } diff --git a/internal/provider/types/destination_elasticsearch_authentication_method.go b/internal/provider/types/destination_elasticsearch_authentication_method.go index 96ae29c08..7f4091668 100644 --- a/internal/provider/types/destination_elasticsearch_authentication_method.go +++ b/internal/provider/types/destination_elasticsearch_authentication_method.go @@ -4,5 +4,6 @@ package types type DestinationElasticsearchAuthenticationMethod struct { APIKeySecret *APIKeySecret `tfsdk:"api_key_secret" tfPlanOnly:"true"` + None *Fake `tfsdk:"none" tfPlanOnly:"true"` UsernamePassword *UsernamePassword `tfsdk:"username_password" tfPlanOnly:"true"` } diff --git a/internal/provider/types/destination_mssql_ssl_method.go b/internal/provider/types/destination_mssql_ssl_method.go index 153992b17..e30581bc4 100644 --- a/internal/provider/types/destination_mssql_ssl_method.go +++ b/internal/provider/types/destination_mssql_ssl_method.go @@ -5,4 +5,5 @@ package types type DestinationMssqlSSLMethod struct { EncryptedTrustServerCertificate *Fake `tfsdk:"encrypted_trust_server_certificate" tfPlanOnly:"true"` EncryptedVerifyCertificate *EncryptedVerifyCertificate `tfsdk:"encrypted_verify_certificate" tfPlanOnly:"true"` + Unencrypted *Fake `tfsdk:"unencrypted" tfPlanOnly:"true"` } diff --git a/internal/provider/types/destination_mysql.go b/internal/provider/types/destination_mysql.go index 0cd409232..188ff0371 100644 --- a/internal/provider/types/destination_mysql.go +++ b/internal/provider/types/destination_mysql.go @@ -12,6 +12,7 @@ type DestinationMysql struct { Password types.String `tfsdk:"password"` Port types.Int64 `tfsdk:"port"` RawDataSchema types.String `tfsdk:"raw_data_schema"` + Ssl types.Bool `tfsdk:"ssl"` TunnelMethod *DestinationClickhouseSSHTunnelMethod `tfsdk:"tunnel_method"` Username types.String `tfsdk:"username"` } diff --git a/internal/provider/types/destination_oracle.go b/internal/provider/types/destination_oracle.go index d82ea987c..0e7febb2e 100644 --- a/internal/provider/types/destination_oracle.go +++ b/internal/provider/types/destination_oracle.go @@ -5,6 +5,7 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type DestinationOracle struct { + Encryption *DestinationOracleEncryption `tfsdk:"encryption"` Host types.String `tfsdk:"host"` JdbcURLParams types.String `tfsdk:"jdbc_url_params"` Password types.String `tfsdk:"password"` diff --git a/internal/provider/types/source_oracle_encryption.go b/internal/provider/types/destination_oracle_encryption.go similarity index 69% rename from internal/provider/types/source_oracle_encryption.go rename to internal/provider/types/destination_oracle_encryption.go index f094fcdf1..90b7e8395 100644 --- a/internal/provider/types/source_oracle_encryption.go +++ b/internal/provider/types/destination_oracle_encryption.go @@ -2,7 +2,8 @@ package types -type SourceOracleEncryption struct { +type DestinationOracleEncryption struct { NativeNetworkEncryptionNNE *NativeNetworkEncryptionNNE `tfsdk:"native_network_encryption_nne" tfPlanOnly:"true"` TLSEncryptedVerifyCertificate *TLSEncryptedVerifyCertificate `tfsdk:"tls_encrypted_verify_certificate" tfPlanOnly:"true"` + Unencrypted *Fake `tfsdk:"unencrypted" tfPlanOnly:"true"` } diff --git a/internal/provider/types/destination_pgvector.go b/internal/provider/types/destination_pgvector.go new file mode 100644 index 000000000..5e27ddb26 --- /dev/null +++ b/internal/provider/types/destination_pgvector.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 DestinationPgvector struct { + Embedding DestinationAstraEmbedding `tfsdk:"embedding"` + Indexing DestinationPgvectorPostgresConnection `tfsdk:"indexing"` + OmitRawText types.Bool `tfsdk:"omit_raw_text"` + Processing DestinationAstraProcessingConfigModel `tfsdk:"processing"` +} diff --git a/internal/provider/types/username_and_password.go b/internal/provider/types/destination_pgvector_credentials.go similarity index 81% rename from internal/provider/types/username_and_password.go rename to internal/provider/types/destination_pgvector_credentials.go index 5853ef94c..aa1f0330c 100644 --- a/internal/provider/types/username_and_password.go +++ b/internal/provider/types/destination_pgvector_credentials.go @@ -4,6 +4,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type UsernameAndPassword struct { +type DestinationPgvectorCredentials struct { Password types.String `tfsdk:"password"` } diff --git a/internal/provider/types/destination_pgvector_postgres_connection.go b/internal/provider/types/destination_pgvector_postgres_connection.go new file mode 100644 index 000000000..45c3f1390 --- /dev/null +++ b/internal/provider/types/destination_pgvector_postgres_connection.go @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type DestinationPgvectorPostgresConnection struct { + Credentials DestinationPgvectorCredentials `tfsdk:"credentials"` + Database types.String `tfsdk:"database"` + DefaultSchema types.String `tfsdk:"default_schema"` + Host types.String `tfsdk:"host"` + Port types.Int64 `tfsdk:"port"` + Username types.String `tfsdk:"username"` +} diff --git a/internal/provider/types/destination_postgres.go b/internal/provider/types/destination_postgres.go index 3170b0fc9..9bcf8f786 100644 --- a/internal/provider/types/destination_postgres.go +++ b/internal/provider/types/destination_postgres.go @@ -14,6 +14,7 @@ type DestinationPostgres struct { Port types.Int64 `tfsdk:"port"` RawDataSchema types.String `tfsdk:"raw_data_schema"` Schema types.String `tfsdk:"schema"` + Ssl types.Bool `tfsdk:"ssl"` SslMode *DestinationPostgresSSLModes `tfsdk:"ssl_mode"` TunnelMethod *DestinationClickhouseSSHTunnelMethod `tfsdk:"tunnel_method"` Username types.String `tfsdk:"username"` diff --git a/internal/provider/types/destination_snowflake_authorization_method.go b/internal/provider/types/destination_snowflake_authorization_method.go index d1cecd54d..2af63c831 100644 --- a/internal/provider/types/destination_snowflake_authorization_method.go +++ b/internal/provider/types/destination_snowflake_authorization_method.go @@ -3,7 +3,7 @@ package types type DestinationSnowflakeAuthorizationMethod struct { - KeyPairAuthentication *KeyPairAuthentication `tfsdk:"key_pair_authentication" tfPlanOnly:"true"` - OAuth20 *DestinationSnowflakeOAuth20 `tfsdk:"o_auth20" tfPlanOnly:"true"` - UsernameAndPassword *UsernameAndPassword `tfsdk:"username_and_password" tfPlanOnly:"true"` + KeyPairAuthentication *KeyPairAuthentication `tfsdk:"key_pair_authentication" tfPlanOnly:"true"` + OAuth20 *DestinationSnowflakeOAuth20 `tfsdk:"o_auth20" tfPlanOnly:"true"` + UsernameAndPassword *DestinationPgvectorCredentials `tfsdk:"username_and_password" tfPlanOnly:"true"` } diff --git a/internal/provider/types/destination_snowflake_cortex_snowflake_connection.go b/internal/provider/types/destination_snowflake_cortex_snowflake_connection.go index 94cae7fba..82c75aefa 100644 --- a/internal/provider/types/destination_snowflake_cortex_snowflake_connection.go +++ b/internal/provider/types/destination_snowflake_cortex_snowflake_connection.go @@ -5,11 +5,11 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type DestinationSnowflakeCortexSnowflakeConnection struct { - Credentials UsernameAndPassword `tfsdk:"credentials"` - Database types.String `tfsdk:"database"` - DefaultSchema types.String `tfsdk:"default_schema"` - Host types.String `tfsdk:"host"` - Role types.String `tfsdk:"role"` - Username types.String `tfsdk:"username"` - Warehouse types.String `tfsdk:"warehouse"` + Credentials DestinationPgvectorCredentials `tfsdk:"credentials"` + Database types.String `tfsdk:"database"` + DefaultSchema types.String `tfsdk:"default_schema"` + Host types.String `tfsdk:"host"` + Role types.String `tfsdk:"role"` + Username types.String `tfsdk:"username"` + Warehouse types.String `tfsdk:"warehouse"` } diff --git a/internal/provider/types/enterprise.go b/internal/provider/types/enterprise.go new file mode 100644 index 000000000..64e1964c6 --- /dev/null +++ b/internal/provider/types/enterprise.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 Enterprise struct { + EnterpriseURL types.String `tfsdk:"enterprise_url"` +} diff --git a/internal/provider/types/file_based_stream_config.go b/internal/provider/types/file_based_stream_config.go index cc203c009..657306228 100644 --- a/internal/provider/types/file_based_stream_config.go +++ b/internal/provider/types/file_based_stream_config.go @@ -9,9 +9,7 @@ type FileBasedStreamConfig struct { Format SourceAzureBlobStorageFormat `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/jsonl.go b/internal/provider/types/jsonl.go deleted file mode 100644 index dd28d82c6..000000000 --- a/internal/provider/types/jsonl.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 Jsonl struct { - BlockSize types.Int64 `tfsdk:"block_size"` - NewlinesInValues types.Bool `tfsdk:"newlines_in_values"` - UnexpectedFieldBehavior types.String `tfsdk:"unexpected_field_behavior"` -} diff --git a/internal/provider/types/parquet.go b/internal/provider/types/parquet.go deleted file mode 100644 index 0990259f2..000000000 --- a/internal/provider/types/parquet.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 Parquet struct { - BatchSize types.Int64 `tfsdk:"batch_size"` - BufferSize types.Int64 `tfsdk:"buffer_size"` - Columns []types.String `tfsdk:"columns"` -} diff --git a/internal/provider/types/source_file_s3_amazon_web_services.go b/internal/provider/types/s3_amazon_web_services.go similarity index 86% rename from internal/provider/types/source_file_s3_amazon_web_services.go rename to internal/provider/types/s3_amazon_web_services.go index ddc7aa148..95eafee15 100644 --- a/internal/provider/types/source_file_s3_amazon_web_services.go +++ b/internal/provider/types/s3_amazon_web_services.go @@ -4,7 +4,7 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type SourceFileS3AmazonWebServices struct { +type S3AmazonWebServices struct { AwsAccessKeyID types.String `tfsdk:"aws_access_key_id"` AwsSecretAccessKey types.String `tfsdk:"aws_secret_access_key"` } diff --git a/internal/provider/types/source7shifts.go b/internal/provider/types/source7shifts.go new file mode 100644 index 000000000..23e5ad85a --- /dev/null +++ b/internal/provider/types/source7shifts.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 Source7shifts struct { + AccessToken types.String `tfsdk:"access_token"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_appcues.go b/internal/provider/types/source_appcues.go new file mode 100644 index 000000000..b980caf8f --- /dev/null +++ b/internal/provider/types/source_appcues.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 SourceAppcues struct { + AccountID types.String `tfsdk:"account_id"` + Password types.String `tfsdk:"password"` + StartDate types.String `tfsdk:"start_date"` + Username types.String `tfsdk:"username"` +} diff --git a/internal/provider/types/source_appfigures.go b/internal/provider/types/source_appfigures.go new file mode 100644 index 000000000..36923b08d --- /dev/null +++ b/internal/provider/types/source_appfigures.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 SourceAppfigures struct { + APIKey types.String `tfsdk:"api_key"` + GroupBy types.String `tfsdk:"group_by"` + SearchStore types.String `tfsdk:"search_store"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_asana.go b/internal/provider/types/source_asana.go index 84c22c9da..102e3dfe0 100644 --- a/internal/provider/types/source_asana.go +++ b/internal/provider/types/source_asana.go @@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type SourceAsana struct { Credentials *SourceAsanaAuthenticationMechanism `tfsdk:"credentials"` OrganizationExportIds []types.String `tfsdk:"organization_export_ids"` - TestMode types.Bool `tfsdk:"test_mode"` } diff --git a/internal/provider/types/source_bitly.go b/internal/provider/types/source_bitly.go new file mode 100644 index 000000000..02927f18b --- /dev/null +++ b/internal/provider/types/source_bitly.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 SourceBitly struct { + APIKey types.String `tfsdk:"api_key"` + EndDate types.String `tfsdk:"end_date"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_calendly.go b/internal/provider/types/source_brevo.go similarity index 89% rename from internal/provider/types/source_calendly.go rename to internal/provider/types/source_brevo.go index 2b36607fb..b9b2ff001 100644 --- a/internal/provider/types/source_calendly.go +++ b/internal/provider/types/source_brevo.go @@ -4,7 +4,7 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type SourceCalendly struct { +type SourceBrevo struct { APIKey types.String `tfsdk:"api_key"` StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_buzzsprout.go b/internal/provider/types/source_buzzsprout.go new file mode 100644 index 000000000..f023d392b --- /dev/null +++ b/internal/provider/types/source_buzzsprout.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 SourceBuzzsprout struct { + APIKey types.String `tfsdk:"api_key"` + PodcastID types.String `tfsdk:"podcast_id"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_chameleon.go b/internal/provider/types/source_chameleon.go new file mode 100644 index 000000000..e9814e47f --- /dev/null +++ b/internal/provider/types/source_chameleon.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 SourceChameleon struct { + APIKey types.String `tfsdk:"api_key"` + EndDate types.String `tfsdk:"end_date"` + Filter types.String `tfsdk:"filter"` + Limit types.String `tfsdk:"limit"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_cimis.go b/internal/provider/types/source_cimis.go new file mode 100644 index 000000000..c09a1f886 --- /dev/null +++ b/internal/provider/types/source_cimis.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 SourceCimis struct { + APIKey types.String `tfsdk:"api_key"` + DailyDataItems []types.String `tfsdk:"daily_data_items"` + EndDate types.String `tfsdk:"end_date"` + HourlyDataItems []types.String `tfsdk:"hourly_data_items"` + StartDate types.String `tfsdk:"start_date"` + Targets []types.String `tfsdk:"targets"` + TargetsType types.String `tfsdk:"targets_type"` + UnitOfMeasure types.String `tfsdk:"unit_of_measure"` +} diff --git a/internal/provider/types/source_clickhouse.go b/internal/provider/types/source_clickhouse.go index b2f4eb86a..502e8b9f3 100644 --- a/internal/provider/types/source_clickhouse.go +++ b/internal/provider/types/source_clickhouse.go @@ -10,6 +10,7 @@ type SourceClickhouse struct { JdbcURLParams types.String `tfsdk:"jdbc_url_params"` Password types.String `tfsdk:"password"` Port types.Int64 `tfsdk:"port"` + Ssl types.Bool `tfsdk:"ssl"` TunnelMethod *DestinationClickhouseSSHTunnelMethod `tfsdk:"tunnel_method"` Username types.String `tfsdk:"username"` } diff --git a/internal/provider/types/source_ezofficeinventory.go b/internal/provider/types/source_ezofficeinventory.go new file mode 100644 index 000000000..ff5ae3384 --- /dev/null +++ b/internal/provider/types/source_ezofficeinventory.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 SourceEzofficeinventory struct { + APIKey types.String `tfsdk:"api_key"` + StartDate types.String `tfsdk:"start_date"` + Subdomain types.String `tfsdk:"subdomain"` +} diff --git a/internal/provider/types/source_facebook_marketing.go b/internal/provider/types/source_facebook_marketing.go index b664f8e15..81081f886 100644 --- a/internal/provider/types/source_facebook_marketing.go +++ b/internal/provider/types/source_facebook_marketing.go @@ -5,20 +5,17 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceFacebookMarketing struct { - AccessToken types.String `tfsdk:"access_token"` - AccountIds []types.String `tfsdk:"account_ids"` - ActionBreakdownsAllowEmpty types.Bool `tfsdk:"action_breakdowns_allow_empty"` - AdStatuses []types.String `tfsdk:"ad_statuses"` - AdsetStatuses []types.String `tfsdk:"adset_statuses"` - CampaignStatuses []types.String `tfsdk:"campaign_statuses"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - Credentials SourceFacebookMarketingAuthentication `tfsdk:"credentials"` - CustomInsights []InsightConfig `tfsdk:"custom_insights"` - EndDate types.String `tfsdk:"end_date"` - FetchThumbnailImages types.Bool `tfsdk:"fetch_thumbnail_images"` - InsightsJobTimeout types.Int64 `tfsdk:"insights_job_timeout"` - InsightsLookbackWindow types.Int64 `tfsdk:"insights_lookback_window"` - PageSize types.Int64 `tfsdk:"page_size"` - StartDate types.String `tfsdk:"start_date"` + AccessToken types.String `tfsdk:"access_token"` + AccountIds []types.String `tfsdk:"account_ids"` + AdStatuses []types.String `tfsdk:"ad_statuses"` + AdsetStatuses []types.String `tfsdk:"adset_statuses"` + CampaignStatuses []types.String `tfsdk:"campaign_statuses"` + 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_file_storage_provider.go b/internal/provider/types/source_file_storage_provider.go index 11a7b13ec..3cdcb1008 100644 --- a/internal/provider/types/source_file_storage_provider.go +++ b/internal/provider/types/source_file_storage_provider.go @@ -3,11 +3,12 @@ package types type SourceFileStorageProvider struct { - AzBlobAzureBlobStorage *AzBlobAzureBlobStorage `tfsdk:"az_blob_azure_blob_storage" tfPlanOnly:"true"` - GCSGoogleCloudStorage *GCSGoogleCloudStorage `tfsdk:"gcs_google_cloud_storage" tfPlanOnly:"true"` - HTTPSPublicWeb *HTTPSPublicWeb `tfsdk:"https_public_web" tfPlanOnly:"true"` - S3AmazonWebServices *SourceFileS3AmazonWebServices `tfsdk:"s3_amazon_web_services" tfPlanOnly:"true"` - SCPSecureCopyProtocol *SCPSecureCopyProtocol `tfsdk:"scp_secure_copy_protocol" tfPlanOnly:"true"` - SFTPSecureFileTransferProtocol *SCPSecureCopyProtocol `tfsdk:"sftp_secure_file_transfer_protocol" tfPlanOnly:"true"` - SSHSecureShell *SCPSecureCopyProtocol `tfsdk:"ssh_secure_shell" tfPlanOnly:"true"` + AzBlobAzureBlobStorage *AzBlobAzureBlobStorage `tfsdk:"az_blob_azure_blob_storage" tfPlanOnly:"true"` + GCSGoogleCloudStorage *GCSGoogleCloudStorage `tfsdk:"gcs_google_cloud_storage" tfPlanOnly:"true"` + HTTPSPublicWeb *HTTPSPublicWeb `tfsdk:"https_public_web" tfPlanOnly:"true"` + LocalFilesystemLimited *Fake `tfsdk:"local_filesystem_limited" tfPlanOnly:"true"` + S3AmazonWebServices *S3AmazonWebServices `tfsdk:"s3_amazon_web_services" tfPlanOnly:"true"` + SCPSecureCopyProtocol *SCPSecureCopyProtocol `tfsdk:"scp_secure_copy_protocol" tfPlanOnly:"true"` + SFTPSecureFileTransferProtocol *SCPSecureCopyProtocol `tfsdk:"sftp_secure_file_transfer_protocol" tfPlanOnly:"true"` + SSHSecureShell *SCPSecureCopyProtocol `tfsdk:"ssh_secure_shell" tfPlanOnly:"true"` } diff --git a/internal/provider/types/source_front.go b/internal/provider/types/source_front.go new file mode 100644 index 000000000..5d2dc870d --- /dev/null +++ b/internal/provider/types/source_front.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 SourceFront struct { + APIKey types.String `tfsdk:"api_key"` + PageLimit types.String `tfsdk:"page_limit"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_gcs_file_based_stream_config.go b/internal/provider/types/source_gcs_file_based_stream_config.go index 33e54caea..60f23a09b 100644 --- a/internal/provider/types/source_gcs_file_based_stream_config.go +++ b/internal/provider/types/source_gcs_file_based_stream_config.go @@ -9,9 +9,7 @@ type SourceGcsFileBasedStreamConfig struct { 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_github.go b/internal/provider/types/source_github.go index fbdfc893c..6d9d62cf5 100644 --- a/internal/provider/types/source_github.go +++ b/internal/provider/types/source_github.go @@ -6,11 +6,9 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type SourceGithub struct { APIURL types.String `tfsdk:"api_url"` - Branch types.String `tfsdk:"branch"` Branches []types.String `tfsdk:"branches"` Credentials SourceGithubAuthentication `tfsdk:"credentials"` MaxWaitingTime types.Int64 `tfsdk:"max_waiting_time"` Repositories []types.String `tfsdk:"repositories"` - Repository types.String `tfsdk:"repository"` StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_gitlab.go b/internal/provider/types/source_gitlab.go index 84a0ff183..b37898cef 100644 --- a/internal/provider/types/source_gitlab.go +++ b/internal/provider/types/source_gitlab.go @@ -7,9 +7,7 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type SourceGitlab struct { APIURL types.String `tfsdk:"api_url"` Credentials SourceGitlabAuthorizationMethod `tfsdk:"credentials"` - Groups types.String `tfsdk:"groups"` GroupsList []types.String `tfsdk:"groups_list"` - Projects types.String `tfsdk:"projects"` ProjectsList []types.String `tfsdk:"projects_list"` StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_google_drive.go b/internal/provider/types/source_google_drive.go index 713eef4d9..1f9709ef4 100644 --- a/internal/provider/types/source_google_drive.go +++ b/internal/provider/types/source_google_drive.go @@ -5,8 +5,8 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceGoogleDrive struct { - Credentials SourceGoogleDriveAuthentication `tfsdk:"credentials"` - FolderURL types.String `tfsdk:"folder_url"` - StartDate types.String `tfsdk:"start_date"` - Streams []SourceGoogleDriveFileBasedStreamConfig `tfsdk:"streams"` + Credentials SourceGoogleDriveAuthentication `tfsdk:"credentials"` + FolderURL types.String `tfsdk:"folder_url"` + StartDate types.String `tfsdk:"start_date"` + Streams []FileBasedStreamConfig `tfsdk:"streams"` } diff --git a/internal/provider/types/source_google_drive_csv_format.go b/internal/provider/types/source_google_drive_csv_format.go deleted file mode 100644 index 1dd618bf2..000000000 --- a/internal/provider/types/source_google_drive_csv_format.go +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type SourceGoogleDriveCSVFormat struct { - Delimiter types.String `tfsdk:"delimiter"` - DoubleQuote types.Bool `tfsdk:"double_quote"` - Encoding types.String `tfsdk:"encoding"` - EscapeChar types.String `tfsdk:"escape_char"` - FalseValues []types.String `tfsdk:"false_values"` - HeaderDefinition *SourceAzureBlobStorageCSVHeaderDefinition `tfsdk:"header_definition"` - IgnoreErrorsOnFieldsMismatch types.Bool `tfsdk:"ignore_errors_on_fields_mismatch"` - NullValues []types.String `tfsdk:"null_values"` - QuoteChar types.String `tfsdk:"quote_char"` - SkipRowsAfterHeader types.Int64 `tfsdk:"skip_rows_after_header"` - SkipRowsBeforeHeader types.Int64 `tfsdk:"skip_rows_before_header"` - StringsCanBeNull types.Bool `tfsdk:"strings_can_be_null"` - TrueValues []types.String `tfsdk:"true_values"` -} diff --git a/internal/provider/types/source_google_drive_file_based_stream_config.go b/internal/provider/types/source_google_drive_file_based_stream_config.go deleted file mode 100644 index 6662063ef..000000000 --- a/internal/provider/types/source_google_drive_file_based_stream_config.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type SourceGoogleDriveFileBasedStreamConfig struct { - DaysToSyncIfHistoryIsFull types.Int64 `tfsdk:"days_to_sync_if_history_is_full"` - Format SourceGoogleDriveFormat `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_google_drive_format.go b/internal/provider/types/source_google_drive_format.go deleted file mode 100644 index 5ef4c23bc..000000000 --- a/internal/provider/types/source_google_drive_format.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type SourceGoogleDriveFormat struct { - AvroFormat *AvroFormat `tfsdk:"avro_format" tfPlanOnly:"true"` - CSVFormat *SourceGoogleDriveCSVFormat `tfsdk:"csv_format" tfPlanOnly:"true"` - DocumentFileTypeFormatExperimental *DocumentFileTypeFormatExperimental `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_google_search_console.go b/internal/provider/types/source_google_search_console.go index 55bc77dcb..3fc8103c3 100644 --- a/internal/provider/types/source_google_search_console.go +++ b/internal/provider/types/source_google_search_console.go @@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type SourceGoogleSearchConsole struct { Authorization SourceGoogleSearchConsoleAuthenticationType `tfsdk:"authorization"` - CustomReports types.String `tfsdk:"custom_reports"` CustomReportsArray []SourceGoogleSearchConsoleCustomReportConfig `tfsdk:"custom_reports_array"` DataState types.String `tfsdk:"data_state"` EndDate types.String `tfsdk:"end_date"` diff --git a/internal/provider/types/source_google_tasks.go b/internal/provider/types/source_google_tasks.go new file mode 100644 index 000000000..1af2039cc --- /dev/null +++ b/internal/provider/types/source_google_tasks.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 SourceGoogleTasks struct { + APIKey types.String `tfsdk:"api_key"` + RecordsLimit types.String `tfsdk:"records_limit"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_guru.go b/internal/provider/types/source_guru.go new file mode 100644 index 000000000..c6fda903c --- /dev/null +++ b/internal/provider/types/source_guru.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 SourceGuru struct { + Password types.String `tfsdk:"password"` + SearchCardsQuery types.String `tfsdk:"search_cards_query"` + StartDate types.String `tfsdk:"start_date"` + TeamID types.String `tfsdk:"team_id"` + Username types.String `tfsdk:"username"` +} diff --git a/internal/provider/types/source_harvest.go b/internal/provider/types/source_harvest.go index ab93dbcff..d03153c3c 100644 --- a/internal/provider/types/source_harvest.go +++ b/internal/provider/types/source_harvest.go @@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type SourceHarvest struct { AccountID types.String `tfsdk:"account_id"` Credentials *SourceHarvestAuthenticationMechanism `tfsdk:"credentials"` - ReplicationEndDate types.String `tfsdk:"replication_end_date"` ReplicationStartDate types.String `tfsdk:"replication_start_date"` } diff --git a/internal/provider/types/source_height.go b/internal/provider/types/source_height.go new file mode 100644 index 000000000..4cb426d4f --- /dev/null +++ b/internal/provider/types/source_height.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 SourceHeight struct { + APIKey types.String `tfsdk:"api_key"` + SearchQuery types.String `tfsdk:"search_query"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_instagram.go b/internal/provider/types/source_instagram.go index 268a1425f..561b70d04 100644 --- a/internal/provider/types/source_instagram.go +++ b/internal/provider/types/source_instagram.go @@ -5,8 +5,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceInstagram struct { - AccessToken types.String `tfsdk:"access_token"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - StartDate types.String `tfsdk:"start_date"` + AccessToken types.String `tfsdk:"access_token"` + StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_jira.go b/internal/provider/types/source_jira.go index bd30ec7a4..3c3bd677f 100644 --- a/internal/provider/types/source_jira.go +++ b/internal/provider/types/source_jira.go @@ -9,11 +9,7 @@ type SourceJira struct { Domain types.String `tfsdk:"domain"` Email types.String `tfsdk:"email"` EnableExperimentalStreams types.Bool `tfsdk:"enable_experimental_streams"` - ExpandIssueChangelog types.Bool `tfsdk:"expand_issue_changelog"` - ExpandIssueTransition types.Bool `tfsdk:"expand_issue_transition"` - IssuesStreamExpandWith []types.String `tfsdk:"issues_stream_expand_with"` LookbackWindowMinutes types.Int64 `tfsdk:"lookback_window_minutes"` Projects []types.String `tfsdk:"projects"` - RenderFields types.Bool `tfsdk:"render_fields"` StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_jotform.go b/internal/provider/types/source_jotform.go new file mode 100644 index 000000000..21fc23120 --- /dev/null +++ b/internal/provider/types/source_jotform.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 SourceJotform struct { + APIEndpoint SourceJotformAPIEndpoint `tfsdk:"api_endpoint"` + APIKey types.String `tfsdk:"api_key"` + EndDate types.String `tfsdk:"end_date"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_jotform_api_endpoint.go b/internal/provider/types/source_jotform_api_endpoint.go new file mode 100644 index 000000000..1ecdc4671 --- /dev/null +++ b/internal/provider/types/source_jotform_api_endpoint.go @@ -0,0 +1,8 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +type SourceJotformAPIEndpoint struct { + Basic *Basic `tfsdk:"basic" tfPlanOnly:"true"` + Enterprise *Enterprise `tfsdk:"enterprise" tfPlanOnly:"true"` +} diff --git a/internal/provider/types/source_kyve.go b/internal/provider/types/source_kyve.go index 8416de888..137c44a2f 100644 --- a/internal/provider/types/source_kyve.go +++ b/internal/provider/types/source_kyve.go @@ -5,8 +5,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceKyve struct { - MaxPages types.Int64 `tfsdk:"max_pages"` - PageSize types.Int64 `tfsdk:"page_size"` PoolIds types.String `tfsdk:"pool_ids"` StartIds types.String `tfsdk:"start_ids"` URLBase types.String `tfsdk:"url_base"` diff --git a/internal/provider/types/source_linkedin_ads.go b/internal/provider/types/source_linkedin_ads.go index b1ac0d589..c343744a9 100644 --- a/internal/provider/types/source_linkedin_ads.go +++ b/internal/provider/types/source_linkedin_ads.go @@ -8,5 +8,6 @@ type SourceLinkedinAds struct { AccountIds []types.Int64 `tfsdk:"account_ids"` AdAnalyticsReports []AdAnalyticsReportConfiguration `tfsdk:"ad_analytics_reports"` Credentials *SourceLinkedinAdsAuthentication `tfsdk:"credentials"` + LookbackWindow types.Int64 `tfsdk:"lookback_window"` StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_mailchimp.go b/internal/provider/types/source_mailchimp.go index 1e3d55f26..fa421106b 100644 --- a/internal/provider/types/source_mailchimp.go +++ b/internal/provider/types/source_mailchimp.go @@ -6,6 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type SourceMailchimp struct { Credentials *SourceMailchimpAuthentication `tfsdk:"credentials"` - DataCenter types.String `tfsdk:"data_center"` StartDate types.String `tfsdk:"start_date"` } 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 index 0bda64ec1..f3fe8b9b0 100644 --- a/internal/provider/types/source_microsoft_onedrive_file_based_stream_config.go +++ b/internal/provider/types/source_microsoft_onedrive_file_based_stream_config.go @@ -10,7 +10,6 @@ type SourceMicrosoftOnedriveFileBasedStreamConfig struct { 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 index 0e0684cb0..2a9793f9b 100644 --- a/internal/provider/types/source_microsoft_onedrive_format.go +++ b/internal/provider/types/source_microsoft_onedrive_format.go @@ -4,7 +4,7 @@ package types type SourceMicrosoftOnedriveFormat struct { AvroFormat *AvroFormat `tfsdk:"avro_format" tfPlanOnly:"true"` - CSVFormat *SourceGoogleDriveCSVFormat `tfsdk:"csv_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_microsoft_sharepoint_file_based_stream_config.go b/internal/provider/types/source_microsoft_sharepoint_file_based_stream_config.go index f9d05a96f..5a158f1ec 100644 --- a/internal/provider/types/source_microsoft_sharepoint_file_based_stream_config.go +++ b/internal/provider/types/source_microsoft_sharepoint_file_based_stream_config.go @@ -10,7 +10,6 @@ type SourceMicrosoftSharepointFileBasedStreamConfig struct { 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 index 864ba2dc5..ffb7896f2 100644 --- a/internal/provider/types/source_microsoft_sharepoint_format.go +++ b/internal/provider/types/source_microsoft_sharepoint_format.go @@ -4,7 +4,7 @@ package types type SourceMicrosoftSharepointFormat struct { AvroFormat *AvroFormat `tfsdk:"avro_format" tfPlanOnly:"true"` - CSVFormat *SourceGoogleDriveCSVFormat `tfsdk:"csv_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"` diff --git a/internal/provider/types/source_mysql.go b/internal/provider/types/source_mysql.go index 22898c19b..faf92ecf7 100644 --- a/internal/provider/types/source_mysql.go +++ b/internal/provider/types/source_mysql.go @@ -11,6 +11,7 @@ type SourceMysql struct { Password types.String `tfsdk:"password"` Port types.Int64 `tfsdk:"port"` ReplicationMethod SourceMysqlUpdateMethod `tfsdk:"replication_method"` + Ssl types.Bool `tfsdk:"ssl"` SslMode *SourceMysqlSSLModes `tfsdk:"ssl_mode"` TunnelMethod *DestinationClickhouseSSHTunnelMethod `tfsdk:"tunnel_method"` Username types.String `tfsdk:"username"` diff --git a/internal/provider/types/source_nylas.go b/internal/provider/types/source_nylas.go new file mode 100644 index 000000000..f2bc3bb3f --- /dev/null +++ b/internal/provider/types/source_nylas.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 SourceNylas struct { + APIKey types.String `tfsdk:"api_key"` + APIServer types.String `tfsdk:"api_server"` + EndDate types.String `tfsdk:"end_date"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_oracle.go b/internal/provider/types/source_oracle.go index e3dc67e0c..854e3a28f 100644 --- a/internal/provider/types/source_oracle.go +++ b/internal/provider/types/source_oracle.go @@ -6,7 +6,7 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type SourceOracle struct { ConnectionData *SourceOracleConnectBy `tfsdk:"connection_data"` - Encryption SourceOracleEncryption `tfsdk:"encryption"` + Encryption *DestinationOracleEncryption `tfsdk:"encryption"` Host types.String `tfsdk:"host"` JdbcURLParams types.String `tfsdk:"jdbc_url_params"` Password types.String `tfsdk:"password"` diff --git a/internal/provider/types/source_picqer.go b/internal/provider/types/source_picqer.go new file mode 100644 index 000000000..cf317ff0c --- /dev/null +++ b/internal/provider/types/source_picqer.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 SourcePicqer struct { + OrganizationName types.String `tfsdk:"organization_name"` + Password types.String `tfsdk:"password"` + StartDate types.String `tfsdk:"start_date"` + Username types.String `tfsdk:"username"` +} diff --git a/internal/provider/types/source_piwik.go b/internal/provider/types/source_piwik.go new file mode 100644 index 000000000..9be5599f8 --- /dev/null +++ b/internal/provider/types/source_piwik.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 SourcePiwik struct { + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + OrganizationID types.String `tfsdk:"organization_id"` +} diff --git a/internal/provider/types/source_productive.go b/internal/provider/types/source_productive.go new file mode 100644 index 000000000..9fac925ec --- /dev/null +++ b/internal/provider/types/source_productive.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 SourceProductive struct { + APIKey types.String `tfsdk:"api_key"` + OrganizationID types.String `tfsdk:"organization_id"` +} diff --git a/internal/provider/types/source_s3.go b/internal/provider/types/source_s3.go index 9427420bd..5a9abdb04 100644 --- a/internal/provider/types/source_s3.go +++ b/internal/provider/types/source_s3.go @@ -8,14 +8,9 @@ type SourceS3 struct { AwsAccessKeyID types.String `tfsdk:"aws_access_key_id"` AwsSecretAccessKey types.String `tfsdk:"aws_secret_access_key"` Bucket types.String `tfsdk:"bucket"` - Dataset types.String `tfsdk:"dataset"` Endpoint types.String `tfsdk:"endpoint"` - Format *SourceS3FileFormat `tfsdk:"format"` - PathPattern types.String `tfsdk:"path_pattern"` - Provider *SourceS3S3AmazonWebServices `tfsdk:"provider"` RegionName types.String `tfsdk:"region_name"` RoleArn types.String `tfsdk:"role_arn"` - Schema types.String `tfsdk:"schema"` StartDate types.String `tfsdk:"start_date"` Streams []SourceS3FileBasedStreamConfig `tfsdk:"streams"` } diff --git a/internal/provider/types/source_s3_file_based_stream_config.go b/internal/provider/types/source_s3_file_based_stream_config.go index f5f628a88..45287411d 100644 --- a/internal/provider/types/source_s3_file_based_stream_config.go +++ b/internal/provider/types/source_s3_file_based_stream_config.go @@ -5,14 +5,12 @@ 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"` + 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"` + 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_file_format.go b/internal/provider/types/source_s3_file_format.go deleted file mode 100644 index 2169ff7e1..000000000 --- a/internal/provider/types/source_s3_file_format.go +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type SourceS3FileFormat struct { - Avro *Fake `tfsdk:"avro" tfPlanOnly:"true"` - Csv *Csv `tfsdk:"csv" tfPlanOnly:"true"` - Jsonl *Jsonl `tfsdk:"jsonl" tfPlanOnly:"true"` - Parquet *Parquet `tfsdk:"parquet" tfPlanOnly:"true"` -} diff --git a/internal/provider/types/source_s3_format.go b/internal/provider/types/source_s3_format.go deleted file mode 100644 index 8611b8a42..000000000 --- a/internal/provider/types/source_s3_format.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type SourceS3Format struct { - AvroFormat *AvroFormat `tfsdk:"avro_format" tfPlanOnly:"true"` - CSVFormat *CSVFormat `tfsdk:"csv_format" tfPlanOnly:"true"` - JsonlFormat *Fake `tfsdk:"jsonl_format" tfPlanOnly:"true"` - ParquetFormat *ParquetFormat `tfsdk:"parquet_format" tfPlanOnly:"true"` - UnstructuredDocumentFormat *DocumentFileTypeFormatExperimental `tfsdk:"unstructured_document_format" tfPlanOnly:"true"` -} diff --git a/internal/provider/types/source_s3_s3_amazon_web_services.go b/internal/provider/types/source_s3_s3_amazon_web_services.go deleted file mode 100644 index 5b87f2b83..000000000 --- a/internal/provider/types/source_s3_s3_amazon_web_services.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type SourceS3S3AmazonWebServices struct { - AwsAccessKeyID types.String `tfsdk:"aws_access_key_id"` - AwsSecretAccessKey types.String `tfsdk:"aws_secret_access_key"` - Bucket types.String `tfsdk:"bucket"` - Endpoint types.String `tfsdk:"endpoint"` - PathPrefix types.String `tfsdk:"path_prefix"` - RegionName types.String `tfsdk:"region_name"` - RoleArn types.String `tfsdk:"role_arn"` - StartDate types.String `tfsdk:"start_date"` -} diff --git a/internal/provider/types/source_senseforce.go b/internal/provider/types/source_senseforce.go index 91cbca7ef..8589b39bf 100644 --- a/internal/provider/types/source_senseforce.go +++ b/internal/provider/types/source_senseforce.go @@ -8,6 +8,5 @@ type SourceSenseforce struct { AccessToken types.String `tfsdk:"access_token"` BackendURL types.String `tfsdk:"backend_url"` DatasetID types.String `tfsdk:"dataset_id"` - SliceRange types.Int64 `tfsdk:"slice_range"` StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_sftp_bulk_authentication.go b/internal/provider/types/source_sftp_bulk_authentication.go index 27b246491..eff727995 100644 --- a/internal/provider/types/source_sftp_bulk_authentication.go +++ b/internal/provider/types/source_sftp_bulk_authentication.go @@ -3,6 +3,6 @@ package types type SourceSftpBulkAuthentication struct { - AuthenticateViaPassword *UsernameAndPassword `tfsdk:"authenticate_via_password" tfPlanOnly:"true"` - AuthenticateViaPrivateKey *AuthenticateViaPrivateKey `tfsdk:"authenticate_via_private_key" tfPlanOnly:"true"` + AuthenticateViaPassword *DestinationPgvectorCredentials `tfsdk:"authenticate_via_password" tfPlanOnly:"true"` + AuthenticateViaPrivateKey *AuthenticateViaPrivateKey `tfsdk:"authenticate_via_private_key" tfPlanOnly:"true"` } diff --git a/internal/provider/types/source_shortcut.go b/internal/provider/types/source_shortcut.go new file mode 100644 index 000000000..f04d90177 --- /dev/null +++ b/internal/provider/types/source_shortcut.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 SourceShortcut struct { + APIKey2 types.String `tfsdk:"api_key_2"` + Query types.String `tfsdk:"query"` + StartDate types.String `tfsdk:"start_date"` +} diff --git a/internal/provider/types/source_smartsheets.go b/internal/provider/types/source_smartsheets.go index 62bb0b174..a96390e1d 100644 --- a/internal/provider/types/source_smartsheets.go +++ b/internal/provider/types/source_smartsheets.go @@ -8,5 +8,4 @@ type SourceSmartsheets struct { Credentials SourceSmartsheetsAuthorizationMethod `tfsdk:"credentials"` MetadataFields []types.String `tfsdk:"metadata_fields"` SpreadsheetID types.String `tfsdk:"spreadsheet_id"` - StartDatetime types.String `tfsdk:"start_datetime"` } diff --git a/internal/provider/types/source_teamwork.go b/internal/provider/types/source_teamwork.go new file mode 100644 index 000000000..5bd305d7f --- /dev/null +++ b/internal/provider/types/source_teamwork.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 SourceTeamwork struct { + Password types.String `tfsdk:"password"` + SiteName types.String `tfsdk:"site_name"` + StartDate types.String `tfsdk:"start_date"` + Username types.String `tfsdk:"username"` +} diff --git a/internal/provider/types/source_when_i_work.go b/internal/provider/types/source_when_i_work.go new file mode 100644 index 000000000..54bb5ebae --- /dev/null +++ b/internal/provider/types/source_when_i_work.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 SourceWhenIWork struct { + Email types.String `tfsdk:"email"` + Password types.String `tfsdk:"password"` +} diff --git a/internal/provider/types/source_zendesk_support.go b/internal/provider/types/source_zendesk_support.go index 64856477d..45ae94702 100644 --- a/internal/provider/types/source_zendesk_support.go +++ b/internal/provider/types/source_zendesk_support.go @@ -5,8 +5,7 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceZendeskSupport struct { - Credentials *SourceZendeskSupportAuthentication `tfsdk:"credentials"` - IgnorePagination types.Bool `tfsdk:"ignore_pagination"` - StartDate types.String `tfsdk:"start_date"` - Subdomain types.String `tfsdk:"subdomain"` + Credentials *SourceZendeskSupportAuthentication `tfsdk:"credentials"` + StartDate types.String `tfsdk:"start_date"` + Subdomain types.String `tfsdk:"subdomain"` } diff --git a/internal/provider/types/standalone_mongo_db_instance.go b/internal/provider/types/standalone_mongo_db_instance.go index 64878fd87..b6db03566 100644 --- a/internal/provider/types/standalone_mongo_db_instance.go +++ b/internal/provider/types/standalone_mongo_db_instance.go @@ -8,4 +8,5 @@ type StandaloneMongoDbInstance struct { Host types.String `tfsdk:"host"` Instance types.String `tfsdk:"instance"` Port types.Int64 `tfsdk:"port"` + TLS types.Bool `tfsdk:"tls"` } diff --git a/internal/sdk/destinations.go b/internal/sdk/destinations.go index 953088084..1932cd43d 100644 --- a/internal/sdk/destinations.go +++ b/internal/sdk/destinations.go @@ -1117,12 +1117,12 @@ func (s *Destinations) CreateDestinationDatabricks(ctx context.Context, request } -// CreateDestinationDevNull - Create a destination +// CreateDestinationDuckdb - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationDevNull(ctx context.Context, request *shared.DestinationDevNullCreateRequest, opts ...operations.Option) (*operations.CreateDestinationDevNullResponse, error) { +func (s *Destinations) CreateDestinationDuckdb(ctx context.Context, request *shared.DestinationDuckdbCreateRequest, opts ...operations.Option) (*operations.CreateDestinationDuckdbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationDevNull", + OperationID: "createDestinationDuckdb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1201,7 +1201,7 @@ func (s *Destinations) CreateDestinationDevNull(ctx context.Context, request *sh } } - res := &operations.CreateDestinationDevNullResponse{ + res := &operations.CreateDestinationDuckdbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1238,12 +1238,12 @@ func (s *Destinations) CreateDestinationDevNull(ctx context.Context, request *sh } -// CreateDestinationDuckdb - Create a destination +// CreateDestinationDynamodb - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationDuckdb(ctx context.Context, request *shared.DestinationDuckdbCreateRequest, opts ...operations.Option) (*operations.CreateDestinationDuckdbResponse, error) { +func (s *Destinations) CreateDestinationDynamodb(ctx context.Context, request *shared.DestinationDynamodbCreateRequest, opts ...operations.Option) (*operations.CreateDestinationDynamodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationDuckdb", + OperationID: "createDestinationDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1322,7 +1322,7 @@ func (s *Destinations) CreateDestinationDuckdb(ctx context.Context, request *sha } } - res := &operations.CreateDestinationDuckdbResponse{ + res := &operations.CreateDestinationDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1359,12 +1359,12 @@ func (s *Destinations) CreateDestinationDuckdb(ctx context.Context, request *sha } -// CreateDestinationDynamodb - Create a destination +// CreateDestinationElasticsearch - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationDynamodb(ctx context.Context, request *shared.DestinationDynamodbCreateRequest, opts ...operations.Option) (*operations.CreateDestinationDynamodbResponse, error) { +func (s *Destinations) CreateDestinationElasticsearch(ctx context.Context, request *shared.DestinationElasticsearchCreateRequest, opts ...operations.Option) (*operations.CreateDestinationElasticsearchResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationDynamodb", + OperationID: "createDestinationElasticsearch", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1443,7 +1443,7 @@ func (s *Destinations) CreateDestinationDynamodb(ctx context.Context, request *s } } - res := &operations.CreateDestinationDynamodbResponse{ + res := &operations.CreateDestinationElasticsearchResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1480,12 +1480,12 @@ func (s *Destinations) CreateDestinationDynamodb(ctx context.Context, request *s } -// CreateDestinationElasticsearch - Create a destination +// CreateDestinationFirebolt - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationElasticsearch(ctx context.Context, request *shared.DestinationElasticsearchCreateRequest, opts ...operations.Option) (*operations.CreateDestinationElasticsearchResponse, error) { +func (s *Destinations) CreateDestinationFirebolt(ctx context.Context, request *shared.DestinationFireboltCreateRequest, opts ...operations.Option) (*operations.CreateDestinationFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationElasticsearch", + OperationID: "createDestinationFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1564,7 +1564,7 @@ func (s *Destinations) CreateDestinationElasticsearch(ctx context.Context, reque } } - res := &operations.CreateDestinationElasticsearchResponse{ + res := &operations.CreateDestinationFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1601,12 +1601,12 @@ func (s *Destinations) CreateDestinationElasticsearch(ctx context.Context, reque } -// CreateDestinationFirebolt - Create a destination +// CreateDestinationFirestore - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationFirebolt(ctx context.Context, request *shared.DestinationFireboltCreateRequest, opts ...operations.Option) (*operations.CreateDestinationFireboltResponse, error) { +func (s *Destinations) CreateDestinationFirestore(ctx context.Context, request *shared.DestinationFirestoreCreateRequest, opts ...operations.Option) (*operations.CreateDestinationFirestoreResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationFirebolt", + OperationID: "createDestinationFirestore", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1685,7 +1685,7 @@ func (s *Destinations) CreateDestinationFirebolt(ctx context.Context, request *s } } - res := &operations.CreateDestinationFireboltResponse{ + res := &operations.CreateDestinationFirestoreResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1722,12 +1722,12 @@ func (s *Destinations) CreateDestinationFirebolt(ctx context.Context, request *s } -// CreateDestinationFirestore - Create a destination +// CreateDestinationGcs - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationFirestore(ctx context.Context, request *shared.DestinationFirestoreCreateRequest, opts ...operations.Option) (*operations.CreateDestinationFirestoreResponse, error) { +func (s *Destinations) CreateDestinationGcs(ctx context.Context, request *shared.DestinationGcsCreateRequest, opts ...operations.Option) (*operations.CreateDestinationGcsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationFirestore", + OperationID: "createDestinationGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1806,7 +1806,7 @@ func (s *Destinations) CreateDestinationFirestore(ctx context.Context, request * } } - res := &operations.CreateDestinationFirestoreResponse{ + res := &operations.CreateDestinationGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1843,12 +1843,12 @@ func (s *Destinations) CreateDestinationFirestore(ctx context.Context, request * } -// CreateDestinationGcs - Create a destination +// CreateDestinationGoogleSheets - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. -func (s *Destinations) CreateDestinationGcs(ctx context.Context, request *shared.DestinationGcsCreateRequest, opts ...operations.Option) (*operations.CreateDestinationGcsResponse, error) { +func (s *Destinations) CreateDestinationGoogleSheets(ctx context.Context, request *shared.DestinationGoogleSheetsCreateRequest, opts ...operations.Option) (*operations.CreateDestinationGoogleSheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationGcs", + OperationID: "createDestinationGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1927,7 +1927,7 @@ func (s *Destinations) CreateDestinationGcs(ctx context.Context, request *shared } } - res := &operations.CreateDestinationGcsResponse{ + res := &operations.CreateDestinationGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1964,12 +1964,12 @@ func (s *Destinations) CreateDestinationGcs(ctx context.Context, request *shared } -// CreateDestinationGoogleSheets - 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) CreateDestinationGoogleSheets(ctx context.Context, request *shared.DestinationGoogleSheetsCreateRequest, opts ...operations.Option) (*operations.CreateDestinationGoogleSheetsResponse, error) { +func (s *Destinations) CreateDestinationMilvus(ctx context.Context, request *shared.DestinationMilvusCreateRequest, opts ...operations.Option) (*operations.CreateDestinationMilvusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationGoogleSheets", + OperationID: "createDestinationMilvus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2048,7 +2048,7 @@ func (s *Destinations) CreateDestinationGoogleSheets(ctx context.Context, reques } } - res := &operations.CreateDestinationGoogleSheetsResponse{ + res := &operations.CreateDestinationMilvusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2085,12 +2085,12 @@ func (s *Destinations) CreateDestinationGoogleSheets(ctx context.Context, reques } -// 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, } @@ -2169,7 +2169,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, @@ -2206,12 +2206,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, } @@ -2290,7 +2290,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, @@ -2327,12 +2327,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, } @@ -2411,7 +2411,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, @@ -2448,12 +2448,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, } @@ -2532,7 +2532,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, @@ -2569,12 +2569,12 @@ func (s *Destinations) CreateDestinationMysql(ctx context.Context, request *shar } -// CreateDestinationOracle - Create a destination +// CreateDestinationPgvector - 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) CreateDestinationPgvector(ctx context.Context, request *shared.DestinationPgvectorCreateRequest, opts ...operations.Option) (*operations.CreateDestinationPgvectorResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createDestinationOracle", + OperationID: "createDestinationPgvector", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2653,7 +2653,7 @@ func (s *Destinations) CreateDestinationOracle(ctx context.Context, request *sha } } - res := &operations.CreateDestinationOracleResponse{ + res := &operations.CreateDestinationPgvectorResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5683,11 +5683,11 @@ func (s *Destinations) DeleteDestinationDatabricks(ctx context.Context, request } -// DeleteDestinationDevNull - Delete a Destination -func (s *Destinations) DeleteDestinationDevNull(ctx context.Context, request operations.DeleteDestinationDevNullRequest, opts ...operations.Option) (*operations.DeleteDestinationDevNullResponse, error) { +// DeleteDestinationDuckdb - Delete a Destination +func (s *Destinations) DeleteDestinationDuckdb(ctx context.Context, request operations.DeleteDestinationDuckdbRequest, opts ...operations.Option) (*operations.DeleteDestinationDuckdbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationDevNull", + OperationID: "deleteDestinationDuckdb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5760,7 +5760,7 @@ func (s *Destinations) DeleteDestinationDevNull(ctx context.Context, request ope } } - res := &operations.DeleteDestinationDevNullResponse{ + res := &operations.DeleteDestinationDuckdbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5787,11 +5787,11 @@ func (s *Destinations) DeleteDestinationDevNull(ctx context.Context, request ope } -// DeleteDestinationDuckdb - Delete a Destination -func (s *Destinations) DeleteDestinationDuckdb(ctx context.Context, request operations.DeleteDestinationDuckdbRequest, opts ...operations.Option) (*operations.DeleteDestinationDuckdbResponse, error) { +// DeleteDestinationDynamodb - Delete a Destination +func (s *Destinations) DeleteDestinationDynamodb(ctx context.Context, request operations.DeleteDestinationDynamodbRequest, opts ...operations.Option) (*operations.DeleteDestinationDynamodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationDuckdb", + OperationID: "deleteDestinationDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5864,7 +5864,7 @@ func (s *Destinations) DeleteDestinationDuckdb(ctx context.Context, request oper } } - res := &operations.DeleteDestinationDuckdbResponse{ + res := &operations.DeleteDestinationDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5891,11 +5891,11 @@ func (s *Destinations) DeleteDestinationDuckdb(ctx context.Context, request oper } -// DeleteDestinationDynamodb - Delete a Destination -func (s *Destinations) DeleteDestinationDynamodb(ctx context.Context, request operations.DeleteDestinationDynamodbRequest, opts ...operations.Option) (*operations.DeleteDestinationDynamodbResponse, error) { +// DeleteDestinationElasticsearch - Delete a Destination +func (s *Destinations) DeleteDestinationElasticsearch(ctx context.Context, request operations.DeleteDestinationElasticsearchRequest, opts ...operations.Option) (*operations.DeleteDestinationElasticsearchResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationDynamodb", + OperationID: "deleteDestinationElasticsearch", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5968,7 +5968,7 @@ func (s *Destinations) DeleteDestinationDynamodb(ctx context.Context, request op } } - res := &operations.DeleteDestinationDynamodbResponse{ + res := &operations.DeleteDestinationElasticsearchResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5995,11 +5995,11 @@ func (s *Destinations) DeleteDestinationDynamodb(ctx context.Context, request op } -// DeleteDestinationElasticsearch - Delete a Destination -func (s *Destinations) DeleteDestinationElasticsearch(ctx context.Context, request operations.DeleteDestinationElasticsearchRequest, opts ...operations.Option) (*operations.DeleteDestinationElasticsearchResponse, error) { +// DeleteDestinationFirebolt - Delete a Destination +func (s *Destinations) DeleteDestinationFirebolt(ctx context.Context, request operations.DeleteDestinationFireboltRequest, opts ...operations.Option) (*operations.DeleteDestinationFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationElasticsearch", + OperationID: "deleteDestinationFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6072,7 +6072,7 @@ func (s *Destinations) DeleteDestinationElasticsearch(ctx context.Context, reque } } - res := &operations.DeleteDestinationElasticsearchResponse{ + res := &operations.DeleteDestinationFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6099,11 +6099,11 @@ func (s *Destinations) DeleteDestinationElasticsearch(ctx context.Context, reque } -// DeleteDestinationFirebolt - Delete a Destination -func (s *Destinations) DeleteDestinationFirebolt(ctx context.Context, request operations.DeleteDestinationFireboltRequest, opts ...operations.Option) (*operations.DeleteDestinationFireboltResponse, error) { +// DeleteDestinationFirestore - Delete a Destination +func (s *Destinations) DeleteDestinationFirestore(ctx context.Context, request operations.DeleteDestinationFirestoreRequest, opts ...operations.Option) (*operations.DeleteDestinationFirestoreResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationFirebolt", + OperationID: "deleteDestinationFirestore", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6176,7 +6176,7 @@ func (s *Destinations) DeleteDestinationFirebolt(ctx context.Context, request op } } - res := &operations.DeleteDestinationFireboltResponse{ + res := &operations.DeleteDestinationFirestoreResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6203,11 +6203,11 @@ func (s *Destinations) DeleteDestinationFirebolt(ctx context.Context, request op } -// DeleteDestinationFirestore - Delete a Destination -func (s *Destinations) DeleteDestinationFirestore(ctx context.Context, request operations.DeleteDestinationFirestoreRequest, opts ...operations.Option) (*operations.DeleteDestinationFirestoreResponse, error) { +// DeleteDestinationGcs - Delete a Destination +func (s *Destinations) DeleteDestinationGcs(ctx context.Context, request operations.DeleteDestinationGcsRequest, opts ...operations.Option) (*operations.DeleteDestinationGcsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationFirestore", + OperationID: "deleteDestinationGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6280,7 +6280,7 @@ func (s *Destinations) DeleteDestinationFirestore(ctx context.Context, request o } } - res := &operations.DeleteDestinationFirestoreResponse{ + res := &operations.DeleteDestinationGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6307,11 +6307,11 @@ func (s *Destinations) DeleteDestinationFirestore(ctx context.Context, request o } -// DeleteDestinationGcs - Delete a Destination -func (s *Destinations) DeleteDestinationGcs(ctx context.Context, request operations.DeleteDestinationGcsRequest, opts ...operations.Option) (*operations.DeleteDestinationGcsResponse, error) { +// DeleteDestinationGoogleSheets - Delete a Destination +func (s *Destinations) DeleteDestinationGoogleSheets(ctx context.Context, request operations.DeleteDestinationGoogleSheetsRequest, opts ...operations.Option) (*operations.DeleteDestinationGoogleSheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationGcs", + OperationID: "deleteDestinationGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6384,7 +6384,7 @@ func (s *Destinations) DeleteDestinationGcs(ctx context.Context, request operati } } - res := &operations.DeleteDestinationGcsResponse{ + res := &operations.DeleteDestinationGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6411,11 +6411,11 @@ func (s *Destinations) DeleteDestinationGcs(ctx context.Context, request operati } -// DeleteDestinationGoogleSheets - Delete a Destination -func (s *Destinations) DeleteDestinationGoogleSheets(ctx context.Context, request operations.DeleteDestinationGoogleSheetsRequest, opts ...operations.Option) (*operations.DeleteDestinationGoogleSheetsResponse, error) { +// DeleteDestinationMilvus - Delete a Destination +func (s *Destinations) DeleteDestinationMilvus(ctx context.Context, request operations.DeleteDestinationMilvusRequest, opts ...operations.Option) (*operations.DeleteDestinationMilvusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationGoogleSheets", + OperationID: "deleteDestinationMilvus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6488,7 +6488,7 @@ func (s *Destinations) DeleteDestinationGoogleSheets(ctx context.Context, reques } } - res := &operations.DeleteDestinationGoogleSheetsResponse{ + res := &operations.DeleteDestinationMilvusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6515,11 +6515,11 @@ func (s *Destinations) DeleteDestinationGoogleSheets(ctx context.Context, reques } -// DeleteDestinationMilvus - Delete a Destination -func (s *Destinations) DeleteDestinationMilvus(ctx context.Context, request operations.DeleteDestinationMilvusRequest, opts ...operations.Option) (*operations.DeleteDestinationMilvusResponse, error) { +// DeleteDestinationMongodb - Delete a Destination +func (s *Destinations) DeleteDestinationMongodb(ctx context.Context, request operations.DeleteDestinationMongodbRequest, opts ...operations.Option) (*operations.DeleteDestinationMongodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationMilvus", + OperationID: "deleteDestinationMongodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6592,7 +6592,7 @@ func (s *Destinations) DeleteDestinationMilvus(ctx context.Context, request oper } } - res := &operations.DeleteDestinationMilvusResponse{ + res := &operations.DeleteDestinationMongodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6619,11 +6619,11 @@ func (s *Destinations) DeleteDestinationMilvus(ctx context.Context, request oper } -// DeleteDestinationMongodb - Delete a Destination -func (s *Destinations) DeleteDestinationMongodb(ctx context.Context, request operations.DeleteDestinationMongodbRequest, opts ...operations.Option) (*operations.DeleteDestinationMongodbResponse, error) { +// DeleteDestinationMssql - Delete a Destination +func (s *Destinations) DeleteDestinationMssql(ctx context.Context, request operations.DeleteDestinationMssqlRequest, opts ...operations.Option) (*operations.DeleteDestinationMssqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationMongodb", + OperationID: "deleteDestinationMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6696,7 +6696,7 @@ func (s *Destinations) DeleteDestinationMongodb(ctx context.Context, request ope } } - res := &operations.DeleteDestinationMongodbResponse{ + res := &operations.DeleteDestinationMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6723,11 +6723,11 @@ func (s *Destinations) DeleteDestinationMongodb(ctx context.Context, request ope } -// DeleteDestinationMssql - Delete a Destination -func (s *Destinations) DeleteDestinationMssql(ctx context.Context, request operations.DeleteDestinationMssqlRequest, opts ...operations.Option) (*operations.DeleteDestinationMssqlResponse, error) { +// DeleteDestinationMysql - Delete a Destination +func (s *Destinations) DeleteDestinationMysql(ctx context.Context, request operations.DeleteDestinationMysqlRequest, opts ...operations.Option) (*operations.DeleteDestinationMysqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationMssql", + OperationID: "deleteDestinationMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6800,7 +6800,7 @@ func (s *Destinations) DeleteDestinationMssql(ctx context.Context, request opera } } - res := &operations.DeleteDestinationMssqlResponse{ + res := &operations.DeleteDestinationMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6827,11 +6827,11 @@ func (s *Destinations) DeleteDestinationMssql(ctx context.Context, request opera } -// DeleteDestinationMysql - Delete a Destination -func (s *Destinations) DeleteDestinationMysql(ctx context.Context, request operations.DeleteDestinationMysqlRequest, opts ...operations.Option) (*operations.DeleteDestinationMysqlResponse, error) { +// DeleteDestinationOracle - Delete a Destination +func (s *Destinations) DeleteDestinationOracle(ctx context.Context, request operations.DeleteDestinationOracleRequest, opts ...operations.Option) (*operations.DeleteDestinationOracleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationMysql", + OperationID: "deleteDestinationOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6904,7 +6904,7 @@ func (s *Destinations) DeleteDestinationMysql(ctx context.Context, request opera } } - res := &operations.DeleteDestinationMysqlResponse{ + res := &operations.DeleteDestinationOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6931,11 +6931,11 @@ func (s *Destinations) DeleteDestinationMysql(ctx context.Context, request opera } -// DeleteDestinationOracle - Delete a Destination -func (s *Destinations) DeleteDestinationOracle(ctx context.Context, request operations.DeleteDestinationOracleRequest, opts ...operations.Option) (*operations.DeleteDestinationOracleResponse, error) { +// DeleteDestinationPgvector - Delete a Destination +func (s *Destinations) DeleteDestinationPgvector(ctx context.Context, request operations.DeleteDestinationPgvectorRequest, opts ...operations.Option) (*operations.DeleteDestinationPgvectorResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteDestinationOracle", + OperationID: "deleteDestinationPgvector", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7008,7 +7008,7 @@ func (s *Destinations) DeleteDestinationOracle(ctx context.Context, request oper } } - res := &operations.DeleteDestinationOracleResponse{ + res := &operations.DeleteDestinationPgvectorResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9829,11 +9829,11 @@ func (s *Destinations) GetDestinationDatabricks(ctx context.Context, request ope } -// GetDestinationDevNull - Get Destination details -func (s *Destinations) GetDestinationDevNull(ctx context.Context, request operations.GetDestinationDevNullRequest, opts ...operations.Option) (*operations.GetDestinationDevNullResponse, error) { +// GetDestinationDuckdb - Get Destination details +func (s *Destinations) GetDestinationDuckdb(ctx context.Context, request operations.GetDestinationDuckdbRequest, opts ...operations.Option) (*operations.GetDestinationDuckdbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationDevNull", + OperationID: "getDestinationDuckdb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9906,7 +9906,7 @@ func (s *Destinations) GetDestinationDevNull(ctx context.Context, request operat } } - res := &operations.GetDestinationDevNullResponse{ + res := &operations.GetDestinationDuckdbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9943,11 +9943,11 @@ func (s *Destinations) GetDestinationDevNull(ctx context.Context, request operat } -// GetDestinationDuckdb - Get Destination details -func (s *Destinations) GetDestinationDuckdb(ctx context.Context, request operations.GetDestinationDuckdbRequest, opts ...operations.Option) (*operations.GetDestinationDuckdbResponse, error) { +// GetDestinationDynamodb - Get Destination details +func (s *Destinations) GetDestinationDynamodb(ctx context.Context, request operations.GetDestinationDynamodbRequest, opts ...operations.Option) (*operations.GetDestinationDynamodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationDuckdb", + OperationID: "getDestinationDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10020,7 +10020,7 @@ func (s *Destinations) GetDestinationDuckdb(ctx context.Context, request operati } } - res := &operations.GetDestinationDuckdbResponse{ + res := &operations.GetDestinationDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10057,11 +10057,11 @@ func (s *Destinations) GetDestinationDuckdb(ctx context.Context, request operati } -// GetDestinationDynamodb - Get Destination details -func (s *Destinations) GetDestinationDynamodb(ctx context.Context, request operations.GetDestinationDynamodbRequest, opts ...operations.Option) (*operations.GetDestinationDynamodbResponse, error) { +// GetDestinationElasticsearch - Get Destination details +func (s *Destinations) GetDestinationElasticsearch(ctx context.Context, request operations.GetDestinationElasticsearchRequest, opts ...operations.Option) (*operations.GetDestinationElasticsearchResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationDynamodb", + OperationID: "getDestinationElasticsearch", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10134,7 +10134,7 @@ func (s *Destinations) GetDestinationDynamodb(ctx context.Context, request opera } } - res := &operations.GetDestinationDynamodbResponse{ + res := &operations.GetDestinationElasticsearchResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10171,11 +10171,11 @@ func (s *Destinations) GetDestinationDynamodb(ctx context.Context, request opera } -// GetDestinationElasticsearch - Get Destination details -func (s *Destinations) GetDestinationElasticsearch(ctx context.Context, request operations.GetDestinationElasticsearchRequest, opts ...operations.Option) (*operations.GetDestinationElasticsearchResponse, error) { +// GetDestinationFirebolt - Get Destination details +func (s *Destinations) GetDestinationFirebolt(ctx context.Context, request operations.GetDestinationFireboltRequest, opts ...operations.Option) (*operations.GetDestinationFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationElasticsearch", + OperationID: "getDestinationFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10248,7 +10248,7 @@ func (s *Destinations) GetDestinationElasticsearch(ctx context.Context, request } } - res := &operations.GetDestinationElasticsearchResponse{ + res := &operations.GetDestinationFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10285,11 +10285,11 @@ func (s *Destinations) GetDestinationElasticsearch(ctx context.Context, request } -// GetDestinationFirebolt - Get Destination details -func (s *Destinations) GetDestinationFirebolt(ctx context.Context, request operations.GetDestinationFireboltRequest, opts ...operations.Option) (*operations.GetDestinationFireboltResponse, error) { +// GetDestinationFirestore - Get Destination details +func (s *Destinations) GetDestinationFirestore(ctx context.Context, request operations.GetDestinationFirestoreRequest, opts ...operations.Option) (*operations.GetDestinationFirestoreResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationFirebolt", + OperationID: "getDestinationFirestore", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10362,7 +10362,7 @@ func (s *Destinations) GetDestinationFirebolt(ctx context.Context, request opera } } - res := &operations.GetDestinationFireboltResponse{ + res := &operations.GetDestinationFirestoreResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10399,11 +10399,11 @@ func (s *Destinations) GetDestinationFirebolt(ctx context.Context, request opera } -// GetDestinationFirestore - Get Destination details -func (s *Destinations) GetDestinationFirestore(ctx context.Context, request operations.GetDestinationFirestoreRequest, opts ...operations.Option) (*operations.GetDestinationFirestoreResponse, error) { +// GetDestinationGcs - Get Destination details +func (s *Destinations) GetDestinationGcs(ctx context.Context, request operations.GetDestinationGcsRequest, opts ...operations.Option) (*operations.GetDestinationGcsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationFirestore", + OperationID: "getDestinationGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10476,7 +10476,7 @@ func (s *Destinations) GetDestinationFirestore(ctx context.Context, request oper } } - res := &operations.GetDestinationFirestoreResponse{ + res := &operations.GetDestinationGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10513,11 +10513,11 @@ func (s *Destinations) GetDestinationFirestore(ctx context.Context, request oper } -// GetDestinationGcs - Get Destination details -func (s *Destinations) GetDestinationGcs(ctx context.Context, request operations.GetDestinationGcsRequest, opts ...operations.Option) (*operations.GetDestinationGcsResponse, error) { +// GetDestinationGoogleSheets - Get Destination details +func (s *Destinations) GetDestinationGoogleSheets(ctx context.Context, request operations.GetDestinationGoogleSheetsRequest, opts ...operations.Option) (*operations.GetDestinationGoogleSheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationGcs", + OperationID: "getDestinationGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10590,7 +10590,7 @@ func (s *Destinations) GetDestinationGcs(ctx context.Context, request operations } } - res := &operations.GetDestinationGcsResponse{ + res := &operations.GetDestinationGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10627,11 +10627,11 @@ func (s *Destinations) GetDestinationGcs(ctx context.Context, request operations } -// GetDestinationGoogleSheets - Get Destination details -func (s *Destinations) GetDestinationGoogleSheets(ctx context.Context, request operations.GetDestinationGoogleSheetsRequest, opts ...operations.Option) (*operations.GetDestinationGoogleSheetsResponse, 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: "getDestinationGoogleSheets", + OperationID: "getDestinationMilvus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10704,7 +10704,7 @@ func (s *Destinations) GetDestinationGoogleSheets(ctx context.Context, request o } } - res := &operations.GetDestinationGoogleSheetsResponse{ + res := &operations.GetDestinationMilvusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10741,11 +10741,11 @@ func (s *Destinations) GetDestinationGoogleSheets(ctx context.Context, request o } -// 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, } @@ -10818,7 +10818,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, @@ -10855,11 +10855,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, } @@ -10932,7 +10932,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, @@ -10969,11 +10969,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, } @@ -11046,7 +11046,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, @@ -11083,11 +11083,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, } @@ -11160,7 +11160,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, @@ -11197,11 +11197,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) { +// GetDestinationPgvector - Get Destination details +func (s *Destinations) GetDestinationPgvector(ctx context.Context, request operations.GetDestinationPgvectorRequest, opts ...operations.Option) (*operations.GetDestinationPgvectorResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getDestinationOracle", + OperationID: "getDestinationPgvector", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11274,7 +11274,7 @@ func (s *Destinations) GetDestinationOracle(ctx context.Context, request operati } } - res := &operations.GetDestinationOracleResponse{ + res := &operations.GetDestinationPgvectorResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14487,11 +14487,11 @@ func (s *Destinations) PutDestinationDatabricks(ctx context.Context, request ope } -// PutDestinationDevNull - Update a Destination fully -func (s *Destinations) PutDestinationDevNull(ctx context.Context, request operations.PutDestinationDevNullRequest, opts ...operations.Option) (*operations.PutDestinationDevNullResponse, error) { +// PutDestinationDuckdb - Update a Destination fully +func (s *Destinations) PutDestinationDuckdb(ctx context.Context, request operations.PutDestinationDuckdbRequest, opts ...operations.Option) (*operations.PutDestinationDuckdbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationDevNull", + OperationID: "putDestinationDuckdb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14513,7 +14513,7 @@ func (s *Destinations) PutDestinationDevNull(ctx context.Context, request operat return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationDevNullPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationDuckdbPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -14570,7 +14570,7 @@ func (s *Destinations) PutDestinationDevNull(ctx context.Context, request operat } } - res := &operations.PutDestinationDevNullResponse{ + res := &operations.PutDestinationDuckdbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14597,11 +14597,11 @@ func (s *Destinations) PutDestinationDevNull(ctx context.Context, request operat } -// PutDestinationDuckdb - Update a Destination fully -func (s *Destinations) PutDestinationDuckdb(ctx context.Context, request operations.PutDestinationDuckdbRequest, opts ...operations.Option) (*operations.PutDestinationDuckdbResponse, error) { +// PutDestinationDynamodb - Update a Destination fully +func (s *Destinations) PutDestinationDynamodb(ctx context.Context, request operations.PutDestinationDynamodbRequest, opts ...operations.Option) (*operations.PutDestinationDynamodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationDuckdb", + OperationID: "putDestinationDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14623,7 +14623,7 @@ func (s *Destinations) PutDestinationDuckdb(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationDuckdbPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationDynamodbPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -14680,7 +14680,7 @@ func (s *Destinations) PutDestinationDuckdb(ctx context.Context, request operati } } - res := &operations.PutDestinationDuckdbResponse{ + res := &operations.PutDestinationDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14707,11 +14707,11 @@ func (s *Destinations) PutDestinationDuckdb(ctx context.Context, request operati } -// PutDestinationDynamodb - Update a Destination fully -func (s *Destinations) PutDestinationDynamodb(ctx context.Context, request operations.PutDestinationDynamodbRequest, opts ...operations.Option) (*operations.PutDestinationDynamodbResponse, error) { +// PutDestinationElasticsearch - Update a Destination fully +func (s *Destinations) PutDestinationElasticsearch(ctx context.Context, request operations.PutDestinationElasticsearchRequest, opts ...operations.Option) (*operations.PutDestinationElasticsearchResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationDynamodb", + OperationID: "putDestinationElasticsearch", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14733,7 +14733,7 @@ func (s *Destinations) PutDestinationDynamodb(ctx context.Context, request opera return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationDynamodbPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationElasticsearchPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -14790,7 +14790,7 @@ func (s *Destinations) PutDestinationDynamodb(ctx context.Context, request opera } } - res := &operations.PutDestinationDynamodbResponse{ + res := &operations.PutDestinationElasticsearchResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14817,11 +14817,11 @@ func (s *Destinations) PutDestinationDynamodb(ctx context.Context, request opera } -// PutDestinationElasticsearch - Update a Destination fully -func (s *Destinations) PutDestinationElasticsearch(ctx context.Context, request operations.PutDestinationElasticsearchRequest, opts ...operations.Option) (*operations.PutDestinationElasticsearchResponse, error) { +// PutDestinationFirebolt - Update a Destination fully +func (s *Destinations) PutDestinationFirebolt(ctx context.Context, request operations.PutDestinationFireboltRequest, opts ...operations.Option) (*operations.PutDestinationFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationElasticsearch", + OperationID: "putDestinationFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14843,7 +14843,7 @@ func (s *Destinations) PutDestinationElasticsearch(ctx context.Context, request return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationElasticsearchPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationFireboltPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -14900,7 +14900,7 @@ func (s *Destinations) PutDestinationElasticsearch(ctx context.Context, request } } - res := &operations.PutDestinationElasticsearchResponse{ + res := &operations.PutDestinationFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14927,11 +14927,11 @@ func (s *Destinations) PutDestinationElasticsearch(ctx context.Context, request } -// PutDestinationFirebolt - Update a Destination fully -func (s *Destinations) PutDestinationFirebolt(ctx context.Context, request operations.PutDestinationFireboltRequest, opts ...operations.Option) (*operations.PutDestinationFireboltResponse, error) { +// PutDestinationFirestore - Update a Destination fully +func (s *Destinations) PutDestinationFirestore(ctx context.Context, request operations.PutDestinationFirestoreRequest, opts ...operations.Option) (*operations.PutDestinationFirestoreResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationFirebolt", + OperationID: "putDestinationFirestore", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14953,7 +14953,7 @@ func (s *Destinations) PutDestinationFirebolt(ctx context.Context, request opera return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationFireboltPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationFirestorePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -15010,7 +15010,7 @@ func (s *Destinations) PutDestinationFirebolt(ctx context.Context, request opera } } - res := &operations.PutDestinationFireboltResponse{ + res := &operations.PutDestinationFirestoreResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15037,11 +15037,11 @@ func (s *Destinations) PutDestinationFirebolt(ctx context.Context, request opera } -// PutDestinationFirestore - Update a Destination fully -func (s *Destinations) PutDestinationFirestore(ctx context.Context, request operations.PutDestinationFirestoreRequest, opts ...operations.Option) (*operations.PutDestinationFirestoreResponse, error) { +// PutDestinationGcs - Update a Destination fully +func (s *Destinations) PutDestinationGcs(ctx context.Context, request operations.PutDestinationGcsRequest, opts ...operations.Option) (*operations.PutDestinationGcsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationFirestore", + OperationID: "putDestinationGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15063,7 +15063,7 @@ func (s *Destinations) PutDestinationFirestore(ctx context.Context, request oper return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationFirestorePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationGcsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -15120,7 +15120,7 @@ func (s *Destinations) PutDestinationFirestore(ctx context.Context, request oper } } - res := &operations.PutDestinationFirestoreResponse{ + res := &operations.PutDestinationGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15147,11 +15147,11 @@ func (s *Destinations) PutDestinationFirestore(ctx context.Context, request oper } -// PutDestinationGcs - Update a Destination fully -func (s *Destinations) PutDestinationGcs(ctx context.Context, request operations.PutDestinationGcsRequest, opts ...operations.Option) (*operations.PutDestinationGcsResponse, error) { +// PutDestinationGoogleSheets - Update a Destination fully +func (s *Destinations) PutDestinationGoogleSheets(ctx context.Context, request operations.PutDestinationGoogleSheetsRequest, opts ...operations.Option) (*operations.PutDestinationGoogleSheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationGcs", + OperationID: "putDestinationGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15173,7 +15173,7 @@ func (s *Destinations) PutDestinationGcs(ctx context.Context, request operations return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationGcsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationGoogleSheetsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -15230,7 +15230,7 @@ func (s *Destinations) PutDestinationGcs(ctx context.Context, request operations } } - res := &operations.PutDestinationGcsResponse{ + res := &operations.PutDestinationGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15257,11 +15257,11 @@ func (s *Destinations) PutDestinationGcs(ctx context.Context, request operations } -// PutDestinationGoogleSheets - Update a Destination fully -func (s *Destinations) PutDestinationGoogleSheets(ctx context.Context, request operations.PutDestinationGoogleSheetsRequest, opts ...operations.Option) (*operations.PutDestinationGoogleSheetsResponse, 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: "putDestinationGoogleSheets", + OperationID: "putDestinationMilvus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15283,7 +15283,7 @@ func (s *Destinations) PutDestinationGoogleSheets(ctx context.Context, request o return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationGoogleSheetsPutRequest", "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 } @@ -15340,7 +15340,7 @@ func (s *Destinations) PutDestinationGoogleSheets(ctx context.Context, request o } } - res := &operations.PutDestinationGoogleSheetsResponse{ + res := &operations.PutDestinationMilvusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15367,11 +15367,11 @@ func (s *Destinations) PutDestinationGoogleSheets(ctx context.Context, request o } -// 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, } @@ -15393,7 +15393,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 } @@ -15450,7 +15450,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, @@ -15477,11 +15477,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, } @@ -15503,7 +15503,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 } @@ -15560,7 +15560,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, @@ -15587,11 +15587,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, } @@ -15613,7 +15613,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 } @@ -15670,7 +15670,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, @@ -15697,11 +15697,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, } @@ -15723,7 +15723,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 } @@ -15780,7 +15780,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, @@ -15807,11 +15807,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) { +// PutDestinationPgvector - Update a Destination fully +func (s *Destinations) PutDestinationPgvector(ctx context.Context, request operations.PutDestinationPgvectorRequest, opts ...operations.Option) (*operations.PutDestinationPgvectorResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putDestinationOracle", + OperationID: "putDestinationPgvector", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15833,7 +15833,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, "DestinationPgvectorPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -15890,7 +15890,7 @@ func (s *Destinations) PutDestinationOracle(ctx context.Context, request operati } } - res := &operations.PutDestinationOracleResponse{ + res := &operations.PutDestinationPgvectorResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, diff --git a/internal/sdk/models/operations/createdestinationdevnull.go b/internal/sdk/models/operations/createdestinationpgvector.go similarity index 66% rename from internal/sdk/models/operations/createdestinationdevnull.go rename to internal/sdk/models/operations/createdestinationpgvector.go index 0a8a2b704..af1c4cdce 100644 --- a/internal/sdk/models/operations/createdestinationdevnull.go +++ b/internal/sdk/models/operations/createdestinationpgvector.go @@ -7,7 +7,7 @@ import ( "net/http" ) -type CreateDestinationDevNullResponse struct { +type CreateDestinationPgvectorResponse struct { // HTTP response content type for this operation ContentType string // Successful operation @@ -18,28 +18,28 @@ type CreateDestinationDevNullResponse struct { RawResponse *http.Response } -func (o *CreateDestinationDevNullResponse) GetContentType() string { +func (o *CreateDestinationPgvectorResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *CreateDestinationDevNullResponse) GetDestinationResponse() *shared.DestinationResponse { +func (o *CreateDestinationPgvectorResponse) GetDestinationResponse() *shared.DestinationResponse { if o == nil { return nil } return o.DestinationResponse } -func (o *CreateDestinationDevNullResponse) GetStatusCode() int { +func (o *CreateDestinationPgvectorResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *CreateDestinationDevNullResponse) GetRawResponse() *http.Response { +func (o *CreateDestinationPgvectorResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/createsource7shifts.go b/internal/sdk/models/operations/createsource7shifts.go new file mode 100644 index 000000000..393ae7621 --- /dev/null +++ b/internal/sdk/models/operations/createsource7shifts.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 CreateSource7shiftsResponse 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 *CreateSource7shiftsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSource7shiftsResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSource7shiftsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSource7shiftsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceappcues.go b/internal/sdk/models/operations/createsourceappcues.go new file mode 100644 index 000000000..f386b44f4 --- /dev/null +++ b/internal/sdk/models/operations/createsourceappcues.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 CreateSourceAppcuesResponse 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 *CreateSourceAppcuesResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceAppcuesResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceAppcuesResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceAppcuesResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceappfigures.go b/internal/sdk/models/operations/createsourceappfigures.go new file mode 100644 index 000000000..0c4f67e69 --- /dev/null +++ b/internal/sdk/models/operations/createsourceappfigures.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 CreateSourceAppfiguresResponse 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 *CreateSourceAppfiguresResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceAppfiguresResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceAppfiguresResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceAppfiguresResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcebitly.go b/internal/sdk/models/operations/createsourcebitly.go new file mode 100644 index 000000000..5683abab4 --- /dev/null +++ b/internal/sdk/models/operations/createsourcebitly.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 CreateSourceBitlyResponse 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 *CreateSourceBitlyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceBitlyResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceBitlyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceBitlyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcebrevo.go b/internal/sdk/models/operations/createsourcebrevo.go new file mode 100644 index 000000000..ae927e0e4 --- /dev/null +++ b/internal/sdk/models/operations/createsourcebrevo.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 CreateSourceBrevoResponse 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 *CreateSourceBrevoResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceBrevoResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceBrevoResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceBrevoResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcebuildkite.go b/internal/sdk/models/operations/createsourcebuildkite.go new file mode 100644 index 000000000..488c54ec8 --- /dev/null +++ b/internal/sdk/models/operations/createsourcebuildkite.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 CreateSourceBuildkiteResponse 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 *CreateSourceBuildkiteResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceBuildkiteResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceBuildkiteResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceBuildkiteResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcebuzzsprout.go b/internal/sdk/models/operations/createsourcebuzzsprout.go new file mode 100644 index 000000000..daa90950e --- /dev/null +++ b/internal/sdk/models/operations/createsourcebuzzsprout.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 CreateSourceBuzzsproutResponse 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 *CreateSourceBuzzsproutResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceBuzzsproutResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceBuzzsproutResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceBuzzsproutResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcecanny.go b/internal/sdk/models/operations/createsourcecanny.go new file mode 100644 index 000000000..010398faf --- /dev/null +++ b/internal/sdk/models/operations/createsourcecanny.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 CreateSourceCannyResponse 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 *CreateSourceCannyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceCannyResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceCannyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceCannyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcechameleon.go b/internal/sdk/models/operations/createsourcechameleon.go new file mode 100644 index 000000000..cd7f4b4be --- /dev/null +++ b/internal/sdk/models/operations/createsourcechameleon.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 CreateSourceChameleonResponse 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 *CreateSourceChameleonResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceChameleonResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceChameleonResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceChameleonResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcecimis.go b/internal/sdk/models/operations/createsourcecimis.go new file mode 100644 index 000000000..593347e6e --- /dev/null +++ b/internal/sdk/models/operations/createsourcecimis.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 CreateSourceCimisResponse 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 *CreateSourceCimisResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceCimisResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceCimisResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceCimisResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceezofficeinventory.go b/internal/sdk/models/operations/createsourceezofficeinventory.go new file mode 100644 index 000000000..d4f7416e7 --- /dev/null +++ b/internal/sdk/models/operations/createsourceezofficeinventory.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 CreateSourceEzofficeinventoryResponse 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 *CreateSourceEzofficeinventoryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceEzofficeinventoryResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceEzofficeinventoryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceEzofficeinventoryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcefront.go b/internal/sdk/models/operations/createsourcefront.go new file mode 100644 index 000000000..986bc8a63 --- /dev/null +++ b/internal/sdk/models/operations/createsourcefront.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 CreateSourceFrontResponse 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 *CreateSourceFrontResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceFrontResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceFrontResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceFrontResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcezendesksell.go b/internal/sdk/models/operations/createsourcegoogletasks.go similarity index 71% rename from internal/sdk/models/operations/createsourcezendesksell.go rename to internal/sdk/models/operations/createsourcegoogletasks.go index 329b0f833..1740dd7bd 100644 --- a/internal/sdk/models/operations/createsourcezendesksell.go +++ b/internal/sdk/models/operations/createsourcegoogletasks.go @@ -7,7 +7,7 @@ import ( "net/http" ) -type CreateSourceZendeskSellResponse struct { +type CreateSourceGoogleTasksResponse struct { // HTTP response content type for this operation ContentType string // Successful operation @@ -18,28 +18,28 @@ type CreateSourceZendeskSellResponse struct { RawResponse *http.Response } -func (o *CreateSourceZendeskSellResponse) GetContentType() string { +func (o *CreateSourceGoogleTasksResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *CreateSourceZendeskSellResponse) GetSourceResponse() *shared.SourceResponse { +func (o *CreateSourceGoogleTasksResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *CreateSourceZendeskSellResponse) GetStatusCode() int { +func (o *CreateSourceGoogleTasksResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *CreateSourceZendeskSellResponse) GetRawResponse() *http.Response { +func (o *CreateSourceGoogleTasksResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/createsourceguru.go b/internal/sdk/models/operations/createsourceguru.go new file mode 100644 index 000000000..207da5b74 --- /dev/null +++ b/internal/sdk/models/operations/createsourceguru.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 CreateSourceGuruResponse 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 *CreateSourceGuruResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceGuruResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceGuruResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceGuruResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceheight.go b/internal/sdk/models/operations/createsourceheight.go new file mode 100644 index 000000000..1cd3d9827 --- /dev/null +++ b/internal/sdk/models/operations/createsourceheight.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 CreateSourceHeightResponse 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 *CreateSourceHeightResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceHeightResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceHeightResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceHeightResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcejotform.go b/internal/sdk/models/operations/createsourcejotform.go new file mode 100644 index 000000000..cdfd494be --- /dev/null +++ b/internal/sdk/models/operations/createsourcejotform.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 CreateSourceJotformResponse 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 *CreateSourceJotformResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceJotformResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceJotformResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceJotformResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcenylas.go b/internal/sdk/models/operations/createsourcenylas.go new file mode 100644 index 000000000..b8b62e9b5 --- /dev/null +++ b/internal/sdk/models/operations/createsourcenylas.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 CreateSourceNylasResponse 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 *CreateSourceNylasResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceNylasResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceNylasResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceNylasResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcepicqer.go b/internal/sdk/models/operations/createsourcepicqer.go new file mode 100644 index 000000000..ee49b64b0 --- /dev/null +++ b/internal/sdk/models/operations/createsourcepicqer.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 CreateSourcePicqerResponse 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 *CreateSourcePicqerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourcePicqerResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourcePicqerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourcePicqerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcepiwik.go b/internal/sdk/models/operations/createsourcepiwik.go new file mode 100644 index 000000000..9c2f89bc8 --- /dev/null +++ b/internal/sdk/models/operations/createsourcepiwik.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 CreateSourcePiwikResponse 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 *CreateSourcePiwikResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourcePiwikResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourcePiwikResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourcePiwikResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceproductboard.go b/internal/sdk/models/operations/createsourceproductboard.go new file mode 100644 index 000000000..5e883b135 --- /dev/null +++ b/internal/sdk/models/operations/createsourceproductboard.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 CreateSourceProductboardResponse 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 *CreateSourceProductboardResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceProductboardResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceProductboardResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceProductboardResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceproductive.go b/internal/sdk/models/operations/createsourceproductive.go new file mode 100644 index 000000000..eef445404 --- /dev/null +++ b/internal/sdk/models/operations/createsourceproductive.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 CreateSourceProductiveResponse 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 *CreateSourceProductiveResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceProductiveResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceProductiveResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceProductiveResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceshortcut.go b/internal/sdk/models/operations/createsourceshortcut.go new file mode 100644 index 000000000..076b1763a --- /dev/null +++ b/internal/sdk/models/operations/createsourceshortcut.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 CreateSourceShortcutResponse 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 *CreateSourceShortcutResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceShortcutResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceShortcutResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceShortcutResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcesurvicate.go b/internal/sdk/models/operations/createsourcesurvicate.go new file mode 100644 index 000000000..8a9582cb2 --- /dev/null +++ b/internal/sdk/models/operations/createsourcesurvicate.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 CreateSourceSurvicateResponse 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 *CreateSourceSurvicateResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceSurvicateResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceSurvicateResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceSurvicateResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourceteamwork.go b/internal/sdk/models/operations/createsourceteamwork.go new file mode 100644 index 000000000..f9c85967f --- /dev/null +++ b/internal/sdk/models/operations/createsourceteamwork.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 CreateSourceTeamworkResponse 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 *CreateSourceTeamworkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceTeamworkResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceTeamworkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceTeamworkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/createsourcewheniwork.go b/internal/sdk/models/operations/createsourcewheniwork.go new file mode 100644 index 000000000..48a56dea5 --- /dev/null +++ b/internal/sdk/models/operations/createsourcewheniwork.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 CreateSourceWhenIWorkResponse 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 *CreateSourceWhenIWorkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *CreateSourceWhenIWorkResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *CreateSourceWhenIWorkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateSourceWhenIWorkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletedestinationdevnull.go b/internal/sdk/models/operations/deletedestinationpgvector.go similarity index 63% rename from internal/sdk/models/operations/deletedestinationdevnull.go rename to internal/sdk/models/operations/deletedestinationpgvector.go index e16fa666c..ebc271ed3 100644 --- a/internal/sdk/models/operations/deletedestinationdevnull.go +++ b/internal/sdk/models/operations/deletedestinationpgvector.go @@ -6,18 +6,18 @@ import ( "net/http" ) -type DeleteDestinationDevNullRequest struct { +type DeleteDestinationPgvectorRequest struct { DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` } -func (o *DeleteDestinationDevNullRequest) GetDestinationID() string { +func (o *DeleteDestinationPgvectorRequest) GetDestinationID() string { if o == nil { return "" } return o.DestinationID } -type DeleteDestinationDevNullResponse struct { +type DeleteDestinationPgvectorResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -26,21 +26,21 @@ type DeleteDestinationDevNullResponse struct { RawResponse *http.Response } -func (o *DeleteDestinationDevNullResponse) GetContentType() string { +func (o *DeleteDestinationPgvectorResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *DeleteDestinationDevNullResponse) GetStatusCode() int { +func (o *DeleteDestinationPgvectorResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *DeleteDestinationDevNullResponse) GetRawResponse() *http.Response { +func (o *DeleteDestinationPgvectorResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/deletesource7shifts.go b/internal/sdk/models/operations/deletesource7shifts.go new file mode 100644 index 000000000..d83b0af5f --- /dev/null +++ b/internal/sdk/models/operations/deletesource7shifts.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSource7shiftsRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSource7shiftsRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSource7shiftsResponse 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 *DeleteSource7shiftsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSource7shiftsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSource7shiftsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceappcues.go b/internal/sdk/models/operations/deletesourceappcues.go new file mode 100644 index 000000000..a8d28929e --- /dev/null +++ b/internal/sdk/models/operations/deletesourceappcues.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceAppcuesRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceAppcuesRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceAppcuesResponse 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 *DeleteSourceAppcuesResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceAppcuesResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceAppcuesResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceappfigures.go b/internal/sdk/models/operations/deletesourceappfigures.go new file mode 100644 index 000000000..fb782260d --- /dev/null +++ b/internal/sdk/models/operations/deletesourceappfigures.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceAppfiguresRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceAppfiguresRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceAppfiguresResponse 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 *DeleteSourceAppfiguresResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceAppfiguresResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceAppfiguresResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcebitly.go b/internal/sdk/models/operations/deletesourcebitly.go new file mode 100644 index 000000000..d85d53a17 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcebitly.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceBitlyRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceBitlyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceBitlyResponse 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 *DeleteSourceBitlyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceBitlyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceBitlyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcebrevo.go b/internal/sdk/models/operations/deletesourcebrevo.go new file mode 100644 index 000000000..3d8fe02b7 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcebrevo.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceBrevoRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceBrevoRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceBrevoResponse 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 *DeleteSourceBrevoResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceBrevoResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceBrevoResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcebuildkite.go b/internal/sdk/models/operations/deletesourcebuildkite.go new file mode 100644 index 000000000..f0806408b --- /dev/null +++ b/internal/sdk/models/operations/deletesourcebuildkite.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceBuildkiteRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceBuildkiteRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceBuildkiteResponse 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 *DeleteSourceBuildkiteResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceBuildkiteResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceBuildkiteResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcebuzzsprout.go b/internal/sdk/models/operations/deletesourcebuzzsprout.go new file mode 100644 index 000000000..83ce54147 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcebuzzsprout.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceBuzzsproutRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceBuzzsproutRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceBuzzsproutResponse 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 *DeleteSourceBuzzsproutResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceBuzzsproutResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceBuzzsproutResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcecanny.go b/internal/sdk/models/operations/deletesourcecanny.go new file mode 100644 index 000000000..aeecaa72e --- /dev/null +++ b/internal/sdk/models/operations/deletesourcecanny.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceCannyRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceCannyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceCannyResponse 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 *DeleteSourceCannyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceCannyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceCannyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcechameleon.go b/internal/sdk/models/operations/deletesourcechameleon.go new file mode 100644 index 000000000..2603255bf --- /dev/null +++ b/internal/sdk/models/operations/deletesourcechameleon.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceChameleonRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceChameleonRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceChameleonResponse 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 *DeleteSourceChameleonResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceChameleonResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceChameleonResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcecimis.go b/internal/sdk/models/operations/deletesourcecimis.go new file mode 100644 index 000000000..d09357a23 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcecimis.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceCimisRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceCimisRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceCimisResponse 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 *DeleteSourceCimisResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceCimisResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceCimisResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceezofficeinventory.go b/internal/sdk/models/operations/deletesourceezofficeinventory.go new file mode 100644 index 000000000..1ccbab76f --- /dev/null +++ b/internal/sdk/models/operations/deletesourceezofficeinventory.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceEzofficeinventoryRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceEzofficeinventoryRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceEzofficeinventoryResponse 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 *DeleteSourceEzofficeinventoryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceEzofficeinventoryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceEzofficeinventoryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcefront.go b/internal/sdk/models/operations/deletesourcefront.go new file mode 100644 index 000000000..f6ae0a2a8 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcefront.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceFrontRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceFrontRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceFrontResponse 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 *DeleteSourceFrontResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceFrontResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceFrontResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcezendesksell.go b/internal/sdk/models/operations/deletesourcegoogletasks.go similarity index 65% rename from internal/sdk/models/operations/deletesourcezendesksell.go rename to internal/sdk/models/operations/deletesourcegoogletasks.go index b81dccd20..f2259aed7 100644 --- a/internal/sdk/models/operations/deletesourcezendesksell.go +++ b/internal/sdk/models/operations/deletesourcegoogletasks.go @@ -6,18 +6,18 @@ import ( "net/http" ) -type DeleteSourceZendeskSellRequest struct { +type DeleteSourceGoogleTasksRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *DeleteSourceZendeskSellRequest) GetSourceID() string { +func (o *DeleteSourceGoogleTasksRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type DeleteSourceZendeskSellResponse struct { +type DeleteSourceGoogleTasksResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -26,21 +26,21 @@ type DeleteSourceZendeskSellResponse struct { RawResponse *http.Response } -func (o *DeleteSourceZendeskSellResponse) GetContentType() string { +func (o *DeleteSourceGoogleTasksResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *DeleteSourceZendeskSellResponse) GetStatusCode() int { +func (o *DeleteSourceGoogleTasksResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *DeleteSourceZendeskSellResponse) GetRawResponse() *http.Response { +func (o *DeleteSourceGoogleTasksResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/deletesourceguru.go b/internal/sdk/models/operations/deletesourceguru.go new file mode 100644 index 000000000..e5a70a020 --- /dev/null +++ b/internal/sdk/models/operations/deletesourceguru.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceGuruRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceGuruRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceGuruResponse 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 *DeleteSourceGuruResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceGuruResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceGuruResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceheight.go b/internal/sdk/models/operations/deletesourceheight.go new file mode 100644 index 000000000..c12a18a2f --- /dev/null +++ b/internal/sdk/models/operations/deletesourceheight.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceHeightRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceHeightRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceHeightResponse 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 *DeleteSourceHeightResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceHeightResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceHeightResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcejotform.go b/internal/sdk/models/operations/deletesourcejotform.go new file mode 100644 index 000000000..8cfddbec4 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcejotform.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceJotformRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceJotformRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceJotformResponse 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 *DeleteSourceJotformResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceJotformResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceJotformResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcenylas.go b/internal/sdk/models/operations/deletesourcenylas.go new file mode 100644 index 000000000..5bdd98418 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcenylas.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceNylasRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceNylasRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceNylasResponse 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 *DeleteSourceNylasResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceNylasResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceNylasResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcepicqer.go b/internal/sdk/models/operations/deletesourcepicqer.go new file mode 100644 index 000000000..2048bb18b --- /dev/null +++ b/internal/sdk/models/operations/deletesourcepicqer.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourcePicqerRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourcePicqerRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourcePicqerResponse 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 *DeleteSourcePicqerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourcePicqerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourcePicqerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcepiwik.go b/internal/sdk/models/operations/deletesourcepiwik.go new file mode 100644 index 000000000..37bf35a3f --- /dev/null +++ b/internal/sdk/models/operations/deletesourcepiwik.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourcePiwikRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourcePiwikRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourcePiwikResponse 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 *DeleteSourcePiwikResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourcePiwikResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourcePiwikResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceproductboard.go b/internal/sdk/models/operations/deletesourceproductboard.go new file mode 100644 index 000000000..82b703a60 --- /dev/null +++ b/internal/sdk/models/operations/deletesourceproductboard.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceProductboardRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceProductboardRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceProductboardResponse 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 *DeleteSourceProductboardResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceProductboardResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceProductboardResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceproductive.go b/internal/sdk/models/operations/deletesourceproductive.go new file mode 100644 index 000000000..e17e364be --- /dev/null +++ b/internal/sdk/models/operations/deletesourceproductive.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceProductiveRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceProductiveRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceProductiveResponse 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 *DeleteSourceProductiveResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceProductiveResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceProductiveResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceshortcut.go b/internal/sdk/models/operations/deletesourceshortcut.go new file mode 100644 index 000000000..3285ba864 --- /dev/null +++ b/internal/sdk/models/operations/deletesourceshortcut.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceShortcutRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceShortcutRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceShortcutResponse 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 *DeleteSourceShortcutResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceShortcutResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceShortcutResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcesurvicate.go b/internal/sdk/models/operations/deletesourcesurvicate.go new file mode 100644 index 000000000..4ca0a3ba9 --- /dev/null +++ b/internal/sdk/models/operations/deletesourcesurvicate.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceSurvicateRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceSurvicateRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceSurvicateResponse 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 *DeleteSourceSurvicateResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceSurvicateResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceSurvicateResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourceteamwork.go b/internal/sdk/models/operations/deletesourceteamwork.go new file mode 100644 index 000000000..bf2230c23 --- /dev/null +++ b/internal/sdk/models/operations/deletesourceteamwork.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceTeamworkRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceTeamworkRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceTeamworkResponse 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 *DeleteSourceTeamworkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceTeamworkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceTeamworkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/deletesourcewheniwork.go b/internal/sdk/models/operations/deletesourcewheniwork.go new file mode 100644 index 000000000..6db9e4c3f --- /dev/null +++ b/internal/sdk/models/operations/deletesourcewheniwork.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type DeleteSourceWhenIWorkRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *DeleteSourceWhenIWorkRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type DeleteSourceWhenIWorkResponse 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 *DeleteSourceWhenIWorkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DeleteSourceWhenIWorkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteSourceWhenIWorkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getdestinationdevnull.go b/internal/sdk/models/operations/getdestinationpgvector.go similarity index 66% rename from internal/sdk/models/operations/getdestinationdevnull.go rename to internal/sdk/models/operations/getdestinationpgvector.go index b26e011b5..888bb647a 100644 --- a/internal/sdk/models/operations/getdestinationdevnull.go +++ b/internal/sdk/models/operations/getdestinationpgvector.go @@ -7,18 +7,18 @@ import ( "net/http" ) -type GetDestinationDevNullRequest struct { +type GetDestinationPgvectorRequest struct { DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` } -func (o *GetDestinationDevNullRequest) GetDestinationID() string { +func (o *GetDestinationPgvectorRequest) GetDestinationID() string { if o == nil { return "" } return o.DestinationID } -type GetDestinationDevNullResponse struct { +type GetDestinationPgvectorResponse struct { // HTTP response content type for this operation ContentType string // Get a Destination by the id in the path. @@ -29,28 +29,28 @@ type GetDestinationDevNullResponse struct { RawResponse *http.Response } -func (o *GetDestinationDevNullResponse) GetContentType() string { +func (o *GetDestinationPgvectorResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *GetDestinationDevNullResponse) GetDestinationResponse() *shared.DestinationResponse { +func (o *GetDestinationPgvectorResponse) GetDestinationResponse() *shared.DestinationResponse { if o == nil { return nil } return o.DestinationResponse } -func (o *GetDestinationDevNullResponse) GetStatusCode() int { +func (o *GetDestinationPgvectorResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *GetDestinationDevNullResponse) GetRawResponse() *http.Response { +func (o *GetDestinationPgvectorResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/getsource7shifts.go b/internal/sdk/models/operations/getsource7shifts.go new file mode 100644 index 000000000..8c1998da3 --- /dev/null +++ b/internal/sdk/models/operations/getsource7shifts.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 GetSource7shiftsRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSource7shiftsRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSource7shiftsResponse 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 *GetSource7shiftsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSource7shiftsResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSource7shiftsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSource7shiftsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceappcues.go b/internal/sdk/models/operations/getsourceappcues.go new file mode 100644 index 000000000..0184cf8b3 --- /dev/null +++ b/internal/sdk/models/operations/getsourceappcues.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 GetSourceAppcuesRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceAppcuesRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceAppcuesResponse 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 *GetSourceAppcuesResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceAppcuesResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceAppcuesResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceAppcuesResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceappfigures.go b/internal/sdk/models/operations/getsourceappfigures.go new file mode 100644 index 000000000..90daede5d --- /dev/null +++ b/internal/sdk/models/operations/getsourceappfigures.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 GetSourceAppfiguresRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceAppfiguresRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceAppfiguresResponse 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 *GetSourceAppfiguresResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceAppfiguresResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceAppfiguresResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceAppfiguresResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcebitly.go b/internal/sdk/models/operations/getsourcebitly.go new file mode 100644 index 000000000..55ee0a4e9 --- /dev/null +++ b/internal/sdk/models/operations/getsourcebitly.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 GetSourceBitlyRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceBitlyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceBitlyResponse 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 *GetSourceBitlyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceBitlyResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceBitlyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceBitlyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcebrevo.go b/internal/sdk/models/operations/getsourcebrevo.go new file mode 100644 index 000000000..222c91993 --- /dev/null +++ b/internal/sdk/models/operations/getsourcebrevo.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 GetSourceBrevoRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceBrevoRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceBrevoResponse 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 *GetSourceBrevoResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceBrevoResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceBrevoResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceBrevoResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcebuildkite.go b/internal/sdk/models/operations/getsourcebuildkite.go new file mode 100644 index 000000000..833d3f4bf --- /dev/null +++ b/internal/sdk/models/operations/getsourcebuildkite.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 GetSourceBuildkiteRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceBuildkiteRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceBuildkiteResponse 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 *GetSourceBuildkiteResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceBuildkiteResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceBuildkiteResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceBuildkiteResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcebuzzsprout.go b/internal/sdk/models/operations/getsourcebuzzsprout.go new file mode 100644 index 000000000..47f49eeee --- /dev/null +++ b/internal/sdk/models/operations/getsourcebuzzsprout.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 GetSourceBuzzsproutRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceBuzzsproutRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceBuzzsproutResponse 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 *GetSourceBuzzsproutResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceBuzzsproutResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceBuzzsproutResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceBuzzsproutResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcecanny.go b/internal/sdk/models/operations/getsourcecanny.go new file mode 100644 index 000000000..c8e4222d2 --- /dev/null +++ b/internal/sdk/models/operations/getsourcecanny.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 GetSourceCannyRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceCannyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceCannyResponse 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 *GetSourceCannyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceCannyResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceCannyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceCannyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcechameleon.go b/internal/sdk/models/operations/getsourcechameleon.go new file mode 100644 index 000000000..78d0b8a34 --- /dev/null +++ b/internal/sdk/models/operations/getsourcechameleon.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 GetSourceChameleonRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceChameleonRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceChameleonResponse 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 *GetSourceChameleonResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceChameleonResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceChameleonResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceChameleonResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcecimis.go b/internal/sdk/models/operations/getsourcecimis.go new file mode 100644 index 000000000..80588cb21 --- /dev/null +++ b/internal/sdk/models/operations/getsourcecimis.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 GetSourceCimisRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceCimisRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceCimisResponse 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 *GetSourceCimisResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceCimisResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceCimisResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceCimisResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceezofficeinventory.go b/internal/sdk/models/operations/getsourceezofficeinventory.go new file mode 100644 index 000000000..14ccd5ccd --- /dev/null +++ b/internal/sdk/models/operations/getsourceezofficeinventory.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 GetSourceEzofficeinventoryRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceEzofficeinventoryRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceEzofficeinventoryResponse 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 *GetSourceEzofficeinventoryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceEzofficeinventoryResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceEzofficeinventoryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceEzofficeinventoryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcefront.go b/internal/sdk/models/operations/getsourcefront.go new file mode 100644 index 000000000..10a71acf5 --- /dev/null +++ b/internal/sdk/models/operations/getsourcefront.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 GetSourceFrontRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceFrontRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceFrontResponse 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 *GetSourceFrontResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceFrontResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceFrontResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceFrontResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcezendesksell.go b/internal/sdk/models/operations/getsourcegoogletasks.go similarity index 68% rename from internal/sdk/models/operations/getsourcezendesksell.go rename to internal/sdk/models/operations/getsourcegoogletasks.go index 945648140..b93f6643c 100644 --- a/internal/sdk/models/operations/getsourcezendesksell.go +++ b/internal/sdk/models/operations/getsourcegoogletasks.go @@ -7,18 +7,18 @@ import ( "net/http" ) -type GetSourceZendeskSellRequest struct { +type GetSourceGoogleTasksRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *GetSourceZendeskSellRequest) GetSourceID() string { +func (o *GetSourceGoogleTasksRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type GetSourceZendeskSellResponse struct { +type GetSourceGoogleTasksResponse struct { // HTTP response content type for this operation ContentType string // Get a Source by the id in the path. @@ -29,28 +29,28 @@ type GetSourceZendeskSellResponse struct { RawResponse *http.Response } -func (o *GetSourceZendeskSellResponse) GetContentType() string { +func (o *GetSourceGoogleTasksResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *GetSourceZendeskSellResponse) GetSourceResponse() *shared.SourceResponse { +func (o *GetSourceGoogleTasksResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *GetSourceZendeskSellResponse) GetStatusCode() int { +func (o *GetSourceGoogleTasksResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *GetSourceZendeskSellResponse) GetRawResponse() *http.Response { +func (o *GetSourceGoogleTasksResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/getsourceguru.go b/internal/sdk/models/operations/getsourceguru.go new file mode 100644 index 000000000..8939bdcc8 --- /dev/null +++ b/internal/sdk/models/operations/getsourceguru.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 GetSourceGuruRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceGuruRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceGuruResponse 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 *GetSourceGuruResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceGuruResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceGuruResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceGuruResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceheight.go b/internal/sdk/models/operations/getsourceheight.go new file mode 100644 index 000000000..dac825e15 --- /dev/null +++ b/internal/sdk/models/operations/getsourceheight.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 GetSourceHeightRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceHeightRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceHeightResponse 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 *GetSourceHeightResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceHeightResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceHeightResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceHeightResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcejotform.go b/internal/sdk/models/operations/getsourcejotform.go new file mode 100644 index 000000000..67a6898c8 --- /dev/null +++ b/internal/sdk/models/operations/getsourcejotform.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 GetSourceJotformRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceJotformRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceJotformResponse 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 *GetSourceJotformResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceJotformResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceJotformResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceJotformResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcenylas.go b/internal/sdk/models/operations/getsourcenylas.go new file mode 100644 index 000000000..083f0b8ec --- /dev/null +++ b/internal/sdk/models/operations/getsourcenylas.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 GetSourceNylasRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceNylasRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceNylasResponse 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 *GetSourceNylasResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceNylasResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceNylasResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceNylasResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcepicqer.go b/internal/sdk/models/operations/getsourcepicqer.go new file mode 100644 index 000000000..bc39e4869 --- /dev/null +++ b/internal/sdk/models/operations/getsourcepicqer.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 GetSourcePicqerRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourcePicqerRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourcePicqerResponse 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 *GetSourcePicqerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourcePicqerResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourcePicqerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourcePicqerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcepiwik.go b/internal/sdk/models/operations/getsourcepiwik.go new file mode 100644 index 000000000..6c67f5ae3 --- /dev/null +++ b/internal/sdk/models/operations/getsourcepiwik.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 GetSourcePiwikRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourcePiwikRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourcePiwikResponse 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 *GetSourcePiwikResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourcePiwikResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourcePiwikResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourcePiwikResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceproductboard.go b/internal/sdk/models/operations/getsourceproductboard.go new file mode 100644 index 000000000..d81730f76 --- /dev/null +++ b/internal/sdk/models/operations/getsourceproductboard.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 GetSourceProductboardRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceProductboardRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceProductboardResponse 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 *GetSourceProductboardResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceProductboardResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceProductboardResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceProductboardResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceproductive.go b/internal/sdk/models/operations/getsourceproductive.go new file mode 100644 index 000000000..4be0cc694 --- /dev/null +++ b/internal/sdk/models/operations/getsourceproductive.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 GetSourceProductiveRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceProductiveRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceProductiveResponse 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 *GetSourceProductiveResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceProductiveResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceProductiveResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceProductiveResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceshortcut.go b/internal/sdk/models/operations/getsourceshortcut.go new file mode 100644 index 000000000..c14f646e1 --- /dev/null +++ b/internal/sdk/models/operations/getsourceshortcut.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 GetSourceShortcutRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceShortcutRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceShortcutResponse 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 *GetSourceShortcutResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceShortcutResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceShortcutResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceShortcutResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcesurvicate.go b/internal/sdk/models/operations/getsourcesurvicate.go new file mode 100644 index 000000000..585fec3d8 --- /dev/null +++ b/internal/sdk/models/operations/getsourcesurvicate.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 GetSourceSurvicateRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceSurvicateRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceSurvicateResponse 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 *GetSourceSurvicateResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceSurvicateResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceSurvicateResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceSurvicateResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourceteamwork.go b/internal/sdk/models/operations/getsourceteamwork.go new file mode 100644 index 000000000..640c968cf --- /dev/null +++ b/internal/sdk/models/operations/getsourceteamwork.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 GetSourceTeamworkRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceTeamworkRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceTeamworkResponse 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 *GetSourceTeamworkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceTeamworkResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceTeamworkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceTeamworkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcewheniwork.go b/internal/sdk/models/operations/getsourcewheniwork.go new file mode 100644 index 000000000..4d5f5fd0c --- /dev/null +++ b/internal/sdk/models/operations/getsourcewheniwork.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 GetSourceWhenIWorkRequest struct { + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *GetSourceWhenIWorkRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type GetSourceWhenIWorkResponse 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 *GetSourceWhenIWorkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetSourceWhenIWorkResponse) GetSourceResponse() *shared.SourceResponse { + if o == nil { + return nil + } + return o.SourceResponse +} + +func (o *GetSourceWhenIWorkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetSourceWhenIWorkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putdestinationdevnull.go b/internal/sdk/models/operations/putdestinationdevnull.go deleted file mode 100644 index 32f09716b..000000000 --- a/internal/sdk/models/operations/putdestinationdevnull.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 PutDestinationDevNullRequest struct { - DestinationDevNullPutRequest *shared.DestinationDevNullPutRequest `request:"mediaType=application/json"` - DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` -} - -func (o *PutDestinationDevNullRequest) GetDestinationDevNullPutRequest() *shared.DestinationDevNullPutRequest { - if o == nil { - return nil - } - return o.DestinationDevNullPutRequest -} - -func (o *PutDestinationDevNullRequest) GetDestinationID() string { - if o == nil { - return "" - } - return o.DestinationID -} - -type PutDestinationDevNullResponse 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 *PutDestinationDevNullResponse) GetContentType() string { - if o == nil { - return "" - } - return o.ContentType -} - -func (o *PutDestinationDevNullResponse) GetStatusCode() int { - if o == nil { - return 0 - } - return o.StatusCode -} - -func (o *PutDestinationDevNullResponse) GetRawResponse() *http.Response { - if o == nil { - return nil - } - return o.RawResponse -} diff --git a/internal/sdk/models/operations/putdestinationpgvector.go b/internal/sdk/models/operations/putdestinationpgvector.go new file mode 100644 index 000000000..2878b5acc --- /dev/null +++ b/internal/sdk/models/operations/putdestinationpgvector.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 PutDestinationPgvectorRequest struct { + DestinationPgvectorPutRequest *shared.DestinationPgvectorPutRequest `request:"mediaType=application/json"` + DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` +} + +func (o *PutDestinationPgvectorRequest) GetDestinationPgvectorPutRequest() *shared.DestinationPgvectorPutRequest { + if o == nil { + return nil + } + return o.DestinationPgvectorPutRequest +} + +func (o *PutDestinationPgvectorRequest) GetDestinationID() string { + if o == nil { + return "" + } + return o.DestinationID +} + +type PutDestinationPgvectorResponse 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 *PutDestinationPgvectorResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutDestinationPgvectorResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutDestinationPgvectorResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsource7shifts.go b/internal/sdk/models/operations/putsource7shifts.go new file mode 100644 index 000000000..58ddce5e0 --- /dev/null +++ b/internal/sdk/models/operations/putsource7shifts.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 PutSource7shiftsRequest struct { + Source7shiftsPutRequest *shared.Source7shiftsPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSource7shiftsRequest) GetSource7shiftsPutRequest() *shared.Source7shiftsPutRequest { + if o == nil { + return nil + } + return o.Source7shiftsPutRequest +} + +func (o *PutSource7shiftsRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSource7shiftsResponse 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 *PutSource7shiftsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSource7shiftsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSource7shiftsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceappcues.go b/internal/sdk/models/operations/putsourceappcues.go new file mode 100644 index 000000000..44220f7bb --- /dev/null +++ b/internal/sdk/models/operations/putsourceappcues.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 PutSourceAppcuesRequest struct { + SourceAppcuesPutRequest *shared.SourceAppcuesPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceAppcuesRequest) GetSourceAppcuesPutRequest() *shared.SourceAppcuesPutRequest { + if o == nil { + return nil + } + return o.SourceAppcuesPutRequest +} + +func (o *PutSourceAppcuesRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceAppcuesResponse 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 *PutSourceAppcuesResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceAppcuesResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceAppcuesResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceappfigures.go b/internal/sdk/models/operations/putsourceappfigures.go new file mode 100644 index 000000000..f93033eea --- /dev/null +++ b/internal/sdk/models/operations/putsourceappfigures.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 PutSourceAppfiguresRequest struct { + SourceAppfiguresPutRequest *shared.SourceAppfiguresPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceAppfiguresRequest) GetSourceAppfiguresPutRequest() *shared.SourceAppfiguresPutRequest { + if o == nil { + return nil + } + return o.SourceAppfiguresPutRequest +} + +func (o *PutSourceAppfiguresRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceAppfiguresResponse 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 *PutSourceAppfiguresResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceAppfiguresResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceAppfiguresResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcebitly.go b/internal/sdk/models/operations/putsourcebitly.go new file mode 100644 index 000000000..94a69881f --- /dev/null +++ b/internal/sdk/models/operations/putsourcebitly.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 PutSourceBitlyRequest struct { + SourceBitlyPutRequest *shared.SourceBitlyPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceBitlyRequest) GetSourceBitlyPutRequest() *shared.SourceBitlyPutRequest { + if o == nil { + return nil + } + return o.SourceBitlyPutRequest +} + +func (o *PutSourceBitlyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceBitlyResponse 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 *PutSourceBitlyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceBitlyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceBitlyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcebrevo.go b/internal/sdk/models/operations/putsourcebrevo.go new file mode 100644 index 000000000..28a4f221f --- /dev/null +++ b/internal/sdk/models/operations/putsourcebrevo.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 PutSourceBrevoRequest struct { + SourceBrevoPutRequest *shared.SourceBrevoPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceBrevoRequest) GetSourceBrevoPutRequest() *shared.SourceBrevoPutRequest { + if o == nil { + return nil + } + return o.SourceBrevoPutRequest +} + +func (o *PutSourceBrevoRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceBrevoResponse 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 *PutSourceBrevoResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceBrevoResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceBrevoResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcebuildkite.go b/internal/sdk/models/operations/putsourcebuildkite.go new file mode 100644 index 000000000..21c2036d0 --- /dev/null +++ b/internal/sdk/models/operations/putsourcebuildkite.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 PutSourceBuildkiteRequest struct { + SourceBuildkitePutRequest *shared.SourceBuildkitePutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceBuildkiteRequest) GetSourceBuildkitePutRequest() *shared.SourceBuildkitePutRequest { + if o == nil { + return nil + } + return o.SourceBuildkitePutRequest +} + +func (o *PutSourceBuildkiteRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceBuildkiteResponse 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 *PutSourceBuildkiteResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceBuildkiteResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceBuildkiteResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcebuzzsprout.go b/internal/sdk/models/operations/putsourcebuzzsprout.go new file mode 100644 index 000000000..fe9a7fde4 --- /dev/null +++ b/internal/sdk/models/operations/putsourcebuzzsprout.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 PutSourceBuzzsproutRequest struct { + SourceBuzzsproutPutRequest *shared.SourceBuzzsproutPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceBuzzsproutRequest) GetSourceBuzzsproutPutRequest() *shared.SourceBuzzsproutPutRequest { + if o == nil { + return nil + } + return o.SourceBuzzsproutPutRequest +} + +func (o *PutSourceBuzzsproutRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceBuzzsproutResponse 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 *PutSourceBuzzsproutResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceBuzzsproutResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceBuzzsproutResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcecanny.go b/internal/sdk/models/operations/putsourcecanny.go new file mode 100644 index 000000000..67e4f362b --- /dev/null +++ b/internal/sdk/models/operations/putsourcecanny.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 PutSourceCannyRequest struct { + SourceCannyPutRequest *shared.SourceCannyPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceCannyRequest) GetSourceCannyPutRequest() *shared.SourceCannyPutRequest { + if o == nil { + return nil + } + return o.SourceCannyPutRequest +} + +func (o *PutSourceCannyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceCannyResponse 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 *PutSourceCannyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceCannyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceCannyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcechameleon.go b/internal/sdk/models/operations/putsourcechameleon.go new file mode 100644 index 000000000..ff49c6fba --- /dev/null +++ b/internal/sdk/models/operations/putsourcechameleon.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 PutSourceChameleonRequest struct { + SourceChameleonPutRequest *shared.SourceChameleonPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceChameleonRequest) GetSourceChameleonPutRequest() *shared.SourceChameleonPutRequest { + if o == nil { + return nil + } + return o.SourceChameleonPutRequest +} + +func (o *PutSourceChameleonRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceChameleonResponse 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 *PutSourceChameleonResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceChameleonResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceChameleonResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcecimis.go b/internal/sdk/models/operations/putsourcecimis.go new file mode 100644 index 000000000..295ece2e6 --- /dev/null +++ b/internal/sdk/models/operations/putsourcecimis.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 PutSourceCimisRequest struct { + SourceCimisPutRequest *shared.SourceCimisPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceCimisRequest) GetSourceCimisPutRequest() *shared.SourceCimisPutRequest { + if o == nil { + return nil + } + return o.SourceCimisPutRequest +} + +func (o *PutSourceCimisRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceCimisResponse 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 *PutSourceCimisResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceCimisResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceCimisResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceezofficeinventory.go b/internal/sdk/models/operations/putsourceezofficeinventory.go new file mode 100644 index 000000000..16d83f3b4 --- /dev/null +++ b/internal/sdk/models/operations/putsourceezofficeinventory.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 PutSourceEzofficeinventoryRequest struct { + SourceEzofficeinventoryPutRequest *shared.SourceEzofficeinventoryPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceEzofficeinventoryRequest) GetSourceEzofficeinventoryPutRequest() *shared.SourceEzofficeinventoryPutRequest { + if o == nil { + return nil + } + return o.SourceEzofficeinventoryPutRequest +} + +func (o *PutSourceEzofficeinventoryRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceEzofficeinventoryResponse 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 *PutSourceEzofficeinventoryResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceEzofficeinventoryResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceEzofficeinventoryResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcefront.go b/internal/sdk/models/operations/putsourcefront.go new file mode 100644 index 000000000..ebedcd5ff --- /dev/null +++ b/internal/sdk/models/operations/putsourcefront.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 PutSourceFrontRequest struct { + SourceFrontPutRequest *shared.SourceFrontPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceFrontRequest) GetSourceFrontPutRequest() *shared.SourceFrontPutRequest { + if o == nil { + return nil + } + return o.SourceFrontPutRequest +} + +func (o *PutSourceFrontRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceFrontResponse 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 *PutSourceFrontResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceFrontResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceFrontResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcezendesksell.go b/internal/sdk/models/operations/putsourcegoogletasks.go similarity index 60% rename from internal/sdk/models/operations/putsourcezendesksell.go rename to internal/sdk/models/operations/putsourcegoogletasks.go index 6d58e617b..01200de32 100644 --- a/internal/sdk/models/operations/putsourcezendesksell.go +++ b/internal/sdk/models/operations/putsourcegoogletasks.go @@ -7,26 +7,26 @@ import ( "net/http" ) -type PutSourceZendeskSellRequest struct { - SourceZendeskSellPutRequest *shared.SourceZendeskSellPutRequest `request:"mediaType=application/json"` +type PutSourceGoogleTasksRequest struct { + SourceGoogleTasksPutRequest *shared.SourceGoogleTasksPutRequest `request:"mediaType=application/json"` SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *PutSourceZendeskSellRequest) GetSourceZendeskSellPutRequest() *shared.SourceZendeskSellPutRequest { +func (o *PutSourceGoogleTasksRequest) GetSourceGoogleTasksPutRequest() *shared.SourceGoogleTasksPutRequest { if o == nil { return nil } - return o.SourceZendeskSellPutRequest + return o.SourceGoogleTasksPutRequest } -func (o *PutSourceZendeskSellRequest) GetSourceID() string { +func (o *PutSourceGoogleTasksRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type PutSourceZendeskSellResponse struct { +type PutSourceGoogleTasksResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -35,21 +35,21 @@ type PutSourceZendeskSellResponse struct { RawResponse *http.Response } -func (o *PutSourceZendeskSellResponse) GetContentType() string { +func (o *PutSourceGoogleTasksResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *PutSourceZendeskSellResponse) GetStatusCode() int { +func (o *PutSourceGoogleTasksResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *PutSourceZendeskSellResponse) GetRawResponse() *http.Response { +func (o *PutSourceGoogleTasksResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/putsourceguru.go b/internal/sdk/models/operations/putsourceguru.go new file mode 100644 index 000000000..61c6c6f8a --- /dev/null +++ b/internal/sdk/models/operations/putsourceguru.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 PutSourceGuruRequest struct { + SourceGuruPutRequest *shared.SourceGuruPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceGuruRequest) GetSourceGuruPutRequest() *shared.SourceGuruPutRequest { + if o == nil { + return nil + } + return o.SourceGuruPutRequest +} + +func (o *PutSourceGuruRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceGuruResponse 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 *PutSourceGuruResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceGuruResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceGuruResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceheight.go b/internal/sdk/models/operations/putsourceheight.go new file mode 100644 index 000000000..c63e0f118 --- /dev/null +++ b/internal/sdk/models/operations/putsourceheight.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 PutSourceHeightRequest struct { + SourceHeightPutRequest *shared.SourceHeightPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceHeightRequest) GetSourceHeightPutRequest() *shared.SourceHeightPutRequest { + if o == nil { + return nil + } + return o.SourceHeightPutRequest +} + +func (o *PutSourceHeightRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceHeightResponse 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 *PutSourceHeightResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceHeightResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceHeightResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcejotform.go b/internal/sdk/models/operations/putsourcejotform.go new file mode 100644 index 000000000..12f0720be --- /dev/null +++ b/internal/sdk/models/operations/putsourcejotform.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 PutSourceJotformRequest struct { + SourceJotformPutRequest *shared.SourceJotformPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceJotformRequest) GetSourceJotformPutRequest() *shared.SourceJotformPutRequest { + if o == nil { + return nil + } + return o.SourceJotformPutRequest +} + +func (o *PutSourceJotformRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceJotformResponse 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 *PutSourceJotformResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceJotformResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceJotformResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcenylas.go b/internal/sdk/models/operations/putsourcenylas.go new file mode 100644 index 000000000..05819cdce --- /dev/null +++ b/internal/sdk/models/operations/putsourcenylas.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 PutSourceNylasRequest struct { + SourceNylasPutRequest *shared.SourceNylasPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceNylasRequest) GetSourceNylasPutRequest() *shared.SourceNylasPutRequest { + if o == nil { + return nil + } + return o.SourceNylasPutRequest +} + +func (o *PutSourceNylasRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceNylasResponse 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 *PutSourceNylasResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceNylasResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceNylasResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcepicqer.go b/internal/sdk/models/operations/putsourcepicqer.go new file mode 100644 index 000000000..acf07b8ec --- /dev/null +++ b/internal/sdk/models/operations/putsourcepicqer.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 PutSourcePicqerRequest struct { + SourcePicqerPutRequest *shared.SourcePicqerPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourcePicqerRequest) GetSourcePicqerPutRequest() *shared.SourcePicqerPutRequest { + if o == nil { + return nil + } + return o.SourcePicqerPutRequest +} + +func (o *PutSourcePicqerRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourcePicqerResponse 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 *PutSourcePicqerResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourcePicqerResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourcePicqerResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcepiwik.go b/internal/sdk/models/operations/putsourcepiwik.go new file mode 100644 index 000000000..b71b0e189 --- /dev/null +++ b/internal/sdk/models/operations/putsourcepiwik.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 PutSourcePiwikRequest struct { + SourcePiwikPutRequest *shared.SourcePiwikPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourcePiwikRequest) GetSourcePiwikPutRequest() *shared.SourcePiwikPutRequest { + if o == nil { + return nil + } + return o.SourcePiwikPutRequest +} + +func (o *PutSourcePiwikRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourcePiwikResponse 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 *PutSourcePiwikResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourcePiwikResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourcePiwikResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceproductboard.go b/internal/sdk/models/operations/putsourceproductboard.go new file mode 100644 index 000000000..70be87854 --- /dev/null +++ b/internal/sdk/models/operations/putsourceproductboard.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 PutSourceProductboardRequest struct { + SourceProductboardPutRequest *shared.SourceProductboardPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceProductboardRequest) GetSourceProductboardPutRequest() *shared.SourceProductboardPutRequest { + if o == nil { + return nil + } + return o.SourceProductboardPutRequest +} + +func (o *PutSourceProductboardRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceProductboardResponse 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 *PutSourceProductboardResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceProductboardResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceProductboardResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceproductive.go b/internal/sdk/models/operations/putsourceproductive.go new file mode 100644 index 000000000..6f7a73006 --- /dev/null +++ b/internal/sdk/models/operations/putsourceproductive.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 PutSourceProductiveRequest struct { + SourceProductivePutRequest *shared.SourceProductivePutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceProductiveRequest) GetSourceProductivePutRequest() *shared.SourceProductivePutRequest { + if o == nil { + return nil + } + return o.SourceProductivePutRequest +} + +func (o *PutSourceProductiveRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceProductiveResponse 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 *PutSourceProductiveResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceProductiveResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceProductiveResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceshortcut.go b/internal/sdk/models/operations/putsourceshortcut.go new file mode 100644 index 000000000..7ef22766f --- /dev/null +++ b/internal/sdk/models/operations/putsourceshortcut.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 PutSourceShortcutRequest struct { + SourceShortcutPutRequest *shared.SourceShortcutPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceShortcutRequest) GetSourceShortcutPutRequest() *shared.SourceShortcutPutRequest { + if o == nil { + return nil + } + return o.SourceShortcutPutRequest +} + +func (o *PutSourceShortcutRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceShortcutResponse 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 *PutSourceShortcutResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceShortcutResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceShortcutResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcesurvicate.go b/internal/sdk/models/operations/putsourcesurvicate.go new file mode 100644 index 000000000..188433f62 --- /dev/null +++ b/internal/sdk/models/operations/putsourcesurvicate.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 PutSourceSurvicateRequest struct { + SourceSurvicatePutRequest *shared.SourceSurvicatePutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceSurvicateRequest) GetSourceSurvicatePutRequest() *shared.SourceSurvicatePutRequest { + if o == nil { + return nil + } + return o.SourceSurvicatePutRequest +} + +func (o *PutSourceSurvicateRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceSurvicateResponse 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 *PutSourceSurvicateResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceSurvicateResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceSurvicateResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceteamwork.go b/internal/sdk/models/operations/putsourceteamwork.go new file mode 100644 index 000000000..8863dcb50 --- /dev/null +++ b/internal/sdk/models/operations/putsourceteamwork.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 PutSourceTeamworkRequest struct { + SourceTeamworkPutRequest *shared.SourceTeamworkPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceTeamworkRequest) GetSourceTeamworkPutRequest() *shared.SourceTeamworkPutRequest { + if o == nil { + return nil + } + return o.SourceTeamworkPutRequest +} + +func (o *PutSourceTeamworkRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceTeamworkResponse 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 *PutSourceTeamworkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceTeamworkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceTeamworkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcewheniwork.go b/internal/sdk/models/operations/putsourcewheniwork.go new file mode 100644 index 000000000..5364f1c58 --- /dev/null +++ b/internal/sdk/models/operations/putsourcewheniwork.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 PutSourceWhenIWorkRequest struct { + SourceWhenIWorkPutRequest *shared.SourceWhenIWorkPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceWhenIWorkRequest) GetSourceWhenIWorkPutRequest() *shared.SourceWhenIWorkPutRequest { + if o == nil { + return nil + } + return o.SourceWhenIWorkPutRequest +} + +func (o *PutSourceWhenIWorkRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceWhenIWorkResponse 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 *PutSourceWhenIWorkResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceWhenIWorkResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceWhenIWorkResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/shared/destinationclickhouse.go b/internal/sdk/models/shared/destinationclickhouse.go index 277044b3b..f3dba2f1b 100644 --- a/internal/sdk/models/shared/destinationclickhouse.go +++ b/internal/sdk/models/shared/destinationclickhouse.go @@ -336,6 +336,8 @@ type DestinationClickhouse struct { Port *int64 `default:"8123" json:"port"` // The schema to write raw tables into (default: airbyte_internal) RawDataSchema *string `json:"raw_data_schema,omitempty"` + // Encrypt data using SSL. + Ssl *bool `default:"false" json:"ssl"` // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. TunnelMethod *DestinationClickhouseSSHTunnelMethod `json:"tunnel_method,omitempty"` // Username to use to access the database. @@ -399,6 +401,13 @@ func (o *DestinationClickhouse) GetRawDataSchema() *string { return o.RawDataSchema } +func (o *DestinationClickhouse) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *DestinationClickhouse) GetTunnelMethod() *DestinationClickhouseSSHTunnelMethod { if o == nil { return nil diff --git a/internal/sdk/models/shared/destinationclickhouseupdate.go b/internal/sdk/models/shared/destinationclickhouseupdate.go index a95881498..48721f6d8 100644 --- a/internal/sdk/models/shared/destinationclickhouseupdate.go +++ b/internal/sdk/models/shared/destinationclickhouseupdate.go @@ -312,6 +312,8 @@ type DestinationClickhouseUpdate struct { Port *int64 `default:"8123" json:"port"` // The schema to write raw tables into (default: airbyte_internal) RawDataSchema *string `json:"raw_data_schema,omitempty"` + // Encrypt data using SSL. + Ssl *bool `default:"false" json:"ssl"` // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. TunnelMethod *SSHTunnelMethod `json:"tunnel_method,omitempty"` // Username to use to access the database. @@ -371,6 +373,13 @@ func (o *DestinationClickhouseUpdate) GetRawDataSchema() *string { return o.RawDataSchema } +func (o *DestinationClickhouseUpdate) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *DestinationClickhouseUpdate) GetTunnelMethod() *SSHTunnelMethod { if o == nil { return nil diff --git a/internal/sdk/models/shared/destinationdevnull.go b/internal/sdk/models/shared/destinationdevnull.go deleted file mode 100644 index 07c427c3d..000000000 --- a/internal/sdk/models/shared/destinationdevnull.go +++ /dev/null @@ -1,145 +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 DevNull string - -const ( - DevNullDevNull DevNull = "dev-null" -) - -func (e DevNull) ToPointer() *DevNull { - return &e -} -func (e *DevNull) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "dev-null": - *e = DevNull(v) - return nil - default: - return fmt.Errorf("invalid value for DevNull: %v", v) - } -} - -type DestinationDevNullTestDestinationType string - -const ( - DestinationDevNullTestDestinationTypeSilent DestinationDevNullTestDestinationType = "SILENT" -) - -func (e DestinationDevNullTestDestinationType) ToPointer() *DestinationDevNullTestDestinationType { - return &e -} -func (e *DestinationDevNullTestDestinationType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "SILENT": - *e = DestinationDevNullTestDestinationType(v) - return nil - default: - return fmt.Errorf("invalid value for DestinationDevNullTestDestinationType: %v", v) - } -} - -type DestinationDevNullSilent struct { - testDestinationType *DestinationDevNullTestDestinationType `const:"SILENT" json:"test_destination_type"` -} - -func (d DestinationDevNullSilent) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DestinationDevNullSilent) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { - return err - } - return nil -} - -func (o *DestinationDevNullSilent) GetTestDestinationType() *DestinationDevNullTestDestinationType { - return DestinationDevNullTestDestinationTypeSilent.ToPointer() -} - -type DestinationDevNullTestDestinationUnionType string - -const ( - DestinationDevNullTestDestinationUnionTypeDestinationDevNullSilent DestinationDevNullTestDestinationUnionType = "destination-dev-null_Silent" -) - -// DestinationDevNullTestDestination - The type of destination to be used -type DestinationDevNullTestDestination struct { - DestinationDevNullSilent *DestinationDevNullSilent - - Type DestinationDevNullTestDestinationUnionType -} - -func CreateDestinationDevNullTestDestinationDestinationDevNullSilent(destinationDevNullSilent DestinationDevNullSilent) DestinationDevNullTestDestination { - typ := DestinationDevNullTestDestinationUnionTypeDestinationDevNullSilent - - return DestinationDevNullTestDestination{ - DestinationDevNullSilent: &destinationDevNullSilent, - Type: typ, - } -} - -func (u *DestinationDevNullTestDestination) UnmarshalJSON(data []byte) error { - - var destinationDevNullSilent DestinationDevNullSilent = DestinationDevNullSilent{} - if err := utils.UnmarshalJSON(data, &destinationDevNullSilent, "", true, true); err == nil { - u.DestinationDevNullSilent = &destinationDevNullSilent - u.Type = DestinationDevNullTestDestinationUnionTypeDestinationDevNullSilent - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationDevNullTestDestination", string(data)) -} - -func (u DestinationDevNullTestDestination) MarshalJSON() ([]byte, error) { - if u.DestinationDevNullSilent != nil { - return utils.MarshalJSON(u.DestinationDevNullSilent, "", true) - } - - return nil, errors.New("could not marshal union type DestinationDevNullTestDestination: all fields are null") -} - -type DestinationDevNull struct { - destinationType DevNull `const:"dev-null" json:"destinationType"` - // The type of destination to be used - TestDestination DestinationDevNullTestDestination `json:"test_destination"` -} - -func (d DestinationDevNull) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DestinationDevNull) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { - return err - } - return nil -} - -func (o *DestinationDevNull) GetDestinationType() DevNull { - return DevNullDevNull -} - -func (o *DestinationDevNull) GetTestDestination() DestinationDevNullTestDestination { - if o == nil { - return DestinationDevNullTestDestination{} - } - return o.TestDestination -} diff --git a/internal/sdk/models/shared/destinationdevnullcreaterequest.go b/internal/sdk/models/shared/destinationdevnullcreaterequest.go deleted file mode 100644 index c55a831d1..000000000 --- a/internal/sdk/models/shared/destinationdevnullcreaterequest.go +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -type DestinationDevNullCreateRequest struct { - Configuration DestinationDevNull `json:"configuration"` - // The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. - DefinitionID *string `json:"definitionId,omitempty"` - // Name of the destination e.g. dev-mysql-instance. - Name string `json:"name"` - WorkspaceID string `json:"workspaceId"` -} - -func (o *DestinationDevNullCreateRequest) GetConfiguration() DestinationDevNull { - if o == nil { - return DestinationDevNull{} - } - return o.Configuration -} - -func (o *DestinationDevNullCreateRequest) GetDefinitionID() *string { - if o == nil { - return nil - } - return o.DefinitionID -} - -func (o *DestinationDevNullCreateRequest) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *DestinationDevNullCreateRequest) GetWorkspaceID() string { - if o == nil { - return "" - } - return o.WorkspaceID -} diff --git a/internal/sdk/models/shared/destinationdevnullupdate.go b/internal/sdk/models/shared/destinationdevnullupdate.go deleted file mode 100644 index 3595cdd6a..000000000 --- a/internal/sdk/models/shared/destinationdevnullupdate.go +++ /dev/null @@ -1,106 +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 TestDestinationType string - -const ( - TestDestinationTypeSilent TestDestinationType = "SILENT" -) - -func (e TestDestinationType) ToPointer() *TestDestinationType { - return &e -} -func (e *TestDestinationType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "SILENT": - *e = TestDestinationType(v) - return nil - default: - return fmt.Errorf("invalid value for TestDestinationType: %v", v) - } -} - -type Silent struct { - testDestinationType *TestDestinationType `const:"SILENT" json:"test_destination_type"` -} - -func (s Silent) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *Silent) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *Silent) GetTestDestinationType() *TestDestinationType { - return TestDestinationTypeSilent.ToPointer() -} - -type TestDestinationUnionType string - -const ( - TestDestinationUnionTypeSilent TestDestinationUnionType = "Silent" -) - -// TestDestination - The type of destination to be used -type TestDestination struct { - Silent *Silent - - Type TestDestinationUnionType -} - -func CreateTestDestinationSilent(silent Silent) TestDestination { - typ := TestDestinationUnionTypeSilent - - return TestDestination{ - Silent: &silent, - Type: typ, - } -} - -func (u *TestDestination) UnmarshalJSON(data []byte) error { - - var silent Silent = Silent{} - if err := utils.UnmarshalJSON(data, &silent, "", true, true); err == nil { - u.Silent = &silent - u.Type = TestDestinationUnionTypeSilent - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for TestDestination", string(data)) -} - -func (u TestDestination) MarshalJSON() ([]byte, error) { - if u.Silent != nil { - return utils.MarshalJSON(u.Silent, "", true) - } - - return nil, errors.New("could not marshal union type TestDestination: all fields are null") -} - -type DestinationDevNullUpdate struct { - // The type of destination to be used - TestDestination TestDestination `json:"test_destination"` -} - -func (o *DestinationDevNullUpdate) GetTestDestination() TestDestination { - if o == nil { - return TestDestination{} - } - return o.TestDestination -} diff --git a/internal/sdk/models/shared/destinationelasticsearch.go b/internal/sdk/models/shared/destinationelasticsearch.go index 4b4862b0f..c8e4b806f 100644 --- a/internal/sdk/models/shared/destinationelasticsearch.go +++ b/internal/sdk/models/shared/destinationelasticsearch.go @@ -9,32 +9,32 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" ) -type DestinationElasticsearchSchemasMethod string +type DestinationElasticsearchSchemasAuthenticationMethodMethod string const ( - DestinationElasticsearchSchemasMethodBasic DestinationElasticsearchSchemasMethod = "basic" + DestinationElasticsearchSchemasAuthenticationMethodMethodBasic DestinationElasticsearchSchemasAuthenticationMethodMethod = "basic" ) -func (e DestinationElasticsearchSchemasMethod) ToPointer() *DestinationElasticsearchSchemasMethod { +func (e DestinationElasticsearchSchemasAuthenticationMethodMethod) ToPointer() *DestinationElasticsearchSchemasAuthenticationMethodMethod { return &e } -func (e *DestinationElasticsearchSchemasMethod) UnmarshalJSON(data []byte) error { +func (e *DestinationElasticsearchSchemasAuthenticationMethodMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "basic": - *e = DestinationElasticsearchSchemasMethod(v) + *e = DestinationElasticsearchSchemasAuthenticationMethodMethod(v) return nil default: - return fmt.Errorf("invalid value for DestinationElasticsearchSchemasMethod: %v", v) + return fmt.Errorf("invalid value for DestinationElasticsearchSchemasAuthenticationMethodMethod: %v", v) } } // DestinationElasticsearchUsernamePassword - Basic auth header with a username and password type DestinationElasticsearchUsernamePassword struct { - method DestinationElasticsearchSchemasMethod `const:"basic" json:"method"` + method DestinationElasticsearchSchemasAuthenticationMethodMethod `const:"basic" json:"method"` // Basic auth password to access a secure Elasticsearch server Password string `json:"password"` // Basic auth username to access a secure Elasticsearch server @@ -52,8 +52,8 @@ func (d *DestinationElasticsearchUsernamePassword) UnmarshalJSON(data []byte) er return nil } -func (o *DestinationElasticsearchUsernamePassword) GetMethod() DestinationElasticsearchSchemasMethod { - return DestinationElasticsearchSchemasMethodBasic +func (o *DestinationElasticsearchUsernamePassword) GetMethod() DestinationElasticsearchSchemasAuthenticationMethodMethod { + return DestinationElasticsearchSchemasAuthenticationMethodMethodBasic } func (o *DestinationElasticsearchUsernamePassword) GetPassword() string { @@ -70,26 +70,26 @@ func (o *DestinationElasticsearchUsernamePassword) GetUsername() string { return o.Username } -type DestinationElasticsearchMethod string +type DestinationElasticsearchSchemasMethod string const ( - DestinationElasticsearchMethodSecret DestinationElasticsearchMethod = "secret" + DestinationElasticsearchSchemasMethodSecret DestinationElasticsearchSchemasMethod = "secret" ) -func (e DestinationElasticsearchMethod) ToPointer() *DestinationElasticsearchMethod { +func (e DestinationElasticsearchSchemasMethod) ToPointer() *DestinationElasticsearchSchemasMethod { return &e } -func (e *DestinationElasticsearchMethod) UnmarshalJSON(data []byte) error { +func (e *DestinationElasticsearchSchemasMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "secret": - *e = DestinationElasticsearchMethod(v) + *e = DestinationElasticsearchSchemasMethod(v) return nil default: - return fmt.Errorf("invalid value for DestinationElasticsearchMethod: %v", v) + return fmt.Errorf("invalid value for DestinationElasticsearchSchemasMethod: %v", v) } } @@ -98,8 +98,8 @@ type DestinationElasticsearchAPIKeySecret struct { // The Key ID to used when accessing an enterprise Elasticsearch instance. APIKeyID string `json:"apiKeyId"` // The secret associated with the API Key ID. - APIKeySecret string `json:"apiKeySecret"` - method DestinationElasticsearchMethod `const:"secret" json:"method"` + APIKeySecret string `json:"apiKeySecret"` + method DestinationElasticsearchSchemasMethod `const:"secret" json:"method"` } func (d DestinationElasticsearchAPIKeySecret) MarshalJSON() ([]byte, error) { @@ -127,25 +127,79 @@ func (o *DestinationElasticsearchAPIKeySecret) GetAPIKeySecret() string { return o.APIKeySecret } -func (o *DestinationElasticsearchAPIKeySecret) GetMethod() DestinationElasticsearchMethod { - return DestinationElasticsearchMethodSecret +func (o *DestinationElasticsearchAPIKeySecret) GetMethod() DestinationElasticsearchSchemasMethod { + return DestinationElasticsearchSchemasMethodSecret +} + +type DestinationElasticsearchMethod string + +const ( + DestinationElasticsearchMethodNone DestinationElasticsearchMethod = "none" +) + +func (e DestinationElasticsearchMethod) ToPointer() *DestinationElasticsearchMethod { + return &e +} +func (e *DestinationElasticsearchMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "none": + *e = DestinationElasticsearchMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationElasticsearchMethod: %v", v) + } +} + +// DestinationElasticsearchNone - No authentication will be used +type DestinationElasticsearchNone struct { + method DestinationElasticsearchMethod `const:"none" json:"method"` +} + +func (d DestinationElasticsearchNone) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationElasticsearchNone) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationElasticsearchNone) GetMethod() DestinationElasticsearchMethod { + return DestinationElasticsearchMethodNone } type DestinationElasticsearchAuthenticationMethodType string const ( + DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchNone DestinationElasticsearchAuthenticationMethodType = "destination-elasticsearch_None" DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchAPIKeySecret DestinationElasticsearchAuthenticationMethodType = "destination-elasticsearch_Api Key/Secret" DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchUsernamePassword DestinationElasticsearchAuthenticationMethodType = "destination-elasticsearch_Username/Password" ) // DestinationElasticsearchAuthenticationMethod - The type of authentication to be used type DestinationElasticsearchAuthenticationMethod struct { + DestinationElasticsearchNone *DestinationElasticsearchNone DestinationElasticsearchAPIKeySecret *DestinationElasticsearchAPIKeySecret DestinationElasticsearchUsernamePassword *DestinationElasticsearchUsernamePassword Type DestinationElasticsearchAuthenticationMethodType } +func CreateDestinationElasticsearchAuthenticationMethodDestinationElasticsearchNone(destinationElasticsearchNone DestinationElasticsearchNone) DestinationElasticsearchAuthenticationMethod { + typ := DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchNone + + return DestinationElasticsearchAuthenticationMethod{ + DestinationElasticsearchNone: &destinationElasticsearchNone, + Type: typ, + } +} + func CreateDestinationElasticsearchAuthenticationMethodDestinationElasticsearchAPIKeySecret(destinationElasticsearchAPIKeySecret DestinationElasticsearchAPIKeySecret) DestinationElasticsearchAuthenticationMethod { typ := DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchAPIKeySecret @@ -166,6 +220,13 @@ func CreateDestinationElasticsearchAuthenticationMethodDestinationElasticsearchU func (u *DestinationElasticsearchAuthenticationMethod) UnmarshalJSON(data []byte) error { + var destinationElasticsearchNone DestinationElasticsearchNone = DestinationElasticsearchNone{} + if err := utils.UnmarshalJSON(data, &destinationElasticsearchNone, "", true, true); err == nil { + u.DestinationElasticsearchNone = &destinationElasticsearchNone + u.Type = DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchNone + return nil + } + var destinationElasticsearchAPIKeySecret DestinationElasticsearchAPIKeySecret = DestinationElasticsearchAPIKeySecret{} if err := utils.UnmarshalJSON(data, &destinationElasticsearchAPIKeySecret, "", true, true); err == nil { u.DestinationElasticsearchAPIKeySecret = &destinationElasticsearchAPIKeySecret @@ -184,6 +245,10 @@ func (u *DestinationElasticsearchAuthenticationMethod) UnmarshalJSON(data []byte } func (u DestinationElasticsearchAuthenticationMethod) MarshalJSON() ([]byte, error) { + if u.DestinationElasticsearchNone != nil { + return utils.MarshalJSON(u.DestinationElasticsearchNone, "", true) + } + if u.DestinationElasticsearchAPIKeySecret != nil { return utils.MarshalJSON(u.DestinationElasticsearchAPIKeySecret, "", true) } @@ -218,6 +283,296 @@ func (e *Elasticsearch) UnmarshalJSON(data []byte) error { } } +// DestinationElasticsearchSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication +type DestinationElasticsearchSchemasTunnelMethodTunnelMethod string + +const ( + DestinationElasticsearchSchemasTunnelMethodTunnelMethodSSHPasswordAuth DestinationElasticsearchSchemasTunnelMethodTunnelMethod = "SSH_PASSWORD_AUTH" +) + +func (e DestinationElasticsearchSchemasTunnelMethodTunnelMethod) ToPointer() *DestinationElasticsearchSchemasTunnelMethodTunnelMethod { + return &e +} +func (e *DestinationElasticsearchSchemasTunnelMethodTunnelMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "SSH_PASSWORD_AUTH": + *e = DestinationElasticsearchSchemasTunnelMethodTunnelMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationElasticsearchSchemasTunnelMethodTunnelMethod: %v", v) + } +} + +type DestinationElasticsearchPasswordAuthentication struct { + // Hostname of the jump server host that allows inbound ssh tunnel. + TunnelHost string `json:"tunnel_host"` + // Connect through a jump server tunnel host using username and password authentication + tunnelMethod DestinationElasticsearchSchemasTunnelMethodTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"` + // Port on the proxy/jump server that accepts inbound ssh connections. + TunnelPort *int64 `default:"22" json:"tunnel_port"` + // OS-level username for logging into the jump server host + TunnelUser string `json:"tunnel_user"` + // OS-level password for logging into the jump server host + TunnelUserPassword string `json:"tunnel_user_password"` +} + +func (d DestinationElasticsearchPasswordAuthentication) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationElasticsearchPasswordAuthentication) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationElasticsearchPasswordAuthentication) GetTunnelHost() string { + if o == nil { + return "" + } + return o.TunnelHost +} + +func (o *DestinationElasticsearchPasswordAuthentication) GetTunnelMethod() DestinationElasticsearchSchemasTunnelMethodTunnelMethod { + return DestinationElasticsearchSchemasTunnelMethodTunnelMethodSSHPasswordAuth +} + +func (o *DestinationElasticsearchPasswordAuthentication) GetTunnelPort() *int64 { + if o == nil { + return nil + } + return o.TunnelPort +} + +func (o *DestinationElasticsearchPasswordAuthentication) GetTunnelUser() string { + if o == nil { + return "" + } + return o.TunnelUser +} + +func (o *DestinationElasticsearchPasswordAuthentication) GetTunnelUserPassword() string { + if o == nil { + return "" + } + return o.TunnelUserPassword +} + +// DestinationElasticsearchSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key +type DestinationElasticsearchSchemasTunnelMethod string + +const ( + DestinationElasticsearchSchemasTunnelMethodSSHKeyAuth DestinationElasticsearchSchemasTunnelMethod = "SSH_KEY_AUTH" +) + +func (e DestinationElasticsearchSchemasTunnelMethod) ToPointer() *DestinationElasticsearchSchemasTunnelMethod { + return &e +} +func (e *DestinationElasticsearchSchemasTunnelMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "SSH_KEY_AUTH": + *e = DestinationElasticsearchSchemasTunnelMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationElasticsearchSchemasTunnelMethod: %v", v) + } +} + +type DestinationElasticsearchSSHKeyAuthentication struct { + // OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + SSHKey string `json:"ssh_key"` + // Hostname of the jump server host that allows inbound ssh tunnel. + TunnelHost string `json:"tunnel_host"` + // Connect through a jump server tunnel host using username and ssh key + tunnelMethod DestinationElasticsearchSchemasTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"` + // Port on the proxy/jump server that accepts inbound ssh connections. + TunnelPort *int64 `default:"22" json:"tunnel_port"` + // OS-level username for logging into the jump server host. + TunnelUser string `json:"tunnel_user"` +} + +func (d DestinationElasticsearchSSHKeyAuthentication) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationElasticsearchSSHKeyAuthentication) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationElasticsearchSSHKeyAuthentication) GetSSHKey() string { + if o == nil { + return "" + } + return o.SSHKey +} + +func (o *DestinationElasticsearchSSHKeyAuthentication) GetTunnelHost() string { + if o == nil { + return "" + } + return o.TunnelHost +} + +func (o *DestinationElasticsearchSSHKeyAuthentication) GetTunnelMethod() DestinationElasticsearchSchemasTunnelMethod { + return DestinationElasticsearchSchemasTunnelMethodSSHKeyAuth +} + +func (o *DestinationElasticsearchSSHKeyAuthentication) GetTunnelPort() *int64 { + if o == nil { + return nil + } + return o.TunnelPort +} + +func (o *DestinationElasticsearchSSHKeyAuthentication) GetTunnelUser() string { + if o == nil { + return "" + } + return o.TunnelUser +} + +// DestinationElasticsearchTunnelMethod - No ssh tunnel needed to connect to database +type DestinationElasticsearchTunnelMethod string + +const ( + DestinationElasticsearchTunnelMethodNoTunnel DestinationElasticsearchTunnelMethod = "NO_TUNNEL" +) + +func (e DestinationElasticsearchTunnelMethod) ToPointer() *DestinationElasticsearchTunnelMethod { + return &e +} +func (e *DestinationElasticsearchTunnelMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "NO_TUNNEL": + *e = DestinationElasticsearchTunnelMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationElasticsearchTunnelMethod: %v", v) + } +} + +type DestinationElasticsearchNoTunnel struct { + // No ssh tunnel needed to connect to database + tunnelMethod DestinationElasticsearchTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"` +} + +func (d DestinationElasticsearchNoTunnel) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationElasticsearchNoTunnel) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationElasticsearchNoTunnel) GetTunnelMethod() DestinationElasticsearchTunnelMethod { + return DestinationElasticsearchTunnelMethodNoTunnel +} + +type DestinationElasticsearchSSHTunnelMethodType string + +const ( + DestinationElasticsearchSSHTunnelMethodTypeDestinationElasticsearchNoTunnel DestinationElasticsearchSSHTunnelMethodType = "destination-elasticsearch_No Tunnel" + DestinationElasticsearchSSHTunnelMethodTypeDestinationElasticsearchSSHKeyAuthentication DestinationElasticsearchSSHTunnelMethodType = "destination-elasticsearch_SSH Key Authentication" + DestinationElasticsearchSSHTunnelMethodTypeDestinationElasticsearchPasswordAuthentication DestinationElasticsearchSSHTunnelMethodType = "destination-elasticsearch_Password Authentication" +) + +// DestinationElasticsearchSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. +type DestinationElasticsearchSSHTunnelMethod struct { + DestinationElasticsearchNoTunnel *DestinationElasticsearchNoTunnel + DestinationElasticsearchSSHKeyAuthentication *DestinationElasticsearchSSHKeyAuthentication + DestinationElasticsearchPasswordAuthentication *DestinationElasticsearchPasswordAuthentication + + Type DestinationElasticsearchSSHTunnelMethodType +} + +func CreateDestinationElasticsearchSSHTunnelMethodDestinationElasticsearchNoTunnel(destinationElasticsearchNoTunnel DestinationElasticsearchNoTunnel) DestinationElasticsearchSSHTunnelMethod { + typ := DestinationElasticsearchSSHTunnelMethodTypeDestinationElasticsearchNoTunnel + + return DestinationElasticsearchSSHTunnelMethod{ + DestinationElasticsearchNoTunnel: &destinationElasticsearchNoTunnel, + Type: typ, + } +} + +func CreateDestinationElasticsearchSSHTunnelMethodDestinationElasticsearchSSHKeyAuthentication(destinationElasticsearchSSHKeyAuthentication DestinationElasticsearchSSHKeyAuthentication) DestinationElasticsearchSSHTunnelMethod { + typ := DestinationElasticsearchSSHTunnelMethodTypeDestinationElasticsearchSSHKeyAuthentication + + return DestinationElasticsearchSSHTunnelMethod{ + DestinationElasticsearchSSHKeyAuthentication: &destinationElasticsearchSSHKeyAuthentication, + Type: typ, + } +} + +func CreateDestinationElasticsearchSSHTunnelMethodDestinationElasticsearchPasswordAuthentication(destinationElasticsearchPasswordAuthentication DestinationElasticsearchPasswordAuthentication) DestinationElasticsearchSSHTunnelMethod { + typ := DestinationElasticsearchSSHTunnelMethodTypeDestinationElasticsearchPasswordAuthentication + + return DestinationElasticsearchSSHTunnelMethod{ + DestinationElasticsearchPasswordAuthentication: &destinationElasticsearchPasswordAuthentication, + Type: typ, + } +} + +func (u *DestinationElasticsearchSSHTunnelMethod) UnmarshalJSON(data []byte) error { + + var destinationElasticsearchNoTunnel DestinationElasticsearchNoTunnel = DestinationElasticsearchNoTunnel{} + if err := utils.UnmarshalJSON(data, &destinationElasticsearchNoTunnel, "", true, true); err == nil { + u.DestinationElasticsearchNoTunnel = &destinationElasticsearchNoTunnel + u.Type = DestinationElasticsearchSSHTunnelMethodTypeDestinationElasticsearchNoTunnel + return nil + } + + var destinationElasticsearchSSHKeyAuthentication DestinationElasticsearchSSHKeyAuthentication = DestinationElasticsearchSSHKeyAuthentication{} + if err := utils.UnmarshalJSON(data, &destinationElasticsearchSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationElasticsearchSSHKeyAuthentication = &destinationElasticsearchSSHKeyAuthentication + u.Type = DestinationElasticsearchSSHTunnelMethodTypeDestinationElasticsearchSSHKeyAuthentication + return nil + } + + var destinationElasticsearchPasswordAuthentication DestinationElasticsearchPasswordAuthentication = DestinationElasticsearchPasswordAuthentication{} + if err := utils.UnmarshalJSON(data, &destinationElasticsearchPasswordAuthentication, "", true, true); err == nil { + u.DestinationElasticsearchPasswordAuthentication = &destinationElasticsearchPasswordAuthentication + u.Type = DestinationElasticsearchSSHTunnelMethodTypeDestinationElasticsearchPasswordAuthentication + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationElasticsearchSSHTunnelMethod", string(data)) +} + +func (u DestinationElasticsearchSSHTunnelMethod) MarshalJSON() ([]byte, error) { + if u.DestinationElasticsearchNoTunnel != nil { + return utils.MarshalJSON(u.DestinationElasticsearchNoTunnel, "", true) + } + + if u.DestinationElasticsearchSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationElasticsearchSSHKeyAuthentication, "", true) + } + + if u.DestinationElasticsearchPasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationElasticsearchPasswordAuthentication, "", true) + } + + return nil, errors.New("could not marshal union type DestinationElasticsearchSSHTunnelMethod: all fields are null") +} + type DestinationElasticsearch struct { // The type of authentication to be used AuthenticationMethod *DestinationElasticsearchAuthenticationMethod `json:"authenticationMethod,omitempty"` @@ -226,6 +581,8 @@ type DestinationElasticsearch struct { destinationType Elasticsearch `const:"elasticsearch" json:"destinationType"` // The full url of the Elasticsearch server Endpoint string `json:"endpoint"` + // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + TunnelMethod *DestinationElasticsearchSSHTunnelMethod `json:"tunnel_method,omitempty"` // 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. Upsert *bool `default:"true" json:"upsert"` } @@ -266,6 +623,13 @@ func (o *DestinationElasticsearch) GetEndpoint() string { return o.Endpoint } +func (o *DestinationElasticsearch) GetTunnelMethod() *DestinationElasticsearchSSHTunnelMethod { + if o == nil { + return nil + } + return o.TunnelMethod +} + func (o *DestinationElasticsearch) GetUpsert() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/destinationelasticsearchupdate.go b/internal/sdk/models/shared/destinationelasticsearchupdate.go index deec7ea2f..f5b90fee2 100644 --- a/internal/sdk/models/shared/destinationelasticsearchupdate.go +++ b/internal/sdk/models/shared/destinationelasticsearchupdate.go @@ -9,32 +9,32 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" ) -type DestinationElasticsearchUpdateSchemasMethod string +type DestinationElasticsearchUpdateSchemasAuthenticationMethodMethod string const ( - DestinationElasticsearchUpdateSchemasMethodBasic DestinationElasticsearchUpdateSchemasMethod = "basic" + DestinationElasticsearchUpdateSchemasAuthenticationMethodMethodBasic DestinationElasticsearchUpdateSchemasAuthenticationMethodMethod = "basic" ) -func (e DestinationElasticsearchUpdateSchemasMethod) ToPointer() *DestinationElasticsearchUpdateSchemasMethod { +func (e DestinationElasticsearchUpdateSchemasAuthenticationMethodMethod) ToPointer() *DestinationElasticsearchUpdateSchemasAuthenticationMethodMethod { return &e } -func (e *DestinationElasticsearchUpdateSchemasMethod) UnmarshalJSON(data []byte) error { +func (e *DestinationElasticsearchUpdateSchemasAuthenticationMethodMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "basic": - *e = DestinationElasticsearchUpdateSchemasMethod(v) + *e = DestinationElasticsearchUpdateSchemasAuthenticationMethodMethod(v) return nil default: - return fmt.Errorf("invalid value for DestinationElasticsearchUpdateSchemasMethod: %v", v) + return fmt.Errorf("invalid value for DestinationElasticsearchUpdateSchemasAuthenticationMethodMethod: %v", v) } } // UsernamePassword - Basic auth header with a username and password type UsernamePassword struct { - method DestinationElasticsearchUpdateSchemasMethod `const:"basic" json:"method"` + method DestinationElasticsearchUpdateSchemasAuthenticationMethodMethod `const:"basic" json:"method"` // Basic auth password to access a secure Elasticsearch server Password string `json:"password"` // Basic auth username to access a secure Elasticsearch server @@ -52,8 +52,8 @@ func (u *UsernamePassword) UnmarshalJSON(data []byte) error { return nil } -func (o *UsernamePassword) GetMethod() DestinationElasticsearchUpdateSchemasMethod { - return DestinationElasticsearchUpdateSchemasMethodBasic +func (o *UsernamePassword) GetMethod() DestinationElasticsearchUpdateSchemasAuthenticationMethodMethod { + return DestinationElasticsearchUpdateSchemasAuthenticationMethodMethodBasic } func (o *UsernamePassword) GetPassword() string { @@ -70,26 +70,26 @@ func (o *UsernamePassword) GetUsername() string { return o.Username } -type DestinationElasticsearchUpdateMethod string +type DestinationElasticsearchUpdateSchemasMethod string const ( - DestinationElasticsearchUpdateMethodSecret DestinationElasticsearchUpdateMethod = "secret" + DestinationElasticsearchUpdateSchemasMethodSecret DestinationElasticsearchUpdateSchemasMethod = "secret" ) -func (e DestinationElasticsearchUpdateMethod) ToPointer() *DestinationElasticsearchUpdateMethod { +func (e DestinationElasticsearchUpdateSchemasMethod) ToPointer() *DestinationElasticsearchUpdateSchemasMethod { return &e } -func (e *DestinationElasticsearchUpdateMethod) UnmarshalJSON(data []byte) error { +func (e *DestinationElasticsearchUpdateSchemasMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "secret": - *e = DestinationElasticsearchUpdateMethod(v) + *e = DestinationElasticsearchUpdateSchemasMethod(v) return nil default: - return fmt.Errorf("invalid value for DestinationElasticsearchUpdateMethod: %v", v) + return fmt.Errorf("invalid value for DestinationElasticsearchUpdateSchemasMethod: %v", v) } } @@ -98,8 +98,8 @@ type APIKeySecret struct { // The Key ID to used when accessing an enterprise Elasticsearch instance. APIKeyID string `json:"apiKeyId"` // The secret associated with the API Key ID. - APIKeySecret string `json:"apiKeySecret"` - method DestinationElasticsearchUpdateMethod `const:"secret" json:"method"` + APIKeySecret string `json:"apiKeySecret"` + method DestinationElasticsearchUpdateSchemasMethod `const:"secret" json:"method"` } func (a APIKeySecret) MarshalJSON() ([]byte, error) { @@ -127,25 +127,79 @@ func (o *APIKeySecret) GetAPIKeySecret() string { return o.APIKeySecret } -func (o *APIKeySecret) GetMethod() DestinationElasticsearchUpdateMethod { - return DestinationElasticsearchUpdateMethodSecret +func (o *APIKeySecret) GetMethod() DestinationElasticsearchUpdateSchemasMethod { + return DestinationElasticsearchUpdateSchemasMethodSecret +} + +type DestinationElasticsearchUpdateMethod string + +const ( + DestinationElasticsearchUpdateMethodNone DestinationElasticsearchUpdateMethod = "none" +) + +func (e DestinationElasticsearchUpdateMethod) ToPointer() *DestinationElasticsearchUpdateMethod { + return &e +} +func (e *DestinationElasticsearchUpdateMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "none": + *e = DestinationElasticsearchUpdateMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationElasticsearchUpdateMethod: %v", v) + } +} + +// None - No authentication will be used +type None struct { + method DestinationElasticsearchUpdateMethod `const:"none" json:"method"` +} + +func (n None) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *None) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, true); err != nil { + return err + } + return nil +} + +func (o *None) GetMethod() DestinationElasticsearchUpdateMethod { + return DestinationElasticsearchUpdateMethodNone } type AuthenticationMethodType string const ( + AuthenticationMethodTypeNone AuthenticationMethodType = "None" AuthenticationMethodTypeAPIKeySecret AuthenticationMethodType = "Api Key/Secret" AuthenticationMethodTypeUsernamePassword AuthenticationMethodType = "Username/Password" ) // AuthenticationMethod - The type of authentication to be used type AuthenticationMethod struct { + None *None APIKeySecret *APIKeySecret UsernamePassword *UsernamePassword Type AuthenticationMethodType } +func CreateAuthenticationMethodNone(none None) AuthenticationMethod { + typ := AuthenticationMethodTypeNone + + return AuthenticationMethod{ + None: &none, + Type: typ, + } +} + func CreateAuthenticationMethodAPIKeySecret(apiKeySecret APIKeySecret) AuthenticationMethod { typ := AuthenticationMethodTypeAPIKeySecret @@ -166,6 +220,13 @@ func CreateAuthenticationMethodUsernamePassword(usernamePassword UsernamePasswor func (u *AuthenticationMethod) UnmarshalJSON(data []byte) error { + var none None = None{} + if err := utils.UnmarshalJSON(data, &none, "", true, true); err == nil { + u.None = &none + u.Type = AuthenticationMethodTypeNone + return nil + } + var apiKeySecret APIKeySecret = APIKeySecret{} if err := utils.UnmarshalJSON(data, &apiKeySecret, "", true, true); err == nil { u.APIKeySecret = &apiKeySecret @@ -184,6 +245,10 @@ func (u *AuthenticationMethod) UnmarshalJSON(data []byte) error { } func (u AuthenticationMethod) MarshalJSON() ([]byte, error) { + if u.None != nil { + return utils.MarshalJSON(u.None, "", true) + } + if u.APIKeySecret != nil { return utils.MarshalJSON(u.APIKeySecret, "", true) } @@ -195,6 +260,296 @@ func (u AuthenticationMethod) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type AuthenticationMethod: all fields are null") } +// DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication +type DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod string + +const ( + DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethodSSHPasswordAuth DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod = "SSH_PASSWORD_AUTH" +) + +func (e DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod) ToPointer() *DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod { + return &e +} +func (e *DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "SSH_PASSWORD_AUTH": + *e = DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod: %v", v) + } +} + +type DestinationElasticsearchUpdatePasswordAuthentication struct { + // Hostname of the jump server host that allows inbound ssh tunnel. + TunnelHost string `json:"tunnel_host"` + // Connect through a jump server tunnel host using username and password authentication + tunnelMethod DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"` + // Port on the proxy/jump server that accepts inbound ssh connections. + TunnelPort *int64 `default:"22" json:"tunnel_port"` + // OS-level username for logging into the jump server host + TunnelUser string `json:"tunnel_user"` + // OS-level password for logging into the jump server host + TunnelUserPassword string `json:"tunnel_user_password"` +} + +func (d DestinationElasticsearchUpdatePasswordAuthentication) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationElasticsearchUpdatePasswordAuthentication) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationElasticsearchUpdatePasswordAuthentication) GetTunnelHost() string { + if o == nil { + return "" + } + return o.TunnelHost +} + +func (o *DestinationElasticsearchUpdatePasswordAuthentication) GetTunnelMethod() DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethod { + return DestinationElasticsearchUpdateSchemasTunnelMethodTunnelMethodSSHPasswordAuth +} + +func (o *DestinationElasticsearchUpdatePasswordAuthentication) GetTunnelPort() *int64 { + if o == nil { + return nil + } + return o.TunnelPort +} + +func (o *DestinationElasticsearchUpdatePasswordAuthentication) GetTunnelUser() string { + if o == nil { + return "" + } + return o.TunnelUser +} + +func (o *DestinationElasticsearchUpdatePasswordAuthentication) GetTunnelUserPassword() string { + if o == nil { + return "" + } + return o.TunnelUserPassword +} + +// DestinationElasticsearchUpdateSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key +type DestinationElasticsearchUpdateSchemasTunnelMethod string + +const ( + DestinationElasticsearchUpdateSchemasTunnelMethodSSHKeyAuth DestinationElasticsearchUpdateSchemasTunnelMethod = "SSH_KEY_AUTH" +) + +func (e DestinationElasticsearchUpdateSchemasTunnelMethod) ToPointer() *DestinationElasticsearchUpdateSchemasTunnelMethod { + return &e +} +func (e *DestinationElasticsearchUpdateSchemasTunnelMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "SSH_KEY_AUTH": + *e = DestinationElasticsearchUpdateSchemasTunnelMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationElasticsearchUpdateSchemasTunnelMethod: %v", v) + } +} + +type DestinationElasticsearchUpdateSSHKeyAuthentication struct { + // OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + SSHKey string `json:"ssh_key"` + // Hostname of the jump server host that allows inbound ssh tunnel. + TunnelHost string `json:"tunnel_host"` + // Connect through a jump server tunnel host using username and ssh key + tunnelMethod DestinationElasticsearchUpdateSchemasTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"` + // Port on the proxy/jump server that accepts inbound ssh connections. + TunnelPort *int64 `default:"22" json:"tunnel_port"` + // OS-level username for logging into the jump server host. + TunnelUser string `json:"tunnel_user"` +} + +func (d DestinationElasticsearchUpdateSSHKeyAuthentication) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationElasticsearchUpdateSSHKeyAuthentication) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationElasticsearchUpdateSSHKeyAuthentication) GetSSHKey() string { + if o == nil { + return "" + } + return o.SSHKey +} + +func (o *DestinationElasticsearchUpdateSSHKeyAuthentication) GetTunnelHost() string { + if o == nil { + return "" + } + return o.TunnelHost +} + +func (o *DestinationElasticsearchUpdateSSHKeyAuthentication) GetTunnelMethod() DestinationElasticsearchUpdateSchemasTunnelMethod { + return DestinationElasticsearchUpdateSchemasTunnelMethodSSHKeyAuth +} + +func (o *DestinationElasticsearchUpdateSSHKeyAuthentication) GetTunnelPort() *int64 { + if o == nil { + return nil + } + return o.TunnelPort +} + +func (o *DestinationElasticsearchUpdateSSHKeyAuthentication) GetTunnelUser() string { + if o == nil { + return "" + } + return o.TunnelUser +} + +// DestinationElasticsearchUpdateTunnelMethod - No ssh tunnel needed to connect to database +type DestinationElasticsearchUpdateTunnelMethod string + +const ( + DestinationElasticsearchUpdateTunnelMethodNoTunnel DestinationElasticsearchUpdateTunnelMethod = "NO_TUNNEL" +) + +func (e DestinationElasticsearchUpdateTunnelMethod) ToPointer() *DestinationElasticsearchUpdateTunnelMethod { + return &e +} +func (e *DestinationElasticsearchUpdateTunnelMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "NO_TUNNEL": + *e = DestinationElasticsearchUpdateTunnelMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationElasticsearchUpdateTunnelMethod: %v", v) + } +} + +type DestinationElasticsearchUpdateNoTunnel struct { + // No ssh tunnel needed to connect to database + tunnelMethod DestinationElasticsearchUpdateTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"` +} + +func (d DestinationElasticsearchUpdateNoTunnel) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationElasticsearchUpdateNoTunnel) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationElasticsearchUpdateNoTunnel) GetTunnelMethod() DestinationElasticsearchUpdateTunnelMethod { + return DestinationElasticsearchUpdateTunnelMethodNoTunnel +} + +type DestinationElasticsearchUpdateSSHTunnelMethodType string + +const ( + DestinationElasticsearchUpdateSSHTunnelMethodTypeDestinationElasticsearchUpdateNoTunnel DestinationElasticsearchUpdateSSHTunnelMethodType = "destination-elasticsearch-update_No Tunnel" + DestinationElasticsearchUpdateSSHTunnelMethodTypeDestinationElasticsearchUpdateSSHKeyAuthentication DestinationElasticsearchUpdateSSHTunnelMethodType = "destination-elasticsearch-update_SSH Key Authentication" + DestinationElasticsearchUpdateSSHTunnelMethodTypeDestinationElasticsearchUpdatePasswordAuthentication DestinationElasticsearchUpdateSSHTunnelMethodType = "destination-elasticsearch-update_Password Authentication" +) + +// DestinationElasticsearchUpdateSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. +type DestinationElasticsearchUpdateSSHTunnelMethod struct { + DestinationElasticsearchUpdateNoTunnel *DestinationElasticsearchUpdateNoTunnel + DestinationElasticsearchUpdateSSHKeyAuthentication *DestinationElasticsearchUpdateSSHKeyAuthentication + DestinationElasticsearchUpdatePasswordAuthentication *DestinationElasticsearchUpdatePasswordAuthentication + + Type DestinationElasticsearchUpdateSSHTunnelMethodType +} + +func CreateDestinationElasticsearchUpdateSSHTunnelMethodDestinationElasticsearchUpdateNoTunnel(destinationElasticsearchUpdateNoTunnel DestinationElasticsearchUpdateNoTunnel) DestinationElasticsearchUpdateSSHTunnelMethod { + typ := DestinationElasticsearchUpdateSSHTunnelMethodTypeDestinationElasticsearchUpdateNoTunnel + + return DestinationElasticsearchUpdateSSHTunnelMethod{ + DestinationElasticsearchUpdateNoTunnel: &destinationElasticsearchUpdateNoTunnel, + Type: typ, + } +} + +func CreateDestinationElasticsearchUpdateSSHTunnelMethodDestinationElasticsearchUpdateSSHKeyAuthentication(destinationElasticsearchUpdateSSHKeyAuthentication DestinationElasticsearchUpdateSSHKeyAuthentication) DestinationElasticsearchUpdateSSHTunnelMethod { + typ := DestinationElasticsearchUpdateSSHTunnelMethodTypeDestinationElasticsearchUpdateSSHKeyAuthentication + + return DestinationElasticsearchUpdateSSHTunnelMethod{ + DestinationElasticsearchUpdateSSHKeyAuthentication: &destinationElasticsearchUpdateSSHKeyAuthentication, + Type: typ, + } +} + +func CreateDestinationElasticsearchUpdateSSHTunnelMethodDestinationElasticsearchUpdatePasswordAuthentication(destinationElasticsearchUpdatePasswordAuthentication DestinationElasticsearchUpdatePasswordAuthentication) DestinationElasticsearchUpdateSSHTunnelMethod { + typ := DestinationElasticsearchUpdateSSHTunnelMethodTypeDestinationElasticsearchUpdatePasswordAuthentication + + return DestinationElasticsearchUpdateSSHTunnelMethod{ + DestinationElasticsearchUpdatePasswordAuthentication: &destinationElasticsearchUpdatePasswordAuthentication, + Type: typ, + } +} + +func (u *DestinationElasticsearchUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { + + var destinationElasticsearchUpdateNoTunnel DestinationElasticsearchUpdateNoTunnel = DestinationElasticsearchUpdateNoTunnel{} + if err := utils.UnmarshalJSON(data, &destinationElasticsearchUpdateNoTunnel, "", true, true); err == nil { + u.DestinationElasticsearchUpdateNoTunnel = &destinationElasticsearchUpdateNoTunnel + u.Type = DestinationElasticsearchUpdateSSHTunnelMethodTypeDestinationElasticsearchUpdateNoTunnel + return nil + } + + var destinationElasticsearchUpdateSSHKeyAuthentication DestinationElasticsearchUpdateSSHKeyAuthentication = DestinationElasticsearchUpdateSSHKeyAuthentication{} + if err := utils.UnmarshalJSON(data, &destinationElasticsearchUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationElasticsearchUpdateSSHKeyAuthentication = &destinationElasticsearchUpdateSSHKeyAuthentication + u.Type = DestinationElasticsearchUpdateSSHTunnelMethodTypeDestinationElasticsearchUpdateSSHKeyAuthentication + return nil + } + + var destinationElasticsearchUpdatePasswordAuthentication DestinationElasticsearchUpdatePasswordAuthentication = DestinationElasticsearchUpdatePasswordAuthentication{} + if err := utils.UnmarshalJSON(data, &destinationElasticsearchUpdatePasswordAuthentication, "", true, true); err == nil { + u.DestinationElasticsearchUpdatePasswordAuthentication = &destinationElasticsearchUpdatePasswordAuthentication + u.Type = DestinationElasticsearchUpdateSSHTunnelMethodTypeDestinationElasticsearchUpdatePasswordAuthentication + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationElasticsearchUpdateSSHTunnelMethod", string(data)) +} + +func (u DestinationElasticsearchUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { + if u.DestinationElasticsearchUpdateNoTunnel != nil { + return utils.MarshalJSON(u.DestinationElasticsearchUpdateNoTunnel, "", true) + } + + if u.DestinationElasticsearchUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationElasticsearchUpdateSSHKeyAuthentication, "", true) + } + + if u.DestinationElasticsearchUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationElasticsearchUpdatePasswordAuthentication, "", true) + } + + return nil, errors.New("could not marshal union type DestinationElasticsearchUpdateSSHTunnelMethod: all fields are null") +} + type DestinationElasticsearchUpdate struct { // The type of authentication to be used AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` @@ -202,6 +557,8 @@ type DestinationElasticsearchUpdate struct { CaCertificate *string `json:"ca_certificate,omitempty"` // The full url of the Elasticsearch server Endpoint string `json:"endpoint"` + // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + TunnelMethod *DestinationElasticsearchUpdateSSHTunnelMethod `json:"tunnel_method,omitempty"` // 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. Upsert *bool `default:"true" json:"upsert"` } @@ -238,6 +595,13 @@ func (o *DestinationElasticsearchUpdate) GetEndpoint() string { return o.Endpoint } +func (o *DestinationElasticsearchUpdate) GetTunnelMethod() *DestinationElasticsearchUpdateSSHTunnelMethod { + if o == nil { + return nil + } + return o.TunnelMethod +} + func (o *DestinationElasticsearchUpdate) GetUpsert() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/destinationmongodb.go b/internal/sdk/models/shared/destinationmongodb.go index ae1fa466f..aa3f6ebc4 100644 --- a/internal/sdk/models/shared/destinationmongodb.go +++ b/internal/sdk/models/shared/destinationmongodb.go @@ -346,6 +346,8 @@ type DestinationMongodbStandaloneMongoDbInstance struct { Instance *DestinationMongodbInstance `default:"standalone" json:"instance"` // The Port of a Mongo database to be replicated. Port *int64 `default:"27017" json:"port"` + // Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see documentation. + TLS *bool `default:"false" json:"tls"` } func (d DestinationMongodbStandaloneMongoDbInstance) MarshalJSON() ([]byte, error) { @@ -380,6 +382,13 @@ func (o *DestinationMongodbStandaloneMongoDbInstance) GetPort() *int64 { return o.Port } +func (o *DestinationMongodbStandaloneMongoDbInstance) GetTLS() *bool { + if o == nil { + return nil + } + return o.TLS +} + type DestinationMongodbMongoDbInstanceTypeType string const ( @@ -433,13 +442,6 @@ func (u *DestinationMongodbMongoDbInstanceType) UnmarshalJSON(data []byte) error return nil } - var destinationMongodbStandaloneMongoDbInstance DestinationMongodbStandaloneMongoDbInstance = DestinationMongodbStandaloneMongoDbInstance{} - if err := utils.UnmarshalJSON(data, &destinationMongodbStandaloneMongoDbInstance, "", true, true); err == nil { - u.DestinationMongodbStandaloneMongoDbInstance = &destinationMongodbStandaloneMongoDbInstance - u.Type = DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbStandaloneMongoDbInstance - return nil - } - var destinationMongodbReplicaSet DestinationMongodbReplicaSet = DestinationMongodbReplicaSet{} if err := utils.UnmarshalJSON(data, &destinationMongodbReplicaSet, "", true, true); err == nil { u.DestinationMongodbReplicaSet = &destinationMongodbReplicaSet @@ -447,6 +449,13 @@ func (u *DestinationMongodbMongoDbInstanceType) UnmarshalJSON(data []byte) error return nil } + var destinationMongodbStandaloneMongoDbInstance DestinationMongodbStandaloneMongoDbInstance = DestinationMongodbStandaloneMongoDbInstance{} + if err := utils.UnmarshalJSON(data, &destinationMongodbStandaloneMongoDbInstance, "", true, true); err == nil { + u.DestinationMongodbStandaloneMongoDbInstance = &destinationMongodbStandaloneMongoDbInstance + u.Type = DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbStandaloneMongoDbInstance + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationMongodbMongoDbInstanceType", string(data)) } diff --git a/internal/sdk/models/shared/destinationmongodbupdate.go b/internal/sdk/models/shared/destinationmongodbupdate.go index 7f6531785..534add062 100644 --- a/internal/sdk/models/shared/destinationmongodbupdate.go +++ b/internal/sdk/models/shared/destinationmongodbupdate.go @@ -93,47 +93,47 @@ func (e *Authorization) UnmarshalJSON(data []byte) error { } } -// None - None. -type None struct { +// DestinationMongodbUpdateNone - None. +type DestinationMongodbUpdateNone struct { authorization Authorization `const:"none" json:"authorization"` } -func (n None) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(n, "", false) +func (d DestinationMongodbUpdateNone) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) } -func (n *None) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &n, "", false, true); err != nil { +func (d *DestinationMongodbUpdateNone) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { return err } return nil } -func (o *None) GetAuthorization() Authorization { +func (o *DestinationMongodbUpdateNone) GetAuthorization() Authorization { return AuthorizationNone } type AuthorizationTypeType string const ( - AuthorizationTypeTypeNone AuthorizationTypeType = "None" - AuthorizationTypeTypeLoginPassword AuthorizationTypeType = "Login/Password" + AuthorizationTypeTypeDestinationMongodbUpdateNone AuthorizationTypeType = "destination-mongodb-update_None" + AuthorizationTypeTypeLoginPassword AuthorizationTypeType = "Login/Password" ) // AuthorizationType - Authorization type. type AuthorizationType struct { - None *None - LoginPassword *LoginPassword + DestinationMongodbUpdateNone *DestinationMongodbUpdateNone + LoginPassword *LoginPassword Type AuthorizationTypeType } -func CreateAuthorizationTypeNone(none None) AuthorizationType { - typ := AuthorizationTypeTypeNone +func CreateAuthorizationTypeDestinationMongodbUpdateNone(destinationMongodbUpdateNone DestinationMongodbUpdateNone) AuthorizationType { + typ := AuthorizationTypeTypeDestinationMongodbUpdateNone return AuthorizationType{ - None: &none, - Type: typ, + DestinationMongodbUpdateNone: &destinationMongodbUpdateNone, + Type: typ, } } @@ -148,10 +148,10 @@ func CreateAuthorizationTypeLoginPassword(loginPassword LoginPassword) Authoriza func (u *AuthorizationType) UnmarshalJSON(data []byte) error { - var none None = None{} - if err := utils.UnmarshalJSON(data, &none, "", true, true); err == nil { - u.None = &none - u.Type = AuthorizationTypeTypeNone + var destinationMongodbUpdateNone DestinationMongodbUpdateNone = DestinationMongodbUpdateNone{} + if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateNone, "", true, true); err == nil { + u.DestinationMongodbUpdateNone = &destinationMongodbUpdateNone + u.Type = AuthorizationTypeTypeDestinationMongodbUpdateNone return nil } @@ -166,8 +166,8 @@ func (u *AuthorizationType) UnmarshalJSON(data []byte) error { } func (u AuthorizationType) MarshalJSON() ([]byte, error) { - if u.None != nil { - return utils.MarshalJSON(u.None, "", true) + if u.DestinationMongodbUpdateNone != nil { + return utils.MarshalJSON(u.DestinationMongodbUpdateNone, "", true) } if u.LoginPassword != nil { @@ -323,6 +323,8 @@ type StandaloneMongoDbInstance struct { Instance *Instance `default:"standalone" json:"instance"` // The Port of a Mongo database to be replicated. Port *int64 `default:"27017" json:"port"` + // Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see documentation. + TLS *bool `default:"false" json:"tls"` } func (s StandaloneMongoDbInstance) MarshalJSON() ([]byte, error) { @@ -357,6 +359,13 @@ func (o *StandaloneMongoDbInstance) GetPort() *int64 { return o.Port } +func (o *StandaloneMongoDbInstance) GetTLS() *bool { + if o == nil { + return nil + } + return o.TLS +} + type MongoDbInstanceTypeType string const ( @@ -410,13 +419,6 @@ func (u *MongoDbInstanceType) UnmarshalJSON(data []byte) error { return nil } - var standaloneMongoDbInstance StandaloneMongoDbInstance = StandaloneMongoDbInstance{} - if err := utils.UnmarshalJSON(data, &standaloneMongoDbInstance, "", true, true); err == nil { - u.StandaloneMongoDbInstance = &standaloneMongoDbInstance - u.Type = MongoDbInstanceTypeTypeStandaloneMongoDbInstance - return nil - } - var replicaSet ReplicaSet = ReplicaSet{} if err := utils.UnmarshalJSON(data, &replicaSet, "", true, true); err == nil { u.ReplicaSet = &replicaSet @@ -424,6 +426,13 @@ func (u *MongoDbInstanceType) UnmarshalJSON(data []byte) error { return nil } + var standaloneMongoDbInstance StandaloneMongoDbInstance = StandaloneMongoDbInstance{} + if err := utils.UnmarshalJSON(data, &standaloneMongoDbInstance, "", true, true); err == nil { + u.StandaloneMongoDbInstance = &standaloneMongoDbInstance + u.Type = MongoDbInstanceTypeTypeStandaloneMongoDbInstance + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for MongoDbInstanceType", string(data)) } diff --git a/internal/sdk/models/shared/destinationmssql.go b/internal/sdk/models/shared/destinationmssql.go index 18faa9257..d585f4085 100644 --- a/internal/sdk/models/shared/destinationmssql.go +++ b/internal/sdk/models/shared/destinationmssql.go @@ -32,34 +32,34 @@ func (e *Mssql) UnmarshalJSON(data []byte) error { } } -type DestinationMssqlSchemasSslMethodSslMethod string +type DestinationMssqlSchemasSSLMethodSSLMethodSSLMethod string const ( - DestinationMssqlSchemasSslMethodSslMethodEncryptedVerifyCertificate DestinationMssqlSchemasSslMethodSslMethod = "encrypted_verify_certificate" + DestinationMssqlSchemasSSLMethodSSLMethodSSLMethodEncryptedVerifyCertificate DestinationMssqlSchemasSSLMethodSSLMethodSSLMethod = "encrypted_verify_certificate" ) -func (e DestinationMssqlSchemasSslMethodSslMethod) ToPointer() *DestinationMssqlSchemasSslMethodSslMethod { +func (e DestinationMssqlSchemasSSLMethodSSLMethodSSLMethod) ToPointer() *DestinationMssqlSchemasSSLMethodSSLMethodSSLMethod { return &e } -func (e *DestinationMssqlSchemasSslMethodSslMethod) UnmarshalJSON(data []byte) error { +func (e *DestinationMssqlSchemasSSLMethodSSLMethodSSLMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "encrypted_verify_certificate": - *e = DestinationMssqlSchemasSslMethodSslMethod(v) + *e = DestinationMssqlSchemasSSLMethodSSLMethodSSLMethod(v) return nil default: - return fmt.Errorf("invalid value for DestinationMssqlSchemasSslMethodSslMethod: %v", v) + return fmt.Errorf("invalid value for DestinationMssqlSchemasSSLMethodSSLMethodSSLMethod: %v", v) } } // DestinationMssqlEncryptedVerifyCertificate - Verify and use the certificate provided by the server. type DestinationMssqlEncryptedVerifyCertificate struct { // Specifies the host name of the server. The value of this property must match the subject property of the certificate. - HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"` - sslMethod *DestinationMssqlSchemasSslMethodSslMethod `const:"encrypted_verify_certificate" json:"ssl_method"` + HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"` + sslMethod *DestinationMssqlSchemasSSLMethodSSLMethodSSLMethod `const:"encrypted_verify_certificate" json:"ssl_method"` } func (d DestinationMssqlEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) { @@ -80,36 +80,36 @@ func (o *DestinationMssqlEncryptedVerifyCertificate) GetHostNameInCertificate() return o.HostNameInCertificate } -func (o *DestinationMssqlEncryptedVerifyCertificate) GetSslMethod() *DestinationMssqlSchemasSslMethodSslMethod { - return DestinationMssqlSchemasSslMethodSslMethodEncryptedVerifyCertificate.ToPointer() +func (o *DestinationMssqlEncryptedVerifyCertificate) GetSslMethod() *DestinationMssqlSchemasSSLMethodSSLMethodSSLMethod { + return DestinationMssqlSchemasSSLMethodSSLMethodSSLMethodEncryptedVerifyCertificate.ToPointer() } -type DestinationMssqlSchemasSslMethod string +type DestinationMssqlSchemasSslMethodSslMethod string const ( - DestinationMssqlSchemasSslMethodEncryptedTrustServerCertificate DestinationMssqlSchemasSslMethod = "encrypted_trust_server_certificate" + DestinationMssqlSchemasSslMethodSslMethodEncryptedTrustServerCertificate DestinationMssqlSchemasSslMethodSslMethod = "encrypted_trust_server_certificate" ) -func (e DestinationMssqlSchemasSslMethod) ToPointer() *DestinationMssqlSchemasSslMethod { +func (e DestinationMssqlSchemasSslMethodSslMethod) ToPointer() *DestinationMssqlSchemasSslMethodSslMethod { return &e } -func (e *DestinationMssqlSchemasSslMethod) UnmarshalJSON(data []byte) error { +func (e *DestinationMssqlSchemasSslMethodSslMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "encrypted_trust_server_certificate": - *e = DestinationMssqlSchemasSslMethod(v) + *e = DestinationMssqlSchemasSslMethodSslMethod(v) return nil default: - return fmt.Errorf("invalid value for DestinationMssqlSchemasSslMethod: %v", v) + return fmt.Errorf("invalid value for DestinationMssqlSchemasSslMethodSslMethod: %v", v) } } // DestinationMssqlEncryptedTrustServerCertificate - Use the certificate provided by the server without verification. (For testing purposes only!) type DestinationMssqlEncryptedTrustServerCertificate struct { - sslMethod *DestinationMssqlSchemasSslMethod `const:"encrypted_trust_server_certificate" json:"ssl_method"` + sslMethod *DestinationMssqlSchemasSslMethodSslMethod `const:"encrypted_trust_server_certificate" json:"ssl_method"` } func (d DestinationMssqlEncryptedTrustServerCertificate) MarshalJSON() ([]byte, error) { @@ -123,25 +123,79 @@ func (d *DestinationMssqlEncryptedTrustServerCertificate) UnmarshalJSON(data []b return nil } -func (o *DestinationMssqlEncryptedTrustServerCertificate) GetSslMethod() *DestinationMssqlSchemasSslMethod { - return DestinationMssqlSchemasSslMethodEncryptedTrustServerCertificate.ToPointer() +func (o *DestinationMssqlEncryptedTrustServerCertificate) GetSslMethod() *DestinationMssqlSchemasSslMethodSslMethod { + return DestinationMssqlSchemasSslMethodSslMethodEncryptedTrustServerCertificate.ToPointer() +} + +type DestinationMssqlSchemasSslMethod string + +const ( + DestinationMssqlSchemasSslMethodUnencrypted DestinationMssqlSchemasSslMethod = "unencrypted" +) + +func (e DestinationMssqlSchemasSslMethod) ToPointer() *DestinationMssqlSchemasSslMethod { + return &e +} +func (e *DestinationMssqlSchemasSslMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "unencrypted": + *e = DestinationMssqlSchemasSslMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationMssqlSchemasSslMethod: %v", v) + } +} + +// DestinationMssqlUnencrypted - The data transfer will not be encrypted. +type DestinationMssqlUnencrypted struct { + sslMethod *DestinationMssqlSchemasSslMethod `const:"unencrypted" json:"ssl_method"` +} + +func (d DestinationMssqlUnencrypted) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationMssqlUnencrypted) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationMssqlUnencrypted) GetSslMethod() *DestinationMssqlSchemasSslMethod { + return DestinationMssqlSchemasSslMethodUnencrypted.ToPointer() } type DestinationMssqlSSLMethodType string const ( + DestinationMssqlSSLMethodTypeDestinationMssqlUnencrypted DestinationMssqlSSLMethodType = "destination-mssql_Unencrypted" DestinationMssqlSSLMethodTypeDestinationMssqlEncryptedTrustServerCertificate DestinationMssqlSSLMethodType = "destination-mssql_Encrypted (trust server certificate)" DestinationMssqlSSLMethodTypeDestinationMssqlEncryptedVerifyCertificate DestinationMssqlSSLMethodType = "destination-mssql_Encrypted (verify certificate)" ) // DestinationMssqlSSLMethod - The encryption method which is used to communicate with the database. type DestinationMssqlSSLMethod struct { + DestinationMssqlUnencrypted *DestinationMssqlUnencrypted DestinationMssqlEncryptedTrustServerCertificate *DestinationMssqlEncryptedTrustServerCertificate DestinationMssqlEncryptedVerifyCertificate *DestinationMssqlEncryptedVerifyCertificate Type DestinationMssqlSSLMethodType } +func CreateDestinationMssqlSSLMethodDestinationMssqlUnencrypted(destinationMssqlUnencrypted DestinationMssqlUnencrypted) DestinationMssqlSSLMethod { + typ := DestinationMssqlSSLMethodTypeDestinationMssqlUnencrypted + + return DestinationMssqlSSLMethod{ + DestinationMssqlUnencrypted: &destinationMssqlUnencrypted, + Type: typ, + } +} + func CreateDestinationMssqlSSLMethodDestinationMssqlEncryptedTrustServerCertificate(destinationMssqlEncryptedTrustServerCertificate DestinationMssqlEncryptedTrustServerCertificate) DestinationMssqlSSLMethod { typ := DestinationMssqlSSLMethodTypeDestinationMssqlEncryptedTrustServerCertificate @@ -162,6 +216,13 @@ func CreateDestinationMssqlSSLMethodDestinationMssqlEncryptedVerifyCertificate(d func (u *DestinationMssqlSSLMethod) UnmarshalJSON(data []byte) error { + var destinationMssqlUnencrypted DestinationMssqlUnencrypted = DestinationMssqlUnencrypted{} + if err := utils.UnmarshalJSON(data, &destinationMssqlUnencrypted, "", true, true); err == nil { + u.DestinationMssqlUnencrypted = &destinationMssqlUnencrypted + u.Type = DestinationMssqlSSLMethodTypeDestinationMssqlUnencrypted + return nil + } + var destinationMssqlEncryptedTrustServerCertificate DestinationMssqlEncryptedTrustServerCertificate = DestinationMssqlEncryptedTrustServerCertificate{} if err := utils.UnmarshalJSON(data, &destinationMssqlEncryptedTrustServerCertificate, "", true, true); err == nil { u.DestinationMssqlEncryptedTrustServerCertificate = &destinationMssqlEncryptedTrustServerCertificate @@ -180,6 +241,10 @@ func (u *DestinationMssqlSSLMethod) UnmarshalJSON(data []byte) error { } func (u DestinationMssqlSSLMethod) MarshalJSON() ([]byte, error) { + if u.DestinationMssqlUnencrypted != nil { + return utils.MarshalJSON(u.DestinationMssqlUnencrypted, "", true) + } + if u.DestinationMssqlEncryptedTrustServerCertificate != nil { return utils.MarshalJSON(u.DestinationMssqlEncryptedTrustServerCertificate, "", true) } diff --git a/internal/sdk/models/shared/destinationmssqlupdate.go b/internal/sdk/models/shared/destinationmssqlupdate.go index b925df214..f4d9e0cd4 100644 --- a/internal/sdk/models/shared/destinationmssqlupdate.go +++ b/internal/sdk/models/shared/destinationmssqlupdate.go @@ -9,34 +9,34 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" ) -type DestinationMssqlUpdateSchemasSslMethod string +type DestinationMssqlUpdateSchemasSslMethodSslMethod string const ( - DestinationMssqlUpdateSchemasSslMethodEncryptedVerifyCertificate DestinationMssqlUpdateSchemasSslMethod = "encrypted_verify_certificate" + DestinationMssqlUpdateSchemasSslMethodSslMethodEncryptedVerifyCertificate DestinationMssqlUpdateSchemasSslMethodSslMethod = "encrypted_verify_certificate" ) -func (e DestinationMssqlUpdateSchemasSslMethod) ToPointer() *DestinationMssqlUpdateSchemasSslMethod { +func (e DestinationMssqlUpdateSchemasSslMethodSslMethod) ToPointer() *DestinationMssqlUpdateSchemasSslMethodSslMethod { return &e } -func (e *DestinationMssqlUpdateSchemasSslMethod) UnmarshalJSON(data []byte) error { +func (e *DestinationMssqlUpdateSchemasSslMethodSslMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "encrypted_verify_certificate": - *e = DestinationMssqlUpdateSchemasSslMethod(v) + *e = DestinationMssqlUpdateSchemasSslMethodSslMethod(v) return nil default: - return fmt.Errorf("invalid value for DestinationMssqlUpdateSchemasSslMethod: %v", v) + return fmt.Errorf("invalid value for DestinationMssqlUpdateSchemasSslMethodSslMethod: %v", v) } } // EncryptedVerifyCertificate - Verify and use the certificate provided by the server. type EncryptedVerifyCertificate struct { // Specifies the host name of the server. The value of this property must match the subject property of the certificate. - HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"` - sslMethod *DestinationMssqlUpdateSchemasSslMethod `const:"encrypted_verify_certificate" json:"ssl_method"` + HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"` + sslMethod *DestinationMssqlUpdateSchemasSslMethodSslMethod `const:"encrypted_verify_certificate" json:"ssl_method"` } func (e EncryptedVerifyCertificate) MarshalJSON() ([]byte, error) { @@ -57,36 +57,36 @@ func (o *EncryptedVerifyCertificate) GetHostNameInCertificate() *string { return o.HostNameInCertificate } -func (o *EncryptedVerifyCertificate) GetSslMethod() *DestinationMssqlUpdateSchemasSslMethod { - return DestinationMssqlUpdateSchemasSslMethodEncryptedVerifyCertificate.ToPointer() +func (o *EncryptedVerifyCertificate) GetSslMethod() *DestinationMssqlUpdateSchemasSslMethodSslMethod { + return DestinationMssqlUpdateSchemasSslMethodSslMethodEncryptedVerifyCertificate.ToPointer() } -type DestinationMssqlUpdateSslMethod string +type DestinationMssqlUpdateSchemasSslMethod string const ( - DestinationMssqlUpdateSslMethodEncryptedTrustServerCertificate DestinationMssqlUpdateSslMethod = "encrypted_trust_server_certificate" + DestinationMssqlUpdateSchemasSslMethodEncryptedTrustServerCertificate DestinationMssqlUpdateSchemasSslMethod = "encrypted_trust_server_certificate" ) -func (e DestinationMssqlUpdateSslMethod) ToPointer() *DestinationMssqlUpdateSslMethod { +func (e DestinationMssqlUpdateSchemasSslMethod) ToPointer() *DestinationMssqlUpdateSchemasSslMethod { return &e } -func (e *DestinationMssqlUpdateSslMethod) UnmarshalJSON(data []byte) error { +func (e *DestinationMssqlUpdateSchemasSslMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "encrypted_trust_server_certificate": - *e = DestinationMssqlUpdateSslMethod(v) + *e = DestinationMssqlUpdateSchemasSslMethod(v) return nil default: - return fmt.Errorf("invalid value for DestinationMssqlUpdateSslMethod: %v", v) + return fmt.Errorf("invalid value for DestinationMssqlUpdateSchemasSslMethod: %v", v) } } // EncryptedTrustServerCertificate - Use the certificate provided by the server without verification. (For testing purposes only!) type EncryptedTrustServerCertificate struct { - sslMethod *DestinationMssqlUpdateSslMethod `const:"encrypted_trust_server_certificate" json:"ssl_method"` + sslMethod *DestinationMssqlUpdateSchemasSslMethod `const:"encrypted_trust_server_certificate" json:"ssl_method"` } func (e EncryptedTrustServerCertificate) MarshalJSON() ([]byte, error) { @@ -100,25 +100,79 @@ func (e *EncryptedTrustServerCertificate) UnmarshalJSON(data []byte) error { return nil } -func (o *EncryptedTrustServerCertificate) GetSslMethod() *DestinationMssqlUpdateSslMethod { - return DestinationMssqlUpdateSslMethodEncryptedTrustServerCertificate.ToPointer() +func (o *EncryptedTrustServerCertificate) GetSslMethod() *DestinationMssqlUpdateSchemasSslMethod { + return DestinationMssqlUpdateSchemasSslMethodEncryptedTrustServerCertificate.ToPointer() +} + +type DestinationMssqlUpdateSslMethod string + +const ( + DestinationMssqlUpdateSslMethodUnencrypted DestinationMssqlUpdateSslMethod = "unencrypted" +) + +func (e DestinationMssqlUpdateSslMethod) ToPointer() *DestinationMssqlUpdateSslMethod { + return &e +} +func (e *DestinationMssqlUpdateSslMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "unencrypted": + *e = DestinationMssqlUpdateSslMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationMssqlUpdateSslMethod: %v", v) + } +} + +// Unencrypted - The data transfer will not be encrypted. +type Unencrypted struct { + sslMethod *DestinationMssqlUpdateSslMethod `const:"unencrypted" json:"ssl_method"` +} + +func (u Unencrypted) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *Unencrypted) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, true); err != nil { + return err + } + return nil +} + +func (o *Unencrypted) GetSslMethod() *DestinationMssqlUpdateSslMethod { + return DestinationMssqlUpdateSslMethodUnencrypted.ToPointer() } type SSLMethodType string const ( + SSLMethodTypeUnencrypted SSLMethodType = "Unencrypted" SSLMethodTypeEncryptedTrustServerCertificate SSLMethodType = "Encrypted (trust server certificate)" SSLMethodTypeEncryptedVerifyCertificate SSLMethodType = "Encrypted (verify certificate)" ) // SSLMethod - The encryption method which is used to communicate with the database. type SSLMethod struct { + Unencrypted *Unencrypted EncryptedTrustServerCertificate *EncryptedTrustServerCertificate EncryptedVerifyCertificate *EncryptedVerifyCertificate Type SSLMethodType } +func CreateSSLMethodUnencrypted(unencrypted Unencrypted) SSLMethod { + typ := SSLMethodTypeUnencrypted + + return SSLMethod{ + Unencrypted: &unencrypted, + Type: typ, + } +} + func CreateSSLMethodEncryptedTrustServerCertificate(encryptedTrustServerCertificate EncryptedTrustServerCertificate) SSLMethod { typ := SSLMethodTypeEncryptedTrustServerCertificate @@ -139,6 +193,13 @@ func CreateSSLMethodEncryptedVerifyCertificate(encryptedVerifyCertificate Encryp func (u *SSLMethod) UnmarshalJSON(data []byte) error { + var unencrypted Unencrypted = Unencrypted{} + if err := utils.UnmarshalJSON(data, &unencrypted, "", true, true); err == nil { + u.Unencrypted = &unencrypted + u.Type = SSLMethodTypeUnencrypted + return nil + } + var encryptedTrustServerCertificate EncryptedTrustServerCertificate = EncryptedTrustServerCertificate{} if err := utils.UnmarshalJSON(data, &encryptedTrustServerCertificate, "", true, true); err == nil { u.EncryptedTrustServerCertificate = &encryptedTrustServerCertificate @@ -157,6 +218,10 @@ func (u *SSLMethod) UnmarshalJSON(data []byte) error { } func (u SSLMethod) MarshalJSON() ([]byte, error) { + if u.Unencrypted != nil { + return utils.MarshalJSON(u.Unencrypted, "", true) + } + if u.EncryptedTrustServerCertificate != nil { return utils.MarshalJSON(u.EncryptedTrustServerCertificate, "", true) } diff --git a/internal/sdk/models/shared/destinationmysql.go b/internal/sdk/models/shared/destinationmysql.go index a9cb01acb..5ff2d5cd1 100644 --- a/internal/sdk/models/shared/destinationmysql.go +++ b/internal/sdk/models/shared/destinationmysql.go @@ -338,6 +338,8 @@ type DestinationMysql struct { Port *int64 `default:"3306" json:"port"` // The database to write raw tables into RawDataSchema *string `json:"raw_data_schema,omitempty"` + // Encrypt data using SSL. + Ssl *bool `default:"true" json:"ssl"` // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. TunnelMethod *DestinationMysqlSSHTunnelMethod `json:"tunnel_method,omitempty"` // Username to use to access the database. @@ -408,6 +410,13 @@ func (o *DestinationMysql) GetRawDataSchema() *string { return o.RawDataSchema } +func (o *DestinationMysql) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *DestinationMysql) GetTunnelMethod() *DestinationMysqlSSHTunnelMethod { if o == nil { return nil diff --git a/internal/sdk/models/shared/destinationmysqlupdate.go b/internal/sdk/models/shared/destinationmysqlupdate.go index 166f9f7ca..450973b72 100644 --- a/internal/sdk/models/shared/destinationmysqlupdate.go +++ b/internal/sdk/models/shared/destinationmysqlupdate.go @@ -314,6 +314,8 @@ type DestinationMysqlUpdate struct { Port *int64 `default:"3306" json:"port"` // The database to write raw tables into RawDataSchema *string `json:"raw_data_schema,omitempty"` + // Encrypt data using SSL. + Ssl *bool `default:"true" json:"ssl"` // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. TunnelMethod *DestinationMysqlUpdateSSHTunnelMethod `json:"tunnel_method,omitempty"` // Username to use to access the database. @@ -380,6 +382,13 @@ func (o *DestinationMysqlUpdate) GetRawDataSchema() *string { return o.RawDataSchema } +func (o *DestinationMysqlUpdate) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *DestinationMysqlUpdate) GetTunnelMethod() *DestinationMysqlUpdateSSHTunnelMethod { if o == nil { return nil diff --git a/internal/sdk/models/shared/destinationoracle.go b/internal/sdk/models/shared/destinationoracle.go index 5c9672362..e940e83a0 100644 --- a/internal/sdk/models/shared/destinationoracle.go +++ b/internal/sdk/models/shared/destinationoracle.go @@ -32,6 +32,269 @@ func (e *Oracle) UnmarshalJSON(data []byte) error { } } +type DestinationOracleSchemasEncryptionEncryptionMethod string + +const ( + DestinationOracleSchemasEncryptionEncryptionMethodEncryptedVerifyCertificate DestinationOracleSchemasEncryptionEncryptionMethod = "encrypted_verify_certificate" +) + +func (e DestinationOracleSchemasEncryptionEncryptionMethod) ToPointer() *DestinationOracleSchemasEncryptionEncryptionMethod { + return &e +} +func (e *DestinationOracleSchemasEncryptionEncryptionMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "encrypted_verify_certificate": + *e = DestinationOracleSchemasEncryptionEncryptionMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationOracleSchemasEncryptionEncryptionMethod: %v", v) + } +} + +// DestinationOracleTLSEncryptedVerifyCertificate - Verify and use the certificate provided by the server. +type DestinationOracleTLSEncryptedVerifyCertificate struct { + encryptionMethod *DestinationOracleSchemasEncryptionEncryptionMethod `const:"encrypted_verify_certificate" json:"encryption_method"` + // Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + SslCertificate string `json:"ssl_certificate"` +} + +func (d DestinationOracleTLSEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationOracleTLSEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationOracleTLSEncryptedVerifyCertificate) GetEncryptionMethod() *DestinationOracleSchemasEncryptionEncryptionMethod { + return DestinationOracleSchemasEncryptionEncryptionMethodEncryptedVerifyCertificate.ToPointer() +} + +func (o *DestinationOracleTLSEncryptedVerifyCertificate) GetSslCertificate() string { + if o == nil { + return "" + } + return o.SslCertificate +} + +// DestinationOracleEncryptionAlgorithm - This parameter defines the database encryption algorithm. +type DestinationOracleEncryptionAlgorithm string + +const ( + DestinationOracleEncryptionAlgorithmAes256 DestinationOracleEncryptionAlgorithm = "AES256" + DestinationOracleEncryptionAlgorithmRc456 DestinationOracleEncryptionAlgorithm = "RC4_56" + DestinationOracleEncryptionAlgorithmThreeDes168 DestinationOracleEncryptionAlgorithm = "3DES168" +) + +func (e DestinationOracleEncryptionAlgorithm) ToPointer() *DestinationOracleEncryptionAlgorithm { + return &e +} +func (e *DestinationOracleEncryptionAlgorithm) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "AES256": + fallthrough + case "RC4_56": + fallthrough + case "3DES168": + *e = DestinationOracleEncryptionAlgorithm(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationOracleEncryptionAlgorithm: %v", v) + } +} + +type DestinationOracleSchemasEncryptionMethod string + +const ( + DestinationOracleSchemasEncryptionMethodClientNne DestinationOracleSchemasEncryptionMethod = "client_nne" +) + +func (e DestinationOracleSchemasEncryptionMethod) ToPointer() *DestinationOracleSchemasEncryptionMethod { + return &e +} +func (e *DestinationOracleSchemasEncryptionMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "client_nne": + *e = DestinationOracleSchemasEncryptionMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationOracleSchemasEncryptionMethod: %v", v) + } +} + +// DestinationOracleNativeNetworkEncryptionNNE - The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. +type DestinationOracleNativeNetworkEncryptionNNE struct { + // This parameter defines the database encryption algorithm. + EncryptionAlgorithm *DestinationOracleEncryptionAlgorithm `default:"AES256" json:"encryption_algorithm"` + encryptionMethod *DestinationOracleSchemasEncryptionMethod `const:"client_nne" json:"encryption_method"` +} + +func (d DestinationOracleNativeNetworkEncryptionNNE) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationOracleNativeNetworkEncryptionNNE) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationOracleNativeNetworkEncryptionNNE) GetEncryptionAlgorithm() *DestinationOracleEncryptionAlgorithm { + if o == nil { + return nil + } + return o.EncryptionAlgorithm +} + +func (o *DestinationOracleNativeNetworkEncryptionNNE) GetEncryptionMethod() *DestinationOracleSchemasEncryptionMethod { + return DestinationOracleSchemasEncryptionMethodClientNne.ToPointer() +} + +type DestinationOracleEncryptionMethod string + +const ( + DestinationOracleEncryptionMethodUnencrypted DestinationOracleEncryptionMethod = "unencrypted" +) + +func (e DestinationOracleEncryptionMethod) ToPointer() *DestinationOracleEncryptionMethod { + return &e +} +func (e *DestinationOracleEncryptionMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "unencrypted": + *e = DestinationOracleEncryptionMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationOracleEncryptionMethod: %v", v) + } +} + +// DestinationOracleUnencrypted - Data transfer will not be encrypted. +type DestinationOracleUnencrypted struct { + encryptionMethod *DestinationOracleEncryptionMethod `const:"unencrypted" json:"encryption_method"` +} + +func (d DestinationOracleUnencrypted) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationOracleUnencrypted) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationOracleUnencrypted) GetEncryptionMethod() *DestinationOracleEncryptionMethod { + return DestinationOracleEncryptionMethodUnencrypted.ToPointer() +} + +type DestinationOracleEncryptionType string + +const ( + DestinationOracleEncryptionTypeDestinationOracleUnencrypted DestinationOracleEncryptionType = "destination-oracle_Unencrypted" + DestinationOracleEncryptionTypeDestinationOracleNativeNetworkEncryptionNNE DestinationOracleEncryptionType = "destination-oracle_Native Network Encryption (NNE)" + DestinationOracleEncryptionTypeDestinationOracleTLSEncryptedVerifyCertificate DestinationOracleEncryptionType = "destination-oracle_TLS Encrypted (verify certificate)" +) + +// DestinationOracleEncryption - The encryption method which is used when communicating with the database. +type DestinationOracleEncryption struct { + DestinationOracleUnencrypted *DestinationOracleUnencrypted + DestinationOracleNativeNetworkEncryptionNNE *DestinationOracleNativeNetworkEncryptionNNE + DestinationOracleTLSEncryptedVerifyCertificate *DestinationOracleTLSEncryptedVerifyCertificate + + Type DestinationOracleEncryptionType +} + +func CreateDestinationOracleEncryptionDestinationOracleUnencrypted(destinationOracleUnencrypted DestinationOracleUnencrypted) DestinationOracleEncryption { + typ := DestinationOracleEncryptionTypeDestinationOracleUnencrypted + + return DestinationOracleEncryption{ + DestinationOracleUnencrypted: &destinationOracleUnencrypted, + Type: typ, + } +} + +func CreateDestinationOracleEncryptionDestinationOracleNativeNetworkEncryptionNNE(destinationOracleNativeNetworkEncryptionNNE DestinationOracleNativeNetworkEncryptionNNE) DestinationOracleEncryption { + typ := DestinationOracleEncryptionTypeDestinationOracleNativeNetworkEncryptionNNE + + return DestinationOracleEncryption{ + DestinationOracleNativeNetworkEncryptionNNE: &destinationOracleNativeNetworkEncryptionNNE, + Type: typ, + } +} + +func CreateDestinationOracleEncryptionDestinationOracleTLSEncryptedVerifyCertificate(destinationOracleTLSEncryptedVerifyCertificate DestinationOracleTLSEncryptedVerifyCertificate) DestinationOracleEncryption { + typ := DestinationOracleEncryptionTypeDestinationOracleTLSEncryptedVerifyCertificate + + return DestinationOracleEncryption{ + DestinationOracleTLSEncryptedVerifyCertificate: &destinationOracleTLSEncryptedVerifyCertificate, + Type: typ, + } +} + +func (u *DestinationOracleEncryption) UnmarshalJSON(data []byte) error { + + var destinationOracleUnencrypted DestinationOracleUnencrypted = DestinationOracleUnencrypted{} + if err := utils.UnmarshalJSON(data, &destinationOracleUnencrypted, "", true, true); err == nil { + u.DestinationOracleUnencrypted = &destinationOracleUnencrypted + u.Type = DestinationOracleEncryptionTypeDestinationOracleUnencrypted + return nil + } + + var destinationOracleNativeNetworkEncryptionNNE DestinationOracleNativeNetworkEncryptionNNE = DestinationOracleNativeNetworkEncryptionNNE{} + if err := utils.UnmarshalJSON(data, &destinationOracleNativeNetworkEncryptionNNE, "", true, true); err == nil { + u.DestinationOracleNativeNetworkEncryptionNNE = &destinationOracleNativeNetworkEncryptionNNE + u.Type = DestinationOracleEncryptionTypeDestinationOracleNativeNetworkEncryptionNNE + return nil + } + + var destinationOracleTLSEncryptedVerifyCertificate DestinationOracleTLSEncryptedVerifyCertificate = DestinationOracleTLSEncryptedVerifyCertificate{} + if err := utils.UnmarshalJSON(data, &destinationOracleTLSEncryptedVerifyCertificate, "", true, true); err == nil { + u.DestinationOracleTLSEncryptedVerifyCertificate = &destinationOracleTLSEncryptedVerifyCertificate + u.Type = DestinationOracleEncryptionTypeDestinationOracleTLSEncryptedVerifyCertificate + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationOracleEncryption", string(data)) +} + +func (u DestinationOracleEncryption) MarshalJSON() ([]byte, error) { + if u.DestinationOracleUnencrypted != nil { + return utils.MarshalJSON(u.DestinationOracleUnencrypted, "", true) + } + + if u.DestinationOracleNativeNetworkEncryptionNNE != nil { + return utils.MarshalJSON(u.DestinationOracleNativeNetworkEncryptionNNE, "", true) + } + + if u.DestinationOracleTLSEncryptedVerifyCertificate != nil { + return utils.MarshalJSON(u.DestinationOracleTLSEncryptedVerifyCertificate, "", true) + } + + return nil, errors.New("could not marshal union type DestinationOracleEncryption: all fields are null") +} + // DestinationOracleSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication type DestinationOracleSchemasTunnelMethodTunnelMethod string @@ -324,6 +587,8 @@ func (u DestinationOracleSSHTunnelMethod) MarshalJSON() ([]byte, error) { type DestinationOracle struct { destinationType Oracle `const:"oracle" json:"destinationType"` + // The encryption method which is used when communicating with the database. + Encryption *DestinationOracleEncryption `json:"encryption,omitempty"` // The hostname of the database. Host string `json:"host"` // Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). @@ -359,6 +624,13 @@ func (o *DestinationOracle) GetDestinationType() Oracle { return OracleOracle } +func (o *DestinationOracle) GetEncryption() *DestinationOracleEncryption { + if o == nil { + return nil + } + return o.Encryption +} + func (o *DestinationOracle) GetHost() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/destinationoracleupdate.go b/internal/sdk/models/shared/destinationoracleupdate.go index f91560f7e..1d1d777cc 100644 --- a/internal/sdk/models/shared/destinationoracleupdate.go +++ b/internal/sdk/models/shared/destinationoracleupdate.go @@ -9,6 +9,269 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" ) +type DestinationOracleUpdateSchemasEncryptionMethod string + +const ( + DestinationOracleUpdateSchemasEncryptionMethodEncryptedVerifyCertificate DestinationOracleUpdateSchemasEncryptionMethod = "encrypted_verify_certificate" +) + +func (e DestinationOracleUpdateSchemasEncryptionMethod) ToPointer() *DestinationOracleUpdateSchemasEncryptionMethod { + return &e +} +func (e *DestinationOracleUpdateSchemasEncryptionMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "encrypted_verify_certificate": + *e = DestinationOracleUpdateSchemasEncryptionMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationOracleUpdateSchemasEncryptionMethod: %v", v) + } +} + +// TLSEncryptedVerifyCertificate - Verify and use the certificate provided by the server. +type TLSEncryptedVerifyCertificate struct { + encryptionMethod *DestinationOracleUpdateSchemasEncryptionMethod `const:"encrypted_verify_certificate" json:"encryption_method"` + // Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + SslCertificate string `json:"ssl_certificate"` +} + +func (t TLSEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TLSEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, true); err != nil { + return err + } + return nil +} + +func (o *TLSEncryptedVerifyCertificate) GetEncryptionMethod() *DestinationOracleUpdateSchemasEncryptionMethod { + return DestinationOracleUpdateSchemasEncryptionMethodEncryptedVerifyCertificate.ToPointer() +} + +func (o *TLSEncryptedVerifyCertificate) GetSslCertificate() string { + if o == nil { + return "" + } + return o.SslCertificate +} + +// EncryptionAlgorithm - This parameter defines the database encryption algorithm. +type EncryptionAlgorithm string + +const ( + EncryptionAlgorithmAes256 EncryptionAlgorithm = "AES256" + EncryptionAlgorithmRc456 EncryptionAlgorithm = "RC4_56" + EncryptionAlgorithmThreeDes168 EncryptionAlgorithm = "3DES168" +) + +func (e EncryptionAlgorithm) ToPointer() *EncryptionAlgorithm { + return &e +} +func (e *EncryptionAlgorithm) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "AES256": + fallthrough + case "RC4_56": + fallthrough + case "3DES168": + *e = EncryptionAlgorithm(v) + return nil + default: + return fmt.Errorf("invalid value for EncryptionAlgorithm: %v", v) + } +} + +type DestinationOracleUpdateEncryptionMethod string + +const ( + DestinationOracleUpdateEncryptionMethodClientNne DestinationOracleUpdateEncryptionMethod = "client_nne" +) + +func (e DestinationOracleUpdateEncryptionMethod) ToPointer() *DestinationOracleUpdateEncryptionMethod { + return &e +} +func (e *DestinationOracleUpdateEncryptionMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "client_nne": + *e = DestinationOracleUpdateEncryptionMethod(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationOracleUpdateEncryptionMethod: %v", v) + } +} + +// NativeNetworkEncryptionNNE - The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. +type NativeNetworkEncryptionNNE struct { + // This parameter defines the database encryption algorithm. + EncryptionAlgorithm *EncryptionAlgorithm `default:"AES256" json:"encryption_algorithm"` + encryptionMethod *DestinationOracleUpdateEncryptionMethod `const:"client_nne" json:"encryption_method"` +} + +func (n NativeNetworkEncryptionNNE) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NativeNetworkEncryptionNNE) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, true); err != nil { + return err + } + return nil +} + +func (o *NativeNetworkEncryptionNNE) GetEncryptionAlgorithm() *EncryptionAlgorithm { + if o == nil { + return nil + } + return o.EncryptionAlgorithm +} + +func (o *NativeNetworkEncryptionNNE) GetEncryptionMethod() *DestinationOracleUpdateEncryptionMethod { + return DestinationOracleUpdateEncryptionMethodClientNne.ToPointer() +} + +type EncryptionMethod string + +const ( + EncryptionMethodUnencrypted EncryptionMethod = "unencrypted" +) + +func (e EncryptionMethod) ToPointer() *EncryptionMethod { + return &e +} +func (e *EncryptionMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "unencrypted": + *e = EncryptionMethod(v) + return nil + default: + return fmt.Errorf("invalid value for EncryptionMethod: %v", v) + } +} + +// DestinationOracleUpdateUnencrypted - Data transfer will not be encrypted. +type DestinationOracleUpdateUnencrypted struct { + encryptionMethod *EncryptionMethod `const:"unencrypted" json:"encryption_method"` +} + +func (d DestinationOracleUpdateUnencrypted) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationOracleUpdateUnencrypted) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationOracleUpdateUnencrypted) GetEncryptionMethod() *EncryptionMethod { + return EncryptionMethodUnencrypted.ToPointer() +} + +type EncryptionType string + +const ( + EncryptionTypeDestinationOracleUpdateUnencrypted EncryptionType = "destination-oracle-update_Unencrypted" + EncryptionTypeNativeNetworkEncryptionNNE EncryptionType = "Native Network Encryption (NNE)" + EncryptionTypeTLSEncryptedVerifyCertificate EncryptionType = "TLS Encrypted (verify certificate)" +) + +// Encryption - The encryption method which is used when communicating with the database. +type Encryption struct { + DestinationOracleUpdateUnencrypted *DestinationOracleUpdateUnencrypted + NativeNetworkEncryptionNNE *NativeNetworkEncryptionNNE + TLSEncryptedVerifyCertificate *TLSEncryptedVerifyCertificate + + Type EncryptionType +} + +func CreateEncryptionDestinationOracleUpdateUnencrypted(destinationOracleUpdateUnencrypted DestinationOracleUpdateUnencrypted) Encryption { + typ := EncryptionTypeDestinationOracleUpdateUnencrypted + + return Encryption{ + DestinationOracleUpdateUnencrypted: &destinationOracleUpdateUnencrypted, + Type: typ, + } +} + +func CreateEncryptionNativeNetworkEncryptionNNE(nativeNetworkEncryptionNNE NativeNetworkEncryptionNNE) Encryption { + typ := EncryptionTypeNativeNetworkEncryptionNNE + + return Encryption{ + NativeNetworkEncryptionNNE: &nativeNetworkEncryptionNNE, + Type: typ, + } +} + +func CreateEncryptionTLSEncryptedVerifyCertificate(tlsEncryptedVerifyCertificate TLSEncryptedVerifyCertificate) Encryption { + typ := EncryptionTypeTLSEncryptedVerifyCertificate + + return Encryption{ + TLSEncryptedVerifyCertificate: &tlsEncryptedVerifyCertificate, + Type: typ, + } +} + +func (u *Encryption) UnmarshalJSON(data []byte) error { + + var destinationOracleUpdateUnencrypted DestinationOracleUpdateUnencrypted = DestinationOracleUpdateUnencrypted{} + if err := utils.UnmarshalJSON(data, &destinationOracleUpdateUnencrypted, "", true, true); err == nil { + u.DestinationOracleUpdateUnencrypted = &destinationOracleUpdateUnencrypted + u.Type = EncryptionTypeDestinationOracleUpdateUnencrypted + return nil + } + + var nativeNetworkEncryptionNNE NativeNetworkEncryptionNNE = NativeNetworkEncryptionNNE{} + if err := utils.UnmarshalJSON(data, &nativeNetworkEncryptionNNE, "", true, true); err == nil { + u.NativeNetworkEncryptionNNE = &nativeNetworkEncryptionNNE + u.Type = EncryptionTypeNativeNetworkEncryptionNNE + return nil + } + + var tlsEncryptedVerifyCertificate TLSEncryptedVerifyCertificate = TLSEncryptedVerifyCertificate{} + if err := utils.UnmarshalJSON(data, &tlsEncryptedVerifyCertificate, "", true, true); err == nil { + u.TLSEncryptedVerifyCertificate = &tlsEncryptedVerifyCertificate + u.Type = EncryptionTypeTLSEncryptedVerifyCertificate + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Encryption", string(data)) +} + +func (u Encryption) MarshalJSON() ([]byte, error) { + if u.DestinationOracleUpdateUnencrypted != nil { + return utils.MarshalJSON(u.DestinationOracleUpdateUnencrypted, "", true) + } + + if u.NativeNetworkEncryptionNNE != nil { + return utils.MarshalJSON(u.NativeNetworkEncryptionNNE, "", true) + } + + if u.TLSEncryptedVerifyCertificate != nil { + return utils.MarshalJSON(u.TLSEncryptedVerifyCertificate, "", true) + } + + return nil, errors.New("could not marshal union type Encryption: all fields are null") +} + // DestinationOracleUpdateSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication type DestinationOracleUpdateSchemasTunnelMethodTunnelMethod string @@ -300,6 +563,8 @@ func (u DestinationOracleUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { } type DestinationOracleUpdate struct { + // The encryption method which is used when communicating with the database. + Encryption *Encryption `json:"encryption,omitempty"` // The hostname of the database. Host string `json:"host"` // Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). @@ -331,6 +596,13 @@ func (d *DestinationOracleUpdate) UnmarshalJSON(data []byte) error { return nil } +func (o *DestinationOracleUpdate) GetEncryption() *Encryption { + if o == nil { + return nil + } + return o.Encryption +} + func (o *DestinationOracleUpdate) GetHost() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/destinationpgvector.go b/internal/sdk/models/shared/destinationpgvector.go new file mode 100644 index 000000000..a6821c32d --- /dev/null +++ b/internal/sdk/models/shared/destinationpgvector.go @@ -0,0 +1,998 @@ +// 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 Pgvector string + +const ( + PgvectorPgvector Pgvector = "pgvector" +) + +func (e Pgvector) ToPointer() *Pgvector { + return &e +} +func (e *Pgvector) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "pgvector": + *e = Pgvector(v) + return nil + default: + return fmt.Errorf("invalid value for Pgvector: %v", v) + } +} + +type DestinationPgvectorSchemasEmbeddingEmbedding5Mode string + +const ( + DestinationPgvectorSchemasEmbeddingEmbedding5ModeOpenaiCompatible DestinationPgvectorSchemasEmbeddingEmbedding5Mode = "openai_compatible" +) + +func (e DestinationPgvectorSchemasEmbeddingEmbedding5Mode) ToPointer() *DestinationPgvectorSchemasEmbeddingEmbedding5Mode { + return &e +} +func (e *DestinationPgvectorSchemasEmbeddingEmbedding5Mode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "openai_compatible": + *e = DestinationPgvectorSchemasEmbeddingEmbedding5Mode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorSchemasEmbeddingEmbedding5Mode: %v", v) + } +} + +// DestinationPgvectorOpenAICompatible - Use a service that's compatible with the OpenAI API to embed text. +type DestinationPgvectorOpenAICompatible struct { + APIKey *string `default:"" json:"api_key"` + // The base URL for your OpenAI-compatible service + BaseURL string `json:"base_url"` + // The number of dimensions the embedding model is generating + Dimensions int64 `json:"dimensions"` + mode *DestinationPgvectorSchemasEmbeddingEmbedding5Mode `const:"openai_compatible" json:"mode"` + // The name of the model to use for embedding + ModelName *string `default:"text-embedding-ada-002" json:"model_name"` +} + +func (d DestinationPgvectorOpenAICompatible) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorOpenAICompatible) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorOpenAICompatible) GetAPIKey() *string { + if o == nil { + return nil + } + return o.APIKey +} + +func (o *DestinationPgvectorOpenAICompatible) GetBaseURL() string { + if o == nil { + return "" + } + return o.BaseURL +} + +func (o *DestinationPgvectorOpenAICompatible) GetDimensions() int64 { + if o == nil { + return 0 + } + return o.Dimensions +} + +func (o *DestinationPgvectorOpenAICompatible) GetMode() *DestinationPgvectorSchemasEmbeddingEmbedding5Mode { + return DestinationPgvectorSchemasEmbeddingEmbedding5ModeOpenaiCompatible.ToPointer() +} + +func (o *DestinationPgvectorOpenAICompatible) GetModelName() *string { + if o == nil { + return nil + } + return o.ModelName +} + +type DestinationPgvectorSchemasEmbeddingEmbeddingMode string + +const ( + DestinationPgvectorSchemasEmbeddingEmbeddingModeAzureOpenai DestinationPgvectorSchemasEmbeddingEmbeddingMode = "azure_openai" +) + +func (e DestinationPgvectorSchemasEmbeddingEmbeddingMode) ToPointer() *DestinationPgvectorSchemasEmbeddingEmbeddingMode { + return &e +} +func (e *DestinationPgvectorSchemasEmbeddingEmbeddingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "azure_openai": + *e = DestinationPgvectorSchemasEmbeddingEmbeddingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorSchemasEmbeddingEmbeddingMode: %v", v) + } +} + +// DestinationPgvectorAzureOpenAI - Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. +type DestinationPgvectorAzureOpenAI struct { + // The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + APIBase string `json:"api_base"` + // The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + Deployment string `json:"deployment"` + mode *DestinationPgvectorSchemasEmbeddingEmbeddingMode `const:"azure_openai" json:"mode"` + // The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + OpenaiKey string `json:"openai_key"` +} + +func (d DestinationPgvectorAzureOpenAI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorAzureOpenAI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorAzureOpenAI) GetAPIBase() string { + if o == nil { + return "" + } + return o.APIBase +} + +func (o *DestinationPgvectorAzureOpenAI) GetDeployment() string { + if o == nil { + return "" + } + return o.Deployment +} + +func (o *DestinationPgvectorAzureOpenAI) GetMode() *DestinationPgvectorSchemasEmbeddingEmbeddingMode { + return DestinationPgvectorSchemasEmbeddingEmbeddingModeAzureOpenai.ToPointer() +} + +func (o *DestinationPgvectorAzureOpenAI) GetOpenaiKey() string { + if o == nil { + return "" + } + return o.OpenaiKey +} + +type DestinationPgvectorSchemasEmbeddingMode string + +const ( + DestinationPgvectorSchemasEmbeddingModeFake DestinationPgvectorSchemasEmbeddingMode = "fake" +) + +func (e DestinationPgvectorSchemasEmbeddingMode) ToPointer() *DestinationPgvectorSchemasEmbeddingMode { + return &e +} +func (e *DestinationPgvectorSchemasEmbeddingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "fake": + *e = DestinationPgvectorSchemasEmbeddingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorSchemasEmbeddingMode: %v", v) + } +} + +// DestinationPgvectorFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. +type DestinationPgvectorFake struct { + mode *DestinationPgvectorSchemasEmbeddingMode `const:"fake" json:"mode"` +} + +func (d DestinationPgvectorFake) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorFake) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorFake) GetMode() *DestinationPgvectorSchemasEmbeddingMode { + return DestinationPgvectorSchemasEmbeddingModeFake.ToPointer() +} + +type DestinationPgvectorSchemasMode string + +const ( + DestinationPgvectorSchemasModeCohere DestinationPgvectorSchemasMode = "cohere" +) + +func (e DestinationPgvectorSchemasMode) ToPointer() *DestinationPgvectorSchemasMode { + return &e +} +func (e *DestinationPgvectorSchemasMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "cohere": + *e = DestinationPgvectorSchemasMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorSchemasMode: %v", v) + } +} + +// DestinationPgvectorCohere - Use the Cohere API to embed text. +type DestinationPgvectorCohere struct { + CohereKey string `json:"cohere_key"` + mode *DestinationPgvectorSchemasMode `const:"cohere" json:"mode"` +} + +func (d DestinationPgvectorCohere) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorCohere) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorCohere) GetCohereKey() string { + if o == nil { + return "" + } + return o.CohereKey +} + +func (o *DestinationPgvectorCohere) GetMode() *DestinationPgvectorSchemasMode { + return DestinationPgvectorSchemasModeCohere.ToPointer() +} + +type DestinationPgvectorMode string + +const ( + DestinationPgvectorModeOpenai DestinationPgvectorMode = "openai" +) + +func (e DestinationPgvectorMode) ToPointer() *DestinationPgvectorMode { + return &e +} +func (e *DestinationPgvectorMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "openai": + *e = DestinationPgvectorMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorMode: %v", v) + } +} + +// DestinationPgvectorOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. +type DestinationPgvectorOpenAI struct { + mode *DestinationPgvectorMode `const:"openai" json:"mode"` + OpenaiKey string `json:"openai_key"` +} + +func (d DestinationPgvectorOpenAI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorOpenAI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorOpenAI) GetMode() *DestinationPgvectorMode { + return DestinationPgvectorModeOpenai.ToPointer() +} + +func (o *DestinationPgvectorOpenAI) GetOpenaiKey() string { + if o == nil { + return "" + } + return o.OpenaiKey +} + +type DestinationPgvectorEmbeddingType string + +const ( + DestinationPgvectorEmbeddingTypeDestinationPgvectorOpenAI DestinationPgvectorEmbeddingType = "destination-pgvector_OpenAI" + DestinationPgvectorEmbeddingTypeDestinationPgvectorCohere DestinationPgvectorEmbeddingType = "destination-pgvector_Cohere" + DestinationPgvectorEmbeddingTypeDestinationPgvectorFake DestinationPgvectorEmbeddingType = "destination-pgvector_Fake" + DestinationPgvectorEmbeddingTypeDestinationPgvectorAzureOpenAI DestinationPgvectorEmbeddingType = "destination-pgvector_Azure OpenAI" + DestinationPgvectorEmbeddingTypeDestinationPgvectorOpenAICompatible DestinationPgvectorEmbeddingType = "destination-pgvector_OpenAI-compatible" +) + +// DestinationPgvectorEmbedding - Embedding configuration +type DestinationPgvectorEmbedding struct { + DestinationPgvectorOpenAI *DestinationPgvectorOpenAI + DestinationPgvectorCohere *DestinationPgvectorCohere + DestinationPgvectorFake *DestinationPgvectorFake + DestinationPgvectorAzureOpenAI *DestinationPgvectorAzureOpenAI + DestinationPgvectorOpenAICompatible *DestinationPgvectorOpenAICompatible + + Type DestinationPgvectorEmbeddingType +} + +func CreateDestinationPgvectorEmbeddingDestinationPgvectorOpenAI(destinationPgvectorOpenAI DestinationPgvectorOpenAI) DestinationPgvectorEmbedding { + typ := DestinationPgvectorEmbeddingTypeDestinationPgvectorOpenAI + + return DestinationPgvectorEmbedding{ + DestinationPgvectorOpenAI: &destinationPgvectorOpenAI, + Type: typ, + } +} + +func CreateDestinationPgvectorEmbeddingDestinationPgvectorCohere(destinationPgvectorCohere DestinationPgvectorCohere) DestinationPgvectorEmbedding { + typ := DestinationPgvectorEmbeddingTypeDestinationPgvectorCohere + + return DestinationPgvectorEmbedding{ + DestinationPgvectorCohere: &destinationPgvectorCohere, + Type: typ, + } +} + +func CreateDestinationPgvectorEmbeddingDestinationPgvectorFake(destinationPgvectorFake DestinationPgvectorFake) DestinationPgvectorEmbedding { + typ := DestinationPgvectorEmbeddingTypeDestinationPgvectorFake + + return DestinationPgvectorEmbedding{ + DestinationPgvectorFake: &destinationPgvectorFake, + Type: typ, + } +} + +func CreateDestinationPgvectorEmbeddingDestinationPgvectorAzureOpenAI(destinationPgvectorAzureOpenAI DestinationPgvectorAzureOpenAI) DestinationPgvectorEmbedding { + typ := DestinationPgvectorEmbeddingTypeDestinationPgvectorAzureOpenAI + + return DestinationPgvectorEmbedding{ + DestinationPgvectorAzureOpenAI: &destinationPgvectorAzureOpenAI, + Type: typ, + } +} + +func CreateDestinationPgvectorEmbeddingDestinationPgvectorOpenAICompatible(destinationPgvectorOpenAICompatible DestinationPgvectorOpenAICompatible) DestinationPgvectorEmbedding { + typ := DestinationPgvectorEmbeddingTypeDestinationPgvectorOpenAICompatible + + return DestinationPgvectorEmbedding{ + DestinationPgvectorOpenAICompatible: &destinationPgvectorOpenAICompatible, + Type: typ, + } +} + +func (u *DestinationPgvectorEmbedding) UnmarshalJSON(data []byte) error { + + var destinationPgvectorFake DestinationPgvectorFake = DestinationPgvectorFake{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorFake, "", true, true); err == nil { + u.DestinationPgvectorFake = &destinationPgvectorFake + u.Type = DestinationPgvectorEmbeddingTypeDestinationPgvectorFake + return nil + } + + var destinationPgvectorOpenAI DestinationPgvectorOpenAI = DestinationPgvectorOpenAI{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorOpenAI, "", true, true); err == nil { + u.DestinationPgvectorOpenAI = &destinationPgvectorOpenAI + u.Type = DestinationPgvectorEmbeddingTypeDestinationPgvectorOpenAI + return nil + } + + var destinationPgvectorCohere DestinationPgvectorCohere = DestinationPgvectorCohere{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorCohere, "", true, true); err == nil { + u.DestinationPgvectorCohere = &destinationPgvectorCohere + u.Type = DestinationPgvectorEmbeddingTypeDestinationPgvectorCohere + return nil + } + + var destinationPgvectorAzureOpenAI DestinationPgvectorAzureOpenAI = DestinationPgvectorAzureOpenAI{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorAzureOpenAI, "", true, true); err == nil { + u.DestinationPgvectorAzureOpenAI = &destinationPgvectorAzureOpenAI + u.Type = DestinationPgvectorEmbeddingTypeDestinationPgvectorAzureOpenAI + return nil + } + + var destinationPgvectorOpenAICompatible DestinationPgvectorOpenAICompatible = DestinationPgvectorOpenAICompatible{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorOpenAICompatible, "", true, true); err == nil { + u.DestinationPgvectorOpenAICompatible = &destinationPgvectorOpenAICompatible + u.Type = DestinationPgvectorEmbeddingTypeDestinationPgvectorOpenAICompatible + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationPgvectorEmbedding", string(data)) +} + +func (u DestinationPgvectorEmbedding) MarshalJSON() ([]byte, error) { + if u.DestinationPgvectorOpenAI != nil { + return utils.MarshalJSON(u.DestinationPgvectorOpenAI, "", true) + } + + if u.DestinationPgvectorCohere != nil { + return utils.MarshalJSON(u.DestinationPgvectorCohere, "", true) + } + + if u.DestinationPgvectorFake != nil { + return utils.MarshalJSON(u.DestinationPgvectorFake, "", true) + } + + if u.DestinationPgvectorAzureOpenAI != nil { + return utils.MarshalJSON(u.DestinationPgvectorAzureOpenAI, "", true) + } + + if u.DestinationPgvectorOpenAICompatible != nil { + return utils.MarshalJSON(u.DestinationPgvectorOpenAICompatible, "", true) + } + + return nil, errors.New("could not marshal union type DestinationPgvectorEmbedding: all fields are null") +} + +type DestinationPgvectorCredentials struct { + // Enter the password you want to use to access the database + Password string `json:"password"` +} + +func (o *DestinationPgvectorCredentials) GetPassword() string { + if o == nil { + return "" + } + return o.Password +} + +// DestinationPgvectorPostgresConnection - Postgres can be used to store vector data and retrieve embeddings. +type DestinationPgvectorPostgresConnection struct { + Credentials DestinationPgvectorCredentials `json:"credentials"` + // Enter the name of the database that you want to sync data into + Database string `json:"database"` + // Enter the name of the default schema + DefaultSchema string `json:"default_schema"` + // Enter the account name you want to use to access the database. + Host string `json:"host"` + // Enter the port you want to use to access the database + Port int64 `json:"port"` + // Enter the name of the user you want to use to access the database + Username string `json:"username"` +} + +func (o *DestinationPgvectorPostgresConnection) GetCredentials() DestinationPgvectorCredentials { + if o == nil { + return DestinationPgvectorCredentials{} + } + return o.Credentials +} + +func (o *DestinationPgvectorPostgresConnection) GetDatabase() string { + if o == nil { + return "" + } + return o.Database +} + +func (o *DestinationPgvectorPostgresConnection) GetDefaultSchema() string { + if o == nil { + return "" + } + return o.DefaultSchema +} + +func (o *DestinationPgvectorPostgresConnection) GetHost() string { + if o == nil { + return "" + } + return o.Host +} + +func (o *DestinationPgvectorPostgresConnection) GetPort() int64 { + if o == nil { + return 0 + } + return o.Port +} + +func (o *DestinationPgvectorPostgresConnection) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} + +type DestinationPgvectorFieldNameMappingConfigModel struct { + // The field name in the source + FromField string `json:"from_field"` + // The field name to use in the destination + ToField string `json:"to_field"` +} + +func (o *DestinationPgvectorFieldNameMappingConfigModel) GetFromField() string { + if o == nil { + return "" + } + return o.FromField +} + +func (o *DestinationPgvectorFieldNameMappingConfigModel) GetToField() string { + if o == nil { + return "" + } + return o.ToField +} + +// DestinationPgvectorLanguage - Split code in suitable places based on the programming language +type DestinationPgvectorLanguage string + +const ( + DestinationPgvectorLanguageCpp DestinationPgvectorLanguage = "cpp" + DestinationPgvectorLanguageGo DestinationPgvectorLanguage = "go" + DestinationPgvectorLanguageJava DestinationPgvectorLanguage = "java" + DestinationPgvectorLanguageJs DestinationPgvectorLanguage = "js" + DestinationPgvectorLanguagePhp DestinationPgvectorLanguage = "php" + DestinationPgvectorLanguageProto DestinationPgvectorLanguage = "proto" + DestinationPgvectorLanguagePython DestinationPgvectorLanguage = "python" + DestinationPgvectorLanguageRst DestinationPgvectorLanguage = "rst" + DestinationPgvectorLanguageRuby DestinationPgvectorLanguage = "ruby" + DestinationPgvectorLanguageRust DestinationPgvectorLanguage = "rust" + DestinationPgvectorLanguageScala DestinationPgvectorLanguage = "scala" + DestinationPgvectorLanguageSwift DestinationPgvectorLanguage = "swift" + DestinationPgvectorLanguageMarkdown DestinationPgvectorLanguage = "markdown" + DestinationPgvectorLanguageLatex DestinationPgvectorLanguage = "latex" + DestinationPgvectorLanguageHTML DestinationPgvectorLanguage = "html" + DestinationPgvectorLanguageSol DestinationPgvectorLanguage = "sol" +) + +func (e DestinationPgvectorLanguage) ToPointer() *DestinationPgvectorLanguage { + return &e +} +func (e *DestinationPgvectorLanguage) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "cpp": + fallthrough + case "go": + fallthrough + case "java": + fallthrough + case "js": + fallthrough + case "php": + fallthrough + case "proto": + fallthrough + case "python": + fallthrough + case "rst": + fallthrough + case "ruby": + fallthrough + case "rust": + fallthrough + case "scala": + fallthrough + case "swift": + fallthrough + case "markdown": + fallthrough + case "latex": + fallthrough + case "html": + fallthrough + case "sol": + *e = DestinationPgvectorLanguage(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorLanguage: %v", v) + } +} + +type DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode string + +const ( + DestinationPgvectorSchemasProcessingTextSplitterTextSplitterModeCode DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode = "code" +) + +func (e DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode) ToPointer() *DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode { + return &e +} +func (e *DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "code": + *e = DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode: %v", v) + } +} + +// DestinationPgvectorByProgrammingLanguage - Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. +type DestinationPgvectorByProgrammingLanguage struct { + // Split code in suitable places based on the programming language + Language DestinationPgvectorLanguage `json:"language"` + mode *DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode `const:"code" json:"mode"` +} + +func (d DestinationPgvectorByProgrammingLanguage) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorByProgrammingLanguage) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorByProgrammingLanguage) GetLanguage() DestinationPgvectorLanguage { + if o == nil { + return DestinationPgvectorLanguage("") + } + return o.Language +} + +func (o *DestinationPgvectorByProgrammingLanguage) GetMode() *DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode { + return DestinationPgvectorSchemasProcessingTextSplitterTextSplitterModeCode.ToPointer() +} + +type DestinationPgvectorSchemasProcessingTextSplitterMode string + +const ( + DestinationPgvectorSchemasProcessingTextSplitterModeMarkdown DestinationPgvectorSchemasProcessingTextSplitterMode = "markdown" +) + +func (e DestinationPgvectorSchemasProcessingTextSplitterMode) ToPointer() *DestinationPgvectorSchemasProcessingTextSplitterMode { + return &e +} +func (e *DestinationPgvectorSchemasProcessingTextSplitterMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "markdown": + *e = DestinationPgvectorSchemasProcessingTextSplitterMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorSchemasProcessingTextSplitterMode: %v", v) + } +} + +// DestinationPgvectorByMarkdownHeader - Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. +type DestinationPgvectorByMarkdownHeader struct { + mode *DestinationPgvectorSchemasProcessingTextSplitterMode `const:"markdown" json:"mode"` + // Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + SplitLevel *int64 `default:"1" json:"split_level"` +} + +func (d DestinationPgvectorByMarkdownHeader) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorByMarkdownHeader) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorByMarkdownHeader) GetMode() *DestinationPgvectorSchemasProcessingTextSplitterMode { + return DestinationPgvectorSchemasProcessingTextSplitterModeMarkdown.ToPointer() +} + +func (o *DestinationPgvectorByMarkdownHeader) GetSplitLevel() *int64 { + if o == nil { + return nil + } + return o.SplitLevel +} + +type DestinationPgvectorSchemasProcessingMode string + +const ( + DestinationPgvectorSchemasProcessingModeSeparator DestinationPgvectorSchemasProcessingMode = "separator" +) + +func (e DestinationPgvectorSchemasProcessingMode) ToPointer() *DestinationPgvectorSchemasProcessingMode { + return &e +} +func (e *DestinationPgvectorSchemasProcessingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "separator": + *e = DestinationPgvectorSchemasProcessingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorSchemasProcessingMode: %v", v) + } +} + +// DestinationPgvectorBySeparator - Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. +type DestinationPgvectorBySeparator struct { + // Whether to keep the separator in the resulting chunks + KeepSeparator *bool `default:"false" json:"keep_separator"` + mode *DestinationPgvectorSchemasProcessingMode `const:"separator" json:"mode"` + // List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + Separators []string `json:"separators,omitempty"` +} + +func (d DestinationPgvectorBySeparator) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorBySeparator) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorBySeparator) GetKeepSeparator() *bool { + if o == nil { + return nil + } + return o.KeepSeparator +} + +func (o *DestinationPgvectorBySeparator) GetMode() *DestinationPgvectorSchemasProcessingMode { + return DestinationPgvectorSchemasProcessingModeSeparator.ToPointer() +} + +func (o *DestinationPgvectorBySeparator) GetSeparators() []string { + if o == nil { + return nil + } + return o.Separators +} + +type DestinationPgvectorTextSplitterType string + +const ( + DestinationPgvectorTextSplitterTypeDestinationPgvectorBySeparator DestinationPgvectorTextSplitterType = "destination-pgvector_By Separator" + DestinationPgvectorTextSplitterTypeDestinationPgvectorByMarkdownHeader DestinationPgvectorTextSplitterType = "destination-pgvector_By Markdown header" + DestinationPgvectorTextSplitterTypeDestinationPgvectorByProgrammingLanguage DestinationPgvectorTextSplitterType = "destination-pgvector_By Programming Language" +) + +// DestinationPgvectorTextSplitter - Split text fields into chunks based on the specified method. +type DestinationPgvectorTextSplitter struct { + DestinationPgvectorBySeparator *DestinationPgvectorBySeparator + DestinationPgvectorByMarkdownHeader *DestinationPgvectorByMarkdownHeader + DestinationPgvectorByProgrammingLanguage *DestinationPgvectorByProgrammingLanguage + + Type DestinationPgvectorTextSplitterType +} + +func CreateDestinationPgvectorTextSplitterDestinationPgvectorBySeparator(destinationPgvectorBySeparator DestinationPgvectorBySeparator) DestinationPgvectorTextSplitter { + typ := DestinationPgvectorTextSplitterTypeDestinationPgvectorBySeparator + + return DestinationPgvectorTextSplitter{ + DestinationPgvectorBySeparator: &destinationPgvectorBySeparator, + Type: typ, + } +} + +func CreateDestinationPgvectorTextSplitterDestinationPgvectorByMarkdownHeader(destinationPgvectorByMarkdownHeader DestinationPgvectorByMarkdownHeader) DestinationPgvectorTextSplitter { + typ := DestinationPgvectorTextSplitterTypeDestinationPgvectorByMarkdownHeader + + return DestinationPgvectorTextSplitter{ + DestinationPgvectorByMarkdownHeader: &destinationPgvectorByMarkdownHeader, + Type: typ, + } +} + +func CreateDestinationPgvectorTextSplitterDestinationPgvectorByProgrammingLanguage(destinationPgvectorByProgrammingLanguage DestinationPgvectorByProgrammingLanguage) DestinationPgvectorTextSplitter { + typ := DestinationPgvectorTextSplitterTypeDestinationPgvectorByProgrammingLanguage + + return DestinationPgvectorTextSplitter{ + DestinationPgvectorByProgrammingLanguage: &destinationPgvectorByProgrammingLanguage, + Type: typ, + } +} + +func (u *DestinationPgvectorTextSplitter) UnmarshalJSON(data []byte) error { + + var destinationPgvectorByMarkdownHeader DestinationPgvectorByMarkdownHeader = DestinationPgvectorByMarkdownHeader{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorByMarkdownHeader, "", true, true); err == nil { + u.DestinationPgvectorByMarkdownHeader = &destinationPgvectorByMarkdownHeader + u.Type = DestinationPgvectorTextSplitterTypeDestinationPgvectorByMarkdownHeader + return nil + } + + var destinationPgvectorByProgrammingLanguage DestinationPgvectorByProgrammingLanguage = DestinationPgvectorByProgrammingLanguage{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorByProgrammingLanguage, "", true, true); err == nil { + u.DestinationPgvectorByProgrammingLanguage = &destinationPgvectorByProgrammingLanguage + u.Type = DestinationPgvectorTextSplitterTypeDestinationPgvectorByProgrammingLanguage + return nil + } + + var destinationPgvectorBySeparator DestinationPgvectorBySeparator = DestinationPgvectorBySeparator{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorBySeparator, "", true, true); err == nil { + u.DestinationPgvectorBySeparator = &destinationPgvectorBySeparator + u.Type = DestinationPgvectorTextSplitterTypeDestinationPgvectorBySeparator + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationPgvectorTextSplitter", string(data)) +} + +func (u DestinationPgvectorTextSplitter) MarshalJSON() ([]byte, error) { + if u.DestinationPgvectorBySeparator != nil { + return utils.MarshalJSON(u.DestinationPgvectorBySeparator, "", true) + } + + if u.DestinationPgvectorByMarkdownHeader != nil { + return utils.MarshalJSON(u.DestinationPgvectorByMarkdownHeader, "", true) + } + + if u.DestinationPgvectorByProgrammingLanguage != nil { + return utils.MarshalJSON(u.DestinationPgvectorByProgrammingLanguage, "", true) + } + + return nil, errors.New("could not marshal union type DestinationPgvectorTextSplitter: all fields are null") +} + +type DestinationPgvectorProcessingConfigModel 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 to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + FieldNameMappings []DestinationPgvectorFieldNameMappingConfigModel `json:"field_name_mappings,omitempty"` + // List of fields in the record that should be stored as metadata. 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 metadata 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. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + MetadataFields []string `json:"metadata_fields,omitempty"` + // List of fields in the record that should be used to calculate the embedding. 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,omitempty"` + // Split text fields into chunks based on the specified method. + TextSplitter *DestinationPgvectorTextSplitter `json:"text_splitter,omitempty"` +} + +func (d DestinationPgvectorProcessingConfigModel) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorProcessingConfigModel) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorProcessingConfigModel) GetChunkOverlap() *int64 { + if o == nil { + return nil + } + return o.ChunkOverlap +} + +func (o *DestinationPgvectorProcessingConfigModel) GetChunkSize() int64 { + if o == nil { + return 0 + } + return o.ChunkSize +} + +func (o *DestinationPgvectorProcessingConfigModel) GetFieldNameMappings() []DestinationPgvectorFieldNameMappingConfigModel { + if o == nil { + return nil + } + return o.FieldNameMappings +} + +func (o *DestinationPgvectorProcessingConfigModel) GetMetadataFields() []string { + if o == nil { + return nil + } + return o.MetadataFields +} + +func (o *DestinationPgvectorProcessingConfigModel) GetTextFields() []string { + if o == nil { + return nil + } + return o.TextFields +} + +func (o *DestinationPgvectorProcessingConfigModel) GetTextSplitter() *DestinationPgvectorTextSplitter { + if o == nil { + return nil + } + return o.TextSplitter +} + +// DestinationPgvector - The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, +// as well as to provide type safety for the configuration passed to the destination. +// +// The configuration model is composed of four parts: +// * Processing configuration +// * Embedding configuration +// * Indexing configuration +// * Advanced configuration +// +// Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. +type DestinationPgvector struct { + destinationType Pgvector `const:"pgvector" json:"destinationType"` + // Embedding configuration + Embedding DestinationPgvectorEmbedding `json:"embedding"` + // Postgres can be used to store vector data and retrieve embeddings. + Indexing DestinationPgvectorPostgresConnection `json:"indexing"` + // Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + OmitRawText *bool `default:"false" json:"omit_raw_text"` + Processing DestinationPgvectorProcessingConfigModel `json:"processing"` +} + +func (d DestinationPgvector) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvector) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvector) GetDestinationType() Pgvector { + return PgvectorPgvector +} + +func (o *DestinationPgvector) GetEmbedding() DestinationPgvectorEmbedding { + if o == nil { + return DestinationPgvectorEmbedding{} + } + return o.Embedding +} + +func (o *DestinationPgvector) GetIndexing() DestinationPgvectorPostgresConnection { + if o == nil { + return DestinationPgvectorPostgresConnection{} + } + return o.Indexing +} + +func (o *DestinationPgvector) GetOmitRawText() *bool { + if o == nil { + return nil + } + return o.OmitRawText +} + +func (o *DestinationPgvector) GetProcessing() DestinationPgvectorProcessingConfigModel { + if o == nil { + return DestinationPgvectorProcessingConfigModel{} + } + return o.Processing +} diff --git a/internal/sdk/models/shared/destinationpgvectorcreaterequest.go b/internal/sdk/models/shared/destinationpgvectorcreaterequest.go new file mode 100644 index 000000000..d7ed34e95 --- /dev/null +++ b/internal/sdk/models/shared/destinationpgvectorcreaterequest.go @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type DestinationPgvectorCreateRequest struct { + // The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, + // as well as to provide type safety for the configuration passed to the destination. + // + // The configuration model is composed of four parts: + // * Processing configuration + // * Embedding configuration + // * Indexing configuration + // * Advanced configuration + // + // Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. + Configuration DestinationPgvector `json:"configuration"` + // The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. + DefinitionID *string `json:"definitionId,omitempty"` + // Name of the destination e.g. dev-mysql-instance. + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *DestinationPgvectorCreateRequest) GetConfiguration() DestinationPgvector { + if o == nil { + return DestinationPgvector{} + } + return o.Configuration +} + +func (o *DestinationPgvectorCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *DestinationPgvectorCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *DestinationPgvectorCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/destinationpgvectorputrequest.go b/internal/sdk/models/shared/destinationpgvectorputrequest.go new file mode 100644 index 000000000..75d302180 --- /dev/null +++ b/internal/sdk/models/shared/destinationpgvectorputrequest.go @@ -0,0 +1,40 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type DestinationPgvectorPutRequest struct { + // The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, + // as well as to provide type safety for the configuration passed to the destination. + // + // The configuration model is composed of four parts: + // * Processing configuration + // * Embedding configuration + // * Indexing configuration + // * Advanced configuration + // + // Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. + Configuration DestinationPgvectorUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *DestinationPgvectorPutRequest) GetConfiguration() DestinationPgvectorUpdate { + if o == nil { + return DestinationPgvectorUpdate{} + } + return o.Configuration +} + +func (o *DestinationPgvectorPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *DestinationPgvectorPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/destinationpgvectorupdate.go b/internal/sdk/models/shared/destinationpgvectorupdate.go new file mode 100644 index 000000000..7ded3fbe2 --- /dev/null +++ b/internal/sdk/models/shared/destinationpgvectorupdate.go @@ -0,0 +1,970 @@ +// 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 DestinationPgvectorUpdateSchemasEmbeddingEmbedding5Mode string + +const ( + DestinationPgvectorUpdateSchemasEmbeddingEmbedding5ModeOpenaiCompatible DestinationPgvectorUpdateSchemasEmbeddingEmbedding5Mode = "openai_compatible" +) + +func (e DestinationPgvectorUpdateSchemasEmbeddingEmbedding5Mode) ToPointer() *DestinationPgvectorUpdateSchemasEmbeddingEmbedding5Mode { + return &e +} +func (e *DestinationPgvectorUpdateSchemasEmbeddingEmbedding5Mode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "openai_compatible": + *e = DestinationPgvectorUpdateSchemasEmbeddingEmbedding5Mode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorUpdateSchemasEmbeddingEmbedding5Mode: %v", v) + } +} + +// DestinationPgvectorUpdateOpenAICompatible - Use a service that's compatible with the OpenAI API to embed text. +type DestinationPgvectorUpdateOpenAICompatible struct { + APIKey *string `default:"" json:"api_key"` + // The base URL for your OpenAI-compatible service + BaseURL string `json:"base_url"` + // The number of dimensions the embedding model is generating + Dimensions int64 `json:"dimensions"` + mode *DestinationPgvectorUpdateSchemasEmbeddingEmbedding5Mode `const:"openai_compatible" json:"mode"` + // The name of the model to use for embedding + ModelName *string `default:"text-embedding-ada-002" json:"model_name"` +} + +func (d DestinationPgvectorUpdateOpenAICompatible) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdateOpenAICompatible) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdateOpenAICompatible) GetAPIKey() *string { + if o == nil { + return nil + } + return o.APIKey +} + +func (o *DestinationPgvectorUpdateOpenAICompatible) GetBaseURL() string { + if o == nil { + return "" + } + return o.BaseURL +} + +func (o *DestinationPgvectorUpdateOpenAICompatible) GetDimensions() int64 { + if o == nil { + return 0 + } + return o.Dimensions +} + +func (o *DestinationPgvectorUpdateOpenAICompatible) GetMode() *DestinationPgvectorUpdateSchemasEmbeddingEmbedding5Mode { + return DestinationPgvectorUpdateSchemasEmbeddingEmbedding5ModeOpenaiCompatible.ToPointer() +} + +func (o *DestinationPgvectorUpdateOpenAICompatible) GetModelName() *string { + if o == nil { + return nil + } + return o.ModelName +} + +type DestinationPgvectorUpdateSchemasEmbeddingEmbeddingMode string + +const ( + DestinationPgvectorUpdateSchemasEmbeddingEmbeddingModeAzureOpenai DestinationPgvectorUpdateSchemasEmbeddingEmbeddingMode = "azure_openai" +) + +func (e DestinationPgvectorUpdateSchemasEmbeddingEmbeddingMode) ToPointer() *DestinationPgvectorUpdateSchemasEmbeddingEmbeddingMode { + return &e +} +func (e *DestinationPgvectorUpdateSchemasEmbeddingEmbeddingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "azure_openai": + *e = DestinationPgvectorUpdateSchemasEmbeddingEmbeddingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorUpdateSchemasEmbeddingEmbeddingMode: %v", v) + } +} + +// DestinationPgvectorUpdateAzureOpenAI - Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. +type DestinationPgvectorUpdateAzureOpenAI struct { + // The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + APIBase string `json:"api_base"` + // The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + Deployment string `json:"deployment"` + mode *DestinationPgvectorUpdateSchemasEmbeddingEmbeddingMode `const:"azure_openai" json:"mode"` + // The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + OpenaiKey string `json:"openai_key"` +} + +func (d DestinationPgvectorUpdateAzureOpenAI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdateAzureOpenAI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdateAzureOpenAI) GetAPIBase() string { + if o == nil { + return "" + } + return o.APIBase +} + +func (o *DestinationPgvectorUpdateAzureOpenAI) GetDeployment() string { + if o == nil { + return "" + } + return o.Deployment +} + +func (o *DestinationPgvectorUpdateAzureOpenAI) GetMode() *DestinationPgvectorUpdateSchemasEmbeddingEmbeddingMode { + return DestinationPgvectorUpdateSchemasEmbeddingEmbeddingModeAzureOpenai.ToPointer() +} + +func (o *DestinationPgvectorUpdateAzureOpenAI) GetOpenaiKey() string { + if o == nil { + return "" + } + return o.OpenaiKey +} + +type DestinationPgvectorUpdateSchemasEmbeddingMode string + +const ( + DestinationPgvectorUpdateSchemasEmbeddingModeFake DestinationPgvectorUpdateSchemasEmbeddingMode = "fake" +) + +func (e DestinationPgvectorUpdateSchemasEmbeddingMode) ToPointer() *DestinationPgvectorUpdateSchemasEmbeddingMode { + return &e +} +func (e *DestinationPgvectorUpdateSchemasEmbeddingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "fake": + *e = DestinationPgvectorUpdateSchemasEmbeddingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorUpdateSchemasEmbeddingMode: %v", v) + } +} + +// DestinationPgvectorUpdateFake - 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 DestinationPgvectorUpdateFake struct { + mode *DestinationPgvectorUpdateSchemasEmbeddingMode `const:"fake" json:"mode"` +} + +func (d DestinationPgvectorUpdateFake) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdateFake) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdateFake) GetMode() *DestinationPgvectorUpdateSchemasEmbeddingMode { + return DestinationPgvectorUpdateSchemasEmbeddingModeFake.ToPointer() +} + +type DestinationPgvectorUpdateSchemasMode string + +const ( + DestinationPgvectorUpdateSchemasModeCohere DestinationPgvectorUpdateSchemasMode = "cohere" +) + +func (e DestinationPgvectorUpdateSchemasMode) ToPointer() *DestinationPgvectorUpdateSchemasMode { + return &e +} +func (e *DestinationPgvectorUpdateSchemasMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "cohere": + *e = DestinationPgvectorUpdateSchemasMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorUpdateSchemasMode: %v", v) + } +} + +// DestinationPgvectorUpdateCohere - Use the Cohere API to embed text. +type DestinationPgvectorUpdateCohere struct { + CohereKey string `json:"cohere_key"` + mode *DestinationPgvectorUpdateSchemasMode `const:"cohere" json:"mode"` +} + +func (d DestinationPgvectorUpdateCohere) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdateCohere) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdateCohere) GetCohereKey() string { + if o == nil { + return "" + } + return o.CohereKey +} + +func (o *DestinationPgvectorUpdateCohere) GetMode() *DestinationPgvectorUpdateSchemasMode { + return DestinationPgvectorUpdateSchemasModeCohere.ToPointer() +} + +type DestinationPgvectorUpdateMode string + +const ( + DestinationPgvectorUpdateModeOpenai DestinationPgvectorUpdateMode = "openai" +) + +func (e DestinationPgvectorUpdateMode) ToPointer() *DestinationPgvectorUpdateMode { + return &e +} +func (e *DestinationPgvectorUpdateMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "openai": + *e = DestinationPgvectorUpdateMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorUpdateMode: %v", v) + } +} + +// DestinationPgvectorUpdateOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. +type DestinationPgvectorUpdateOpenAI struct { + mode *DestinationPgvectorUpdateMode `const:"openai" json:"mode"` + OpenaiKey string `json:"openai_key"` +} + +func (d DestinationPgvectorUpdateOpenAI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdateOpenAI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdateOpenAI) GetMode() *DestinationPgvectorUpdateMode { + return DestinationPgvectorUpdateModeOpenai.ToPointer() +} + +func (o *DestinationPgvectorUpdateOpenAI) GetOpenaiKey() string { + if o == nil { + return "" + } + return o.OpenaiKey +} + +type DestinationPgvectorUpdateEmbeddingType string + +const ( + DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateOpenAI DestinationPgvectorUpdateEmbeddingType = "destination-pgvector-update_OpenAI" + DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateCohere DestinationPgvectorUpdateEmbeddingType = "destination-pgvector-update_Cohere" + DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateFake DestinationPgvectorUpdateEmbeddingType = "destination-pgvector-update_Fake" + DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateAzureOpenAI DestinationPgvectorUpdateEmbeddingType = "destination-pgvector-update_Azure OpenAI" + DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateOpenAICompatible DestinationPgvectorUpdateEmbeddingType = "destination-pgvector-update_OpenAI-compatible" +) + +// DestinationPgvectorUpdateEmbedding - Embedding configuration +type DestinationPgvectorUpdateEmbedding struct { + DestinationPgvectorUpdateOpenAI *DestinationPgvectorUpdateOpenAI + DestinationPgvectorUpdateCohere *DestinationPgvectorUpdateCohere + DestinationPgvectorUpdateFake *DestinationPgvectorUpdateFake + DestinationPgvectorUpdateAzureOpenAI *DestinationPgvectorUpdateAzureOpenAI + DestinationPgvectorUpdateOpenAICompatible *DestinationPgvectorUpdateOpenAICompatible + + Type DestinationPgvectorUpdateEmbeddingType +} + +func CreateDestinationPgvectorUpdateEmbeddingDestinationPgvectorUpdateOpenAI(destinationPgvectorUpdateOpenAI DestinationPgvectorUpdateOpenAI) DestinationPgvectorUpdateEmbedding { + typ := DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateOpenAI + + return DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateOpenAI: &destinationPgvectorUpdateOpenAI, + Type: typ, + } +} + +func CreateDestinationPgvectorUpdateEmbeddingDestinationPgvectorUpdateCohere(destinationPgvectorUpdateCohere DestinationPgvectorUpdateCohere) DestinationPgvectorUpdateEmbedding { + typ := DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateCohere + + return DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateCohere: &destinationPgvectorUpdateCohere, + Type: typ, + } +} + +func CreateDestinationPgvectorUpdateEmbeddingDestinationPgvectorUpdateFake(destinationPgvectorUpdateFake DestinationPgvectorUpdateFake) DestinationPgvectorUpdateEmbedding { + typ := DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateFake + + return DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateFake: &destinationPgvectorUpdateFake, + Type: typ, + } +} + +func CreateDestinationPgvectorUpdateEmbeddingDestinationPgvectorUpdateAzureOpenAI(destinationPgvectorUpdateAzureOpenAI DestinationPgvectorUpdateAzureOpenAI) DestinationPgvectorUpdateEmbedding { + typ := DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateAzureOpenAI + + return DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateAzureOpenAI: &destinationPgvectorUpdateAzureOpenAI, + Type: typ, + } +} + +func CreateDestinationPgvectorUpdateEmbeddingDestinationPgvectorUpdateOpenAICompatible(destinationPgvectorUpdateOpenAICompatible DestinationPgvectorUpdateOpenAICompatible) DestinationPgvectorUpdateEmbedding { + typ := DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateOpenAICompatible + + return DestinationPgvectorUpdateEmbedding{ + DestinationPgvectorUpdateOpenAICompatible: &destinationPgvectorUpdateOpenAICompatible, + Type: typ, + } +} + +func (u *DestinationPgvectorUpdateEmbedding) UnmarshalJSON(data []byte) error { + + var destinationPgvectorUpdateFake DestinationPgvectorUpdateFake = DestinationPgvectorUpdateFake{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorUpdateFake, "", true, true); err == nil { + u.DestinationPgvectorUpdateFake = &destinationPgvectorUpdateFake + u.Type = DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateFake + return nil + } + + var destinationPgvectorUpdateOpenAI DestinationPgvectorUpdateOpenAI = DestinationPgvectorUpdateOpenAI{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorUpdateOpenAI, "", true, true); err == nil { + u.DestinationPgvectorUpdateOpenAI = &destinationPgvectorUpdateOpenAI + u.Type = DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateOpenAI + return nil + } + + var destinationPgvectorUpdateCohere DestinationPgvectorUpdateCohere = DestinationPgvectorUpdateCohere{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorUpdateCohere, "", true, true); err == nil { + u.DestinationPgvectorUpdateCohere = &destinationPgvectorUpdateCohere + u.Type = DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateCohere + return nil + } + + var destinationPgvectorUpdateAzureOpenAI DestinationPgvectorUpdateAzureOpenAI = DestinationPgvectorUpdateAzureOpenAI{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorUpdateAzureOpenAI, "", true, true); err == nil { + u.DestinationPgvectorUpdateAzureOpenAI = &destinationPgvectorUpdateAzureOpenAI + u.Type = DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateAzureOpenAI + return nil + } + + var destinationPgvectorUpdateOpenAICompatible DestinationPgvectorUpdateOpenAICompatible = DestinationPgvectorUpdateOpenAICompatible{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorUpdateOpenAICompatible, "", true, true); err == nil { + u.DestinationPgvectorUpdateOpenAICompatible = &destinationPgvectorUpdateOpenAICompatible + u.Type = DestinationPgvectorUpdateEmbeddingTypeDestinationPgvectorUpdateOpenAICompatible + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationPgvectorUpdateEmbedding", string(data)) +} + +func (u DestinationPgvectorUpdateEmbedding) MarshalJSON() ([]byte, error) { + if u.DestinationPgvectorUpdateOpenAI != nil { + return utils.MarshalJSON(u.DestinationPgvectorUpdateOpenAI, "", true) + } + + if u.DestinationPgvectorUpdateCohere != nil { + return utils.MarshalJSON(u.DestinationPgvectorUpdateCohere, "", true) + } + + if u.DestinationPgvectorUpdateFake != nil { + return utils.MarshalJSON(u.DestinationPgvectorUpdateFake, "", true) + } + + if u.DestinationPgvectorUpdateAzureOpenAI != nil { + return utils.MarshalJSON(u.DestinationPgvectorUpdateAzureOpenAI, "", true) + } + + if u.DestinationPgvectorUpdateOpenAICompatible != nil { + return utils.MarshalJSON(u.DestinationPgvectorUpdateOpenAICompatible, "", true) + } + + return nil, errors.New("could not marshal union type DestinationPgvectorUpdateEmbedding: all fields are null") +} + +type DestinationPgvectorUpdateCredentials struct { + // Enter the password you want to use to access the database + Password string `json:"password"` +} + +func (o *DestinationPgvectorUpdateCredentials) GetPassword() string { + if o == nil { + return "" + } + return o.Password +} + +// PostgresConnection - Postgres can be used to store vector data and retrieve embeddings. +type PostgresConnection struct { + Credentials DestinationPgvectorUpdateCredentials `json:"credentials"` + // Enter the name of the database that you want to sync data into + Database string `json:"database"` + // Enter the name of the default schema + DefaultSchema string `json:"default_schema"` + // Enter the account name you want to use to access the database. + Host string `json:"host"` + // Enter the port you want to use to access the database + Port int64 `json:"port"` + // Enter the name of the user you want to use to access the database + Username string `json:"username"` +} + +func (o *PostgresConnection) GetCredentials() DestinationPgvectorUpdateCredentials { + if o == nil { + return DestinationPgvectorUpdateCredentials{} + } + return o.Credentials +} + +func (o *PostgresConnection) GetDatabase() string { + if o == nil { + return "" + } + return o.Database +} + +func (o *PostgresConnection) GetDefaultSchema() string { + if o == nil { + return "" + } + return o.DefaultSchema +} + +func (o *PostgresConnection) GetHost() string { + if o == nil { + return "" + } + return o.Host +} + +func (o *PostgresConnection) GetPort() int64 { + if o == nil { + return 0 + } + return o.Port +} + +func (o *PostgresConnection) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} + +type DestinationPgvectorUpdateFieldNameMappingConfigModel struct { + // The field name in the source + FromField string `json:"from_field"` + // The field name to use in the destination + ToField string `json:"to_field"` +} + +func (o *DestinationPgvectorUpdateFieldNameMappingConfigModel) GetFromField() string { + if o == nil { + return "" + } + return o.FromField +} + +func (o *DestinationPgvectorUpdateFieldNameMappingConfigModel) GetToField() string { + if o == nil { + return "" + } + return o.ToField +} + +// DestinationPgvectorUpdateLanguage - Split code in suitable places based on the programming language +type DestinationPgvectorUpdateLanguage string + +const ( + DestinationPgvectorUpdateLanguageCpp DestinationPgvectorUpdateLanguage = "cpp" + DestinationPgvectorUpdateLanguageGo DestinationPgvectorUpdateLanguage = "go" + DestinationPgvectorUpdateLanguageJava DestinationPgvectorUpdateLanguage = "java" + DestinationPgvectorUpdateLanguageJs DestinationPgvectorUpdateLanguage = "js" + DestinationPgvectorUpdateLanguagePhp DestinationPgvectorUpdateLanguage = "php" + DestinationPgvectorUpdateLanguageProto DestinationPgvectorUpdateLanguage = "proto" + DestinationPgvectorUpdateLanguagePython DestinationPgvectorUpdateLanguage = "python" + DestinationPgvectorUpdateLanguageRst DestinationPgvectorUpdateLanguage = "rst" + DestinationPgvectorUpdateLanguageRuby DestinationPgvectorUpdateLanguage = "ruby" + DestinationPgvectorUpdateLanguageRust DestinationPgvectorUpdateLanguage = "rust" + DestinationPgvectorUpdateLanguageScala DestinationPgvectorUpdateLanguage = "scala" + DestinationPgvectorUpdateLanguageSwift DestinationPgvectorUpdateLanguage = "swift" + DestinationPgvectorUpdateLanguageMarkdown DestinationPgvectorUpdateLanguage = "markdown" + DestinationPgvectorUpdateLanguageLatex DestinationPgvectorUpdateLanguage = "latex" + DestinationPgvectorUpdateLanguageHTML DestinationPgvectorUpdateLanguage = "html" + DestinationPgvectorUpdateLanguageSol DestinationPgvectorUpdateLanguage = "sol" +) + +func (e DestinationPgvectorUpdateLanguage) ToPointer() *DestinationPgvectorUpdateLanguage { + return &e +} +func (e *DestinationPgvectorUpdateLanguage) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "cpp": + fallthrough + case "go": + fallthrough + case "java": + fallthrough + case "js": + fallthrough + case "php": + fallthrough + case "proto": + fallthrough + case "python": + fallthrough + case "rst": + fallthrough + case "ruby": + fallthrough + case "rust": + fallthrough + case "scala": + fallthrough + case "swift": + fallthrough + case "markdown": + fallthrough + case "latex": + fallthrough + case "html": + fallthrough + case "sol": + *e = DestinationPgvectorUpdateLanguage(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorUpdateLanguage: %v", v) + } +} + +type DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterMode string + +const ( + DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterModeCode DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterMode = "code" +) + +func (e DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterMode) ToPointer() *DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterMode { + return &e +} +func (e *DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "code": + *e = DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterMode: %v", v) + } +} + +// DestinationPgvectorUpdateByProgrammingLanguage - Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. +type DestinationPgvectorUpdateByProgrammingLanguage struct { + // Split code in suitable places based on the programming language + Language DestinationPgvectorUpdateLanguage `json:"language"` + mode *DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterMode `const:"code" json:"mode"` +} + +func (d DestinationPgvectorUpdateByProgrammingLanguage) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdateByProgrammingLanguage) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdateByProgrammingLanguage) GetLanguage() DestinationPgvectorUpdateLanguage { + if o == nil { + return DestinationPgvectorUpdateLanguage("") + } + return o.Language +} + +func (o *DestinationPgvectorUpdateByProgrammingLanguage) GetMode() *DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterMode { + return DestinationPgvectorUpdateSchemasProcessingTextSplitterTextSplitterModeCode.ToPointer() +} + +type DestinationPgvectorUpdateSchemasProcessingTextSplitterMode string + +const ( + DestinationPgvectorUpdateSchemasProcessingTextSplitterModeMarkdown DestinationPgvectorUpdateSchemasProcessingTextSplitterMode = "markdown" +) + +func (e DestinationPgvectorUpdateSchemasProcessingTextSplitterMode) ToPointer() *DestinationPgvectorUpdateSchemasProcessingTextSplitterMode { + return &e +} +func (e *DestinationPgvectorUpdateSchemasProcessingTextSplitterMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "markdown": + *e = DestinationPgvectorUpdateSchemasProcessingTextSplitterMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorUpdateSchemasProcessingTextSplitterMode: %v", v) + } +} + +// DestinationPgvectorUpdateByMarkdownHeader - Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. +type DestinationPgvectorUpdateByMarkdownHeader struct { + mode *DestinationPgvectorUpdateSchemasProcessingTextSplitterMode `const:"markdown" json:"mode"` + // Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + SplitLevel *int64 `default:"1" json:"split_level"` +} + +func (d DestinationPgvectorUpdateByMarkdownHeader) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdateByMarkdownHeader) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdateByMarkdownHeader) GetMode() *DestinationPgvectorUpdateSchemasProcessingTextSplitterMode { + return DestinationPgvectorUpdateSchemasProcessingTextSplitterModeMarkdown.ToPointer() +} + +func (o *DestinationPgvectorUpdateByMarkdownHeader) GetSplitLevel() *int64 { + if o == nil { + return nil + } + return o.SplitLevel +} + +type DestinationPgvectorUpdateSchemasProcessingMode string + +const ( + DestinationPgvectorUpdateSchemasProcessingModeSeparator DestinationPgvectorUpdateSchemasProcessingMode = "separator" +) + +func (e DestinationPgvectorUpdateSchemasProcessingMode) ToPointer() *DestinationPgvectorUpdateSchemasProcessingMode { + return &e +} +func (e *DestinationPgvectorUpdateSchemasProcessingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "separator": + *e = DestinationPgvectorUpdateSchemasProcessingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationPgvectorUpdateSchemasProcessingMode: %v", v) + } +} + +// DestinationPgvectorUpdateBySeparator - Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. +type DestinationPgvectorUpdateBySeparator struct { + // Whether to keep the separator in the resulting chunks + KeepSeparator *bool `default:"false" json:"keep_separator"` + mode *DestinationPgvectorUpdateSchemasProcessingMode `const:"separator" json:"mode"` + // List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + Separators []string `json:"separators,omitempty"` +} + +func (d DestinationPgvectorUpdateBySeparator) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdateBySeparator) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdateBySeparator) GetKeepSeparator() *bool { + if o == nil { + return nil + } + return o.KeepSeparator +} + +func (o *DestinationPgvectorUpdateBySeparator) GetMode() *DestinationPgvectorUpdateSchemasProcessingMode { + return DestinationPgvectorUpdateSchemasProcessingModeSeparator.ToPointer() +} + +func (o *DestinationPgvectorUpdateBySeparator) GetSeparators() []string { + if o == nil { + return nil + } + return o.Separators +} + +type DestinationPgvectorUpdateTextSplitterType string + +const ( + DestinationPgvectorUpdateTextSplitterTypeDestinationPgvectorUpdateBySeparator DestinationPgvectorUpdateTextSplitterType = "destination-pgvector-update_By Separator" + DestinationPgvectorUpdateTextSplitterTypeDestinationPgvectorUpdateByMarkdownHeader DestinationPgvectorUpdateTextSplitterType = "destination-pgvector-update_By Markdown header" + DestinationPgvectorUpdateTextSplitterTypeDestinationPgvectorUpdateByProgrammingLanguage DestinationPgvectorUpdateTextSplitterType = "destination-pgvector-update_By Programming Language" +) + +// DestinationPgvectorUpdateTextSplitter - Split text fields into chunks based on the specified method. +type DestinationPgvectorUpdateTextSplitter struct { + DestinationPgvectorUpdateBySeparator *DestinationPgvectorUpdateBySeparator + DestinationPgvectorUpdateByMarkdownHeader *DestinationPgvectorUpdateByMarkdownHeader + DestinationPgvectorUpdateByProgrammingLanguage *DestinationPgvectorUpdateByProgrammingLanguage + + Type DestinationPgvectorUpdateTextSplitterType +} + +func CreateDestinationPgvectorUpdateTextSplitterDestinationPgvectorUpdateBySeparator(destinationPgvectorUpdateBySeparator DestinationPgvectorUpdateBySeparator) DestinationPgvectorUpdateTextSplitter { + typ := DestinationPgvectorUpdateTextSplitterTypeDestinationPgvectorUpdateBySeparator + + return DestinationPgvectorUpdateTextSplitter{ + DestinationPgvectorUpdateBySeparator: &destinationPgvectorUpdateBySeparator, + Type: typ, + } +} + +func CreateDestinationPgvectorUpdateTextSplitterDestinationPgvectorUpdateByMarkdownHeader(destinationPgvectorUpdateByMarkdownHeader DestinationPgvectorUpdateByMarkdownHeader) DestinationPgvectorUpdateTextSplitter { + typ := DestinationPgvectorUpdateTextSplitterTypeDestinationPgvectorUpdateByMarkdownHeader + + return DestinationPgvectorUpdateTextSplitter{ + DestinationPgvectorUpdateByMarkdownHeader: &destinationPgvectorUpdateByMarkdownHeader, + Type: typ, + } +} + +func CreateDestinationPgvectorUpdateTextSplitterDestinationPgvectorUpdateByProgrammingLanguage(destinationPgvectorUpdateByProgrammingLanguage DestinationPgvectorUpdateByProgrammingLanguage) DestinationPgvectorUpdateTextSplitter { + typ := DestinationPgvectorUpdateTextSplitterTypeDestinationPgvectorUpdateByProgrammingLanguage + + return DestinationPgvectorUpdateTextSplitter{ + DestinationPgvectorUpdateByProgrammingLanguage: &destinationPgvectorUpdateByProgrammingLanguage, + Type: typ, + } +} + +func (u *DestinationPgvectorUpdateTextSplitter) UnmarshalJSON(data []byte) error { + + var destinationPgvectorUpdateByMarkdownHeader DestinationPgvectorUpdateByMarkdownHeader = DestinationPgvectorUpdateByMarkdownHeader{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorUpdateByMarkdownHeader, "", true, true); err == nil { + u.DestinationPgvectorUpdateByMarkdownHeader = &destinationPgvectorUpdateByMarkdownHeader + u.Type = DestinationPgvectorUpdateTextSplitterTypeDestinationPgvectorUpdateByMarkdownHeader + return nil + } + + var destinationPgvectorUpdateByProgrammingLanguage DestinationPgvectorUpdateByProgrammingLanguage = DestinationPgvectorUpdateByProgrammingLanguage{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorUpdateByProgrammingLanguage, "", true, true); err == nil { + u.DestinationPgvectorUpdateByProgrammingLanguage = &destinationPgvectorUpdateByProgrammingLanguage + u.Type = DestinationPgvectorUpdateTextSplitterTypeDestinationPgvectorUpdateByProgrammingLanguage + return nil + } + + var destinationPgvectorUpdateBySeparator DestinationPgvectorUpdateBySeparator = DestinationPgvectorUpdateBySeparator{} + if err := utils.UnmarshalJSON(data, &destinationPgvectorUpdateBySeparator, "", true, true); err == nil { + u.DestinationPgvectorUpdateBySeparator = &destinationPgvectorUpdateBySeparator + u.Type = DestinationPgvectorUpdateTextSplitterTypeDestinationPgvectorUpdateBySeparator + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationPgvectorUpdateTextSplitter", string(data)) +} + +func (u DestinationPgvectorUpdateTextSplitter) MarshalJSON() ([]byte, error) { + if u.DestinationPgvectorUpdateBySeparator != nil { + return utils.MarshalJSON(u.DestinationPgvectorUpdateBySeparator, "", true) + } + + if u.DestinationPgvectorUpdateByMarkdownHeader != nil { + return utils.MarshalJSON(u.DestinationPgvectorUpdateByMarkdownHeader, "", true) + } + + if u.DestinationPgvectorUpdateByProgrammingLanguage != nil { + return utils.MarshalJSON(u.DestinationPgvectorUpdateByProgrammingLanguage, "", true) + } + + return nil, errors.New("could not marshal union type DestinationPgvectorUpdateTextSplitter: all fields are null") +} + +type DestinationPgvectorUpdateProcessingConfigModel 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 to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + FieldNameMappings []DestinationPgvectorUpdateFieldNameMappingConfigModel `json:"field_name_mappings,omitempty"` + // List of fields in the record that should be stored as metadata. 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 metadata 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. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + MetadataFields []string `json:"metadata_fields,omitempty"` + // List of fields in the record that should be used to calculate the embedding. 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,omitempty"` + // Split text fields into chunks based on the specified method. + TextSplitter *DestinationPgvectorUpdateTextSplitter `json:"text_splitter,omitempty"` +} + +func (d DestinationPgvectorUpdateProcessingConfigModel) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdateProcessingConfigModel) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdateProcessingConfigModel) GetChunkOverlap() *int64 { + if o == nil { + return nil + } + return o.ChunkOverlap +} + +func (o *DestinationPgvectorUpdateProcessingConfigModel) GetChunkSize() int64 { + if o == nil { + return 0 + } + return o.ChunkSize +} + +func (o *DestinationPgvectorUpdateProcessingConfigModel) GetFieldNameMappings() []DestinationPgvectorUpdateFieldNameMappingConfigModel { + if o == nil { + return nil + } + return o.FieldNameMappings +} + +func (o *DestinationPgvectorUpdateProcessingConfigModel) GetMetadataFields() []string { + if o == nil { + return nil + } + return o.MetadataFields +} + +func (o *DestinationPgvectorUpdateProcessingConfigModel) GetTextFields() []string { + if o == nil { + return nil + } + return o.TextFields +} + +func (o *DestinationPgvectorUpdateProcessingConfigModel) GetTextSplitter() *DestinationPgvectorUpdateTextSplitter { + if o == nil { + return nil + } + return o.TextSplitter +} + +// DestinationPgvectorUpdate - The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, +// as well as to provide type safety for the configuration passed to the destination. +// +// The configuration model is composed of four parts: +// * Processing configuration +// * Embedding configuration +// * Indexing configuration +// * Advanced configuration +// +// Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. +type DestinationPgvectorUpdate struct { + // Embedding configuration + Embedding DestinationPgvectorUpdateEmbedding `json:"embedding"` + // Postgres can be used to store vector data and retrieve embeddings. + Indexing PostgresConnection `json:"indexing"` + // Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + OmitRawText *bool `default:"false" json:"omit_raw_text"` + Processing DestinationPgvectorUpdateProcessingConfigModel `json:"processing"` +} + +func (d DestinationPgvectorUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationPgvectorUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DestinationPgvectorUpdate) GetEmbedding() DestinationPgvectorUpdateEmbedding { + if o == nil { + return DestinationPgvectorUpdateEmbedding{} + } + return o.Embedding +} + +func (o *DestinationPgvectorUpdate) GetIndexing() PostgresConnection { + if o == nil { + return PostgresConnection{} + } + return o.Indexing +} + +func (o *DestinationPgvectorUpdate) GetOmitRawText() *bool { + if o == nil { + return nil + } + return o.OmitRawText +} + +func (o *DestinationPgvectorUpdate) GetProcessing() DestinationPgvectorUpdateProcessingConfigModel { + if o == nil { + return DestinationPgvectorUpdateProcessingConfigModel{} + } + return o.Processing +} diff --git a/internal/sdk/models/shared/destinationpostgres.go b/internal/sdk/models/shared/destinationpostgres.go index 040e65330..e9fdf1d8b 100644 --- a/internal/sdk/models/shared/destinationpostgres.go +++ b/internal/sdk/models/shared/destinationpostgres.go @@ -814,6 +814,8 @@ type DestinationPostgres struct { RawDataSchema *string `json:"raw_data_schema,omitempty"` // The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". Schema *string `default:"public" json:"schema"` + // Encrypt data using SSL. When activating SSL, please select one of the connection modes. + Ssl *bool `default:"false" json:"ssl"` // SSL connection modes. // disable - Chose this mode to disable encryption of communication between Airbyte and destination database // allow - Chose this mode to enable encryption only when required by the source database @@ -907,6 +909,13 @@ func (o *DestinationPostgres) GetSchema() *string { return o.Schema } +func (o *DestinationPostgres) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *DestinationPostgres) GetSslMode() *DestinationPostgresSSLModes { if o == nil { return nil diff --git a/internal/sdk/models/shared/destinationpostgresupdate.go b/internal/sdk/models/shared/destinationpostgresupdate.go index f44695655..c8709daff 100644 --- a/internal/sdk/models/shared/destinationpostgresupdate.go +++ b/internal/sdk/models/shared/destinationpostgresupdate.go @@ -790,6 +790,8 @@ type DestinationPostgresUpdate struct { RawDataSchema *string `json:"raw_data_schema,omitempty"` // The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". Schema *string `default:"public" json:"schema"` + // Encrypt data using SSL. When activating SSL, please select one of the connection modes. + Ssl *bool `default:"false" json:"ssl"` // SSL connection modes. // disable - Chose this mode to disable encryption of communication between Airbyte and destination database // allow - Chose this mode to enable encryption only when required by the source database @@ -879,6 +881,13 @@ func (o *DestinationPostgresUpdate) GetSchema() *string { return o.Schema } +func (o *DestinationPostgresUpdate) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *DestinationPostgresUpdate) GetSslMode() *SSLModes { if o == nil { return nil diff --git a/internal/sdk/models/shared/source7shifts.go b/internal/sdk/models/shared/source7shifts.go new file mode 100644 index 000000000..1fa2dede9 --- /dev/null +++ b/internal/sdk/models/shared/source7shifts.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 Sevenshifts string + +const ( + SevenshiftsSevenshifts Sevenshifts = "7shifts" +) + +func (e Sevenshifts) ToPointer() *Sevenshifts { + return &e +} +func (e *Sevenshifts) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "7shifts": + *e = Sevenshifts(v) + return nil + default: + return fmt.Errorf("invalid value for Sevenshifts: %v", v) + } +} + +type Source7shifts struct { + // Access token to use for authentication. Generate it in the 7shifts Developer Tools. + AccessToken string `json:"access_token"` + sourceType Sevenshifts `const:"7shifts" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s Source7shifts) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *Source7shifts) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *Source7shifts) GetAccessToken() string { + if o == nil { + return "" + } + return o.AccessToken +} + +func (o *Source7shifts) GetSourceType() Sevenshifts { + return SevenshiftsSevenshifts +} + +func (o *Source7shifts) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/source7shiftscreaterequest.go b/internal/sdk/models/shared/source7shiftscreaterequest.go new file mode 100644 index 000000000..e80e0c9f0 --- /dev/null +++ b/internal/sdk/models/shared/source7shiftscreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type Source7shiftsCreateRequest struct { + Configuration Source7shifts `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 *Source7shiftsCreateRequest) GetConfiguration() Source7shifts { + if o == nil { + return Source7shifts{} + } + return o.Configuration +} + +func (o *Source7shiftsCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *Source7shiftsCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *Source7shiftsCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *Source7shiftsCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/source7shiftsputrequest.go b/internal/sdk/models/shared/source7shiftsputrequest.go new file mode 100644 index 000000000..ca74b7cdb --- /dev/null +++ b/internal/sdk/models/shared/source7shiftsputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type Source7shiftsPutRequest struct { + Configuration Source7shiftsUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *Source7shiftsPutRequest) GetConfiguration() Source7shiftsUpdate { + if o == nil { + return Source7shiftsUpdate{} + } + return o.Configuration +} + +func (o *Source7shiftsPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *Source7shiftsPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/source7shiftsupdate.go b/internal/sdk/models/shared/source7shiftsupdate.go new file mode 100644 index 000000000..9c80a70ed --- /dev/null +++ b/internal/sdk/models/shared/source7shiftsupdate.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 Source7shiftsUpdate struct { + // Access token to use for authentication. Generate it in the 7shifts Developer Tools. + AccessToken string `json:"access_token"` + StartDate time.Time `json:"start_date"` +} + +func (s Source7shiftsUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *Source7shiftsUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *Source7shiftsUpdate) GetAccessToken() string { + if o == nil { + return "" + } + return o.AccessToken +} + +func (o *Source7shiftsUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceamazonsellerpartner.go b/internal/sdk/models/shared/sourceamazonsellerpartner.go index cb0f6693b..f885e9b91 100644 --- a/internal/sdk/models/shared/sourceamazonsellerpartner.go +++ b/internal/sdk/models/shared/sourceamazonsellerpartner.go @@ -232,6 +232,14 @@ const ( SourceAmazonSellerPartnerReportNameGetXMLAllOrdersDataByOrderDateGeneral SourceAmazonSellerPartnerReportName = "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL" SourceAmazonSellerPartnerReportNameGetXMLBrowseTreeData SourceAmazonSellerPartnerReportName = "GET_XML_BROWSE_TREE_DATA" SourceAmazonSellerPartnerReportNameGetVendorRealTimeInventoryReport SourceAmazonSellerPartnerReportName = "GET_VENDOR_REAL_TIME_INVENTORY_REPORT" + SourceAmazonSellerPartnerReportNameGetBrandAnalyticsMarketBasketReport SourceAmazonSellerPartnerReportName = "GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT" + SourceAmazonSellerPartnerReportNameGetBrandAnalyticsSearchTermsReport SourceAmazonSellerPartnerReportName = "GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT" + SourceAmazonSellerPartnerReportNameGetBrandAnalyticsRepeatPurchaseReport SourceAmazonSellerPartnerReportName = "GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT" + SourceAmazonSellerPartnerReportNameGetSalesAndTrafficReport SourceAmazonSellerPartnerReportName = "GET_SALES_AND_TRAFFIC_REPORT" + SourceAmazonSellerPartnerReportNameGetVendorSalesReport SourceAmazonSellerPartnerReportName = "GET_VENDOR_SALES_REPORT" + SourceAmazonSellerPartnerReportNameGetVendorInventoryReport SourceAmazonSellerPartnerReportName = "GET_VENDOR_INVENTORY_REPORT" + SourceAmazonSellerPartnerReportNameGetVendorNetPureProductMarginReport SourceAmazonSellerPartnerReportName = "GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT" + SourceAmazonSellerPartnerReportNameGetVendorTrafficReport SourceAmazonSellerPartnerReportName = "GET_VENDOR_TRAFFIC_REPORT" ) func (e SourceAmazonSellerPartnerReportName) ToPointer() *SourceAmazonSellerPartnerReportName { @@ -316,6 +324,22 @@ func (e *SourceAmazonSellerPartnerReportName) UnmarshalJSON(data []byte) error { case "GET_XML_BROWSE_TREE_DATA": fallthrough case "GET_VENDOR_REAL_TIME_INVENTORY_REPORT": + fallthrough + case "GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT": + fallthrough + case "GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT": + fallthrough + case "GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT": + fallthrough + case "GET_SALES_AND_TRAFFIC_REPORT": + fallthrough + case "GET_VENDOR_SALES_REPORT": + fallthrough + case "GET_VENDOR_INVENTORY_REPORT": + fallthrough + case "GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT": + fallthrough + case "GET_VENDOR_TRAFFIC_REPORT": *e = SourceAmazonSellerPartnerReportName(v) return nil default: diff --git a/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go b/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go index dc4b47cc1..8fd35aea2 100644 --- a/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go +++ b/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go @@ -232,6 +232,14 @@ const ( ReportNameGetXMLAllOrdersDataByOrderDateGeneral ReportName = "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL" ReportNameGetXMLBrowseTreeData ReportName = "GET_XML_BROWSE_TREE_DATA" ReportNameGetVendorRealTimeInventoryReport ReportName = "GET_VENDOR_REAL_TIME_INVENTORY_REPORT" + ReportNameGetBrandAnalyticsMarketBasketReport ReportName = "GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT" + ReportNameGetBrandAnalyticsSearchTermsReport ReportName = "GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT" + ReportNameGetBrandAnalyticsRepeatPurchaseReport ReportName = "GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT" + ReportNameGetSalesAndTrafficReport ReportName = "GET_SALES_AND_TRAFFIC_REPORT" + ReportNameGetVendorSalesReport ReportName = "GET_VENDOR_SALES_REPORT" + ReportNameGetVendorInventoryReport ReportName = "GET_VENDOR_INVENTORY_REPORT" + ReportNameGetVendorNetPureProductMarginReport ReportName = "GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT" + ReportNameGetVendorTrafficReport ReportName = "GET_VENDOR_TRAFFIC_REPORT" ) func (e ReportName) ToPointer() *ReportName { @@ -316,6 +324,22 @@ func (e *ReportName) UnmarshalJSON(data []byte) error { case "GET_XML_BROWSE_TREE_DATA": fallthrough case "GET_VENDOR_REAL_TIME_INVENTORY_REPORT": + fallthrough + case "GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT": + fallthrough + case "GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT": + fallthrough + case "GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT": + fallthrough + case "GET_SALES_AND_TRAFFIC_REPORT": + fallthrough + case "GET_VENDOR_SALES_REPORT": + fallthrough + case "GET_VENDOR_INVENTORY_REPORT": + fallthrough + case "GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT": + fallthrough + case "GET_VENDOR_TRAFFIC_REPORT": *e = ReportName(v) return nil default: diff --git a/internal/sdk/models/shared/sourceappcues.go b/internal/sdk/models/shared/sourceappcues.go new file mode 100644 index 000000000..61d1e62a3 --- /dev/null +++ b/internal/sdk/models/shared/sourceappcues.go @@ -0,0 +1,85 @@ +// 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 Appcues string + +const ( + AppcuesAppcues Appcues = "appcues" +) + +func (e Appcues) ToPointer() *Appcues { + return &e +} +func (e *Appcues) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "appcues": + *e = Appcues(v) + return nil + default: + return fmt.Errorf("invalid value for Appcues: %v", v) + } +} + +type SourceAppcues struct { + // Account ID of Appcues found in account settings page (https://studio.appcues.com/settings/account) + AccountID string `json:"account_id"` + Password *string `json:"password,omitempty"` + sourceType Appcues `const:"appcues" json:"sourceType"` + StartDate time.Time `json:"start_date"` + Username string `json:"username"` +} + +func (s SourceAppcues) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceAppcues) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceAppcues) GetAccountID() string { + if o == nil { + return "" + } + return o.AccountID +} + +func (o *SourceAppcues) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourceAppcues) GetSourceType() Appcues { + return AppcuesAppcues +} + +func (o *SourceAppcues) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceAppcues) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourceappcuescreaterequest.go b/internal/sdk/models/shared/sourceappcuescreaterequest.go new file mode 100644 index 000000000..026bde47e --- /dev/null +++ b/internal/sdk/models/shared/sourceappcuescreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceAppcuesCreateRequest struct { + Configuration SourceAppcues `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 *SourceAppcuesCreateRequest) GetConfiguration() SourceAppcues { + if o == nil { + return SourceAppcues{} + } + return o.Configuration +} + +func (o *SourceAppcuesCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceAppcuesCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceAppcuesCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceAppcuesCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceappcuesputrequest.go b/internal/sdk/models/shared/sourceappcuesputrequest.go new file mode 100644 index 000000000..2aedf108e --- /dev/null +++ b/internal/sdk/models/shared/sourceappcuesputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceAppcuesPutRequest struct { + Configuration SourceAppcuesUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceAppcuesPutRequest) GetConfiguration() SourceAppcuesUpdate { + if o == nil { + return SourceAppcuesUpdate{} + } + return o.Configuration +} + +func (o *SourceAppcuesPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceAppcuesPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceappcuesupdate.go b/internal/sdk/models/shared/sourceappcuesupdate.go new file mode 100644 index 000000000..84489b28f --- /dev/null +++ b/internal/sdk/models/shared/sourceappcuesupdate.go @@ -0,0 +1,55 @@ +// 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 SourceAppcuesUpdate struct { + // Account ID of Appcues found in account settings page (https://studio.appcues.com/settings/account) + AccountID string `json:"account_id"` + Password *string `json:"password,omitempty"` + StartDate time.Time `json:"start_date"` + Username string `json:"username"` +} + +func (s SourceAppcuesUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceAppcuesUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceAppcuesUpdate) GetAccountID() string { + if o == nil { + return "" + } + return o.AccountID +} + +func (o *SourceAppcuesUpdate) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourceAppcuesUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceAppcuesUpdate) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourceappfigures.go b/internal/sdk/models/shared/sourceappfigures.go new file mode 100644 index 000000000..df0e91a9d --- /dev/null +++ b/internal/sdk/models/shared/sourceappfigures.go @@ -0,0 +1,119 @@ +// 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" +) + +// SourceAppfiguresGroupBy - Category term for grouping the search results +type SourceAppfiguresGroupBy string + +const ( + SourceAppfiguresGroupByNetwork SourceAppfiguresGroupBy = "network" + SourceAppfiguresGroupByProduct SourceAppfiguresGroupBy = "product" + SourceAppfiguresGroupByCountry SourceAppfiguresGroupBy = "country" + SourceAppfiguresGroupByDate SourceAppfiguresGroupBy = "date" +) + +func (e SourceAppfiguresGroupBy) ToPointer() *SourceAppfiguresGroupBy { + return &e +} +func (e *SourceAppfiguresGroupBy) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "network": + fallthrough + case "product": + fallthrough + case "country": + fallthrough + case "date": + *e = SourceAppfiguresGroupBy(v) + return nil + default: + return fmt.Errorf("invalid value for SourceAppfiguresGroupBy: %v", v) + } +} + +type Appfigures string + +const ( + AppfiguresAppfigures Appfigures = "appfigures" +) + +func (e Appfigures) ToPointer() *Appfigures { + return &e +} +func (e *Appfigures) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "appfigures": + *e = Appfigures(v) + return nil + default: + return fmt.Errorf("invalid value for Appfigures: %v", v) + } +} + +type SourceAppfigures struct { + APIKey string `json:"api_key"` + // Category term for grouping the search results + GroupBy *SourceAppfiguresGroupBy `default:"product" json:"group_by"` + // The store which needs to be searched in streams + SearchStore *string `default:"apple" json:"search_store"` + sourceType Appfigures `const:"appfigures" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceAppfigures) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceAppfigures) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceAppfigures) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceAppfigures) GetGroupBy() *SourceAppfiguresGroupBy { + if o == nil { + return nil + } + return o.GroupBy +} + +func (o *SourceAppfigures) GetSearchStore() *string { + if o == nil { + return nil + } + return o.SearchStore +} + +func (o *SourceAppfigures) GetSourceType() Appfigures { + return AppfiguresAppfigures +} + +func (o *SourceAppfigures) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceappfigurescreaterequest.go b/internal/sdk/models/shared/sourceappfigurescreaterequest.go new file mode 100644 index 000000000..0a3564e97 --- /dev/null +++ b/internal/sdk/models/shared/sourceappfigurescreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceAppfiguresCreateRequest struct { + Configuration SourceAppfigures `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 *SourceAppfiguresCreateRequest) GetConfiguration() SourceAppfigures { + if o == nil { + return SourceAppfigures{} + } + return o.Configuration +} + +func (o *SourceAppfiguresCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceAppfiguresCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceAppfiguresCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceAppfiguresCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceappfiguresputrequest.go b/internal/sdk/models/shared/sourceappfiguresputrequest.go new file mode 100644 index 000000000..2d8c28922 --- /dev/null +++ b/internal/sdk/models/shared/sourceappfiguresputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceAppfiguresPutRequest struct { + Configuration SourceAppfiguresUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceAppfiguresPutRequest) GetConfiguration() SourceAppfiguresUpdate { + if o == nil { + return SourceAppfiguresUpdate{} + } + return o.Configuration +} + +func (o *SourceAppfiguresPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceAppfiguresPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceappfiguresupdate.go b/internal/sdk/models/shared/sourceappfiguresupdate.go new file mode 100644 index 000000000..1076eaa39 --- /dev/null +++ b/internal/sdk/models/shared/sourceappfiguresupdate.go @@ -0,0 +1,91 @@ +// 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" +) + +// GroupBy - Category term for grouping the search results +type GroupBy string + +const ( + GroupByNetwork GroupBy = "network" + GroupByProduct GroupBy = "product" + GroupByCountry GroupBy = "country" + GroupByDate GroupBy = "date" +) + +func (e GroupBy) ToPointer() *GroupBy { + return &e +} +func (e *GroupBy) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "network": + fallthrough + case "product": + fallthrough + case "country": + fallthrough + case "date": + *e = GroupBy(v) + return nil + default: + return fmt.Errorf("invalid value for GroupBy: %v", v) + } +} + +type SourceAppfiguresUpdate struct { + APIKey string `json:"api_key"` + // Category term for grouping the search results + GroupBy *GroupBy `default:"product" json:"group_by"` + // The store which needs to be searched in streams + SearchStore *string `default:"apple" json:"search_store"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceAppfiguresUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceAppfiguresUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceAppfiguresUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceAppfiguresUpdate) GetGroupBy() *GroupBy { + if o == nil { + return nil + } + return o.GroupBy +} + +func (o *SourceAppfiguresUpdate) GetSearchStore() *string { + if o == nil { + return nil + } + return o.SearchStore +} + +func (o *SourceAppfiguresUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceasana.go b/internal/sdk/models/shared/sourceasana.go index 847e16eea..f8ecde495 100644 --- a/internal/sdk/models/shared/sourceasana.go +++ b/internal/sdk/models/shared/sourceasana.go @@ -223,8 +223,6 @@ type SourceAsana struct { // Globally unique identifiers for the organization exports OrganizationExportIds []any `json:"organization_export_ids,omitempty"` sourceType *Asana `const:"asana" json:"sourceType,omitempty"` - // This flag is used for testing purposes for certain streams that return a lot of data. This flag is not meant to be enabled for prod. - TestMode *bool `json:"test_mode,omitempty"` } func (s SourceAsana) MarshalJSON() ([]byte, error) { @@ -255,10 +253,3 @@ func (o *SourceAsana) GetOrganizationExportIds() []any { func (o *SourceAsana) GetSourceType() *Asana { return AsanaAsana.ToPointer() } - -func (o *SourceAsana) GetTestMode() *bool { - if o == nil { - return nil - } - return o.TestMode -} diff --git a/internal/sdk/models/shared/sourceasanaupdate.go b/internal/sdk/models/shared/sourceasanaupdate.go index 22549ef25..e633aaa7e 100644 --- a/internal/sdk/models/shared/sourceasanaupdate.go +++ b/internal/sdk/models/shared/sourceasanaupdate.go @@ -199,8 +199,6 @@ type SourceAsanaUpdate struct { Credentials *AuthenticationMechanism `json:"credentials,omitempty"` // Globally unique identifiers for the organization exports OrganizationExportIds []any `json:"organization_export_ids,omitempty"` - // This flag is used for testing purposes for certain streams that return a lot of data. This flag is not meant to be enabled for prod. - TestMode *bool `json:"test_mode,omitempty"` } func (o *SourceAsanaUpdate) GetCredentials() *AuthenticationMechanism { @@ -216,10 +214,3 @@ func (o *SourceAsanaUpdate) GetOrganizationExportIds() []any { } return o.OrganizationExportIds } - -func (o *SourceAsanaUpdate) GetTestMode() *bool { - if o == nil { - return nil - } - return o.TestMode -} diff --git a/internal/sdk/models/shared/sourceazureblobstorage.go b/internal/sdk/models/shared/sourceazureblobstorage.go index 7bd8ff103..5a9fadceb 100644 --- a/internal/sdk/models/shared/sourceazureblobstorage.go +++ b/internal/sdk/models/shared/sourceazureblobstorage.go @@ -751,33 +751,6 @@ func (u SourceAzureBlobStorageCSVHeaderDefinition) MarshalJSON() ([]byte, error) return nil, errors.New("could not marshal union type SourceAzureBlobStorageCSVHeaderDefinition: all fields are null") } -// SourceAzureBlobStorageInferenceType - How to infer the types of the columns. If none, inference default to strings. -type SourceAzureBlobStorageInferenceType string - -const ( - SourceAzureBlobStorageInferenceTypeNone SourceAzureBlobStorageInferenceType = "None" - SourceAzureBlobStorageInferenceTypePrimitiveTypesOnly SourceAzureBlobStorageInferenceType = "Primitive Types Only" -) - -func (e SourceAzureBlobStorageInferenceType) ToPointer() *SourceAzureBlobStorageInferenceType { - return &e -} -func (e *SourceAzureBlobStorageInferenceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "None": - fallthrough - case "Primitive Types Only": - *e = SourceAzureBlobStorageInferenceType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceAzureBlobStorageInferenceType: %v", v) - } -} - type SourceAzureBlobStorageCSVFormat struct { // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Delimiter *string `default:"," json:"delimiter"` @@ -794,8 +767,6 @@ type SourceAzureBlobStorageCSVFormat struct { HeaderDefinition *SourceAzureBlobStorageCSVHeaderDefinition `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. IgnoreErrorsOnFieldsMismatch *bool `default:"false" json:"ignore_errors_on_fields_mismatch"` - // How to infer the types of the columns. If none, inference default to strings. - InferenceType *SourceAzureBlobStorageInferenceType `default:"None" json:"inference_type"` // 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. NullValues []string `json:"null_values,omitempty"` // The character used for quoting CSV values. To disallow quoting, make this field blank. @@ -874,13 +845,6 @@ func (o *SourceAzureBlobStorageCSVFormat) GetIgnoreErrorsOnFieldsMismatch() *boo return o.IgnoreErrorsOnFieldsMismatch } -func (o *SourceAzureBlobStorageCSVFormat) GetInferenceType() *SourceAzureBlobStorageInferenceType { - if o == nil { - return nil - } - return o.InferenceType -} - func (o *SourceAzureBlobStorageCSVFormat) GetNullValues() []string { if o == nil { return nil @@ -1143,12 +1107,8 @@ type SourceAzureBlobStorageFileBasedStreamConfig 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 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"` // 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. @@ -1194,13 +1154,6 @@ func (o *SourceAzureBlobStorageFileBasedStreamConfig) GetInputSchema() *string { return o.InputSchema } -func (o *SourceAzureBlobStorageFileBasedStreamConfig) GetLegacyPrefix() *string { - if o == nil { - return nil - } - return o.LegacyPrefix -} - func (o *SourceAzureBlobStorageFileBasedStreamConfig) GetName() string { if o == nil { return "" @@ -1208,13 +1161,6 @@ func (o *SourceAzureBlobStorageFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceAzureBlobStorageFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceAzureBlobStorageFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourceazureblobstorageupdate.go b/internal/sdk/models/shared/sourceazureblobstorageupdate.go index 12be5ed79..072b4965a 100644 --- a/internal/sdk/models/shared/sourceazureblobstorageupdate.go +++ b/internal/sdk/models/shared/sourceazureblobstorageupdate.go @@ -728,33 +728,6 @@ func (u CSVHeaderDefinition) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type CSVHeaderDefinition: all fields are null") } -// InferenceType - How to infer the types of the columns. If none, inference default to strings. -type InferenceType string - -const ( - InferenceTypeNone InferenceType = "None" - InferenceTypePrimitiveTypesOnly InferenceType = "Primitive Types Only" -) - -func (e InferenceType) ToPointer() *InferenceType { - return &e -} -func (e *InferenceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "None": - fallthrough - case "Primitive Types Only": - *e = InferenceType(v) - return nil - default: - return fmt.Errorf("invalid value for InferenceType: %v", v) - } -} - type CSVFormat struct { // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Delimiter *string `default:"," json:"delimiter"` @@ -771,8 +744,6 @@ type CSVFormat struct { HeaderDefinition *CSVHeaderDefinition `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. IgnoreErrorsOnFieldsMismatch *bool `default:"false" json:"ignore_errors_on_fields_mismatch"` - // How to infer the types of the columns. If none, inference default to strings. - InferenceType *InferenceType `default:"None" json:"inference_type"` // 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. NullValues []string `json:"null_values,omitempty"` // The character used for quoting CSV values. To disallow quoting, make this field blank. @@ -851,13 +822,6 @@ func (o *CSVFormat) GetIgnoreErrorsOnFieldsMismatch() *bool { return o.IgnoreErrorsOnFieldsMismatch } -func (o *CSVFormat) GetInferenceType() *InferenceType { - if o == nil { - return nil - } - return o.InferenceType -} - func (o *CSVFormat) GetNullValues() []string { if o == nil { return nil @@ -900,33 +864,33 @@ func (o *CSVFormat) GetTrueValues() []string { return o.TrueValues } -type SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletype string +type Filetype string const ( - SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletypeAvro SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletype = "avro" + FiletypeAvro Filetype = "avro" ) -func (e SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletype) ToPointer() *SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletype { +func (e Filetype) ToPointer() *Filetype { return &e } -func (e *SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletype) UnmarshalJSON(data []byte) error { +func (e *Filetype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "avro": - *e = SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletype(v) + *e = Filetype(v) return nil default: - return fmt.Errorf("invalid value for SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletype: %v", v) + return fmt.Errorf("invalid value for Filetype: %v", v) } } type AvroFormat 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 *SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletype `const:"avro" json:"filetype"` + DoubleAsString *bool `default:"false" json:"double_as_string"` + filetype *Filetype `const:"avro" json:"filetype"` } func (a AvroFormat) MarshalJSON() ([]byte, error) { @@ -947,8 +911,8 @@ func (o *AvroFormat) GetDoubleAsString() *bool { return o.DoubleAsString } -func (o *AvroFormat) GetFiletype() *SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletype { - return SourceAzureBlobStorageUpdateSchemasStreamsFormatFormatFiletypeAvro.ToPointer() +func (o *AvroFormat) GetFiletype() *Filetype { + return FiletypeAvro.ToPointer() } type FormatUnionType string @@ -1120,12 +1084,8 @@ type FileBasedStreamConfig 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 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"` // 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. @@ -1171,13 +1131,6 @@ func (o *FileBasedStreamConfig) GetInputSchema() *string { return o.InputSchema } -func (o *FileBasedStreamConfig) GetLegacyPrefix() *string { - if o == nil { - return nil - } - return o.LegacyPrefix -} - func (o *FileBasedStreamConfig) GetName() string { if o == nil { return "" @@ -1185,13 +1138,6 @@ func (o *FileBasedStreamConfig) GetName() string { return o.Name } -func (o *FileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *FileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcebitly.go b/internal/sdk/models/shared/sourcebitly.go new file mode 100644 index 000000000..fdb2dc84c --- /dev/null +++ b/internal/sdk/models/shared/sourcebitly.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 Bitly string + +const ( + BitlyBitly Bitly = "bitly" +) + +func (e Bitly) ToPointer() *Bitly { + return &e +} +func (e *Bitly) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "bitly": + *e = Bitly(v) + return nil + default: + return fmt.Errorf("invalid value for Bitly: %v", v) + } +} + +type SourceBitly struct { + APIKey string `json:"api_key"` + EndDate time.Time `json:"end_date"` + sourceType Bitly `const:"bitly" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBitly) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBitly) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBitly) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBitly) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceBitly) GetSourceType() Bitly { + return BitlyBitly +} + +func (o *SourceBitly) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcebitlycreaterequest.go b/internal/sdk/models/shared/sourcebitlycreaterequest.go new file mode 100644 index 000000000..94a1ca5c9 --- /dev/null +++ b/internal/sdk/models/shared/sourcebitlycreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBitlyCreateRequest struct { + Configuration SourceBitly `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 *SourceBitlyCreateRequest) GetConfiguration() SourceBitly { + if o == nil { + return SourceBitly{} + } + return o.Configuration +} + +func (o *SourceBitlyCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceBitlyCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBitlyCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceBitlyCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebitlyputrequest.go b/internal/sdk/models/shared/sourcebitlyputrequest.go new file mode 100644 index 000000000..fd499ef88 --- /dev/null +++ b/internal/sdk/models/shared/sourcebitlyputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBitlyPutRequest struct { + Configuration SourceBitlyUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceBitlyPutRequest) GetConfiguration() SourceBitlyUpdate { + if o == nil { + return SourceBitlyUpdate{} + } + return o.Configuration +} + +func (o *SourceBitlyPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBitlyPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebitlyupdate.go b/internal/sdk/models/shared/sourcebitlyupdate.go new file mode 100644 index 000000000..92d67620c --- /dev/null +++ b/internal/sdk/models/shared/sourcebitlyupdate.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 SourceBitlyUpdate struct { + APIKey string `json:"api_key"` + EndDate time.Time `json:"end_date"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBitlyUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBitlyUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBitlyUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBitlyUpdate) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceBitlyUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcebrevo.go b/internal/sdk/models/shared/sourcebrevo.go new file mode 100644 index 000000000..8a0b6c913 --- /dev/null +++ b/internal/sdk/models/shared/sourcebrevo.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 Brevo string + +const ( + BrevoBrevo Brevo = "brevo" +) + +func (e Brevo) ToPointer() *Brevo { + return &e +} +func (e *Brevo) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "brevo": + *e = Brevo(v) + return nil + default: + return fmt.Errorf("invalid value for Brevo: %v", v) + } +} + +type SourceBrevo struct { + APIKey string `json:"api_key"` + sourceType Brevo `const:"brevo" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBrevo) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBrevo) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBrevo) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBrevo) GetSourceType() Brevo { + return BrevoBrevo +} + +func (o *SourceBrevo) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcebrevocreaterequest.go b/internal/sdk/models/shared/sourcebrevocreaterequest.go new file mode 100644 index 000000000..a3ed06e6a --- /dev/null +++ b/internal/sdk/models/shared/sourcebrevocreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBrevoCreateRequest struct { + Configuration SourceBrevo `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 *SourceBrevoCreateRequest) GetConfiguration() SourceBrevo { + if o == nil { + return SourceBrevo{} + } + return o.Configuration +} + +func (o *SourceBrevoCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceBrevoCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBrevoCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceBrevoCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebrevoputrequest.go b/internal/sdk/models/shared/sourcebrevoputrequest.go new file mode 100644 index 000000000..99efae9e8 --- /dev/null +++ b/internal/sdk/models/shared/sourcebrevoputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBrevoPutRequest struct { + Configuration SourceBrevoUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceBrevoPutRequest) GetConfiguration() SourceBrevoUpdate { + if o == nil { + return SourceBrevoUpdate{} + } + return o.Configuration +} + +func (o *SourceBrevoPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBrevoPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebrevoupdate.go b/internal/sdk/models/shared/sourcebrevoupdate.go new file mode 100644 index 000000000..d947dc1b5 --- /dev/null +++ b/internal/sdk/models/shared/sourcebrevoupdate.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 SourceBrevoUpdate struct { + APIKey string `json:"api_key"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBrevoUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBrevoUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBrevoUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBrevoUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcebuildkite.go b/internal/sdk/models/shared/sourcebuildkite.go new file mode 100644 index 000000000..b73e1205d --- /dev/null +++ b/internal/sdk/models/shared/sourcebuildkite.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 Buildkite string + +const ( + BuildkiteBuildkite Buildkite = "buildkite" +) + +func (e Buildkite) ToPointer() *Buildkite { + return &e +} +func (e *Buildkite) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "buildkite": + *e = Buildkite(v) + return nil + default: + return fmt.Errorf("invalid value for Buildkite: %v", v) + } +} + +type SourceBuildkite struct { + APIKey string `json:"api_key"` + sourceType Buildkite `const:"buildkite" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBuildkite) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBuildkite) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBuildkite) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBuildkite) GetSourceType() Buildkite { + return BuildkiteBuildkite +} + +func (o *SourceBuildkite) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcebuildkitecreaterequest.go b/internal/sdk/models/shared/sourcebuildkitecreaterequest.go new file mode 100644 index 000000000..531870da2 --- /dev/null +++ b/internal/sdk/models/shared/sourcebuildkitecreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBuildkiteCreateRequest struct { + Configuration SourceBuildkite `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 *SourceBuildkiteCreateRequest) GetConfiguration() SourceBuildkite { + if o == nil { + return SourceBuildkite{} + } + return o.Configuration +} + +func (o *SourceBuildkiteCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceBuildkiteCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBuildkiteCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceBuildkiteCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebuildkiteputrequest.go b/internal/sdk/models/shared/sourcebuildkiteputrequest.go new file mode 100644 index 000000000..1deaf55a6 --- /dev/null +++ b/internal/sdk/models/shared/sourcebuildkiteputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBuildkitePutRequest struct { + Configuration SourceBuildkiteUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceBuildkitePutRequest) GetConfiguration() SourceBuildkiteUpdate { + if o == nil { + return SourceBuildkiteUpdate{} + } + return o.Configuration +} + +func (o *SourceBuildkitePutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBuildkitePutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebuildkiteupdate.go b/internal/sdk/models/shared/sourcebuildkiteupdate.go new file mode 100644 index 000000000..92dbb619f --- /dev/null +++ b/internal/sdk/models/shared/sourcebuildkiteupdate.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 SourceBuildkiteUpdate struct { + APIKey string `json:"api_key"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBuildkiteUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBuildkiteUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBuildkiteUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBuildkiteUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcebuzzsprout.go b/internal/sdk/models/shared/sourcebuzzsprout.go new file mode 100644 index 000000000..3750d3a6a --- /dev/null +++ b/internal/sdk/models/shared/sourcebuzzsprout.go @@ -0,0 +1,77 @@ +// 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 Buzzsprout string + +const ( + BuzzsproutBuzzsprout Buzzsprout = "buzzsprout" +) + +func (e Buzzsprout) ToPointer() *Buzzsprout { + return &e +} +func (e *Buzzsprout) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "buzzsprout": + *e = Buzzsprout(v) + return nil + default: + return fmt.Errorf("invalid value for Buzzsprout: %v", v) + } +} + +type SourceBuzzsprout struct { + APIKey string `json:"api_key"` + // Podcast ID found in `https://www.buzzsprout.com/my/profile/api` + PodcastID string `json:"podcast_id"` + sourceType Buzzsprout `const:"buzzsprout" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBuzzsprout) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBuzzsprout) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBuzzsprout) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBuzzsprout) GetPodcastID() string { + if o == nil { + return "" + } + return o.PodcastID +} + +func (o *SourceBuzzsprout) GetSourceType() Buzzsprout { + return BuzzsproutBuzzsprout +} + +func (o *SourceBuzzsprout) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcebuzzsproutcreaterequest.go b/internal/sdk/models/shared/sourcebuzzsproutcreaterequest.go new file mode 100644 index 000000000..9fc072635 --- /dev/null +++ b/internal/sdk/models/shared/sourcebuzzsproutcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBuzzsproutCreateRequest struct { + Configuration SourceBuzzsprout `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 *SourceBuzzsproutCreateRequest) GetConfiguration() SourceBuzzsprout { + if o == nil { + return SourceBuzzsprout{} + } + return o.Configuration +} + +func (o *SourceBuzzsproutCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceBuzzsproutCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBuzzsproutCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceBuzzsproutCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebuzzsproutputrequest.go b/internal/sdk/models/shared/sourcebuzzsproutputrequest.go new file mode 100644 index 000000000..032fbadf3 --- /dev/null +++ b/internal/sdk/models/shared/sourcebuzzsproutputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceBuzzsproutPutRequest struct { + Configuration SourceBuzzsproutUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceBuzzsproutPutRequest) GetConfiguration() SourceBuzzsproutUpdate { + if o == nil { + return SourceBuzzsproutUpdate{} + } + return o.Configuration +} + +func (o *SourceBuzzsproutPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceBuzzsproutPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcebuzzsproutupdate.go b/internal/sdk/models/shared/sourcebuzzsproutupdate.go new file mode 100644 index 000000000..c51d0ec9b --- /dev/null +++ b/internal/sdk/models/shared/sourcebuzzsproutupdate.go @@ -0,0 +1,47 @@ +// 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 SourceBuzzsproutUpdate struct { + APIKey string `json:"api_key"` + // Podcast ID found in `https://www.buzzsprout.com/my/profile/api` + PodcastID string `json:"podcast_id"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceBuzzsproutUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceBuzzsproutUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceBuzzsproutUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceBuzzsproutUpdate) GetPodcastID() string { + if o == nil { + return "" + } + return o.PodcastID +} + +func (o *SourceBuzzsproutUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcecanny.go b/internal/sdk/models/shared/sourcecanny.go new file mode 100644 index 000000000..3503fb8ed --- /dev/null +++ b/internal/sdk/models/shared/sourcecanny.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 Canny string + +const ( + CannyCanny Canny = "canny" +) + +func (e Canny) ToPointer() *Canny { + return &e +} +func (e *Canny) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "canny": + *e = Canny(v) + return nil + default: + return fmt.Errorf("invalid value for Canny: %v", v) + } +} + +type SourceCanny struct { + // You can find your secret API key in Your Canny Subdomain > Settings > API + APIKey string `json:"api_key"` + sourceType Canny `const:"canny" json:"sourceType"` +} + +func (s SourceCanny) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceCanny) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceCanny) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceCanny) GetSourceType() Canny { + return CannyCanny +} diff --git a/internal/sdk/models/shared/sourcecannycreaterequest.go b/internal/sdk/models/shared/sourcecannycreaterequest.go new file mode 100644 index 000000000..108eecb2b --- /dev/null +++ b/internal/sdk/models/shared/sourcecannycreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCannyCreateRequest struct { + Configuration SourceCanny `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 *SourceCannyCreateRequest) GetConfiguration() SourceCanny { + if o == nil { + return SourceCanny{} + } + return o.Configuration +} + +func (o *SourceCannyCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceCannyCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceCannyCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceCannyCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcecannyputrequest.go b/internal/sdk/models/shared/sourcecannyputrequest.go new file mode 100644 index 000000000..2f0b61525 --- /dev/null +++ b/internal/sdk/models/shared/sourcecannyputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCannyPutRequest struct { + Configuration SourceCannyUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceCannyPutRequest) GetConfiguration() SourceCannyUpdate { + if o == nil { + return SourceCannyUpdate{} + } + return o.Configuration +} + +func (o *SourceCannyPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceCannyPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcecannyupdate.go b/internal/sdk/models/shared/sourcecannyupdate.go new file mode 100644 index 000000000..041dbfaf4 --- /dev/null +++ b/internal/sdk/models/shared/sourcecannyupdate.go @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCannyUpdate struct { + // You can find your secret API key in Your Canny Subdomain > Settings > API + APIKey string `json:"api_key"` +} + +func (o *SourceCannyUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} diff --git a/internal/sdk/models/shared/sourcechameleon.go b/internal/sdk/models/shared/sourcechameleon.go new file mode 100644 index 000000000..952c52eff --- /dev/null +++ b/internal/sdk/models/shared/sourcechameleon.go @@ -0,0 +1,124 @@ +// 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" +) + +// SourceChameleonFilter - Filter for using in the `segments_experiences` stream +type SourceChameleonFilter string + +const ( + SourceChameleonFilterTour SourceChameleonFilter = "tour" + SourceChameleonFilterSurvey SourceChameleonFilter = "survey" + SourceChameleonFilterLauncher SourceChameleonFilter = "launcher" +) + +func (e SourceChameleonFilter) ToPointer() *SourceChameleonFilter { + return &e +} +func (e *SourceChameleonFilter) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "tour": + fallthrough + case "survey": + fallthrough + case "launcher": + *e = SourceChameleonFilter(v) + return nil + default: + return fmt.Errorf("invalid value for SourceChameleonFilter: %v", v) + } +} + +type Chameleon string + +const ( + ChameleonChameleon Chameleon = "chameleon" +) + +func (e Chameleon) ToPointer() *Chameleon { + return &e +} +func (e *Chameleon) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "chameleon": + *e = Chameleon(v) + return nil + default: + return fmt.Errorf("invalid value for Chameleon: %v", v) + } +} + +type SourceChameleon struct { + APIKey string `json:"api_key"` + EndDate time.Time `json:"end_date"` + // Filter for using in the `segments_experiences` stream + Filter *SourceChameleonFilter `default:"tour" json:"filter"` + // Max records per page limit + Limit *string `default:"50" json:"limit"` + sourceType Chameleon `const:"chameleon" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceChameleon) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceChameleon) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceChameleon) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceChameleon) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceChameleon) GetFilter() *SourceChameleonFilter { + if o == nil { + return nil + } + return o.Filter +} + +func (o *SourceChameleon) GetLimit() *string { + if o == nil { + return nil + } + return o.Limit +} + +func (o *SourceChameleon) GetSourceType() Chameleon { + return ChameleonChameleon +} + +func (o *SourceChameleon) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcechameleoncreaterequest.go b/internal/sdk/models/shared/sourcechameleoncreaterequest.go new file mode 100644 index 000000000..4c99a54b0 --- /dev/null +++ b/internal/sdk/models/shared/sourcechameleoncreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceChameleonCreateRequest struct { + Configuration SourceChameleon `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 *SourceChameleonCreateRequest) GetConfiguration() SourceChameleon { + if o == nil { + return SourceChameleon{} + } + return o.Configuration +} + +func (o *SourceChameleonCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceChameleonCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceChameleonCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceChameleonCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcechameleonputrequest.go b/internal/sdk/models/shared/sourcechameleonputrequest.go new file mode 100644 index 000000000..714418804 --- /dev/null +++ b/internal/sdk/models/shared/sourcechameleonputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceChameleonPutRequest struct { + Configuration SourceChameleonUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceChameleonPutRequest) GetConfiguration() SourceChameleonUpdate { + if o == nil { + return SourceChameleonUpdate{} + } + return o.Configuration +} + +func (o *SourceChameleonPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceChameleonPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcechameleonupdate.go b/internal/sdk/models/shared/sourcechameleonupdate.go new file mode 100644 index 000000000..88650381b --- /dev/null +++ b/internal/sdk/models/shared/sourcechameleonupdate.go @@ -0,0 +1,96 @@ +// 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" +) + +// Filter for using in the `segments_experiences` stream +type Filter string + +const ( + FilterTour Filter = "tour" + FilterSurvey Filter = "survey" + FilterLauncher Filter = "launcher" +) + +func (e Filter) ToPointer() *Filter { + return &e +} +func (e *Filter) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "tour": + fallthrough + case "survey": + fallthrough + case "launcher": + *e = Filter(v) + return nil + default: + return fmt.Errorf("invalid value for Filter: %v", v) + } +} + +type SourceChameleonUpdate struct { + APIKey string `json:"api_key"` + EndDate time.Time `json:"end_date"` + // Filter for using in the `segments_experiences` stream + Filter *Filter `default:"tour" json:"filter"` + // Max records per page limit + Limit *string `default:"50" json:"limit"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceChameleonUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceChameleonUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceChameleonUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceChameleonUpdate) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceChameleonUpdate) GetFilter() *Filter { + if o == nil { + return nil + } + return o.Filter +} + +func (o *SourceChameleonUpdate) GetLimit() *string { + if o == nil { + return nil + } + return o.Limit +} + +func (o *SourceChameleonUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcecimis.go b/internal/sdk/models/shared/sourcecimis.go new file mode 100644 index 000000000..161703f9c --- /dev/null +++ b/internal/sdk/models/shared/sourcecimis.go @@ -0,0 +1,174 @@ +// 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 Cimis string + +const ( + CimisCimis Cimis = "cimis" +) + +func (e Cimis) ToPointer() *Cimis { + return &e +} +func (e *Cimis) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "cimis": + *e = Cimis(v) + return nil + default: + return fmt.Errorf("invalid value for Cimis: %v", v) + } +} + +type SourceCimisTargetsType string + +const ( + SourceCimisTargetsTypeWsnStationNumbers SourceCimisTargetsType = "WSN station numbers" + SourceCimisTargetsTypeCaliforniaZipCodes SourceCimisTargetsType = "California zip codes" + SourceCimisTargetsTypeDecimalDegreeCoordinates SourceCimisTargetsType = "decimal-degree coordinates" + SourceCimisTargetsTypeStreetAddresses SourceCimisTargetsType = "street addresses" +) + +func (e SourceCimisTargetsType) ToPointer() *SourceCimisTargetsType { + return &e +} +func (e *SourceCimisTargetsType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "WSN station numbers": + fallthrough + case "California zip codes": + fallthrough + case "decimal-degree coordinates": + fallthrough + case "street addresses": + *e = SourceCimisTargetsType(v) + return nil + default: + return fmt.Errorf("invalid value for SourceCimisTargetsType: %v", v) + } +} + +type SourceCimisUnitOfMeasure string + +const ( + SourceCimisUnitOfMeasureE SourceCimisUnitOfMeasure = "E" + SourceCimisUnitOfMeasureM SourceCimisUnitOfMeasure = "M" +) + +func (e SourceCimisUnitOfMeasure) ToPointer() *SourceCimisUnitOfMeasure { + return &e +} +func (e *SourceCimisUnitOfMeasure) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "E": + fallthrough + case "M": + *e = SourceCimisUnitOfMeasure(v) + return nil + default: + return fmt.Errorf("invalid value for SourceCimisUnitOfMeasure: %v", v) + } +} + +type SourceCimis struct { + APIKey string `json:"api_key"` + DailyDataItems []any `json:"daily_data_items,omitempty"` + EndDate time.Time `json:"end_date"` + HourlyDataItems []any `json:"hourly_data_items,omitempty"` + sourceType Cimis `const:"cimis" json:"sourceType"` + StartDate time.Time `json:"start_date"` + Targets []any `json:"targets"` + TargetsType SourceCimisTargetsType `json:"targets_type"` + UnitOfMeasure *SourceCimisUnitOfMeasure `json:"unit_of_measure,omitempty"` +} + +func (s SourceCimis) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceCimis) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceCimis) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceCimis) GetDailyDataItems() []any { + if o == nil { + return nil + } + return o.DailyDataItems +} + +func (o *SourceCimis) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceCimis) GetHourlyDataItems() []any { + if o == nil { + return nil + } + return o.HourlyDataItems +} + +func (o *SourceCimis) GetSourceType() Cimis { + return CimisCimis +} + +func (o *SourceCimis) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceCimis) GetTargets() []any { + if o == nil { + return []any{} + } + return o.Targets +} + +func (o *SourceCimis) GetTargetsType() SourceCimisTargetsType { + if o == nil { + return SourceCimisTargetsType("") + } + return o.TargetsType +} + +func (o *SourceCimis) GetUnitOfMeasure() *SourceCimisUnitOfMeasure { + if o == nil { + return nil + } + return o.UnitOfMeasure +} diff --git a/internal/sdk/models/shared/sourcecimiscreaterequest.go b/internal/sdk/models/shared/sourcecimiscreaterequest.go new file mode 100644 index 000000000..152ad91a6 --- /dev/null +++ b/internal/sdk/models/shared/sourcecimiscreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCimisCreateRequest struct { + Configuration SourceCimis `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 *SourceCimisCreateRequest) GetConfiguration() SourceCimis { + if o == nil { + return SourceCimis{} + } + return o.Configuration +} + +func (o *SourceCimisCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceCimisCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceCimisCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceCimisCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcecimisputrequest.go b/internal/sdk/models/shared/sourcecimisputrequest.go new file mode 100644 index 000000000..e84d8f721 --- /dev/null +++ b/internal/sdk/models/shared/sourcecimisputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceCimisPutRequest struct { + Configuration SourceCimisUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceCimisPutRequest) GetConfiguration() SourceCimisUpdate { + if o == nil { + return SourceCimisUpdate{} + } + return o.Configuration +} + +func (o *SourceCimisPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceCimisPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcecimisupdate.go b/internal/sdk/models/shared/sourcecimisupdate.go new file mode 100644 index 000000000..0b9f7e4f7 --- /dev/null +++ b/internal/sdk/models/shared/sourcecimisupdate.go @@ -0,0 +1,146 @@ +// 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 TargetsType string + +const ( + TargetsTypeWsnStationNumbers TargetsType = "WSN station numbers" + TargetsTypeCaliforniaZipCodes TargetsType = "California zip codes" + TargetsTypeDecimalDegreeCoordinates TargetsType = "decimal-degree coordinates" + TargetsTypeStreetAddresses TargetsType = "street addresses" +) + +func (e TargetsType) ToPointer() *TargetsType { + return &e +} +func (e *TargetsType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "WSN station numbers": + fallthrough + case "California zip codes": + fallthrough + case "decimal-degree coordinates": + fallthrough + case "street addresses": + *e = TargetsType(v) + return nil + default: + return fmt.Errorf("invalid value for TargetsType: %v", v) + } +} + +type UnitOfMeasure string + +const ( + UnitOfMeasureE UnitOfMeasure = "E" + UnitOfMeasureM UnitOfMeasure = "M" +) + +func (e UnitOfMeasure) ToPointer() *UnitOfMeasure { + return &e +} +func (e *UnitOfMeasure) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "E": + fallthrough + case "M": + *e = UnitOfMeasure(v) + return nil + default: + return fmt.Errorf("invalid value for UnitOfMeasure: %v", v) + } +} + +type SourceCimisUpdate struct { + APIKey string `json:"api_key"` + DailyDataItems []any `json:"daily_data_items,omitempty"` + EndDate time.Time `json:"end_date"` + HourlyDataItems []any `json:"hourly_data_items,omitempty"` + StartDate time.Time `json:"start_date"` + Targets []any `json:"targets"` + TargetsType TargetsType `json:"targets_type"` + UnitOfMeasure *UnitOfMeasure `json:"unit_of_measure,omitempty"` +} + +func (s SourceCimisUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceCimisUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceCimisUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceCimisUpdate) GetDailyDataItems() []any { + if o == nil { + return nil + } + return o.DailyDataItems +} + +func (o *SourceCimisUpdate) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceCimisUpdate) GetHourlyDataItems() []any { + if o == nil { + return nil + } + return o.HourlyDataItems +} + +func (o *SourceCimisUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceCimisUpdate) GetTargets() []any { + if o == nil { + return []any{} + } + return o.Targets +} + +func (o *SourceCimisUpdate) GetTargetsType() TargetsType { + if o == nil { + return TargetsType("") + } + return o.TargetsType +} + +func (o *SourceCimisUpdate) GetUnitOfMeasure() *UnitOfMeasure { + if o == nil { + return nil + } + return o.UnitOfMeasure +} diff --git a/internal/sdk/models/shared/sourceclickhouse.go b/internal/sdk/models/shared/sourceclickhouse.go index 615d886f8..35e9061a0 100644 --- a/internal/sdk/models/shared/sourceclickhouse.go +++ b/internal/sdk/models/shared/sourceclickhouse.go @@ -334,6 +334,8 @@ type SourceClickhouse struct { // The port of the database. Port *int64 `default:"8123" json:"port"` sourceType SourceClickhouseClickhouse `const:"clickhouse" json:"sourceType"` + // Encrypt data using SSL. + Ssl *bool `default:"true" json:"ssl"` // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. TunnelMethod *SourceClickhouseSSHTunnelMethod `json:"tunnel_method,omitempty"` // The username which is used to access the database. @@ -390,6 +392,13 @@ func (o *SourceClickhouse) GetSourceType() SourceClickhouseClickhouse { return SourceClickhouseClickhouseClickhouse } +func (o *SourceClickhouse) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *SourceClickhouse) GetTunnelMethod() *SourceClickhouseSSHTunnelMethod { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourceclickhouseupdate.go b/internal/sdk/models/shared/sourceclickhouseupdate.go index 93fc9f2f9..509cdbafd 100644 --- a/internal/sdk/models/shared/sourceclickhouseupdate.go +++ b/internal/sdk/models/shared/sourceclickhouseupdate.go @@ -310,6 +310,8 @@ type SourceClickhouseUpdate struct { Password *string `json:"password,omitempty"` // The port of the database. Port *int64 `default:"8123" json:"port"` + // Encrypt data using SSL. + Ssl *bool `default:"true" json:"ssl"` // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. TunnelMethod *SourceClickhouseUpdateSSHTunnelMethod `json:"tunnel_method,omitempty"` // The username which is used to access the database. @@ -362,6 +364,13 @@ func (o *SourceClickhouseUpdate) GetPort() *int64 { return o.Port } +func (o *SourceClickhouseUpdate) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *SourceClickhouseUpdate) GetTunnelMethod() *SourceClickhouseUpdateSSHTunnelMethod { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourceezofficeinventory.go b/internal/sdk/models/shared/sourceezofficeinventory.go new file mode 100644 index 000000000..e176efa3d --- /dev/null +++ b/internal/sdk/models/shared/sourceezofficeinventory.go @@ -0,0 +1,79 @@ +// 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 Ezofficeinventory string + +const ( + EzofficeinventoryEzofficeinventory Ezofficeinventory = "ezofficeinventory" +) + +func (e Ezofficeinventory) ToPointer() *Ezofficeinventory { + return &e +} +func (e *Ezofficeinventory) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "ezofficeinventory": + *e = Ezofficeinventory(v) + return nil + default: + return fmt.Errorf("invalid value for Ezofficeinventory: %v", v) + } +} + +type SourceEzofficeinventory struct { + // Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in Settings > Integrations > API Integration and click on Update to generate a new access token + APIKey string `json:"api_key"` + sourceType Ezofficeinventory `const:"ezofficeinventory" json:"sourceType"` + // Earliest date you want to sync historical streams (inventory_histories, asset_histories, asset_stock_histories) from + StartDate time.Time `json:"start_date"` + // The company name used in signup, also visible in the URL when logged in. + Subdomain string `json:"subdomain"` +} + +func (s SourceEzofficeinventory) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceEzofficeinventory) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceEzofficeinventory) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceEzofficeinventory) GetSourceType() Ezofficeinventory { + return EzofficeinventoryEzofficeinventory +} + +func (o *SourceEzofficeinventory) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceEzofficeinventory) GetSubdomain() string { + if o == nil { + return "" + } + return o.Subdomain +} diff --git a/internal/sdk/models/shared/sourceezofficeinventorycreaterequest.go b/internal/sdk/models/shared/sourceezofficeinventorycreaterequest.go new file mode 100644 index 000000000..0620da315 --- /dev/null +++ b/internal/sdk/models/shared/sourceezofficeinventorycreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceEzofficeinventoryCreateRequest struct { + Configuration SourceEzofficeinventory `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 *SourceEzofficeinventoryCreateRequest) GetConfiguration() SourceEzofficeinventory { + if o == nil { + return SourceEzofficeinventory{} + } + return o.Configuration +} + +func (o *SourceEzofficeinventoryCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceEzofficeinventoryCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceEzofficeinventoryCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceEzofficeinventoryCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceezofficeinventoryputrequest.go b/internal/sdk/models/shared/sourceezofficeinventoryputrequest.go new file mode 100644 index 000000000..cefed8bf8 --- /dev/null +++ b/internal/sdk/models/shared/sourceezofficeinventoryputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceEzofficeinventoryPutRequest struct { + Configuration SourceEzofficeinventoryUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceEzofficeinventoryPutRequest) GetConfiguration() SourceEzofficeinventoryUpdate { + if o == nil { + return SourceEzofficeinventoryUpdate{} + } + return o.Configuration +} + +func (o *SourceEzofficeinventoryPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceEzofficeinventoryPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceezofficeinventoryupdate.go b/internal/sdk/models/shared/sourceezofficeinventoryupdate.go new file mode 100644 index 000000000..f93796ca9 --- /dev/null +++ b/internal/sdk/models/shared/sourceezofficeinventoryupdate.go @@ -0,0 +1,49 @@ +// 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 SourceEzofficeinventoryUpdate struct { + // Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in Settings > Integrations > API Integration and click on Update to generate a new access token + APIKey string `json:"api_key"` + // Earliest date you want to sync historical streams (inventory_histories, asset_histories, asset_stock_histories) from + StartDate time.Time `json:"start_date"` + // The company name used in signup, also visible in the URL when logged in. + Subdomain string `json:"subdomain"` +} + +func (s SourceEzofficeinventoryUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceEzofficeinventoryUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceEzofficeinventoryUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceEzofficeinventoryUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceEzofficeinventoryUpdate) GetSubdomain() string { + if o == nil { + return "" + } + return o.Subdomain +} diff --git a/internal/sdk/models/shared/sourcefacebookmarketing.go b/internal/sdk/models/shared/sourcefacebookmarketing.go index 00710e079..7649972f9 100644 --- a/internal/sdk/models/shared/sourcefacebookmarketing.go +++ b/internal/sdk/models/shared/sourcefacebookmarketing.go @@ -1155,18 +1155,12 @@ type SourceFacebookMarketing struct { AccessToken *string `json:"access_token,omitempty"` // 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. AccountIds []string `json:"account_ids"` - // Allows action_breakdowns to be an empty list - ActionBreakdownsAllowEmpty *bool `default:"true" json:"action_breakdowns_allow_empty"` // 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. AdStatuses []SourceFacebookMarketingValidAdStatuses `json:"ad_statuses,omitempty"` // 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. AdsetStatuses []SourceFacebookMarketingValidAdSetStatuses `json:"adset_statuses,omitempty"` // 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. CampaignStatuses []SourceFacebookMarketingValidCampaignStatuses `json:"campaign_statuses,omitempty"` - // The Client Id for your OAuth app - 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. @@ -1211,13 +1205,6 @@ func (o *SourceFacebookMarketing) GetAccountIds() []string { return o.AccountIds } -func (o *SourceFacebookMarketing) GetActionBreakdownsAllowEmpty() *bool { - if o == nil { - return nil - } - return o.ActionBreakdownsAllowEmpty -} - func (o *SourceFacebookMarketing) GetAdStatuses() []SourceFacebookMarketingValidAdStatuses { if o == nil { return nil @@ -1239,20 +1226,6 @@ func (o *SourceFacebookMarketing) GetCampaignStatuses() []SourceFacebookMarketin return o.CampaignStatuses } -func (o *SourceFacebookMarketing) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - -func (o *SourceFacebookMarketing) GetClientSecret() *string { - if o == nil { - return nil - } - return o.ClientSecret -} - func (o *SourceFacebookMarketing) GetCredentials() SourceFacebookMarketingAuthentication { if o == nil { return SourceFacebookMarketingAuthentication{} diff --git a/internal/sdk/models/shared/sourcefacebookmarketingupdate.go b/internal/sdk/models/shared/sourcefacebookmarketingupdate.go index 5e49fa251..782b20288 100644 --- a/internal/sdk/models/shared/sourcefacebookmarketingupdate.go +++ b/internal/sdk/models/shared/sourcefacebookmarketingupdate.go @@ -1132,18 +1132,12 @@ type SourceFacebookMarketingUpdate struct { AccessToken *string `json:"access_token,omitempty"` // 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. AccountIds []string `json:"account_ids"` - // Allows action_breakdowns to be an empty list - ActionBreakdownsAllowEmpty *bool `default:"true" json:"action_breakdowns_allow_empty"` // 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. AdStatuses []ValidAdStatuses `json:"ad_statuses,omitempty"` // 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. AdsetStatuses []ValidAdSetStatuses `json:"adset_statuses,omitempty"` // 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. CampaignStatuses []ValidCampaignStatuses `json:"campaign_statuses,omitempty"` - // The Client Id for your OAuth app - 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. @@ -1187,13 +1181,6 @@ func (o *SourceFacebookMarketingUpdate) GetAccountIds() []string { return o.AccountIds } -func (o *SourceFacebookMarketingUpdate) GetActionBreakdownsAllowEmpty() *bool { - if o == nil { - return nil - } - return o.ActionBreakdownsAllowEmpty -} - func (o *SourceFacebookMarketingUpdate) GetAdStatuses() []ValidAdStatuses { if o == nil { return nil @@ -1215,20 +1202,6 @@ func (o *SourceFacebookMarketingUpdate) GetCampaignStatuses() []ValidCampaignSta return o.CampaignStatuses } -func (o *SourceFacebookMarketingUpdate) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - -func (o *SourceFacebookMarketingUpdate) GetClientSecret() *string { - if o == nil { - return nil - } - return o.ClientSecret -} - func (o *SourceFacebookMarketingUpdate) GetCredentials() SourceFacebookMarketingUpdateAuthentication { if o == nil { return SourceFacebookMarketingUpdateAuthentication{} diff --git a/internal/sdk/models/shared/sourcefile.go b/internal/sdk/models/shared/sourcefile.go index 0b790fa84..cb4f19938 100644 --- a/internal/sdk/models/shared/sourcefile.go +++ b/internal/sdk/models/shared/sourcefile.go @@ -57,6 +57,50 @@ func (e *SourceFileFileFormat) UnmarshalJSON(data []byte) error { } } +// SourceFileSchemasProviderStorageProvider8Storage - WARNING: Note that the local storage URL available for reading must start with the local mount "/local/" at the moment until we implement more advanced docker mounting options. +type SourceFileSchemasProviderStorageProvider8Storage string + +const ( + SourceFileSchemasProviderStorageProvider8StorageLocal SourceFileSchemasProviderStorageProvider8Storage = "local" +) + +func (e SourceFileSchemasProviderStorageProvider8Storage) ToPointer() *SourceFileSchemasProviderStorageProvider8Storage { + return &e +} +func (e *SourceFileSchemasProviderStorageProvider8Storage) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "local": + *e = SourceFileSchemasProviderStorageProvider8Storage(v) + return nil + default: + return fmt.Errorf("invalid value for SourceFileSchemasProviderStorageProvider8Storage: %v", v) + } +} + +type SourceFileLocalFilesystemLimited struct { + // WARNING: Note that the local storage URL available for reading must start with the local mount "/local/" at the moment until we implement more advanced docker mounting options. + storage SourceFileSchemasProviderStorageProvider8Storage `const:"local" json:"storage"` +} + +func (s SourceFileLocalFilesystemLimited) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceFileLocalFilesystemLimited) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceFileLocalFilesystemLimited) GetStorage() SourceFileSchemasProviderStorageProvider8Storage { + return SourceFileSchemasProviderStorageProvider8StorageLocal +} + type SourceFileSchemasProviderStorageProvider7Storage string const ( @@ -520,6 +564,7 @@ const ( SourceFileStorageProviderTypeSourceFileSSHSecureShell SourceFileStorageProviderType = "source-file_SSH: Secure Shell" SourceFileStorageProviderTypeSourceFileSCPSecureCopyProtocol SourceFileStorageProviderType = "source-file_SCP: Secure copy protocol" SourceFileStorageProviderTypeSourceFileSFTPSecureFileTransferProtocol SourceFileStorageProviderType = "source-file_SFTP: Secure File Transfer Protocol" + SourceFileStorageProviderTypeSourceFileLocalFilesystemLimited SourceFileStorageProviderType = "source-file_Local Filesystem (limited)" ) // SourceFileStorageProvider - The storage Provider or Location of the file(s) which should be replicated. @@ -531,6 +576,7 @@ type SourceFileStorageProvider struct { SourceFileSSHSecureShell *SourceFileSSHSecureShell SourceFileSCPSecureCopyProtocol *SourceFileSCPSecureCopyProtocol SourceFileSFTPSecureFileTransferProtocol *SourceFileSFTPSecureFileTransferProtocol + SourceFileLocalFilesystemLimited *SourceFileLocalFilesystemLimited Type SourceFileStorageProviderType } @@ -598,8 +644,24 @@ func CreateSourceFileStorageProviderSourceFileSFTPSecureFileTransferProtocol(sou } } +func CreateSourceFileStorageProviderSourceFileLocalFilesystemLimited(sourceFileLocalFilesystemLimited SourceFileLocalFilesystemLimited) SourceFileStorageProvider { + typ := SourceFileStorageProviderTypeSourceFileLocalFilesystemLimited + + return SourceFileStorageProvider{ + SourceFileLocalFilesystemLimited: &sourceFileLocalFilesystemLimited, + Type: typ, + } +} + func (u *SourceFileStorageProvider) UnmarshalJSON(data []byte) error { + var sourceFileLocalFilesystemLimited SourceFileLocalFilesystemLimited = SourceFileLocalFilesystemLimited{} + if err := utils.UnmarshalJSON(data, &sourceFileLocalFilesystemLimited, "", true, true); err == nil { + u.SourceFileLocalFilesystemLimited = &sourceFileLocalFilesystemLimited + u.Type = SourceFileStorageProviderTypeSourceFileLocalFilesystemLimited + return nil + } + var sourceFileHTTPSPublicWeb SourceFileHTTPSPublicWeb = SourceFileHTTPSPublicWeb{} if err := utils.UnmarshalJSON(data, &sourceFileHTTPSPublicWeb, "", true, true); err == nil { u.SourceFileHTTPSPublicWeb = &sourceFileHTTPSPublicWeb @@ -681,6 +743,10 @@ func (u SourceFileStorageProvider) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceFileSFTPSecureFileTransferProtocol, "", true) } + if u.SourceFileLocalFilesystemLimited != nil { + return utils.MarshalJSON(u.SourceFileLocalFilesystemLimited, "", true) + } + return nil, errors.New("could not marshal union type SourceFileStorageProvider: all fields are null") } diff --git a/internal/sdk/models/shared/sourcefileupdate.go b/internal/sdk/models/shared/sourcefileupdate.go index 40522f08e..371d5b90f 100644 --- a/internal/sdk/models/shared/sourcefileupdate.go +++ b/internal/sdk/models/shared/sourcefileupdate.go @@ -57,6 +57,50 @@ func (e *FileFormat) UnmarshalJSON(data []byte) error { } } +// SourceFileUpdateSchemasProviderStorageProvider8Storage - WARNING: Note that the local storage URL available for reading must start with the local mount "/local/" at the moment until we implement more advanced docker mounting options. +type SourceFileUpdateSchemasProviderStorageProvider8Storage string + +const ( + SourceFileUpdateSchemasProviderStorageProvider8StorageLocal SourceFileUpdateSchemasProviderStorageProvider8Storage = "local" +) + +func (e SourceFileUpdateSchemasProviderStorageProvider8Storage) ToPointer() *SourceFileUpdateSchemasProviderStorageProvider8Storage { + return &e +} +func (e *SourceFileUpdateSchemasProviderStorageProvider8Storage) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "local": + *e = SourceFileUpdateSchemasProviderStorageProvider8Storage(v) + return nil + default: + return fmt.Errorf("invalid value for SourceFileUpdateSchemasProviderStorageProvider8Storage: %v", v) + } +} + +type LocalFilesystemLimited struct { + // WARNING: Note that the local storage URL available for reading must start with the local mount "/local/" at the moment until we implement more advanced docker mounting options. + storage SourceFileUpdateSchemasProviderStorageProvider8Storage `const:"local" json:"storage"` +} + +func (l LocalFilesystemLimited) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *LocalFilesystemLimited) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, true); err != nil { + return err + } + return nil +} + +func (o *LocalFilesystemLimited) GetStorage() SourceFileUpdateSchemasProviderStorageProvider8Storage { + return SourceFileUpdateSchemasProviderStorageProvider8StorageLocal +} + type SourceFileUpdateSchemasProviderStorageProvider7Storage string const ( @@ -371,7 +415,7 @@ func (e *SourceFileUpdateSchemasStorage) UnmarshalJSON(data []byte) error { } } -type SourceFileUpdateS3AmazonWebServices struct { +type S3AmazonWebServices struct { // 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. AwsAccessKeyID *string `json:"aws_access_key_id,omitempty"` // 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. @@ -379,32 +423,32 @@ type SourceFileUpdateS3AmazonWebServices struct { storage SourceFileUpdateSchemasStorage `const:"S3" json:"storage"` } -func (s SourceFileUpdateS3AmazonWebServices) MarshalJSON() ([]byte, error) { +func (s S3AmazonWebServices) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceFileUpdateS3AmazonWebServices) UnmarshalJSON(data []byte) error { +func (s *S3AmazonWebServices) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceFileUpdateS3AmazonWebServices) GetAwsAccessKeyID() *string { +func (o *S3AmazonWebServices) GetAwsAccessKeyID() *string { if o == nil { return nil } return o.AwsAccessKeyID } -func (o *SourceFileUpdateS3AmazonWebServices) GetAwsSecretAccessKey() *string { +func (o *S3AmazonWebServices) GetAwsSecretAccessKey() *string { if o == nil { return nil } return o.AwsSecretAccessKey } -func (o *SourceFileUpdateS3AmazonWebServices) GetStorage() SourceFileUpdateSchemasStorage { +func (o *S3AmazonWebServices) GetStorage() SourceFileUpdateSchemasStorage { return SourceFileUpdateSchemasStorageS3 } @@ -513,24 +557,26 @@ func (o *HTTPSPublicWeb) GetUserAgent() *bool { type StorageProviderType string const ( - StorageProviderTypeHTTPSPublicWeb StorageProviderType = "HTTPS: Public Web" - StorageProviderTypeGCSGoogleCloudStorage StorageProviderType = "GCS: Google Cloud Storage" - StorageProviderTypeSourceFileUpdateS3AmazonWebServices StorageProviderType = "source-file-update_S3: Amazon Web Services" - StorageProviderTypeAzBlobAzureBlobStorage StorageProviderType = "AzBlob: Azure Blob Storage" - StorageProviderTypeSSHSecureShell StorageProviderType = "SSH: Secure Shell" - StorageProviderTypeSCPSecureCopyProtocol StorageProviderType = "SCP: Secure copy protocol" - StorageProviderTypeSFTPSecureFileTransferProtocol StorageProviderType = "SFTP: Secure File Transfer Protocol" + StorageProviderTypeHTTPSPublicWeb StorageProviderType = "HTTPS: Public Web" + StorageProviderTypeGCSGoogleCloudStorage StorageProviderType = "GCS: Google Cloud Storage" + StorageProviderTypeS3AmazonWebServices StorageProviderType = "S3: Amazon Web Services" + StorageProviderTypeAzBlobAzureBlobStorage StorageProviderType = "AzBlob: Azure Blob Storage" + StorageProviderTypeSSHSecureShell StorageProviderType = "SSH: Secure Shell" + StorageProviderTypeSCPSecureCopyProtocol StorageProviderType = "SCP: Secure copy protocol" + StorageProviderTypeSFTPSecureFileTransferProtocol StorageProviderType = "SFTP: Secure File Transfer Protocol" + StorageProviderTypeLocalFilesystemLimited StorageProviderType = "Local Filesystem (limited)" ) // StorageProvider - The storage Provider or Location of the file(s) which should be replicated. type StorageProvider struct { - HTTPSPublicWeb *HTTPSPublicWeb - GCSGoogleCloudStorage *GCSGoogleCloudStorage - SourceFileUpdateS3AmazonWebServices *SourceFileUpdateS3AmazonWebServices - AzBlobAzureBlobStorage *AzBlobAzureBlobStorage - SSHSecureShell *SSHSecureShell - SCPSecureCopyProtocol *SCPSecureCopyProtocol - SFTPSecureFileTransferProtocol *SFTPSecureFileTransferProtocol + HTTPSPublicWeb *HTTPSPublicWeb + GCSGoogleCloudStorage *GCSGoogleCloudStorage + S3AmazonWebServices *S3AmazonWebServices + AzBlobAzureBlobStorage *AzBlobAzureBlobStorage + SSHSecureShell *SSHSecureShell + SCPSecureCopyProtocol *SCPSecureCopyProtocol + SFTPSecureFileTransferProtocol *SFTPSecureFileTransferProtocol + LocalFilesystemLimited *LocalFilesystemLimited Type StorageProviderType } @@ -553,12 +599,12 @@ func CreateStorageProviderGCSGoogleCloudStorage(gcsGoogleCloudStorage GCSGoogleC } } -func CreateStorageProviderSourceFileUpdateS3AmazonWebServices(sourceFileUpdateS3AmazonWebServices SourceFileUpdateS3AmazonWebServices) StorageProvider { - typ := StorageProviderTypeSourceFileUpdateS3AmazonWebServices +func CreateStorageProviderS3AmazonWebServices(s3AmazonWebServices S3AmazonWebServices) StorageProvider { + typ := StorageProviderTypeS3AmazonWebServices return StorageProvider{ - SourceFileUpdateS3AmazonWebServices: &sourceFileUpdateS3AmazonWebServices, - Type: typ, + S3AmazonWebServices: &s3AmazonWebServices, + Type: typ, } } @@ -598,8 +644,24 @@ func CreateStorageProviderSFTPSecureFileTransferProtocol(sftpSecureFileTransferP } } +func CreateStorageProviderLocalFilesystemLimited(localFilesystemLimited LocalFilesystemLimited) StorageProvider { + typ := StorageProviderTypeLocalFilesystemLimited + + return StorageProvider{ + LocalFilesystemLimited: &localFilesystemLimited, + Type: typ, + } +} + func (u *StorageProvider) UnmarshalJSON(data []byte) error { + var localFilesystemLimited LocalFilesystemLimited = LocalFilesystemLimited{} + if err := utils.UnmarshalJSON(data, &localFilesystemLimited, "", true, true); err == nil { + u.LocalFilesystemLimited = &localFilesystemLimited + u.Type = StorageProviderTypeLocalFilesystemLimited + return nil + } + var httpsPublicWeb HTTPSPublicWeb = HTTPSPublicWeb{} if err := utils.UnmarshalJSON(data, &httpsPublicWeb, "", true, true); err == nil { u.HTTPSPublicWeb = &httpsPublicWeb @@ -614,10 +676,10 @@ func (u *StorageProvider) UnmarshalJSON(data []byte) error { return nil } - var sourceFileUpdateS3AmazonWebServices SourceFileUpdateS3AmazonWebServices = SourceFileUpdateS3AmazonWebServices{} - if err := utils.UnmarshalJSON(data, &sourceFileUpdateS3AmazonWebServices, "", true, true); err == nil { - u.SourceFileUpdateS3AmazonWebServices = &sourceFileUpdateS3AmazonWebServices - u.Type = StorageProviderTypeSourceFileUpdateS3AmazonWebServices + var s3AmazonWebServices S3AmazonWebServices = S3AmazonWebServices{} + if err := utils.UnmarshalJSON(data, &s3AmazonWebServices, "", true, true); err == nil { + u.S3AmazonWebServices = &s3AmazonWebServices + u.Type = StorageProviderTypeS3AmazonWebServices return nil } @@ -661,8 +723,8 @@ func (u StorageProvider) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.GCSGoogleCloudStorage, "", true) } - if u.SourceFileUpdateS3AmazonWebServices != nil { - return utils.MarshalJSON(u.SourceFileUpdateS3AmazonWebServices, "", true) + if u.S3AmazonWebServices != nil { + return utils.MarshalJSON(u.S3AmazonWebServices, "", true) } if u.AzBlobAzureBlobStorage != nil { @@ -681,6 +743,10 @@ func (u StorageProvider) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SFTPSecureFileTransferProtocol, "", true) } + if u.LocalFilesystemLimited != nil { + return utils.MarshalJSON(u.LocalFilesystemLimited, "", true) + } + return nil, errors.New("could not marshal union type StorageProvider: all fields are null") } diff --git a/internal/sdk/models/shared/sourcefront.go b/internal/sdk/models/shared/sourcefront.go new file mode 100644 index 000000000..7ad091796 --- /dev/null +++ b/internal/sdk/models/shared/sourcefront.go @@ -0,0 +1,77 @@ +// 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 Front string + +const ( + FrontFront Front = "front" +) + +func (e Front) ToPointer() *Front { + return &e +} +func (e *Front) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "front": + *e = Front(v) + return nil + default: + return fmt.Errorf("invalid value for Front: %v", v) + } +} + +type SourceFront struct { + APIKey string `json:"api_key"` + // Page limit for the responses + PageLimit *string `default:"50" json:"page_limit"` + sourceType Front `const:"front" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceFront) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceFront) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceFront) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceFront) GetPageLimit() *string { + if o == nil { + return nil + } + return o.PageLimit +} + +func (o *SourceFront) GetSourceType() Front { + return FrontFront +} + +func (o *SourceFront) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcefrontcreaterequest.go b/internal/sdk/models/shared/sourcefrontcreaterequest.go new file mode 100644 index 000000000..1c8d0d469 --- /dev/null +++ b/internal/sdk/models/shared/sourcefrontcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceFrontCreateRequest struct { + Configuration SourceFront `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 *SourceFrontCreateRequest) GetConfiguration() SourceFront { + if o == nil { + return SourceFront{} + } + return o.Configuration +} + +func (o *SourceFrontCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceFrontCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceFrontCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceFrontCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcefrontputrequest.go b/internal/sdk/models/shared/sourcefrontputrequest.go new file mode 100644 index 000000000..54fe470c2 --- /dev/null +++ b/internal/sdk/models/shared/sourcefrontputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceFrontPutRequest struct { + Configuration SourceFrontUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceFrontPutRequest) GetConfiguration() SourceFrontUpdate { + if o == nil { + return SourceFrontUpdate{} + } + return o.Configuration +} + +func (o *SourceFrontPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceFrontPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcefrontupdate.go b/internal/sdk/models/shared/sourcefrontupdate.go new file mode 100644 index 000000000..68a433230 --- /dev/null +++ b/internal/sdk/models/shared/sourcefrontupdate.go @@ -0,0 +1,47 @@ +// 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 SourceFrontUpdate struct { + APIKey string `json:"api_key"` + // Page limit for the responses + PageLimit *string `default:"50" json:"page_limit"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceFrontUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceFrontUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceFrontUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceFrontUpdate) GetPageLimit() *string { + if o == nil { + return nil + } + return o.PageLimit +} + +func (o *SourceFrontUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcegcs.go b/internal/sdk/models/shared/sourcegcs.go index 40b0e4f06..c6506b1f3 100644 --- a/internal/sdk/models/shared/sourcegcs.go +++ b/internal/sdk/models/shared/sourcegcs.go @@ -713,33 +713,6 @@ func (u SourceGcsCSVHeaderDefinition) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type SourceGcsCSVHeaderDefinition: all fields are null") } -// SourceGcsInferenceType - How to infer the types of the columns. If none, inference default to strings. -type SourceGcsInferenceType string - -const ( - SourceGcsInferenceTypeNone SourceGcsInferenceType = "None" - SourceGcsInferenceTypePrimitiveTypesOnly SourceGcsInferenceType = "Primitive Types Only" -) - -func (e SourceGcsInferenceType) ToPointer() *SourceGcsInferenceType { - return &e -} -func (e *SourceGcsInferenceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "None": - fallthrough - case "Primitive Types Only": - *e = SourceGcsInferenceType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceGcsInferenceType: %v", v) - } -} - type SourceGcsCSVFormat struct { // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Delimiter *string `default:"," json:"delimiter"` @@ -756,8 +729,6 @@ type SourceGcsCSVFormat struct { 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. IgnoreErrorsOnFieldsMismatch *bool `default:"false" json:"ignore_errors_on_fields_mismatch"` - // How to infer the types of the columns. If none, inference default to strings. - InferenceType *SourceGcsInferenceType `default:"None" json:"inference_type"` // 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. NullValues []string `json:"null_values,omitempty"` // The character used for quoting CSV values. To disallow quoting, make this field blank. @@ -836,13 +807,6 @@ func (o *SourceGcsCSVFormat) GetIgnoreErrorsOnFieldsMismatch() *bool { return o.IgnoreErrorsOnFieldsMismatch } -func (o *SourceGcsCSVFormat) GetInferenceType() *SourceGcsInferenceType { - if o == nil { - return nil - } - return o.InferenceType -} - func (o *SourceGcsCSVFormat) GetNullValues() []string { if o == nil { return nil @@ -1127,12 +1091,8 @@ type SourceGcsFileBasedStreamConfig 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 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. @@ -1180,13 +1140,6 @@ func (o *SourceGcsFileBasedStreamConfig) GetInputSchema() *string { return o.InputSchema } -func (o *SourceGcsFileBasedStreamConfig) GetLegacyPrefix() *string { - if o == nil { - return nil - } - return o.LegacyPrefix -} - func (o *SourceGcsFileBasedStreamConfig) GetName() string { if o == nil { return "" @@ -1194,13 +1147,6 @@ func (o *SourceGcsFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceGcsFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceGcsFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegcsupdate.go b/internal/sdk/models/shared/sourcegcsupdate.go index 2f7930fb2..e7ac0296a 100644 --- a/internal/sdk/models/shared/sourcegcsupdate.go +++ b/internal/sdk/models/shared/sourcegcsupdate.go @@ -690,33 +690,6 @@ func (u SourceGcsUpdateCSVHeaderDefinition) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type SourceGcsUpdateCSVHeaderDefinition: all fields are null") } -// SourceGcsUpdateInferenceType - How to infer the types of the columns. If none, inference default to strings. -type SourceGcsUpdateInferenceType string - -const ( - SourceGcsUpdateInferenceTypeNone SourceGcsUpdateInferenceType = "None" - SourceGcsUpdateInferenceTypePrimitiveTypesOnly SourceGcsUpdateInferenceType = "Primitive Types Only" -) - -func (e SourceGcsUpdateInferenceType) ToPointer() *SourceGcsUpdateInferenceType { - return &e -} -func (e *SourceGcsUpdateInferenceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "None": - fallthrough - case "Primitive Types Only": - *e = SourceGcsUpdateInferenceType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceGcsUpdateInferenceType: %v", v) - } -} - type SourceGcsUpdateCSVFormat struct { // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Delimiter *string `default:"," json:"delimiter"` @@ -733,8 +706,6 @@ type SourceGcsUpdateCSVFormat struct { 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. IgnoreErrorsOnFieldsMismatch *bool `default:"false" json:"ignore_errors_on_fields_mismatch"` - // How to infer the types of the columns. If none, inference default to strings. - InferenceType *SourceGcsUpdateInferenceType `default:"None" json:"inference_type"` // 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. NullValues []string `json:"null_values,omitempty"` // The character used for quoting CSV values. To disallow quoting, make this field blank. @@ -813,13 +784,6 @@ func (o *SourceGcsUpdateCSVFormat) GetIgnoreErrorsOnFieldsMismatch() *bool { return o.IgnoreErrorsOnFieldsMismatch } -func (o *SourceGcsUpdateCSVFormat) GetInferenceType() *SourceGcsUpdateInferenceType { - if o == nil { - return nil - } - return o.InferenceType -} - func (o *SourceGcsUpdateCSVFormat) GetNullValues() []string { if o == nil { return nil @@ -1104,12 +1068,8 @@ type SourceGcsUpdateFileBasedStreamConfig 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 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. @@ -1157,13 +1117,6 @@ func (o *SourceGcsUpdateFileBasedStreamConfig) GetInputSchema() *string { return o.InputSchema } -func (o *SourceGcsUpdateFileBasedStreamConfig) GetLegacyPrefix() *string { - if o == nil { - return nil - } - return o.LegacyPrefix -} - func (o *SourceGcsUpdateFileBasedStreamConfig) GetName() string { if o == nil { return "" @@ -1171,13 +1124,6 @@ func (o *SourceGcsUpdateFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceGcsUpdateFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceGcsUpdateFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegithub.go b/internal/sdk/models/shared/sourcegithub.go index 75c6096d5..7e4493f1a 100644 --- a/internal/sdk/models/shared/sourcegithub.go +++ b/internal/sdk/models/shared/sourcegithub.go @@ -220,8 +220,6 @@ func (e *Github) UnmarshalJSON(data []byte) error { type SourceGithub struct { // Please enter your basic URL from self-hosted GitHub instance or leave it empty to use GitHub. APIURL *string `default:"https://api.github.com/" json:"api_url"` - // (DEPRCATED) Space-delimited list of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. - Branch *string `json:"branch,omitempty"` // List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. Branches []string `json:"branches,omitempty"` // Choose how to authenticate to GitHub @@ -230,9 +228,7 @@ type SourceGithub struct { MaxWaitingTime *int64 `default:"10" json:"max_waiting_time"` // List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. Repositories []string `json:"repositories"` - // (DEPRCATED) Space-delimited list of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/airbyte airbytehq/another-repo` for multiple repositories. - Repository *string `json:"repository,omitempty"` - sourceType Github `const:"github" json:"sourceType"` + sourceType Github `const:"github" json:"sourceType"` // The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the docs for more info StartDate *time.Time `json:"start_date,omitempty"` } @@ -255,13 +251,6 @@ func (o *SourceGithub) GetAPIURL() *string { return o.APIURL } -func (o *SourceGithub) GetBranch() *string { - if o == nil { - return nil - } - return o.Branch -} - func (o *SourceGithub) GetBranches() []string { if o == nil { return nil @@ -290,13 +279,6 @@ func (o *SourceGithub) GetRepositories() []string { return o.Repositories } -func (o *SourceGithub) GetRepository() *string { - if o == nil { - return nil - } - return o.Repository -} - func (o *SourceGithub) GetSourceType() Github { return GithubGithub } diff --git a/internal/sdk/models/shared/sourcegithubupdate.go b/internal/sdk/models/shared/sourcegithubupdate.go index b488edac3..1f873720b 100644 --- a/internal/sdk/models/shared/sourcegithubupdate.go +++ b/internal/sdk/models/shared/sourcegithubupdate.go @@ -197,8 +197,6 @@ func (u SourceGithubUpdateAuthentication) MarshalJSON() ([]byte, error) { type SourceGithubUpdate struct { // Please enter your basic URL from self-hosted GitHub instance or leave it empty to use GitHub. APIURL *string `default:"https://api.github.com/" json:"api_url"` - // (DEPRCATED) Space-delimited list of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. - Branch *string `json:"branch,omitempty"` // List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. Branches []string `json:"branches,omitempty"` // Choose how to authenticate to GitHub @@ -207,8 +205,6 @@ type SourceGithubUpdate struct { MaxWaitingTime *int64 `default:"10" json:"max_waiting_time"` // List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. Repositories []string `json:"repositories"` - // (DEPRCATED) Space-delimited list of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/airbyte airbytehq/another-repo` for multiple repositories. - Repository *string `json:"repository,omitempty"` // The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the docs for more info StartDate *time.Time `json:"start_date,omitempty"` } @@ -231,13 +227,6 @@ func (o *SourceGithubUpdate) GetAPIURL() *string { return o.APIURL } -func (o *SourceGithubUpdate) GetBranch() *string { - if o == nil { - return nil - } - return o.Branch -} - func (o *SourceGithubUpdate) GetBranches() []string { if o == nil { return nil @@ -266,13 +255,6 @@ func (o *SourceGithubUpdate) GetRepositories() []string { return o.Repositories } -func (o *SourceGithubUpdate) GetRepository() *string { - if o == nil { - return nil - } - return o.Repository -} - func (o *SourceGithubUpdate) GetStartDate() *time.Time { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegitlab.go b/internal/sdk/models/shared/sourcegitlab.go index d61ff8ed0..ab1df8322 100644 --- a/internal/sdk/models/shared/sourcegitlab.go +++ b/internal/sdk/models/shared/sourcegitlab.go @@ -238,12 +238,8 @@ type SourceGitlab struct { // Please enter your basic URL from GitLab instance. APIURL *string `default:"gitlab.com" json:"api_url"` Credentials SourceGitlabAuthorizationMethod `json:"credentials"` - // [DEPRECATED] Space-delimited list of groups. e.g. airbyte.io. - Groups *string `json:"groups,omitempty"` // List of groups. e.g. airbyte.io. GroupsList []string `json:"groups_list,omitempty"` - // [DEPRECATED] Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab. - Projects *string `json:"projects,omitempty"` // Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab. ProjectsList []string `json:"projects_list,omitempty"` sourceType Gitlab `const:"gitlab" json:"sourceType"` @@ -276,13 +272,6 @@ func (o *SourceGitlab) GetCredentials() SourceGitlabAuthorizationMethod { return o.Credentials } -func (o *SourceGitlab) GetGroups() *string { - if o == nil { - return nil - } - return o.Groups -} - func (o *SourceGitlab) GetGroupsList() []string { if o == nil { return nil @@ -290,13 +279,6 @@ func (o *SourceGitlab) GetGroupsList() []string { return o.GroupsList } -func (o *SourceGitlab) GetProjects() *string { - if o == nil { - return nil - } - return o.Projects -} - func (o *SourceGitlab) GetProjectsList() []string { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegitlabupdate.go b/internal/sdk/models/shared/sourcegitlabupdate.go index 8dcdee531..e3a6e06bf 100644 --- a/internal/sdk/models/shared/sourcegitlabupdate.go +++ b/internal/sdk/models/shared/sourcegitlabupdate.go @@ -215,12 +215,8 @@ type SourceGitlabUpdate struct { // Please enter your basic URL from GitLab instance. APIURL *string `default:"gitlab.com" json:"api_url"` Credentials SourceGitlabUpdateAuthorizationMethod `json:"credentials"` - // [DEPRECATED] Space-delimited list of groups. e.g. airbyte.io. - Groups *string `json:"groups,omitempty"` // List of groups. e.g. airbyte.io. GroupsList []string `json:"groups_list,omitempty"` - // [DEPRECATED] Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab. - Projects *string `json:"projects,omitempty"` // Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab. ProjectsList []string `json:"projects_list,omitempty"` // The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. Optional. If not set, all data will be replicated. All data generated after this date will be replicated. @@ -252,13 +248,6 @@ func (o *SourceGitlabUpdate) GetCredentials() SourceGitlabUpdateAuthorizationMet return o.Credentials } -func (o *SourceGitlabUpdate) GetGroups() *string { - if o == nil { - return nil - } - return o.Groups -} - func (o *SourceGitlabUpdate) GetGroupsList() []string { if o == nil { return nil @@ -266,13 +255,6 @@ func (o *SourceGitlabUpdate) GetGroupsList() []string { return o.GroupsList } -func (o *SourceGitlabUpdate) GetProjects() *string { - if o == nil { - return nil - } - return o.Projects -} - func (o *SourceGitlabUpdate) GetProjectsList() []string { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegoogleanalyticsdataapiupdate.go b/internal/sdk/models/shared/sourcegoogleanalyticsdataapiupdate.go index 6cd07826a..e66f323d3 100644 --- a/internal/sdk/models/shared/sourcegoogleanalyticsdataapiupdate.go +++ b/internal/sdk/models/shared/sourcegoogleanalyticsdataapiupdate.go @@ -1343,94 +1343,94 @@ func (o *StringFilter) GetValue() string { return o.Value } -type SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionType string +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType string const ( - SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionType = "stringFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionType = "inListFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionType = "numericFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionType = "betweenFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType = "stringFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType = "inListFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType = "numericFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType = "betweenFilter" ) -type SourceGoogleAnalyticsDataAPIUpdateSchemasFilter struct { +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter struct { StringFilter *StringFilter InListFilter *InListFilter NumericFilter *NumericFilter BetweenFilter *BetweenFilter - Type SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionType + Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasFilterStringFilter(stringFilter StringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeStringFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterStringFilter(stringFilter StringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeStringFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ StringFilter: &stringFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasFilterInListFilter(inListFilter InListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeInListFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterInListFilter(inListFilter InListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeInListFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ InListFilter: &inListFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasFilterNumericFilter(numericFilter NumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeNumericFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterNumericFilter(numericFilter NumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeNumericFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ NumericFilter: &numericFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasFilterBetweenFilter(betweenFilter BetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeBetweenFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterBetweenFilter(betweenFilter BetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeBetweenFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ BetweenFilter: &betweenFilter, Type: typ, } } -func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasFilter) UnmarshalJSON(data []byte) error { +func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter) UnmarshalJSON(data []byte) error { var inListFilter InListFilter = InListFilter{} if err := utils.UnmarshalJSON(data, &inListFilter, "", true, true); err == nil { u.InListFilter = &inListFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeInListFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeInListFilter return nil } var numericFilter NumericFilter = NumericFilter{} if err := utils.UnmarshalJSON(data, &numericFilter, "", true, true); err == nil { u.NumericFilter = &numericFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeNumericFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeNumericFilter return nil } var betweenFilter BetweenFilter = BetweenFilter{} if err := utils.UnmarshalJSON(data, &betweenFilter, "", true, true); err == nil { u.BetweenFilter = &betweenFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeBetweenFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeBetweenFilter return nil } var stringFilter StringFilter = StringFilter{} if err := utils.UnmarshalJSON(data, &stringFilter, "", true, true); err == nil { u.StringFilter = &stringFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasFilterUnionTypeStringFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeStringFilter return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasFilter", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter", string(data)) } -func (u SourceGoogleAnalyticsDataAPIUpdateSchemasFilter) MarshalJSON() ([]byte, error) { +func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter) MarshalJSON() ([]byte, error) { if u.StringFilter != nil { return utils.MarshalJSON(u.StringFilter, "", true) } @@ -1447,7 +1447,7 @@ func (u SourceGoogleAnalyticsDataAPIUpdateSchemasFilter) MarshalJSON() ([]byte, return utils.MarshalJSON(u.BetweenFilter, "", true) } - return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasFilter: all fields are null") + return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter: all fields are null") } type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterType string @@ -1473,39 +1473,39 @@ func (e *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterType) } } -// Filter - A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions. -type Filter struct { +// SourceGoogleAnalyticsDataAPIUpdateFilter - A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions. +type SourceGoogleAnalyticsDataAPIUpdateFilter struct { FieldName string `json:"field_name"` - Filter SourceGoogleAnalyticsDataAPIUpdateSchemasFilter `json:"filter"` + Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter `json:"filter"` filterType *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterType `const:"filter" json:"filter_type,omitempty"` } -func (f Filter) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(f, "", false) +func (s SourceGoogleAnalyticsDataAPIUpdateFilter) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) } -func (f *Filter) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, true); err != nil { +func (s *SourceGoogleAnalyticsDataAPIUpdateFilter) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *Filter) GetFieldName() string { +func (o *SourceGoogleAnalyticsDataAPIUpdateFilter) GetFieldName() string { if o == nil { return "" } return o.FieldName } -func (o *Filter) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasFilter { +func (o *SourceGoogleAnalyticsDataAPIUpdateFilter) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { if o == nil { - return SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{} + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{} } return o.Filter } -func (o *Filter) GetFilterType() *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterType { +func (o *SourceGoogleAnalyticsDataAPIUpdateFilter) GetFilterType() *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterType { return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterTypeFilter.ToPointer() } @@ -2317,94 +2317,94 @@ func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter) GetValue() strin return o.Value } -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType string +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterType string const ( - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType = "source-google-analytics-data-api-update_Schemas_stringFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType = "source-google-analytics-data-api-update_Schemas_inListFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType = "source-google-analytics-data-api-update_Schemas_numericFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType = "source-google-analytics-data-api-update_Schemas_betweenFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterType = "source-google-analytics-data-api-update_Schemas_stringFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterType = "source-google-analytics-data-api-update_Schemas_inListFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterType = "source-google-analytics-data-api-update_Schemas_numericFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterType = "source-google-analytics-data-api-update_Schemas_betweenFilter" ) -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter struct { +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter struct { SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter - Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType + Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterType } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterSourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterSourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterSourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterSourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter, Type: typ, } } -func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter) UnmarshalJSON(data []byte) error { +func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter) UnmarshalJSON(data []byte) error { var sourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasInListFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasNumericFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter", string(data)) } -func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter) MarshalJSON() ([]byte, error) { +func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter) MarshalJSON() ([]byte, error) { if u.SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter != nil { return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateSchemasStringFilter, "", true) } @@ -2421,12 +2421,12 @@ func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilt return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateSchemasBetweenFilter, "", true) } - return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter: all fields are null") + return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter: all fields are null") } type SourceGoogleAnalyticsDataAPIUpdateSchemasExpression struct { - FieldName string `json:"field_name"` - Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter `json:"filter"` + FieldName string `json:"field_name"` + Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter `json:"filter"` } func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasExpression) GetFieldName() string { @@ -2436,9 +2436,9 @@ func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasExpression) GetFieldName() str return o.FieldName } -func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasExpression) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { +func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasExpression) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter { if o == nil { - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{} + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter{} } return o.Filter } @@ -3302,94 +3302,94 @@ func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFil return o.Value } -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType string +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType string const ( - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_dimensionFilter_stringFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_dimensionFilter_inListFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_dimensionFilter_numericFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_dimensionFilter_betweenFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_dimensionFilter_stringFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_dimensionFilter_inListFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_dimensionFilter_numericFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_dimensionFilter_betweenFilter" ) -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter struct { +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter struct { SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter - Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType + Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterType } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter, Type: typ, } } -func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter) UnmarshalJSON(data []byte) error { +func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter) UnmarshalJSON(data []byte) error { var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterInListFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterNumericFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter", string(data)) } -func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter) MarshalJSON() ([]byte, error) { +func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter) MarshalJSON() ([]byte, error) { if u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter != nil { return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterStringFilter, "", true) } @@ -3406,12 +3406,12 @@ func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilt return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterBetweenFilter, "", true) } - return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter: all fields are null") + return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter: all fields are null") } type SourceGoogleAnalyticsDataAPIUpdateExpression struct { - FieldName string `json:"field_name"` - Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter `json:"filter"` + FieldName string `json:"field_name"` + Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter `json:"filter"` } func (o *SourceGoogleAnalyticsDataAPIUpdateExpression) GetFieldName() string { @@ -3421,9 +3421,9 @@ func (o *SourceGoogleAnalyticsDataAPIUpdateExpression) GetFieldName() string { return o.FieldName } -func (o *SourceGoogleAnalyticsDataAPIUpdateExpression) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { +func (o *SourceGoogleAnalyticsDataAPIUpdateExpression) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { if o == nil { - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{} + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter{} } return o.Filter } @@ -4287,94 +4287,94 @@ func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter return o.Value } -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterType string +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType string const ( - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_stringFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_inListFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_numericFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_betweenFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_stringFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_inListFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_numericFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_betweenFilter" ) -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter struct { +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter struct { SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter - Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterType + Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterType } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter, Type: typ, } } -func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter) UnmarshalJSON(data []byte) error { +func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter) UnmarshalJSON(data []byte) error { var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayInListFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayNumericFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter", string(data)) } -func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter) MarshalJSON() ([]byte, error) { +func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter) MarshalJSON() ([]byte, error) { if u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter != nil { return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayStringFilter, "", true) } @@ -4391,12 +4391,12 @@ func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilt return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayBetweenFilter, "", true) } - return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter: all fields are null") + return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter: all fields are null") } type Expression struct { - FieldName string `json:"field_name"` - Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter `json:"filter"` + FieldName string `json:"field_name"` + Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter `json:"filter"` } func (o *Expression) GetFieldName() string { @@ -4406,9 +4406,9 @@ func (o *Expression) GetFieldName() string { return o.FieldName } -func (o *Expression) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter { +func (o *Expression) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter { if o == nil { - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Filter{} + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayDimensionFilterFilter{} } return o.Filter } @@ -4467,18 +4467,18 @@ func (o *AndGroup) GetFilterType() FilterType { type DimensionsFilterType string const ( - DimensionsFilterTypeAndGroup DimensionsFilterType = "andGroup" - DimensionsFilterTypeOrGroup DimensionsFilterType = "orGroup" - DimensionsFilterTypeNotExpression DimensionsFilterType = "notExpression" - DimensionsFilterTypeFilter DimensionsFilterType = "filter" + DimensionsFilterTypeAndGroup DimensionsFilterType = "andGroup" + DimensionsFilterTypeOrGroup DimensionsFilterType = "orGroup" + DimensionsFilterTypeNotExpression DimensionsFilterType = "notExpression" + DimensionsFilterTypeSourceGoogleAnalyticsDataAPIUpdateFilter DimensionsFilterType = "source-google-analytics-data-api-update_filter" ) // DimensionsFilter - Dimensions filter type DimensionsFilter struct { - AndGroup *AndGroup - OrGroup *OrGroup - NotExpression *NotExpression - Filter *Filter + AndGroup *AndGroup + OrGroup *OrGroup + NotExpression *NotExpression + SourceGoogleAnalyticsDataAPIUpdateFilter *SourceGoogleAnalyticsDataAPIUpdateFilter Type DimensionsFilterType } @@ -4510,12 +4510,12 @@ func CreateDimensionsFilterNotExpression(notExpression NotExpression) Dimensions } } -func CreateDimensionsFilterFilter(filter Filter) DimensionsFilter { - typ := DimensionsFilterTypeFilter +func CreateDimensionsFilterSourceGoogleAnalyticsDataAPIUpdateFilter(sourceGoogleAnalyticsDataAPIUpdateFilter SourceGoogleAnalyticsDataAPIUpdateFilter) DimensionsFilter { + typ := DimensionsFilterTypeSourceGoogleAnalyticsDataAPIUpdateFilter return DimensionsFilter{ - Filter: &filter, - Type: typ, + SourceGoogleAnalyticsDataAPIUpdateFilter: &sourceGoogleAnalyticsDataAPIUpdateFilter, + Type: typ, } } @@ -4542,10 +4542,10 @@ func (u *DimensionsFilter) UnmarshalJSON(data []byte) error { return nil } - var filter Filter = Filter{} - if err := utils.UnmarshalJSON(data, &filter, "", true, true); err == nil { - u.Filter = &filter - u.Type = DimensionsFilterTypeFilter + var sourceGoogleAnalyticsDataAPIUpdateFilter SourceGoogleAnalyticsDataAPIUpdateFilter = SourceGoogleAnalyticsDataAPIUpdateFilter{} + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateFilter, "", true, true); err == nil { + u.SourceGoogleAnalyticsDataAPIUpdateFilter = &sourceGoogleAnalyticsDataAPIUpdateFilter + u.Type = DimensionsFilterTypeSourceGoogleAnalyticsDataAPIUpdateFilter return nil } @@ -4565,8 +4565,8 @@ func (u DimensionsFilter) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.NotExpression, "", true) } - if u.Filter != nil { - return utils.MarshalJSON(u.Filter, "", true) + if u.SourceGoogleAnalyticsDataAPIUpdateFilter != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateFilter, "", true) } return nil, errors.New("could not marshal union type DimensionsFilter: all fields are null") @@ -5380,94 +5380,94 @@ func (o *SourceGoogleAnalyticsDataAPIUpdateStringFilter) GetValue() string { return o.Value } -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType string +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType string const ( - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType = "source-google-analytics-data-api-update_stringFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType = "source-google-analytics-data-api-update_inListFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType = "source-google-analytics-data-api-update_numericFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType = "source-google-analytics-data-api-update_betweenFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType = "source-google-analytics-data-api-update_stringFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType = "source-google-analytics-data-api-update_inListFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType = "source-google-analytics-data-api-update_numericFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType = "source-google-analytics-data-api-update_betweenFilter" ) -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter struct { +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter struct { SourceGoogleAnalyticsDataAPIUpdateStringFilter *SourceGoogleAnalyticsDataAPIUpdateStringFilter SourceGoogleAnalyticsDataAPIUpdateInListFilter *SourceGoogleAnalyticsDataAPIUpdateInListFilter SourceGoogleAnalyticsDataAPIUpdateNumericFilter *SourceGoogleAnalyticsDataAPIUpdateNumericFilter SourceGoogleAnalyticsDataAPIUpdateBetweenFilter *SourceGoogleAnalyticsDataAPIUpdateBetweenFilter - Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionType + Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterSourceGoogleAnalyticsDataAPIUpdateStringFilter(sourceGoogleAnalyticsDataAPIUpdateStringFilter SourceGoogleAnalyticsDataAPIUpdateStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateStringFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterSourceGoogleAnalyticsDataAPIUpdateStringFilter(sourceGoogleAnalyticsDataAPIUpdateStringFilter SourceGoogleAnalyticsDataAPIUpdateStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateStringFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateStringFilter: &sourceGoogleAnalyticsDataAPIUpdateStringFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterSourceGoogleAnalyticsDataAPIUpdateInListFilter(sourceGoogleAnalyticsDataAPIUpdateInListFilter SourceGoogleAnalyticsDataAPIUpdateInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateInListFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterSourceGoogleAnalyticsDataAPIUpdateInListFilter(sourceGoogleAnalyticsDataAPIUpdateInListFilter SourceGoogleAnalyticsDataAPIUpdateInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateInListFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateInListFilter: &sourceGoogleAnalyticsDataAPIUpdateInListFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterSourceGoogleAnalyticsDataAPIUpdateNumericFilter(sourceGoogleAnalyticsDataAPIUpdateNumericFilter SourceGoogleAnalyticsDataAPIUpdateNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateNumericFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterSourceGoogleAnalyticsDataAPIUpdateNumericFilter(sourceGoogleAnalyticsDataAPIUpdateNumericFilter SourceGoogleAnalyticsDataAPIUpdateNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateNumericFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateNumericFilter: &sourceGoogleAnalyticsDataAPIUpdateNumericFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterSourceGoogleAnalyticsDataAPIUpdateBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateBetweenFilter SourceGoogleAnalyticsDataAPIUpdateBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateBetweenFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterSourceGoogleAnalyticsDataAPIUpdateBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateBetweenFilter SourceGoogleAnalyticsDataAPIUpdateBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateBetweenFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ SourceGoogleAnalyticsDataAPIUpdateBetweenFilter: &sourceGoogleAnalyticsDataAPIUpdateBetweenFilter, Type: typ, } } -func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter) UnmarshalJSON(data []byte) error { +func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter) UnmarshalJSON(data []byte) error { var sourceGoogleAnalyticsDataAPIUpdateInListFilter SourceGoogleAnalyticsDataAPIUpdateInListFilter = SourceGoogleAnalyticsDataAPIUpdateInListFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateInListFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateInListFilter = &sourceGoogleAnalyticsDataAPIUpdateInListFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateInListFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateInListFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateNumericFilter SourceGoogleAnalyticsDataAPIUpdateNumericFilter = SourceGoogleAnalyticsDataAPIUpdateNumericFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateNumericFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateNumericFilter = &sourceGoogleAnalyticsDataAPIUpdateNumericFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateNumericFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateNumericFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateBetweenFilter SourceGoogleAnalyticsDataAPIUpdateBetweenFilter = SourceGoogleAnalyticsDataAPIUpdateBetweenFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateBetweenFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateBetweenFilter = &sourceGoogleAnalyticsDataAPIUpdateBetweenFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateBetweenFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateBetweenFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateStringFilter SourceGoogleAnalyticsDataAPIUpdateStringFilter = SourceGoogleAnalyticsDataAPIUpdateStringFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateStringFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateStringFilter = &sourceGoogleAnalyticsDataAPIUpdateStringFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateStringFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateStringFilter return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter", string(data)) } -func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter) MarshalJSON() ([]byte, error) { +func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter) MarshalJSON() ([]byte, error) { if u.SourceGoogleAnalyticsDataAPIUpdateStringFilter != nil { return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateStringFilter, "", true) } @@ -5484,7 +5484,7 @@ func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter) Marsh return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateBetweenFilter, "", true) } - return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter: all fields are null") + return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter: all fields are null") } type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType string @@ -5510,39 +5510,39 @@ func (e *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilter } } -// SourceGoogleAnalyticsDataAPIUpdateFilter - A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all metrics. -type SourceGoogleAnalyticsDataAPIUpdateFilter struct { +// SourceGoogleAnalyticsDataAPIUpdateSchemasFilter - A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all metrics. +type SourceGoogleAnalyticsDataAPIUpdateSchemasFilter struct { FieldName string `json:"field_name"` - Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter `json:"filter"` + Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter `json:"filter"` filterType *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType `const:"filter" json:"filter_type,omitempty"` } -func (s SourceGoogleAnalyticsDataAPIUpdateFilter) MarshalJSON() ([]byte, error) { +func (s SourceGoogleAnalyticsDataAPIUpdateSchemasFilter) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceGoogleAnalyticsDataAPIUpdateFilter) UnmarshalJSON(data []byte) error { +func (s *SourceGoogleAnalyticsDataAPIUpdateSchemasFilter) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceGoogleAnalyticsDataAPIUpdateFilter) GetFieldName() string { +func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasFilter) GetFieldName() string { if o == nil { return "" } return o.FieldName } -func (o *SourceGoogleAnalyticsDataAPIUpdateFilter) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter { +func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasFilter) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { if o == nil { - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayFilter{} + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{} } return o.Filter } -func (o *SourceGoogleAnalyticsDataAPIUpdateFilter) GetFilterType() *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType { +func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasFilter) GetFilterType() *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType { return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterTypeFilter.ToPointer() } @@ -8324,94 +8324,94 @@ func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilter return o.Value } -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType string +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterType string const ( - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_metricFilter_stringFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_metricFilter_inListFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_metricFilter_numericFilter" - SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_metricFilter_betweenFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_metricFilter_stringFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_metricFilter_inListFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_metricFilter_numericFilter" + SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterType = "source-google-analytics-data-api-update_Schemas_custom_reports_array_metricFilter_betweenFilter" ) -type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter struct { +type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter struct { SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter - Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionType + Type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterType } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter, Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { - typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter +func CreateSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter) SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter { + typ := SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{ + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter{ SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter, Type: typ, } } -func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter) UnmarshalJSON(data []byte) error { +func (u *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter) UnmarshalJSON(data []byte) error { var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterInListFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterNumericFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter return nil } var sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter{} if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter, "", true, true); err == nil { u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter - u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilterUnionTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter + u.Type = SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter", string(data)) } -func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter) MarshalJSON() ([]byte, error) { +func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter) MarshalJSON() ([]byte, error) { if u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter != nil { return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterStringFilter, "", true) } @@ -8428,12 +8428,12 @@ func (u SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterF return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterBetweenFilter, "", true) } - return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter: all fields are null") + return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter: all fields are null") } type SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayExpression struct { - FieldName string `json:"field_name"` - Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter `json:"filter"` + FieldName string `json:"field_name"` + Filter SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter `json:"filter"` } func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayExpression) GetFieldName() string { @@ -8443,9 +8443,9 @@ func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayExpression) return o.FieldName } -func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayExpression) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter { +func (o *SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayExpression) GetFilter() SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter { if o == nil { - return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterFilter{} + return SourceGoogleAnalyticsDataAPIUpdateSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter{} } return o.Filter } @@ -8507,7 +8507,7 @@ const ( MetricsFilterTypeSourceGoogleAnalyticsDataAPIUpdateAndGroup MetricsFilterType = "source-google-analytics-data-api-update_andGroup" MetricsFilterTypeSourceGoogleAnalyticsDataAPIUpdateOrGroup MetricsFilterType = "source-google-analytics-data-api-update_orGroup" MetricsFilterTypeSourceGoogleAnalyticsDataAPIUpdateNotExpression MetricsFilterType = "source-google-analytics-data-api-update_notExpression" - MetricsFilterTypeSourceGoogleAnalyticsDataAPIUpdateFilter MetricsFilterType = "source-google-analytics-data-api-update_filter" + MetricsFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasFilter MetricsFilterType = "source-google-analytics-data-api-update_Schemas_filter" ) // MetricsFilter - Metrics filter @@ -8515,7 +8515,7 @@ type MetricsFilter struct { SourceGoogleAnalyticsDataAPIUpdateAndGroup *SourceGoogleAnalyticsDataAPIUpdateAndGroup SourceGoogleAnalyticsDataAPIUpdateOrGroup *SourceGoogleAnalyticsDataAPIUpdateOrGroup SourceGoogleAnalyticsDataAPIUpdateNotExpression *SourceGoogleAnalyticsDataAPIUpdateNotExpression - SourceGoogleAnalyticsDataAPIUpdateFilter *SourceGoogleAnalyticsDataAPIUpdateFilter + SourceGoogleAnalyticsDataAPIUpdateSchemasFilter *SourceGoogleAnalyticsDataAPIUpdateSchemasFilter Type MetricsFilterType } @@ -8547,12 +8547,12 @@ func CreateMetricsFilterSourceGoogleAnalyticsDataAPIUpdateNotExpression(sourceGo } } -func CreateMetricsFilterSourceGoogleAnalyticsDataAPIUpdateFilter(sourceGoogleAnalyticsDataAPIUpdateFilter SourceGoogleAnalyticsDataAPIUpdateFilter) MetricsFilter { - typ := MetricsFilterTypeSourceGoogleAnalyticsDataAPIUpdateFilter +func CreateMetricsFilterSourceGoogleAnalyticsDataAPIUpdateSchemasFilter(sourceGoogleAnalyticsDataAPIUpdateSchemasFilter SourceGoogleAnalyticsDataAPIUpdateSchemasFilter) MetricsFilter { + typ := MetricsFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasFilter return MetricsFilter{ - SourceGoogleAnalyticsDataAPIUpdateFilter: &sourceGoogleAnalyticsDataAPIUpdateFilter, - Type: typ, + SourceGoogleAnalyticsDataAPIUpdateSchemasFilter: &sourceGoogleAnalyticsDataAPIUpdateSchemasFilter, + Type: typ, } } @@ -8579,10 +8579,10 @@ func (u *MetricsFilter) UnmarshalJSON(data []byte) error { return nil } - var sourceGoogleAnalyticsDataAPIUpdateFilter SourceGoogleAnalyticsDataAPIUpdateFilter = SourceGoogleAnalyticsDataAPIUpdateFilter{} - if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateFilter, "", true, true); err == nil { - u.SourceGoogleAnalyticsDataAPIUpdateFilter = &sourceGoogleAnalyticsDataAPIUpdateFilter - u.Type = MetricsFilterTypeSourceGoogleAnalyticsDataAPIUpdateFilter + var sourceGoogleAnalyticsDataAPIUpdateSchemasFilter SourceGoogleAnalyticsDataAPIUpdateSchemasFilter = SourceGoogleAnalyticsDataAPIUpdateSchemasFilter{} + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateSchemasFilter, "", true, true); err == nil { + u.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter = &sourceGoogleAnalyticsDataAPIUpdateSchemasFilter + u.Type = MetricsFilterTypeSourceGoogleAnalyticsDataAPIUpdateSchemasFilter return nil } @@ -8602,8 +8602,8 @@ func (u MetricsFilter) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateNotExpression, "", true) } - if u.SourceGoogleAnalyticsDataAPIUpdateFilter != nil { - return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateFilter, "", true) + if u.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateSchemasFilter, "", true) } return nil, errors.New("could not marshal union type MetricsFilter: all fields are null") diff --git a/internal/sdk/models/shared/sourcegoogledrive.go b/internal/sdk/models/shared/sourcegoogledrive.go index 419e92482..ac13116c7 100644 --- a/internal/sdk/models/shared/sourcegoogledrive.go +++ b/internal/sdk/models/shared/sourcegoogledrive.go @@ -1100,8 +1100,6 @@ type SourceGoogleDriveFileBasedStreamConfig struct { InputSchema *string `json:"input_schema,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"` // 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. @@ -1154,13 +1152,6 @@ func (o *SourceGoogleDriveFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceGoogleDriveFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceGoogleDriveFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegoogledriveupdate.go b/internal/sdk/models/shared/sourcegoogledriveupdate.go index 3d32b4302..18dc479d2 100644 --- a/internal/sdk/models/shared/sourcegoogledriveupdate.go +++ b/internal/sdk/models/shared/sourcegoogledriveupdate.go @@ -1077,8 +1077,6 @@ type SourceGoogleDriveUpdateFileBasedStreamConfig struct { InputSchema *string `json:"input_schema,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"` // 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. @@ -1131,13 +1129,6 @@ func (o *SourceGoogleDriveUpdateFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceGoogleDriveUpdateFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceGoogleDriveUpdateFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegooglesearchconsole.go b/internal/sdk/models/shared/sourcegooglesearchconsole.go index a244cbb87..6be84f167 100644 --- a/internal/sdk/models/shared/sourcegooglesearchconsole.go +++ b/internal/sdk/models/shared/sourcegooglesearchconsole.go @@ -320,8 +320,6 @@ func (e *GoogleSearchConsole) UnmarshalJSON(data []byte) error { type SourceGoogleSearchConsole struct { Authorization SourceGoogleSearchConsoleAuthenticationType `json:"authorization"` - // (DEPRCATED) A JSON array describing the custom reports you want to sync from Google Search Console. See our documentation for more information on formulating custom reports. - CustomReports *string `json:"custom_reports,omitempty"` // You can add your Custom Analytics report by creating one. CustomReportsArray []SourceGoogleSearchConsoleCustomReportConfig `json:"custom_reports_array,omitempty"` // If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our full documentation. @@ -353,13 +351,6 @@ func (o *SourceGoogleSearchConsole) GetAuthorization() SourceGoogleSearchConsole return o.Authorization } -func (o *SourceGoogleSearchConsole) GetCustomReports() *string { - if o == nil { - return nil - } - return o.CustomReports -} - func (o *SourceGoogleSearchConsole) GetCustomReportsArray() []SourceGoogleSearchConsoleCustomReportConfig { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegooglesearchconsoleupdate.go b/internal/sdk/models/shared/sourcegooglesearchconsoleupdate.go index 35ba15f08..ec1acead0 100644 --- a/internal/sdk/models/shared/sourcegooglesearchconsoleupdate.go +++ b/internal/sdk/models/shared/sourcegooglesearchconsoleupdate.go @@ -297,8 +297,6 @@ func (e *DataFreshness) UnmarshalJSON(data []byte) error { type SourceGoogleSearchConsoleUpdate struct { Authorization AuthenticationType `json:"authorization"` - // (DEPRCATED) A JSON array describing the custom reports you want to sync from Google Search Console. See our documentation for more information on formulating custom reports. - CustomReports *string `json:"custom_reports,omitempty"` // You can add your Custom Analytics report by creating one. CustomReportsArray []SourceGoogleSearchConsoleUpdateCustomReportConfig `json:"custom_reports_array,omitempty"` // If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our full documentation. @@ -329,13 +327,6 @@ func (o *SourceGoogleSearchConsoleUpdate) GetAuthorization() AuthenticationType return o.Authorization } -func (o *SourceGoogleSearchConsoleUpdate) GetCustomReports() *string { - if o == nil { - return nil - } - return o.CustomReports -} - func (o *SourceGoogleSearchConsoleUpdate) GetCustomReportsArray() []SourceGoogleSearchConsoleUpdateCustomReportConfig { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegoogletasks.go b/internal/sdk/models/shared/sourcegoogletasks.go new file mode 100644 index 000000000..cfa53b8fb --- /dev/null +++ b/internal/sdk/models/shared/sourcegoogletasks.go @@ -0,0 +1,77 @@ +// 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 GoogleTasks string + +const ( + GoogleTasksGoogleTasks GoogleTasks = "google-tasks" +) + +func (e GoogleTasks) ToPointer() *GoogleTasks { + return &e +} +func (e *GoogleTasks) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "google-tasks": + *e = GoogleTasks(v) + return nil + default: + return fmt.Errorf("invalid value for GoogleTasks: %v", v) + } +} + +type SourceGoogleTasks struct { + APIKey string `json:"api_key"` + // The maximum number of records to be returned per request + RecordsLimit *string `default:"50" json:"records_limit"` + sourceType GoogleTasks `const:"google-tasks" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceGoogleTasks) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGoogleTasks) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceGoogleTasks) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceGoogleTasks) GetRecordsLimit() *string { + if o == nil { + return nil + } + return o.RecordsLimit +} + +func (o *SourceGoogleTasks) GetSourceType() GoogleTasks { + return GoogleTasksGoogleTasks +} + +func (o *SourceGoogleTasks) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcezendesksellcreaterequest.go b/internal/sdk/models/shared/sourcegoogletaskscreaterequest.go similarity index 62% rename from internal/sdk/models/shared/sourcezendesksellcreaterequest.go rename to internal/sdk/models/shared/sourcegoogletaskscreaterequest.go index 721c0191a..1483f33c8 100644 --- a/internal/sdk/models/shared/sourcezendesksellcreaterequest.go +++ b/internal/sdk/models/shared/sourcegoogletaskscreaterequest.go @@ -2,8 +2,8 @@ package shared -type SourceZendeskSellCreateRequest struct { - Configuration SourceZendeskSell `json:"configuration"` +type SourceGoogleTasksCreateRequest struct { + Configuration SourceGoogleTasks `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 SourceZendeskSellCreateRequest struct { WorkspaceID string `json:"workspaceId"` } -func (o *SourceZendeskSellCreateRequest) GetConfiguration() SourceZendeskSell { +func (o *SourceGoogleTasksCreateRequest) GetConfiguration() SourceGoogleTasks { if o == nil { - return SourceZendeskSell{} + return SourceGoogleTasks{} } return o.Configuration } -func (o *SourceZendeskSellCreateRequest) GetDefinitionID() *string { +func (o *SourceGoogleTasksCreateRequest) GetDefinitionID() *string { if o == nil { return nil } return o.DefinitionID } -func (o *SourceZendeskSellCreateRequest) GetName() string { +func (o *SourceGoogleTasksCreateRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourceZendeskSellCreateRequest) GetSecretID() *string { +func (o *SourceGoogleTasksCreateRequest) GetSecretID() *string { if o == nil { return nil } return o.SecretID } -func (o *SourceZendeskSellCreateRequest) GetWorkspaceID() string { +func (o *SourceGoogleTasksCreateRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourcezendesksellputrequest.go b/internal/sdk/models/shared/sourcegoogletasksputrequest.go similarity index 50% rename from internal/sdk/models/shared/sourcezendesksellputrequest.go rename to internal/sdk/models/shared/sourcegoogletasksputrequest.go index f92da9c36..0183cea16 100644 --- a/internal/sdk/models/shared/sourcezendesksellputrequest.go +++ b/internal/sdk/models/shared/sourcegoogletasksputrequest.go @@ -2,27 +2,27 @@ package shared -type SourceZendeskSellPutRequest struct { - Configuration SourceZendeskSellUpdate `json:"configuration"` +type SourceGoogleTasksPutRequest struct { + Configuration SourceGoogleTasksUpdate `json:"configuration"` Name string `json:"name"` WorkspaceID string `json:"workspaceId"` } -func (o *SourceZendeskSellPutRequest) GetConfiguration() SourceZendeskSellUpdate { +func (o *SourceGoogleTasksPutRequest) GetConfiguration() SourceGoogleTasksUpdate { if o == nil { - return SourceZendeskSellUpdate{} + return SourceGoogleTasksUpdate{} } return o.Configuration } -func (o *SourceZendeskSellPutRequest) GetName() string { +func (o *SourceGoogleTasksPutRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourceZendeskSellPutRequest) GetWorkspaceID() string { +func (o *SourceGoogleTasksPutRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourcegoogletasksupdate.go b/internal/sdk/models/shared/sourcegoogletasksupdate.go new file mode 100644 index 000000000..966d73d47 --- /dev/null +++ b/internal/sdk/models/shared/sourcegoogletasksupdate.go @@ -0,0 +1,47 @@ +// 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 SourceGoogleTasksUpdate struct { + APIKey string `json:"api_key"` + // The maximum number of records to be returned per request + RecordsLimit *string `default:"50" json:"records_limit"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceGoogleTasksUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGoogleTasksUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceGoogleTasksUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceGoogleTasksUpdate) GetRecordsLimit() *string { + if o == nil { + return nil + } + return o.RecordsLimit +} + +func (o *SourceGoogleTasksUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceguru.go b/internal/sdk/models/shared/sourceguru.go new file mode 100644 index 000000000..595eb5a50 --- /dev/null +++ b/internal/sdk/models/shared/sourceguru.go @@ -0,0 +1,94 @@ +// 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 Guru string + +const ( + GuruGuru Guru = "guru" +) + +func (e Guru) ToPointer() *Guru { + return &e +} +func (e *Guru) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "guru": + *e = Guru(v) + return nil + default: + return fmt.Errorf("invalid value for Guru: %v", v) + } +} + +type SourceGuru struct { + Password *string `json:"password,omitempty"` + // Query for searching cards + SearchCardsQuery *string `json:"search_cards_query,omitempty"` + sourceType Guru `const:"guru" json:"sourceType"` + StartDate time.Time `json:"start_date"` + // Team ID received through response of /teams streams, make sure about access to the team + TeamID *string `json:"team_id,omitempty"` + Username string `json:"username"` +} + +func (s SourceGuru) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGuru) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceGuru) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourceGuru) GetSearchCardsQuery() *string { + if o == nil { + return nil + } + return o.SearchCardsQuery +} + +func (o *SourceGuru) GetSourceType() Guru { + return GuruGuru +} + +func (o *SourceGuru) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceGuru) GetTeamID() *string { + if o == nil { + return nil + } + return o.TeamID +} + +func (o *SourceGuru) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourcegurucreaterequest.go b/internal/sdk/models/shared/sourcegurucreaterequest.go new file mode 100644 index 000000000..30b6e779d --- /dev/null +++ b/internal/sdk/models/shared/sourcegurucreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceGuruCreateRequest struct { + Configuration SourceGuru `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 *SourceGuruCreateRequest) GetConfiguration() SourceGuru { + if o == nil { + return SourceGuru{} + } + return o.Configuration +} + +func (o *SourceGuruCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceGuruCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceGuruCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceGuruCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceguruputrequest.go b/internal/sdk/models/shared/sourceguruputrequest.go new file mode 100644 index 000000000..ce4988331 --- /dev/null +++ b/internal/sdk/models/shared/sourceguruputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceGuruPutRequest struct { + Configuration SourceGuruUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceGuruPutRequest) GetConfiguration() SourceGuruUpdate { + if o == nil { + return SourceGuruUpdate{} + } + return o.Configuration +} + +func (o *SourceGuruPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceGuruPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceguruupdate.go b/internal/sdk/models/shared/sourceguruupdate.go new file mode 100644 index 000000000..d14d93578 --- /dev/null +++ b/internal/sdk/models/shared/sourceguruupdate.go @@ -0,0 +1,64 @@ +// 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 SourceGuruUpdate struct { + Password *string `json:"password,omitempty"` + // Query for searching cards + SearchCardsQuery *string `json:"search_cards_query,omitempty"` + StartDate time.Time `json:"start_date"` + // Team ID received through response of /teams streams, make sure about access to the team + TeamID *string `json:"team_id,omitempty"` + Username string `json:"username"` +} + +func (s SourceGuruUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGuruUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceGuruUpdate) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourceGuruUpdate) GetSearchCardsQuery() *string { + if o == nil { + return nil + } + return o.SearchCardsQuery +} + +func (o *SourceGuruUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceGuruUpdate) GetTeamID() *string { + if o == nil { + return nil + } + return o.TeamID +} + +func (o *SourceGuruUpdate) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourceharvest.go b/internal/sdk/models/shared/sourceharvest.go index 284097fd8..54dcf8fdc 100644 --- a/internal/sdk/models/shared/sourceharvest.go +++ b/internal/sdk/models/shared/sourceharvest.go @@ -238,8 +238,6 @@ type SourceHarvest struct { AccountID string `json:"account_id"` // Choose how to authenticate to Harvest. Credentials *SourceHarvestAuthenticationMechanism `json:"credentials,omitempty"` - // 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. ReplicationStartDate time.Time `json:"replication_start_date"` sourceType Harvest `const:"harvest" json:"sourceType"` @@ -270,13 +268,6 @@ func (o *SourceHarvest) GetCredentials() *SourceHarvestAuthenticationMechanism { return o.Credentials } -func (o *SourceHarvest) GetReplicationEndDate() *time.Time { - if o == nil { - return nil - } - return o.ReplicationEndDate -} - func (o *SourceHarvest) GetReplicationStartDate() time.Time { if o == nil { return time.Time{} diff --git a/internal/sdk/models/shared/sourceharvestupdate.go b/internal/sdk/models/shared/sourceharvestupdate.go index 54ad23b20..15ce0c731 100644 --- a/internal/sdk/models/shared/sourceharvestupdate.go +++ b/internal/sdk/models/shared/sourceharvestupdate.go @@ -215,8 +215,6 @@ type SourceHarvestUpdate struct { AccountID string `json:"account_id"` // Choose how to authenticate to Harvest. Credentials *SourceHarvestUpdateAuthenticationMechanism `json:"credentials,omitempty"` - // 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. ReplicationStartDate time.Time `json:"replication_start_date"` } @@ -246,13 +244,6 @@ func (o *SourceHarvestUpdate) GetCredentials() *SourceHarvestUpdateAuthenticatio return o.Credentials } -func (o *SourceHarvestUpdate) GetReplicationEndDate() *time.Time { - if o == nil { - return nil - } - return o.ReplicationEndDate -} - func (o *SourceHarvestUpdate) GetReplicationStartDate() time.Time { if o == nil { return time.Time{} diff --git a/internal/sdk/models/shared/sourceheight.go b/internal/sdk/models/shared/sourceheight.go new file mode 100644 index 000000000..87e64b317 --- /dev/null +++ b/internal/sdk/models/shared/sourceheight.go @@ -0,0 +1,77 @@ +// 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 Height string + +const ( + HeightHeight Height = "height" +) + +func (e Height) ToPointer() *Height { + return &e +} +func (e *Height) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "height": + *e = Height(v) + return nil + default: + return fmt.Errorf("invalid value for Height: %v", v) + } +} + +type SourceHeight struct { + APIKey string `json:"api_key"` + // Search query to be used with search stream + SearchQuery *string `default:"task" json:"search_query"` + sourceType Height `const:"height" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceHeight) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceHeight) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceHeight) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceHeight) GetSearchQuery() *string { + if o == nil { + return nil + } + return o.SearchQuery +} + +func (o *SourceHeight) GetSourceType() Height { + return HeightHeight +} + +func (o *SourceHeight) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceheightcreaterequest.go b/internal/sdk/models/shared/sourceheightcreaterequest.go new file mode 100644 index 000000000..d3ff151a4 --- /dev/null +++ b/internal/sdk/models/shared/sourceheightcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceHeightCreateRequest struct { + Configuration SourceHeight `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 *SourceHeightCreateRequest) GetConfiguration() SourceHeight { + if o == nil { + return SourceHeight{} + } + return o.Configuration +} + +func (o *SourceHeightCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceHeightCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceHeightCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceHeightCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceheightputrequest.go b/internal/sdk/models/shared/sourceheightputrequest.go new file mode 100644 index 000000000..8abf28599 --- /dev/null +++ b/internal/sdk/models/shared/sourceheightputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceHeightPutRequest struct { + Configuration SourceHeightUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceHeightPutRequest) GetConfiguration() SourceHeightUpdate { + if o == nil { + return SourceHeightUpdate{} + } + return o.Configuration +} + +func (o *SourceHeightPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceHeightPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceheightupdate.go b/internal/sdk/models/shared/sourceheightupdate.go new file mode 100644 index 000000000..d5a8d80d9 --- /dev/null +++ b/internal/sdk/models/shared/sourceheightupdate.go @@ -0,0 +1,47 @@ +// 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 SourceHeightUpdate struct { + APIKey string `json:"api_key"` + // Search query to be used with search stream + SearchQuery *string `default:"task" json:"search_query"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceHeightUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceHeightUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceHeightUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceHeightUpdate) GetSearchQuery() *string { + if o == nil { + return nil + } + return o.SearchQuery +} + +func (o *SourceHeightUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceinstagram.go b/internal/sdk/models/shared/sourceinstagram.go index 176f04bab..62396f6e2 100644 --- a/internal/sdk/models/shared/sourceinstagram.go +++ b/internal/sdk/models/shared/sourceinstagram.go @@ -34,12 +34,8 @@ func (e *Instagram) UnmarshalJSON(data []byte) error { type SourceInstagram struct { // The value of the access token generated with instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access permissions. See the docs for more information - AccessToken string `json:"access_token"` - // The Client ID for your Oauth application - ClientID *string `json:"client_id,omitempty"` - // The Client Secret for your Oauth application - ClientSecret *string `json:"client_secret,omitempty"` - sourceType Instagram `const:"instagram" json:"sourceType"` + AccessToken string `json:"access_token"` + sourceType Instagram `const:"instagram" json:"sourceType"` // 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. StartDate *time.Time `json:"start_date,omitempty"` } @@ -62,20 +58,6 @@ func (o *SourceInstagram) GetAccessToken() string { return o.AccessToken } -func (o *SourceInstagram) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - -func (o *SourceInstagram) GetClientSecret() *string { - if o == nil { - return nil - } - return o.ClientSecret -} - func (o *SourceInstagram) GetSourceType() Instagram { return InstagramInstagram } diff --git a/internal/sdk/models/shared/sourceinstagramupdate.go b/internal/sdk/models/shared/sourceinstagramupdate.go index 030df97a8..a5ab929e2 100644 --- a/internal/sdk/models/shared/sourceinstagramupdate.go +++ b/internal/sdk/models/shared/sourceinstagramupdate.go @@ -10,10 +10,6 @@ import ( type SourceInstagramUpdate struct { // The value of the access token generated with instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access permissions. See the docs for more information AccessToken string `json:"access_token"` - // The Client ID for your Oauth application - ClientID *string `json:"client_id,omitempty"` - // The Client Secret for your Oauth application - ClientSecret *string `json:"client_secret,omitempty"` // 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. StartDate *time.Time `json:"start_date,omitempty"` } @@ -36,20 +32,6 @@ func (o *SourceInstagramUpdate) GetAccessToken() string { return o.AccessToken } -func (o *SourceInstagramUpdate) GetClientID() *string { - if o == nil { - return nil - } - return o.ClientID -} - -func (o *SourceInstagramUpdate) GetClientSecret() *string { - if o == nil { - return nil - } - return o.ClientSecret -} - func (o *SourceInstagramUpdate) GetStartDate() *time.Time { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcejira.go b/internal/sdk/models/shared/sourcejira.go index 9b9096aaf..80c5573f6 100644 --- a/internal/sdk/models/shared/sourcejira.go +++ b/internal/sdk/models/shared/sourcejira.go @@ -9,35 +9,6 @@ import ( "time" ) -type SourceJiraIssuesStreamExpandWith string - -const ( - SourceJiraIssuesStreamExpandWithRenderedFields SourceJiraIssuesStreamExpandWith = "renderedFields" - SourceJiraIssuesStreamExpandWithTransitions SourceJiraIssuesStreamExpandWith = "transitions" - SourceJiraIssuesStreamExpandWithChangelog SourceJiraIssuesStreamExpandWith = "changelog" -) - -func (e SourceJiraIssuesStreamExpandWith) ToPointer() *SourceJiraIssuesStreamExpandWith { - return &e -} -func (e *SourceJiraIssuesStreamExpandWith) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "renderedFields": - fallthrough - case "transitions": - fallthrough - case "changelog": - *e = SourceJiraIssuesStreamExpandWith(v) - return nil - default: - return fmt.Errorf("invalid value for SourceJiraIssuesStreamExpandWith: %v", v) - } -} - type Jira string const ( @@ -70,19 +41,11 @@ type SourceJira struct { Email string `json:"email"` // Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. EnableExperimentalStreams *bool `default:"false" json:"enable_experimental_streams"` - // (DEPRECATED) Expand the changelog when replicating issues. - ExpandIssueChangelog *bool `default:"false" json:"expand_issue_changelog"` - // (DEPRECATED) Expand the transitions when replicating issues. - ExpandIssueTransition *bool `default:"false" json:"expand_issue_transition"` - // Select fields to Expand the `Issues` stream when replicating with: - IssuesStreamExpandWith []SourceJiraIssuesStreamExpandWith `json:"issues_stream_expand_with,omitempty"` // When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. LookbackWindowMinutes *int64 `default:"0" json:"lookback_window_minutes"` // List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. - Projects []string `json:"projects,omitempty"` - // (DEPRECATED) Render issue fields in HTML format in addition to Jira JSON-like format. - RenderFields *bool `default:"false" json:"render_fields"` - sourceType Jira `const:"jira" json:"sourceType"` + Projects []string `json:"projects,omitempty"` + sourceType Jira `const:"jira" json:"sourceType"` // The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the documentation. StartDate *time.Time `json:"start_date,omitempty"` } @@ -126,27 +89,6 @@ func (o *SourceJira) GetEnableExperimentalStreams() *bool { return o.EnableExperimentalStreams } -func (o *SourceJira) GetExpandIssueChangelog() *bool { - if o == nil { - return nil - } - return o.ExpandIssueChangelog -} - -func (o *SourceJira) GetExpandIssueTransition() *bool { - if o == nil { - return nil - } - return o.ExpandIssueTransition -} - -func (o *SourceJira) GetIssuesStreamExpandWith() []SourceJiraIssuesStreamExpandWith { - if o == nil { - return nil - } - return o.IssuesStreamExpandWith -} - func (o *SourceJira) GetLookbackWindowMinutes() *int64 { if o == nil { return nil @@ -161,13 +103,6 @@ func (o *SourceJira) GetProjects() []string { return o.Projects } -func (o *SourceJira) GetRenderFields() *bool { - if o == nil { - return nil - } - return o.RenderFields -} - func (o *SourceJira) GetSourceType() Jira { return JiraJira } diff --git a/internal/sdk/models/shared/sourcejiraupdate.go b/internal/sdk/models/shared/sourcejiraupdate.go index dc3e66f22..67ea4271a 100644 --- a/internal/sdk/models/shared/sourcejiraupdate.go +++ b/internal/sdk/models/shared/sourcejiraupdate.go @@ -3,41 +3,10 @@ package shared import ( - "encoding/json" - "fmt" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" "time" ) -type IssuesStreamExpandWith string - -const ( - IssuesStreamExpandWithRenderedFields IssuesStreamExpandWith = "renderedFields" - IssuesStreamExpandWithTransitions IssuesStreamExpandWith = "transitions" - IssuesStreamExpandWithChangelog IssuesStreamExpandWith = "changelog" -) - -func (e IssuesStreamExpandWith) ToPointer() *IssuesStreamExpandWith { - return &e -} -func (e *IssuesStreamExpandWith) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "renderedFields": - fallthrough - case "transitions": - fallthrough - case "changelog": - *e = IssuesStreamExpandWith(v) - return nil - default: - return fmt.Errorf("invalid value for IssuesStreamExpandWith: %v", v) - } -} - type SourceJiraUpdate struct { // Jira API Token. See the docs for more information on how to generate this key. API Token is used for Authorization to your account by BasicAuth. APIToken string `json:"api_token"` @@ -47,18 +16,10 @@ type SourceJiraUpdate struct { Email string `json:"email"` // Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. EnableExperimentalStreams *bool `default:"false" json:"enable_experimental_streams"` - // (DEPRECATED) Expand the changelog when replicating issues. - ExpandIssueChangelog *bool `default:"false" json:"expand_issue_changelog"` - // (DEPRECATED) Expand the transitions when replicating issues. - ExpandIssueTransition *bool `default:"false" json:"expand_issue_transition"` - // Select fields to Expand the `Issues` stream when replicating with: - IssuesStreamExpandWith []IssuesStreamExpandWith `json:"issues_stream_expand_with,omitempty"` // When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. LookbackWindowMinutes *int64 `default:"0" json:"lookback_window_minutes"` // List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. Projects []string `json:"projects,omitempty"` - // (DEPRECATED) Render issue fields in HTML format in addition to Jira JSON-like format. - RenderFields *bool `default:"false" json:"render_fields"` // The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the documentation. StartDate *time.Time `json:"start_date,omitempty"` } @@ -102,27 +63,6 @@ func (o *SourceJiraUpdate) GetEnableExperimentalStreams() *bool { return o.EnableExperimentalStreams } -func (o *SourceJiraUpdate) GetExpandIssueChangelog() *bool { - if o == nil { - return nil - } - return o.ExpandIssueChangelog -} - -func (o *SourceJiraUpdate) GetExpandIssueTransition() *bool { - if o == nil { - return nil - } - return o.ExpandIssueTransition -} - -func (o *SourceJiraUpdate) GetIssuesStreamExpandWith() []IssuesStreamExpandWith { - if o == nil { - return nil - } - return o.IssuesStreamExpandWith -} - func (o *SourceJiraUpdate) GetLookbackWindowMinutes() *int64 { if o == nil { return nil @@ -137,13 +77,6 @@ func (o *SourceJiraUpdate) GetProjects() []string { return o.Projects } -func (o *SourceJiraUpdate) GetRenderFields() *bool { - if o == nil { - return nil - } - return o.RenderFields -} - func (o *SourceJiraUpdate) GetStartDate() *time.Time { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcejotform.go b/internal/sdk/models/shared/sourcejotform.go new file mode 100644 index 000000000..4565d4600 --- /dev/null +++ b/internal/sdk/models/shared/sourcejotform.go @@ -0,0 +1,280 @@ +// 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" + "time" +) + +type SourceJotformSchemasAPIEndpointAPIEndpoint string + +const ( + SourceJotformSchemasAPIEndpointAPIEndpointEnterprise SourceJotformSchemasAPIEndpointAPIEndpoint = "enterprise" +) + +func (e SourceJotformSchemasAPIEndpointAPIEndpoint) ToPointer() *SourceJotformSchemasAPIEndpointAPIEndpoint { + return &e +} +func (e *SourceJotformSchemasAPIEndpointAPIEndpoint) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "enterprise": + *e = SourceJotformSchemasAPIEndpointAPIEndpoint(v) + return nil + default: + return fmt.Errorf("invalid value for SourceJotformSchemasAPIEndpointAPIEndpoint: %v", v) + } +} + +type SourceJotformEnterprise struct { + apiEndpoint *SourceJotformSchemasAPIEndpointAPIEndpoint `const:"enterprise" json:"api_endpoint,omitempty"` + // Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com + EnterpriseURL string `json:"enterprise_url"` +} + +func (s SourceJotformEnterprise) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceJotformEnterprise) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceJotformEnterprise) GetAPIEndpoint() *SourceJotformSchemasAPIEndpointAPIEndpoint { + return SourceJotformSchemasAPIEndpointAPIEndpointEnterprise.ToPointer() +} + +func (o *SourceJotformEnterprise) GetEnterpriseURL() string { + if o == nil { + return "" + } + return o.EnterpriseURL +} + +type SourceJotformSchemasAPIEndpoint string + +const ( + SourceJotformSchemasAPIEndpointBasic SourceJotformSchemasAPIEndpoint = "basic" +) + +func (e SourceJotformSchemasAPIEndpoint) ToPointer() *SourceJotformSchemasAPIEndpoint { + return &e +} +func (e *SourceJotformSchemasAPIEndpoint) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "basic": + *e = SourceJotformSchemasAPIEndpoint(v) + return nil + default: + return fmt.Errorf("invalid value for SourceJotformSchemasAPIEndpoint: %v", v) + } +} + +// SourceJotformBaseURLPrefix - You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) +type SourceJotformBaseURLPrefix string + +const ( + SourceJotformBaseURLPrefixStandard SourceJotformBaseURLPrefix = "Standard" + SourceJotformBaseURLPrefixEu SourceJotformBaseURLPrefix = "EU" + SourceJotformBaseURLPrefixHipaa SourceJotformBaseURLPrefix = "HIPAA" +) + +func (e SourceJotformBaseURLPrefix) ToPointer() *SourceJotformBaseURLPrefix { + return &e +} +func (e *SourceJotformBaseURLPrefix) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "Standard": + fallthrough + case "EU": + fallthrough + case "HIPAA": + *e = SourceJotformBaseURLPrefix(v) + return nil + default: + return fmt.Errorf("invalid value for SourceJotformBaseURLPrefix: %v", v) + } +} + +type SourceJotformBasic struct { + apiEndpoint *SourceJotformSchemasAPIEndpoint `const:"basic" json:"api_endpoint,omitempty"` + // You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) + URLPrefix *SourceJotformBaseURLPrefix `default:"Standard" json:"url_prefix"` +} + +func (s SourceJotformBasic) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceJotformBasic) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceJotformBasic) GetAPIEndpoint() *SourceJotformSchemasAPIEndpoint { + return SourceJotformSchemasAPIEndpointBasic.ToPointer() +} + +func (o *SourceJotformBasic) GetURLPrefix() *SourceJotformBaseURLPrefix { + if o == nil { + return nil + } + return o.URLPrefix +} + +type SourceJotformAPIEndpointType string + +const ( + SourceJotformAPIEndpointTypeSourceJotformBasic SourceJotformAPIEndpointType = "source-jotform_Basic" + SourceJotformAPIEndpointTypeSourceJotformEnterprise SourceJotformAPIEndpointType = "source-jotform_Enterprise" +) + +type SourceJotformAPIEndpoint struct { + SourceJotformBasic *SourceJotformBasic + SourceJotformEnterprise *SourceJotformEnterprise + + Type SourceJotformAPIEndpointType +} + +func CreateSourceJotformAPIEndpointSourceJotformBasic(sourceJotformBasic SourceJotformBasic) SourceJotformAPIEndpoint { + typ := SourceJotformAPIEndpointTypeSourceJotformBasic + + return SourceJotformAPIEndpoint{ + SourceJotformBasic: &sourceJotformBasic, + Type: typ, + } +} + +func CreateSourceJotformAPIEndpointSourceJotformEnterprise(sourceJotformEnterprise SourceJotformEnterprise) SourceJotformAPIEndpoint { + typ := SourceJotformAPIEndpointTypeSourceJotformEnterprise + + return SourceJotformAPIEndpoint{ + SourceJotformEnterprise: &sourceJotformEnterprise, + Type: typ, + } +} + +func (u *SourceJotformAPIEndpoint) UnmarshalJSON(data []byte) error { + + var sourceJotformBasic SourceJotformBasic = SourceJotformBasic{} + if err := utils.UnmarshalJSON(data, &sourceJotformBasic, "", true, true); err == nil { + u.SourceJotformBasic = &sourceJotformBasic + u.Type = SourceJotformAPIEndpointTypeSourceJotformBasic + return nil + } + + var sourceJotformEnterprise SourceJotformEnterprise = SourceJotformEnterprise{} + if err := utils.UnmarshalJSON(data, &sourceJotformEnterprise, "", true, true); err == nil { + u.SourceJotformEnterprise = &sourceJotformEnterprise + u.Type = SourceJotformAPIEndpointTypeSourceJotformEnterprise + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceJotformAPIEndpoint", string(data)) +} + +func (u SourceJotformAPIEndpoint) MarshalJSON() ([]byte, error) { + if u.SourceJotformBasic != nil { + return utils.MarshalJSON(u.SourceJotformBasic, "", true) + } + + if u.SourceJotformEnterprise != nil { + return utils.MarshalJSON(u.SourceJotformEnterprise, "", true) + } + + return nil, errors.New("could not marshal union type SourceJotformAPIEndpoint: all fields are null") +} + +type Jotform string + +const ( + JotformJotform Jotform = "jotform" +) + +func (e Jotform) ToPointer() *Jotform { + return &e +} +func (e *Jotform) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "jotform": + *e = Jotform(v) + return nil + default: + return fmt.Errorf("invalid value for Jotform: %v", v) + } +} + +type SourceJotform struct { + APIEndpoint SourceJotformAPIEndpoint `json:"api_endpoint"` + APIKey string `json:"api_key"` + EndDate time.Time `json:"end_date"` + sourceType Jotform `const:"jotform" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceJotform) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceJotform) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceJotform) GetAPIEndpoint() SourceJotformAPIEndpoint { + if o == nil { + return SourceJotformAPIEndpoint{} + } + return o.APIEndpoint +} + +func (o *SourceJotform) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceJotform) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceJotform) GetSourceType() Jotform { + return JotformJotform +} + +func (o *SourceJotform) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcejotformcreaterequest.go b/internal/sdk/models/shared/sourcejotformcreaterequest.go new file mode 100644 index 000000000..115bbfc43 --- /dev/null +++ b/internal/sdk/models/shared/sourcejotformcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceJotformCreateRequest struct { + Configuration SourceJotform `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 *SourceJotformCreateRequest) GetConfiguration() SourceJotform { + if o == nil { + return SourceJotform{} + } + return o.Configuration +} + +func (o *SourceJotformCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceJotformCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceJotformCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceJotformCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcejotformputrequest.go b/internal/sdk/models/shared/sourcejotformputrequest.go new file mode 100644 index 000000000..d8263382c --- /dev/null +++ b/internal/sdk/models/shared/sourcejotformputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceJotformPutRequest struct { + Configuration SourceJotformUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceJotformPutRequest) GetConfiguration() SourceJotformUpdate { + if o == nil { + return SourceJotformUpdate{} + } + return o.Configuration +} + +func (o *SourceJotformPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceJotformPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcejotformupdate.go b/internal/sdk/models/shared/sourcejotformupdate.go new file mode 100644 index 000000000..ac192fb36 --- /dev/null +++ b/internal/sdk/models/shared/sourcejotformupdate.go @@ -0,0 +1,252 @@ +// 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" + "time" +) + +type SourceJotformUpdateSchemasAPIEndpoint string + +const ( + SourceJotformUpdateSchemasAPIEndpointEnterprise SourceJotformUpdateSchemasAPIEndpoint = "enterprise" +) + +func (e SourceJotformUpdateSchemasAPIEndpoint) ToPointer() *SourceJotformUpdateSchemasAPIEndpoint { + return &e +} +func (e *SourceJotformUpdateSchemasAPIEndpoint) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "enterprise": + *e = SourceJotformUpdateSchemasAPIEndpoint(v) + return nil + default: + return fmt.Errorf("invalid value for SourceJotformUpdateSchemasAPIEndpoint: %v", v) + } +} + +type Enterprise struct { + apiEndpoint *SourceJotformUpdateSchemasAPIEndpoint `const:"enterprise" json:"api_endpoint,omitempty"` + // Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com + EnterpriseURL string `json:"enterprise_url"` +} + +func (e Enterprise) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *Enterprise) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, true); err != nil { + return err + } + return nil +} + +func (o *Enterprise) GetAPIEndpoint() *SourceJotformUpdateSchemasAPIEndpoint { + return SourceJotformUpdateSchemasAPIEndpointEnterprise.ToPointer() +} + +func (o *Enterprise) GetEnterpriseURL() string { + if o == nil { + return "" + } + return o.EnterpriseURL +} + +type SourceJotformUpdateAPIEndpoint string + +const ( + SourceJotformUpdateAPIEndpointBasic SourceJotformUpdateAPIEndpoint = "basic" +) + +func (e SourceJotformUpdateAPIEndpoint) ToPointer() *SourceJotformUpdateAPIEndpoint { + return &e +} +func (e *SourceJotformUpdateAPIEndpoint) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "basic": + *e = SourceJotformUpdateAPIEndpoint(v) + return nil + default: + return fmt.Errorf("invalid value for SourceJotformUpdateAPIEndpoint: %v", v) + } +} + +// BaseURLPrefix - You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) +type BaseURLPrefix string + +const ( + BaseURLPrefixStandard BaseURLPrefix = "Standard" + BaseURLPrefixEu BaseURLPrefix = "EU" + BaseURLPrefixHipaa BaseURLPrefix = "HIPAA" +) + +func (e BaseURLPrefix) ToPointer() *BaseURLPrefix { + return &e +} +func (e *BaseURLPrefix) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "Standard": + fallthrough + case "EU": + fallthrough + case "HIPAA": + *e = BaseURLPrefix(v) + return nil + default: + return fmt.Errorf("invalid value for BaseURLPrefix: %v", v) + } +} + +type Basic struct { + apiEndpoint *SourceJotformUpdateAPIEndpoint `const:"basic" json:"api_endpoint,omitempty"` + // You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) + URLPrefix *BaseURLPrefix `default:"Standard" json:"url_prefix"` +} + +func (b Basic) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *Basic) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, true); err != nil { + return err + } + return nil +} + +func (o *Basic) GetAPIEndpoint() *SourceJotformUpdateAPIEndpoint { + return SourceJotformUpdateAPIEndpointBasic.ToPointer() +} + +func (o *Basic) GetURLPrefix() *BaseURLPrefix { + if o == nil { + return nil + } + return o.URLPrefix +} + +type APIEndpointType string + +const ( + APIEndpointTypeBasic APIEndpointType = "Basic" + APIEndpointTypeEnterprise APIEndpointType = "Enterprise" +) + +type APIEndpoint struct { + Basic *Basic + Enterprise *Enterprise + + Type APIEndpointType +} + +func CreateAPIEndpointBasic(basic Basic) APIEndpoint { + typ := APIEndpointTypeBasic + + return APIEndpoint{ + Basic: &basic, + Type: typ, + } +} + +func CreateAPIEndpointEnterprise(enterprise Enterprise) APIEndpoint { + typ := APIEndpointTypeEnterprise + + return APIEndpoint{ + Enterprise: &enterprise, + Type: typ, + } +} + +func (u *APIEndpoint) UnmarshalJSON(data []byte) error { + + var basic Basic = Basic{} + if err := utils.UnmarshalJSON(data, &basic, "", true, true); err == nil { + u.Basic = &basic + u.Type = APIEndpointTypeBasic + return nil + } + + var enterprise Enterprise = Enterprise{} + if err := utils.UnmarshalJSON(data, &enterprise, "", true, true); err == nil { + u.Enterprise = &enterprise + u.Type = APIEndpointTypeEnterprise + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for APIEndpoint", string(data)) +} + +func (u APIEndpoint) MarshalJSON() ([]byte, error) { + if u.Basic != nil { + return utils.MarshalJSON(u.Basic, "", true) + } + + if u.Enterprise != nil { + return utils.MarshalJSON(u.Enterprise, "", true) + } + + return nil, errors.New("could not marshal union type APIEndpoint: all fields are null") +} + +type SourceJotformUpdate struct { + APIEndpoint APIEndpoint `json:"api_endpoint"` + APIKey string `json:"api_key"` + EndDate time.Time `json:"end_date"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceJotformUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceJotformUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceJotformUpdate) GetAPIEndpoint() APIEndpoint { + if o == nil { + return APIEndpoint{} + } + return o.APIEndpoint +} + +func (o *SourceJotformUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceJotformUpdate) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceJotformUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcekyve.go b/internal/sdk/models/shared/sourcekyve.go index 77dd99d32..f41f913f6 100644 --- a/internal/sdk/models/shared/sourcekyve.go +++ b/internal/sdk/models/shared/sourcekyve.go @@ -32,10 +32,6 @@ func (e *Kyve) UnmarshalJSON(data []byte) error { } type SourceKyve struct { - // The maximum amount of pages to go trough. Set to 'null' for all pages. - MaxPages *int64 `json:"max_pages,omitempty"` - // The pagesize for pagination, smaller numbers are used in integration tests. - PageSize *int64 `default:"100" json:"page_size"` // The IDs of the KYVE storage pool you want to archive. (Comma separated) PoolIds string `json:"pool_ids"` sourceType Kyve `const:"kyve" json:"sourceType"` @@ -56,20 +52,6 @@ func (s *SourceKyve) UnmarshalJSON(data []byte) error { return nil } -func (o *SourceKyve) GetMaxPages() *int64 { - if o == nil { - return nil - } - return o.MaxPages -} - -func (o *SourceKyve) GetPageSize() *int64 { - if o == nil { - return nil - } - return o.PageSize -} - func (o *SourceKyve) GetPoolIds() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/sourcekyveupdate.go b/internal/sdk/models/shared/sourcekyveupdate.go index cb20e3f37..2ddedcc01 100644 --- a/internal/sdk/models/shared/sourcekyveupdate.go +++ b/internal/sdk/models/shared/sourcekyveupdate.go @@ -7,10 +7,6 @@ import ( ) type SourceKyveUpdate struct { - // The maximum amount of pages to go trough. Set to 'null' for all pages. - MaxPages *int64 `json:"max_pages,omitempty"` - // The pagesize for pagination, smaller numbers are used in integration tests. - PageSize *int64 `default:"100" json:"page_size"` // The IDs of the KYVE storage pool you want to archive. (Comma separated) PoolIds string `json:"pool_ids"` // The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma separated) @@ -30,20 +26,6 @@ func (s *SourceKyveUpdate) UnmarshalJSON(data []byte) error { return nil } -func (o *SourceKyveUpdate) GetMaxPages() *int64 { - if o == nil { - return nil - } - return o.MaxPages -} - -func (o *SourceKyveUpdate) GetPageSize() *int64 { - if o == nil { - return nil - } - return o.PageSize -} - func (o *SourceKyveUpdate) GetPoolIds() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/sourcelinkedinads.go b/internal/sdk/models/shared/sourcelinkedinads.go index ece28f95b..e31b1876f 100644 --- a/internal/sdk/models/shared/sourcelinkedinads.go +++ b/internal/sdk/models/shared/sourcelinkedinads.go @@ -369,7 +369,9 @@ type SourceLinkedinAds struct { AccountIds []int64 `json:"account_ids,omitempty"` AdAnalyticsReports []SourceLinkedinAdsAdAnalyticsReportConfiguration `json:"ad_analytics_reports,omitempty"` Credentials *SourceLinkedinAdsAuthentication `json:"credentials,omitempty"` - sourceType LinkedinAds `const:"linkedin-ads" json:"sourceType"` + // How far into the past to look for records. (in days) + LookbackWindow *int64 `default:"0" json:"lookback_window"` + sourceType LinkedinAds `const:"linkedin-ads" json:"sourceType"` // UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. StartDate types.Date `json:"start_date"` } @@ -406,6 +408,13 @@ func (o *SourceLinkedinAds) GetCredentials() *SourceLinkedinAdsAuthentication { return o.Credentials } +func (o *SourceLinkedinAds) GetLookbackWindow() *int64 { + if o == nil { + return nil + } + return o.LookbackWindow +} + func (o *SourceLinkedinAds) GetSourceType() LinkedinAds { return LinkedinAdsLinkedinAds } diff --git a/internal/sdk/models/shared/sourcelinkedinadsupdate.go b/internal/sdk/models/shared/sourcelinkedinadsupdate.go index f9e009d94..f5260bcb8 100644 --- a/internal/sdk/models/shared/sourcelinkedinadsupdate.go +++ b/internal/sdk/models/shared/sourcelinkedinadsupdate.go @@ -346,6 +346,8 @@ type SourceLinkedinAdsUpdate struct { AccountIds []int64 `json:"account_ids,omitempty"` AdAnalyticsReports []AdAnalyticsReportConfiguration `json:"ad_analytics_reports,omitempty"` Credentials *SourceLinkedinAdsUpdateAuthentication `json:"credentials,omitempty"` + // How far into the past to look for records. (in days) + LookbackWindow *int64 `default:"0" json:"lookback_window"` // UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. StartDate types.Date `json:"start_date"` } @@ -382,6 +384,13 @@ func (o *SourceLinkedinAdsUpdate) GetCredentials() *SourceLinkedinAdsUpdateAuthe return o.Credentials } +func (o *SourceLinkedinAdsUpdate) GetLookbackWindow() *int64 { + if o == nil { + return nil + } + return o.LookbackWindow +} + func (o *SourceLinkedinAdsUpdate) GetStartDate() types.Date { if o == nil { return types.Date{} diff --git a/internal/sdk/models/shared/sourcemailchimp.go b/internal/sdk/models/shared/sourcemailchimp.go index 611e8c331..d434e4fb1 100644 --- a/internal/sdk/models/shared/sourcemailchimp.go +++ b/internal/sdk/models/shared/sourcemailchimp.go @@ -218,9 +218,7 @@ func (e *Mailchimp) UnmarshalJSON(data []byte) error { type SourceMailchimp struct { Credentials *SourceMailchimpAuthentication `json:"credentials,omitempty"` - // Technical fields used to identify datacenter to send request to - DataCenter *string `json:"data_center,omitempty"` - sourceType Mailchimp `const:"mailchimp" json:"sourceType"` + sourceType Mailchimp `const:"mailchimp" json:"sourceType"` // The date from which you want to start syncing data for Incremental streams. Only records that have been created or modified since this date will be synced. If left blank, all data will by synced. StartDate *time.Time `json:"start_date,omitempty"` } @@ -243,13 +241,6 @@ func (o *SourceMailchimp) GetCredentials() *SourceMailchimpAuthentication { return o.Credentials } -func (o *SourceMailchimp) GetDataCenter() *string { - if o == nil { - return nil - } - return o.DataCenter -} - func (o *SourceMailchimp) GetSourceType() Mailchimp { return MailchimpMailchimp } diff --git a/internal/sdk/models/shared/sourcemailchimpupdate.go b/internal/sdk/models/shared/sourcemailchimpupdate.go index 059e2a600..23b1b9de2 100644 --- a/internal/sdk/models/shared/sourcemailchimpupdate.go +++ b/internal/sdk/models/shared/sourcemailchimpupdate.go @@ -195,8 +195,6 @@ func (u SourceMailchimpUpdateAuthentication) MarshalJSON() ([]byte, error) { type SourceMailchimpUpdate struct { Credentials *SourceMailchimpUpdateAuthentication `json:"credentials,omitempty"` - // Technical fields used to identify datacenter to send request to - DataCenter *string `json:"data_center,omitempty"` // The date from which you want to start syncing data for Incremental streams. Only records that have been created or modified since this date will be synced. If left blank, all data will by synced. StartDate *time.Time `json:"start_date,omitempty"` } @@ -219,13 +217,6 @@ func (o *SourceMailchimpUpdate) GetCredentials() *SourceMailchimpUpdateAuthentic return o.Credentials } -func (o *SourceMailchimpUpdate) GetDataCenter() *string { - if o == nil { - return nil - } - return o.DataCenter -} - func (o *SourceMailchimpUpdate) GetStartDate() *time.Time { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemicrosoftonedrive.go b/internal/sdk/models/shared/sourcemicrosoftonedrive.go index c54d99a0a..92e5fd9ec 100644 --- a/internal/sdk/models/shared/sourcemicrosoftonedrive.go +++ b/internal/sdk/models/shared/sourcemicrosoftonedrive.go @@ -1170,8 +1170,6 @@ type SourceMicrosoftOnedriveFileBasedStreamConfig struct { InputSchema *string `json:"input_schema,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"` // 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. @@ -1224,13 +1222,6 @@ func (o *SourceMicrosoftOnedriveFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceMicrosoftOnedriveFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceMicrosoftOnedriveFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemicrosoftonedriveupdate.go b/internal/sdk/models/shared/sourcemicrosoftonedriveupdate.go index 47842563e..48278424e 100644 --- a/internal/sdk/models/shared/sourcemicrosoftonedriveupdate.go +++ b/internal/sdk/models/shared/sourcemicrosoftonedriveupdate.go @@ -1147,8 +1147,6 @@ type SourceMicrosoftOnedriveUpdateFileBasedStreamConfig struct { InputSchema *string `json:"input_schema,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"` // 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. @@ -1201,13 +1199,6 @@ func (o *SourceMicrosoftOnedriveUpdateFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceMicrosoftOnedriveUpdateFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceMicrosoftOnedriveUpdateFileBasedStreamConfig) GetSchemaless() *bool { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemicrosoftsharepoint.go b/internal/sdk/models/shared/sourcemicrosoftsharepoint.go index ea314e7a6..c40630118 100644 --- a/internal/sdk/models/shared/sourcemicrosoftsharepoint.go +++ b/internal/sdk/models/shared/sourcemicrosoftsharepoint.go @@ -1234,8 +1234,6 @@ type SourceMicrosoftSharepointFileBasedStreamConfig struct { InputSchema *string `json:"input_schema,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. @@ -1290,13 +1288,6 @@ func (o *SourceMicrosoftSharepointFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceMicrosoftSharepointFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceMicrosoftSharepointFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go b/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go index a43765e48..6421b910f 100644 --- a/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go +++ b/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go @@ -1211,8 +1211,6 @@ type SourceMicrosoftSharepointUpdateFileBasedStreamConfig struct { InputSchema *string `json:"input_schema,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. @@ -1267,13 +1265,6 @@ func (o *SourceMicrosoftSharepointUpdateFileBasedStreamConfig) GetName() string return o.Name } -func (o *SourceMicrosoftSharepointUpdateFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceMicrosoftSharepointUpdateFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemssqlupdate.go b/internal/sdk/models/shared/sourcemssqlupdate.go index 00309bf77..c7e628196 100644 --- a/internal/sdk/models/shared/sourcemssqlupdate.go +++ b/internal/sdk/models/shared/sourcemssqlupdate.go @@ -349,49 +349,49 @@ func (e *SourceMssqlUpdateSchemasSslMethod) UnmarshalJSON(data []byte) error { } } -// Unencrypted - Data transfer will not be encrypted. -type Unencrypted struct { +// SourceMssqlUpdateUnencrypted - Data transfer will not be encrypted. +type SourceMssqlUpdateUnencrypted struct { sslMethod SourceMssqlUpdateSchemasSslMethod `const:"unencrypted" json:"ssl_method"` } -func (u Unencrypted) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(u, "", false) +func (s SourceMssqlUpdateUnencrypted) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) } -func (u *Unencrypted) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, true); err != nil { +func (s *SourceMssqlUpdateUnencrypted) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *Unencrypted) GetSslMethod() SourceMssqlUpdateSchemasSslMethod { +func (o *SourceMssqlUpdateUnencrypted) GetSslMethod() SourceMssqlUpdateSchemasSslMethod { return SourceMssqlUpdateSchemasSslMethodUnencrypted } type SourceMssqlUpdateSSLMethodType string const ( - SourceMssqlUpdateSSLMethodTypeUnencrypted SourceMssqlUpdateSSLMethodType = "Unencrypted" + SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateUnencrypted SourceMssqlUpdateSSLMethodType = "source-mssql-update_Unencrypted" SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateEncryptedTrustServerCertificate SourceMssqlUpdateSSLMethodType = "source-mssql-update_Encrypted (trust server certificate)" SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateEncryptedVerifyCertificate SourceMssqlUpdateSSLMethodType = "source-mssql-update_Encrypted (verify certificate)" ) // SourceMssqlUpdateSSLMethod - The encryption method which is used when communicating with the database. type SourceMssqlUpdateSSLMethod struct { - Unencrypted *Unencrypted + SourceMssqlUpdateUnencrypted *SourceMssqlUpdateUnencrypted SourceMssqlUpdateEncryptedTrustServerCertificate *SourceMssqlUpdateEncryptedTrustServerCertificate SourceMssqlUpdateEncryptedVerifyCertificate *SourceMssqlUpdateEncryptedVerifyCertificate Type SourceMssqlUpdateSSLMethodType } -func CreateSourceMssqlUpdateSSLMethodUnencrypted(unencrypted Unencrypted) SourceMssqlUpdateSSLMethod { - typ := SourceMssqlUpdateSSLMethodTypeUnencrypted +func CreateSourceMssqlUpdateSSLMethodSourceMssqlUpdateUnencrypted(sourceMssqlUpdateUnencrypted SourceMssqlUpdateUnencrypted) SourceMssqlUpdateSSLMethod { + typ := SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateUnencrypted return SourceMssqlUpdateSSLMethod{ - Unencrypted: &unencrypted, - Type: typ, + SourceMssqlUpdateUnencrypted: &sourceMssqlUpdateUnencrypted, + Type: typ, } } @@ -415,10 +415,10 @@ func CreateSourceMssqlUpdateSSLMethodSourceMssqlUpdateEncryptedVerifyCertificate func (u *SourceMssqlUpdateSSLMethod) UnmarshalJSON(data []byte) error { - var unencrypted Unencrypted = Unencrypted{} - if err := utils.UnmarshalJSON(data, &unencrypted, "", true, true); err == nil { - u.Unencrypted = &unencrypted - u.Type = SourceMssqlUpdateSSLMethodTypeUnencrypted + var sourceMssqlUpdateUnencrypted SourceMssqlUpdateUnencrypted = SourceMssqlUpdateUnencrypted{} + if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateUnencrypted, "", true, true); err == nil { + u.SourceMssqlUpdateUnencrypted = &sourceMssqlUpdateUnencrypted + u.Type = SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateUnencrypted return nil } @@ -440,8 +440,8 @@ func (u *SourceMssqlUpdateSSLMethod) UnmarshalJSON(data []byte) error { } func (u SourceMssqlUpdateSSLMethod) MarshalJSON() ([]byte, error) { - if u.Unencrypted != nil { - return utils.MarshalJSON(u.Unencrypted, "", true) + if u.SourceMssqlUpdateUnencrypted != nil { + return utils.MarshalJSON(u.SourceMssqlUpdateUnencrypted, "", true) } if u.SourceMssqlUpdateEncryptedTrustServerCertificate != nil { diff --git a/internal/sdk/models/shared/sourcemysql.go b/internal/sdk/models/shared/sourcemysql.go index b9103f325..721600c03 100644 --- a/internal/sdk/models/shared/sourcemysql.go +++ b/internal/sdk/models/shared/sourcemysql.go @@ -901,6 +901,8 @@ type SourceMysql struct { // Configures how data is extracted from the database. ReplicationMethod SourceMysqlUpdateMethod `json:"replication_method"` sourceType SourceMysqlMysql `const:"mysql" json:"sourceType"` + // Encrypt data using SSL. + Ssl *bool `default:"true" json:"ssl"` // SSL connection modes. Read more in the docs. SslMode *SourceMysqlSSLModes `json:"ssl_mode,omitempty"` // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. @@ -966,6 +968,13 @@ func (o *SourceMysql) GetSourceType() SourceMysqlMysql { return SourceMysqlMysqlMysql } +func (o *SourceMysql) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *SourceMysql) GetSslMode() *SourceMysqlSSLModes { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemysqlupdate.go b/internal/sdk/models/shared/sourcemysqlupdate.go index 9f4dbd191..36fb829ff 100644 --- a/internal/sdk/models/shared/sourcemysqlupdate.go +++ b/internal/sdk/models/shared/sourcemysqlupdate.go @@ -877,6 +877,8 @@ type SourceMysqlUpdate struct { Port *int64 `default:"3306" json:"port"` // Configures how data is extracted from the database. ReplicationMethod SourceMysqlUpdateUpdateMethod `json:"replication_method"` + // Encrypt data using SSL. + Ssl *bool `default:"true" json:"ssl"` // SSL connection modes. Read more in the docs. SslMode *SourceMysqlUpdateSSLModes `json:"ssl_mode,omitempty"` // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. @@ -938,6 +940,13 @@ func (o *SourceMysqlUpdate) GetReplicationMethod() SourceMysqlUpdateUpdateMethod return o.ReplicationMethod } +func (o *SourceMysqlUpdate) GetSsl() *bool { + if o == nil { + return nil + } + return o.Ssl +} + func (o *SourceMysqlUpdate) GetSslMode() *SourceMysqlUpdateSSLModes { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcenylas.go b/internal/sdk/models/shared/sourcenylas.go new file mode 100644 index 000000000..95c035971 --- /dev/null +++ b/internal/sdk/models/shared/sourcenylas.go @@ -0,0 +1,110 @@ +// 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 SourceNylasAPIServer string + +const ( + SourceNylasAPIServerUs SourceNylasAPIServer = "us" + SourceNylasAPIServerEu SourceNylasAPIServer = "eu" +) + +func (e SourceNylasAPIServer) ToPointer() *SourceNylasAPIServer { + return &e +} +func (e *SourceNylasAPIServer) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "us": + fallthrough + case "eu": + *e = SourceNylasAPIServer(v) + return nil + default: + return fmt.Errorf("invalid value for SourceNylasAPIServer: %v", v) + } +} + +type Nylas string + +const ( + NylasNylas Nylas = "nylas" +) + +func (e Nylas) ToPointer() *Nylas { + return &e +} +func (e *Nylas) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "nylas": + *e = Nylas(v) + return nil + default: + return fmt.Errorf("invalid value for Nylas: %v", v) + } +} + +type SourceNylas struct { + APIKey string `json:"api_key"` + APIServer SourceNylasAPIServer `json:"api_server"` + EndDate time.Time `json:"end_date"` + sourceType Nylas `const:"nylas" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceNylas) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceNylas) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceNylas) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceNylas) GetAPIServer() SourceNylasAPIServer { + if o == nil { + return SourceNylasAPIServer("") + } + return o.APIServer +} + +func (o *SourceNylas) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceNylas) GetSourceType() Nylas { + return NylasNylas +} + +func (o *SourceNylas) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcenylascreaterequest.go b/internal/sdk/models/shared/sourcenylascreaterequest.go new file mode 100644 index 000000000..6e76e4226 --- /dev/null +++ b/internal/sdk/models/shared/sourcenylascreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceNylasCreateRequest struct { + Configuration SourceNylas `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 *SourceNylasCreateRequest) GetConfiguration() SourceNylas { + if o == nil { + return SourceNylas{} + } + return o.Configuration +} + +func (o *SourceNylasCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceNylasCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceNylasCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceNylasCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcenylasputrequest.go b/internal/sdk/models/shared/sourcenylasputrequest.go new file mode 100644 index 000000000..25374f555 --- /dev/null +++ b/internal/sdk/models/shared/sourcenylasputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceNylasPutRequest struct { + Configuration SourceNylasUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceNylasPutRequest) GetConfiguration() SourceNylasUpdate { + if o == nil { + return SourceNylasUpdate{} + } + return o.Configuration +} + +func (o *SourceNylasPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceNylasPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcenylasupdate.go b/internal/sdk/models/shared/sourcenylasupdate.go new file mode 100644 index 000000000..29b7ce9dd --- /dev/null +++ b/internal/sdk/models/shared/sourcenylasupdate.go @@ -0,0 +1,82 @@ +// 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 APIServer string + +const ( + APIServerUs APIServer = "us" + APIServerEu APIServer = "eu" +) + +func (e APIServer) ToPointer() *APIServer { + return &e +} +func (e *APIServer) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "us": + fallthrough + case "eu": + *e = APIServer(v) + return nil + default: + return fmt.Errorf("invalid value for APIServer: %v", v) + } +} + +type SourceNylasUpdate struct { + APIKey string `json:"api_key"` + APIServer APIServer `json:"api_server"` + EndDate time.Time `json:"end_date"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceNylasUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceNylasUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceNylasUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceNylasUpdate) GetAPIServer() APIServer { + if o == nil { + return APIServer("") + } + return o.APIServer +} + +func (o *SourceNylasUpdate) GetEndDate() time.Time { + if o == nil { + return time.Time{} + } + return o.EndDate +} + +func (o *SourceNylasUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceoracle.go b/internal/sdk/models/shared/sourceoracle.go index f4d1ce1a1..5bbec5000 100644 --- a/internal/sdk/models/shared/sourceoracle.go +++ b/internal/sdk/models/shared/sourceoracle.go @@ -175,32 +175,32 @@ func (u SourceOracleConnectBy) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type SourceOracleConnectBy: all fields are null") } -type SourceOracleSchemasEncryptionMethod string +type SourceOracleSchemasEncryptionEncryptionMethod string const ( - SourceOracleSchemasEncryptionMethodEncryptedVerifyCertificate SourceOracleSchemasEncryptionMethod = "encrypted_verify_certificate" + SourceOracleSchemasEncryptionEncryptionMethodEncryptedVerifyCertificate SourceOracleSchemasEncryptionEncryptionMethod = "encrypted_verify_certificate" ) -func (e SourceOracleSchemasEncryptionMethod) ToPointer() *SourceOracleSchemasEncryptionMethod { +func (e SourceOracleSchemasEncryptionEncryptionMethod) ToPointer() *SourceOracleSchemasEncryptionEncryptionMethod { return &e } -func (e *SourceOracleSchemasEncryptionMethod) UnmarshalJSON(data []byte) error { +func (e *SourceOracleSchemasEncryptionEncryptionMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "encrypted_verify_certificate": - *e = SourceOracleSchemasEncryptionMethod(v) + *e = SourceOracleSchemasEncryptionEncryptionMethod(v) return nil default: - return fmt.Errorf("invalid value for SourceOracleSchemasEncryptionMethod: %v", v) + return fmt.Errorf("invalid value for SourceOracleSchemasEncryptionEncryptionMethod: %v", v) } } // SourceOracleTLSEncryptedVerifyCertificate - Verify and use the certificate provided by the server. type SourceOracleTLSEncryptedVerifyCertificate struct { - encryptionMethod SourceOracleSchemasEncryptionMethod `const:"encrypted_verify_certificate" json:"encryption_method"` + encryptionMethod SourceOracleSchemasEncryptionEncryptionMethod `const:"encrypted_verify_certificate" json:"encryption_method"` // Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. SslCertificate string `json:"ssl_certificate"` } @@ -216,8 +216,8 @@ func (s *SourceOracleTLSEncryptedVerifyCertificate) UnmarshalJSON(data []byte) e return nil } -func (o *SourceOracleTLSEncryptedVerifyCertificate) GetEncryptionMethod() SourceOracleSchemasEncryptionMethod { - return SourceOracleSchemasEncryptionMethodEncryptedVerifyCertificate +func (o *SourceOracleTLSEncryptedVerifyCertificate) GetEncryptionMethod() SourceOracleSchemasEncryptionEncryptionMethod { + return SourceOracleSchemasEncryptionEncryptionMethodEncryptedVerifyCertificate } func (o *SourceOracleTLSEncryptedVerifyCertificate) GetSslCertificate() string { @@ -257,34 +257,34 @@ func (e *SourceOracleEncryptionAlgorithm) UnmarshalJSON(data []byte) error { } } -type SourceOracleEncryptionMethod string +type SourceOracleSchemasEncryptionMethod string const ( - SourceOracleEncryptionMethodClientNne SourceOracleEncryptionMethod = "client_nne" + SourceOracleSchemasEncryptionMethodClientNne SourceOracleSchemasEncryptionMethod = "client_nne" ) -func (e SourceOracleEncryptionMethod) ToPointer() *SourceOracleEncryptionMethod { +func (e SourceOracleSchemasEncryptionMethod) ToPointer() *SourceOracleSchemasEncryptionMethod { return &e } -func (e *SourceOracleEncryptionMethod) UnmarshalJSON(data []byte) error { +func (e *SourceOracleSchemasEncryptionMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "client_nne": - *e = SourceOracleEncryptionMethod(v) + *e = SourceOracleSchemasEncryptionMethod(v) return nil default: - return fmt.Errorf("invalid value for SourceOracleEncryptionMethod: %v", v) + return fmt.Errorf("invalid value for SourceOracleSchemasEncryptionMethod: %v", v) } } // SourceOracleNativeNetworkEncryptionNNE - The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. type SourceOracleNativeNetworkEncryptionNNE struct { // This parameter defines what encryption algorithm is used. - EncryptionAlgorithm *SourceOracleEncryptionAlgorithm `default:"AES256" json:"encryption_algorithm"` - encryptionMethod SourceOracleEncryptionMethod `const:"client_nne" json:"encryption_method"` + EncryptionAlgorithm *SourceOracleEncryptionAlgorithm `default:"AES256" json:"encryption_algorithm"` + encryptionMethod SourceOracleSchemasEncryptionMethod `const:"client_nne" json:"encryption_method"` } func (s SourceOracleNativeNetworkEncryptionNNE) MarshalJSON() ([]byte, error) { @@ -305,25 +305,79 @@ func (o *SourceOracleNativeNetworkEncryptionNNE) GetEncryptionAlgorithm() *Sourc return o.EncryptionAlgorithm } -func (o *SourceOracleNativeNetworkEncryptionNNE) GetEncryptionMethod() SourceOracleEncryptionMethod { - return SourceOracleEncryptionMethodClientNne +func (o *SourceOracleNativeNetworkEncryptionNNE) GetEncryptionMethod() SourceOracleSchemasEncryptionMethod { + return SourceOracleSchemasEncryptionMethodClientNne +} + +type SourceOracleEncryptionMethod string + +const ( + SourceOracleEncryptionMethodUnencrypted SourceOracleEncryptionMethod = "unencrypted" +) + +func (e SourceOracleEncryptionMethod) ToPointer() *SourceOracleEncryptionMethod { + return &e +} +func (e *SourceOracleEncryptionMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "unencrypted": + *e = SourceOracleEncryptionMethod(v) + return nil + default: + return fmt.Errorf("invalid value for SourceOracleEncryptionMethod: %v", v) + } +} + +// SourceOracleUnencrypted - Data transfer will not be encrypted. +type SourceOracleUnencrypted struct { + encryptionMethod SourceOracleEncryptionMethod `const:"unencrypted" json:"encryption_method"` +} + +func (s SourceOracleUnencrypted) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceOracleUnencrypted) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceOracleUnencrypted) GetEncryptionMethod() SourceOracleEncryptionMethod { + return SourceOracleEncryptionMethodUnencrypted } type SourceOracleEncryptionType string const ( + SourceOracleEncryptionTypeSourceOracleUnencrypted SourceOracleEncryptionType = "source-oracle_Unencrypted" SourceOracleEncryptionTypeSourceOracleNativeNetworkEncryptionNNE SourceOracleEncryptionType = "source-oracle_Native Network Encryption (NNE)" SourceOracleEncryptionTypeSourceOracleTLSEncryptedVerifyCertificate SourceOracleEncryptionType = "source-oracle_TLS Encrypted (verify certificate)" ) // SourceOracleEncryption - The encryption method with is used when communicating with the database. type SourceOracleEncryption struct { + SourceOracleUnencrypted *SourceOracleUnencrypted SourceOracleNativeNetworkEncryptionNNE *SourceOracleNativeNetworkEncryptionNNE SourceOracleTLSEncryptedVerifyCertificate *SourceOracleTLSEncryptedVerifyCertificate Type SourceOracleEncryptionType } +func CreateSourceOracleEncryptionSourceOracleUnencrypted(sourceOracleUnencrypted SourceOracleUnencrypted) SourceOracleEncryption { + typ := SourceOracleEncryptionTypeSourceOracleUnencrypted + + return SourceOracleEncryption{ + SourceOracleUnencrypted: &sourceOracleUnencrypted, + Type: typ, + } +} + func CreateSourceOracleEncryptionSourceOracleNativeNetworkEncryptionNNE(sourceOracleNativeNetworkEncryptionNNE SourceOracleNativeNetworkEncryptionNNE) SourceOracleEncryption { typ := SourceOracleEncryptionTypeSourceOracleNativeNetworkEncryptionNNE @@ -344,6 +398,13 @@ func CreateSourceOracleEncryptionSourceOracleTLSEncryptedVerifyCertificate(sourc func (u *SourceOracleEncryption) UnmarshalJSON(data []byte) error { + var sourceOracleUnencrypted SourceOracleUnencrypted = SourceOracleUnencrypted{} + if err := utils.UnmarshalJSON(data, &sourceOracleUnencrypted, "", true, true); err == nil { + u.SourceOracleUnencrypted = &sourceOracleUnencrypted + u.Type = SourceOracleEncryptionTypeSourceOracleUnencrypted + return nil + } + var sourceOracleNativeNetworkEncryptionNNE SourceOracleNativeNetworkEncryptionNNE = SourceOracleNativeNetworkEncryptionNNE{} if err := utils.UnmarshalJSON(data, &sourceOracleNativeNetworkEncryptionNNE, "", true, true); err == nil { u.SourceOracleNativeNetworkEncryptionNNE = &sourceOracleNativeNetworkEncryptionNNE @@ -362,6 +423,10 @@ func (u *SourceOracleEncryption) UnmarshalJSON(data []byte) error { } func (u SourceOracleEncryption) MarshalJSON() ([]byte, error) { + if u.SourceOracleUnencrypted != nil { + return utils.MarshalJSON(u.SourceOracleUnencrypted, "", true) + } + if u.SourceOracleNativeNetworkEncryptionNNE != nil { return utils.MarshalJSON(u.SourceOracleNativeNetworkEncryptionNNE, "", true) } @@ -690,7 +755,7 @@ type SourceOracle struct { // Connect data that will be used for DB connection ConnectionData *SourceOracleConnectBy `json:"connection_data,omitempty"` // The encryption method with is used when communicating with the database. - Encryption SourceOracleEncryption `json:"encryption"` + Encryption *SourceOracleEncryption `json:"encryption,omitempty"` // Hostname of the database. Host string `json:"host"` // Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). @@ -729,9 +794,9 @@ func (o *SourceOracle) GetConnectionData() *SourceOracleConnectBy { return o.ConnectionData } -func (o *SourceOracle) GetEncryption() SourceOracleEncryption { +func (o *SourceOracle) GetEncryption() *SourceOracleEncryption { if o == nil { - return SourceOracleEncryption{} + return nil } return o.Encryption } diff --git a/internal/sdk/models/shared/sourceoracleupdate.go b/internal/sdk/models/shared/sourceoracleupdate.go index 872e42659..051230ca2 100644 --- a/internal/sdk/models/shared/sourceoracleupdate.go +++ b/internal/sdk/models/shared/sourceoracleupdate.go @@ -175,71 +175,71 @@ func (u ConnectBy) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type ConnectBy: all fields are null") } -type SourceOracleUpdateEncryptionMethod string +type SourceOracleUpdateSchemasEncryptionEncryptionMethod string const ( - SourceOracleUpdateEncryptionMethodEncryptedVerifyCertificate SourceOracleUpdateEncryptionMethod = "encrypted_verify_certificate" + SourceOracleUpdateSchemasEncryptionEncryptionMethodEncryptedVerifyCertificate SourceOracleUpdateSchemasEncryptionEncryptionMethod = "encrypted_verify_certificate" ) -func (e SourceOracleUpdateEncryptionMethod) ToPointer() *SourceOracleUpdateEncryptionMethod { +func (e SourceOracleUpdateSchemasEncryptionEncryptionMethod) ToPointer() *SourceOracleUpdateSchemasEncryptionEncryptionMethod { return &e } -func (e *SourceOracleUpdateEncryptionMethod) UnmarshalJSON(data []byte) error { +func (e *SourceOracleUpdateSchemasEncryptionEncryptionMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "encrypted_verify_certificate": - *e = SourceOracleUpdateEncryptionMethod(v) + *e = SourceOracleUpdateSchemasEncryptionEncryptionMethod(v) return nil default: - return fmt.Errorf("invalid value for SourceOracleUpdateEncryptionMethod: %v", v) + return fmt.Errorf("invalid value for SourceOracleUpdateSchemasEncryptionEncryptionMethod: %v", v) } } -// TLSEncryptedVerifyCertificate - Verify and use the certificate provided by the server. -type TLSEncryptedVerifyCertificate struct { - encryptionMethod SourceOracleUpdateEncryptionMethod `const:"encrypted_verify_certificate" json:"encryption_method"` +// SourceOracleUpdateTLSEncryptedVerifyCertificate - Verify and use the certificate provided by the server. +type SourceOracleUpdateTLSEncryptedVerifyCertificate struct { + encryptionMethod SourceOracleUpdateSchemasEncryptionEncryptionMethod `const:"encrypted_verify_certificate" json:"encryption_method"` // Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. SslCertificate string `json:"ssl_certificate"` } -func (t TLSEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) +func (s SourceOracleUpdateTLSEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) } -func (t *TLSEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, true); err != nil { +func (s *SourceOracleUpdateTLSEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *TLSEncryptedVerifyCertificate) GetEncryptionMethod() SourceOracleUpdateEncryptionMethod { - return SourceOracleUpdateEncryptionMethodEncryptedVerifyCertificate +func (o *SourceOracleUpdateTLSEncryptedVerifyCertificate) GetEncryptionMethod() SourceOracleUpdateSchemasEncryptionEncryptionMethod { + return SourceOracleUpdateSchemasEncryptionEncryptionMethodEncryptedVerifyCertificate } -func (o *TLSEncryptedVerifyCertificate) GetSslCertificate() string { +func (o *SourceOracleUpdateTLSEncryptedVerifyCertificate) GetSslCertificate() string { if o == nil { return "" } return o.SslCertificate } -// EncryptionAlgorithm - This parameter defines what encryption algorithm is used. -type EncryptionAlgorithm string +// SourceOracleUpdateEncryptionAlgorithm - This parameter defines what encryption algorithm is used. +type SourceOracleUpdateEncryptionAlgorithm string const ( - EncryptionAlgorithmAes256 EncryptionAlgorithm = "AES256" - EncryptionAlgorithmRc456 EncryptionAlgorithm = "RC4_56" - EncryptionAlgorithmThreeDes168 EncryptionAlgorithm = "3DES168" + SourceOracleUpdateEncryptionAlgorithmAes256 SourceOracleUpdateEncryptionAlgorithm = "AES256" + SourceOracleUpdateEncryptionAlgorithmRc456 SourceOracleUpdateEncryptionAlgorithm = "RC4_56" + SourceOracleUpdateEncryptionAlgorithmThreeDes168 SourceOracleUpdateEncryptionAlgorithm = "3DES168" ) -func (e EncryptionAlgorithm) ToPointer() *EncryptionAlgorithm { +func (e SourceOracleUpdateEncryptionAlgorithm) ToPointer() *SourceOracleUpdateEncryptionAlgorithm { return &e } -func (e *EncryptionAlgorithm) UnmarshalJSON(data []byte) error { +func (e *SourceOracleUpdateEncryptionAlgorithm) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -250,127 +250,192 @@ func (e *EncryptionAlgorithm) UnmarshalJSON(data []byte) error { case "RC4_56": fallthrough case "3DES168": - *e = EncryptionAlgorithm(v) + *e = SourceOracleUpdateEncryptionAlgorithm(v) return nil default: - return fmt.Errorf("invalid value for EncryptionAlgorithm: %v", v) + return fmt.Errorf("invalid value for SourceOracleUpdateEncryptionAlgorithm: %v", v) } } -type EncryptionMethod string +type SourceOracleUpdateSchemasEncryptionMethod string const ( - EncryptionMethodClientNne EncryptionMethod = "client_nne" + SourceOracleUpdateSchemasEncryptionMethodClientNne SourceOracleUpdateSchemasEncryptionMethod = "client_nne" ) -func (e EncryptionMethod) ToPointer() *EncryptionMethod { +func (e SourceOracleUpdateSchemasEncryptionMethod) ToPointer() *SourceOracleUpdateSchemasEncryptionMethod { return &e } -func (e *EncryptionMethod) UnmarshalJSON(data []byte) error { +func (e *SourceOracleUpdateSchemasEncryptionMethod) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "client_nne": - *e = EncryptionMethod(v) + *e = SourceOracleUpdateSchemasEncryptionMethod(v) return nil default: - return fmt.Errorf("invalid value for EncryptionMethod: %v", v) + return fmt.Errorf("invalid value for SourceOracleUpdateSchemasEncryptionMethod: %v", v) } } -// NativeNetworkEncryptionNNE - The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. -type NativeNetworkEncryptionNNE struct { +// SourceOracleUpdateNativeNetworkEncryptionNNE - The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. +type SourceOracleUpdateNativeNetworkEncryptionNNE struct { // This parameter defines what encryption algorithm is used. - EncryptionAlgorithm *EncryptionAlgorithm `default:"AES256" json:"encryption_algorithm"` - encryptionMethod EncryptionMethod `const:"client_nne" json:"encryption_method"` + EncryptionAlgorithm *SourceOracleUpdateEncryptionAlgorithm `default:"AES256" json:"encryption_algorithm"` + encryptionMethod SourceOracleUpdateSchemasEncryptionMethod `const:"client_nne" json:"encryption_method"` } -func (n NativeNetworkEncryptionNNE) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(n, "", false) +func (s SourceOracleUpdateNativeNetworkEncryptionNNE) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) } -func (n *NativeNetworkEncryptionNNE) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &n, "", false, true); err != nil { +func (s *SourceOracleUpdateNativeNetworkEncryptionNNE) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *NativeNetworkEncryptionNNE) GetEncryptionAlgorithm() *EncryptionAlgorithm { +func (o *SourceOracleUpdateNativeNetworkEncryptionNNE) GetEncryptionAlgorithm() *SourceOracleUpdateEncryptionAlgorithm { if o == nil { return nil } return o.EncryptionAlgorithm } -func (o *NativeNetworkEncryptionNNE) GetEncryptionMethod() EncryptionMethod { - return EncryptionMethodClientNne +func (o *SourceOracleUpdateNativeNetworkEncryptionNNE) GetEncryptionMethod() SourceOracleUpdateSchemasEncryptionMethod { + return SourceOracleUpdateSchemasEncryptionMethodClientNne } -type EncryptionType string +type SourceOracleUpdateEncryptionMethod string const ( - EncryptionTypeNativeNetworkEncryptionNNE EncryptionType = "Native Network Encryption (NNE)" - EncryptionTypeTLSEncryptedVerifyCertificate EncryptionType = "TLS Encrypted (verify certificate)" + SourceOracleUpdateEncryptionMethodUnencrypted SourceOracleUpdateEncryptionMethod = "unencrypted" ) -// Encryption - The encryption method with is used when communicating with the database. -type Encryption struct { - NativeNetworkEncryptionNNE *NativeNetworkEncryptionNNE - TLSEncryptedVerifyCertificate *TLSEncryptedVerifyCertificate +func (e SourceOracleUpdateEncryptionMethod) ToPointer() *SourceOracleUpdateEncryptionMethod { + return &e +} +func (e *SourceOracleUpdateEncryptionMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "unencrypted": + *e = SourceOracleUpdateEncryptionMethod(v) + return nil + default: + return fmt.Errorf("invalid value for SourceOracleUpdateEncryptionMethod: %v", v) + } +} - Type EncryptionType +// SourceOracleUpdateUnencrypted - Data transfer will not be encrypted. +type SourceOracleUpdateUnencrypted struct { + encryptionMethod SourceOracleUpdateEncryptionMethod `const:"unencrypted" json:"encryption_method"` } -func CreateEncryptionNativeNetworkEncryptionNNE(nativeNetworkEncryptionNNE NativeNetworkEncryptionNNE) Encryption { - typ := EncryptionTypeNativeNetworkEncryptionNNE +func (s SourceOracleUpdateUnencrypted) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} - return Encryption{ - NativeNetworkEncryptionNNE: &nativeNetworkEncryptionNNE, - Type: typ, +func (s *SourceOracleUpdateUnencrypted) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err } + return nil +} + +func (o *SourceOracleUpdateUnencrypted) GetEncryptionMethod() SourceOracleUpdateEncryptionMethod { + return SourceOracleUpdateEncryptionMethodUnencrypted +} + +type SourceOracleUpdateEncryptionType string + +const ( + SourceOracleUpdateEncryptionTypeSourceOracleUpdateUnencrypted SourceOracleUpdateEncryptionType = "source-oracle-update_Unencrypted" + SourceOracleUpdateEncryptionTypeSourceOracleUpdateNativeNetworkEncryptionNNE SourceOracleUpdateEncryptionType = "source-oracle-update_Native Network Encryption (NNE)" + SourceOracleUpdateEncryptionTypeSourceOracleUpdateTLSEncryptedVerifyCertificate SourceOracleUpdateEncryptionType = "source-oracle-update_TLS Encrypted (verify certificate)" +) + +// SourceOracleUpdateEncryption - The encryption method with is used when communicating with the database. +type SourceOracleUpdateEncryption struct { + SourceOracleUpdateUnencrypted *SourceOracleUpdateUnencrypted + SourceOracleUpdateNativeNetworkEncryptionNNE *SourceOracleUpdateNativeNetworkEncryptionNNE + SourceOracleUpdateTLSEncryptedVerifyCertificate *SourceOracleUpdateTLSEncryptedVerifyCertificate + + Type SourceOracleUpdateEncryptionType } -func CreateEncryptionTLSEncryptedVerifyCertificate(tlsEncryptedVerifyCertificate TLSEncryptedVerifyCertificate) Encryption { - typ := EncryptionTypeTLSEncryptedVerifyCertificate +func CreateSourceOracleUpdateEncryptionSourceOracleUpdateUnencrypted(sourceOracleUpdateUnencrypted SourceOracleUpdateUnencrypted) SourceOracleUpdateEncryption { + typ := SourceOracleUpdateEncryptionTypeSourceOracleUpdateUnencrypted - return Encryption{ - TLSEncryptedVerifyCertificate: &tlsEncryptedVerifyCertificate, + return SourceOracleUpdateEncryption{ + SourceOracleUpdateUnencrypted: &sourceOracleUpdateUnencrypted, Type: typ, } } -func (u *Encryption) UnmarshalJSON(data []byte) error { +func CreateSourceOracleUpdateEncryptionSourceOracleUpdateNativeNetworkEncryptionNNE(sourceOracleUpdateNativeNetworkEncryptionNNE SourceOracleUpdateNativeNetworkEncryptionNNE) SourceOracleUpdateEncryption { + typ := SourceOracleUpdateEncryptionTypeSourceOracleUpdateNativeNetworkEncryptionNNE - var nativeNetworkEncryptionNNE NativeNetworkEncryptionNNE = NativeNetworkEncryptionNNE{} - if err := utils.UnmarshalJSON(data, &nativeNetworkEncryptionNNE, "", true, true); err == nil { - u.NativeNetworkEncryptionNNE = &nativeNetworkEncryptionNNE - u.Type = EncryptionTypeNativeNetworkEncryptionNNE + return SourceOracleUpdateEncryption{ + SourceOracleUpdateNativeNetworkEncryptionNNE: &sourceOracleUpdateNativeNetworkEncryptionNNE, + Type: typ, + } +} + +func CreateSourceOracleUpdateEncryptionSourceOracleUpdateTLSEncryptedVerifyCertificate(sourceOracleUpdateTLSEncryptedVerifyCertificate SourceOracleUpdateTLSEncryptedVerifyCertificate) SourceOracleUpdateEncryption { + typ := SourceOracleUpdateEncryptionTypeSourceOracleUpdateTLSEncryptedVerifyCertificate + + return SourceOracleUpdateEncryption{ + SourceOracleUpdateTLSEncryptedVerifyCertificate: &sourceOracleUpdateTLSEncryptedVerifyCertificate, + Type: typ, + } +} + +func (u *SourceOracleUpdateEncryption) UnmarshalJSON(data []byte) error { + + var sourceOracleUpdateUnencrypted SourceOracleUpdateUnencrypted = SourceOracleUpdateUnencrypted{} + if err := utils.UnmarshalJSON(data, &sourceOracleUpdateUnencrypted, "", true, true); err == nil { + u.SourceOracleUpdateUnencrypted = &sourceOracleUpdateUnencrypted + u.Type = SourceOracleUpdateEncryptionTypeSourceOracleUpdateUnencrypted return nil } - var tlsEncryptedVerifyCertificate TLSEncryptedVerifyCertificate = TLSEncryptedVerifyCertificate{} - if err := utils.UnmarshalJSON(data, &tlsEncryptedVerifyCertificate, "", true, true); err == nil { - u.TLSEncryptedVerifyCertificate = &tlsEncryptedVerifyCertificate - u.Type = EncryptionTypeTLSEncryptedVerifyCertificate + var sourceOracleUpdateNativeNetworkEncryptionNNE SourceOracleUpdateNativeNetworkEncryptionNNE = SourceOracleUpdateNativeNetworkEncryptionNNE{} + if err := utils.UnmarshalJSON(data, &sourceOracleUpdateNativeNetworkEncryptionNNE, "", true, true); err == nil { + u.SourceOracleUpdateNativeNetworkEncryptionNNE = &sourceOracleUpdateNativeNetworkEncryptionNNE + u.Type = SourceOracleUpdateEncryptionTypeSourceOracleUpdateNativeNetworkEncryptionNNE return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for Encryption", string(data)) + var sourceOracleUpdateTLSEncryptedVerifyCertificate SourceOracleUpdateTLSEncryptedVerifyCertificate = SourceOracleUpdateTLSEncryptedVerifyCertificate{} + if err := utils.UnmarshalJSON(data, &sourceOracleUpdateTLSEncryptedVerifyCertificate, "", true, true); err == nil { + u.SourceOracleUpdateTLSEncryptedVerifyCertificate = &sourceOracleUpdateTLSEncryptedVerifyCertificate + u.Type = SourceOracleUpdateEncryptionTypeSourceOracleUpdateTLSEncryptedVerifyCertificate + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceOracleUpdateEncryption", string(data)) } -func (u Encryption) MarshalJSON() ([]byte, error) { - if u.NativeNetworkEncryptionNNE != nil { - return utils.MarshalJSON(u.NativeNetworkEncryptionNNE, "", true) +func (u SourceOracleUpdateEncryption) MarshalJSON() ([]byte, error) { + if u.SourceOracleUpdateUnencrypted != nil { + return utils.MarshalJSON(u.SourceOracleUpdateUnencrypted, "", true) } - if u.TLSEncryptedVerifyCertificate != nil { - return utils.MarshalJSON(u.TLSEncryptedVerifyCertificate, "", true) + if u.SourceOracleUpdateNativeNetworkEncryptionNNE != nil { + return utils.MarshalJSON(u.SourceOracleUpdateNativeNetworkEncryptionNNE, "", true) } - return nil, errors.New("could not marshal union type Encryption: all fields are null") + if u.SourceOracleUpdateTLSEncryptedVerifyCertificate != nil { + return utils.MarshalJSON(u.SourceOracleUpdateTLSEncryptedVerifyCertificate, "", true) + } + + return nil, errors.New("could not marshal union type SourceOracleUpdateEncryption: all fields are null") } // SourceOracleUpdateSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication @@ -667,7 +732,7 @@ type SourceOracleUpdate struct { // Connect data that will be used for DB connection ConnectionData *ConnectBy `json:"connection_data,omitempty"` // The encryption method with is used when communicating with the database. - Encryption Encryption `json:"encryption"` + Encryption *SourceOracleUpdateEncryption `json:"encryption,omitempty"` // Hostname of the database. Host string `json:"host"` // Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). @@ -705,9 +770,9 @@ func (o *SourceOracleUpdate) GetConnectionData() *ConnectBy { return o.ConnectionData } -func (o *SourceOracleUpdate) GetEncryption() Encryption { +func (o *SourceOracleUpdate) GetEncryption() *SourceOracleUpdateEncryption { if o == nil { - return Encryption{} + return nil } return o.Encryption } diff --git a/internal/sdk/models/shared/sourcepicqer.go b/internal/sdk/models/shared/sourcepicqer.go new file mode 100644 index 000000000..bf51f1dc9 --- /dev/null +++ b/internal/sdk/models/shared/sourcepicqer.go @@ -0,0 +1,85 @@ +// 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 Picqer string + +const ( + PicqerPicqer Picqer = "picqer" +) + +func (e Picqer) ToPointer() *Picqer { + return &e +} +func (e *Picqer) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "picqer": + *e = Picqer(v) + return nil + default: + return fmt.Errorf("invalid value for Picqer: %v", v) + } +} + +type SourcePicqer struct { + // The organization name which is used to login to picqer + OrganizationName string `json:"organization_name"` + Password *string `json:"password,omitempty"` + sourceType Picqer `const:"picqer" json:"sourceType"` + StartDate time.Time `json:"start_date"` + Username string `json:"username"` +} + +func (s SourcePicqer) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourcePicqer) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourcePicqer) GetOrganizationName() string { + if o == nil { + return "" + } + return o.OrganizationName +} + +func (o *SourcePicqer) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourcePicqer) GetSourceType() Picqer { + return PicqerPicqer +} + +func (o *SourcePicqer) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourcePicqer) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourcepicqercreaterequest.go b/internal/sdk/models/shared/sourcepicqercreaterequest.go new file mode 100644 index 000000000..fc08f225f --- /dev/null +++ b/internal/sdk/models/shared/sourcepicqercreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePicqerCreateRequest struct { + Configuration SourcePicqer `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 *SourcePicqerCreateRequest) GetConfiguration() SourcePicqer { + if o == nil { + return SourcePicqer{} + } + return o.Configuration +} + +func (o *SourcePicqerCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourcePicqerCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourcePicqerCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourcePicqerCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcepicqerputrequest.go b/internal/sdk/models/shared/sourcepicqerputrequest.go new file mode 100644 index 000000000..494aa9f61 --- /dev/null +++ b/internal/sdk/models/shared/sourcepicqerputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePicqerPutRequest struct { + Configuration SourcePicqerUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourcePicqerPutRequest) GetConfiguration() SourcePicqerUpdate { + if o == nil { + return SourcePicqerUpdate{} + } + return o.Configuration +} + +func (o *SourcePicqerPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourcePicqerPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcepicqerupdate.go b/internal/sdk/models/shared/sourcepicqerupdate.go new file mode 100644 index 000000000..fd9b377b8 --- /dev/null +++ b/internal/sdk/models/shared/sourcepicqerupdate.go @@ -0,0 +1,55 @@ +// 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 SourcePicqerUpdate struct { + // The organization name which is used to login to picqer + OrganizationName string `json:"organization_name"` + Password *string `json:"password,omitempty"` + StartDate time.Time `json:"start_date"` + Username string `json:"username"` +} + +func (s SourcePicqerUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourcePicqerUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourcePicqerUpdate) GetOrganizationName() string { + if o == nil { + return "" + } + return o.OrganizationName +} + +func (o *SourcePicqerUpdate) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourcePicqerUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourcePicqerUpdate) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourcepiwik.go b/internal/sdk/models/shared/sourcepiwik.go new file mode 100644 index 000000000..c9c7976e9 --- /dev/null +++ b/internal/sdk/models/shared/sourcepiwik.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 Piwik string + +const ( + PiwikPiwik Piwik = "piwik" +) + +func (e Piwik) ToPointer() *Piwik { + return &e +} +func (e *Piwik) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "piwik": + *e = Piwik(v) + return nil + default: + return fmt.Errorf("invalid value for Piwik: %v", v) + } +} + +type SourcePiwik struct { + ClientID string `json:"client_id"` + ClientSecret string `json:"client_secret"` + // The organization id appearing at URL of your piwik website + OrganizationID string `json:"organization_id"` + sourceType Piwik `const:"piwik" json:"sourceType"` +} + +func (s SourcePiwik) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourcePiwik) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourcePiwik) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *SourcePiwik) GetClientSecret() string { + if o == nil { + return "" + } + return o.ClientSecret +} + +func (o *SourcePiwik) GetOrganizationID() string { + if o == nil { + return "" + } + return o.OrganizationID +} + +func (o *SourcePiwik) GetSourceType() Piwik { + return PiwikPiwik +} diff --git a/internal/sdk/models/shared/sourcepiwikcreaterequest.go b/internal/sdk/models/shared/sourcepiwikcreaterequest.go new file mode 100644 index 000000000..98c325bae --- /dev/null +++ b/internal/sdk/models/shared/sourcepiwikcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePiwikCreateRequest struct { + Configuration SourcePiwik `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 *SourcePiwikCreateRequest) GetConfiguration() SourcePiwik { + if o == nil { + return SourcePiwik{} + } + return o.Configuration +} + +func (o *SourcePiwikCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourcePiwikCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourcePiwikCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourcePiwikCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcepiwikputrequest.go b/internal/sdk/models/shared/sourcepiwikputrequest.go new file mode 100644 index 000000000..21702f120 --- /dev/null +++ b/internal/sdk/models/shared/sourcepiwikputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePiwikPutRequest struct { + Configuration SourcePiwikUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourcePiwikPutRequest) GetConfiguration() SourcePiwikUpdate { + if o == nil { + return SourcePiwikUpdate{} + } + return o.Configuration +} + +func (o *SourcePiwikPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourcePiwikPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcepiwikupdate.go b/internal/sdk/models/shared/sourcepiwikupdate.go new file mode 100644 index 000000000..cf6a1b08d --- /dev/null +++ b/internal/sdk/models/shared/sourcepiwikupdate.go @@ -0,0 +1,31 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePiwikUpdate struct { + ClientID string `json:"client_id"` + ClientSecret string `json:"client_secret"` + // The organization id appearing at URL of your piwik website + OrganizationID string `json:"organization_id"` +} + +func (o *SourcePiwikUpdate) GetClientID() string { + if o == nil { + return "" + } + return o.ClientID +} + +func (o *SourcePiwikUpdate) GetClientSecret() string { + if o == nil { + return "" + } + return o.ClientSecret +} + +func (o *SourcePiwikUpdate) GetOrganizationID() string { + if o == nil { + return "" + } + return o.OrganizationID +} diff --git a/internal/sdk/models/shared/sourceproductboard.go b/internal/sdk/models/shared/sourceproductboard.go new file mode 100644 index 000000000..f12b57d34 --- /dev/null +++ b/internal/sdk/models/shared/sourceproductboard.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 Productboard string + +const ( + ProductboardProductboard Productboard = "productboard" +) + +func (e Productboard) ToPointer() *Productboard { + return &e +} +func (e *Productboard) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "productboard": + *e = Productboard(v) + return nil + default: + return fmt.Errorf("invalid value for Productboard: %v", v) + } +} + +type SourceProductboard struct { + // Your Productboard access token. See https://developer.productboard.com/reference/authentication for steps to generate one. + AccessToken string `json:"access_token"` + sourceType Productboard `const:"productboard" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceProductboard) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceProductboard) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceProductboard) GetAccessToken() string { + if o == nil { + return "" + } + return o.AccessToken +} + +func (o *SourceProductboard) GetSourceType() Productboard { + return ProductboardProductboard +} + +func (o *SourceProductboard) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceproductboardcreaterequest.go b/internal/sdk/models/shared/sourceproductboardcreaterequest.go new file mode 100644 index 000000000..3fdaa8050 --- /dev/null +++ b/internal/sdk/models/shared/sourceproductboardcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceProductboardCreateRequest struct { + Configuration SourceProductboard `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 *SourceProductboardCreateRequest) GetConfiguration() SourceProductboard { + if o == nil { + return SourceProductboard{} + } + return o.Configuration +} + +func (o *SourceProductboardCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceProductboardCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceProductboardCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceProductboardCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/destinationdevnullputrequest.go b/internal/sdk/models/shared/sourceproductboardputrequest.go similarity index 50% rename from internal/sdk/models/shared/destinationdevnullputrequest.go rename to internal/sdk/models/shared/sourceproductboardputrequest.go index 3b4f8cb6e..92cae2b45 100644 --- a/internal/sdk/models/shared/destinationdevnullputrequest.go +++ b/internal/sdk/models/shared/sourceproductboardputrequest.go @@ -2,27 +2,27 @@ package shared -type DestinationDevNullPutRequest struct { - Configuration DestinationDevNullUpdate `json:"configuration"` +type SourceProductboardPutRequest struct { + Configuration SourceProductboardUpdate `json:"configuration"` Name string `json:"name"` WorkspaceID string `json:"workspaceId"` } -func (o *DestinationDevNullPutRequest) GetConfiguration() DestinationDevNullUpdate { +func (o *SourceProductboardPutRequest) GetConfiguration() SourceProductboardUpdate { if o == nil { - return DestinationDevNullUpdate{} + return SourceProductboardUpdate{} } return o.Configuration } -func (o *DestinationDevNullPutRequest) GetName() string { +func (o *SourceProductboardPutRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *DestinationDevNullPutRequest) GetWorkspaceID() string { +func (o *SourceProductboardPutRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourceproductboardupdate.go b/internal/sdk/models/shared/sourceproductboardupdate.go new file mode 100644 index 000000000..143327820 --- /dev/null +++ b/internal/sdk/models/shared/sourceproductboardupdate.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 SourceProductboardUpdate struct { + // Your Productboard access token. See https://developer.productboard.com/reference/authentication for steps to generate one. + AccessToken string `json:"access_token"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceProductboardUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceProductboardUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceProductboardUpdate) GetAccessToken() string { + if o == nil { + return "" + } + return o.AccessToken +} + +func (o *SourceProductboardUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceproductive.go b/internal/sdk/models/shared/sourceproductive.go new file mode 100644 index 000000000..10fcff1ff --- /dev/null +++ b/internal/sdk/models/shared/sourceproductive.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" +) + +type Productive string + +const ( + ProductiveProductive Productive = "productive" +) + +func (e Productive) ToPointer() *Productive { + return &e +} +func (e *Productive) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "productive": + *e = Productive(v) + return nil + default: + return fmt.Errorf("invalid value for Productive: %v", v) + } +} + +type SourceProductive struct { + APIKey string `json:"api_key"` + // The organization ID which could be seen from `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page + OrganizationID string `json:"organization_id"` + sourceType Productive `const:"productive" json:"sourceType"` +} + +func (s SourceProductive) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceProductive) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceProductive) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceProductive) GetOrganizationID() string { + if o == nil { + return "" + } + return o.OrganizationID +} + +func (o *SourceProductive) GetSourceType() Productive { + return ProductiveProductive +} diff --git a/internal/sdk/models/shared/sourceproductivecreaterequest.go b/internal/sdk/models/shared/sourceproductivecreaterequest.go new file mode 100644 index 000000000..6355a5ed7 --- /dev/null +++ b/internal/sdk/models/shared/sourceproductivecreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceProductiveCreateRequest struct { + Configuration SourceProductive `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 *SourceProductiveCreateRequest) GetConfiguration() SourceProductive { + if o == nil { + return SourceProductive{} + } + return o.Configuration +} + +func (o *SourceProductiveCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceProductiveCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceProductiveCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceProductiveCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceproductiveputrequest.go b/internal/sdk/models/shared/sourceproductiveputrequest.go new file mode 100644 index 000000000..790a92d12 --- /dev/null +++ b/internal/sdk/models/shared/sourceproductiveputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceProductivePutRequest struct { + Configuration SourceProductiveUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceProductivePutRequest) GetConfiguration() SourceProductiveUpdate { + if o == nil { + return SourceProductiveUpdate{} + } + return o.Configuration +} + +func (o *SourceProductivePutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceProductivePutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceproductiveupdate.go b/internal/sdk/models/shared/sourceproductiveupdate.go new file mode 100644 index 000000000..53586f6c3 --- /dev/null +++ b/internal/sdk/models/shared/sourceproductiveupdate.go @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceProductiveUpdate struct { + APIKey string `json:"api_key"` + // The organization ID which could be seen from `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page + OrganizationID string `json:"organization_id"` +} + +func (o *SourceProductiveUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceProductiveUpdate) GetOrganizationID() string { + if o == nil { + return "" + } + return o.OrganizationID +} diff --git a/internal/sdk/models/shared/sources3.go b/internal/sdk/models/shared/sources3.go index 43dbae014..ec08ac1df 100644 --- a/internal/sdk/models/shared/sources3.go +++ b/internal/sdk/models/shared/sources3.go @@ -10,547 +10,6 @@ import ( "time" ) -type SourceS3SchemasFormatFileFormatFiletype string - -const ( - SourceS3SchemasFormatFileFormatFiletypeJsonl SourceS3SchemasFormatFileFormatFiletype = "jsonl" -) - -func (e SourceS3SchemasFormatFileFormatFiletype) ToPointer() *SourceS3SchemasFormatFileFormatFiletype { - return &e -} -func (e *SourceS3SchemasFormatFileFormatFiletype) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "jsonl": - *e = SourceS3SchemasFormatFileFormatFiletype(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3SchemasFormatFileFormatFiletype: %v", v) - } -} - -// SourceS3UnexpectedFieldBehavior - How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details -type SourceS3UnexpectedFieldBehavior string - -const ( - SourceS3UnexpectedFieldBehaviorIgnore SourceS3UnexpectedFieldBehavior = "ignore" - SourceS3UnexpectedFieldBehaviorInfer SourceS3UnexpectedFieldBehavior = "infer" - SourceS3UnexpectedFieldBehaviorError SourceS3UnexpectedFieldBehavior = "error" -) - -func (e SourceS3UnexpectedFieldBehavior) ToPointer() *SourceS3UnexpectedFieldBehavior { - return &e -} -func (e *SourceS3UnexpectedFieldBehavior) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ignore": - fallthrough - case "infer": - fallthrough - case "error": - *e = SourceS3UnexpectedFieldBehavior(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3UnexpectedFieldBehavior: %v", v) - } -} - -// SourceS3Jsonl - This connector uses PyArrow for JSON Lines (jsonl) file parsing. -type SourceS3Jsonl struct { - // The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors. - BlockSize *int64 `default:"0" json:"block_size"` - filetype *SourceS3SchemasFormatFileFormatFiletype `const:"jsonl" json:"filetype"` - // Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False. - NewlinesInValues *bool `default:"false" json:"newlines_in_values"` - // How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details - UnexpectedFieldBehavior *SourceS3UnexpectedFieldBehavior `default:"infer" json:"unexpected_field_behavior"` -} - -func (s SourceS3Jsonl) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceS3Jsonl) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *SourceS3Jsonl) GetBlockSize() *int64 { - if o == nil { - return nil - } - return o.BlockSize -} - -func (o *SourceS3Jsonl) GetFiletype() *SourceS3SchemasFormatFileFormatFiletype { - return SourceS3SchemasFormatFileFormatFiletypeJsonl.ToPointer() -} - -func (o *SourceS3Jsonl) GetNewlinesInValues() *bool { - if o == nil { - return nil - } - return o.NewlinesInValues -} - -func (o *SourceS3Jsonl) GetUnexpectedFieldBehavior() *SourceS3UnexpectedFieldBehavior { - if o == nil { - return nil - } - return o.UnexpectedFieldBehavior -} - -type SourceS3SchemasFormatFiletype string - -const ( - SourceS3SchemasFormatFiletypeAvro SourceS3SchemasFormatFiletype = "avro" -) - -func (e SourceS3SchemasFormatFiletype) ToPointer() *SourceS3SchemasFormatFiletype { - return &e -} -func (e *SourceS3SchemasFormatFiletype) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "avro": - *e = SourceS3SchemasFormatFiletype(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3SchemasFormatFiletype: %v", v) - } -} - -// SourceS3Avro - This connector utilises fastavro for Avro parsing. -type SourceS3Avro struct { - filetype *SourceS3SchemasFormatFiletype `const:"avro" json:"filetype"` -} - -func (s SourceS3Avro) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceS3Avro) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *SourceS3Avro) GetFiletype() *SourceS3SchemasFormatFiletype { - return SourceS3SchemasFormatFiletypeAvro.ToPointer() -} - -type SourceS3SchemasFiletype string - -const ( - SourceS3SchemasFiletypeParquet SourceS3SchemasFiletype = "parquet" -) - -func (e SourceS3SchemasFiletype) ToPointer() *SourceS3SchemasFiletype { - return &e -} -func (e *SourceS3SchemasFiletype) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "parquet": - *e = SourceS3SchemasFiletype(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3SchemasFiletype: %v", v) - } -} - -// SourceS3Parquet - This connector utilises PyArrow (Apache Arrow) for Parquet parsing. -type SourceS3Parquet struct { - // Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide. - BatchSize *int64 `default:"65536" json:"batch_size"` - // Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide. - BufferSize *int64 `default:"2" json:"buffer_size"` - // If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns. - Columns []string `json:"columns,omitempty"` - filetype *SourceS3SchemasFiletype `const:"parquet" json:"filetype"` -} - -func (s SourceS3Parquet) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceS3Parquet) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *SourceS3Parquet) GetBatchSize() *int64 { - if o == nil { - return nil - } - return o.BatchSize -} - -func (o *SourceS3Parquet) GetBufferSize() *int64 { - if o == nil { - return nil - } - return o.BufferSize -} - -func (o *SourceS3Parquet) GetColumns() []string { - if o == nil { - return nil - } - return o.Columns -} - -func (o *SourceS3Parquet) GetFiletype() *SourceS3SchemasFiletype { - return SourceS3SchemasFiletypeParquet.ToPointer() -} - -type SourceS3Filetype string - -const ( - SourceS3FiletypeCsv SourceS3Filetype = "csv" -) - -func (e SourceS3Filetype) ToPointer() *SourceS3Filetype { - return &e -} -func (e *SourceS3Filetype) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "csv": - *e = SourceS3Filetype(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3Filetype: %v", v) - } -} - -// SourceS3CSV - This connector utilises PyArrow (Apache Arrow) for CSV parsing. -type SourceS3CSV struct { - // Optionally add a valid JSON string here to provide additional options to the csv reader. Mappings must correspond to options detailed here. 'column_types' is used internally to handle schema so overriding that would likely cause problems. - AdditionalReaderOptions *string `json:"additional_reader_options,omitempty"` - // Optionally add a valid JSON string here to provide additional Pyarrow ReadOptions. Specify 'column_names' here if your CSV doesn't have header, or if you want to use custom column names. 'block_size' and 'encoding' are already used above, specify them again here will override the values above. - AdvancedOptions *string `json:"advanced_options,omitempty"` - // The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors. - BlockSize *int64 `default:"10000" json:"block_size"` - // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. - Delimiter *string `default:"," json:"delimiter"` - // Whether two quotes in a quoted CSV value denote a single quote in the data. - DoubleQuote *bool `default:"true" json:"double_quote"` - // The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options. - Encoding *string `default:"utf8" json:"encoding"` - // The character used for escaping special characters. To disallow escaping, leave this field blank. - EscapeChar *string `json:"escape_char,omitempty"` - filetype *SourceS3Filetype `const:"csv" json:"filetype"` - // Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings - InferDatatypes *bool `default:"true" json:"infer_datatypes"` - // Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False. - NewlinesInValues *bool `default:"false" json:"newlines_in_values"` - // The character used for quoting CSV values. To disallow quoting, make this field blank. - QuoteChar *string `default:"\"" json:"quote_char"` -} - -func (s SourceS3CSV) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceS3CSV) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *SourceS3CSV) GetAdditionalReaderOptions() *string { - if o == nil { - return nil - } - return o.AdditionalReaderOptions -} - -func (o *SourceS3CSV) GetAdvancedOptions() *string { - if o == nil { - return nil - } - return o.AdvancedOptions -} - -func (o *SourceS3CSV) GetBlockSize() *int64 { - if o == nil { - return nil - } - return o.BlockSize -} - -func (o *SourceS3CSV) GetDelimiter() *string { - if o == nil { - return nil - } - return o.Delimiter -} - -func (o *SourceS3CSV) GetDoubleQuote() *bool { - if o == nil { - return nil - } - return o.DoubleQuote -} - -func (o *SourceS3CSV) GetEncoding() *string { - if o == nil { - return nil - } - return o.Encoding -} - -func (o *SourceS3CSV) GetEscapeChar() *string { - if o == nil { - return nil - } - return o.EscapeChar -} - -func (o *SourceS3CSV) GetFiletype() *SourceS3Filetype { - return SourceS3FiletypeCsv.ToPointer() -} - -func (o *SourceS3CSV) GetInferDatatypes() *bool { - if o == nil { - return nil - } - return o.InferDatatypes -} - -func (o *SourceS3CSV) GetNewlinesInValues() *bool { - if o == nil { - return nil - } - return o.NewlinesInValues -} - -func (o *SourceS3CSV) GetQuoteChar() *string { - if o == nil { - return nil - } - return o.QuoteChar -} - -type SourceS3FileFormatType string - -const ( - SourceS3FileFormatTypeSourceS3CSV SourceS3FileFormatType = "source-s3_CSV" - SourceS3FileFormatTypeSourceS3Parquet SourceS3FileFormatType = "source-s3_Parquet" - SourceS3FileFormatTypeSourceS3Avro SourceS3FileFormatType = "source-s3_Avro" - SourceS3FileFormatTypeSourceS3Jsonl SourceS3FileFormatType = "source-s3_Jsonl" -) - -// SourceS3FileFormat - Deprecated and will be removed soon. Please do not use this field anymore and use streams.format instead. The format of the files you'd like to replicate -type SourceS3FileFormat struct { - SourceS3CSV *SourceS3CSV - SourceS3Parquet *SourceS3Parquet - SourceS3Avro *SourceS3Avro - SourceS3Jsonl *SourceS3Jsonl - - Type SourceS3FileFormatType -} - -func CreateSourceS3FileFormatSourceS3CSV(sourceS3CSV SourceS3CSV) SourceS3FileFormat { - typ := SourceS3FileFormatTypeSourceS3CSV - - return SourceS3FileFormat{ - SourceS3CSV: &sourceS3CSV, - Type: typ, - } -} - -func CreateSourceS3FileFormatSourceS3Parquet(sourceS3Parquet SourceS3Parquet) SourceS3FileFormat { - typ := SourceS3FileFormatTypeSourceS3Parquet - - return SourceS3FileFormat{ - SourceS3Parquet: &sourceS3Parquet, - Type: typ, - } -} - -func CreateSourceS3FileFormatSourceS3Avro(sourceS3Avro SourceS3Avro) SourceS3FileFormat { - typ := SourceS3FileFormatTypeSourceS3Avro - - return SourceS3FileFormat{ - SourceS3Avro: &sourceS3Avro, - Type: typ, - } -} - -func CreateSourceS3FileFormatSourceS3Jsonl(sourceS3Jsonl SourceS3Jsonl) SourceS3FileFormat { - typ := SourceS3FileFormatTypeSourceS3Jsonl - - return SourceS3FileFormat{ - SourceS3Jsonl: &sourceS3Jsonl, - Type: typ, - } -} - -func (u *SourceS3FileFormat) UnmarshalJSON(data []byte) error { - - var sourceS3Avro SourceS3Avro = SourceS3Avro{} - if err := utils.UnmarshalJSON(data, &sourceS3Avro, "", true, true); err == nil { - u.SourceS3Avro = &sourceS3Avro - u.Type = SourceS3FileFormatTypeSourceS3Avro - return nil - } - - var sourceS3Parquet SourceS3Parquet = SourceS3Parquet{} - if err := utils.UnmarshalJSON(data, &sourceS3Parquet, "", true, true); err == nil { - u.SourceS3Parquet = &sourceS3Parquet - u.Type = SourceS3FileFormatTypeSourceS3Parquet - return nil - } - - var sourceS3Jsonl SourceS3Jsonl = SourceS3Jsonl{} - if err := utils.UnmarshalJSON(data, &sourceS3Jsonl, "", true, true); err == nil { - u.SourceS3Jsonl = &sourceS3Jsonl - u.Type = SourceS3FileFormatTypeSourceS3Jsonl - return nil - } - - var sourceS3CSV SourceS3CSV = SourceS3CSV{} - if err := utils.UnmarshalJSON(data, &sourceS3CSV, "", true, true); err == nil { - u.SourceS3CSV = &sourceS3CSV - u.Type = SourceS3FileFormatTypeSourceS3CSV - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceS3FileFormat", string(data)) -} - -func (u SourceS3FileFormat) MarshalJSON() ([]byte, error) { - if u.SourceS3CSV != nil { - return utils.MarshalJSON(u.SourceS3CSV, "", true) - } - - if u.SourceS3Parquet != nil { - return utils.MarshalJSON(u.SourceS3Parquet, "", true) - } - - if u.SourceS3Avro != nil { - return utils.MarshalJSON(u.SourceS3Avro, "", true) - } - - if u.SourceS3Jsonl != nil { - return utils.MarshalJSON(u.SourceS3Jsonl, "", true) - } - - return nil, errors.New("could not marshal union type SourceS3FileFormat: all fields are null") -} - -// SourceS3S3AmazonWebServices - Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services -type SourceS3S3AmazonWebServices struct { - // In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. - AwsAccessKeyID *string `json:"aws_access_key_id,omitempty"` - // In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. - AwsSecretAccessKey *string `json:"aws_secret_access_key,omitempty"` - // Name of the S3 bucket where the file(s) exist. - Bucket *string `json:"bucket,omitempty"` - // Endpoint to an S3 compatible service. Leave empty to use AWS. - Endpoint *string `default:"" json:"endpoint"` - // By providing a path-like prefix (e.g. myFolder/thisTable/) under which all the relevant files sit, we can optimize finding these in S3. This is optional but recommended if your bucket contains many folders/files which you don't need to replicate. - PathPrefix *string `default:"" json:"path_prefix"` - // AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. - RegionName *string `json:"region_name,omitempty"` - // Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. - RoleArn *string `json:"role_arn,omitempty"` - // UTC date and time in the format 2017-01-25T00:00:00Z. Any file modified before this date will not be replicated. - StartDate *time.Time `json:"start_date,omitempty"` -} - -func (s SourceS3S3AmazonWebServices) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceS3S3AmazonWebServices) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *SourceS3S3AmazonWebServices) GetAwsAccessKeyID() *string { - if o == nil { - return nil - } - return o.AwsAccessKeyID -} - -func (o *SourceS3S3AmazonWebServices) GetAwsSecretAccessKey() *string { - if o == nil { - return nil - } - return o.AwsSecretAccessKey -} - -func (o *SourceS3S3AmazonWebServices) GetBucket() *string { - if o == nil { - return nil - } - return o.Bucket -} - -func (o *SourceS3S3AmazonWebServices) GetEndpoint() *string { - if o == nil { - return nil - } - return o.Endpoint -} - -func (o *SourceS3S3AmazonWebServices) GetPathPrefix() *string { - if o == nil { - return nil - } - return o.PathPrefix -} - -func (o *SourceS3S3AmazonWebServices) GetRegionName() *string { - if o == nil { - return nil - } - return o.RegionName -} - -func (o *SourceS3S3AmazonWebServices) GetRoleArn() *string { - if o == nil { - return nil - } - return o.RoleArn -} - -func (o *SourceS3S3AmazonWebServices) GetStartDate() *time.Time { - if o == nil { - return nil - } - return o.StartDate -} - type SourceS3S3 string const ( @@ -574,26 +33,26 @@ func (e *SourceS3S3) UnmarshalJSON(data []byte) error { } } -type SourceS3SchemasStreamsFormatFormat5Filetype string +type SourceS3SchemasStreamsFormatFormatFiletype string const ( - SourceS3SchemasStreamsFormatFormat5FiletypeUnstructured SourceS3SchemasStreamsFormatFormat5Filetype = "unstructured" + SourceS3SchemasStreamsFormatFormatFiletypeUnstructured SourceS3SchemasStreamsFormatFormatFiletype = "unstructured" ) -func (e SourceS3SchemasStreamsFormatFormat5Filetype) ToPointer() *SourceS3SchemasStreamsFormatFormat5Filetype { +func (e SourceS3SchemasStreamsFormatFormatFiletype) ToPointer() *SourceS3SchemasStreamsFormatFormatFiletype { return &e } -func (e *SourceS3SchemasStreamsFormatFormat5Filetype) UnmarshalJSON(data []byte) error { +func (e *SourceS3SchemasStreamsFormatFormatFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "unstructured": - *e = SourceS3SchemasStreamsFormatFormat5Filetype(v) + *e = SourceS3SchemasStreamsFormatFormatFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3SchemasStreamsFormatFormat5Filetype: %v", v) + return fmt.Errorf("invalid value for SourceS3SchemasStreamsFormatFormatFiletype: %v", v) } } @@ -717,7 +176,7 @@ func (e *SourceS3ParsingStrategy) UnmarshalJSON(data []byte) error { // SourceS3UnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. type SourceS3UnstructuredDocumentFormat struct { - filetype *SourceS3SchemasStreamsFormatFormat5Filetype `const:"unstructured" json:"filetype"` + filetype *SourceS3SchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceS3Processing `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. @@ -737,8 +196,8 @@ func (s *SourceS3UnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { return nil } -func (o *SourceS3UnstructuredDocumentFormat) GetFiletype() *SourceS3SchemasStreamsFormatFormat5Filetype { - return SourceS3SchemasStreamsFormatFormat5FiletypeUnstructured.ToPointer() +func (o *SourceS3UnstructuredDocumentFormat) GetFiletype() *SourceS3SchemasStreamsFormatFormatFiletype { + return SourceS3SchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } func (o *SourceS3UnstructuredDocumentFormat) GetProcessing() *SourceS3Processing { @@ -762,33 +221,33 @@ func (o *SourceS3UnstructuredDocumentFormat) GetStrategy() *SourceS3ParsingStrat return o.Strategy } -type SourceS3SchemasStreamsFormatFormat4Filetype string +type SourceS3SchemasStreamsFormatFiletype string const ( - SourceS3SchemasStreamsFormatFormat4FiletypeParquet SourceS3SchemasStreamsFormatFormat4Filetype = "parquet" + SourceS3SchemasStreamsFormatFiletypeParquet SourceS3SchemasStreamsFormatFiletype = "parquet" ) -func (e SourceS3SchemasStreamsFormatFormat4Filetype) ToPointer() *SourceS3SchemasStreamsFormatFormat4Filetype { +func (e SourceS3SchemasStreamsFormatFiletype) ToPointer() *SourceS3SchemasStreamsFormatFiletype { return &e } -func (e *SourceS3SchemasStreamsFormatFormat4Filetype) UnmarshalJSON(data []byte) error { +func (e *SourceS3SchemasStreamsFormatFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "parquet": - *e = SourceS3SchemasStreamsFormatFormat4Filetype(v) + *e = SourceS3SchemasStreamsFormatFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3SchemasStreamsFormatFormat4Filetype: %v", v) + return fmt.Errorf("invalid value for SourceS3SchemasStreamsFormatFiletype: %v", v) } } type SourceS3ParquetFormat 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 *SourceS3SchemasStreamsFormatFormat4Filetype `const:"parquet" json:"filetype"` + DecimalAsFloat *bool `default:"false" json:"decimal_as_float"` + filetype *SourceS3SchemasStreamsFormatFiletype `const:"parquet" json:"filetype"` } func (s SourceS3ParquetFormat) MarshalJSON() ([]byte, error) { @@ -809,35 +268,35 @@ func (o *SourceS3ParquetFormat) GetDecimalAsFloat() *bool { return o.DecimalAsFloat } -func (o *SourceS3ParquetFormat) GetFiletype() *SourceS3SchemasStreamsFormatFormat4Filetype { - return SourceS3SchemasStreamsFormatFormat4FiletypeParquet.ToPointer() +func (o *SourceS3ParquetFormat) GetFiletype() *SourceS3SchemasStreamsFormatFiletype { + return SourceS3SchemasStreamsFormatFiletypeParquet.ToPointer() } -type SourceS3SchemasStreamsFormatFormatFiletype string +type SourceS3SchemasStreamsFiletype string const ( - SourceS3SchemasStreamsFormatFormatFiletypeJsonl SourceS3SchemasStreamsFormatFormatFiletype = "jsonl" + SourceS3SchemasStreamsFiletypeJsonl SourceS3SchemasStreamsFiletype = "jsonl" ) -func (e SourceS3SchemasStreamsFormatFormatFiletype) ToPointer() *SourceS3SchemasStreamsFormatFormatFiletype { +func (e SourceS3SchemasStreamsFiletype) ToPointer() *SourceS3SchemasStreamsFiletype { return &e } -func (e *SourceS3SchemasStreamsFormatFormatFiletype) UnmarshalJSON(data []byte) error { +func (e *SourceS3SchemasStreamsFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "jsonl": - *e = SourceS3SchemasStreamsFormatFormatFiletype(v) + *e = SourceS3SchemasStreamsFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3SchemasStreamsFormatFormatFiletype: %v", v) + return fmt.Errorf("invalid value for SourceS3SchemasStreamsFiletype: %v", v) } } type SourceS3JsonlFormat struct { - filetype *SourceS3SchemasStreamsFormatFormatFiletype `const:"jsonl" json:"filetype"` + filetype *SourceS3SchemasStreamsFiletype `const:"jsonl" json:"filetype"` } func (s SourceS3JsonlFormat) MarshalJSON() ([]byte, error) { @@ -851,30 +310,30 @@ func (s *SourceS3JsonlFormat) UnmarshalJSON(data []byte) error { return nil } -func (o *SourceS3JsonlFormat) GetFiletype() *SourceS3SchemasStreamsFormatFormatFiletype { - return SourceS3SchemasStreamsFormatFormatFiletypeJsonl.ToPointer() +func (o *SourceS3JsonlFormat) GetFiletype() *SourceS3SchemasStreamsFiletype { + return SourceS3SchemasStreamsFiletypeJsonl.ToPointer() } -type SourceS3SchemasStreamsFormatFiletype string +type SourceS3SchemasFiletype string const ( - SourceS3SchemasStreamsFormatFiletypeCsv SourceS3SchemasStreamsFormatFiletype = "csv" + SourceS3SchemasFiletypeCsv SourceS3SchemasFiletype = "csv" ) -func (e SourceS3SchemasStreamsFormatFiletype) ToPointer() *SourceS3SchemasStreamsFormatFiletype { +func (e SourceS3SchemasFiletype) ToPointer() *SourceS3SchemasFiletype { return &e } -func (e *SourceS3SchemasStreamsFormatFiletype) UnmarshalJSON(data []byte) error { +func (e *SourceS3SchemasFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "csv": - *e = SourceS3SchemasStreamsFormatFiletype(v) + *e = SourceS3SchemasFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3SchemasStreamsFormatFiletype: %v", v) + return fmt.Errorf("invalid value for SourceS3SchemasFiletype: %v", v) } } @@ -1099,33 +558,6 @@ func (u SourceS3CSVHeaderDefinition) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type SourceS3CSVHeaderDefinition: all fields are null") } -// SourceS3InferenceType - How to infer the types of the columns. If none, inference default to strings. -type SourceS3InferenceType string - -const ( - SourceS3InferenceTypeNone SourceS3InferenceType = "None" - SourceS3InferenceTypePrimitiveTypesOnly SourceS3InferenceType = "Primitive Types Only" -) - -func (e SourceS3InferenceType) ToPointer() *SourceS3InferenceType { - return &e -} -func (e *SourceS3InferenceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "None": - fallthrough - case "Primitive Types Only": - *e = SourceS3InferenceType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3InferenceType: %v", v) - } -} - type SourceS3CSVFormat struct { // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Delimiter *string `default:"," json:"delimiter"` @@ -1136,14 +568,12 @@ type SourceS3CSVFormat 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 *SourceS3SchemasStreamsFormatFiletype `const:"csv" json:"filetype"` + FalseValues []string `json:"false_values,omitempty"` + filetype *SourceS3SchemasFiletype `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 *SourceS3CSVHeaderDefinition `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. IgnoreErrorsOnFieldsMismatch *bool `default:"false" json:"ignore_errors_on_fields_mismatch"` - // How to infer the types of the columns. If none, inference default to strings. - InferenceType *SourceS3InferenceType `default:"None" json:"inference_type"` // 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. NullValues []string `json:"null_values,omitempty"` // The character used for quoting CSV values. To disallow quoting, make this field blank. @@ -1204,8 +634,8 @@ func (o *SourceS3CSVFormat) GetFalseValues() []string { return o.FalseValues } -func (o *SourceS3CSVFormat) GetFiletype() *SourceS3SchemasStreamsFormatFiletype { - return SourceS3SchemasStreamsFormatFiletypeCsv.ToPointer() +func (o *SourceS3CSVFormat) GetFiletype() *SourceS3SchemasFiletype { + return SourceS3SchemasFiletypeCsv.ToPointer() } func (o *SourceS3CSVFormat) GetHeaderDefinition() *SourceS3CSVHeaderDefinition { @@ -1222,13 +652,6 @@ func (o *SourceS3CSVFormat) GetIgnoreErrorsOnFieldsMismatch() *bool { return o.IgnoreErrorsOnFieldsMismatch } -func (o *SourceS3CSVFormat) GetInferenceType() *SourceS3InferenceType { - if o == nil { - return nil - } - return o.InferenceType -} - func (o *SourceS3CSVFormat) GetNullValues() []string { if o == nil { return nil @@ -1271,33 +694,33 @@ func (o *SourceS3CSVFormat) GetTrueValues() []string { return o.TrueValues } -type SourceS3SchemasStreamsFiletype string +type SourceS3Filetype string const ( - SourceS3SchemasStreamsFiletypeAvro SourceS3SchemasStreamsFiletype = "avro" + SourceS3FiletypeAvro SourceS3Filetype = "avro" ) -func (e SourceS3SchemasStreamsFiletype) ToPointer() *SourceS3SchemasStreamsFiletype { +func (e SourceS3Filetype) ToPointer() *SourceS3Filetype { return &e } -func (e *SourceS3SchemasStreamsFiletype) UnmarshalJSON(data []byte) error { +func (e *SourceS3Filetype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "avro": - *e = SourceS3SchemasStreamsFiletype(v) + *e = SourceS3Filetype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3SchemasStreamsFiletype: %v", v) + return fmt.Errorf("invalid value for SourceS3Filetype: %v", v) } } type SourceS3AvroFormat 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 *SourceS3SchemasStreamsFiletype `const:"avro" json:"filetype"` + DoubleAsString *bool `default:"false" json:"double_as_string"` + filetype *SourceS3Filetype `const:"avro" json:"filetype"` } func (s SourceS3AvroFormat) MarshalJSON() ([]byte, error) { @@ -1318,8 +741,8 @@ func (o *SourceS3AvroFormat) GetDoubleAsString() *bool { return o.DoubleAsString } -func (o *SourceS3AvroFormat) GetFiletype() *SourceS3SchemasStreamsFiletype { - return SourceS3SchemasStreamsFiletypeAvro.ToPointer() +func (o *SourceS3AvroFormat) GetFiletype() *SourceS3Filetype { + return SourceS3FiletypeAvro.ToPointer() } type SourceS3FormatType string @@ -1491,12 +914,8 @@ type SourceS3FileBasedStreamConfig 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 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. @@ -1544,13 +963,6 @@ func (o *SourceS3FileBasedStreamConfig) GetInputSchema() *string { return o.InputSchema } -func (o *SourceS3FileBasedStreamConfig) GetLegacyPrefix() *string { - if o == nil { - return nil - } - return o.LegacyPrefix -} - func (o *SourceS3FileBasedStreamConfig) GetName() string { if o == nil { return "" @@ -1558,13 +970,6 @@ func (o *SourceS3FileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceS3FileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceS3FileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { if o == nil { return nil @@ -1595,22 +1000,12 @@ type SourceS3 struct { AwsSecretAccessKey *string `json:"aws_secret_access_key,omitempty"` // Name of the S3 bucket where the file(s) exist. Bucket string `json:"bucket"` - // Deprecated and will be removed soon. Please do not use this field anymore and use streams.name instead. The name of the stream you would like this source to output. Can contain letters, numbers, or underscores. - Dataset *string `json:"dataset,omitempty"` - // Endpoint to an S3 compatible service. Leave empty to use AWS. The custom endpoint must be secure, but the 'https' prefix is not required. + // Endpoint to an S3 compatible service. Leave empty to use AWS. Endpoint *string `default:"" json:"endpoint"` - // Deprecated and will be removed soon. Please do not use this field anymore and use streams.format instead. The format of the files you'd like to replicate - Format *SourceS3FileFormat `json:"format,omitempty"` - // Deprecated and will be removed soon. Please do not use this field anymore and use streams.globs instead. A regular expression which tells the connector which files to replicate. All files which match this pattern will be replicated. Use | to separate multiple patterns. See this page to understand pattern syntax (GLOBSTAR and SPLIT flags are enabled). Use pattern ** to pick up all files. - PathPattern *string `json:"path_pattern,omitempty"` - // Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services - Provider *SourceS3S3AmazonWebServices `json:"provider,omitempty"` // AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. RegionName *string `json:"region_name,omitempty"` // Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. - RoleArn *string `json:"role_arn,omitempty"` - // Deprecated and will be removed soon. Please do not use this field anymore and use streams.input_schema instead. Optionally provide a schema to enforce, as a valid JSON string. Ensure this is a mapping of { "column" : "type" }, where types are valid JSON Schema datatypes. Leave as {} to auto-infer the schema. - Schema *string `default:"{}" json:"schema"` + RoleArn *string `json:"role_arn,omitempty"` sourceType SourceS3S3 `const:"s3" 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"` @@ -1650,13 +1045,6 @@ func (o *SourceS3) GetBucket() string { return o.Bucket } -func (o *SourceS3) GetDataset() *string { - if o == nil { - return nil - } - return o.Dataset -} - func (o *SourceS3) GetEndpoint() *string { if o == nil { return nil @@ -1664,27 +1052,6 @@ func (o *SourceS3) GetEndpoint() *string { return o.Endpoint } -func (o *SourceS3) GetFormat() *SourceS3FileFormat { - if o == nil { - return nil - } - return o.Format -} - -func (o *SourceS3) GetPathPattern() *string { - if o == nil { - return nil - } - return o.PathPattern -} - -func (o *SourceS3) GetProvider() *SourceS3S3AmazonWebServices { - if o == nil { - return nil - } - return o.Provider -} - func (o *SourceS3) GetRegionName() *string { if o == nil { return nil @@ -1699,13 +1066,6 @@ func (o *SourceS3) GetRoleArn() *string { return o.RoleArn } -func (o *SourceS3) GetSchema() *string { - if o == nil { - return nil - } - return o.Schema -} - func (o *SourceS3) GetSourceType() SourceS3S3 { return SourceS3S3S3 } diff --git a/internal/sdk/models/shared/sources3update.go b/internal/sdk/models/shared/sources3update.go index 604ce7ead..9dc89d73b 100644 --- a/internal/sdk/models/shared/sources3update.go +++ b/internal/sdk/models/shared/sources3update.go @@ -10,567 +10,26 @@ import ( "time" ) -type SourceS3UpdateSchemasFormatFiletype string - -const ( - SourceS3UpdateSchemasFormatFiletypeJsonl SourceS3UpdateSchemasFormatFiletype = "jsonl" -) - -func (e SourceS3UpdateSchemasFormatFiletype) ToPointer() *SourceS3UpdateSchemasFormatFiletype { - return &e -} -func (e *SourceS3UpdateSchemasFormatFiletype) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "jsonl": - *e = SourceS3UpdateSchemasFormatFiletype(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3UpdateSchemasFormatFiletype: %v", v) - } -} - -// UnexpectedFieldBehavior - How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details -type UnexpectedFieldBehavior string - -const ( - UnexpectedFieldBehaviorIgnore UnexpectedFieldBehavior = "ignore" - UnexpectedFieldBehaviorInfer UnexpectedFieldBehavior = "infer" - UnexpectedFieldBehaviorError UnexpectedFieldBehavior = "error" -) - -func (e UnexpectedFieldBehavior) ToPointer() *UnexpectedFieldBehavior { - return &e -} -func (e *UnexpectedFieldBehavior) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ignore": - fallthrough - case "infer": - fallthrough - case "error": - *e = UnexpectedFieldBehavior(v) - return nil - default: - return fmt.Errorf("invalid value for UnexpectedFieldBehavior: %v", v) - } -} - -// Jsonl - This connector uses PyArrow for JSON Lines (jsonl) file parsing. -type Jsonl struct { - // The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors. - BlockSize *int64 `default:"0" json:"block_size"` - filetype *SourceS3UpdateSchemasFormatFiletype `const:"jsonl" json:"filetype"` - // Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False. - NewlinesInValues *bool `default:"false" json:"newlines_in_values"` - // How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details - UnexpectedFieldBehavior *UnexpectedFieldBehavior `default:"infer" json:"unexpected_field_behavior"` -} - -func (j Jsonl) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(j, "", false) -} - -func (j *Jsonl) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &j, "", false, true); err != nil { - return err - } - return nil -} - -func (o *Jsonl) GetBlockSize() *int64 { - if o == nil { - return nil - } - return o.BlockSize -} - -func (o *Jsonl) GetFiletype() *SourceS3UpdateSchemasFormatFiletype { - return SourceS3UpdateSchemasFormatFiletypeJsonl.ToPointer() -} - -func (o *Jsonl) GetNewlinesInValues() *bool { - if o == nil { - return nil - } - return o.NewlinesInValues -} - -func (o *Jsonl) GetUnexpectedFieldBehavior() *UnexpectedFieldBehavior { - if o == nil { - return nil - } - return o.UnexpectedFieldBehavior -} - -type SourceS3UpdateSchemasFiletype string - -const ( - SourceS3UpdateSchemasFiletypeAvro SourceS3UpdateSchemasFiletype = "avro" -) - -func (e SourceS3UpdateSchemasFiletype) ToPointer() *SourceS3UpdateSchemasFiletype { - return &e -} -func (e *SourceS3UpdateSchemasFiletype) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "avro": - *e = SourceS3UpdateSchemasFiletype(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3UpdateSchemasFiletype: %v", v) - } -} - -// Avro - This connector utilises fastavro for Avro parsing. -type Avro struct { - filetype *SourceS3UpdateSchemasFiletype `const:"avro" json:"filetype"` -} - -func (a Avro) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *Avro) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, true); err != nil { - return err - } - return nil -} - -func (o *Avro) GetFiletype() *SourceS3UpdateSchemasFiletype { - return SourceS3UpdateSchemasFiletypeAvro.ToPointer() -} - -type SourceS3UpdateFiletype string - -const ( - SourceS3UpdateFiletypeParquet SourceS3UpdateFiletype = "parquet" -) - -func (e SourceS3UpdateFiletype) ToPointer() *SourceS3UpdateFiletype { - return &e -} -func (e *SourceS3UpdateFiletype) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "parquet": - *e = SourceS3UpdateFiletype(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3UpdateFiletype: %v", v) - } -} - -// Parquet - This connector utilises PyArrow (Apache Arrow) for Parquet parsing. -type Parquet struct { - // Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide. - BatchSize *int64 `default:"65536" json:"batch_size"` - // Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide. - BufferSize *int64 `default:"2" json:"buffer_size"` - // If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns. - Columns []string `json:"columns,omitempty"` - filetype *SourceS3UpdateFiletype `const:"parquet" json:"filetype"` -} - -func (p Parquet) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *Parquet) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, true); err != nil { - return err - } - return nil -} - -func (o *Parquet) GetBatchSize() *int64 { - if o == nil { - return nil - } - return o.BatchSize -} - -func (o *Parquet) GetBufferSize() *int64 { - if o == nil { - return nil - } - return o.BufferSize -} - -func (o *Parquet) GetColumns() []string { - if o == nil { - return nil - } - return o.Columns -} - -func (o *Parquet) GetFiletype() *SourceS3UpdateFiletype { - return SourceS3UpdateFiletypeParquet.ToPointer() -} - -type Filetype string - -const ( - FiletypeCsv Filetype = "csv" -) - -func (e Filetype) ToPointer() *Filetype { - return &e -} -func (e *Filetype) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "csv": - *e = Filetype(v) - return nil - default: - return fmt.Errorf("invalid value for Filetype: %v", v) - } -} - -// Csv - This connector utilises PyArrow (Apache Arrow) for CSV parsing. -type Csv struct { - // Optionally add a valid JSON string here to provide additional options to the csv reader. Mappings must correspond to options detailed here. 'column_types' is used internally to handle schema so overriding that would likely cause problems. - AdditionalReaderOptions *string `json:"additional_reader_options,omitempty"` - // Optionally add a valid JSON string here to provide additional Pyarrow ReadOptions. Specify 'column_names' here if your CSV doesn't have header, or if you want to use custom column names. 'block_size' and 'encoding' are already used above, specify them again here will override the values above. - AdvancedOptions *string `json:"advanced_options,omitempty"` - // The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors. - BlockSize *int64 `default:"10000" json:"block_size"` - // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. - Delimiter *string `default:"," json:"delimiter"` - // Whether two quotes in a quoted CSV value denote a single quote in the data. - DoubleQuote *bool `default:"true" json:"double_quote"` - // The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options. - Encoding *string `default:"utf8" json:"encoding"` - // The character used for escaping special characters. To disallow escaping, leave this field blank. - EscapeChar *string `json:"escape_char,omitempty"` - filetype *Filetype `const:"csv" json:"filetype"` - // Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings - InferDatatypes *bool `default:"true" json:"infer_datatypes"` - // Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False. - NewlinesInValues *bool `default:"false" json:"newlines_in_values"` - // The character used for quoting CSV values. To disallow quoting, make this field blank. - QuoteChar *string `default:"\"" json:"quote_char"` -} - -func (c Csv) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *Csv) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, true); err != nil { - return err - } - return nil -} - -func (o *Csv) GetAdditionalReaderOptions() *string { - if o == nil { - return nil - } - return o.AdditionalReaderOptions -} - -func (o *Csv) GetAdvancedOptions() *string { - if o == nil { - return nil - } - return o.AdvancedOptions -} - -func (o *Csv) GetBlockSize() *int64 { - if o == nil { - return nil - } - return o.BlockSize -} - -func (o *Csv) GetDelimiter() *string { - if o == nil { - return nil - } - return o.Delimiter -} - -func (o *Csv) GetDoubleQuote() *bool { - if o == nil { - return nil - } - return o.DoubleQuote -} - -func (o *Csv) GetEncoding() *string { - if o == nil { - return nil - } - return o.Encoding -} - -func (o *Csv) GetEscapeChar() *string { - if o == nil { - return nil - } - return o.EscapeChar -} - -func (o *Csv) GetFiletype() *Filetype { - return FiletypeCsv.ToPointer() -} - -func (o *Csv) GetInferDatatypes() *bool { - if o == nil { - return nil - } - return o.InferDatatypes -} - -func (o *Csv) GetNewlinesInValues() *bool { - if o == nil { - return nil - } - return o.NewlinesInValues -} - -func (o *Csv) GetQuoteChar() *string { - if o == nil { - return nil - } - return o.QuoteChar -} - -type SourceS3UpdateFileFormatType string - -const ( - SourceS3UpdateFileFormatTypeCsv SourceS3UpdateFileFormatType = "CSV" - SourceS3UpdateFileFormatTypeParquet SourceS3UpdateFileFormatType = "Parquet" - SourceS3UpdateFileFormatTypeAvro SourceS3UpdateFileFormatType = "Avro" - SourceS3UpdateFileFormatTypeJsonl SourceS3UpdateFileFormatType = "Jsonl" -) - -// SourceS3UpdateFileFormat - Deprecated and will be removed soon. Please do not use this field anymore and use streams.format instead. The format of the files you'd like to replicate -type SourceS3UpdateFileFormat struct { - Csv *Csv - Parquet *Parquet - Avro *Avro - Jsonl *Jsonl - - Type SourceS3UpdateFileFormatType -} - -func CreateSourceS3UpdateFileFormatCsv(csv Csv) SourceS3UpdateFileFormat { - typ := SourceS3UpdateFileFormatTypeCsv - - return SourceS3UpdateFileFormat{ - Csv: &csv, - Type: typ, - } -} - -func CreateSourceS3UpdateFileFormatParquet(parquet Parquet) SourceS3UpdateFileFormat { - typ := SourceS3UpdateFileFormatTypeParquet - - return SourceS3UpdateFileFormat{ - Parquet: &parquet, - Type: typ, - } -} - -func CreateSourceS3UpdateFileFormatAvro(avro Avro) SourceS3UpdateFileFormat { - typ := SourceS3UpdateFileFormatTypeAvro - - return SourceS3UpdateFileFormat{ - Avro: &avro, - Type: typ, - } -} - -func CreateSourceS3UpdateFileFormatJsonl(jsonl Jsonl) SourceS3UpdateFileFormat { - typ := SourceS3UpdateFileFormatTypeJsonl - - return SourceS3UpdateFileFormat{ - Jsonl: &jsonl, - Type: typ, - } -} - -func (u *SourceS3UpdateFileFormat) UnmarshalJSON(data []byte) error { - - var avro Avro = Avro{} - if err := utils.UnmarshalJSON(data, &avro, "", true, true); err == nil { - u.Avro = &avro - u.Type = SourceS3UpdateFileFormatTypeAvro - return nil - } - - var parquet Parquet = Parquet{} - if err := utils.UnmarshalJSON(data, &parquet, "", true, true); err == nil { - u.Parquet = &parquet - u.Type = SourceS3UpdateFileFormatTypeParquet - return nil - } - - var jsonl Jsonl = Jsonl{} - if err := utils.UnmarshalJSON(data, &jsonl, "", true, true); err == nil { - u.Jsonl = &jsonl - u.Type = SourceS3UpdateFileFormatTypeJsonl - return nil - } - - var csv Csv = Csv{} - if err := utils.UnmarshalJSON(data, &csv, "", true, true); err == nil { - u.Csv = &csv - u.Type = SourceS3UpdateFileFormatTypeCsv - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceS3UpdateFileFormat", string(data)) -} - -func (u SourceS3UpdateFileFormat) MarshalJSON() ([]byte, error) { - if u.Csv != nil { - return utils.MarshalJSON(u.Csv, "", true) - } - - if u.Parquet != nil { - return utils.MarshalJSON(u.Parquet, "", true) - } - - if u.Avro != nil { - return utils.MarshalJSON(u.Avro, "", true) - } - - if u.Jsonl != nil { - return utils.MarshalJSON(u.Jsonl, "", true) - } - - return nil, errors.New("could not marshal union type SourceS3UpdateFileFormat: all fields are null") -} - -// S3AmazonWebServices - Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services -type S3AmazonWebServices struct { - // In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. - AwsAccessKeyID *string `json:"aws_access_key_id,omitempty"` - // In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. - AwsSecretAccessKey *string `json:"aws_secret_access_key,omitempty"` - // Name of the S3 bucket where the file(s) exist. - Bucket *string `json:"bucket,omitempty"` - // Endpoint to an S3 compatible service. Leave empty to use AWS. - Endpoint *string `default:"" json:"endpoint"` - // By providing a path-like prefix (e.g. myFolder/thisTable/) under which all the relevant files sit, we can optimize finding these in S3. This is optional but recommended if your bucket contains many folders/files which you don't need to replicate. - PathPrefix *string `default:"" json:"path_prefix"` - // AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. - RegionName *string `json:"region_name,omitempty"` - // Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. - RoleArn *string `json:"role_arn,omitempty"` - // UTC date and time in the format 2017-01-25T00:00:00Z. Any file modified before this date will not be replicated. - StartDate *time.Time `json:"start_date,omitempty"` -} - -func (s S3AmazonWebServices) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *S3AmazonWebServices) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *S3AmazonWebServices) GetAwsAccessKeyID() *string { - if o == nil { - return nil - } - return o.AwsAccessKeyID -} - -func (o *S3AmazonWebServices) GetAwsSecretAccessKey() *string { - if o == nil { - return nil - } - return o.AwsSecretAccessKey -} - -func (o *S3AmazonWebServices) GetBucket() *string { - if o == nil { - return nil - } - return o.Bucket -} - -func (o *S3AmazonWebServices) GetEndpoint() *string { - if o == nil { - return nil - } - return o.Endpoint -} - -func (o *S3AmazonWebServices) GetPathPrefix() *string { - if o == nil { - return nil - } - return o.PathPrefix -} - -func (o *S3AmazonWebServices) GetRegionName() *string { - if o == nil { - return nil - } - return o.RegionName -} - -func (o *S3AmazonWebServices) GetRoleArn() *string { - if o == nil { - return nil - } - return o.RoleArn -} - -func (o *S3AmazonWebServices) GetStartDate() *time.Time { - if o == nil { - return nil - } - return o.StartDate -} - -type SourceS3UpdateSchemasStreamsFormatFormat5Filetype string +type SourceS3UpdateSchemasStreamsFormatFormatFiletype string const ( - SourceS3UpdateSchemasStreamsFormatFormat5FiletypeUnstructured SourceS3UpdateSchemasStreamsFormatFormat5Filetype = "unstructured" + SourceS3UpdateSchemasStreamsFormatFormatFiletypeUnstructured SourceS3UpdateSchemasStreamsFormatFormatFiletype = "unstructured" ) -func (e SourceS3UpdateSchemasStreamsFormatFormat5Filetype) ToPointer() *SourceS3UpdateSchemasStreamsFormatFormat5Filetype { +func (e SourceS3UpdateSchemasStreamsFormatFormatFiletype) ToPointer() *SourceS3UpdateSchemasStreamsFormatFormatFiletype { return &e } -func (e *SourceS3UpdateSchemasStreamsFormatFormat5Filetype) UnmarshalJSON(data []byte) error { +func (e *SourceS3UpdateSchemasStreamsFormatFormatFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "unstructured": - *e = SourceS3UpdateSchemasStreamsFormatFormat5Filetype(v) + *e = SourceS3UpdateSchemasStreamsFormatFormatFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3UpdateSchemasStreamsFormatFormat5Filetype: %v", v) + return fmt.Errorf("invalid value for SourceS3UpdateSchemasStreamsFormatFormatFiletype: %v", v) } } @@ -694,7 +153,7 @@ func (e *SourceS3UpdateParsingStrategy) UnmarshalJSON(data []byte) error { // SourceS3UpdateUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. type SourceS3UpdateUnstructuredDocumentFormat struct { - filetype *SourceS3UpdateSchemasStreamsFormatFormat5Filetype `const:"unstructured" json:"filetype"` + filetype *SourceS3UpdateSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceS3UpdateProcessing `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. @@ -714,8 +173,8 @@ func (s *SourceS3UpdateUnstructuredDocumentFormat) UnmarshalJSON(data []byte) er return nil } -func (o *SourceS3UpdateUnstructuredDocumentFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFormat5Filetype { - return SourceS3UpdateSchemasStreamsFormatFormat5FiletypeUnstructured.ToPointer() +func (o *SourceS3UpdateUnstructuredDocumentFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFormatFiletype { + return SourceS3UpdateSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } func (o *SourceS3UpdateUnstructuredDocumentFormat) GetProcessing() *SourceS3UpdateProcessing { @@ -739,33 +198,33 @@ func (o *SourceS3UpdateUnstructuredDocumentFormat) GetStrategy() *SourceS3Update return o.Strategy } -type SourceS3UpdateSchemasStreamsFormatFormat4Filetype string +type SourceS3UpdateSchemasStreamsFormatFiletype string const ( - SourceS3UpdateSchemasStreamsFormatFormat4FiletypeParquet SourceS3UpdateSchemasStreamsFormatFormat4Filetype = "parquet" + SourceS3UpdateSchemasStreamsFormatFiletypeParquet SourceS3UpdateSchemasStreamsFormatFiletype = "parquet" ) -func (e SourceS3UpdateSchemasStreamsFormatFormat4Filetype) ToPointer() *SourceS3UpdateSchemasStreamsFormatFormat4Filetype { +func (e SourceS3UpdateSchemasStreamsFormatFiletype) ToPointer() *SourceS3UpdateSchemasStreamsFormatFiletype { return &e } -func (e *SourceS3UpdateSchemasStreamsFormatFormat4Filetype) UnmarshalJSON(data []byte) error { +func (e *SourceS3UpdateSchemasStreamsFormatFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "parquet": - *e = SourceS3UpdateSchemasStreamsFormatFormat4Filetype(v) + *e = SourceS3UpdateSchemasStreamsFormatFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3UpdateSchemasStreamsFormatFormat4Filetype: %v", v) + return fmt.Errorf("invalid value for SourceS3UpdateSchemasStreamsFormatFiletype: %v", v) } } type SourceS3UpdateParquetFormat 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 *SourceS3UpdateSchemasStreamsFormatFormat4Filetype `const:"parquet" json:"filetype"` + DecimalAsFloat *bool `default:"false" json:"decimal_as_float"` + filetype *SourceS3UpdateSchemasStreamsFormatFiletype `const:"parquet" json:"filetype"` } func (s SourceS3UpdateParquetFormat) MarshalJSON() ([]byte, error) { @@ -786,35 +245,35 @@ func (o *SourceS3UpdateParquetFormat) GetDecimalAsFloat() *bool { return o.DecimalAsFloat } -func (o *SourceS3UpdateParquetFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFormat4Filetype { - return SourceS3UpdateSchemasStreamsFormatFormat4FiletypeParquet.ToPointer() +func (o *SourceS3UpdateParquetFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFiletype { + return SourceS3UpdateSchemasStreamsFormatFiletypeParquet.ToPointer() } -type SourceS3UpdateSchemasStreamsFormatFormatFiletype string +type SourceS3UpdateSchemasStreamsFiletype string const ( - SourceS3UpdateSchemasStreamsFormatFormatFiletypeJsonl SourceS3UpdateSchemasStreamsFormatFormatFiletype = "jsonl" + SourceS3UpdateSchemasStreamsFiletypeJsonl SourceS3UpdateSchemasStreamsFiletype = "jsonl" ) -func (e SourceS3UpdateSchemasStreamsFormatFormatFiletype) ToPointer() *SourceS3UpdateSchemasStreamsFormatFormatFiletype { +func (e SourceS3UpdateSchemasStreamsFiletype) ToPointer() *SourceS3UpdateSchemasStreamsFiletype { return &e } -func (e *SourceS3UpdateSchemasStreamsFormatFormatFiletype) UnmarshalJSON(data []byte) error { +func (e *SourceS3UpdateSchemasStreamsFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "jsonl": - *e = SourceS3UpdateSchemasStreamsFormatFormatFiletype(v) + *e = SourceS3UpdateSchemasStreamsFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3UpdateSchemasStreamsFormatFormatFiletype: %v", v) + return fmt.Errorf("invalid value for SourceS3UpdateSchemasStreamsFiletype: %v", v) } } type SourceS3UpdateJsonlFormat struct { - filetype *SourceS3UpdateSchemasStreamsFormatFormatFiletype `const:"jsonl" json:"filetype"` + filetype *SourceS3UpdateSchemasStreamsFiletype `const:"jsonl" json:"filetype"` } func (s SourceS3UpdateJsonlFormat) MarshalJSON() ([]byte, error) { @@ -828,30 +287,30 @@ func (s *SourceS3UpdateJsonlFormat) UnmarshalJSON(data []byte) error { return nil } -func (o *SourceS3UpdateJsonlFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFormatFiletype { - return SourceS3UpdateSchemasStreamsFormatFormatFiletypeJsonl.ToPointer() +func (o *SourceS3UpdateJsonlFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFiletype { + return SourceS3UpdateSchemasStreamsFiletypeJsonl.ToPointer() } -type SourceS3UpdateSchemasStreamsFormatFiletype string +type SourceS3UpdateSchemasFiletype string const ( - SourceS3UpdateSchemasStreamsFormatFiletypeCsv SourceS3UpdateSchemasStreamsFormatFiletype = "csv" + SourceS3UpdateSchemasFiletypeCsv SourceS3UpdateSchemasFiletype = "csv" ) -func (e SourceS3UpdateSchemasStreamsFormatFiletype) ToPointer() *SourceS3UpdateSchemasStreamsFormatFiletype { +func (e SourceS3UpdateSchemasFiletype) ToPointer() *SourceS3UpdateSchemasFiletype { return &e } -func (e *SourceS3UpdateSchemasStreamsFormatFiletype) UnmarshalJSON(data []byte) error { +func (e *SourceS3UpdateSchemasFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "csv": - *e = SourceS3UpdateSchemasStreamsFormatFiletype(v) + *e = SourceS3UpdateSchemasFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3UpdateSchemasStreamsFormatFiletype: %v", v) + return fmt.Errorf("invalid value for SourceS3UpdateSchemasFiletype: %v", v) } } @@ -1076,33 +535,6 @@ func (u SourceS3UpdateCSVHeaderDefinition) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type SourceS3UpdateCSVHeaderDefinition: all fields are null") } -// SourceS3UpdateInferenceType - How to infer the types of the columns. If none, inference default to strings. -type SourceS3UpdateInferenceType string - -const ( - SourceS3UpdateInferenceTypeNone SourceS3UpdateInferenceType = "None" - SourceS3UpdateInferenceTypePrimitiveTypesOnly SourceS3UpdateInferenceType = "Primitive Types Only" -) - -func (e SourceS3UpdateInferenceType) ToPointer() *SourceS3UpdateInferenceType { - return &e -} -func (e *SourceS3UpdateInferenceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "None": - fallthrough - case "Primitive Types Only": - *e = SourceS3UpdateInferenceType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceS3UpdateInferenceType: %v", v) - } -} - type SourceS3UpdateCSVFormat struct { // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Delimiter *string `default:"," json:"delimiter"` @@ -1113,14 +545,12 @@ type SourceS3UpdateCSVFormat 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 *SourceS3UpdateSchemasStreamsFormatFiletype `const:"csv" json:"filetype"` + FalseValues []string `json:"false_values,omitempty"` + filetype *SourceS3UpdateSchemasFiletype `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 *SourceS3UpdateCSVHeaderDefinition `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. IgnoreErrorsOnFieldsMismatch *bool `default:"false" json:"ignore_errors_on_fields_mismatch"` - // How to infer the types of the columns. If none, inference default to strings. - InferenceType *SourceS3UpdateInferenceType `default:"None" json:"inference_type"` // 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. NullValues []string `json:"null_values,omitempty"` // The character used for quoting CSV values. To disallow quoting, make this field blank. @@ -1181,8 +611,8 @@ func (o *SourceS3UpdateCSVFormat) GetFalseValues() []string { return o.FalseValues } -func (o *SourceS3UpdateCSVFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFiletype { - return SourceS3UpdateSchemasStreamsFormatFiletypeCsv.ToPointer() +func (o *SourceS3UpdateCSVFormat) GetFiletype() *SourceS3UpdateSchemasFiletype { + return SourceS3UpdateSchemasFiletypeCsv.ToPointer() } func (o *SourceS3UpdateCSVFormat) GetHeaderDefinition() *SourceS3UpdateCSVHeaderDefinition { @@ -1199,13 +629,6 @@ func (o *SourceS3UpdateCSVFormat) GetIgnoreErrorsOnFieldsMismatch() *bool { return o.IgnoreErrorsOnFieldsMismatch } -func (o *SourceS3UpdateCSVFormat) GetInferenceType() *SourceS3UpdateInferenceType { - if o == nil { - return nil - } - return o.InferenceType -} - func (o *SourceS3UpdateCSVFormat) GetNullValues() []string { if o == nil { return nil @@ -1248,33 +671,33 @@ func (o *SourceS3UpdateCSVFormat) GetTrueValues() []string { return o.TrueValues } -type SourceS3UpdateSchemasStreamsFiletype string +type SourceS3UpdateFiletype string const ( - SourceS3UpdateSchemasStreamsFiletypeAvro SourceS3UpdateSchemasStreamsFiletype = "avro" + SourceS3UpdateFiletypeAvro SourceS3UpdateFiletype = "avro" ) -func (e SourceS3UpdateSchemasStreamsFiletype) ToPointer() *SourceS3UpdateSchemasStreamsFiletype { +func (e SourceS3UpdateFiletype) ToPointer() *SourceS3UpdateFiletype { return &e } -func (e *SourceS3UpdateSchemasStreamsFiletype) UnmarshalJSON(data []byte) error { +func (e *SourceS3UpdateFiletype) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "avro": - *e = SourceS3UpdateSchemasStreamsFiletype(v) + *e = SourceS3UpdateFiletype(v) return nil default: - return fmt.Errorf("invalid value for SourceS3UpdateSchemasStreamsFiletype: %v", v) + return fmt.Errorf("invalid value for SourceS3UpdateFiletype: %v", v) } } type SourceS3UpdateAvroFormat 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 *SourceS3UpdateSchemasStreamsFiletype `const:"avro" json:"filetype"` + DoubleAsString *bool `default:"false" json:"double_as_string"` + filetype *SourceS3UpdateFiletype `const:"avro" json:"filetype"` } func (s SourceS3UpdateAvroFormat) MarshalJSON() ([]byte, error) { @@ -1295,8 +718,8 @@ func (o *SourceS3UpdateAvroFormat) GetDoubleAsString() *bool { return o.DoubleAsString } -func (o *SourceS3UpdateAvroFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFiletype { - return SourceS3UpdateSchemasStreamsFiletypeAvro.ToPointer() +func (o *SourceS3UpdateAvroFormat) GetFiletype() *SourceS3UpdateFiletype { + return SourceS3UpdateFiletypeAvro.ToPointer() } type SourceS3UpdateFormatType string @@ -1468,12 +891,8 @@ type SourceS3UpdateFileBasedStreamConfig 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 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. @@ -1521,13 +940,6 @@ func (o *SourceS3UpdateFileBasedStreamConfig) GetInputSchema() *string { return o.InputSchema } -func (o *SourceS3UpdateFileBasedStreamConfig) GetLegacyPrefix() *string { - if o == nil { - return nil - } - return o.LegacyPrefix -} - func (o *SourceS3UpdateFileBasedStreamConfig) GetName() string { if o == nil { return "" @@ -1535,13 +947,6 @@ func (o *SourceS3UpdateFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceS3UpdateFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceS3UpdateFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { if o == nil { return nil @@ -1572,22 +977,12 @@ type SourceS3Update struct { AwsSecretAccessKey *string `json:"aws_secret_access_key,omitempty"` // Name of the S3 bucket where the file(s) exist. Bucket string `json:"bucket"` - // Deprecated and will be removed soon. Please do not use this field anymore and use streams.name instead. The name of the stream you would like this source to output. Can contain letters, numbers, or underscores. - Dataset *string `json:"dataset,omitempty"` - // Endpoint to an S3 compatible service. Leave empty to use AWS. The custom endpoint must be secure, but the 'https' prefix is not required. + // Endpoint to an S3 compatible service. Leave empty to use AWS. Endpoint *string `default:"" json:"endpoint"` - // Deprecated and will be removed soon. Please do not use this field anymore and use streams.format instead. The format of the files you'd like to replicate - Format *SourceS3UpdateFileFormat `json:"format,omitempty"` - // Deprecated and will be removed soon. Please do not use this field anymore and use streams.globs instead. A regular expression which tells the connector which files to replicate. All files which match this pattern will be replicated. Use | to separate multiple patterns. See this page to understand pattern syntax (GLOBSTAR and SPLIT flags are enabled). Use pattern ** to pick up all files. - PathPattern *string `json:"path_pattern,omitempty"` - // Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services - Provider *S3AmazonWebServices `json:"provider,omitempty"` // AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. RegionName *string `json:"region_name,omitempty"` // Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. RoleArn *string `json:"role_arn,omitempty"` - // Deprecated and will be removed soon. Please do not use this field anymore and use streams.input_schema instead. Optionally provide a schema to enforce, as a valid JSON string. Ensure this is a mapping of { "column" : "type" }, where types are valid JSON Schema datatypes. Leave as {} to auto-infer the schema. - Schema *string `default:"{}" json:"schema"` // 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. @@ -1626,13 +1021,6 @@ func (o *SourceS3Update) GetBucket() string { return o.Bucket } -func (o *SourceS3Update) GetDataset() *string { - if o == nil { - return nil - } - return o.Dataset -} - func (o *SourceS3Update) GetEndpoint() *string { if o == nil { return nil @@ -1640,27 +1028,6 @@ func (o *SourceS3Update) GetEndpoint() *string { return o.Endpoint } -func (o *SourceS3Update) GetFormat() *SourceS3UpdateFileFormat { - if o == nil { - return nil - } - return o.Format -} - -func (o *SourceS3Update) GetPathPattern() *string { - if o == nil { - return nil - } - return o.PathPattern -} - -func (o *SourceS3Update) GetProvider() *S3AmazonWebServices { - if o == nil { - return nil - } - return o.Provider -} - func (o *SourceS3Update) GetRegionName() *string { if o == nil { return nil @@ -1675,13 +1042,6 @@ func (o *SourceS3Update) GetRoleArn() *string { return o.RoleArn } -func (o *SourceS3Update) GetSchema() *string { - if o == nil { - return nil - } - return o.Schema -} - func (o *SourceS3Update) GetStartDate() *time.Time { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcesenseforce.go b/internal/sdk/models/shared/sourcesenseforce.go index 5da52ee1f..9987b1976 100644 --- a/internal/sdk/models/shared/sourcesenseforce.go +++ b/internal/sdk/models/shared/sourcesenseforce.go @@ -38,9 +38,7 @@ type SourceSenseforce struct { // Your Senseforce API backend URL. This is the URL shown during the Login screen. See here for more details. (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR) BackendURL string `json:"backend_url"` // The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See here for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source). - DatasetID string `json:"dataset_id"` - // The time increment used by the connector when requesting data from the Senseforce API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted and the more likely one could run into rate limites. Furthermore, consider that large chunks of time might take a long time for the Senseforce query to return data - meaning it could take in effect longer than with more smaller time slices. If there are a lot of data per day, set this setting to 1. If there is only very little data per day, you might change the setting to 10 or more. - SliceRange *int64 `default:"10" json:"slice_range"` + DatasetID string `json:"dataset_id"` sourceType Senseforce `const:"senseforce" json:"sourceType"` // UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later StartDate types.Date `json:"start_date"` @@ -78,13 +76,6 @@ func (o *SourceSenseforce) GetDatasetID() string { return o.DatasetID } -func (o *SourceSenseforce) GetSliceRange() *int64 { - if o == nil { - return nil - } - return o.SliceRange -} - func (o *SourceSenseforce) GetSourceType() Senseforce { return SenseforceSenseforce } diff --git a/internal/sdk/models/shared/sourcesenseforceupdate.go b/internal/sdk/models/shared/sourcesenseforceupdate.go index d50e28544..4e86dcaf9 100644 --- a/internal/sdk/models/shared/sourcesenseforceupdate.go +++ b/internal/sdk/models/shared/sourcesenseforceupdate.go @@ -14,8 +14,6 @@ type SourceSenseforceUpdate struct { BackendURL string `json:"backend_url"` // The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See here for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source). DatasetID string `json:"dataset_id"` - // The time increment used by the connector when requesting data from the Senseforce API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted and the more likely one could run into rate limites. Furthermore, consider that large chunks of time might take a long time for the Senseforce query to return data - meaning it could take in effect longer than with more smaller time slices. If there are a lot of data per day, set this setting to 1. If there is only very little data per day, you might change the setting to 10 or more. - SliceRange *int64 `default:"10" json:"slice_range"` // UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later StartDate types.Date `json:"start_date"` } @@ -52,13 +50,6 @@ func (o *SourceSenseforceUpdate) GetDatasetID() string { return o.DatasetID } -func (o *SourceSenseforceUpdate) GetSliceRange() *int64 { - if o == nil { - return nil - } - return o.SliceRange -} - func (o *SourceSenseforceUpdate) GetStartDate() types.Date { if o == nil { return types.Date{} diff --git a/internal/sdk/models/shared/sourcesftpbulk.go b/internal/sdk/models/shared/sourcesftpbulk.go index 1fab4cd5d..080f5a48a 100644 --- a/internal/sdk/models/shared/sourcesftpbulk.go +++ b/internal/sdk/models/shared/sourcesftpbulk.go @@ -879,33 +879,6 @@ func (u SourceSftpBulkCSVHeaderDefinition) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type SourceSftpBulkCSVHeaderDefinition: all fields are null") } -// SourceSftpBulkInferenceType - How to infer the types of the columns. If none, inference default to strings. -type SourceSftpBulkInferenceType string - -const ( - SourceSftpBulkInferenceTypeNone SourceSftpBulkInferenceType = "None" - SourceSftpBulkInferenceTypePrimitiveTypesOnly SourceSftpBulkInferenceType = "Primitive Types Only" -) - -func (e SourceSftpBulkInferenceType) ToPointer() *SourceSftpBulkInferenceType { - return &e -} -func (e *SourceSftpBulkInferenceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "None": - fallthrough - case "Primitive Types Only": - *e = SourceSftpBulkInferenceType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceSftpBulkInferenceType: %v", v) - } -} - type SourceSftpBulkCSVFormat struct { // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Delimiter *string `default:"," json:"delimiter"` @@ -922,8 +895,6 @@ type SourceSftpBulkCSVFormat struct { HeaderDefinition *SourceSftpBulkCSVHeaderDefinition `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. IgnoreErrorsOnFieldsMismatch *bool `default:"false" json:"ignore_errors_on_fields_mismatch"` - // How to infer the types of the columns. If none, inference default to strings. - InferenceType *SourceSftpBulkInferenceType `default:"None" json:"inference_type"` // 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. NullValues []string `json:"null_values,omitempty"` // The character used for quoting CSV values. To disallow quoting, make this field blank. @@ -1002,13 +973,6 @@ func (o *SourceSftpBulkCSVFormat) GetIgnoreErrorsOnFieldsMismatch() *bool { return o.IgnoreErrorsOnFieldsMismatch } -func (o *SourceSftpBulkCSVFormat) GetInferenceType() *SourceSftpBulkInferenceType { - if o == nil { - return nil - } - return o.InferenceType -} - func (o *SourceSftpBulkCSVFormat) GetNullValues() []string { if o == nil { return nil @@ -1293,12 +1257,8 @@ type SourceSftpBulkFileBasedStreamConfig 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 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. @@ -1346,13 +1306,6 @@ func (o *SourceSftpBulkFileBasedStreamConfig) GetInputSchema() *string { return o.InputSchema } -func (o *SourceSftpBulkFileBasedStreamConfig) GetLegacyPrefix() *string { - if o == nil { - return nil - } - return o.LegacyPrefix -} - func (o *SourceSftpBulkFileBasedStreamConfig) GetName() string { if o == nil { return "" @@ -1360,13 +1313,6 @@ func (o *SourceSftpBulkFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceSftpBulkFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceSftpBulkFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcesftpbulkupdate.go b/internal/sdk/models/shared/sourcesftpbulkupdate.go index 9c484f4ab..ed99e37fd 100644 --- a/internal/sdk/models/shared/sourcesftpbulkupdate.go +++ b/internal/sdk/models/shared/sourcesftpbulkupdate.go @@ -856,33 +856,6 @@ func (u SourceSftpBulkUpdateCSVHeaderDefinition) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type SourceSftpBulkUpdateCSVHeaderDefinition: all fields are null") } -// SourceSftpBulkUpdateInferenceType - How to infer the types of the columns. If none, inference default to strings. -type SourceSftpBulkUpdateInferenceType string - -const ( - SourceSftpBulkUpdateInferenceTypeNone SourceSftpBulkUpdateInferenceType = "None" - SourceSftpBulkUpdateInferenceTypePrimitiveTypesOnly SourceSftpBulkUpdateInferenceType = "Primitive Types Only" -) - -func (e SourceSftpBulkUpdateInferenceType) ToPointer() *SourceSftpBulkUpdateInferenceType { - return &e -} -func (e *SourceSftpBulkUpdateInferenceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "None": - fallthrough - case "Primitive Types Only": - *e = SourceSftpBulkUpdateInferenceType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceSftpBulkUpdateInferenceType: %v", v) - } -} - type SourceSftpBulkUpdateCSVFormat struct { // The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Delimiter *string `default:"," json:"delimiter"` @@ -899,8 +872,6 @@ type SourceSftpBulkUpdateCSVFormat struct { HeaderDefinition *SourceSftpBulkUpdateCSVHeaderDefinition `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. IgnoreErrorsOnFieldsMismatch *bool `default:"false" json:"ignore_errors_on_fields_mismatch"` - // How to infer the types of the columns. If none, inference default to strings. - InferenceType *SourceSftpBulkUpdateInferenceType `default:"None" json:"inference_type"` // 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. NullValues []string `json:"null_values,omitempty"` // The character used for quoting CSV values. To disallow quoting, make this field blank. @@ -979,13 +950,6 @@ func (o *SourceSftpBulkUpdateCSVFormat) GetIgnoreErrorsOnFieldsMismatch() *bool return o.IgnoreErrorsOnFieldsMismatch } -func (o *SourceSftpBulkUpdateCSVFormat) GetInferenceType() *SourceSftpBulkUpdateInferenceType { - if o == nil { - return nil - } - return o.InferenceType -} - func (o *SourceSftpBulkUpdateCSVFormat) GetNullValues() []string { if o == nil { return nil @@ -1270,12 +1234,8 @@ type SourceSftpBulkUpdateFileBasedStreamConfig 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 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. @@ -1323,13 +1283,6 @@ func (o *SourceSftpBulkUpdateFileBasedStreamConfig) GetInputSchema() *string { return o.InputSchema } -func (o *SourceSftpBulkUpdateFileBasedStreamConfig) GetLegacyPrefix() *string { - if o == nil { - return nil - } - return o.LegacyPrefix -} - func (o *SourceSftpBulkUpdateFileBasedStreamConfig) GetName() string { if o == nil { return "" @@ -1337,13 +1290,6 @@ func (o *SourceSftpBulkUpdateFileBasedStreamConfig) GetName() string { return o.Name } -func (o *SourceSftpBulkUpdateFileBasedStreamConfig) GetPrimaryKey() *string { - if o == nil { - return nil - } - return o.PrimaryKey -} - func (o *SourceSftpBulkUpdateFileBasedStreamConfig) GetRecentNFilesToReadForSchemaDiscovery() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourceshortcut.go b/internal/sdk/models/shared/sourceshortcut.go new file mode 100644 index 000000000..e356d75df --- /dev/null +++ b/internal/sdk/models/shared/sourceshortcut.go @@ -0,0 +1,77 @@ +// 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 Shortcut string + +const ( + ShortcutShortcut Shortcut = "shortcut" +) + +func (e Shortcut) ToPointer() *Shortcut { + return &e +} +func (e *Shortcut) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "shortcut": + *e = Shortcut(v) + return nil + default: + return fmt.Errorf("invalid value for Shortcut: %v", v) + } +} + +type SourceShortcut struct { + APIKey2 string `json:"api_key_2"` + // Query for searching as defined in `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` + Query *string `default:"title:Our first Epic" json:"query"` + sourceType Shortcut `const:"shortcut" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceShortcut) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceShortcut) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceShortcut) GetAPIKey2() string { + if o == nil { + return "" + } + return o.APIKey2 +} + +func (o *SourceShortcut) GetQuery() *string { + if o == nil { + return nil + } + return o.Query +} + +func (o *SourceShortcut) GetSourceType() Shortcut { + return ShortcutShortcut +} + +func (o *SourceShortcut) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceshortcutcreaterequest.go b/internal/sdk/models/shared/sourceshortcutcreaterequest.go new file mode 100644 index 000000000..2c79cb15f --- /dev/null +++ b/internal/sdk/models/shared/sourceshortcutcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceShortcutCreateRequest struct { + Configuration SourceShortcut `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 *SourceShortcutCreateRequest) GetConfiguration() SourceShortcut { + if o == nil { + return SourceShortcut{} + } + return o.Configuration +} + +func (o *SourceShortcutCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceShortcutCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceShortcutCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceShortcutCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceshortcutputrequest.go b/internal/sdk/models/shared/sourceshortcutputrequest.go new file mode 100644 index 000000000..2b0e226b2 --- /dev/null +++ b/internal/sdk/models/shared/sourceshortcutputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceShortcutPutRequest struct { + Configuration SourceShortcutUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceShortcutPutRequest) GetConfiguration() SourceShortcutUpdate { + if o == nil { + return SourceShortcutUpdate{} + } + return o.Configuration +} + +func (o *SourceShortcutPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceShortcutPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceshortcutupdate.go b/internal/sdk/models/shared/sourceshortcutupdate.go new file mode 100644 index 000000000..a3d1b3fa5 --- /dev/null +++ b/internal/sdk/models/shared/sourceshortcutupdate.go @@ -0,0 +1,47 @@ +// 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 SourceShortcutUpdate struct { + APIKey2 string `json:"api_key_2"` + // Query for searching as defined in `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` + Query *string `default:"title:Our first Epic" json:"query"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceShortcutUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceShortcutUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceShortcutUpdate) GetAPIKey2() string { + if o == nil { + return "" + } + return o.APIKey2 +} + +func (o *SourceShortcutUpdate) GetQuery() *string { + if o == nil { + return nil + } + return o.Query +} + +func (o *SourceShortcutUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcesmartsheets.go b/internal/sdk/models/shared/sourcesmartsheets.go index 45dfaf4fb..d7225ddea 100644 --- a/internal/sdk/models/shared/sourcesmartsheets.go +++ b/internal/sdk/models/shared/sourcesmartsheets.go @@ -312,8 +312,6 @@ type SourceSmartsheets struct { sourceType Smartsheets `const:"smartsheets" json:"sourceType"` // The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties SpreadsheetID string `json:"spreadsheet_id"` - // Only rows modified after this date/time will be replicated. This should be an ISO 8601 string, for instance: `2000-01-01T13:00:00` - StartDatetime *time.Time `default:"2020-01-01T00:00:00+00:00" json:"start_datetime"` } func (s SourceSmartsheets) MarshalJSON() ([]byte, error) { @@ -351,10 +349,3 @@ func (o *SourceSmartsheets) GetSpreadsheetID() string { } return o.SpreadsheetID } - -func (o *SourceSmartsheets) GetStartDatetime() *time.Time { - if o == nil { - return nil - } - return o.StartDatetime -} diff --git a/internal/sdk/models/shared/sourcesmartsheetsupdate.go b/internal/sdk/models/shared/sourcesmartsheetsupdate.go index 775c88958..3ee7833d7 100644 --- a/internal/sdk/models/shared/sourcesmartsheetsupdate.go +++ b/internal/sdk/models/shared/sourcesmartsheetsupdate.go @@ -288,19 +288,6 @@ type SourceSmartsheetsUpdate struct { MetadataFields []Validenums `json:"metadata_fields,omitempty"` // The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties SpreadsheetID string `json:"spreadsheet_id"` - // Only rows modified after this date/time will be replicated. This should be an ISO 8601 string, for instance: `2000-01-01T13:00:00` - StartDatetime *time.Time `default:"2020-01-01T00:00:00+00:00" json:"start_datetime"` -} - -func (s SourceSmartsheetsUpdate) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceSmartsheetsUpdate) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil } func (o *SourceSmartsheetsUpdate) GetCredentials() SourceSmartsheetsUpdateAuthorizationMethod { @@ -323,10 +310,3 @@ func (o *SourceSmartsheetsUpdate) GetSpreadsheetID() string { } return o.SpreadsheetID } - -func (o *SourceSmartsheetsUpdate) GetStartDatetime() *time.Time { - if o == nil { - return nil - } - return o.StartDatetime -} diff --git a/internal/sdk/models/shared/sourcesurvicate.go b/internal/sdk/models/shared/sourcesurvicate.go new file mode 100644 index 000000000..de13bf629 --- /dev/null +++ b/internal/sdk/models/shared/sourcesurvicate.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 Survicate string + +const ( + SurvicateSurvicate Survicate = "survicate" +) + +func (e Survicate) ToPointer() *Survicate { + return &e +} +func (e *Survicate) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "survicate": + *e = Survicate(v) + return nil + default: + return fmt.Errorf("invalid value for Survicate: %v", v) + } +} + +type SourceSurvicate struct { + APIKey string `json:"api_key"` + sourceType Survicate `const:"survicate" json:"sourceType"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceSurvicate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceSurvicate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceSurvicate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceSurvicate) GetSourceType() Survicate { + return SurvicateSurvicate +} + +func (o *SourceSurvicate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourcesurvicatecreaterequest.go b/internal/sdk/models/shared/sourcesurvicatecreaterequest.go new file mode 100644 index 000000000..76438e51b --- /dev/null +++ b/internal/sdk/models/shared/sourcesurvicatecreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceSurvicateCreateRequest struct { + Configuration SourceSurvicate `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 *SourceSurvicateCreateRequest) GetConfiguration() SourceSurvicate { + if o == nil { + return SourceSurvicate{} + } + return o.Configuration +} + +func (o *SourceSurvicateCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceSurvicateCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceSurvicateCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceSurvicateCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcesurvicateputrequest.go b/internal/sdk/models/shared/sourcesurvicateputrequest.go new file mode 100644 index 000000000..96ca04838 --- /dev/null +++ b/internal/sdk/models/shared/sourcesurvicateputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceSurvicatePutRequest struct { + Configuration SourceSurvicateUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceSurvicatePutRequest) GetConfiguration() SourceSurvicateUpdate { + if o == nil { + return SourceSurvicateUpdate{} + } + return o.Configuration +} + +func (o *SourceSurvicatePutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceSurvicatePutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcesurvicateupdate.go b/internal/sdk/models/shared/sourcesurvicateupdate.go new file mode 100644 index 000000000..68e6a2a57 --- /dev/null +++ b/internal/sdk/models/shared/sourcesurvicateupdate.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 SourceSurvicateUpdate struct { + APIKey string `json:"api_key"` + StartDate time.Time `json:"start_date"` +} + +func (s SourceSurvicateUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceSurvicateUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceSurvicateUpdate) GetAPIKey() string { + if o == nil { + return "" + } + return o.APIKey +} + +func (o *SourceSurvicateUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} diff --git a/internal/sdk/models/shared/sourceteamwork.go b/internal/sdk/models/shared/sourceteamwork.go new file mode 100644 index 000000000..760d182cb --- /dev/null +++ b/internal/sdk/models/shared/sourceteamwork.go @@ -0,0 +1,85 @@ +// 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 Teamwork string + +const ( + TeamworkTeamwork Teamwork = "teamwork" +) + +func (e Teamwork) ToPointer() *Teamwork { + return &e +} +func (e *Teamwork) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "teamwork": + *e = Teamwork(v) + return nil + default: + return fmt.Errorf("invalid value for Teamwork: %v", v) + } +} + +type SourceTeamwork struct { + Password *string `json:"password,omitempty"` + // The teamwork site name appearing at the url + SiteName string `json:"site_name"` + sourceType Teamwork `const:"teamwork" json:"sourceType"` + StartDate time.Time `json:"start_date"` + Username string `json:"username"` +} + +func (s SourceTeamwork) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceTeamwork) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceTeamwork) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourceTeamwork) GetSiteName() string { + if o == nil { + return "" + } + return o.SiteName +} + +func (o *SourceTeamwork) GetSourceType() Teamwork { + return TeamworkTeamwork +} + +func (o *SourceTeamwork) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceTeamwork) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourceteamworkcreaterequest.go b/internal/sdk/models/shared/sourceteamworkcreaterequest.go new file mode 100644 index 000000000..fe579b56f --- /dev/null +++ b/internal/sdk/models/shared/sourceteamworkcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceTeamworkCreateRequest struct { + Configuration SourceTeamwork `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 *SourceTeamworkCreateRequest) GetConfiguration() SourceTeamwork { + if o == nil { + return SourceTeamwork{} + } + return o.Configuration +} + +func (o *SourceTeamworkCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceTeamworkCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceTeamworkCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceTeamworkCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceteamworkputrequest.go b/internal/sdk/models/shared/sourceteamworkputrequest.go new file mode 100644 index 000000000..fc83af522 --- /dev/null +++ b/internal/sdk/models/shared/sourceteamworkputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceTeamworkPutRequest struct { + Configuration SourceTeamworkUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceTeamworkPutRequest) GetConfiguration() SourceTeamworkUpdate { + if o == nil { + return SourceTeamworkUpdate{} + } + return o.Configuration +} + +func (o *SourceTeamworkPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceTeamworkPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourceteamworkupdate.go b/internal/sdk/models/shared/sourceteamworkupdate.go new file mode 100644 index 000000000..eb26af6ae --- /dev/null +++ b/internal/sdk/models/shared/sourceteamworkupdate.go @@ -0,0 +1,55 @@ +// 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 SourceTeamworkUpdate struct { + Password *string `json:"password,omitempty"` + // The teamwork site name appearing at the url + SiteName string `json:"site_name"` + StartDate time.Time `json:"start_date"` + Username string `json:"username"` +} + +func (s SourceTeamworkUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceTeamworkUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceTeamworkUpdate) GetPassword() *string { + if o == nil { + return nil + } + return o.Password +} + +func (o *SourceTeamworkUpdate) GetSiteName() string { + if o == nil { + return "" + } + return o.SiteName +} + +func (o *SourceTeamworkUpdate) GetStartDate() time.Time { + if o == nil { + return time.Time{} + } + return o.StartDate +} + +func (o *SourceTeamworkUpdate) GetUsername() string { + if o == nil { + return "" + } + return o.Username +} diff --git a/internal/sdk/models/shared/sourcewheniwork.go b/internal/sdk/models/shared/sourcewheniwork.go new file mode 100644 index 000000000..18f80f912 --- /dev/null +++ b/internal/sdk/models/shared/sourcewheniwork.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 WhenIWork string + +const ( + WhenIWorkWhenIWork WhenIWork = "when-i-work" +) + +func (e WhenIWork) ToPointer() *WhenIWork { + return &e +} +func (e *WhenIWork) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "when-i-work": + *e = WhenIWork(v) + return nil + default: + return fmt.Errorf("invalid value for WhenIWork: %v", v) + } +} + +type SourceWhenIWork struct { + // Email of your when-i-work account + Email string `json:"email"` + // Password for your when-i-work account + Password string `json:"password"` + sourceType WhenIWork `const:"when-i-work" json:"sourceType"` +} + +func (s SourceWhenIWork) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceWhenIWork) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceWhenIWork) GetEmail() string { + if o == nil { + return "" + } + return o.Email +} + +func (o *SourceWhenIWork) GetPassword() string { + if o == nil { + return "" + } + return o.Password +} + +func (o *SourceWhenIWork) GetSourceType() WhenIWork { + return WhenIWorkWhenIWork +} diff --git a/internal/sdk/models/shared/sourcewheniworkcreaterequest.go b/internal/sdk/models/shared/sourcewheniworkcreaterequest.go new file mode 100644 index 000000000..c4766d3f2 --- /dev/null +++ b/internal/sdk/models/shared/sourcewheniworkcreaterequest.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceWhenIWorkCreateRequest struct { + Configuration SourceWhenIWork `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 *SourceWhenIWorkCreateRequest) GetConfiguration() SourceWhenIWork { + if o == nil { + return SourceWhenIWork{} + } + return o.Configuration +} + +func (o *SourceWhenIWorkCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *SourceWhenIWorkCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceWhenIWorkCreateRequest) GetSecretID() *string { + if o == nil { + return nil + } + return o.SecretID +} + +func (o *SourceWhenIWorkCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcewheniworkputrequest.go b/internal/sdk/models/shared/sourcewheniworkputrequest.go new file mode 100644 index 000000000..e098e9bb0 --- /dev/null +++ b/internal/sdk/models/shared/sourcewheniworkputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceWhenIWorkPutRequest struct { + Configuration SourceWhenIWorkUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceWhenIWorkPutRequest) GetConfiguration() SourceWhenIWorkUpdate { + if o == nil { + return SourceWhenIWorkUpdate{} + } + return o.Configuration +} + +func (o *SourceWhenIWorkPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceWhenIWorkPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcewheniworkupdate.go b/internal/sdk/models/shared/sourcewheniworkupdate.go new file mode 100644 index 000000000..50f6f3bd2 --- /dev/null +++ b/internal/sdk/models/shared/sourcewheniworkupdate.go @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceWhenIWorkUpdate struct { + // Email of your when-i-work account + Email string `json:"email"` + // Password for your when-i-work account + Password string `json:"password"` +} + +func (o *SourceWhenIWorkUpdate) GetEmail() string { + if o == nil { + return "" + } + return o.Email +} + +func (o *SourceWhenIWorkUpdate) GetPassword() string { + if o == nil { + return "" + } + return o.Password +} diff --git a/internal/sdk/models/shared/sourcezendesksell.go b/internal/sdk/models/shared/sourcezendesksell.go deleted file mode 100644 index e68d77c97..000000000 --- a/internal/sdk/models/shared/sourcezendesksell.go +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -import ( - "encoding/json" - "fmt" - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" -) - -type ZendeskSell string - -const ( - ZendeskSellZendeskSell ZendeskSell = "zendesk-sell" -) - -func (e ZendeskSell) ToPointer() *ZendeskSell { - return &e -} -func (e *ZendeskSell) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "zendesk-sell": - *e = ZendeskSell(v) - return nil - default: - return fmt.Errorf("invalid value for ZendeskSell: %v", v) - } -} - -type SourceZendeskSell struct { - // The API token for authenticating to Zendesk Sell - APIToken string `json:"api_token"` - sourceType ZendeskSell `const:"zendesk-sell" json:"sourceType"` -} - -func (s SourceZendeskSell) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceZendeskSell) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *SourceZendeskSell) GetAPIToken() string { - if o == nil { - return "" - } - return o.APIToken -} - -func (o *SourceZendeskSell) GetSourceType() ZendeskSell { - return ZendeskSellZendeskSell -} diff --git a/internal/sdk/models/shared/sourcezendesksellupdate.go b/internal/sdk/models/shared/sourcezendesksellupdate.go deleted file mode 100644 index a3585241a..000000000 --- a/internal/sdk/models/shared/sourcezendesksellupdate.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -type SourceZendeskSellUpdate struct { - // The API token for authenticating to Zendesk Sell - APIToken string `json:"api_token"` -} - -func (o *SourceZendeskSellUpdate) GetAPIToken() string { - if o == nil { - return "" - } - return o.APIToken -} diff --git a/internal/sdk/models/shared/sourcezendesksupport.go b/internal/sdk/models/shared/sourcezendesksupport.go index c87d99645..f1f9e5d3d 100644 --- a/internal/sdk/models/shared/sourcezendesksupport.go +++ b/internal/sdk/models/shared/sourcezendesksupport.go @@ -245,9 +245,7 @@ func (e *ZendeskSupport) UnmarshalJSON(data []byte) error { type SourceZendeskSupport struct { // Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. Credentials *SourceZendeskSupportAuthentication `json:"credentials,omitempty"` - // Makes each stream read a single page of data. - IgnorePagination *bool `default:"false" json:"ignore_pagination"` - sourceType ZendeskSupport `const:"zendesk-support" json:"sourceType"` + sourceType ZendeskSupport `const:"zendesk-support" json:"sourceType"` // The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. StartDate *time.Time `json:"start_date,omitempty"` // This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. @@ -272,13 +270,6 @@ func (o *SourceZendeskSupport) GetCredentials() *SourceZendeskSupportAuthenticat return o.Credentials } -func (o *SourceZendeskSupport) GetIgnorePagination() *bool { - if o == nil { - return nil - } - return o.IgnorePagination -} - func (o *SourceZendeskSupport) GetSourceType() ZendeskSupport { return ZendeskSupportZendeskSupport } diff --git a/internal/sdk/models/shared/sourcezendesksupportupdate.go b/internal/sdk/models/shared/sourcezendesksupportupdate.go index 96f9e7ad1..9d4a336ea 100644 --- a/internal/sdk/models/shared/sourcezendesksupportupdate.go +++ b/internal/sdk/models/shared/sourcezendesksupportupdate.go @@ -222,8 +222,6 @@ func (u SourceZendeskSupportUpdateAuthentication) MarshalJSON() ([]byte, error) type SourceZendeskSupportUpdate struct { // Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. Credentials *SourceZendeskSupportUpdateAuthentication `json:"credentials,omitempty"` - // Makes each stream read a single page of data. - IgnorePagination *bool `default:"false" json:"ignore_pagination"` // The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. StartDate *time.Time `json:"start_date,omitempty"` // This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. @@ -248,13 +246,6 @@ func (o *SourceZendeskSupportUpdate) GetCredentials() *SourceZendeskSupportUpdat return o.Credentials } -func (o *SourceZendeskSupportUpdate) GetIgnorePagination() *bool { - if o == nil { - return nil - } - return o.IgnorePagination -} - func (o *SourceZendeskSupportUpdate) GetStartDate() *time.Time { if o == nil { return nil diff --git a/internal/sdk/sources.go b/internal/sdk/sources.go index c2f90de8f..534db57f9 100644 --- a/internal/sdk/sources.go +++ b/internal/sdk/sources.go @@ -147,6 +147,127 @@ func (s *Sources) CreateSource(ctx context.Context, request *shared.SourceCreate } +// CreateSource7shifts - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSource7shifts(ctx context.Context, request *shared.Source7shiftsCreateRequest, opts ...operations.Option) (*operations.CreateSource7shiftsResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "createSource7shifts", + 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.CreateSource7shiftsResponse{ + 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 + +} + // CreateSourceAha - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. func (s *Sources) CreateSourceAha(ctx context.Context, request *shared.SourceAhaCreateRequest, opts ...operations.Option) (*operations.CreateSourceAhaResponse, error) { @@ -1236,12 +1357,12 @@ func (s *Sources) CreateSourceApifyDataset(ctx context.Context, request *shared. } -// CreateSourceAppfollow - Create a source +// CreateSourceAppcues - 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) CreateSourceAppcues(ctx context.Context, request *shared.SourceAppcuesCreateRequest, opts ...operations.Option) (*operations.CreateSourceAppcuesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAppfollow", + OperationID: "createSourceAppcues", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1320,7 +1441,7 @@ func (s *Sources) CreateSourceAppfollow(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceAppfollowResponse{ + res := &operations.CreateSourceAppcuesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1357,12 +1478,12 @@ func (s *Sources) CreateSourceAppfollow(ctx context.Context, request *shared.Sou } -// CreateSourceAsana - Create a source +// CreateSourceAppfigures - 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) CreateSourceAppfigures(ctx context.Context, request *shared.SourceAppfiguresCreateRequest, opts ...operations.Option) (*operations.CreateSourceAppfiguresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceAsana", + OperationID: "createSourceAppfigures", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1441,7 +1562,7 @@ func (s *Sources) CreateSourceAsana(ctx context.Context, request *shared.SourceA } } - res := &operations.CreateSourceAsanaResponse{ + res := &operations.CreateSourceAppfiguresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1478,12 +1599,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, } @@ -1562,7 +1683,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, @@ -1599,12 +1720,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, } @@ -1683,7 +1804,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, @@ -1720,12 +1841,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, } @@ -1804,7 +1925,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, @@ -1841,12 +1962,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, } @@ -1925,7 +2046,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, @@ -1962,12 +2083,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, } @@ -2046,7 +2167,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, @@ -2083,12 +2204,12 @@ func (s *Sources) CreateSourceBambooHr(ctx context.Context, request *shared.Sour } -// CreateSourceBasecamp - 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) CreateSourceBasecamp(ctx context.Context, request *shared.SourceBasecampCreateRequest, opts ...operations.Option) (*operations.CreateSourceBasecampResponse, error) { +func (s *Sources) CreateSourceAzureTable(ctx context.Context, request *shared.SourceAzureTableCreateRequest, opts ...operations.Option) (*operations.CreateSourceAzureTableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBasecamp", + OperationID: "createSourceAzureTable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2167,7 +2288,7 @@ func (s *Sources) CreateSourceBasecamp(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceBasecampResponse{ + res := &operations.CreateSourceAzureTableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2204,12 +2325,12 @@ func (s *Sources) CreateSourceBasecamp(ctx context.Context, request *shared.Sour } -// CreateSourceBigquery - 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) CreateSourceBigquery(ctx context.Context, request *shared.SourceBigqueryCreateRequest, opts ...operations.Option) (*operations.CreateSourceBigqueryResponse, error) { +func (s *Sources) CreateSourceBambooHr(ctx context.Context, request *shared.SourceBambooHrCreateRequest, opts ...operations.Option) (*operations.CreateSourceBambooHrResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBigquery", + OperationID: "createSourceBambooHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2288,7 +2409,7 @@ func (s *Sources) CreateSourceBigquery(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceBigqueryResponse{ + res := &operations.CreateSourceBambooHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2325,12 +2446,12 @@ func (s *Sources) CreateSourceBigquery(ctx context.Context, request *shared.Sour } -// CreateSourceBingAds - 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) CreateSourceBingAds(ctx context.Context, request *shared.SourceBingAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceBingAdsResponse, error) { +func (s *Sources) CreateSourceBasecamp(ctx context.Context, request *shared.SourceBasecampCreateRequest, opts ...operations.Option) (*operations.CreateSourceBasecampResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBingAds", + OperationID: "createSourceBasecamp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2409,7 +2530,7 @@ func (s *Sources) CreateSourceBingAds(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceBingAdsResponse{ + res := &operations.CreateSourceBasecampResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2446,12 +2567,12 @@ func (s *Sources) CreateSourceBingAds(ctx context.Context, request *shared.Sourc } -// CreateSourceBraintree - 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) CreateSourceBraintree(ctx context.Context, request *shared.SourceBraintreeCreateRequest, opts ...operations.Option) (*operations.CreateSourceBraintreeResponse, error) { +func (s *Sources) CreateSourceBigquery(ctx context.Context, request *shared.SourceBigqueryCreateRequest, opts ...operations.Option) (*operations.CreateSourceBigqueryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBraintree", + OperationID: "createSourceBigquery", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2530,7 +2651,7 @@ func (s *Sources) CreateSourceBraintree(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceBraintreeResponse{ + res := &operations.CreateSourceBigqueryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2567,12 +2688,12 @@ func (s *Sources) CreateSourceBraintree(ctx context.Context, request *shared.Sou } -// CreateSourceBraze - 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) CreateSourceBraze(ctx context.Context, request *shared.SourceBrazeCreateRequest, opts ...operations.Option) (*operations.CreateSourceBrazeResponse, error) { +func (s *Sources) CreateSourceBingAds(ctx context.Context, request *shared.SourceBingAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceBingAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBraze", + OperationID: "createSourceBingAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2651,7 +2772,7 @@ func (s *Sources) CreateSourceBraze(ctx context.Context, request *shared.SourceB } } - res := &operations.CreateSourceBrazeResponse{ + res := &operations.CreateSourceBingAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2688,12 +2809,12 @@ func (s *Sources) CreateSourceBraze(ctx context.Context, request *shared.SourceB } -// CreateSourceBreezyHr - Create a source +// CreateSourceBitly - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceBreezyHr(ctx context.Context, request *shared.SourceBreezyHrCreateRequest, opts ...operations.Option) (*operations.CreateSourceBreezyHrResponse, error) { +func (s *Sources) CreateSourceBitly(ctx context.Context, request *shared.SourceBitlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceBitlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceBreezyHr", + OperationID: "createSourceBitly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2772,7 +2893,7 @@ func (s *Sources) CreateSourceBreezyHr(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceBreezyHrResponse{ + res := &operations.CreateSourceBitlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2809,12 +2930,12 @@ func (s *Sources) CreateSourceBreezyHr(ctx context.Context, request *shared.Sour } -// CreateSourceCalendly - 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) CreateSourceCalendly(ctx context.Context, request *shared.SourceCalendlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceCalendlyResponse, error) { +func (s *Sources) CreateSourceBraintree(ctx context.Context, request *shared.SourceBraintreeCreateRequest, opts ...operations.Option) (*operations.CreateSourceBraintreeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCalendly", + OperationID: "createSourceBraintree", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2893,7 +3014,7 @@ func (s *Sources) CreateSourceCalendly(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceCalendlyResponse{ + res := &operations.CreateSourceBraintreeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2930,12 +3051,12 @@ func (s *Sources) CreateSourceCalendly(ctx context.Context, request *shared.Sour } -// CreateSourceCart - 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) CreateSourceCart(ctx context.Context, request *shared.SourceCartCreateRequest, opts ...operations.Option) (*operations.CreateSourceCartResponse, error) { +func (s *Sources) CreateSourceBraze(ctx context.Context, request *shared.SourceBrazeCreateRequest, opts ...operations.Option) (*operations.CreateSourceBrazeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCart", + OperationID: "createSourceBraze", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3014,7 +3135,7 @@ func (s *Sources) CreateSourceCart(ctx context.Context, request *shared.SourceCa } } - res := &operations.CreateSourceCartResponse{ + res := &operations.CreateSourceBrazeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3051,12 +3172,12 @@ func (s *Sources) CreateSourceCart(ctx context.Context, request *shared.SourceCa } -// CreateSourceChargebee - 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) CreateSourceChargebee(ctx context.Context, request *shared.SourceChargebeeCreateRequest, opts ...operations.Option) (*operations.CreateSourceChargebeeResponse, error) { +func (s *Sources) CreateSourceBreezyHr(ctx context.Context, request *shared.SourceBreezyHrCreateRequest, opts ...operations.Option) (*operations.CreateSourceBreezyHrResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceChargebee", + OperationID: "createSourceBreezyHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3135,7 +3256,7 @@ func (s *Sources) CreateSourceChargebee(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceChargebeeResponse{ + res := &operations.CreateSourceBreezyHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3172,12 +3293,12 @@ func (s *Sources) CreateSourceChargebee(ctx context.Context, request *shared.Sou } -// CreateSourceChartmogul - Create a source +// CreateSourceBrevo - 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) CreateSourceBrevo(ctx context.Context, request *shared.SourceBrevoCreateRequest, opts ...operations.Option) (*operations.CreateSourceBrevoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceChartmogul", + OperationID: "createSourceBrevo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3256,7 +3377,7 @@ func (s *Sources) CreateSourceChartmogul(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceChartmogulResponse{ + res := &operations.CreateSourceBrevoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3293,12 +3414,12 @@ func (s *Sources) CreateSourceChartmogul(ctx context.Context, request *shared.So } -// CreateSourceClazar - Create a source +// CreateSourceBuildkite - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceClazar(ctx context.Context, request *shared.SourceClazarCreateRequest, opts ...operations.Option) (*operations.CreateSourceClazarResponse, error) { +func (s *Sources) CreateSourceBuildkite(ctx context.Context, request *shared.SourceBuildkiteCreateRequest, opts ...operations.Option) (*operations.CreateSourceBuildkiteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceClazar", + OperationID: "createSourceBuildkite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3377,7 +3498,7 @@ func (s *Sources) CreateSourceClazar(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceClazarResponse{ + res := &operations.CreateSourceBuildkiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3414,12 +3535,12 @@ func (s *Sources) CreateSourceClazar(ctx context.Context, request *shared.Source } -// CreateSourceClickhouse - Create a source +// CreateSourceBuzzsprout - 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) CreateSourceBuzzsprout(ctx context.Context, request *shared.SourceBuzzsproutCreateRequest, opts ...operations.Option) (*operations.CreateSourceBuzzsproutResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceClickhouse", + OperationID: "createSourceBuzzsprout", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3498,7 +3619,7 @@ func (s *Sources) CreateSourceClickhouse(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceClickhouseResponse{ + res := &operations.CreateSourceBuzzsproutResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3535,12 +3656,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, } @@ -3619,7 +3740,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, @@ -3656,12 +3777,12 @@ func (s *Sources) CreateSourceClickupAPI(ctx context.Context, request *shared.So } -// CreateSourceClockify - Create a source +// CreateSourceCanny - 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) CreateSourceCanny(ctx context.Context, request *shared.SourceCannyCreateRequest, opts ...operations.Option) (*operations.CreateSourceCannyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceClockify", + OperationID: "createSourceCanny", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3740,7 +3861,7 @@ func (s *Sources) CreateSourceClockify(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceClockifyResponse{ + res := &operations.CreateSourceCannyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3777,12 +3898,12 @@ func (s *Sources) CreateSourceClockify(ctx context.Context, request *shared.Sour } -// CreateSourceCloseCom - 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) CreateSourceCloseCom(ctx context.Context, request *shared.SourceCloseComCreateRequest, opts ...operations.Option) (*operations.CreateSourceCloseComResponse, error) { +func (s *Sources) CreateSourceCart(ctx context.Context, request *shared.SourceCartCreateRequest, opts ...operations.Option) (*operations.CreateSourceCartResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCloseCom", + OperationID: "createSourceCart", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3861,7 +3982,7 @@ func (s *Sources) CreateSourceCloseCom(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceCloseComResponse{ + res := &operations.CreateSourceCartResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3898,12 +4019,12 @@ func (s *Sources) CreateSourceCloseCom(ctx context.Context, request *shared.Sour } -// CreateSourceCoda - Create a source +// CreateSourceChameleon - 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) CreateSourceChameleon(ctx context.Context, request *shared.SourceChameleonCreateRequest, opts ...operations.Option) (*operations.CreateSourceChameleonResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCoda", + OperationID: "createSourceChameleon", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3982,7 +4103,7 @@ func (s *Sources) CreateSourceCoda(ctx context.Context, request *shared.SourceCo } } - res := &operations.CreateSourceCodaResponse{ + res := &operations.CreateSourceChameleonResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4019,12 +4140,12 @@ func (s *Sources) CreateSourceCoda(ctx context.Context, request *shared.SourceCo } -// CreateSourceCoinAPI - 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) CreateSourceCoinAPI(ctx context.Context, request *shared.SourceCoinAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceCoinAPIResponse, error) { +func (s *Sources) CreateSourceChargebee(ctx context.Context, request *shared.SourceChargebeeCreateRequest, opts ...operations.Option) (*operations.CreateSourceChargebeeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCoinApi", + OperationID: "createSourceChargebee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4103,7 +4224,7 @@ func (s *Sources) CreateSourceCoinAPI(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceCoinAPIResponse{ + res := &operations.CreateSourceChargebeeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4140,12 +4261,12 @@ func (s *Sources) CreateSourceCoinAPI(ctx context.Context, request *shared.Sourc } -// CreateSourceCoinmarketcap - 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) CreateSourceCoinmarketcap(ctx context.Context, request *shared.SourceCoinmarketcapCreateRequest, opts ...operations.Option) (*operations.CreateSourceCoinmarketcapResponse, error) { +func (s *Sources) CreateSourceChartmogul(ctx context.Context, request *shared.SourceChartmogulCreateRequest, opts ...operations.Option) (*operations.CreateSourceChartmogulResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCoinmarketcap", + OperationID: "createSourceChartmogul", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4224,7 +4345,7 @@ func (s *Sources) CreateSourceCoinmarketcap(ctx context.Context, request *shared } } - res := &operations.CreateSourceCoinmarketcapResponse{ + res := &operations.CreateSourceChartmogulResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4261,12 +4382,12 @@ func (s *Sources) CreateSourceCoinmarketcap(ctx context.Context, request *shared } -// CreateSourceConfigcat - Create a source +// CreateSourceCimis - 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) CreateSourceCimis(ctx context.Context, request *shared.SourceCimisCreateRequest, opts ...operations.Option) (*operations.CreateSourceCimisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceConfigcat", + OperationID: "createSourceCimis", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4345,7 +4466,7 @@ func (s *Sources) CreateSourceConfigcat(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceConfigcatResponse{ + res := &operations.CreateSourceCimisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4382,12 +4503,12 @@ func (s *Sources) CreateSourceConfigcat(ctx context.Context, request *shared.Sou } -// CreateSourceConfluence - 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) CreateSourceConfluence(ctx context.Context, request *shared.SourceConfluenceCreateRequest, opts ...operations.Option) (*operations.CreateSourceConfluenceResponse, error) { +func (s *Sources) CreateSourceClazar(ctx context.Context, request *shared.SourceClazarCreateRequest, opts ...operations.Option) (*operations.CreateSourceClazarResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceConfluence", + OperationID: "createSourceClazar", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4466,7 +4587,7 @@ func (s *Sources) CreateSourceConfluence(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceConfluenceResponse{ + res := &operations.CreateSourceClazarResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4503,12 +4624,12 @@ func (s *Sources) CreateSourceConfluence(ctx context.Context, request *shared.So } -// CreateSourceConvex - 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) CreateSourceConvex(ctx context.Context, request *shared.SourceConvexCreateRequest, opts ...operations.Option) (*operations.CreateSourceConvexResponse, error) { +func (s *Sources) CreateSourceClickhouse(ctx context.Context, request *shared.SourceClickhouseCreateRequest, opts ...operations.Option) (*operations.CreateSourceClickhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceConvex", + OperationID: "createSourceClickhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4587,7 +4708,7 @@ func (s *Sources) CreateSourceConvex(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceConvexResponse{ + res := &operations.CreateSourceClickhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4624,12 +4745,12 @@ func (s *Sources) CreateSourceConvex(ctx context.Context, request *shared.Source } -// CreateSourceCustom - 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) CreateSourceCustom(ctx context.Context, request *shared.SourceCustomCreateRequest, opts ...operations.Option) (*operations.CreateSourceCustomResponse, error) { +func (s *Sources) CreateSourceClickupAPI(ctx context.Context, request *shared.SourceClickupAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceClickupAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCustom", + OperationID: "createSourceClickupApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4708,7 +4829,7 @@ func (s *Sources) CreateSourceCustom(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceCustomResponse{ + res := &operations.CreateSourceClickupAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4745,12 +4866,12 @@ func (s *Sources) CreateSourceCustom(ctx context.Context, request *shared.Source } -// CreateSourceCustomerIo - 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) CreateSourceCustomerIo(ctx context.Context, request *shared.SourceCustomerIoCreateRequest, opts ...operations.Option) (*operations.CreateSourceCustomerIoResponse, error) { +func (s *Sources) CreateSourceClockify(ctx context.Context, request *shared.SourceClockifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceClockifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceCustomerIo", + OperationID: "createSourceClockify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4829,7 +4950,7 @@ func (s *Sources) CreateSourceCustomerIo(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceCustomerIoResponse{ + res := &operations.CreateSourceClockifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4866,12 +4987,12 @@ func (s *Sources) CreateSourceCustomerIo(ctx context.Context, request *shared.So } -// CreateSourceDatadog - 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) CreateSourceDatadog(ctx context.Context, request *shared.SourceDatadogCreateRequest, opts ...operations.Option) (*operations.CreateSourceDatadogResponse, error) { +func (s *Sources) CreateSourceCloseCom(ctx context.Context, request *shared.SourceCloseComCreateRequest, opts ...operations.Option) (*operations.CreateSourceCloseComResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDatadog", + OperationID: "createSourceCloseCom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4950,7 +5071,7 @@ func (s *Sources) CreateSourceDatadog(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceDatadogResponse{ + res := &operations.CreateSourceCloseComResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4987,12 +5108,12 @@ func (s *Sources) CreateSourceDatadog(ctx context.Context, request *shared.Sourc } -// CreateSourceDatascope - 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) CreateSourceDatascope(ctx context.Context, request *shared.SourceDatascopeCreateRequest, opts ...operations.Option) (*operations.CreateSourceDatascopeResponse, error) { +func (s *Sources) CreateSourceCoda(ctx context.Context, request *shared.SourceCodaCreateRequest, opts ...operations.Option) (*operations.CreateSourceCodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDatascope", + OperationID: "createSourceCoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5071,7 +5192,7 @@ func (s *Sources) CreateSourceDatascope(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceDatascopeResponse{ + res := &operations.CreateSourceCodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5108,12 +5229,12 @@ func (s *Sources) CreateSourceDatascope(ctx context.Context, request *shared.Sou } -// CreateSourceDbt - 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) CreateSourceDbt(ctx context.Context, request *shared.SourceDbtCreateRequest, opts ...operations.Option) (*operations.CreateSourceDbtResponse, error) { +func (s *Sources) CreateSourceCoinAPI(ctx context.Context, request *shared.SourceCoinAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceCoinAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDbt", + OperationID: "createSourceCoinApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5192,7 +5313,7 @@ func (s *Sources) CreateSourceDbt(ctx context.Context, request *shared.SourceDbt } } - res := &operations.CreateSourceDbtResponse{ + res := &operations.CreateSourceCoinAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5229,12 +5350,12 @@ func (s *Sources) CreateSourceDbt(ctx context.Context, request *shared.SourceDbt } -// 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, } @@ -5313,7 +5434,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, @@ -5350,12 +5471,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, } @@ -5434,7 +5555,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, @@ -5471,12 +5592,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, } @@ -5555,7 +5676,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, @@ -5592,12 +5713,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, } @@ -5676,7 +5797,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, @@ -5713,12 +5834,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, } @@ -5797,7 +5918,7 @@ 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, @@ -5834,12 +5955,12 @@ func (s *Sources) CreateSourceDynamodb(ctx context.Context, request *shared.Sour } -// CreateSourceEmailoctopus - Create a source +// 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) CreateSourceEmailoctopus(ctx context.Context, request *shared.SourceEmailoctopusCreateRequest, opts ...operations.Option) (*operations.CreateSourceEmailoctopusResponse, error) { +func (s *Sources) CreateSourceCustomerIo(ctx context.Context, request *shared.SourceCustomerIoCreateRequest, opts ...operations.Option) (*operations.CreateSourceCustomerIoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceEmailoctopus", + OperationID: "createSourceCustomerIo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5918,7 +6039,128 @@ func (s *Sources) CreateSourceEmailoctopus(ctx context.Context, request *shared. } } - res := &operations.CreateSourceEmailoctopusResponse{ + res := &operations.CreateSourceCustomerIoResponse{ + 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 + +} + +// 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) CreateSourceDatadog(ctx context.Context, request *shared.SourceDatadogCreateRequest, opts ...operations.Option) (*operations.CreateSourceDatadogResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "createSourceDatadog", + 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.CreateSourceDatadogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5955,12 +6197,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, } @@ -6039,7 +6281,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, @@ -6076,12 +6318,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, } @@ -6160,7 +6402,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, @@ -6197,12 +6439,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, } @@ -6281,7 +6523,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, @@ -6318,12 +6560,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, } @@ -6402,7 +6644,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, @@ -6439,12 +6681,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, } @@ -6523,7 +6765,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, @@ -6560,12 +6802,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, } @@ -6644,7 +6886,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, @@ -6681,12 +6923,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, } @@ -6765,7 +7007,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, @@ -6802,12 +7044,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, } @@ -6886,7 +7128,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, @@ -6923,12 +7165,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, } @@ -7007,7 +7249,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, @@ -7044,12 +7286,12 @@ func (s *Sources) CreateSourceFreshdesk(ctx context.Context, request *shared.Sou } -// CreateSourceFreshsales - Create a source +// CreateSourceEzofficeinventory - 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) CreateSourceEzofficeinventory(ctx context.Context, request *shared.SourceEzofficeinventoryCreateRequest, opts ...operations.Option) (*operations.CreateSourceEzofficeinventoryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFreshsales", + OperationID: "createSourceEzofficeinventory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7128,7 +7370,7 @@ func (s *Sources) CreateSourceFreshsales(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceFreshsalesResponse{ + res := &operations.CreateSourceEzofficeinventoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7165,12 +7407,12 @@ func (s *Sources) CreateSourceFreshsales(ctx context.Context, request *shared.So } -// CreateSourceGainsightPx - 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) CreateSourceGainsightPx(ctx context.Context, request *shared.SourceGainsightPxCreateRequest, opts ...operations.Option) (*operations.CreateSourceGainsightPxResponse, error) { +func (s *Sources) CreateSourceFacebookMarketing(ctx context.Context, request *shared.SourceFacebookMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceFacebookMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGainsightPx", + OperationID: "createSourceFacebookMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7249,7 +7491,7 @@ func (s *Sources) CreateSourceGainsightPx(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceGainsightPxResponse{ + res := &operations.CreateSourceFacebookMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7286,12 +7528,12 @@ func (s *Sources) CreateSourceGainsightPx(ctx context.Context, request *shared.S } -// CreateSourceGcs - 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) CreateSourceGcs(ctx context.Context, request *shared.SourceGcsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGcsResponse, error) { +func (s *Sources) CreateSourceFaker(ctx context.Context, request *shared.SourceFakerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFakerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGcs", + OperationID: "createSourceFaker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7370,7 +7612,7 @@ func (s *Sources) CreateSourceGcs(ctx context.Context, request *shared.SourceGcs } } - res := &operations.CreateSourceGcsResponse{ + res := &operations.CreateSourceFakerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7407,12 +7649,12 @@ func (s *Sources) CreateSourceGcs(ctx context.Context, request *shared.SourceGcs } -// CreateSourceGetlago - 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) CreateSourceGetlago(ctx context.Context, request *shared.SourceGetlagoCreateRequest, opts ...operations.Option) (*operations.CreateSourceGetlagoResponse, error) { +func (s *Sources) CreateSourceFauna(ctx context.Context, request *shared.SourceFaunaCreateRequest, opts ...operations.Option) (*operations.CreateSourceFaunaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGetlago", + OperationID: "createSourceFauna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7491,7 +7733,7 @@ func (s *Sources) CreateSourceGetlago(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceGetlagoResponse{ + res := &operations.CreateSourceFaunaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7528,12 +7770,12 @@ func (s *Sources) CreateSourceGetlago(ctx context.Context, request *shared.Sourc } -// CreateSourceGithub - 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) CreateSourceGithub(ctx context.Context, request *shared.SourceGithubCreateRequest, opts ...operations.Option) (*operations.CreateSourceGithubResponse, error) { +func (s *Sources) CreateSourceFile(ctx context.Context, request *shared.SourceFileCreateRequest, opts ...operations.Option) (*operations.CreateSourceFileResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGithub", + OperationID: "createSourceFile", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7612,7 +7854,7 @@ func (s *Sources) CreateSourceGithub(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceGithubResponse{ + res := &operations.CreateSourceFileResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7649,12 +7891,12 @@ func (s *Sources) CreateSourceGithub(ctx context.Context, request *shared.Source } -// CreateSourceGitlab - 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) CreateSourceGitlab(ctx context.Context, request *shared.SourceGitlabCreateRequest, opts ...operations.Option) (*operations.CreateSourceGitlabResponse, error) { +func (s *Sources) CreateSourceFirebolt(ctx context.Context, request *shared.SourceFireboltCreateRequest, opts ...operations.Option) (*operations.CreateSourceFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGitlab", + OperationID: "createSourceFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7733,7 +7975,7 @@ func (s *Sources) CreateSourceGitlab(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceGitlabResponse{ + res := &operations.CreateSourceFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7770,12 +8012,12 @@ func (s *Sources) CreateSourceGitlab(ctx context.Context, request *shared.Source } -// CreateSourceGlassfrog - 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) CreateSourceGlassfrog(ctx context.Context, request *shared.SourceGlassfrogCreateRequest, opts ...operations.Option) (*operations.CreateSourceGlassfrogResponse, error) { +func (s *Sources) CreateSourceFleetio(ctx context.Context, request *shared.SourceFleetioCreateRequest, opts ...operations.Option) (*operations.CreateSourceFleetioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGlassfrog", + OperationID: "createSourceFleetio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7854,7 +8096,7 @@ func (s *Sources) CreateSourceGlassfrog(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceGlassfrogResponse{ + res := &operations.CreateSourceFleetioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7891,12 +8133,12 @@ func (s *Sources) CreateSourceGlassfrog(ctx context.Context, request *shared.Sou } -// CreateSourceGnews - 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) CreateSourceGnews(ctx context.Context, request *shared.SourceGnewsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGnewsResponse, error) { +func (s *Sources) CreateSourceFreshcaller(ctx context.Context, request *shared.SourceFreshcallerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshcallerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGnews", + OperationID: "createSourceFreshcaller", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7975,7 +8217,7 @@ func (s *Sources) CreateSourceGnews(ctx context.Context, request *shared.SourceG } } - res := &operations.CreateSourceGnewsResponse{ + res := &operations.CreateSourceFreshcallerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8012,12 +8254,12 @@ func (s *Sources) CreateSourceGnews(ctx context.Context, request *shared.SourceG } -// CreateSourceGoldcast - 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) CreateSourceGoldcast(ctx context.Context, request *shared.SourceGoldcastCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoldcastResponse, error) { +func (s *Sources) CreateSourceFreshdesk(ctx context.Context, request *shared.SourceFreshdeskCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshdeskResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoldcast", + OperationID: "createSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8096,7 +8338,7 @@ func (s *Sources) CreateSourceGoldcast(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceGoldcastResponse{ + res := &operations.CreateSourceFreshdeskResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8133,12 +8375,12 @@ func (s *Sources) CreateSourceGoldcast(ctx context.Context, request *shared.Sour } -// CreateSourceGoogleAds - Create a source +// CreateSourceFreshsales - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.SourceGoogleAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAdsResponse, error) { +func (s *Sources) CreateSourceFreshsales(ctx context.Context, request *shared.SourceFreshsalesCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshsalesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleAds", + OperationID: "createSourceFreshsales", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8217,7 +8459,7 @@ func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceGoogleAdsResponse{ + res := &operations.CreateSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8254,12 +8496,12 @@ func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.Sou } -// CreateSourceGoogleAnalyticsDataAPI - Create a source +// CreateSourceFront - 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) CreateSourceFront(ctx context.Context, request *shared.SourceFrontCreateRequest, opts ...operations.Option) (*operations.CreateSourceFrontResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleAnalyticsDataApi", + OperationID: "createSourceFront", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8338,7 +8580,7 @@ func (s *Sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } } - res := &operations.CreateSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.CreateSourceFrontResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8375,12 +8617,12 @@ func (s *Sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } -// CreateSourceGoogleDirectory - 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) CreateSourceGoogleDirectory(ctx context.Context, request *shared.SourceGoogleDirectoryCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleDirectoryResponse, error) { +func (s *Sources) CreateSourceGainsightPx(ctx context.Context, request *shared.SourceGainsightPxCreateRequest, opts ...operations.Option) (*operations.CreateSourceGainsightPxResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleDirectory", + OperationID: "createSourceGainsightPx", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8459,7 +8701,7 @@ func (s *Sources) CreateSourceGoogleDirectory(ctx context.Context, request *shar } } - res := &operations.CreateSourceGoogleDirectoryResponse{ + res := &operations.CreateSourceGainsightPxResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8496,12 +8738,12 @@ func (s *Sources) CreateSourceGoogleDirectory(ctx context.Context, request *shar } -// CreateSourceGoogleDrive - 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) CreateSourceGoogleDrive(ctx context.Context, request *shared.SourceGoogleDriveCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleDriveResponse, error) { +func (s *Sources) CreateSourceGcs(ctx context.Context, request *shared.SourceGcsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGcsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleDrive", + OperationID: "createSourceGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8580,7 +8822,7 @@ func (s *Sources) CreateSourceGoogleDrive(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceGoogleDriveResponse{ + res := &operations.CreateSourceGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8617,12 +8859,12 @@ func (s *Sources) CreateSourceGoogleDrive(ctx context.Context, request *shared.S } -// CreateSourceGooglePagespeedInsights - 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) CreateSourceGooglePagespeedInsights(ctx context.Context, request *shared.SourceGooglePagespeedInsightsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGooglePagespeedInsightsResponse, error) { +func (s *Sources) CreateSourceGetlago(ctx context.Context, request *shared.SourceGetlagoCreateRequest, opts ...operations.Option) (*operations.CreateSourceGetlagoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGooglePagespeedInsights", + OperationID: "createSourceGetlago", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8701,7 +8943,7 @@ func (s *Sources) CreateSourceGooglePagespeedInsights(ctx context.Context, reque } } - res := &operations.CreateSourceGooglePagespeedInsightsResponse{ + res := &operations.CreateSourceGetlagoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8738,12 +8980,12 @@ func (s *Sources) CreateSourceGooglePagespeedInsights(ctx context.Context, reque } -// CreateSourceGoogleSearchConsole - 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) CreateSourceGoogleSearchConsole(ctx context.Context, request *shared.SourceGoogleSearchConsoleCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleSearchConsoleResponse, error) { +func (s *Sources) CreateSourceGithub(ctx context.Context, request *shared.SourceGithubCreateRequest, opts ...operations.Option) (*operations.CreateSourceGithubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleSearchConsole", + OperationID: "createSourceGithub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8822,7 +9064,7 @@ func (s *Sources) CreateSourceGoogleSearchConsole(ctx context.Context, request * } } - res := &operations.CreateSourceGoogleSearchConsoleResponse{ + res := &operations.CreateSourceGithubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8859,12 +9101,12 @@ func (s *Sources) CreateSourceGoogleSearchConsole(ctx context.Context, request * } -// CreateSourceGoogleSheets - 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) CreateSourceGoogleSheets(ctx context.Context, request *shared.SourceGoogleSheetsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleSheetsResponse, error) { +func (s *Sources) CreateSourceGitlab(ctx context.Context, request *shared.SourceGitlabCreateRequest, opts ...operations.Option) (*operations.CreateSourceGitlabResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleSheets", + OperationID: "createSourceGitlab", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -8943,7 +9185,7 @@ func (s *Sources) CreateSourceGoogleSheets(ctx context.Context, request *shared. } } - res := &operations.CreateSourceGoogleSheetsResponse{ + res := &operations.CreateSourceGitlabResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -8980,12 +9222,12 @@ func (s *Sources) CreateSourceGoogleSheets(ctx context.Context, request *shared. } -// CreateSourceGoogleWebfonts - 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) CreateSourceGoogleWebfonts(ctx context.Context, request *shared.SourceGoogleWebfontsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleWebfontsResponse, error) { +func (s *Sources) CreateSourceGlassfrog(ctx context.Context, request *shared.SourceGlassfrogCreateRequest, opts ...operations.Option) (*operations.CreateSourceGlassfrogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleWebfonts", + OperationID: "createSourceGlassfrog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9064,7 +9306,7 @@ func (s *Sources) CreateSourceGoogleWebfonts(ctx context.Context, request *share } } - res := &operations.CreateSourceGoogleWebfontsResponse{ + res := &operations.CreateSourceGlassfrogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9101,12 +9343,12 @@ func (s *Sources) CreateSourceGoogleWebfonts(ctx context.Context, request *share } -// CreateSourceGreenhouse - 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) CreateSourceGreenhouse(ctx context.Context, request *shared.SourceGreenhouseCreateRequest, opts ...operations.Option) (*operations.CreateSourceGreenhouseResponse, error) { +func (s *Sources) CreateSourceGnews(ctx context.Context, request *shared.SourceGnewsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGnewsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGreenhouse", + OperationID: "createSourceGnews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9185,7 +9427,7 @@ func (s *Sources) CreateSourceGreenhouse(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceGreenhouseResponse{ + res := &operations.CreateSourceGnewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9222,12 +9464,12 @@ func (s *Sources) CreateSourceGreenhouse(ctx context.Context, request *shared.So } -// CreateSourceGridly - 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) CreateSourceGridly(ctx context.Context, request *shared.SourceGridlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceGridlyResponse, error) { +func (s *Sources) CreateSourceGoldcast(ctx context.Context, request *shared.SourceGoldcastCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoldcastResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGridly", + OperationID: "createSourceGoldcast", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9306,7 +9548,7 @@ func (s *Sources) CreateSourceGridly(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceGridlyResponse{ + res := &operations.CreateSourceGoldcastResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9343,12 +9585,12 @@ func (s *Sources) CreateSourceGridly(ctx context.Context, request *shared.Source } -// CreateSourceHardcodedRecords - 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) CreateSourceHardcodedRecords(ctx context.Context, request *shared.SourceHardcodedRecordsCreateRequest, opts ...operations.Option) (*operations.CreateSourceHardcodedRecordsResponse, error) { +func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.SourceGoogleAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceHardcodedRecords", + OperationID: "createSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9427,7 +9669,7 @@ func (s *Sources) CreateSourceHardcodedRecords(ctx context.Context, request *sha } } - res := &operations.CreateSourceHardcodedRecordsResponse{ + res := &operations.CreateSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9464,12 +9706,12 @@ func (s *Sources) CreateSourceHardcodedRecords(ctx context.Context, request *sha } -// CreateSourceHarvest - 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) CreateSourceHarvest(ctx context.Context, request *shared.SourceHarvestCreateRequest, opts ...operations.Option) (*operations.CreateSourceHarvestResponse, error) { +func (s *Sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, request *shared.SourceGoogleAnalyticsDataAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAnalyticsDataAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceHarvest", + OperationID: "createSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9548,7 +9790,7 @@ func (s *Sources) CreateSourceHarvest(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceHarvestResponse{ + res := &operations.CreateSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9585,12 +9827,12 @@ func (s *Sources) CreateSourceHarvest(ctx context.Context, request *shared.Sourc } -// CreateSourceHibob - 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) CreateSourceHibob(ctx context.Context, request *shared.SourceHibobCreateRequest, opts ...operations.Option) (*operations.CreateSourceHibobResponse, error) { +func (s *Sources) CreateSourceGoogleDirectory(ctx context.Context, request *shared.SourceGoogleDirectoryCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleDirectoryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceHibob", + OperationID: "createSourceGoogleDirectory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9669,7 +9911,7 @@ func (s *Sources) CreateSourceHibob(ctx context.Context, request *shared.SourceH } } - res := &operations.CreateSourceHibobResponse{ + res := &operations.CreateSourceGoogleDirectoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9706,12 +9948,12 @@ func (s *Sources) CreateSourceHibob(ctx context.Context, request *shared.SourceH } -// CreateSourceHighLevel - 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) CreateSourceHighLevel(ctx context.Context, request *shared.SourceHighLevelCreateRequest, opts ...operations.Option) (*operations.CreateSourceHighLevelResponse, error) { +func (s *Sources) CreateSourceGoogleDrive(ctx context.Context, request *shared.SourceGoogleDriveCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleDriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceHighLevel", + OperationID: "createSourceGoogleDrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -9790,7 +10032,7 @@ func (s *Sources) CreateSourceHighLevel(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceHighLevelResponse{ + res := &operations.CreateSourceGoogleDriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -9827,12 +10069,12 @@ func (s *Sources) CreateSourceHighLevel(ctx context.Context, request *shared.Sou } -// 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, } @@ -9911,7 +10153,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, @@ -9948,12 +10190,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, } @@ -10032,7 +10274,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, @@ -10069,12 +10311,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, } @@ -10153,7 +10395,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, @@ -10190,12 +10432,12 @@ func (s *Sources) CreateSourceInsightly(ctx context.Context, request *shared.Sou } -// CreateSourceInstagram - Create a source +// CreateSourceGoogleTasks - 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) CreateSourceGoogleTasks(ctx context.Context, request *shared.SourceGoogleTasksCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleTasksResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceInstagram", + OperationID: "createSourceGoogleTasks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10274,7 +10516,7 @@ func (s *Sources) CreateSourceInstagram(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceInstagramResponse{ + res := &operations.CreateSourceGoogleTasksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10311,12 +10553,12 @@ func (s *Sources) CreateSourceInstagram(ctx context.Context, request *shared.Sou } -// CreateSourceInstatus - 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) CreateSourceInstatus(ctx context.Context, request *shared.SourceInstatusCreateRequest, opts ...operations.Option) (*operations.CreateSourceInstatusResponse, error) { +func (s *Sources) CreateSourceGoogleWebfonts(ctx context.Context, request *shared.SourceGoogleWebfontsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleWebfontsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceInstatus", + OperationID: "createSourceGoogleWebfonts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10395,7 +10637,7 @@ func (s *Sources) CreateSourceInstatus(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceInstatusResponse{ + res := &operations.CreateSourceGoogleWebfontsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10432,12 +10674,12 @@ func (s *Sources) CreateSourceInstatus(ctx context.Context, request *shared.Sour } -// CreateSourceIntercom - 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) CreateSourceIntercom(ctx context.Context, request *shared.SourceIntercomCreateRequest, opts ...operations.Option) (*operations.CreateSourceIntercomResponse, error) { +func (s *Sources) CreateSourceGreenhouse(ctx context.Context, request *shared.SourceGreenhouseCreateRequest, opts ...operations.Option) (*operations.CreateSourceGreenhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceIntercom", + OperationID: "createSourceGreenhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10516,7 +10758,7 @@ func (s *Sources) CreateSourceIntercom(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceIntercomResponse{ + res := &operations.CreateSourceGreenhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10553,12 +10795,12 @@ func (s *Sources) CreateSourceIntercom(ctx context.Context, request *shared.Sour } -// CreateSourceIp2whois - 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) CreateSourceIp2whois(ctx context.Context, request *shared.SourceIp2whoisCreateRequest, opts ...operations.Option) (*operations.CreateSourceIp2whoisResponse, error) { +func (s *Sources) CreateSourceGridly(ctx context.Context, request *shared.SourceGridlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceGridlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceIp2whois", + OperationID: "createSourceGridly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10637,7 +10879,7 @@ func (s *Sources) CreateSourceIp2whois(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceIp2whoisResponse{ + res := &operations.CreateSourceGridlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10674,12 +10916,12 @@ func (s *Sources) CreateSourceIp2whois(ctx context.Context, request *shared.Sour } -// CreateSourceIterable - Create a source +// CreateSourceGuru - 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) CreateSourceGuru(ctx context.Context, request *shared.SourceGuruCreateRequest, opts ...operations.Option) (*operations.CreateSourceGuruResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceIterable", + OperationID: "createSourceGuru", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10758,7 +11000,7 @@ func (s *Sources) CreateSourceIterable(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceIterableResponse{ + res := &operations.CreateSourceGuruResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10795,12 +11037,12 @@ func (s *Sources) CreateSourceIterable(ctx context.Context, request *shared.Sour } -// CreateSourceJira - 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) CreateSourceJira(ctx context.Context, request *shared.SourceJiraCreateRequest, opts ...operations.Option) (*operations.CreateSourceJiraResponse, error) { +func (s *Sources) CreateSourceHardcodedRecords(ctx context.Context, request *shared.SourceHardcodedRecordsCreateRequest, opts ...operations.Option) (*operations.CreateSourceHardcodedRecordsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceJira", + OperationID: "createSourceHardcodedRecords", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -10879,7 +11121,7 @@ func (s *Sources) CreateSourceJira(ctx context.Context, request *shared.SourceJi } } - res := &operations.CreateSourceJiraResponse{ + res := &operations.CreateSourceHardcodedRecordsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -10916,12 +11158,12 @@ func (s *Sources) CreateSourceJira(ctx context.Context, request *shared.SourceJi } -// CreateSourceK6Cloud - 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) CreateSourceK6Cloud(ctx context.Context, request *shared.SourceK6CloudCreateRequest, opts ...operations.Option) (*operations.CreateSourceK6CloudResponse, error) { +func (s *Sources) CreateSourceHarvest(ctx context.Context, request *shared.SourceHarvestCreateRequest, opts ...operations.Option) (*operations.CreateSourceHarvestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceK6Cloud", + OperationID: "createSourceHarvest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11000,7 +11242,7 @@ func (s *Sources) CreateSourceK6Cloud(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceK6CloudResponse{ + res := &operations.CreateSourceHarvestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11037,12 +11279,12 @@ func (s *Sources) CreateSourceK6Cloud(ctx context.Context, request *shared.Sourc } -// CreateSourceKlarna - Create a source +// CreateSourceHeight - 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) CreateSourceHeight(ctx context.Context, request *shared.SourceHeightCreateRequest, opts ...operations.Option) (*operations.CreateSourceHeightResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceKlarna", + OperationID: "createSourceHeight", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11121,7 +11363,7 @@ func (s *Sources) CreateSourceKlarna(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceKlarnaResponse{ + res := &operations.CreateSourceHeightResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11158,12 +11400,12 @@ func (s *Sources) CreateSourceKlarna(ctx context.Context, request *shared.Source } -// CreateSourceKlaviyo - 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) CreateSourceKlaviyo(ctx context.Context, request *shared.SourceKlaviyoCreateRequest, opts ...operations.Option) (*operations.CreateSourceKlaviyoResponse, error) { +func (s *Sources) CreateSourceHibob(ctx context.Context, request *shared.SourceHibobCreateRequest, opts ...operations.Option) (*operations.CreateSourceHibobResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceKlaviyo", + OperationID: "createSourceHibob", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11242,7 +11484,7 @@ func (s *Sources) CreateSourceKlaviyo(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceKlaviyoResponse{ + res := &operations.CreateSourceHibobResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11279,12 +11521,12 @@ func (s *Sources) CreateSourceKlaviyo(ctx context.Context, request *shared.Sourc } -// CreateSourceKyve - 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) CreateSourceKyve(ctx context.Context, request *shared.SourceKyveCreateRequest, opts ...operations.Option) (*operations.CreateSourceKyveResponse, error) { +func (s *Sources) CreateSourceHighLevel(ctx context.Context, request *shared.SourceHighLevelCreateRequest, opts ...operations.Option) (*operations.CreateSourceHighLevelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceKyve", + OperationID: "createSourceHighLevel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11363,7 +11605,7 @@ func (s *Sources) CreateSourceKyve(ctx context.Context, request *shared.SourceKy } } - res := &operations.CreateSourceKyveResponse{ + res := &operations.CreateSourceHighLevelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11400,12 +11642,12 @@ func (s *Sources) CreateSourceKyve(ctx context.Context, request *shared.SourceKy } -// CreateSourceLaunchdarkly - 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) CreateSourceLaunchdarkly(ctx context.Context, request *shared.SourceLaunchdarklyCreateRequest, opts ...operations.Option) (*operations.CreateSourceLaunchdarklyResponse, error) { +func (s *Sources) CreateSourceHubplanner(ctx context.Context, request *shared.SourceHubplannerCreateRequest, opts ...operations.Option) (*operations.CreateSourceHubplannerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLaunchdarkly", + OperationID: "createSourceHubplanner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11484,7 +11726,7 @@ func (s *Sources) CreateSourceLaunchdarkly(ctx context.Context, request *shared. } } - res := &operations.CreateSourceLaunchdarklyResponse{ + res := &operations.CreateSourceHubplannerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11521,12 +11763,12 @@ func (s *Sources) CreateSourceLaunchdarkly(ctx context.Context, request *shared. } -// CreateSourceLeadfeeder - 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) CreateSourceLeadfeeder(ctx context.Context, request *shared.SourceLeadfeederCreateRequest, opts ...operations.Option) (*operations.CreateSourceLeadfeederResponse, error) { +func (s *Sources) CreateSourceHubspot(ctx context.Context, request *shared.SourceHubspotCreateRequest, opts ...operations.Option) (*operations.CreateSourceHubspotResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLeadfeeder", + OperationID: "createSourceHubspot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11605,7 +11847,7 @@ func (s *Sources) CreateSourceLeadfeeder(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceLeadfeederResponse{ + res := &operations.CreateSourceHubspotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11642,12 +11884,12 @@ func (s *Sources) CreateSourceLeadfeeder(ctx context.Context, request *shared.So } -// CreateSourceLemlist - 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) CreateSourceLemlist(ctx context.Context, request *shared.SourceLemlistCreateRequest, opts ...operations.Option) (*operations.CreateSourceLemlistResponse, error) { +func (s *Sources) CreateSourceInsightly(ctx context.Context, request *shared.SourceInsightlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceInsightlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLemlist", + OperationID: "createSourceInsightly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11726,7 +11968,7 @@ func (s *Sources) CreateSourceLemlist(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceLemlistResponse{ + res := &operations.CreateSourceInsightlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11763,12 +12005,12 @@ func (s *Sources) CreateSourceLemlist(ctx context.Context, request *shared.Sourc } -// CreateSourceLeverHiring - 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) CreateSourceLeverHiring(ctx context.Context, request *shared.SourceLeverHiringCreateRequest, opts ...operations.Option) (*operations.CreateSourceLeverHiringResponse, error) { +func (s *Sources) CreateSourceInstagram(ctx context.Context, request *shared.SourceInstagramCreateRequest, opts ...operations.Option) (*operations.CreateSourceInstagramResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLeverHiring", + OperationID: "createSourceInstagram", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11847,7 +12089,7 @@ func (s *Sources) CreateSourceLeverHiring(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceLeverHiringResponse{ + res := &operations.CreateSourceInstagramResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -11884,12 +12126,12 @@ func (s *Sources) CreateSourceLeverHiring(ctx context.Context, request *shared.S } -// CreateSourceLinkedinAds - 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) CreateSourceLinkedinAds(ctx context.Context, request *shared.SourceLinkedinAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinkedinAdsResponse, error) { +func (s *Sources) CreateSourceInstatus(ctx context.Context, request *shared.SourceInstatusCreateRequest, opts ...operations.Option) (*operations.CreateSourceInstatusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLinkedinAds", + OperationID: "createSourceInstatus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -11968,7 +12210,7 @@ func (s *Sources) CreateSourceLinkedinAds(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceLinkedinAdsResponse{ + res := &operations.CreateSourceInstatusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12005,12 +12247,12 @@ func (s *Sources) CreateSourceLinkedinAds(ctx context.Context, request *shared.S } -// CreateSourceLinkedinPages - 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) CreateSourceLinkedinPages(ctx context.Context, request *shared.SourceLinkedinPagesCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinkedinPagesResponse, error) { +func (s *Sources) CreateSourceIntercom(ctx context.Context, request *shared.SourceIntercomCreateRequest, opts ...operations.Option) (*operations.CreateSourceIntercomResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLinkedinPages", + OperationID: "createSourceIntercom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12089,7 +12331,7 @@ func (s *Sources) CreateSourceLinkedinPages(ctx context.Context, request *shared } } - res := &operations.CreateSourceLinkedinPagesResponse{ + res := &operations.CreateSourceIntercomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12126,12 +12368,12 @@ func (s *Sources) CreateSourceLinkedinPages(ctx context.Context, request *shared } -// CreateSourceLinnworks - 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) CreateSourceLinnworks(ctx context.Context, request *shared.SourceLinnworksCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinnworksResponse, error) { +func (s *Sources) CreateSourceIp2whois(ctx context.Context, request *shared.SourceIp2whoisCreateRequest, opts ...operations.Option) (*operations.CreateSourceIp2whoisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLinnworks", + OperationID: "createSourceIp2whois", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12210,7 +12452,7 @@ func (s *Sources) CreateSourceLinnworks(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceLinnworksResponse{ + res := &operations.CreateSourceIp2whoisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12247,12 +12489,12 @@ func (s *Sources) CreateSourceLinnworks(ctx context.Context, request *shared.Sou } -// CreateSourceLokalise - 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) CreateSourceLokalise(ctx context.Context, request *shared.SourceLokaliseCreateRequest, opts ...operations.Option) (*operations.CreateSourceLokaliseResponse, error) { +func (s *Sources) CreateSourceIterable(ctx context.Context, request *shared.SourceIterableCreateRequest, opts ...operations.Option) (*operations.CreateSourceIterableResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLokalise", + OperationID: "createSourceIterable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12331,7 +12573,7 @@ func (s *Sources) CreateSourceLokalise(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceLokaliseResponse{ + res := &operations.CreateSourceIterableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12368,12 +12610,12 @@ func (s *Sources) CreateSourceLokalise(ctx context.Context, request *shared.Sour } -// CreateSourceLooker - 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) CreateSourceLooker(ctx context.Context, request *shared.SourceLookerCreateRequest, opts ...operations.Option) (*operations.CreateSourceLookerResponse, error) { +func (s *Sources) CreateSourceJira(ctx context.Context, request *shared.SourceJiraCreateRequest, opts ...operations.Option) (*operations.CreateSourceJiraResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLooker", + OperationID: "createSourceJira", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12452,7 +12694,7 @@ func (s *Sources) CreateSourceLooker(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceLookerResponse{ + res := &operations.CreateSourceJiraResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12489,12 +12731,12 @@ func (s *Sources) CreateSourceLooker(ctx context.Context, request *shared.Source } -// CreateSourceLuma - Create a source +// CreateSourceJotform - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceLuma(ctx context.Context, request *shared.SourceLumaCreateRequest, opts ...operations.Option) (*operations.CreateSourceLumaResponse, error) { +func (s *Sources) CreateSourceJotform(ctx context.Context, request *shared.SourceJotformCreateRequest, opts ...operations.Option) (*operations.CreateSourceJotformResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceLuma", + OperationID: "createSourceJotform", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12573,7 +12815,7 @@ func (s *Sources) CreateSourceLuma(ctx context.Context, request *shared.SourceLu } } - res := &operations.CreateSourceLumaResponse{ + res := &operations.CreateSourceJotformResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12610,12 +12852,12 @@ func (s *Sources) CreateSourceLuma(ctx context.Context, request *shared.SourceLu } -// CreateSourceMailchimp - 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) CreateSourceMailchimp(ctx context.Context, request *shared.SourceMailchimpCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailchimpResponse, error) { +func (s *Sources) CreateSourceK6Cloud(ctx context.Context, request *shared.SourceK6CloudCreateRequest, opts ...operations.Option) (*operations.CreateSourceK6CloudResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMailchimp", + OperationID: "createSourceK6Cloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12694,7 +12936,7 @@ func (s *Sources) CreateSourceMailchimp(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceMailchimpResponse{ + res := &operations.CreateSourceK6CloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12731,12 +12973,12 @@ func (s *Sources) CreateSourceMailchimp(ctx context.Context, request *shared.Sou } -// CreateSourceMailgun - 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) CreateSourceMailgun(ctx context.Context, request *shared.SourceMailgunCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailgunResponse, error) { +func (s *Sources) CreateSourceKlarna(ctx context.Context, request *shared.SourceKlarnaCreateRequest, opts ...operations.Option) (*operations.CreateSourceKlarnaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMailgun", + OperationID: "createSourceKlarna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12815,7 +13057,7 @@ func (s *Sources) CreateSourceMailgun(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceMailgunResponse{ + res := &operations.CreateSourceKlarnaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12852,12 +13094,12 @@ func (s *Sources) CreateSourceMailgun(ctx context.Context, request *shared.Sourc } -// CreateSourceMailjetSms - 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) CreateSourceMailjetSms(ctx context.Context, request *shared.SourceMailjetSmsCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailjetSmsResponse, error) { +func (s *Sources) CreateSourceKlaviyo(ctx context.Context, request *shared.SourceKlaviyoCreateRequest, opts ...operations.Option) (*operations.CreateSourceKlaviyoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMailjetSms", + OperationID: "createSourceKlaviyo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -12936,7 +13178,7 @@ func (s *Sources) CreateSourceMailjetSms(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceMailjetSmsResponse{ + res := &operations.CreateSourceKlaviyoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -12973,12 +13215,12 @@ func (s *Sources) CreateSourceMailjetSms(ctx context.Context, request *shared.So } -// CreateSourceMarketo - 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) CreateSourceMarketo(ctx context.Context, request *shared.SourceMarketoCreateRequest, opts ...operations.Option) (*operations.CreateSourceMarketoResponse, error) { +func (s *Sources) CreateSourceKyve(ctx context.Context, request *shared.SourceKyveCreateRequest, opts ...operations.Option) (*operations.CreateSourceKyveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMarketo", + OperationID: "createSourceKyve", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13057,7 +13299,7 @@ func (s *Sources) CreateSourceMarketo(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceMarketoResponse{ + res := &operations.CreateSourceKyveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13094,12 +13336,12 @@ func (s *Sources) CreateSourceMarketo(ctx context.Context, request *shared.Sourc } -// CreateSourceMetabase - 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) CreateSourceMetabase(ctx context.Context, request *shared.SourceMetabaseCreateRequest, opts ...operations.Option) (*operations.CreateSourceMetabaseResponse, error) { +func (s *Sources) CreateSourceLaunchdarkly(ctx context.Context, request *shared.SourceLaunchdarklyCreateRequest, opts ...operations.Option) (*operations.CreateSourceLaunchdarklyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMetabase", + OperationID: "createSourceLaunchdarkly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13178,7 +13420,7 @@ func (s *Sources) CreateSourceMetabase(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceMetabaseResponse{ + res := &operations.CreateSourceLaunchdarklyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13215,12 +13457,12 @@ func (s *Sources) CreateSourceMetabase(ctx context.Context, request *shared.Sour } -// CreateSourceMicrosoftOnedrive - 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) CreateSourceMicrosoftOnedrive(ctx context.Context, request *shared.SourceMicrosoftOnedriveCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftOnedriveResponse, error) { +func (s *Sources) CreateSourceLeadfeeder(ctx context.Context, request *shared.SourceLeadfeederCreateRequest, opts ...operations.Option) (*operations.CreateSourceLeadfeederResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMicrosoftOnedrive", + OperationID: "createSourceLeadfeeder", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13299,7 +13541,7 @@ func (s *Sources) CreateSourceMicrosoftOnedrive(ctx context.Context, request *sh } } - res := &operations.CreateSourceMicrosoftOnedriveResponse{ + res := &operations.CreateSourceLeadfeederResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13336,12 +13578,12 @@ func (s *Sources) CreateSourceMicrosoftOnedrive(ctx context.Context, request *sh } -// CreateSourceMicrosoftSharepoint - 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) CreateSourceMicrosoftSharepoint(ctx context.Context, request *shared.SourceMicrosoftSharepointCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftSharepointResponse, error) { +func (s *Sources) CreateSourceLemlist(ctx context.Context, request *shared.SourceLemlistCreateRequest, opts ...operations.Option) (*operations.CreateSourceLemlistResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMicrosoftSharepoint", + OperationID: "createSourceLemlist", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13420,7 +13662,7 @@ func (s *Sources) CreateSourceMicrosoftSharepoint(ctx context.Context, request * } } - res := &operations.CreateSourceMicrosoftSharepointResponse{ + res := &operations.CreateSourceLemlistResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13457,12 +13699,12 @@ func (s *Sources) CreateSourceMicrosoftSharepoint(ctx context.Context, request * } -// CreateSourceMicrosoftTeams - 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) CreateSourceMicrosoftTeams(ctx context.Context, request *shared.SourceMicrosoftTeamsCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftTeamsResponse, error) { +func (s *Sources) CreateSourceLeverHiring(ctx context.Context, request *shared.SourceLeverHiringCreateRequest, opts ...operations.Option) (*operations.CreateSourceLeverHiringResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMicrosoftTeams", + OperationID: "createSourceLeverHiring", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13541,7 +13783,7 @@ func (s *Sources) CreateSourceMicrosoftTeams(ctx context.Context, request *share } } - res := &operations.CreateSourceMicrosoftTeamsResponse{ + res := &operations.CreateSourceLeverHiringResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13578,12 +13820,12 @@ func (s *Sources) CreateSourceMicrosoftTeams(ctx context.Context, request *share } -// CreateSourceMixpanel - 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) CreateSourceMixpanel(ctx context.Context, request *shared.SourceMixpanelCreateRequest, opts ...operations.Option) (*operations.CreateSourceMixpanelResponse, error) { +func (s *Sources) CreateSourceLinkedinAds(ctx context.Context, request *shared.SourceLinkedinAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinkedinAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMixpanel", + OperationID: "createSourceLinkedinAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13662,7 +13904,7 @@ func (s *Sources) CreateSourceMixpanel(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceMixpanelResponse{ + res := &operations.CreateSourceLinkedinAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13699,12 +13941,12 @@ func (s *Sources) CreateSourceMixpanel(ctx context.Context, request *shared.Sour } -// CreateSourceMonday - 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) CreateSourceMonday(ctx context.Context, request *shared.SourceMondayCreateRequest, opts ...operations.Option) (*operations.CreateSourceMondayResponse, error) { +func (s *Sources) CreateSourceLinkedinPages(ctx context.Context, request *shared.SourceLinkedinPagesCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinkedinPagesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMonday", + OperationID: "createSourceLinkedinPages", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13783,7 +14025,7 @@ func (s *Sources) CreateSourceMonday(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceMondayResponse{ + res := &operations.CreateSourceLinkedinPagesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13820,12 +14062,12 @@ func (s *Sources) CreateSourceMonday(ctx context.Context, request *shared.Source } -// CreateSourceMongodbV2 - 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) CreateSourceMongodbV2(ctx context.Context, request *shared.SourceMongodbV2CreateRequest, opts ...operations.Option) (*operations.CreateSourceMongodbV2Response, error) { +func (s *Sources) CreateSourceLinnworks(ctx context.Context, request *shared.SourceLinnworksCreateRequest, opts ...operations.Option) (*operations.CreateSourceLinnworksResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMongodbV2", + OperationID: "createSourceLinnworks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -13904,7 +14146,7 @@ func (s *Sources) CreateSourceMongodbV2(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceMongodbV2Response{ + res := &operations.CreateSourceLinnworksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -13941,12 +14183,12 @@ func (s *Sources) CreateSourceMongodbV2(ctx context.Context, request *shared.Sou } -// CreateSourceMssql - 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) CreateSourceMssql(ctx context.Context, request *shared.SourceMssqlCreateRequest, opts ...operations.Option) (*operations.CreateSourceMssqlResponse, error) { +func (s *Sources) CreateSourceLokalise(ctx context.Context, request *shared.SourceLokaliseCreateRequest, opts ...operations.Option) (*operations.CreateSourceLokaliseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMssql", + OperationID: "createSourceLokalise", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14025,7 +14267,7 @@ func (s *Sources) CreateSourceMssql(ctx context.Context, request *shared.SourceM } } - res := &operations.CreateSourceMssqlResponse{ + res := &operations.CreateSourceLokaliseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14062,12 +14304,12 @@ func (s *Sources) CreateSourceMssql(ctx context.Context, request *shared.SourceM } -// CreateSourceMyHours - 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) CreateSourceMyHours(ctx context.Context, request *shared.SourceMyHoursCreateRequest, opts ...operations.Option) (*operations.CreateSourceMyHoursResponse, error) { +func (s *Sources) CreateSourceLooker(ctx context.Context, request *shared.SourceLookerCreateRequest, opts ...operations.Option) (*operations.CreateSourceLookerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMyHours", + OperationID: "createSourceLooker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14146,7 +14388,7 @@ func (s *Sources) CreateSourceMyHours(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceMyHoursResponse{ + res := &operations.CreateSourceLookerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14183,12 +14425,12 @@ func (s *Sources) CreateSourceMyHours(ctx context.Context, request *shared.Sourc } -// CreateSourceMysql - 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) CreateSourceMysql(ctx context.Context, request *shared.SourceMysqlCreateRequest, opts ...operations.Option) (*operations.CreateSourceMysqlResponse, error) { +func (s *Sources) CreateSourceLuma(ctx context.Context, request *shared.SourceLumaCreateRequest, opts ...operations.Option) (*operations.CreateSourceLumaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceMysql", + OperationID: "createSourceLuma", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14267,7 +14509,7 @@ func (s *Sources) CreateSourceMysql(ctx context.Context, request *shared.SourceM } } - res := &operations.CreateSourceMysqlResponse{ + res := &operations.CreateSourceLumaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14304,12 +14546,12 @@ func (s *Sources) CreateSourceMysql(ctx context.Context, request *shared.SourceM } -// CreateSourceNetsuite - 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) CreateSourceNetsuite(ctx context.Context, request *shared.SourceNetsuiteCreateRequest, opts ...operations.Option) (*operations.CreateSourceNetsuiteResponse, error) { +func (s *Sources) CreateSourceMailchimp(ctx context.Context, request *shared.SourceMailchimpCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailchimpResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceNetsuite", + OperationID: "createSourceMailchimp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14388,7 +14630,7 @@ func (s *Sources) CreateSourceNetsuite(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceNetsuiteResponse{ + res := &operations.CreateSourceMailchimpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14425,12 +14667,12 @@ func (s *Sources) CreateSourceNetsuite(ctx context.Context, request *shared.Sour } -// CreateSourceNorthpassLms - 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) CreateSourceNorthpassLms(ctx context.Context, request *shared.SourceNorthpassLmsCreateRequest, opts ...operations.Option) (*operations.CreateSourceNorthpassLmsResponse, error) { +func (s *Sources) CreateSourceMailgun(ctx context.Context, request *shared.SourceMailgunCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailgunResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceNorthpassLms", + OperationID: "createSourceMailgun", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14509,7 +14751,7 @@ func (s *Sources) CreateSourceNorthpassLms(ctx context.Context, request *shared. } } - res := &operations.CreateSourceNorthpassLmsResponse{ + res := &operations.CreateSourceMailgunResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14546,12 +14788,12 @@ func (s *Sources) CreateSourceNorthpassLms(ctx context.Context, request *shared. } -// CreateSourceNotion - 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) CreateSourceNotion(ctx context.Context, request *shared.SourceNotionCreateRequest, opts ...operations.Option) (*operations.CreateSourceNotionResponse, error) { +func (s *Sources) CreateSourceMailjetSms(ctx context.Context, request *shared.SourceMailjetSmsCreateRequest, opts ...operations.Option) (*operations.CreateSourceMailjetSmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceNotion", + OperationID: "createSourceMailjetSms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14630,7 +14872,7 @@ func (s *Sources) CreateSourceNotion(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceNotionResponse{ + res := &operations.CreateSourceMailjetSmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14667,12 +14909,12 @@ func (s *Sources) CreateSourceNotion(ctx context.Context, request *shared.Source } -// CreateSourceNytimes - 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) CreateSourceNytimes(ctx context.Context, request *shared.SourceNytimesCreateRequest, opts ...operations.Option) (*operations.CreateSourceNytimesResponse, error) { +func (s *Sources) CreateSourceMarketo(ctx context.Context, request *shared.SourceMarketoCreateRequest, opts ...operations.Option) (*operations.CreateSourceMarketoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceNytimes", + OperationID: "createSourceMarketo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14751,7 +14993,7 @@ func (s *Sources) CreateSourceNytimes(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceNytimesResponse{ + res := &operations.CreateSourceMarketoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14788,12 +15030,12 @@ func (s *Sources) CreateSourceNytimes(ctx context.Context, request *shared.Sourc } -// CreateSourceOkta - 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) CreateSourceOkta(ctx context.Context, request *shared.SourceOktaCreateRequest, opts ...operations.Option) (*operations.CreateSourceOktaResponse, error) { +func (s *Sources) CreateSourceMetabase(ctx context.Context, request *shared.SourceMetabaseCreateRequest, opts ...operations.Option) (*operations.CreateSourceMetabaseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOkta", + OperationID: "createSourceMetabase", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14872,7 +15114,7 @@ func (s *Sources) CreateSourceOkta(ctx context.Context, request *shared.SourceOk } } - res := &operations.CreateSourceOktaResponse{ + res := &operations.CreateSourceMetabaseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -14909,12 +15151,12 @@ func (s *Sources) CreateSourceOkta(ctx context.Context, request *shared.SourceOk } -// CreateSourceOmnisend - 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) CreateSourceOmnisend(ctx context.Context, request *shared.SourceOmnisendCreateRequest, opts ...operations.Option) (*operations.CreateSourceOmnisendResponse, error) { +func (s *Sources) CreateSourceMicrosoftOnedrive(ctx context.Context, request *shared.SourceMicrosoftOnedriveCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftOnedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOmnisend", + OperationID: "createSourceMicrosoftOnedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -14993,7 +15235,7 @@ func (s *Sources) CreateSourceOmnisend(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceOmnisendResponse{ + res := &operations.CreateSourceMicrosoftOnedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15030,12 +15272,12 @@ func (s *Sources) CreateSourceOmnisend(ctx context.Context, request *shared.Sour } -// CreateSourceOnesignal - 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) CreateSourceOnesignal(ctx context.Context, request *shared.SourceOnesignalCreateRequest, opts ...operations.Option) (*operations.CreateSourceOnesignalResponse, error) { +func (s *Sources) CreateSourceMicrosoftSharepoint(ctx context.Context, request *shared.SourceMicrosoftSharepointCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftSharepointResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOnesignal", + OperationID: "createSourceMicrosoftSharepoint", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15114,7 +15356,7 @@ func (s *Sources) CreateSourceOnesignal(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceOnesignalResponse{ + res := &operations.CreateSourceMicrosoftSharepointResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15151,12 +15393,12 @@ func (s *Sources) CreateSourceOnesignal(ctx context.Context, request *shared.Sou } -// CreateSourceOracle - 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) CreateSourceOracle(ctx context.Context, request *shared.SourceOracleCreateRequest, opts ...operations.Option) (*operations.CreateSourceOracleResponse, error) { +func (s *Sources) CreateSourceMicrosoftTeams(ctx context.Context, request *shared.SourceMicrosoftTeamsCreateRequest, opts ...operations.Option) (*operations.CreateSourceMicrosoftTeamsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOracle", + OperationID: "createSourceMicrosoftTeams", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15235,7 +15477,7 @@ func (s *Sources) CreateSourceOracle(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceOracleResponse{ + res := &operations.CreateSourceMicrosoftTeamsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15272,12 +15514,12 @@ func (s *Sources) CreateSourceOracle(ctx context.Context, request *shared.Source } -// CreateSourceOrb - 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) CreateSourceOrb(ctx context.Context, request *shared.SourceOrbCreateRequest, opts ...operations.Option) (*operations.CreateSourceOrbResponse, error) { +func (s *Sources) CreateSourceMixpanel(ctx context.Context, request *shared.SourceMixpanelCreateRequest, opts ...operations.Option) (*operations.CreateSourceMixpanelResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOrb", + OperationID: "createSourceMixpanel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15356,7 +15598,7 @@ func (s *Sources) CreateSourceOrb(ctx context.Context, request *shared.SourceOrb } } - res := &operations.CreateSourceOrbResponse{ + res := &operations.CreateSourceMixpanelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15393,12 +15635,12 @@ func (s *Sources) CreateSourceOrb(ctx context.Context, request *shared.SourceOrb } -// CreateSourceOrbit - 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) CreateSourceOrbit(ctx context.Context, request *shared.SourceOrbitCreateRequest, opts ...operations.Option) (*operations.CreateSourceOrbitResponse, error) { +func (s *Sources) CreateSourceMonday(ctx context.Context, request *shared.SourceMondayCreateRequest, opts ...operations.Option) (*operations.CreateSourceMondayResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOrbit", + OperationID: "createSourceMonday", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15477,7 +15719,7 @@ func (s *Sources) CreateSourceOrbit(ctx context.Context, request *shared.SourceO } } - res := &operations.CreateSourceOrbitResponse{ + res := &operations.CreateSourceMondayResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15514,12 +15756,12 @@ func (s *Sources) CreateSourceOrbit(ctx context.Context, request *shared.SourceO } -// CreateSourceOutbrainAmplify - 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) CreateSourceOutbrainAmplify(ctx context.Context, request *shared.SourceOutbrainAmplifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceOutbrainAmplifyResponse, error) { +func (s *Sources) CreateSourceMongodbV2(ctx context.Context, request *shared.SourceMongodbV2CreateRequest, opts ...operations.Option) (*operations.CreateSourceMongodbV2Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOutbrainAmplify", + OperationID: "createSourceMongodbV2", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15598,7 +15840,7 @@ func (s *Sources) CreateSourceOutbrainAmplify(ctx context.Context, request *shar } } - res := &operations.CreateSourceOutbrainAmplifyResponse{ + res := &operations.CreateSourceMongodbV2Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15635,12 +15877,12 @@ func (s *Sources) CreateSourceOutbrainAmplify(ctx context.Context, request *shar } -// CreateSourceOutreach - 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) CreateSourceOutreach(ctx context.Context, request *shared.SourceOutreachCreateRequest, opts ...operations.Option) (*operations.CreateSourceOutreachResponse, error) { +func (s *Sources) CreateSourceMssql(ctx context.Context, request *shared.SourceMssqlCreateRequest, opts ...operations.Option) (*operations.CreateSourceMssqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceOutreach", + OperationID: "createSourceMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15719,7 +15961,7 @@ func (s *Sources) CreateSourceOutreach(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceOutreachResponse{ + res := &operations.CreateSourceMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15756,12 +15998,12 @@ func (s *Sources) CreateSourceOutreach(ctx context.Context, request *shared.Sour } -// CreateSourcePaypalTransaction - 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) CreateSourcePaypalTransaction(ctx context.Context, request *shared.SourcePaypalTransactionCreateRequest, opts ...operations.Option) (*operations.CreateSourcePaypalTransactionResponse, error) { +func (s *Sources) CreateSourceMyHours(ctx context.Context, request *shared.SourceMyHoursCreateRequest, opts ...operations.Option) (*operations.CreateSourceMyHoursResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePaypalTransaction", + OperationID: "createSourceMyHours", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15840,7 +16082,7 @@ func (s *Sources) CreateSourcePaypalTransaction(ctx context.Context, request *sh } } - res := &operations.CreateSourcePaypalTransactionResponse{ + res := &operations.CreateSourceMyHoursResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15877,12 +16119,12 @@ func (s *Sources) CreateSourcePaypalTransaction(ctx context.Context, request *sh } -// CreateSourcePaystack - 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) CreateSourcePaystack(ctx context.Context, request *shared.SourcePaystackCreateRequest, opts ...operations.Option) (*operations.CreateSourcePaystackResponse, error) { +func (s *Sources) CreateSourceMysql(ctx context.Context, request *shared.SourceMysqlCreateRequest, opts ...operations.Option) (*operations.CreateSourceMysqlResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePaystack", + OperationID: "createSourceMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -15961,7 +16203,7 @@ func (s *Sources) CreateSourcePaystack(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourcePaystackResponse{ + res := &operations.CreateSourceMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15998,12 +16240,12 @@ func (s *Sources) CreateSourcePaystack(ctx context.Context, request *shared.Sour } -// CreateSourcePendo - 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) CreateSourcePendo(ctx context.Context, request *shared.SourcePendoCreateRequest, opts ...operations.Option) (*operations.CreateSourcePendoResponse, error) { +func (s *Sources) CreateSourceNetsuite(ctx context.Context, request *shared.SourceNetsuiteCreateRequest, opts ...operations.Option) (*operations.CreateSourceNetsuiteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePendo", + OperationID: "createSourceNetsuite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16082,7 +16324,7 @@ func (s *Sources) CreateSourcePendo(ctx context.Context, request *shared.SourceP } } - res := &operations.CreateSourcePendoResponse{ + res := &operations.CreateSourceNetsuiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16119,12 +16361,12 @@ func (s *Sources) CreateSourcePendo(ctx context.Context, request *shared.SourceP } -// CreateSourcePennylane - 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) CreateSourcePennylane(ctx context.Context, request *shared.SourcePennylaneCreateRequest, opts ...operations.Option) (*operations.CreateSourcePennylaneResponse, error) { +func (s *Sources) CreateSourceNorthpassLms(ctx context.Context, request *shared.SourceNorthpassLmsCreateRequest, opts ...operations.Option) (*operations.CreateSourceNorthpassLmsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePennylane", + OperationID: "createSourceNorthpassLms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16203,7 +16445,7 @@ func (s *Sources) CreateSourcePennylane(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourcePennylaneResponse{ + res := &operations.CreateSourceNorthpassLmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16240,12 +16482,12 @@ func (s *Sources) CreateSourcePennylane(ctx context.Context, request *shared.Sou } -// 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, } @@ -16324,7 +16566,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, @@ -16361,12 +16603,12 @@ func (s *Sources) CreateSourcePersistiq(ctx context.Context, request *shared.Sou } -// CreateSourcePexelsAPI - Create a source +// CreateSourceNylas - 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) CreateSourceNylas(ctx context.Context, request *shared.SourceNylasCreateRequest, opts ...operations.Option) (*operations.CreateSourceNylasResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePexelsApi", + OperationID: "createSourceNylas", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16445,7 +16687,7 @@ func (s *Sources) CreateSourcePexelsAPI(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourcePexelsAPIResponse{ + res := &operations.CreateSourceNylasResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16482,12 +16724,12 @@ func (s *Sources) CreateSourcePexelsAPI(ctx context.Context, request *shared.Sou } -// CreateSourcePinterest - 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) CreateSourcePinterest(ctx context.Context, request *shared.SourcePinterestCreateRequest, opts ...operations.Option) (*operations.CreateSourcePinterestResponse, error) { +func (s *Sources) CreateSourceNytimes(ctx context.Context, request *shared.SourceNytimesCreateRequest, opts ...operations.Option) (*operations.CreateSourceNytimesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePinterest", + OperationID: "createSourceNytimes", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16566,7 +16808,7 @@ func (s *Sources) CreateSourcePinterest(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourcePinterestResponse{ + res := &operations.CreateSourceNytimesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16603,12 +16845,12 @@ func (s *Sources) CreateSourcePinterest(ctx context.Context, request *shared.Sou } -// CreateSourcePipedrive - 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) CreateSourcePipedrive(ctx context.Context, request *shared.SourcePipedriveCreateRequest, opts ...operations.Option) (*operations.CreateSourcePipedriveResponse, error) { +func (s *Sources) CreateSourceOkta(ctx context.Context, request *shared.SourceOktaCreateRequest, opts ...operations.Option) (*operations.CreateSourceOktaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePipedrive", + OperationID: "createSourceOkta", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16687,7 +16929,7 @@ func (s *Sources) CreateSourcePipedrive(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourcePipedriveResponse{ + res := &operations.CreateSourceOktaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16724,12 +16966,12 @@ func (s *Sources) CreateSourcePipedrive(ctx context.Context, request *shared.Sou } -// CreateSourcePlanhat - 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) CreateSourcePlanhat(ctx context.Context, request *shared.SourcePlanhatCreateRequest, opts ...operations.Option) (*operations.CreateSourcePlanhatResponse, error) { +func (s *Sources) CreateSourceOmnisend(ctx context.Context, request *shared.SourceOmnisendCreateRequest, opts ...operations.Option) (*operations.CreateSourceOmnisendResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePlanhat", + OperationID: "createSourceOmnisend", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -16808,7 +17050,7 @@ func (s *Sources) CreateSourcePlanhat(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourcePlanhatResponse{ + res := &operations.CreateSourceOmnisendResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -16845,12 +17087,12 @@ func (s *Sources) CreateSourcePlanhat(ctx context.Context, request *shared.Sourc } -// 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, } @@ -16929,7 +17171,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, @@ -16966,12 +17208,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, } @@ -17050,7 +17292,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, @@ -17087,12 +17329,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, } @@ -17171,7 +17413,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, @@ -17208,12 +17450,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, } @@ -17292,7 +17534,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, @@ -17329,12 +17571,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, } @@ -17413,7 +17655,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, @@ -17450,12 +17692,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, } @@ -17534,7 +17776,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, @@ -17571,12 +17813,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, } @@ -17655,7 +17897,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, @@ -17692,12 +17934,12 @@ func (s *Sources) CreateSourcePrestashop(ctx context.Context, request *shared.So } -// CreateSourcePypi - 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) CreateSourcePypi(ctx context.Context, request *shared.SourcePypiCreateRequest, opts ...operations.Option) (*operations.CreateSourcePypiResponse, error) { +func (s *Sources) CreateSourcePaystack(ctx context.Context, request *shared.SourcePaystackCreateRequest, opts ...operations.Option) (*operations.CreateSourcePaystackResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourcePypi", + OperationID: "createSourcePaystack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17776,7 +18018,7 @@ func (s *Sources) CreateSourcePypi(ctx context.Context, request *shared.SourcePy } } - res := &operations.CreateSourcePypiResponse{ + res := &operations.CreateSourcePaystackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17813,12 +18055,12 @@ func (s *Sources) CreateSourcePypi(ctx context.Context, request *shared.SourcePy } -// CreateSourceQualaroo - 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) CreateSourceQualaroo(ctx context.Context, request *shared.SourceQualarooCreateRequest, opts ...operations.Option) (*operations.CreateSourceQualarooResponse, error) { +func (s *Sources) CreateSourcePendo(ctx context.Context, request *shared.SourcePendoCreateRequest, opts ...operations.Option) (*operations.CreateSourcePendoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceQualaroo", + OperationID: "createSourcePendo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -17897,7 +18139,7 @@ func (s *Sources) CreateSourceQualaroo(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceQualarooResponse{ + res := &operations.CreateSourcePendoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -17934,12 +18176,12 @@ func (s *Sources) CreateSourceQualaroo(ctx context.Context, request *shared.Sour } -// CreateSourceRailz - 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) CreateSourceRailz(ctx context.Context, request *shared.SourceRailzCreateRequest, opts ...operations.Option) (*operations.CreateSourceRailzResponse, error) { +func (s *Sources) CreateSourcePennylane(ctx context.Context, request *shared.SourcePennylaneCreateRequest, opts ...operations.Option) (*operations.CreateSourcePennylaneResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRailz", + OperationID: "createSourcePennylane", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18018,7 +18260,7 @@ func (s *Sources) CreateSourceRailz(ctx context.Context, request *shared.SourceR } } - res := &operations.CreateSourceRailzResponse{ + res := &operations.CreateSourcePennylaneResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18055,12 +18297,12 @@ func (s *Sources) CreateSourceRailz(ctx context.Context, request *shared.SourceR } -// CreateSourceRecharge - 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) CreateSourceRecharge(ctx context.Context, request *shared.SourceRechargeCreateRequest, opts ...operations.Option) (*operations.CreateSourceRechargeResponse, error) { +func (s *Sources) CreateSourcePersistiq(ctx context.Context, request *shared.SourcePersistiqCreateRequest, opts ...operations.Option) (*operations.CreateSourcePersistiqResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRecharge", + OperationID: "createSourcePersistiq", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18139,7 +18381,7 @@ func (s *Sources) CreateSourceRecharge(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceRechargeResponse{ + res := &operations.CreateSourcePersistiqResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18176,12 +18418,12 @@ func (s *Sources) CreateSourceRecharge(ctx context.Context, request *shared.Sour } -// CreateSourceRecreation - 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) CreateSourceRecreation(ctx context.Context, request *shared.SourceRecreationCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecreationResponse, error) { +func (s *Sources) CreateSourcePexelsAPI(ctx context.Context, request *shared.SourcePexelsAPICreateRequest, opts ...operations.Option) (*operations.CreateSourcePexelsAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRecreation", + OperationID: "createSourcePexelsApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18260,7 +18502,7 @@ func (s *Sources) CreateSourceRecreation(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceRecreationResponse{ + res := &operations.CreateSourcePexelsAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18297,12 +18539,12 @@ func (s *Sources) CreateSourceRecreation(ctx context.Context, request *shared.So } -// CreateSourceRecruitee - Create a source +// CreateSourcePicqer - 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) CreateSourcePicqer(ctx context.Context, request *shared.SourcePicqerCreateRequest, opts ...operations.Option) (*operations.CreateSourcePicqerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRecruitee", + OperationID: "createSourcePicqer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18381,7 +18623,7 @@ func (s *Sources) CreateSourceRecruitee(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceRecruiteeResponse{ + res := &operations.CreateSourcePicqerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18418,12 +18660,12 @@ func (s *Sources) CreateSourceRecruitee(ctx context.Context, request *shared.Sou } -// CreateSourceRecurly - 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) CreateSourceRecurly(ctx context.Context, request *shared.SourceRecurlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecurlyResponse, error) { +func (s *Sources) CreateSourcePinterest(ctx context.Context, request *shared.SourcePinterestCreateRequest, opts ...operations.Option) (*operations.CreateSourcePinterestResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRecurly", + OperationID: "createSourcePinterest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18502,7 +18744,7 @@ func (s *Sources) CreateSourceRecurly(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceRecurlyResponse{ + res := &operations.CreateSourcePinterestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18539,12 +18781,12 @@ func (s *Sources) CreateSourceRecurly(ctx context.Context, request *shared.Sourc } -// CreateSourceReddit - 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) CreateSourceReddit(ctx context.Context, request *shared.SourceRedditCreateRequest, opts ...operations.Option) (*operations.CreateSourceRedditResponse, error) { +func (s *Sources) CreateSourcePipedrive(ctx context.Context, request *shared.SourcePipedriveCreateRequest, opts ...operations.Option) (*operations.CreateSourcePipedriveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceReddit", + OperationID: "createSourcePipedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18623,7 +18865,7 @@ func (s *Sources) CreateSourceReddit(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceRedditResponse{ + res := &operations.CreateSourcePipedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18660,12 +18902,12 @@ func (s *Sources) CreateSourceReddit(ctx context.Context, request *shared.Source } -// CreateSourceRedshift - Create a source +// CreateSourcePiwik - 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) CreateSourcePiwik(ctx context.Context, request *shared.SourcePiwikCreateRequest, opts ...operations.Option) (*operations.CreateSourcePiwikResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRedshift", + OperationID: "createSourcePiwik", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18744,7 +18986,7 @@ func (s *Sources) CreateSourceRedshift(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceRedshiftResponse{ + res := &operations.CreateSourcePiwikResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18781,12 +19023,12 @@ func (s *Sources) CreateSourceRedshift(ctx context.Context, request *shared.Sour } -// CreateSourceRetently - 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) CreateSourceRetently(ctx context.Context, request *shared.SourceRetentlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceRetentlyResponse, error) { +func (s *Sources) CreateSourcePlanhat(ctx context.Context, request *shared.SourcePlanhatCreateRequest, opts ...operations.Option) (*operations.CreateSourcePlanhatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRetently", + OperationID: "createSourcePlanhat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18865,7 +19107,7 @@ func (s *Sources) CreateSourceRetently(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceRetentlyResponse{ + res := &operations.CreateSourcePlanhatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -18902,12 +19144,12 @@ func (s *Sources) CreateSourceRetently(ctx context.Context, request *shared.Sour } -// CreateSourceRkiCovid - 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) CreateSourceRkiCovid(ctx context.Context, request *shared.SourceRkiCovidCreateRequest, opts ...operations.Option) (*operations.CreateSourceRkiCovidResponse, error) { +func (s *Sources) CreateSourcePocket(ctx context.Context, request *shared.SourcePocketCreateRequest, opts ...operations.Option) (*operations.CreateSourcePocketResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRkiCovid", + OperationID: "createSourcePocket", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -18986,7 +19228,7 @@ func (s *Sources) CreateSourceRkiCovid(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceRkiCovidResponse{ + res := &operations.CreateSourcePocketResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19023,12 +19265,12 @@ func (s *Sources) CreateSourceRkiCovid(ctx context.Context, request *shared.Sour } -// CreateSourceRss - 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) CreateSourceRss(ctx context.Context, request *shared.SourceRssCreateRequest, opts ...operations.Option) (*operations.CreateSourceRssResponse, error) { +func (s *Sources) CreateSourcePokeapi(ctx context.Context, request *shared.SourcePokeapiCreateRequest, opts ...operations.Option) (*operations.CreateSourcePokeapiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceRss", + OperationID: "createSourcePokeapi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19107,7 +19349,7 @@ func (s *Sources) CreateSourceRss(ctx context.Context, request *shared.SourceRss } } - res := &operations.CreateSourceRssResponse{ + res := &operations.CreateSourcePokeapiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19144,12 +19386,12 @@ func (s *Sources) CreateSourceRss(ctx context.Context, request *shared.SourceRss } -// CreateSourceS3 - 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) CreateSourceS3(ctx context.Context, request *shared.SourceS3CreateRequest, opts ...operations.Option) (*operations.CreateSourceS3Response, error) { +func (s *Sources) CreateSourcePolygonStockAPI(ctx context.Context, request *shared.SourcePolygonStockAPICreateRequest, opts ...operations.Option) (*operations.CreateSourcePolygonStockAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceS3", + OperationID: "createSourcePolygonStockApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19228,7 +19470,7 @@ func (s *Sources) CreateSourceS3(ctx context.Context, request *shared.SourceS3Cr } } - res := &operations.CreateSourceS3Response{ + res := &operations.CreateSourcePolygonStockAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19265,12 +19507,12 @@ func (s *Sources) CreateSourceS3(ctx context.Context, request *shared.SourceS3Cr } -// CreateSourceSalesforce - 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) CreateSourceSalesforce(ctx context.Context, request *shared.SourceSalesforceCreateRequest, opts ...operations.Option) (*operations.CreateSourceSalesforceResponse, error) { +func (s *Sources) CreateSourcePostgres(ctx context.Context, request *shared.SourcePostgresCreateRequest, opts ...operations.Option) (*operations.CreateSourcePostgresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSalesforce", + OperationID: "createSourcePostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19349,7 +19591,7 @@ func (s *Sources) CreateSourceSalesforce(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceSalesforceResponse{ + res := &operations.CreateSourcePostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19386,12 +19628,12 @@ func (s *Sources) CreateSourceSalesforce(ctx context.Context, request *shared.So } -// CreateSourceSalesloft - 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) CreateSourceSalesloft(ctx context.Context, request *shared.SourceSalesloftCreateRequest, opts ...operations.Option) (*operations.CreateSourceSalesloftResponse, error) { +func (s *Sources) CreateSourcePosthog(ctx context.Context, request *shared.SourcePosthogCreateRequest, opts ...operations.Option) (*operations.CreateSourcePosthogResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSalesloft", + OperationID: "createSourcePosthog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19470,7 +19712,7 @@ func (s *Sources) CreateSourceSalesloft(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceSalesloftResponse{ + res := &operations.CreateSourcePosthogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19507,12 +19749,12 @@ func (s *Sources) CreateSourceSalesloft(ctx context.Context, request *shared.Sou } -// CreateSourceSapFieldglass - 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) CreateSourceSapFieldglass(ctx context.Context, request *shared.SourceSapFieldglassCreateRequest, opts ...operations.Option) (*operations.CreateSourceSapFieldglassResponse, error) { +func (s *Sources) CreateSourcePostmarkapp(ctx context.Context, request *shared.SourcePostmarkappCreateRequest, opts ...operations.Option) (*operations.CreateSourcePostmarkappResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSapFieldglass", + OperationID: "createSourcePostmarkapp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19591,7 +19833,7 @@ func (s *Sources) CreateSourceSapFieldglass(ctx context.Context, request *shared } } - res := &operations.CreateSourceSapFieldglassResponse{ + res := &operations.CreateSourcePostmarkappResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19628,12 +19870,12 @@ func (s *Sources) CreateSourceSapFieldglass(ctx context.Context, request *shared } -// CreateSourceSavvycal - 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) CreateSourceSavvycal(ctx context.Context, request *shared.SourceSavvycalCreateRequest, opts ...operations.Option) (*operations.CreateSourceSavvycalResponse, error) { +func (s *Sources) CreateSourcePrestashop(ctx context.Context, request *shared.SourcePrestashopCreateRequest, opts ...operations.Option) (*operations.CreateSourcePrestashopResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSavvycal", + OperationID: "createSourcePrestashop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19712,7 +19954,7 @@ func (s *Sources) CreateSourceSavvycal(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceSavvycalResponse{ + res := &operations.CreateSourcePrestashopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19749,12 +19991,12 @@ func (s *Sources) CreateSourceSavvycal(ctx context.Context, request *shared.Sour } -// CreateSourceScryfall - Create a source +// CreateSourceProductboard - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceScryfall(ctx context.Context, request *shared.SourceScryfallCreateRequest, opts ...operations.Option) (*operations.CreateSourceScryfallResponse, error) { +func (s *Sources) CreateSourceProductboard(ctx context.Context, request *shared.SourceProductboardCreateRequest, opts ...operations.Option) (*operations.CreateSourceProductboardResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceScryfall", + OperationID: "createSourceProductboard", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19833,7 +20075,7 @@ func (s *Sources) CreateSourceScryfall(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceScryfallResponse{ + res := &operations.CreateSourceProductboardResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19870,12 +20112,12 @@ func (s *Sources) CreateSourceScryfall(ctx context.Context, request *shared.Sour } -// CreateSourceSecoda - Create a source +// CreateSourceProductive - 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) CreateSourceProductive(ctx context.Context, request *shared.SourceProductiveCreateRequest, opts ...operations.Option) (*operations.CreateSourceProductiveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSecoda", + OperationID: "createSourceProductive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -19954,7 +20196,7 @@ func (s *Sources) CreateSourceSecoda(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceSecodaResponse{ + res := &operations.CreateSourceProductiveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -19991,12 +20233,12 @@ func (s *Sources) CreateSourceSecoda(ctx context.Context, request *shared.Source } -// CreateSourceSendgrid - 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) CreateSourceSendgrid(ctx context.Context, request *shared.SourceSendgridCreateRequest, opts ...operations.Option) (*operations.CreateSourceSendgridResponse, error) { +func (s *Sources) CreateSourcePypi(ctx context.Context, request *shared.SourcePypiCreateRequest, opts ...operations.Option) (*operations.CreateSourcePypiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSendgrid", + OperationID: "createSourcePypi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20075,7 +20317,7 @@ func (s *Sources) CreateSourceSendgrid(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceSendgridResponse{ + res := &operations.CreateSourcePypiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20112,12 +20354,12 @@ func (s *Sources) CreateSourceSendgrid(ctx context.Context, request *shared.Sour } -// CreateSourceSendinblue - 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) CreateSourceSendinblue(ctx context.Context, request *shared.SourceSendinblueCreateRequest, opts ...operations.Option) (*operations.CreateSourceSendinblueResponse, error) { +func (s *Sources) CreateSourceQualaroo(ctx context.Context, request *shared.SourceQualarooCreateRequest, opts ...operations.Option) (*operations.CreateSourceQualarooResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSendinblue", + OperationID: "createSourceQualaroo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20196,7 +20438,7 @@ func (s *Sources) CreateSourceSendinblue(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceSendinblueResponse{ + res := &operations.CreateSourceQualarooResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20233,12 +20475,12 @@ func (s *Sources) CreateSourceSendinblue(ctx context.Context, request *shared.So } -// CreateSourceSenseforce - 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) CreateSourceSenseforce(ctx context.Context, request *shared.SourceSenseforceCreateRequest, opts ...operations.Option) (*operations.CreateSourceSenseforceResponse, error) { +func (s *Sources) CreateSourceRailz(ctx context.Context, request *shared.SourceRailzCreateRequest, opts ...operations.Option) (*operations.CreateSourceRailzResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSenseforce", + OperationID: "createSourceRailz", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20317,7 +20559,7 @@ func (s *Sources) CreateSourceSenseforce(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceSenseforceResponse{ + res := &operations.CreateSourceRailzResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20354,12 +20596,12 @@ func (s *Sources) CreateSourceSenseforce(ctx context.Context, request *shared.So } -// CreateSourceSentry - 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) CreateSourceSentry(ctx context.Context, request *shared.SourceSentryCreateRequest, opts ...operations.Option) (*operations.CreateSourceSentryResponse, error) { +func (s *Sources) CreateSourceRecharge(ctx context.Context, request *shared.SourceRechargeCreateRequest, opts ...operations.Option) (*operations.CreateSourceRechargeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSentry", + OperationID: "createSourceRecharge", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20438,7 +20680,7 @@ func (s *Sources) CreateSourceSentry(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceSentryResponse{ + res := &operations.CreateSourceRechargeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20475,12 +20717,12 @@ func (s *Sources) CreateSourceSentry(ctx context.Context, request *shared.Source } -// CreateSourceSftp - 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) CreateSourceSftp(ctx context.Context, request *shared.SourceSftpCreateRequest, opts ...operations.Option) (*operations.CreateSourceSftpResponse, error) { +func (s *Sources) CreateSourceRecreation(ctx context.Context, request *shared.SourceRecreationCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecreationResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSftp", + OperationID: "createSourceRecreation", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20559,7 +20801,7 @@ func (s *Sources) CreateSourceSftp(ctx context.Context, request *shared.SourceSf } } - res := &operations.CreateSourceSftpResponse{ + res := &operations.CreateSourceRecreationResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20596,12 +20838,12 @@ func (s *Sources) CreateSourceSftp(ctx context.Context, request *shared.SourceSf } -// CreateSourceSftpBulk - 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) CreateSourceSftpBulk(ctx context.Context, request *shared.SourceSftpBulkCreateRequest, opts ...operations.Option) (*operations.CreateSourceSftpBulkResponse, error) { +func (s *Sources) CreateSourceRecruitee(ctx context.Context, request *shared.SourceRecruiteeCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecruiteeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSftpBulk", + OperationID: "createSourceRecruitee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20680,7 +20922,7 @@ func (s *Sources) CreateSourceSftpBulk(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceSftpBulkResponse{ + res := &operations.CreateSourceRecruiteeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20717,12 +20959,12 @@ func (s *Sources) CreateSourceSftpBulk(ctx context.Context, request *shared.Sour } -// CreateSourceShopify - 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) CreateSourceShopify(ctx context.Context, request *shared.SourceShopifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceShopifyResponse, error) { +func (s *Sources) CreateSourceRecurly(ctx context.Context, request *shared.SourceRecurlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceRecurlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceShopify", + OperationID: "createSourceRecurly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20801,7 +21043,7 @@ func (s *Sources) CreateSourceShopify(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceShopifyResponse{ + res := &operations.CreateSourceRecurlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20838,12 +21080,12 @@ func (s *Sources) CreateSourceShopify(ctx context.Context, request *shared.Sourc } -// CreateSourceShortio - 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) CreateSourceShortio(ctx context.Context, request *shared.SourceShortioCreateRequest, opts ...operations.Option) (*operations.CreateSourceShortioResponse, error) { +func (s *Sources) CreateSourceReddit(ctx context.Context, request *shared.SourceRedditCreateRequest, opts ...operations.Option) (*operations.CreateSourceRedditResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceShortio", + OperationID: "createSourceReddit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -20922,7 +21164,7 @@ func (s *Sources) CreateSourceShortio(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceShortioResponse{ + res := &operations.CreateSourceRedditResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -20959,12 +21201,12 @@ func (s *Sources) CreateSourceShortio(ctx context.Context, request *shared.Sourc } -// CreateSourceSlack - 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) CreateSourceSlack(ctx context.Context, request *shared.SourceSlackCreateRequest, opts ...operations.Option) (*operations.CreateSourceSlackResponse, error) { +func (s *Sources) CreateSourceRedshift(ctx context.Context, request *shared.SourceRedshiftCreateRequest, opts ...operations.Option) (*operations.CreateSourceRedshiftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSlack", + OperationID: "createSourceRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21043,7 +21285,7 @@ func (s *Sources) CreateSourceSlack(ctx context.Context, request *shared.SourceS } } - res := &operations.CreateSourceSlackResponse{ + res := &operations.CreateSourceRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21080,12 +21322,12 @@ func (s *Sources) CreateSourceSlack(ctx context.Context, request *shared.SourceS } -// CreateSourceSmaily - 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) CreateSourceSmaily(ctx context.Context, request *shared.SourceSmailyCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmailyResponse, error) { +func (s *Sources) CreateSourceRetently(ctx context.Context, request *shared.SourceRetentlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceRetentlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSmaily", + OperationID: "createSourceRetently", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21164,7 +21406,7 @@ func (s *Sources) CreateSourceSmaily(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceSmailyResponse{ + res := &operations.CreateSourceRetentlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21201,12 +21443,12 @@ func (s *Sources) CreateSourceSmaily(ctx context.Context, request *shared.Source } -// CreateSourceSmartengage - 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) CreateSourceSmartengage(ctx context.Context, request *shared.SourceSmartengageCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmartengageResponse, error) { +func (s *Sources) CreateSourceRkiCovid(ctx context.Context, request *shared.SourceRkiCovidCreateRequest, opts ...operations.Option) (*operations.CreateSourceRkiCovidResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSmartengage", + OperationID: "createSourceRkiCovid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21285,7 +21527,7 @@ func (s *Sources) CreateSourceSmartengage(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceSmartengageResponse{ + res := &operations.CreateSourceRkiCovidResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21322,12 +21564,12 @@ func (s *Sources) CreateSourceSmartengage(ctx context.Context, request *shared.S } -// CreateSourceSmartsheets - 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) CreateSourceSmartsheets(ctx context.Context, request *shared.SourceSmartsheetsCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmartsheetsResponse, error) { +func (s *Sources) CreateSourceRss(ctx context.Context, request *shared.SourceRssCreateRequest, opts ...operations.Option) (*operations.CreateSourceRssResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSmartsheets", + OperationID: "createSourceRss", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21406,7 +21648,7 @@ func (s *Sources) CreateSourceSmartsheets(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceSmartsheetsResponse{ + res := &operations.CreateSourceRssResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21443,12 +21685,12 @@ func (s *Sources) CreateSourceSmartsheets(ctx context.Context, request *shared.S } -// CreateSourceSnapchatMarketing - 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) CreateSourceSnapchatMarketing(ctx context.Context, request *shared.SourceSnapchatMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceSnapchatMarketingResponse, error) { +func (s *Sources) CreateSourceS3(ctx context.Context, request *shared.SourceS3CreateRequest, opts ...operations.Option) (*operations.CreateSourceS3Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSnapchatMarketing", + OperationID: "createSourceS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21527,7 +21769,7 @@ func (s *Sources) CreateSourceSnapchatMarketing(ctx context.Context, request *sh } } - res := &operations.CreateSourceSnapchatMarketingResponse{ + res := &operations.CreateSourceS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21564,12 +21806,12 @@ func (s *Sources) CreateSourceSnapchatMarketing(ctx context.Context, request *sh } -// CreateSourceSnowflake - 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) CreateSourceSnowflake(ctx context.Context, request *shared.SourceSnowflakeCreateRequest, opts ...operations.Option) (*operations.CreateSourceSnowflakeResponse, error) { +func (s *Sources) CreateSourceSalesforce(ctx context.Context, request *shared.SourceSalesforceCreateRequest, opts ...operations.Option) (*operations.CreateSourceSalesforceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSnowflake", + OperationID: "createSourceSalesforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21648,7 +21890,7 @@ func (s *Sources) CreateSourceSnowflake(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceSnowflakeResponse{ + res := &operations.CreateSourceSalesforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21685,12 +21927,12 @@ func (s *Sources) CreateSourceSnowflake(ctx context.Context, request *shared.Sou } -// CreateSourceSonarCloud - 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) CreateSourceSonarCloud(ctx context.Context, request *shared.SourceSonarCloudCreateRequest, opts ...operations.Option) (*operations.CreateSourceSonarCloudResponse, error) { +func (s *Sources) CreateSourceSalesloft(ctx context.Context, request *shared.SourceSalesloftCreateRequest, opts ...operations.Option) (*operations.CreateSourceSalesloftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSonarCloud", + OperationID: "createSourceSalesloft", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21769,7 +22011,7 @@ func (s *Sources) CreateSourceSonarCloud(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceSonarCloudResponse{ + res := &operations.CreateSourceSalesloftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21806,12 +22048,12 @@ func (s *Sources) CreateSourceSonarCloud(ctx context.Context, request *shared.So } -// CreateSourceSpacexAPI - 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) CreateSourceSpacexAPI(ctx context.Context, request *shared.SourceSpacexAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceSpacexAPIResponse, error) { +func (s *Sources) CreateSourceSapFieldglass(ctx context.Context, request *shared.SourceSapFieldglassCreateRequest, opts ...operations.Option) (*operations.CreateSourceSapFieldglassResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSpacexApi", + OperationID: "createSourceSapFieldglass", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -21890,7 +22132,7 @@ func (s *Sources) CreateSourceSpacexAPI(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceSpacexAPIResponse{ + res := &operations.CreateSourceSapFieldglassResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -21927,12 +22169,12 @@ func (s *Sources) CreateSourceSpacexAPI(ctx context.Context, request *shared.Sou } -// CreateSourceSquare - 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) CreateSourceSquare(ctx context.Context, request *shared.SourceSquareCreateRequest, opts ...operations.Option) (*operations.CreateSourceSquareResponse, error) { +func (s *Sources) CreateSourceSavvycal(ctx context.Context, request *shared.SourceSavvycalCreateRequest, opts ...operations.Option) (*operations.CreateSourceSavvycalResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSquare", + OperationID: "createSourceSavvycal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22011,7 +22253,7 @@ func (s *Sources) CreateSourceSquare(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceSquareResponse{ + res := &operations.CreateSourceSavvycalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22048,12 +22290,12 @@ func (s *Sources) CreateSourceSquare(ctx context.Context, request *shared.Source } -// CreateSourceStrava - 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) CreateSourceStrava(ctx context.Context, request *shared.SourceStravaCreateRequest, opts ...operations.Option) (*operations.CreateSourceStravaResponse, error) { +func (s *Sources) CreateSourceScryfall(ctx context.Context, request *shared.SourceScryfallCreateRequest, opts ...operations.Option) (*operations.CreateSourceScryfallResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceStrava", + OperationID: "createSourceScryfall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22132,7 +22374,7 @@ func (s *Sources) CreateSourceStrava(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceStravaResponse{ + res := &operations.CreateSourceScryfallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22169,12 +22411,12 @@ func (s *Sources) CreateSourceStrava(ctx context.Context, request *shared.Source } -// CreateSourceStripe - 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) CreateSourceStripe(ctx context.Context, request *shared.SourceStripeCreateRequest, opts ...operations.Option) (*operations.CreateSourceStripeResponse, error) { +func (s *Sources) CreateSourceSecoda(ctx context.Context, request *shared.SourceSecodaCreateRequest, opts ...operations.Option) (*operations.CreateSourceSecodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceStripe", + OperationID: "createSourceSecoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22253,7 +22495,7 @@ func (s *Sources) CreateSourceStripe(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceStripeResponse{ + res := &operations.CreateSourceSecodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22290,12 +22532,12 @@ func (s *Sources) CreateSourceStripe(ctx context.Context, request *shared.Source } -// CreateSourceSurveySparrow - 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) CreateSourceSurveySparrow(ctx context.Context, request *shared.SourceSurveySparrowCreateRequest, opts ...operations.Option) (*operations.CreateSourceSurveySparrowResponse, error) { +func (s *Sources) CreateSourceSendgrid(ctx context.Context, request *shared.SourceSendgridCreateRequest, opts ...operations.Option) (*operations.CreateSourceSendgridResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSurveySparrow", + OperationID: "createSourceSendgrid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22374,7 +22616,7 @@ func (s *Sources) CreateSourceSurveySparrow(ctx context.Context, request *shared } } - res := &operations.CreateSourceSurveySparrowResponse{ + res := &operations.CreateSourceSendgridResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22411,12 +22653,12 @@ func (s *Sources) CreateSourceSurveySparrow(ctx context.Context, request *shared } -// CreateSourceSurveymonkey - 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) CreateSourceSurveymonkey(ctx context.Context, request *shared.SourceSurveymonkeyCreateRequest, opts ...operations.Option) (*operations.CreateSourceSurveymonkeyResponse, error) { +func (s *Sources) CreateSourceSendinblue(ctx context.Context, request *shared.SourceSendinblueCreateRequest, opts ...operations.Option) (*operations.CreateSourceSendinblueResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceSurveymonkey", + OperationID: "createSourceSendinblue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22495,7 +22737,7 @@ func (s *Sources) CreateSourceSurveymonkey(ctx context.Context, request *shared. } } - res := &operations.CreateSourceSurveymonkeyResponse{ + res := &operations.CreateSourceSendinblueResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22532,12 +22774,12 @@ func (s *Sources) CreateSourceSurveymonkey(ctx context.Context, request *shared. } -// CreateSourceTempo - 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) CreateSourceTempo(ctx context.Context, request *shared.SourceTempoCreateRequest, opts ...operations.Option) (*operations.CreateSourceTempoResponse, error) { +func (s *Sources) CreateSourceSenseforce(ctx context.Context, request *shared.SourceSenseforceCreateRequest, opts ...operations.Option) (*operations.CreateSourceSenseforceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTempo", + OperationID: "createSourceSenseforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22616,7 +22858,7 @@ func (s *Sources) CreateSourceTempo(ctx context.Context, request *shared.SourceT } } - res := &operations.CreateSourceTempoResponse{ + res := &operations.CreateSourceSenseforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22653,12 +22895,12 @@ func (s *Sources) CreateSourceTempo(ctx context.Context, request *shared.SourceT } -// CreateSourceTheGuardianAPI - 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) CreateSourceTheGuardianAPI(ctx context.Context, request *shared.SourceTheGuardianAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceTheGuardianAPIResponse, error) { +func (s *Sources) CreateSourceSentry(ctx context.Context, request *shared.SourceSentryCreateRequest, opts ...operations.Option) (*operations.CreateSourceSentryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTheGuardianApi", + OperationID: "createSourceSentry", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22737,7 +22979,7 @@ func (s *Sources) CreateSourceTheGuardianAPI(ctx context.Context, request *share } } - res := &operations.CreateSourceTheGuardianAPIResponse{ + res := &operations.CreateSourceSentryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22774,12 +23016,12 @@ func (s *Sources) CreateSourceTheGuardianAPI(ctx context.Context, request *share } -// CreateSourceTiktokMarketing - 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) CreateSourceTiktokMarketing(ctx context.Context, request *shared.SourceTiktokMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceTiktokMarketingResponse, error) { +func (s *Sources) CreateSourceSftp(ctx context.Context, request *shared.SourceSftpCreateRequest, opts ...operations.Option) (*operations.CreateSourceSftpResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTiktokMarketing", + OperationID: "createSourceSftp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22858,7 +23100,7 @@ func (s *Sources) CreateSourceTiktokMarketing(ctx context.Context, request *shar } } - res := &operations.CreateSourceTiktokMarketingResponse{ + res := &operations.CreateSourceSftpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -22895,12 +23137,12 @@ func (s *Sources) CreateSourceTiktokMarketing(ctx context.Context, request *shar } -// CreateSourceTrello - 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) CreateSourceTrello(ctx context.Context, request *shared.SourceTrelloCreateRequest, opts ...operations.Option) (*operations.CreateSourceTrelloResponse, error) { +func (s *Sources) CreateSourceSftpBulk(ctx context.Context, request *shared.SourceSftpBulkCreateRequest, opts ...operations.Option) (*operations.CreateSourceSftpBulkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTrello", + OperationID: "createSourceSftpBulk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -22979,7 +23221,7 @@ func (s *Sources) CreateSourceTrello(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceTrelloResponse{ + res := &operations.CreateSourceSftpBulkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23016,12 +23258,12 @@ func (s *Sources) CreateSourceTrello(ctx context.Context, request *shared.Source } -// CreateSourceTrustpilot - 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) CreateSourceTrustpilot(ctx context.Context, request *shared.SourceTrustpilotCreateRequest, opts ...operations.Option) (*operations.CreateSourceTrustpilotResponse, error) { +func (s *Sources) CreateSourceShopify(ctx context.Context, request *shared.SourceShopifyCreateRequest, opts ...operations.Option) (*operations.CreateSourceShopifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTrustpilot", + OperationID: "createSourceShopify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23100,7 +23342,7 @@ func (s *Sources) CreateSourceTrustpilot(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceTrustpilotResponse{ + res := &operations.CreateSourceShopifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23137,12 +23379,12 @@ func (s *Sources) CreateSourceTrustpilot(ctx context.Context, request *shared.So } -// CreateSourceTvmazeSchedule - Create a source +// CreateSourceShortcut - 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) CreateSourceShortcut(ctx context.Context, request *shared.SourceShortcutCreateRequest, opts ...operations.Option) (*operations.CreateSourceShortcutResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTvmazeSchedule", + OperationID: "createSourceShortcut", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23221,7 +23463,7 @@ func (s *Sources) CreateSourceTvmazeSchedule(ctx context.Context, request *share } } - res := &operations.CreateSourceTvmazeScheduleResponse{ + res := &operations.CreateSourceShortcutResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23258,12 +23500,12 @@ func (s *Sources) CreateSourceTvmazeSchedule(ctx context.Context, request *share } -// CreateSourceTwilio - 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) CreateSourceTwilio(ctx context.Context, request *shared.SourceTwilioCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwilioResponse, error) { +func (s *Sources) CreateSourceShortio(ctx context.Context, request *shared.SourceShortioCreateRequest, opts ...operations.Option) (*operations.CreateSourceShortioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTwilio", + OperationID: "createSourceShortio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23342,7 +23584,7 @@ func (s *Sources) CreateSourceTwilio(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceTwilioResponse{ + res := &operations.CreateSourceShortioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23379,12 +23621,12 @@ func (s *Sources) CreateSourceTwilio(ctx context.Context, request *shared.Source } -// CreateSourceTwilioTaskrouter - 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) CreateSourceTwilioTaskrouter(ctx context.Context, request *shared.SourceTwilioTaskrouterCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwilioTaskrouterResponse, error) { +func (s *Sources) CreateSourceSlack(ctx context.Context, request *shared.SourceSlackCreateRequest, opts ...operations.Option) (*operations.CreateSourceSlackResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTwilioTaskrouter", + OperationID: "createSourceSlack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23463,7 +23705,7 @@ func (s *Sources) CreateSourceTwilioTaskrouter(ctx context.Context, request *sha } } - res := &operations.CreateSourceTwilioTaskrouterResponse{ + res := &operations.CreateSourceSlackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23500,12 +23742,12 @@ func (s *Sources) CreateSourceTwilioTaskrouter(ctx context.Context, request *sha } -// CreateSourceTwitter - 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) CreateSourceTwitter(ctx context.Context, request *shared.SourceTwitterCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwitterResponse, error) { +func (s *Sources) CreateSourceSmaily(ctx context.Context, request *shared.SourceSmailyCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmailyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTwitter", + OperationID: "createSourceSmaily", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23584,7 +23826,7 @@ func (s *Sources) CreateSourceTwitter(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceTwitterResponse{ + res := &operations.CreateSourceSmailyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23621,12 +23863,12 @@ func (s *Sources) CreateSourceTwitter(ctx context.Context, request *shared.Sourc } -// CreateSourceTypeform - 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) CreateSourceTypeform(ctx context.Context, request *shared.SourceTypeformCreateRequest, opts ...operations.Option) (*operations.CreateSourceTypeformResponse, error) { +func (s *Sources) CreateSourceSmartengage(ctx context.Context, request *shared.SourceSmartengageCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmartengageResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceTypeform", + OperationID: "createSourceSmartengage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23705,7 +23947,7 @@ func (s *Sources) CreateSourceTypeform(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceTypeformResponse{ + res := &operations.CreateSourceSmartengageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23742,12 +23984,12 @@ func (s *Sources) CreateSourceTypeform(ctx context.Context, request *shared.Sour } -// CreateSourceUsCensus - 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) CreateSourceUsCensus(ctx context.Context, request *shared.SourceUsCensusCreateRequest, opts ...operations.Option) (*operations.CreateSourceUsCensusResponse, error) { +func (s *Sources) CreateSourceSmartsheets(ctx context.Context, request *shared.SourceSmartsheetsCreateRequest, opts ...operations.Option) (*operations.CreateSourceSmartsheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceUsCensus", + OperationID: "createSourceSmartsheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23826,7 +24068,7 @@ func (s *Sources) CreateSourceUsCensus(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceUsCensusResponse{ + res := &operations.CreateSourceSmartsheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23863,12 +24105,12 @@ func (s *Sources) CreateSourceUsCensus(ctx context.Context, request *shared.Sour } -// CreateSourceVantage - 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) CreateSourceVantage(ctx context.Context, request *shared.SourceVantageCreateRequest, opts ...operations.Option) (*operations.CreateSourceVantageResponse, error) { +func (s *Sources) CreateSourceSnapchatMarketing(ctx context.Context, request *shared.SourceSnapchatMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceSnapchatMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceVantage", + OperationID: "createSourceSnapchatMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -23947,7 +24189,7 @@ func (s *Sources) CreateSourceVantage(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceVantageResponse{ + res := &operations.CreateSourceSnapchatMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -23984,12 +24226,12 @@ func (s *Sources) CreateSourceVantage(ctx context.Context, request *shared.Sourc } -// CreateSourceWebflow - 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) CreateSourceWebflow(ctx context.Context, request *shared.SourceWebflowCreateRequest, opts ...operations.Option) (*operations.CreateSourceWebflowResponse, error) { +func (s *Sources) CreateSourceSnowflake(ctx context.Context, request *shared.SourceSnowflakeCreateRequest, opts ...operations.Option) (*operations.CreateSourceSnowflakeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceWebflow", + OperationID: "createSourceSnowflake", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24068,7 +24310,7 @@ func (s *Sources) CreateSourceWebflow(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceWebflowResponse{ + res := &operations.CreateSourceSnowflakeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24105,12 +24347,12 @@ func (s *Sources) CreateSourceWebflow(ctx context.Context, request *shared.Sourc } -// CreateSourceWhiskyHunter - 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) CreateSourceWhiskyHunter(ctx context.Context, request *shared.SourceWhiskyHunterCreateRequest, opts ...operations.Option) (*operations.CreateSourceWhiskyHunterResponse, error) { +func (s *Sources) CreateSourceSonarCloud(ctx context.Context, request *shared.SourceSonarCloudCreateRequest, opts ...operations.Option) (*operations.CreateSourceSonarCloudResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceWhiskyHunter", + OperationID: "createSourceSonarCloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24189,7 +24431,7 @@ func (s *Sources) CreateSourceWhiskyHunter(ctx context.Context, request *shared. } } - res := &operations.CreateSourceWhiskyHunterResponse{ + res := &operations.CreateSourceSonarCloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24226,12 +24468,12 @@ func (s *Sources) CreateSourceWhiskyHunter(ctx context.Context, request *shared. } -// CreateSourceWikipediaPageviews - 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) CreateSourceWikipediaPageviews(ctx context.Context, request *shared.SourceWikipediaPageviewsCreateRequest, opts ...operations.Option) (*operations.CreateSourceWikipediaPageviewsResponse, error) { +func (s *Sources) CreateSourceSpacexAPI(ctx context.Context, request *shared.SourceSpacexAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceSpacexAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceWikipediaPageviews", + OperationID: "createSourceSpacexApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24310,7 +24552,7 @@ func (s *Sources) CreateSourceWikipediaPageviews(ctx context.Context, request *s } } - res := &operations.CreateSourceWikipediaPageviewsResponse{ + res := &operations.CreateSourceSpacexAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24347,12 +24589,12 @@ func (s *Sources) CreateSourceWikipediaPageviews(ctx context.Context, request *s } -// CreateSourceWoocommerce - 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) CreateSourceWoocommerce(ctx context.Context, request *shared.SourceWoocommerceCreateRequest, opts ...operations.Option) (*operations.CreateSourceWoocommerceResponse, error) { +func (s *Sources) CreateSourceSquare(ctx context.Context, request *shared.SourceSquareCreateRequest, opts ...operations.Option) (*operations.CreateSourceSquareResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceWoocommerce", + OperationID: "createSourceSquare", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24431,7 +24673,7 @@ func (s *Sources) CreateSourceWoocommerce(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceWoocommerceResponse{ + res := &operations.CreateSourceSquareResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24468,12 +24710,12 @@ func (s *Sources) CreateSourceWoocommerce(ctx context.Context, request *shared.S } -// CreateSourceXkcd - 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) CreateSourceXkcd(ctx context.Context, request *shared.SourceXkcdCreateRequest, opts ...operations.Option) (*operations.CreateSourceXkcdResponse, error) { +func (s *Sources) CreateSourceStrava(ctx context.Context, request *shared.SourceStravaCreateRequest, opts ...operations.Option) (*operations.CreateSourceStravaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceXkcd", + OperationID: "createSourceStrava", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24552,7 +24794,7 @@ func (s *Sources) CreateSourceXkcd(ctx context.Context, request *shared.SourceXk } } - res := &operations.CreateSourceXkcdResponse{ + res := &operations.CreateSourceStravaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24589,12 +24831,12 @@ func (s *Sources) CreateSourceXkcd(ctx context.Context, request *shared.SourceXk } -// CreateSourceYandexMetrica - 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) CreateSourceYandexMetrica(ctx context.Context, request *shared.SourceYandexMetricaCreateRequest, opts ...operations.Option) (*operations.CreateSourceYandexMetricaResponse, error) { +func (s *Sources) CreateSourceStripe(ctx context.Context, request *shared.SourceStripeCreateRequest, opts ...operations.Option) (*operations.CreateSourceStripeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceYandexMetrica", + OperationID: "createSourceStripe", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24673,7 +24915,7 @@ func (s *Sources) CreateSourceYandexMetrica(ctx context.Context, request *shared } } - res := &operations.CreateSourceYandexMetricaResponse{ + res := &operations.CreateSourceStripeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24710,12 +24952,12 @@ func (s *Sources) CreateSourceYandexMetrica(ctx context.Context, request *shared } -// CreateSourceYotpo - 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) CreateSourceYotpo(ctx context.Context, request *shared.SourceYotpoCreateRequest, opts ...operations.Option) (*operations.CreateSourceYotpoResponse, error) { +func (s *Sources) CreateSourceSurveySparrow(ctx context.Context, request *shared.SourceSurveySparrowCreateRequest, opts ...operations.Option) (*operations.CreateSourceSurveySparrowResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceYotpo", + OperationID: "createSourceSurveySparrow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24794,7 +25036,7 @@ func (s *Sources) CreateSourceYotpo(ctx context.Context, request *shared.SourceY } } - res := &operations.CreateSourceYotpoResponse{ + res := &operations.CreateSourceSurveySparrowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24831,12 +25073,12 @@ func (s *Sources) CreateSourceYotpo(ctx context.Context, request *shared.SourceY } -// CreateSourceYoutubeAnalytics - 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) CreateSourceYoutubeAnalytics(ctx context.Context, request *shared.SourceYoutubeAnalyticsCreateRequest, opts ...operations.Option) (*operations.CreateSourceYoutubeAnalyticsResponse, error) { +func (s *Sources) CreateSourceSurveymonkey(ctx context.Context, request *shared.SourceSurveymonkeyCreateRequest, opts ...operations.Option) (*operations.CreateSourceSurveymonkeyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceYoutubeAnalytics", + OperationID: "createSourceSurveymonkey", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -24915,7 +25157,7 @@ func (s *Sources) CreateSourceYoutubeAnalytics(ctx context.Context, request *sha } } - res := &operations.CreateSourceYoutubeAnalyticsResponse{ + res := &operations.CreateSourceSurveymonkeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -24952,12 +25194,12 @@ func (s *Sources) CreateSourceYoutubeAnalytics(ctx context.Context, request *sha } -// CreateSourceZendeskChat - Create a source +// CreateSourceSurvicate - 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) CreateSourceSurvicate(ctx context.Context, request *shared.SourceSurvicateCreateRequest, opts ...operations.Option) (*operations.CreateSourceSurvicateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskChat", + OperationID: "createSourceSurvicate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25036,7 +25278,7 @@ func (s *Sources) CreateSourceZendeskChat(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceZendeskChatResponse{ + res := &operations.CreateSourceSurvicateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25073,12 +25315,12 @@ func (s *Sources) CreateSourceZendeskChat(ctx context.Context, request *shared.S } -// CreateSourceZendeskSell - Create a source +// CreateSourceTeamwork - 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) CreateSourceTeamwork(ctx context.Context, request *shared.SourceTeamworkCreateRequest, opts ...operations.Option) (*operations.CreateSourceTeamworkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskSell", + OperationID: "createSourceTeamwork", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25157,7 +25399,7 @@ func (s *Sources) CreateSourceZendeskSell(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceZendeskSellResponse{ + res := &operations.CreateSourceTeamworkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25194,12 +25436,12 @@ func (s *Sources) CreateSourceZendeskSell(ctx context.Context, request *shared.S } -// CreateSourceZendeskSunshine - 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) CreateSourceZendeskSunshine(ctx context.Context, request *shared.SourceZendeskSunshineCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskSunshineResponse, error) { +func (s *Sources) CreateSourceTempo(ctx context.Context, request *shared.SourceTempoCreateRequest, opts ...operations.Option) (*operations.CreateSourceTempoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskSunshine", + OperationID: "createSourceTempo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25278,7 +25520,7 @@ func (s *Sources) CreateSourceZendeskSunshine(ctx context.Context, request *shar } } - res := &operations.CreateSourceZendeskSunshineResponse{ + res := &operations.CreateSourceTempoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25315,12 +25557,12 @@ func (s *Sources) CreateSourceZendeskSunshine(ctx context.Context, request *shar } -// CreateSourceZendeskSupport - 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) CreateSourceZendeskSupport(ctx context.Context, request *shared.SourceZendeskSupportCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskSupportResponse, error) { +func (s *Sources) CreateSourceTheGuardianAPI(ctx context.Context, request *shared.SourceTheGuardianAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceTheGuardianAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskSupport", + OperationID: "createSourceTheGuardianApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25399,7 +25641,7 @@ func (s *Sources) CreateSourceZendeskSupport(ctx context.Context, request *share } } - res := &operations.CreateSourceZendeskSupportResponse{ + res := &operations.CreateSourceTheGuardianAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25436,12 +25678,12 @@ func (s *Sources) CreateSourceZendeskSupport(ctx context.Context, request *share } -// CreateSourceZendeskTalk - 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) CreateSourceZendeskTalk(ctx context.Context, request *shared.SourceZendeskTalkCreateRequest, opts ...operations.Option) (*operations.CreateSourceZendeskTalkResponse, error) { +func (s *Sources) CreateSourceTiktokMarketing(ctx context.Context, request *shared.SourceTiktokMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceTiktokMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZendeskTalk", + OperationID: "createSourceTiktokMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25520,7 +25762,7 @@ func (s *Sources) CreateSourceZendeskTalk(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceZendeskTalkResponse{ + res := &operations.CreateSourceTiktokMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25557,12 +25799,12 @@ func (s *Sources) CreateSourceZendeskTalk(ctx context.Context, request *shared.S } -// CreateSourceZenloop - 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) CreateSourceZenloop(ctx context.Context, request *shared.SourceZenloopCreateRequest, opts ...operations.Option) (*operations.CreateSourceZenloopResponse, error) { +func (s *Sources) CreateSourceTrello(ctx context.Context, request *shared.SourceTrelloCreateRequest, opts ...operations.Option) (*operations.CreateSourceTrelloResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZenloop", + OperationID: "createSourceTrello", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25641,7 +25883,7 @@ func (s *Sources) CreateSourceZenloop(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceZenloopResponse{ + res := &operations.CreateSourceTrelloResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25678,12 +25920,12 @@ func (s *Sources) CreateSourceZenloop(ctx context.Context, request *shared.Sourc } -// CreateSourceZohoCrm - 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) CreateSourceZohoCrm(ctx context.Context, request *shared.SourceZohoCrmCreateRequest, opts ...operations.Option) (*operations.CreateSourceZohoCrmResponse, error) { +func (s *Sources) CreateSourceTrustpilot(ctx context.Context, request *shared.SourceTrustpilotCreateRequest, opts ...operations.Option) (*operations.CreateSourceTrustpilotResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZohoCrm", + OperationID: "createSourceTrustpilot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25762,7 +26004,7 @@ func (s *Sources) CreateSourceZohoCrm(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceZohoCrmResponse{ + res := &operations.CreateSourceTrustpilotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25799,12 +26041,12 @@ func (s *Sources) CreateSourceZohoCrm(ctx context.Context, request *shared.Sourc } -// CreateSourceZoom - 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) CreateSourceZoom(ctx context.Context, request *shared.SourceZoomCreateRequest, opts ...operations.Option) (*operations.CreateSourceZoomResponse, error) { +func (s *Sources) CreateSourceTvmazeSchedule(ctx context.Context, request *shared.SourceTvmazeScheduleCreateRequest, opts ...operations.Option) (*operations.CreateSourceTvmazeScheduleResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceZoom", + OperationID: "createSourceTvmazeSchedule", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25883,7 +26125,7 @@ func (s *Sources) CreateSourceZoom(ctx context.Context, request *shared.SourceZo } } - res := &operations.CreateSourceZoomResponse{ + res := &operations.CreateSourceTvmazeScheduleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -25920,11 +26162,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) { +// 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) CreateSourceTwilio(ctx context.Context, request *shared.SourceTwilioCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwilioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSource", + OperationID: "createSourceTwilio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -25941,11 +26184,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) } + 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 @@ -25957,12 +26205,13 @@ func (s *Sources) DeleteSource(ctx context.Context, request operations.DeleteSou 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 @@ -25997,7 +26246,7 @@ func (s *Sources) DeleteSource(ctx context.Context, request operations.DeleteSou } } - res := &operations.DeleteSourceResponse{ + res := &operations.CreateSourceTwilioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26011,11 +26260,21 @@ func (s *Sources) DeleteSource(ctx context.Context, request operations.DeleteSou 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) } @@ -26024,11 +26283,12 @@ func (s *Sources) DeleteSource(ctx context.Context, request operations.DeleteSou } -// DeleteSourceAha - Delete a Source -func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.DeleteSourceAhaRequest, opts ...operations.Option) (*operations.DeleteSourceAhaResponse, error) { +// 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) CreateSourceTwilioTaskrouter(ctx context.Context, request *shared.SourceTwilioTaskrouterCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwilioTaskrouterResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAha", + OperationID: "createSourceTwilioTaskrouter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26045,11 +26305,16 @@ func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.Delete } 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 @@ -26061,12 +26326,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 @@ -26101,7 +26367,7 @@ func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceAhaResponse{ + res := &operations.CreateSourceTwilioTaskrouterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26115,11 +26381,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) } @@ -26128,11 +26404,12 @@ func (s *Sources) DeleteSourceAha(ctx context.Context, request operations.Delete } -// DeleteSourceAirbyte - Delete a Source -func (s *Sources) DeleteSourceAirbyte(ctx context.Context, request operations.DeleteSourceAirbyteRequest, opts ...operations.Option) (*operations.DeleteSourceAirbyteResponse, error) { +// 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) CreateSourceTwitter(ctx context.Context, request *shared.SourceTwitterCreateRequest, opts ...operations.Option) (*operations.CreateSourceTwitterResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAirbyte", + OperationID: "createSourceTwitter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26149,115 +26426,16 @@ func (s *Sources) DeleteSourceAirbyte(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) } - 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.DeleteSourceAirbyteResponse{ - 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 - -} - -// 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: "deleteSourceAircall", - 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 @@ -26269,12 +26447,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 @@ -26309,7 +26488,7 @@ func (s *Sources) DeleteSourceAircall(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceAircallResponse{ + res := &operations.CreateSourceTwitterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26323,11 +26502,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) } @@ -26336,11 +26525,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) { +// 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) CreateSourceTypeform(ctx context.Context, request *shared.SourceTypeformCreateRequest, opts ...operations.Option) (*operations.CreateSourceTypeformResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAirtable", + OperationID: "createSourceTypeform", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26357,11 +26547,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 @@ -26373,12 +26568,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 @@ -26413,7 +26609,7 @@ func (s *Sources) DeleteSourceAirtable(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceAirtableResponse{ + res := &operations.CreateSourceTypeformResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26427,11 +26623,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) } @@ -26440,11 +26646,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) { +// 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) CreateSourceUsCensus(ctx context.Context, request *shared.SourceUsCensusCreateRequest, opts ...operations.Option) (*operations.CreateSourceUsCensusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAmazonAds", + OperationID: "createSourceUsCensus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26461,11 +26668,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 @@ -26477,12 +26689,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 @@ -26517,7 +26730,7 @@ func (s *Sources) DeleteSourceAmazonAds(ctx context.Context, request operations. } } - res := &operations.DeleteSourceAmazonAdsResponse{ + res := &operations.CreateSourceUsCensusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26531,11 +26744,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) } @@ -26544,11 +26767,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) { +// 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: "deleteSourceAmazonSellerPartner", + OperationID: "createSourceVantage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26565,11 +26789,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 @@ -26581,12 +26810,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 @@ -26621,7 +26851,7 @@ func (s *Sources) DeleteSourceAmazonSellerPartner(ctx context.Context, request o } } - res := &operations.DeleteSourceAmazonSellerPartnerResponse{ + res := &operations.CreateSourceVantageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26635,11 +26865,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) } @@ -26648,11 +26888,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) { +// 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: "deleteSourceAmazonSqs", + OperationID: "createSourceWebflow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26669,11 +26910,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 @@ -26685,11 +26931,2773 @@ 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 + } + + 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.CreateSourceWebflowResponse{ + 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 + +} + +// CreateSourceWhenIWork - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourceWhenIWork(ctx context.Context, request *shared.SourceWhenIWorkCreateRequest, opts ...operations.Option) (*operations.CreateSourceWhenIWorkResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "createSourceWhenIWork", + 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.CreateSourceWhenIWorkResponse{ + 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 + +} + +// 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: "createSourceWhiskyHunter", + 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.CreateSourceWhiskyHunterResponse{ + 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 + +} + +// 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: "createSourceWikipediaPageviews", + 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.CreateSourceWikipediaPageviewsResponse{ + 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 + +} + +// 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: "createSourceWoocommerce", + 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.CreateSourceWoocommerceResponse{ + 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 + +} + +// 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: "createSourceXkcd", + 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.CreateSourceXkcdResponse{ + 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 + +} + +// 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: "createSourceYandexMetrica", + 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.CreateSourceYandexMetricaResponse{ + 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 + +} + +// 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: "createSourceYotpo", + 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.CreateSourceYotpoResponse{ + 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 + +} + +// 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: "createSourceYoutubeAnalytics", + 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.CreateSourceYoutubeAnalyticsResponse{ + 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 + +} + +// 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: "createSourceZendeskChat", + 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.CreateSourceZendeskChatResponse{ + 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 + +} + +// 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: "createSourceZendeskSunshine", + 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.CreateSourceZendeskSunshineResponse{ + 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 + +} + +// 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: "createSourceZendeskSupport", + 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.CreateSourceZendeskSupportResponse{ + 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 + +} + +// 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: "createSourceZendeskTalk", + 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.CreateSourceZendeskTalkResponse{ + 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 + +} + +// 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: "createSourceZenloop", + 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.CreateSourceZenloopResponse{ + 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 + +} + +// 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: "createSourceZohoCrm", + 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.CreateSourceZohoCrmResponse{ + 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 + +} + +// 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: "createSourceZoom", + 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.CreateSourceZoomResponse{ + 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 + +} + +// 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: "deleteSource", + 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.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 + +} + +// DeleteSource7shifts - Delete a Source +func (s *Sources) DeleteSource7shifts(ctx context.Context, request operations.DeleteSource7shiftsRequest, opts ...operations.Option) (*operations.DeleteSource7shiftsResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSource7shifts", + 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.DeleteSource7shiftsResponse{ + 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 + } + + 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.DeleteSourceAhaResponse{ + 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 + +} + +// 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: "deleteSourceAirbyte", + 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.DeleteSourceAirbyteResponse{ + 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 + +} + +// 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: "deleteSourceAircall", + 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.DeleteSourceAircallResponse{ + 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 + +} + +// 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: "deleteSourceAirtable", + 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.DeleteSourceAirtableResponse{ + 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 + +} + +// 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: "deleteSourceAmazonAds", + 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.DeleteSourceAmazonAdsResponse{ + 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 + +} + +// 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: "deleteSourceAmazonSellerPartner", + 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.DeleteSourceAmazonSellerPartnerResponse{ + 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 + +} + +// 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: "deleteSourceAmazonSqs", + 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 { @@ -26752,11 +29760,6147 @@ 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) { +// 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: "deleteSourceAmplitude", + 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.DeleteSourceAmplitudeResponse{ + 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 + +} + +// 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: "deleteSourceApifyDataset", + 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.DeleteSourceApifyDatasetResponse{ + 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 + +} + +// DeleteSourceAppcues - Delete a Source +func (s *Sources) DeleteSourceAppcues(ctx context.Context, request operations.DeleteSourceAppcuesRequest, opts ...operations.Option) (*operations.DeleteSourceAppcuesResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceAppcues", + 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.DeleteSourceAppcuesResponse{ + 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 + +} + +// DeleteSourceAppfigures - Delete a Source +func (s *Sources) DeleteSourceAppfigures(ctx context.Context, request operations.DeleteSourceAppfiguresRequest, opts ...operations.Option) (*operations.DeleteSourceAppfiguresResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceAppfigures", + 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.DeleteSourceAppfiguresResponse{ + 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 + +} + +// 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: "deleteSourceAppfollow", + 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.DeleteSourceAppfollowResponse{ + 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 + +} + +// 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: "deleteSourceAsana", + 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.DeleteSourceAsanaResponse{ + 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 + +} + +// 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: "deleteSourceAuth0", + 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.DeleteSourceAuth0Response{ + 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 + +} + +// 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: "deleteSourceAwsCloudtrail", + 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.DeleteSourceAwsCloudtrailResponse{ + 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 + +} + +// 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: "deleteSourceAzureBlobStorage", + 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.DeleteSourceAzureBlobStorageResponse{ + 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 + +} + +// 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: "deleteSourceAzureTable", + 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.DeleteSourceAzureTableResponse{ + 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 + +} + +// 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: "deleteSourceBambooHr", + 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.DeleteSourceBambooHrResponse{ + 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 + +} + +// 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: "deleteSourceBasecamp", + 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.DeleteSourceBasecampResponse{ + 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 + +} + +// 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: "deleteSourceBigquery", + 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.DeleteSourceBigqueryResponse{ + 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 + +} + +// 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: "deleteSourceBingAds", + 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.DeleteSourceBingAdsResponse{ + 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 + +} + +// DeleteSourceBitly - Delete a Source +func (s *Sources) DeleteSourceBitly(ctx context.Context, request operations.DeleteSourceBitlyRequest, opts ...operations.Option) (*operations.DeleteSourceBitlyResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceBitly", + 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.DeleteSourceBitlyResponse{ + 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 + +} + +// 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: "deleteSourceBraintree", + 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.DeleteSourceBraintreeResponse{ + 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 + +} + +// 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: "deleteSourceBraze", + 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.DeleteSourceBrazeResponse{ + 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 + +} + +// 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: "deleteSourceBreezyHr", + 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.DeleteSourceBreezyHrResponse{ + 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 + +} + +// DeleteSourceBrevo - Delete a Source +func (s *Sources) DeleteSourceBrevo(ctx context.Context, request operations.DeleteSourceBrevoRequest, opts ...operations.Option) (*operations.DeleteSourceBrevoResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceBrevo", + 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.DeleteSourceBrevoResponse{ + 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 + +} + +// DeleteSourceBuildkite - Delete a Source +func (s *Sources) DeleteSourceBuildkite(ctx context.Context, request operations.DeleteSourceBuildkiteRequest, opts ...operations.Option) (*operations.DeleteSourceBuildkiteResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceBuildkite", + 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.DeleteSourceBuildkiteResponse{ + 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 + +} + +// DeleteSourceBuzzsprout - Delete a Source +func (s *Sources) DeleteSourceBuzzsprout(ctx context.Context, request operations.DeleteSourceBuzzsproutRequest, opts ...operations.Option) (*operations.DeleteSourceBuzzsproutResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceBuzzsprout", + 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.DeleteSourceBuzzsproutResponse{ + 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 + +} + +// 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: "deleteSourceCalendly", + 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.DeleteSourceCalendlyResponse{ + 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 + +} + +// DeleteSourceCanny - Delete a Source +func (s *Sources) DeleteSourceCanny(ctx context.Context, request operations.DeleteSourceCannyRequest, opts ...operations.Option) (*operations.DeleteSourceCannyResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceCanny", + 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.DeleteSourceCannyResponse{ + 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 + +} + +// 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: "deleteSourceCart", + 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.DeleteSourceCartResponse{ + 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 + +} + +// DeleteSourceChameleon - Delete a Source +func (s *Sources) DeleteSourceChameleon(ctx context.Context, request operations.DeleteSourceChameleonRequest, opts ...operations.Option) (*operations.DeleteSourceChameleonResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceChameleon", + 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.DeleteSourceChameleonResponse{ + 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 + +} + +// 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: "deleteSourceChargebee", + 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.DeleteSourceChargebeeResponse{ + 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 + +} + +// 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: "deleteSourceChartmogul", + 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.DeleteSourceChartmogulResponse{ + 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 + +} + +// DeleteSourceCimis - Delete a Source +func (s *Sources) DeleteSourceCimis(ctx context.Context, request operations.DeleteSourceCimisRequest, opts ...operations.Option) (*operations.DeleteSourceCimisResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceCimis", + 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.DeleteSourceCimisResponse{ + 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 + +} + +// 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: "deleteSourceClazar", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.DeleteSourceClazarResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// DeleteSourceClickhouse - Delete a Source +func (s *Sources) DeleteSourceClickhouse(ctx context.Context, request operations.DeleteSourceClickhouseRequest, opts ...operations.Option) (*operations.DeleteSourceClickhouseResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceClickhouse", + 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.DeleteSourceClickhouseResponse{ + 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 + +} + +// 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: "deleteSourceClickupApi", + 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.DeleteSourceClickupAPIResponse{ + 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 + +} + +// 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: "deleteSourceClockify", + 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.DeleteSourceClockifyResponse{ + 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 + +} + +// 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: "deleteSourceCloseCom", + 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.DeleteSourceCloseComResponse{ + 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 + +} + +// 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: "deleteSourceCoda", + 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.DeleteSourceCodaResponse{ + 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 + +} + +// 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: "deleteSourceCoinApi", + 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.DeleteSourceCoinAPIResponse{ + 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 + +} + +// 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: "deleteSourceCoinmarketcap", + 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.DeleteSourceCoinmarketcapResponse{ + 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 + +} + +// 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: "deleteSourceConfigcat", + 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.DeleteSourceConfigcatResponse{ + 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 + +} + +// 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: "deleteSourceConfluence", + 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.DeleteSourceConfluenceResponse{ + 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 + +} + +// 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: "deleteSourceConvex", + 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.DeleteSourceConvexResponse{ + 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 + +} + +// 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: "deleteSourceCustom", + 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.DeleteSourceCustomResponse{ + 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 + +} + +// 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: "deleteSourceCustomerIo", + 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.DeleteSourceCustomerIoResponse{ + 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 + +} + +// 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: "deleteSourceDatadog", + 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.DeleteSourceDatadogResponse{ + 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 + +} + +// 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: "deleteSourceDatascope", + 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.DeleteSourceDatascopeResponse{ + 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 + +} + +// 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: "deleteSourceDbt", + 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.DeleteSourceDbtResponse{ + 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 + +} + +// 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: "deleteSourceDelighted", + 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.DeleteSourceDelightedResponse{ + 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 + +} + +// 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: "deleteSourceDixa", + 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.DeleteSourceDixaResponse{ + 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 + +} + +// 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: "deleteSourceDockerhub", + 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.DeleteSourceDockerhubResponse{ + 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 + +} + +// 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: "deleteSourceDremio", + 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.DeleteSourceDremioResponse{ + 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 + +} + +// 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: "deleteSourceDynamodb", + 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.DeleteSourceDynamodbResponse{ + 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 + +} + +// 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: "deleteSourceEmailoctopus", + 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.DeleteSourceEmailoctopusResponse{ + 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 + +} + +// 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: "deleteSourceExchangeRates", + 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.DeleteSourceExchangeRatesResponse{ + 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 + +} + +// DeleteSourceEzofficeinventory - Delete a Source +func (s *Sources) DeleteSourceEzofficeinventory(ctx context.Context, request operations.DeleteSourceEzofficeinventoryRequest, opts ...operations.Option) (*operations.DeleteSourceEzofficeinventoryResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceEzofficeinventory", + 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.DeleteSourceEzofficeinventoryResponse{ + 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 + +} + +// 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: "deleteSourceFacebookMarketing", + 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.DeleteSourceFacebookMarketingResponse{ + 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 + +} + +// 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: "deleteSourceFaker", + 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.DeleteSourceFakerResponse{ + 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 + +} + +// 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: "deleteSourceFauna", + 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.DeleteSourceFaunaResponse{ + 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 + +} + +// 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: "deleteSourceFile", + 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.DeleteSourceFileResponse{ + 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 + +} + +// 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: "deleteSourceFirebolt", + 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.DeleteSourceFireboltResponse{ + 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 + +} + +// 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: "deleteSourceFleetio", + 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.DeleteSourceFleetioResponse{ + 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 + +} + +// 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: "deleteSourceFreshcaller", + 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.DeleteSourceFreshcallerResponse{ + 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 + +} + +// 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: "deleteSourceAmplitude", + OperationID: "deleteSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26829,7 +35973,7 @@ func (s *Sources) DeleteSourceAmplitude(ctx context.Context, request operations. } } - res := &operations.DeleteSourceAmplitudeResponse{ + res := &operations.DeleteSourceFreshdeskResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26856,11 +36000,11 @@ 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) { +// 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: "deleteSourceApifyDataset", + OperationID: "deleteSourceFreshsales", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -26933,7 +36077,7 @@ func (s *Sources) DeleteSourceApifyDataset(ctx context.Context, request operatio } } - res := &operations.DeleteSourceApifyDatasetResponse{ + res := &operations.DeleteSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -26960,11 +36104,11 @@ 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) { +// DeleteSourceFront - Delete a Source +func (s *Sources) DeleteSourceFront(ctx context.Context, request operations.DeleteSourceFrontRequest, opts ...operations.Option) (*operations.DeleteSourceFrontResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceAppfollow", + OperationID: "deleteSourceFront", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27037,7 +36181,423 @@ func (s *Sources) DeleteSourceAppfollow(ctx context.Context, request operations. } } - res := &operations.DeleteSourceAppfollowResponse{ + res := &operations.DeleteSourceFrontResponse{ + 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 + +} + +// 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: "deleteSourceGainsightPx", + 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.DeleteSourceGainsightPxResponse{ + 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 + +} + +// 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: "deleteSourceGcs", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.DeleteSourceGcsResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// DeleteSourceGetlago - Delete a Source +func (s *Sources) DeleteSourceGetlago(ctx context.Context, request operations.DeleteSourceGetlagoRequest, opts ...operations.Option) (*operations.DeleteSourceGetlagoResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceGetlago", + 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.DeleteSourceGetlagoResponse{ + 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 + +} + +// 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: "deleteSourceGithub", + 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.DeleteSourceGithubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27064,11 +36624,11 @@ 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) { +// 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: "deleteSourceAsana", + OperationID: "deleteSourceGitlab", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27141,7 +36701,7 @@ func (s *Sources) DeleteSourceAsana(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceAsanaResponse{ + res := &operations.DeleteSourceGitlabResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27168,11 +36728,11 @@ 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) { +// 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: "deleteSourceAuth0", + OperationID: "deleteSourceGlassfrog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27245,7 +36805,7 @@ func (s *Sources) DeleteSourceAuth0(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceAuth0Response{ + res := &operations.DeleteSourceGlassfrogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27272,11 +36832,11 @@ 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) { +// 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: "deleteSourceAwsCloudtrail", + OperationID: "deleteSourceGnews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27349,7 +36909,7 @@ func (s *Sources) DeleteSourceAwsCloudtrail(ctx context.Context, request operati } } - res := &operations.DeleteSourceAwsCloudtrailResponse{ + res := &operations.DeleteSourceGnewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27376,11 +36936,11 @@ 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) { +// 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: "deleteSourceAzureBlobStorage", + OperationID: "deleteSourceGoldcast", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27453,7 +37013,7 @@ func (s *Sources) DeleteSourceAzureBlobStorage(ctx context.Context, request oper } } - res := &operations.DeleteSourceAzureBlobStorageResponse{ + res := &operations.DeleteSourceGoldcastResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27480,11 +37040,11 @@ 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) { +// 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: "deleteSourceAzureTable", + OperationID: "deleteSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27557,7 +37117,7 @@ func (s *Sources) DeleteSourceAzureTable(ctx context.Context, request operations } } - res := &operations.DeleteSourceAzureTableResponse{ + res := &operations.DeleteSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27584,11 +37144,11 @@ 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) { +// 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: "deleteSourceBambooHr", + OperationID: "deleteSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27661,7 +37221,7 @@ func (s *Sources) DeleteSourceBambooHr(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceBambooHrResponse{ + res := &operations.DeleteSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27688,11 +37248,219 @@ func (s *Sources) DeleteSourceBambooHr(ctx context.Context, request operations.D } -// DeleteSourceBasecamp - Delete a Source -func (s *Sources) DeleteSourceBasecamp(ctx context.Context, request operations.DeleteSourceBasecampRequest, opts ...operations.Option) (*operations.DeleteSourceBasecampResponse, 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: "deleteSourceBasecamp", + OperationID: "deleteSourceGoogleDirectory", + 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.DeleteSourceGoogleDirectoryResponse{ + 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 + +} + +// 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: "deleteSourceGoogleDrive", + 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.DeleteSourceGoogleDriveResponse{ + 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 + +} + +// 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: "deleteSourceGooglePagespeedInsights", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27765,7 +37533,7 @@ func (s *Sources) DeleteSourceBasecamp(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceBasecampResponse{ + res := &operations.DeleteSourceGooglePagespeedInsightsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27792,11 +37560,11 @@ func (s *Sources) DeleteSourceBasecamp(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) { +// 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: "deleteSourceBigquery", + OperationID: "deleteSourceGoogleSearchConsole", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27869,7 +37637,7 @@ func (s *Sources) DeleteSourceBigquery(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceBigqueryResponse{ + res := &operations.DeleteSourceGoogleSearchConsoleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27896,11 +37664,11 @@ 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) { +// 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: "deleteSourceBingAds", + OperationID: "deleteSourceGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27973,7 +37741,7 @@ func (s *Sources) DeleteSourceBingAds(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceBingAdsResponse{ + res := &operations.DeleteSourceGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28000,11 +37768,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) { +// DeleteSourceGoogleTasks - Delete a Source +func (s *Sources) DeleteSourceGoogleTasks(ctx context.Context, request operations.DeleteSourceGoogleTasksRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleTasksResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceBraintree", + OperationID: "deleteSourceGoogleTasks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28077,7 +37845,7 @@ func (s *Sources) DeleteSourceBraintree(ctx context.Context, request operations. } } - res := &operations.DeleteSourceBraintreeResponse{ + res := &operations.DeleteSourceGoogleTasksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28104,11 +37872,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) { +// 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: "deleteSourceBraze", + OperationID: "deleteSourceGoogleWebfonts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28181,7 +37949,7 @@ func (s *Sources) DeleteSourceBraze(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceBrazeResponse{ + res := &operations.DeleteSourceGoogleWebfontsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28208,11 +37976,11 @@ func (s *Sources) DeleteSourceBraze(ctx context.Context, request operations.Dele } -// DeleteSourceBreezyHr - Delete a Source -func (s *Sources) DeleteSourceBreezyHr(ctx context.Context, request operations.DeleteSourceBreezyHrRequest, opts ...operations.Option) (*operations.DeleteSourceBreezyHrResponse, 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: "deleteSourceBreezyHr", + OperationID: "deleteSourceGreenhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28285,7 +38053,7 @@ func (s *Sources) DeleteSourceBreezyHr(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceBreezyHrResponse{ + res := &operations.DeleteSourceGreenhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28312,11 +38080,11 @@ func (s *Sources) DeleteSourceBreezyHr(ctx context.Context, request operations.D } -// DeleteSourceCalendly - Delete a Source -func (s *Sources) DeleteSourceCalendly(ctx context.Context, request operations.DeleteSourceCalendlyRequest, opts ...operations.Option) (*operations.DeleteSourceCalendlyResponse, 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: "deleteSourceCalendly", + OperationID: "deleteSourceGridly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28389,7 +38157,7 @@ func (s *Sources) DeleteSourceCalendly(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceCalendlyResponse{ + res := &operations.DeleteSourceGridlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28416,11 +38184,11 @@ func (s *Sources) DeleteSourceCalendly(ctx context.Context, request operations.D } -// DeleteSourceCart - Delete a Source -func (s *Sources) DeleteSourceCart(ctx context.Context, request operations.DeleteSourceCartRequest, opts ...operations.Option) (*operations.DeleteSourceCartResponse, error) { +// DeleteSourceGuru - Delete a Source +func (s *Sources) DeleteSourceGuru(ctx context.Context, request operations.DeleteSourceGuruRequest, opts ...operations.Option) (*operations.DeleteSourceGuruResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceCart", + OperationID: "deleteSourceGuru", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28493,7 +38261,7 @@ func (s *Sources) DeleteSourceCart(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceCartResponse{ + res := &operations.DeleteSourceGuruResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28520,11 +38288,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) { +// 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: "deleteSourceChargebee", + OperationID: "deleteSourceHardcodedRecords", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28597,7 +38365,215 @@ func (s *Sources) DeleteSourceChargebee(ctx context.Context, request operations. } } - res := &operations.DeleteSourceChargebeeResponse{ + res := &operations.DeleteSourceHardcodedRecordsResponse{ + 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 + +} + +// 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: "deleteSourceHarvest", + 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.DeleteSourceHarvestResponse{ + 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 + +} + +// DeleteSourceHeight - Delete a Source +func (s *Sources) DeleteSourceHeight(ctx context.Context, request operations.DeleteSourceHeightRequest, opts ...operations.Option) (*operations.DeleteSourceHeightResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceHeight", + 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.DeleteSourceHeightResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28624,11 +38600,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) { +// 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: "deleteSourceChartmogul", + OperationID: "deleteSourceHibob", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28701,7 +38677,7 @@ func (s *Sources) DeleteSourceChartmogul(ctx context.Context, request operations } } - res := &operations.DeleteSourceChartmogulResponse{ + res := &operations.DeleteSourceHibobResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28728,11 +38704,11 @@ func (s *Sources) DeleteSourceChartmogul(ctx context.Context, request operations } -// DeleteSourceClazar - Delete a Source -func (s *Sources) DeleteSourceClazar(ctx context.Context, request operations.DeleteSourceClazarRequest, opts ...operations.Option) (*operations.DeleteSourceClazarResponse, error) { +// 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: "deleteSourceClazar", + OperationID: "deleteSourceHighLevel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28805,7 +38781,7 @@ func (s *Sources) DeleteSourceClazar(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceClazarResponse{ + res := &operations.DeleteSourceHighLevelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28832,11 +38808,11 @@ func (s *Sources) DeleteSourceClazar(ctx context.Context, request operations.Del } -// DeleteSourceClickhouse - Delete a Source -func (s *Sources) DeleteSourceClickhouse(ctx context.Context, request operations.DeleteSourceClickhouseRequest, opts ...operations.Option) (*operations.DeleteSourceClickhouseResponse, 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: "deleteSourceClickhouse", + OperationID: "deleteSourceHubplanner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28909,7 +38885,7 @@ func (s *Sources) DeleteSourceClickhouse(ctx context.Context, request operations } } - res := &operations.DeleteSourceClickhouseResponse{ + res := &operations.DeleteSourceHubplannerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28936,11 +38912,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) { +// 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: "deleteSourceClickupApi", + OperationID: "deleteSourceHubspot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29013,7 +38989,7 @@ func (s *Sources) DeleteSourceClickupAPI(ctx context.Context, request operations } } - res := &operations.DeleteSourceClickupAPIResponse{ + res := &operations.DeleteSourceHubspotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29040,11 +39016,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) { +// 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: "deleteSourceClockify", + OperationID: "deleteSourceInsightly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29117,7 +39093,7 @@ func (s *Sources) DeleteSourceClockify(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceClockifyResponse{ + res := &operations.DeleteSourceInsightlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29144,11 +39120,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) { +// 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: "deleteSourceCloseCom", + OperationID: "deleteSourceInstagram", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29221,7 +39197,7 @@ func (s *Sources) DeleteSourceCloseCom(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceCloseComResponse{ + res := &operations.DeleteSourceInstagramResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29248,11 +39224,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) { +// 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: "deleteSourceCoda", + OperationID: "deleteSourceInstatus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29325,7 +39301,7 @@ func (s *Sources) DeleteSourceCoda(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceCodaResponse{ + res := &operations.DeleteSourceInstatusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29352,11 +39328,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) { +// 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: "deleteSourceCoinApi", + OperationID: "deleteSourceIntercom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29429,7 +39405,7 @@ func (s *Sources) DeleteSourceCoinAPI(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceCoinAPIResponse{ + res := &operations.DeleteSourceIntercomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29456,11 +39432,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) { +// 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: "deleteSourceCoinmarketcap", + OperationID: "deleteSourceIp2whois", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29533,7 +39509,7 @@ func (s *Sources) DeleteSourceCoinmarketcap(ctx context.Context, request operati } } - res := &operations.DeleteSourceCoinmarketcapResponse{ + res := &operations.DeleteSourceIp2whoisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29560,11 +39536,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) { +// 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: "deleteSourceConfigcat", + OperationID: "deleteSourceIterable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29637,7 +39613,7 @@ func (s *Sources) DeleteSourceConfigcat(ctx context.Context, request operations. } } - res := &operations.DeleteSourceConfigcatResponse{ + res := &operations.DeleteSourceIterableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29664,11 +39640,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) { +// 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: "deleteSourceConfluence", + OperationID: "deleteSourceJira", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29741,7 +39717,7 @@ func (s *Sources) DeleteSourceConfluence(ctx context.Context, request operations } } - res := &operations.DeleteSourceConfluenceResponse{ + res := &operations.DeleteSourceJiraResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29768,11 +39744,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) { +// DeleteSourceJotform - Delete a Source +func (s *Sources) DeleteSourceJotform(ctx context.Context, request operations.DeleteSourceJotformRequest, opts ...operations.Option) (*operations.DeleteSourceJotformResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceConvex", + OperationID: "deleteSourceJotform", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29845,7 +39821,7 @@ func (s *Sources) DeleteSourceConvex(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceConvexResponse{ + res := &operations.DeleteSourceJotformResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29872,11 +39848,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) { +// 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: "deleteSourceCustom", + OperationID: "deleteSourceK6Cloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29949,7 +39925,7 @@ func (s *Sources) DeleteSourceCustom(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceCustomResponse{ + res := &operations.DeleteSourceK6CloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29976,11 +39952,11 @@ func (s *Sources) DeleteSourceCustom(ctx context.Context, request operations.Del } -// DeleteSourceCustomerIo - Delete a Source -func (s *Sources) DeleteSourceCustomerIo(ctx context.Context, request operations.DeleteSourceCustomerIoRequest, opts ...operations.Option) (*operations.DeleteSourceCustomerIoResponse, 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: "deleteSourceCustomerIo", + OperationID: "deleteSourceKlarna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30053,7 +40029,7 @@ func (s *Sources) DeleteSourceCustomerIo(ctx context.Context, request operations } } - res := &operations.DeleteSourceCustomerIoResponse{ + res := &operations.DeleteSourceKlarnaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30080,11 +40056,11 @@ func (s *Sources) DeleteSourceCustomerIo(ctx context.Context, request operations } -// DeleteSourceDatadog - Delete a Source -func (s *Sources) DeleteSourceDatadog(ctx context.Context, request operations.DeleteSourceDatadogRequest, opts ...operations.Option) (*operations.DeleteSourceDatadogResponse, 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: "deleteSourceDatadog", + OperationID: "deleteSourceKlaviyo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30157,7 +40133,7 @@ func (s *Sources) DeleteSourceDatadog(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceDatadogResponse{ + res := &operations.DeleteSourceKlaviyoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30184,11 +40160,11 @@ func (s *Sources) DeleteSourceDatadog(ctx context.Context, request operations.De } -// DeleteSourceDatascope - Delete a Source -func (s *Sources) DeleteSourceDatascope(ctx context.Context, request operations.DeleteSourceDatascopeRequest, opts ...operations.Option) (*operations.DeleteSourceDatascopeResponse, error) { +// 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: "deleteSourceDatascope", + OperationID: "deleteSourceKyve", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30261,7 +40237,7 @@ func (s *Sources) DeleteSourceDatascope(ctx context.Context, request operations. } } - res := &operations.DeleteSourceDatascopeResponse{ + res := &operations.DeleteSourceKyveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30288,11 +40264,11 @@ func (s *Sources) DeleteSourceDatascope(ctx context.Context, request operations. } -// DeleteSourceDbt - Delete a Source -func (s *Sources) DeleteSourceDbt(ctx context.Context, request operations.DeleteSourceDbtRequest, opts ...operations.Option) (*operations.DeleteSourceDbtResponse, 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: "deleteSourceDbt", + OperationID: "deleteSourceLaunchdarkly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30365,7 +40341,7 @@ func (s *Sources) DeleteSourceDbt(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceDbtResponse{ + res := &operations.DeleteSourceLaunchdarklyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30392,11 +40368,11 @@ func (s *Sources) DeleteSourceDbt(ctx context.Context, request operations.Delete } -// DeleteSourceDelighted - Delete a Source -func (s *Sources) DeleteSourceDelighted(ctx context.Context, request operations.DeleteSourceDelightedRequest, opts ...operations.Option) (*operations.DeleteSourceDelightedResponse, 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: "deleteSourceDelighted", + OperationID: "deleteSourceLeadfeeder", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30469,7 +40445,7 @@ func (s *Sources) DeleteSourceDelighted(ctx context.Context, request operations. } } - res := &operations.DeleteSourceDelightedResponse{ + res := &operations.DeleteSourceLeadfeederResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30496,11 +40472,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) { +// 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: "deleteSourceDixa", + OperationID: "deleteSourceLemlist", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30573,7 +40549,7 @@ func (s *Sources) DeleteSourceDixa(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceDixaResponse{ + res := &operations.DeleteSourceLemlistResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30600,11 +40576,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) { +// 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: "deleteSourceDockerhub", + OperationID: "deleteSourceLeverHiring", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30677,7 +40653,7 @@ func (s *Sources) DeleteSourceDockerhub(ctx context.Context, request operations. } } - res := &operations.DeleteSourceDockerhubResponse{ + res := &operations.DeleteSourceLeverHiringResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30704,11 +40680,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) { +// 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: "deleteSourceDremio", + OperationID: "deleteSourceLinkedinAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30781,7 +40757,7 @@ func (s *Sources) DeleteSourceDremio(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceDremioResponse{ + res := &operations.DeleteSourceLinkedinAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30808,11 +40784,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) { +// 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: "deleteSourceDynamodb", + OperationID: "deleteSourceLinkedinPages", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30885,7 +40861,7 @@ func (s *Sources) DeleteSourceDynamodb(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceDynamodbResponse{ + res := &operations.DeleteSourceLinkedinPagesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30912,11 +40888,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) { +// 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: "deleteSourceEmailoctopus", + OperationID: "deleteSourceLinnworks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30989,7 +40965,7 @@ func (s *Sources) DeleteSourceEmailoctopus(ctx context.Context, request operatio } } - res := &operations.DeleteSourceEmailoctopusResponse{ + res := &operations.DeleteSourceLinnworksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31016,11 +40992,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) { +// 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: "deleteSourceExchangeRates", + OperationID: "deleteSourceLokalise", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31093,7 +41069,7 @@ func (s *Sources) DeleteSourceExchangeRates(ctx context.Context, request operati } } - res := &operations.DeleteSourceExchangeRatesResponse{ + res := &operations.DeleteSourceLokaliseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31120,11 +41096,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) { +// 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: "deleteSourceFacebookMarketing", + OperationID: "deleteSourceLooker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31197,7 +41173,7 @@ func (s *Sources) DeleteSourceFacebookMarketing(ctx context.Context, request ope } } - res := &operations.DeleteSourceFacebookMarketingResponse{ + res := &operations.DeleteSourceLookerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31224,11 +41200,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) { +// 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: "deleteSourceFaker", + OperationID: "deleteSourceLuma", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31301,7 +41277,7 @@ func (s *Sources) DeleteSourceFaker(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceFakerResponse{ + res := &operations.DeleteSourceLumaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31328,11 +41304,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) { +// 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: "deleteSourceFauna", + OperationID: "deleteSourceMailchimp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31405,7 +41381,7 @@ func (s *Sources) DeleteSourceFauna(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceFaunaResponse{ + res := &operations.DeleteSourceMailchimpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31432,11 +41408,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) { +// 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: "deleteSourceFile", + OperationID: "deleteSourceMailgun", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31509,7 +41485,7 @@ func (s *Sources) DeleteSourceFile(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceFileResponse{ + res := &operations.DeleteSourceMailgunResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31536,11 +41512,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) { +// 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: "deleteSourceFirebolt", + OperationID: "deleteSourceMailjetSms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31613,7 +41589,7 @@ func (s *Sources) DeleteSourceFirebolt(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceFireboltResponse{ + res := &operations.DeleteSourceMailjetSmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31640,11 +41616,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) { +// 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: "deleteSourceFleetio", + OperationID: "deleteSourceMarketo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31717,7 +41693,7 @@ func (s *Sources) DeleteSourceFleetio(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceFleetioResponse{ + res := &operations.DeleteSourceMarketoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31744,11 +41720,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) { +// 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: "deleteSourceFreshcaller", + OperationID: "deleteSourceMetabase", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31821,7 +41797,7 @@ func (s *Sources) DeleteSourceFreshcaller(ctx context.Context, request operation } } - res := &operations.DeleteSourceFreshcallerResponse{ + res := &operations.DeleteSourceMetabaseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31848,11 +41824,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) { +// 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: "deleteSourceFreshdesk", + OperationID: "deleteSourceMicrosoftOnedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -31925,7 +41901,7 @@ func (s *Sources) DeleteSourceFreshdesk(ctx context.Context, request operations. } } - res := &operations.DeleteSourceFreshdeskResponse{ + res := &operations.DeleteSourceMicrosoftOnedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -31952,11 +41928,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) { +// 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: "deleteSourceFreshsales", + OperationID: "deleteSourceMicrosoftSharepoint", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32029,7 +42005,7 @@ func (s *Sources) DeleteSourceFreshsales(ctx context.Context, request operations } } - res := &operations.DeleteSourceFreshsalesResponse{ + res := &operations.DeleteSourceMicrosoftSharepointResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32056,11 +42032,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) { +// 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: "deleteSourceGainsightPx", + OperationID: "deleteSourceMicrosoftTeams", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32133,7 +42109,7 @@ func (s *Sources) DeleteSourceGainsightPx(ctx context.Context, request operation } } - res := &operations.DeleteSourceGainsightPxResponse{ + res := &operations.DeleteSourceMicrosoftTeamsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32160,11 +42136,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) { +// 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: "deleteSourceGcs", + OperationID: "deleteSourceMixpanel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32237,7 +42213,7 @@ func (s *Sources) DeleteSourceGcs(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceGcsResponse{ + res := &operations.DeleteSourceMixpanelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32264,11 +42240,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) { +// 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: "deleteSourceGetlago", + OperationID: "deleteSourceMonday", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32341,7 +42317,7 @@ func (s *Sources) DeleteSourceGetlago(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceGetlagoResponse{ + res := &operations.DeleteSourceMondayResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32368,11 +42344,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) { +// 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: "deleteSourceGithub", + OperationID: "deleteSourceMongodbV2", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32445,7 +42421,7 @@ func (s *Sources) DeleteSourceGithub(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceGithubResponse{ + res := &operations.DeleteSourceMongodbV2Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32472,11 +42448,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) { +// 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: "deleteSourceGitlab", + OperationID: "deleteSourceMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32549,7 +42525,7 @@ func (s *Sources) DeleteSourceGitlab(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceGitlabResponse{ + res := &operations.DeleteSourceMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32576,11 +42552,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) { +// 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: "deleteSourceGlassfrog", + OperationID: "deleteSourceMyHours", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32653,7 +42629,7 @@ func (s *Sources) DeleteSourceGlassfrog(ctx context.Context, request operations. } } - res := &operations.DeleteSourceGlassfrogResponse{ + res := &operations.DeleteSourceMyHoursResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32680,11 +42656,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) { +// 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: "deleteSourceGnews", + OperationID: "deleteSourceMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32757,7 +42733,7 @@ func (s *Sources) DeleteSourceGnews(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceGnewsResponse{ + res := &operations.DeleteSourceMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32784,11 +42760,11 @@ func (s *Sources) DeleteSourceGnews(ctx context.Context, request operations.Dele } -// DeleteSourceGoldcast - Delete a Source -func (s *Sources) DeleteSourceGoldcast(ctx context.Context, request operations.DeleteSourceGoldcastRequest, opts ...operations.Option) (*operations.DeleteSourceGoldcastResponse, error) { +// 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: "deleteSourceGoldcast", + OperationID: "deleteSourceNetsuite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32861,7 +42837,7 @@ func (s *Sources) DeleteSourceGoldcast(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceGoldcastResponse{ + res := &operations.DeleteSourceNetsuiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32888,11 +42864,11 @@ func (s *Sources) DeleteSourceGoldcast(ctx context.Context, request operations.D } -// DeleteSourceGoogleAds - Delete a Source -func (s *Sources) DeleteSourceGoogleAds(ctx context.Context, request operations.DeleteSourceGoogleAdsRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleAdsResponse, error) { +// 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: "deleteSourceGoogleAds", + OperationID: "deleteSourceNorthpassLms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -32965,7 +42941,7 @@ func (s *Sources) DeleteSourceGoogleAds(ctx context.Context, request operations. } } - res := &operations.DeleteSourceGoogleAdsResponse{ + res := &operations.DeleteSourceNorthpassLmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -32992,11 +42968,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) { +// 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: "deleteSourceGoogleAnalyticsDataApi", + OperationID: "deleteSourceNotion", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33069,7 +43045,7 @@ func (s *Sources) DeleteSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } } - res := &operations.DeleteSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.DeleteSourceNotionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33096,11 +43072,11 @@ func (s *Sources) DeleteSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } -// DeleteSourceGoogleDirectory - Delete a Source -func (s *Sources) DeleteSourceGoogleDirectory(ctx context.Context, request operations.DeleteSourceGoogleDirectoryRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleDirectoryResponse, error) { +// DeleteSourceNylas - Delete a Source +func (s *Sources) DeleteSourceNylas(ctx context.Context, request operations.DeleteSourceNylasRequest, opts ...operations.Option) (*operations.DeleteSourceNylasResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGoogleDirectory", + OperationID: "deleteSourceNylas", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33173,7 +43149,7 @@ func (s *Sources) DeleteSourceGoogleDirectory(ctx context.Context, request opera } } - res := &operations.DeleteSourceGoogleDirectoryResponse{ + res := &operations.DeleteSourceNylasResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33200,11 +43176,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) { +// 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: "deleteSourceGoogleDrive", + OperationID: "deleteSourceNytimes", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33277,7 +43253,7 @@ func (s *Sources) DeleteSourceGoogleDrive(ctx context.Context, request operation } } - res := &operations.DeleteSourceGoogleDriveResponse{ + res := &operations.DeleteSourceNytimesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33304,11 +43280,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) { +// 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: "deleteSourceGooglePagespeedInsights", + OperationID: "deleteSourceOkta", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33381,7 +43357,7 @@ func (s *Sources) DeleteSourceGooglePagespeedInsights(ctx context.Context, reque } } - res := &operations.DeleteSourceGooglePagespeedInsightsResponse{ + res := &operations.DeleteSourceOktaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33408,11 +43384,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) { +// 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: "deleteSourceGoogleSearchConsole", + OperationID: "deleteSourceOmnisend", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33485,7 +43461,7 @@ func (s *Sources) DeleteSourceGoogleSearchConsole(ctx context.Context, request o } } - res := &operations.DeleteSourceGoogleSearchConsoleResponse{ + res := &operations.DeleteSourceOmnisendResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33512,11 +43488,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) { +// 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: "deleteSourceGoogleSheets", + OperationID: "deleteSourceOnesignal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33589,7 +43565,7 @@ func (s *Sources) DeleteSourceGoogleSheets(ctx context.Context, request operatio } } - res := &operations.DeleteSourceGoogleSheetsResponse{ + res := &operations.DeleteSourceOnesignalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33616,11 +43592,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) { +// 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: "deleteSourceGoogleWebfonts", + OperationID: "deleteSourceOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33693,7 +43669,7 @@ func (s *Sources) DeleteSourceGoogleWebfonts(ctx context.Context, request operat } } - res := &operations.DeleteSourceGoogleWebfontsResponse{ + res := &operations.DeleteSourceOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33720,11 +43696,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) { +// 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: "deleteSourceGreenhouse", + OperationID: "deleteSourceOrb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33797,7 +43773,7 @@ func (s *Sources) DeleteSourceGreenhouse(ctx context.Context, request operations } } - res := &operations.DeleteSourceGreenhouseResponse{ + res := &operations.DeleteSourceOrbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33824,11 +43800,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) { +// 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: "deleteSourceGridly", + OperationID: "deleteSourceOrbit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -33901,7 +43877,7 @@ func (s *Sources) DeleteSourceGridly(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceGridlyResponse{ + res := &operations.DeleteSourceOrbitResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -33928,11 +43904,11 @@ func (s *Sources) DeleteSourceGridly(ctx context.Context, request operations.Del } -// DeleteSourceHardcodedRecords - Delete a Source -func (s *Sources) DeleteSourceHardcodedRecords(ctx context.Context, request operations.DeleteSourceHardcodedRecordsRequest, opts ...operations.Option) (*operations.DeleteSourceHardcodedRecordsResponse, 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: "deleteSourceHardcodedRecords", + OperationID: "deleteSourceOutbrainAmplify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34005,7 +43981,7 @@ func (s *Sources) DeleteSourceHardcodedRecords(ctx context.Context, request oper } } - res := &operations.DeleteSourceHardcodedRecordsResponse{ + res := &operations.DeleteSourceOutbrainAmplifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34032,11 +44008,11 @@ func (s *Sources) DeleteSourceHardcodedRecords(ctx context.Context, request oper } -// DeleteSourceHarvest - Delete a Source -func (s *Sources) DeleteSourceHarvest(ctx context.Context, request operations.DeleteSourceHarvestRequest, opts ...operations.Option) (*operations.DeleteSourceHarvestResponse, 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: "deleteSourceHarvest", + OperationID: "deleteSourceOutreach", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34109,7 +44085,7 @@ func (s *Sources) DeleteSourceHarvest(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceHarvestResponse{ + res := &operations.DeleteSourceOutreachResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34136,11 +44112,11 @@ func (s *Sources) DeleteSourceHarvest(ctx context.Context, request operations.De } -// DeleteSourceHibob - Delete a Source -func (s *Sources) DeleteSourceHibob(ctx context.Context, request operations.DeleteSourceHibobRequest, opts ...operations.Option) (*operations.DeleteSourceHibobResponse, 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: "deleteSourceHibob", + OperationID: "deleteSourcePaypalTransaction", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34213,7 +44189,7 @@ func (s *Sources) DeleteSourceHibob(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceHibobResponse{ + res := &operations.DeleteSourcePaypalTransactionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34240,11 +44216,11 @@ func (s *Sources) DeleteSourceHibob(ctx context.Context, request operations.Dele } -// DeleteSourceHighLevel - Delete a Source -func (s *Sources) DeleteSourceHighLevel(ctx context.Context, request operations.DeleteSourceHighLevelRequest, opts ...operations.Option) (*operations.DeleteSourceHighLevelResponse, 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: "deleteSourceHighLevel", + OperationID: "deleteSourcePaystack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34317,7 +44293,7 @@ func (s *Sources) DeleteSourceHighLevel(ctx context.Context, request operations. } } - res := &operations.DeleteSourceHighLevelResponse{ + res := &operations.DeleteSourcePaystackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34344,11 +44320,11 @@ func (s *Sources) DeleteSourceHighLevel(ctx context.Context, request operations. } -// DeleteSourceHubplanner - Delete a Source -func (s *Sources) DeleteSourceHubplanner(ctx context.Context, request operations.DeleteSourceHubplannerRequest, opts ...operations.Option) (*operations.DeleteSourceHubplannerResponse, 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: "deleteSourceHubplanner", + OperationID: "deleteSourcePendo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34421,7 +44397,7 @@ func (s *Sources) DeleteSourceHubplanner(ctx context.Context, request operations } } - res := &operations.DeleteSourceHubplannerResponse{ + res := &operations.DeleteSourcePendoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34448,11 +44424,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) { +// 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: "deleteSourceHubspot", + OperationID: "deleteSourcePennylane", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34525,7 +44501,7 @@ func (s *Sources) DeleteSourceHubspot(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceHubspotResponse{ + res := &operations.DeleteSourcePennylaneResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34552,11 +44528,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) { +// 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: "deleteSourceInsightly", + OperationID: "deleteSourcePersistiq", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34629,7 +44605,7 @@ func (s *Sources) DeleteSourceInsightly(ctx context.Context, request operations. } } - res := &operations.DeleteSourceInsightlyResponse{ + res := &operations.DeleteSourcePersistiqResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34656,11 +44632,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) { +// 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: "deleteSourceInstagram", + OperationID: "deleteSourcePexelsApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34733,7 +44709,7 @@ func (s *Sources) DeleteSourceInstagram(ctx context.Context, request operations. } } - res := &operations.DeleteSourceInstagramResponse{ + res := &operations.DeleteSourcePexelsAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34760,11 +44736,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) { +// DeleteSourcePicqer - Delete a Source +func (s *Sources) DeleteSourcePicqer(ctx context.Context, request operations.DeleteSourcePicqerRequest, opts ...operations.Option) (*operations.DeleteSourcePicqerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceInstatus", + OperationID: "deleteSourcePicqer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34837,7 +44813,7 @@ func (s *Sources) DeleteSourceInstatus(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceInstatusResponse{ + res := &operations.DeleteSourcePicqerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34864,11 +44840,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) { +// 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: "deleteSourceIntercom", + OperationID: "deleteSourcePinterest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -34941,7 +44917,7 @@ func (s *Sources) DeleteSourceIntercom(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceIntercomResponse{ + res := &operations.DeleteSourcePinterestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -34968,11 +44944,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) { +// 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: "deleteSourceIp2whois", + OperationID: "deleteSourcePipedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35045,7 +45021,7 @@ func (s *Sources) DeleteSourceIp2whois(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceIp2whoisResponse{ + res := &operations.DeleteSourcePipedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35072,11 +45048,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) { +// DeleteSourcePiwik - Delete a Source +func (s *Sources) DeleteSourcePiwik(ctx context.Context, request operations.DeleteSourcePiwikRequest, opts ...operations.Option) (*operations.DeleteSourcePiwikResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceIterable", + OperationID: "deleteSourcePiwik", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35149,7 +45125,7 @@ func (s *Sources) DeleteSourceIterable(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceIterableResponse{ + res := &operations.DeleteSourcePiwikResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35176,11 +45152,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) { +// 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: "deleteSourceJira", + OperationID: "deleteSourcePlanhat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35253,7 +45229,7 @@ func (s *Sources) DeleteSourceJira(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceJiraResponse{ + res := &operations.DeleteSourcePlanhatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35280,11 +45256,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) { +// 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: "deleteSourceK6Cloud", + OperationID: "deleteSourcePocket", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35357,7 +45333,7 @@ func (s *Sources) DeleteSourceK6Cloud(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceK6CloudResponse{ + res := &operations.DeleteSourcePocketResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35384,11 +45360,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) { +// 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: "deleteSourceKlarna", + OperationID: "deleteSourcePokeapi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35461,7 +45437,7 @@ func (s *Sources) DeleteSourceKlarna(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceKlarnaResponse{ + res := &operations.DeleteSourcePokeapiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35488,11 +45464,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) { +// 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: "deleteSourceKlaviyo", + OperationID: "deleteSourcePolygonStockApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35565,7 +45541,7 @@ func (s *Sources) DeleteSourceKlaviyo(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceKlaviyoResponse{ + res := &operations.DeleteSourcePolygonStockAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35592,11 +45568,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) { +// 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: "deleteSourceKyve", + OperationID: "deleteSourcePostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35669,7 +45645,7 @@ func (s *Sources) DeleteSourceKyve(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceKyveResponse{ + res := &operations.DeleteSourcePostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35696,11 +45672,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) { +// 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: "deleteSourceLaunchdarkly", + OperationID: "deleteSourcePosthog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35773,7 +45749,7 @@ func (s *Sources) DeleteSourceLaunchdarkly(ctx context.Context, request operatio } } - res := &operations.DeleteSourceLaunchdarklyResponse{ + res := &operations.DeleteSourcePosthogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35800,11 +45776,11 @@ func (s *Sources) DeleteSourceLaunchdarkly(ctx context.Context, request operatio } -// DeleteSourceLeadfeeder - Delete a Source -func (s *Sources) DeleteSourceLeadfeeder(ctx context.Context, request operations.DeleteSourceLeadfeederRequest, opts ...operations.Option) (*operations.DeleteSourceLeadfeederResponse, 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: "deleteSourceLeadfeeder", + OperationID: "deleteSourcePostmarkapp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35877,7 +45853,7 @@ func (s *Sources) DeleteSourceLeadfeeder(ctx context.Context, request operations } } - res := &operations.DeleteSourceLeadfeederResponse{ + res := &operations.DeleteSourcePostmarkappResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -35904,11 +45880,11 @@ func (s *Sources) DeleteSourceLeadfeeder(ctx context.Context, request operations } -// DeleteSourceLemlist - Delete a Source -func (s *Sources) DeleteSourceLemlist(ctx context.Context, request operations.DeleteSourceLemlistRequest, opts ...operations.Option) (*operations.DeleteSourceLemlistResponse, 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: "deleteSourceLemlist", + OperationID: "deleteSourcePrestashop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -35981,7 +45957,7 @@ func (s *Sources) DeleteSourceLemlist(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceLemlistResponse{ + res := &operations.DeleteSourcePrestashopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36008,11 +45984,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) { +// DeleteSourceProductboard - Delete a Source +func (s *Sources) DeleteSourceProductboard(ctx context.Context, request operations.DeleteSourceProductboardRequest, opts ...operations.Option) (*operations.DeleteSourceProductboardResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceLeverHiring", + OperationID: "deleteSourceProductboard", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36085,7 +46061,7 @@ func (s *Sources) DeleteSourceLeverHiring(ctx context.Context, request operation } } - res := &operations.DeleteSourceLeverHiringResponse{ + res := &operations.DeleteSourceProductboardResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36112,11 +46088,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) { +// DeleteSourceProductive - Delete a Source +func (s *Sources) DeleteSourceProductive(ctx context.Context, request operations.DeleteSourceProductiveRequest, opts ...operations.Option) (*operations.DeleteSourceProductiveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceLinkedinAds", + OperationID: "deleteSourceProductive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36189,7 +46165,7 @@ func (s *Sources) DeleteSourceLinkedinAds(ctx context.Context, request operation } } - res := &operations.DeleteSourceLinkedinAdsResponse{ + res := &operations.DeleteSourceProductiveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36216,11 +46192,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) { +// 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: "deleteSourceLinkedinPages", + OperationID: "deleteSourcePypi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36293,7 +46269,7 @@ func (s *Sources) DeleteSourceLinkedinPages(ctx context.Context, request operati } } - res := &operations.DeleteSourceLinkedinPagesResponse{ + res := &operations.DeleteSourcePypiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36320,11 +46296,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) { +// 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: "deleteSourceLinnworks", + OperationID: "deleteSourceQualaroo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36397,7 +46373,7 @@ func (s *Sources) DeleteSourceLinnworks(ctx context.Context, request operations. } } - res := &operations.DeleteSourceLinnworksResponse{ + res := &operations.DeleteSourceQualarooResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36424,11 +46400,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) { +// 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: "deleteSourceLokalise", + OperationID: "deleteSourceRailz", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36501,7 +46477,7 @@ func (s *Sources) DeleteSourceLokalise(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceLokaliseResponse{ + res := &operations.DeleteSourceRailzResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36528,11 +46504,11 @@ func (s *Sources) DeleteSourceLokalise(ctx context.Context, request operations.D } -// DeleteSourceLooker - Delete a Source -func (s *Sources) DeleteSourceLooker(ctx context.Context, request operations.DeleteSourceLookerRequest, opts ...operations.Option) (*operations.DeleteSourceLookerResponse, 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: "deleteSourceLooker", + OperationID: "deleteSourceRecharge", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36605,7 +46581,7 @@ func (s *Sources) DeleteSourceLooker(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceLookerResponse{ + res := &operations.DeleteSourceRechargeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36632,11 +46608,11 @@ func (s *Sources) DeleteSourceLooker(ctx context.Context, request operations.Del } -// DeleteSourceLuma - Delete a Source -func (s *Sources) DeleteSourceLuma(ctx context.Context, request operations.DeleteSourceLumaRequest, opts ...operations.Option) (*operations.DeleteSourceLumaResponse, 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: "deleteSourceLuma", + OperationID: "deleteSourceRecreation", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36709,7 +46685,7 @@ func (s *Sources) DeleteSourceLuma(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceLumaResponse{ + res := &operations.DeleteSourceRecreationResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36736,11 +46712,11 @@ func (s *Sources) DeleteSourceLuma(ctx context.Context, request operations.Delet } -// DeleteSourceMailchimp - Delete a Source -func (s *Sources) DeleteSourceMailchimp(ctx context.Context, request operations.DeleteSourceMailchimpRequest, opts ...operations.Option) (*operations.DeleteSourceMailchimpResponse, 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: "deleteSourceMailchimp", + OperationID: "deleteSourceRecruitee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36813,7 +46789,7 @@ func (s *Sources) DeleteSourceMailchimp(ctx context.Context, request operations. } } - res := &operations.DeleteSourceMailchimpResponse{ + res := &operations.DeleteSourceRecruiteeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36840,11 +46816,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) { +// 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: "deleteSourceMailgun", + OperationID: "deleteSourceRecurly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -36917,7 +46893,7 @@ func (s *Sources) DeleteSourceMailgun(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceMailgunResponse{ + res := &operations.DeleteSourceRecurlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -36944,11 +46920,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) { +// 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: "deleteSourceMailjetSms", + OperationID: "deleteSourceReddit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37021,7 +46997,7 @@ func (s *Sources) DeleteSourceMailjetSms(ctx context.Context, request operations } } - res := &operations.DeleteSourceMailjetSmsResponse{ + res := &operations.DeleteSourceRedditResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37048,11 +47024,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) { +// 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: "deleteSourceMarketo", + OperationID: "deleteSourceRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37125,7 +47101,7 @@ func (s *Sources) DeleteSourceMarketo(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceMarketoResponse{ + res := &operations.DeleteSourceRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37152,11 +47128,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) { +// 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: "deleteSourceMetabase", + OperationID: "deleteSourceRetently", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37229,7 +47205,7 @@ func (s *Sources) DeleteSourceMetabase(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceMetabaseResponse{ + res := &operations.DeleteSourceRetentlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37256,11 +47232,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) { +// 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: "deleteSourceMicrosoftOnedrive", + OperationID: "deleteSourceRkiCovid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37333,7 +47309,7 @@ func (s *Sources) DeleteSourceMicrosoftOnedrive(ctx context.Context, request ope } } - res := &operations.DeleteSourceMicrosoftOnedriveResponse{ + res := &operations.DeleteSourceRkiCovidResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37360,11 +47336,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) { +// 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: "deleteSourceMicrosoftSharepoint", + OperationID: "deleteSourceRss", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37437,7 +47413,7 @@ func (s *Sources) DeleteSourceMicrosoftSharepoint(ctx context.Context, request o } } - res := &operations.DeleteSourceMicrosoftSharepointResponse{ + res := &operations.DeleteSourceRssResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37464,11 +47440,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) { +// 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: "deleteSourceMicrosoftTeams", + OperationID: "deleteSourceS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37541,7 +47517,7 @@ func (s *Sources) DeleteSourceMicrosoftTeams(ctx context.Context, request operat } } - res := &operations.DeleteSourceMicrosoftTeamsResponse{ + res := &operations.DeleteSourceS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37568,11 +47544,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) { +// 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: "deleteSourceMixpanel", + OperationID: "deleteSourceSalesforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37645,7 +47621,7 @@ func (s *Sources) DeleteSourceMixpanel(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceMixpanelResponse{ + res := &operations.DeleteSourceSalesforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37672,11 +47648,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) { +// 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: "deleteSourceMonday", + OperationID: "deleteSourceSalesloft", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37749,7 +47725,7 @@ func (s *Sources) DeleteSourceMonday(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceMondayResponse{ + res := &operations.DeleteSourceSalesloftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37776,11 +47752,11 @@ func (s *Sources) DeleteSourceMonday(ctx context.Context, request operations.Del } -// DeleteSourceMongodbV2 - Delete a Source -func (s *Sources) DeleteSourceMongodbV2(ctx context.Context, request operations.DeleteSourceMongodbV2Request, opts ...operations.Option) (*operations.DeleteSourceMongodbV2Response, 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: "deleteSourceMongodbV2", + OperationID: "deleteSourceSapFieldglass", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37853,7 +47829,7 @@ func (s *Sources) DeleteSourceMongodbV2(ctx context.Context, request operations. } } - res := &operations.DeleteSourceMongodbV2Response{ + res := &operations.DeleteSourceSapFieldglassResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37880,11 +47856,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) { +// 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: "deleteSourceMssql", + OperationID: "deleteSourceSavvycal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37957,7 +47933,7 @@ func (s *Sources) DeleteSourceMssql(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceMssqlResponse{ + res := &operations.DeleteSourceSavvycalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37984,11 +47960,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) { +// 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: "deleteSourceMyHours", + OperationID: "deleteSourceScryfall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38061,7 +48037,7 @@ func (s *Sources) DeleteSourceMyHours(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceMyHoursResponse{ + res := &operations.DeleteSourceScryfallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38088,11 +48064,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) { +// 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: "deleteSourceMysql", + OperationID: "deleteSourceSecoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38165,7 +48141,7 @@ func (s *Sources) DeleteSourceMysql(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceMysqlResponse{ + res := &operations.DeleteSourceSecodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38192,11 +48168,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) { +// 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: "deleteSourceNetsuite", + OperationID: "deleteSourceSendgrid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38269,7 +48245,7 @@ func (s *Sources) DeleteSourceNetsuite(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceNetsuiteResponse{ + res := &operations.DeleteSourceSendgridResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38296,11 +48272,11 @@ func (s *Sources) DeleteSourceNetsuite(ctx context.Context, request operations.D } -// DeleteSourceNorthpassLms - Delete a Source -func (s *Sources) DeleteSourceNorthpassLms(ctx context.Context, request operations.DeleteSourceNorthpassLmsRequest, opts ...operations.Option) (*operations.DeleteSourceNorthpassLmsResponse, 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: "deleteSourceNorthpassLms", + OperationID: "deleteSourceSendinblue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38373,7 +48349,7 @@ func (s *Sources) DeleteSourceNorthpassLms(ctx context.Context, request operatio } } - res := &operations.DeleteSourceNorthpassLmsResponse{ + res := &operations.DeleteSourceSendinblueResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38400,11 +48376,11 @@ func (s *Sources) DeleteSourceNorthpassLms(ctx context.Context, request operatio } -// DeleteSourceNotion - Delete a Source -func (s *Sources) DeleteSourceNotion(ctx context.Context, request operations.DeleteSourceNotionRequest, opts ...operations.Option) (*operations.DeleteSourceNotionResponse, 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: "deleteSourceNotion", + OperationID: "deleteSourceSenseforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38477,7 +48453,7 @@ func (s *Sources) DeleteSourceNotion(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceNotionResponse{ + res := &operations.DeleteSourceSenseforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38504,11 +48480,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) { +// 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: "deleteSourceNytimes", + OperationID: "deleteSourceSentry", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38581,7 +48557,7 @@ func (s *Sources) DeleteSourceNytimes(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceNytimesResponse{ + res := &operations.DeleteSourceSentryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38608,11 +48584,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) { +// 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: "deleteSourceOkta", + OperationID: "deleteSourceSftp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38685,7 +48661,7 @@ func (s *Sources) DeleteSourceOkta(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceOktaResponse{ + res := &operations.DeleteSourceSftpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38712,11 +48688,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) { +// 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: "deleteSourceOmnisend", + OperationID: "deleteSourceSftpBulk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38789,7 +48765,7 @@ func (s *Sources) DeleteSourceOmnisend(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceOmnisendResponse{ + res := &operations.DeleteSourceSftpBulkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38816,11 +48792,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) { +// 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: "deleteSourceOnesignal", + OperationID: "deleteSourceShopify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38893,7 +48869,7 @@ func (s *Sources) DeleteSourceOnesignal(ctx context.Context, request operations. } } - res := &operations.DeleteSourceOnesignalResponse{ + res := &operations.DeleteSourceShopifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38920,11 +48896,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) { +// DeleteSourceShortcut - Delete a Source +func (s *Sources) DeleteSourceShortcut(ctx context.Context, request operations.DeleteSourceShortcutRequest, opts ...operations.Option) (*operations.DeleteSourceShortcutResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceOracle", + OperationID: "deleteSourceShortcut", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38997,7 +48973,7 @@ func (s *Sources) DeleteSourceOracle(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceOracleResponse{ + res := &operations.DeleteSourceShortcutResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39024,11 +49000,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) { +// 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: "deleteSourceOrb", + OperationID: "deleteSourceShortio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39101,7 +49077,7 @@ func (s *Sources) DeleteSourceOrb(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceOrbResponse{ + res := &operations.DeleteSourceShortioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39128,11 +49104,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) { +// 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: "deleteSourceOrbit", + OperationID: "deleteSourceSlack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39205,7 +49181,7 @@ func (s *Sources) DeleteSourceOrbit(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceOrbitResponse{ + res := &operations.DeleteSourceSlackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39232,11 +49208,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) { +// 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: "deleteSourceOutbrainAmplify", + OperationID: "deleteSourceSmaily", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39309,7 +49285,7 @@ func (s *Sources) DeleteSourceOutbrainAmplify(ctx context.Context, request opera } } - res := &operations.DeleteSourceOutbrainAmplifyResponse{ + res := &operations.DeleteSourceSmailyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39336,11 +49312,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) { +// 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: "deleteSourceOutreach", + OperationID: "deleteSourceSmartengage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39413,7 +49389,7 @@ func (s *Sources) DeleteSourceOutreach(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceOutreachResponse{ + res := &operations.DeleteSourceSmartengageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39440,11 +49416,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) { +// 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: "deleteSourcePaypalTransaction", + OperationID: "deleteSourceSmartsheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39517,7 +49493,7 @@ func (s *Sources) DeleteSourcePaypalTransaction(ctx context.Context, request ope } } - res := &operations.DeleteSourcePaypalTransactionResponse{ + res := &operations.DeleteSourceSmartsheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39544,11 +49520,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) { +// 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: "deleteSourcePaystack", + OperationID: "deleteSourceSnapchatMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39621,7 +49597,7 @@ func (s *Sources) DeleteSourcePaystack(ctx context.Context, request operations.D } } - res := &operations.DeleteSourcePaystackResponse{ + res := &operations.DeleteSourceSnapchatMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39648,11 +49624,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) { +// 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: "deleteSourcePendo", + OperationID: "deleteSourceSnowflake", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39725,7 +49701,7 @@ func (s *Sources) DeleteSourcePendo(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourcePendoResponse{ + res := &operations.DeleteSourceSnowflakeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39752,11 +49728,11 @@ func (s *Sources) DeleteSourcePendo(ctx context.Context, request operations.Dele } -// DeleteSourcePennylane - Delete a Source -func (s *Sources) DeleteSourcePennylane(ctx context.Context, request operations.DeleteSourcePennylaneRequest, opts ...operations.Option) (*operations.DeleteSourcePennylaneResponse, 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: "deleteSourcePennylane", + OperationID: "deleteSourceSonarCloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39829,7 +49805,7 @@ func (s *Sources) DeleteSourcePennylane(ctx context.Context, request operations. } } - res := &operations.DeleteSourcePennylaneResponse{ + res := &operations.DeleteSourceSonarCloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39856,11 +49832,11 @@ func (s *Sources) DeleteSourcePennylane(ctx context.Context, request operations. } -// DeleteSourcePersistiq - Delete a Source -func (s *Sources) DeleteSourcePersistiq(ctx context.Context, request operations.DeleteSourcePersistiqRequest, opts ...operations.Option) (*operations.DeleteSourcePersistiqResponse, 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: "deleteSourcePersistiq", + OperationID: "deleteSourceSpacexApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39933,7 +49909,7 @@ func (s *Sources) DeleteSourcePersistiq(ctx context.Context, request operations. } } - res := &operations.DeleteSourcePersistiqResponse{ + res := &operations.DeleteSourceSpacexAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39960,11 +49936,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) { +// 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: "deleteSourcePexelsApi", + OperationID: "deleteSourceSquare", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40037,7 +50013,7 @@ func (s *Sources) DeleteSourcePexelsAPI(ctx context.Context, request operations. } } - res := &operations.DeleteSourcePexelsAPIResponse{ + res := &operations.DeleteSourceSquareResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40064,11 +50040,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) { +// 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: "deleteSourcePinterest", + OperationID: "deleteSourceStrava", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40141,7 +50117,7 @@ func (s *Sources) DeleteSourcePinterest(ctx context.Context, request operations. } } - res := &operations.DeleteSourcePinterestResponse{ + res := &operations.DeleteSourceStravaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40168,11 +50144,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) { +// 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: "deleteSourcePipedrive", + OperationID: "deleteSourceStripe", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40245,7 +50221,7 @@ func (s *Sources) DeleteSourcePipedrive(ctx context.Context, request operations. } } - res := &operations.DeleteSourcePipedriveResponse{ + res := &operations.DeleteSourceStripeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40272,11 +50248,11 @@ func (s *Sources) DeleteSourcePipedrive(ctx context.Context, request operations. } -// DeleteSourcePlanhat - Delete a Source -func (s *Sources) DeleteSourcePlanhat(ctx context.Context, request operations.DeleteSourcePlanhatRequest, opts ...operations.Option) (*operations.DeleteSourcePlanhatResponse, 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: "deleteSourcePlanhat", + OperationID: "deleteSourceSurveySparrow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40349,7 +50325,7 @@ func (s *Sources) DeleteSourcePlanhat(ctx context.Context, request operations.De } } - res := &operations.DeleteSourcePlanhatResponse{ + res := &operations.DeleteSourceSurveySparrowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40376,11 +50352,11 @@ func (s *Sources) DeleteSourcePlanhat(ctx context.Context, request operations.De } -// DeleteSourcePocket - Delete a Source -func (s *Sources) DeleteSourcePocket(ctx context.Context, request operations.DeleteSourcePocketRequest, opts ...operations.Option) (*operations.DeleteSourcePocketResponse, 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: "deleteSourcePocket", + OperationID: "deleteSourceSurveymonkey", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40453,7 +50429,7 @@ func (s *Sources) DeleteSourcePocket(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourcePocketResponse{ + res := &operations.DeleteSourceSurveymonkeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40480,11 +50456,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) { +// DeleteSourceSurvicate - Delete a Source +func (s *Sources) DeleteSourceSurvicate(ctx context.Context, request operations.DeleteSourceSurvicateRequest, opts ...operations.Option) (*operations.DeleteSourceSurvicateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePokeapi", + OperationID: "deleteSourceSurvicate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40557,7 +50533,7 @@ func (s *Sources) DeleteSourcePokeapi(ctx context.Context, request operations.De } } - res := &operations.DeleteSourcePokeapiResponse{ + res := &operations.DeleteSourceSurvicateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40584,11 +50560,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) { +// DeleteSourceTeamwork - Delete a Source +func (s *Sources) DeleteSourceTeamwork(ctx context.Context, request operations.DeleteSourceTeamworkRequest, opts ...operations.Option) (*operations.DeleteSourceTeamworkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePolygonStockApi", + OperationID: "deleteSourceTeamwork", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40661,7 +50637,7 @@ func (s *Sources) DeleteSourcePolygonStockAPI(ctx context.Context, request opera } } - res := &operations.DeleteSourcePolygonStockAPIResponse{ + res := &operations.DeleteSourceTeamworkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40688,11 +50664,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) { +// 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: "deleteSourcePostgres", + OperationID: "deleteSourceTempo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40765,7 +50741,7 @@ func (s *Sources) DeleteSourcePostgres(ctx context.Context, request operations.D } } - res := &operations.DeleteSourcePostgresResponse{ + res := &operations.DeleteSourceTempoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40792,11 +50768,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) { +// 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: "deleteSourcePosthog", + OperationID: "deleteSourceTheGuardianApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40869,7 +50845,7 @@ func (s *Sources) DeleteSourcePosthog(ctx context.Context, request operations.De } } - res := &operations.DeleteSourcePosthogResponse{ + res := &operations.DeleteSourceTheGuardianAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -40896,11 +50872,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) { +// 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: "deleteSourcePostmarkapp", + OperationID: "deleteSourceTiktokMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -40973,7 +50949,7 @@ func (s *Sources) DeleteSourcePostmarkapp(ctx context.Context, request operation } } - res := &operations.DeleteSourcePostmarkappResponse{ + res := &operations.DeleteSourceTiktokMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41000,11 +50976,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) { +// 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: "deleteSourcePrestashop", + OperationID: "deleteSourceTrello", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41077,7 +51053,7 @@ func (s *Sources) DeleteSourcePrestashop(ctx context.Context, request operations } } - res := &operations.DeleteSourcePrestashopResponse{ + res := &operations.DeleteSourceTrelloResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41104,11 +51080,11 @@ func (s *Sources) DeleteSourcePrestashop(ctx context.Context, request operations } -// DeleteSourcePypi - Delete a Source -func (s *Sources) DeleteSourcePypi(ctx context.Context, request operations.DeleteSourcePypiRequest, opts ...operations.Option) (*operations.DeleteSourcePypiResponse, error) { +// 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: "deleteSourcePypi", + OperationID: "deleteSourceTrustpilot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41181,7 +51157,7 @@ func (s *Sources) DeleteSourcePypi(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourcePypiResponse{ + res := &operations.DeleteSourceTrustpilotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41208,11 +51184,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) { +// 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: "deleteSourceQualaroo", + OperationID: "deleteSourceTvmazeSchedule", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41285,7 +51261,7 @@ func (s *Sources) DeleteSourceQualaroo(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceQualarooResponse{ + res := &operations.DeleteSourceTvmazeScheduleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41312,11 +51288,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) { +// 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: "deleteSourceRailz", + OperationID: "deleteSourceTwilio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41389,7 +51365,7 @@ func (s *Sources) DeleteSourceRailz(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceRailzResponse{ + res := &operations.DeleteSourceTwilioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41416,11 +51392,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) { +// 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: "deleteSourceRecharge", + OperationID: "deleteSourceTwilioTaskrouter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41493,7 +51469,7 @@ func (s *Sources) DeleteSourceRecharge(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRechargeResponse{ + res := &operations.DeleteSourceTwilioTaskrouterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41520,11 +51496,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) { +// 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: "deleteSourceRecreation", + OperationID: "deleteSourceTwitter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41597,7 +51573,7 @@ func (s *Sources) DeleteSourceRecreation(ctx context.Context, request operations } } - res := &operations.DeleteSourceRecreationResponse{ + res := &operations.DeleteSourceTwitterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41624,11 +51600,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) { +// 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: "deleteSourceRecruitee", + OperationID: "deleteSourceTypeform", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41701,7 +51677,7 @@ func (s *Sources) DeleteSourceRecruitee(ctx context.Context, request operations. } } - res := &operations.DeleteSourceRecruiteeResponse{ + res := &operations.DeleteSourceTypeformResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41728,11 +51704,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) { +// 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: "deleteSourceRecurly", + OperationID: "deleteSourceUsCensus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41805,7 +51781,7 @@ func (s *Sources) DeleteSourceRecurly(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceRecurlyResponse{ + res := &operations.DeleteSourceUsCensusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41832,11 +51808,11 @@ func (s *Sources) DeleteSourceRecurly(ctx context.Context, request operations.De } -// DeleteSourceReddit - Delete a Source -func (s *Sources) DeleteSourceReddit(ctx context.Context, request operations.DeleteSourceRedditRequest, opts ...operations.Option) (*operations.DeleteSourceRedditResponse, 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: "deleteSourceReddit", + OperationID: "deleteSourceVantage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -41909,7 +51885,7 @@ func (s *Sources) DeleteSourceReddit(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceRedditResponse{ + res := &operations.DeleteSourceVantageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -41936,11 +51912,11 @@ func (s *Sources) DeleteSourceReddit(ctx context.Context, request operations.Del } -// DeleteSourceRedshift - Delete a Source -func (s *Sources) DeleteSourceRedshift(ctx context.Context, request operations.DeleteSourceRedshiftRequest, opts ...operations.Option) (*operations.DeleteSourceRedshiftResponse, 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: "deleteSourceRedshift", + OperationID: "deleteSourceWebflow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42013,7 +51989,7 @@ func (s *Sources) DeleteSourceRedshift(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRedshiftResponse{ + res := &operations.DeleteSourceWebflowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42040,11 +52016,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) { +// DeleteSourceWhenIWork - Delete a Source +func (s *Sources) DeleteSourceWhenIWork(ctx context.Context, request operations.DeleteSourceWhenIWorkRequest, opts ...operations.Option) (*operations.DeleteSourceWhenIWorkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRetently", + OperationID: "deleteSourceWhenIWork", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42117,7 +52093,7 @@ func (s *Sources) DeleteSourceRetently(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRetentlyResponse{ + res := &operations.DeleteSourceWhenIWorkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42144,11 +52120,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) { +// 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: "deleteSourceRkiCovid", + OperationID: "deleteSourceWhiskyHunter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42221,7 +52197,7 @@ func (s *Sources) DeleteSourceRkiCovid(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRkiCovidResponse{ + res := &operations.DeleteSourceWhiskyHunterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42248,11 +52224,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) { +// 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: "deleteSourceRss", + OperationID: "deleteSourceWikipediaPageviews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42325,7 +52301,7 @@ func (s *Sources) DeleteSourceRss(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceRssResponse{ + res := &operations.DeleteSourceWikipediaPageviewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42352,11 +52328,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) { +// 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: "deleteSourceS3", + OperationID: "deleteSourceWoocommerce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42429,7 +52405,7 @@ func (s *Sources) DeleteSourceS3(ctx context.Context, request operations.DeleteS } } - res := &operations.DeleteSourceS3Response{ + res := &operations.DeleteSourceWoocommerceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42456,11 +52432,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) { +// 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: "deleteSourceSalesforce", + OperationID: "deleteSourceXkcd", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42533,7 +52509,7 @@ func (s *Sources) DeleteSourceSalesforce(ctx context.Context, request operations } } - res := &operations.DeleteSourceSalesforceResponse{ + res := &operations.DeleteSourceXkcdResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42560,11 +52536,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) { +// 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: "deleteSourceSalesloft", + OperationID: "deleteSourceYandexMetrica", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42637,7 +52613,7 @@ func (s *Sources) DeleteSourceSalesloft(ctx context.Context, request operations. } } - res := &operations.DeleteSourceSalesloftResponse{ + res := &operations.DeleteSourceYandexMetricaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42664,11 +52640,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) { +// 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: "deleteSourceSapFieldglass", + OperationID: "deleteSourceYotpo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42741,7 +52717,7 @@ func (s *Sources) DeleteSourceSapFieldglass(ctx context.Context, request operati } } - res := &operations.DeleteSourceSapFieldglassResponse{ + res := &operations.DeleteSourceYotpoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42768,11 +52744,11 @@ func (s *Sources) DeleteSourceSapFieldglass(ctx context.Context, request operati } -// DeleteSourceSavvycal - Delete a Source -func (s *Sources) DeleteSourceSavvycal(ctx context.Context, request operations.DeleteSourceSavvycalRequest, opts ...operations.Option) (*operations.DeleteSourceSavvycalResponse, 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: "deleteSourceSavvycal", + OperationID: "deleteSourceYoutubeAnalytics", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42845,7 +52821,7 @@ func (s *Sources) DeleteSourceSavvycal(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceSavvycalResponse{ + res := &operations.DeleteSourceYoutubeAnalyticsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42872,11 +52848,11 @@ func (s *Sources) DeleteSourceSavvycal(ctx context.Context, request operations.D } -// DeleteSourceScryfall - Delete a Source -func (s *Sources) DeleteSourceScryfall(ctx context.Context, request operations.DeleteSourceScryfallRequest, opts ...operations.Option) (*operations.DeleteSourceScryfallResponse, 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: "deleteSourceScryfall", + OperationID: "deleteSourceZendeskChat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -42949,7 +52925,7 @@ func (s *Sources) DeleteSourceScryfall(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceScryfallResponse{ + res := &operations.DeleteSourceZendeskChatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -42976,11 +52952,11 @@ func (s *Sources) DeleteSourceScryfall(ctx context.Context, request operations.D } -// DeleteSourceSecoda - Delete a Source -func (s *Sources) DeleteSourceSecoda(ctx context.Context, request operations.DeleteSourceSecodaRequest, opts ...operations.Option) (*operations.DeleteSourceSecodaResponse, 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: "deleteSourceSecoda", + OperationID: "deleteSourceZendeskSunshine", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43053,7 +53029,7 @@ func (s *Sources) DeleteSourceSecoda(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceSecodaResponse{ + res := &operations.DeleteSourceZendeskSunshineResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43080,11 +53056,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) { +// 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: "deleteSourceSendgrid", + OperationID: "deleteSourceZendeskSupport", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43157,7 +53133,7 @@ func (s *Sources) DeleteSourceSendgrid(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceSendgridResponse{ + res := &operations.DeleteSourceZendeskSupportResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43184,11 +53160,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) { +// 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: "deleteSourceSendinblue", + OperationID: "deleteSourceZendeskTalk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43261,7 +53237,7 @@ func (s *Sources) DeleteSourceSendinblue(ctx context.Context, request operations } } - res := &operations.DeleteSourceSendinblueResponse{ + res := &operations.DeleteSourceZendeskTalkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43288,11 +53264,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) { +// 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: "deleteSourceSenseforce", + OperationID: "deleteSourceZenloop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43365,7 +53341,7 @@ func (s *Sources) DeleteSourceSenseforce(ctx context.Context, request operations } } - res := &operations.DeleteSourceSenseforceResponse{ + res := &operations.DeleteSourceZenloopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43392,11 +53368,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) { +// 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: "deleteSourceSentry", + OperationID: "deleteSourceZohoCrm", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43469,7 +53445,7 @@ func (s *Sources) DeleteSourceSentry(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceSentryResponse{ + res := &operations.DeleteSourceZohoCrmResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43496,11 +53472,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) { +// 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: "deleteSourceSftp", + OperationID: "deleteSourceZoom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43573,7 +53549,7 @@ func (s *Sources) DeleteSourceSftp(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceSftpResponse{ + res := &operations.DeleteSourceZoomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43600,11 +53576,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) { +// 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: "deleteSourceSftpBulk", + OperationID: "getSource", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43637,11 +53613,11 @@ func (s *Sources) DeleteSourceSftpBulk(ctx context.Context, request operations.D defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -43677,7 +53653,7 @@ func (s *Sources) DeleteSourceSftpBulk(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceSftpBulkResponse{ + res := &operations.GetSourceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43691,8 +53667,18 @@ func (s *Sources) DeleteSourceSftpBulk(ctx context.Context, request operations.D httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -43704,11 +53690,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) { +// GetSource7shifts - Get Source details +func (s *Sources) GetSource7shifts(ctx context.Context, request operations.GetSource7shiftsRequest, opts ...operations.Option) (*operations.GetSource7shiftsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceShopify", + OperationID: "getSource7shifts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43741,11 +53727,11 @@ func (s *Sources) DeleteSourceShopify(ctx context.Context, request operations.De defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -43781,7 +53767,7 @@ func (s *Sources) DeleteSourceShopify(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceShopifyResponse{ + res := &operations.GetSource7shiftsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43795,8 +53781,18 @@ func (s *Sources) DeleteSourceShopify(ctx context.Context, request operations.De httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -43808,11 +53804,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) { +// 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: "deleteSourceShortio", + OperationID: "getSourceAha", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43845,11 +53841,11 @@ func (s *Sources) DeleteSourceShortio(ctx context.Context, request operations.De defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -43885,7 +53881,7 @@ func (s *Sources) DeleteSourceShortio(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceShortioResponse{ + res := &operations.GetSourceAhaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -43899,8 +53895,18 @@ func (s *Sources) DeleteSourceShortio(ctx context.Context, request operations.De httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -43912,11 +53918,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) { +// 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: "deleteSourceSlack", + OperationID: "getSourceAirbyte", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -43949,11 +53955,11 @@ func (s *Sources) DeleteSourceSlack(ctx context.Context, request operations.Dele defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -43989,7 +53995,7 @@ func (s *Sources) DeleteSourceSlack(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceSlackResponse{ + res := &operations.GetSourceAirbyteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44003,8 +54009,18 @@ func (s *Sources) DeleteSourceSlack(ctx context.Context, request operations.Dele httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -44016,11 +54032,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) { +// 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: "deleteSourceSmaily", + OperationID: "getSourceAircall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44053,11 +54069,11 @@ func (s *Sources) DeleteSourceSmaily(ctx context.Context, request operations.Del defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44093,7 +54109,7 @@ func (s *Sources) DeleteSourceSmaily(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceSmailyResponse{ + res := &operations.GetSourceAircallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44107,8 +54123,18 @@ func (s *Sources) DeleteSourceSmaily(ctx context.Context, request operations.Del httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -44120,11 +54146,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) { +// 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: "deleteSourceSmartengage", + OperationID: "getSourceAirtable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44157,11 +54183,11 @@ func (s *Sources) DeleteSourceSmartengage(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44197,7 +54223,7 @@ func (s *Sources) DeleteSourceSmartengage(ctx context.Context, request operation } } - res := &operations.DeleteSourceSmartengageResponse{ + res := &operations.GetSourceAirtableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44211,8 +54237,18 @@ func (s *Sources) DeleteSourceSmartengage(ctx context.Context, request operation httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -44224,11 +54260,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) { +// 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: "deleteSourceSmartsheets", + OperationID: "getSourceAmazonAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44261,11 +54297,11 @@ func (s *Sources) DeleteSourceSmartsheets(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44301,7 +54337,7 @@ func (s *Sources) DeleteSourceSmartsheets(ctx context.Context, request operation } } - res := &operations.DeleteSourceSmartsheetsResponse{ + res := &operations.GetSourceAmazonAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44315,8 +54351,18 @@ func (s *Sources) DeleteSourceSmartsheets(ctx context.Context, request operation httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -44328,11 +54374,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) { +// 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: "deleteSourceSnapchatMarketing", + OperationID: "getSourceAmazonSellerPartner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44365,11 +54411,11 @@ func (s *Sources) DeleteSourceSnapchatMarketing(ctx context.Context, request ope defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44405,7 +54451,7 @@ func (s *Sources) DeleteSourceSnapchatMarketing(ctx context.Context, request ope } } - res := &operations.DeleteSourceSnapchatMarketingResponse{ + res := &operations.GetSourceAmazonSellerPartnerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44419,8 +54465,18 @@ func (s *Sources) DeleteSourceSnapchatMarketing(ctx context.Context, request ope httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -44432,11 +54488,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) { +// 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: "deleteSourceSnowflake", + OperationID: "getSourceAmazonSqs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44469,11 +54525,11 @@ func (s *Sources) DeleteSourceSnowflake(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44509,7 +54565,7 @@ func (s *Sources) DeleteSourceSnowflake(ctx context.Context, request operations. } } - res := &operations.DeleteSourceSnowflakeResponse{ + res := &operations.GetSourceAmazonSqsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44523,8 +54579,18 @@ func (s *Sources) DeleteSourceSnowflake(ctx context.Context, request operations. httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -44536,11 +54602,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) { +// 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: "deleteSourceSonarCloud", + OperationID: "getSourceAmplitude", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44573,11 +54639,11 @@ func (s *Sources) DeleteSourceSonarCloud(ctx context.Context, request operations defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44613,7 +54679,7 @@ func (s *Sources) DeleteSourceSonarCloud(ctx context.Context, request operations } } - res := &operations.DeleteSourceSonarCloudResponse{ + res := &operations.GetSourceAmplitudeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44627,8 +54693,18 @@ func (s *Sources) DeleteSourceSonarCloud(ctx context.Context, request operations httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -44640,11 +54716,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) { +// 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: "deleteSourceSpacexApi", + OperationID: "getSourceApifyDataset", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44677,11 +54753,11 @@ func (s *Sources) DeleteSourceSpacexAPI(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44717,7 +54793,7 @@ func (s *Sources) DeleteSourceSpacexAPI(ctx context.Context, request operations. } } - res := &operations.DeleteSourceSpacexAPIResponse{ + res := &operations.GetSourceApifyDatasetResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44731,8 +54807,18 @@ func (s *Sources) DeleteSourceSpacexAPI(ctx context.Context, request operations. httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -44744,11 +54830,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) { +// GetSourceAppcues - Get Source details +func (s *Sources) GetSourceAppcues(ctx context.Context, request operations.GetSourceAppcuesRequest, opts ...operations.Option) (*operations.GetSourceAppcuesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSquare", + OperationID: "getSourceAppcues", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44781,11 +54867,11 @@ func (s *Sources) DeleteSourceSquare(ctx context.Context, request operations.Del defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44821,7 +54907,7 @@ func (s *Sources) DeleteSourceSquare(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceSquareResponse{ + res := &operations.GetSourceAppcuesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44835,8 +54921,18 @@ func (s *Sources) DeleteSourceSquare(ctx context.Context, request operations.Del httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -44848,11 +54944,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) { +// GetSourceAppfigures - Get Source details +func (s *Sources) GetSourceAppfigures(ctx context.Context, request operations.GetSourceAppfiguresRequest, opts ...operations.Option) (*operations.GetSourceAppfiguresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceStrava", + OperationID: "getSourceAppfigures", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44885,11 +54981,11 @@ func (s *Sources) DeleteSourceStrava(ctx context.Context, request operations.Del defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -44925,7 +55021,7 @@ func (s *Sources) DeleteSourceStrava(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceStravaResponse{ + res := &operations.GetSourceAppfiguresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -44939,8 +55035,132 @@ func (s *Sources) DeleteSourceStrava(ctx context.Context, request operations.Del 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 == 403: fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// 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: "getSourceAppfollow", + 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.GetSourceAppfollowResponse{ + 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: @@ -44952,11 +55172,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) { +// 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: "deleteSourceStripe", + OperationID: "getSourceAsana", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -44989,11 +55209,11 @@ func (s *Sources) DeleteSourceStripe(ctx context.Context, request operations.Del defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45029,7 +55249,7 @@ func (s *Sources) DeleteSourceStripe(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceStripeResponse{ + res := &operations.GetSourceAsanaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45043,8 +55263,18 @@ func (s *Sources) DeleteSourceStripe(ctx context.Context, request operations.Del httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45056,11 +55286,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) { +// 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: "deleteSourceSurveySparrow", + OperationID: "getSourceAuth0", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45093,11 +55323,11 @@ func (s *Sources) DeleteSourceSurveySparrow(ctx context.Context, request operati defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45133,7 +55363,7 @@ func (s *Sources) DeleteSourceSurveySparrow(ctx context.Context, request operati } } - res := &operations.DeleteSourceSurveySparrowResponse{ + res := &operations.GetSourceAuth0Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45147,8 +55377,18 @@ func (s *Sources) DeleteSourceSurveySparrow(ctx context.Context, request operati httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45160,11 +55400,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) { +// 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: "deleteSourceSurveymonkey", + OperationID: "getSourceAwsCloudtrail", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45197,11 +55437,11 @@ func (s *Sources) DeleteSourceSurveymonkey(ctx context.Context, request operatio defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45237,7 +55477,7 @@ func (s *Sources) DeleteSourceSurveymonkey(ctx context.Context, request operatio } } - res := &operations.DeleteSourceSurveymonkeyResponse{ + res := &operations.GetSourceAwsCloudtrailResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45251,8 +55491,18 @@ func (s *Sources) DeleteSourceSurveymonkey(ctx context.Context, request operatio httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45264,11 +55514,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) { +// 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: "deleteSourceTempo", + OperationID: "getSourceAzureBlobStorage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45301,11 +55551,11 @@ func (s *Sources) DeleteSourceTempo(ctx context.Context, request operations.Dele defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45341,7 +55591,7 @@ func (s *Sources) DeleteSourceTempo(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceTempoResponse{ + res := &operations.GetSourceAzureBlobStorageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45355,8 +55605,18 @@ func (s *Sources) DeleteSourceTempo(ctx context.Context, request operations.Dele httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45368,11 +55628,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) { +// 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: "deleteSourceTheGuardianApi", + OperationID: "getSourceAzureTable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45405,11 +55665,11 @@ func (s *Sources) DeleteSourceTheGuardianAPI(ctx context.Context, request operat defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45445,7 +55705,7 @@ func (s *Sources) DeleteSourceTheGuardianAPI(ctx context.Context, request operat } } - res := &operations.DeleteSourceTheGuardianAPIResponse{ + res := &operations.GetSourceAzureTableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45459,8 +55719,18 @@ func (s *Sources) DeleteSourceTheGuardianAPI(ctx context.Context, request operat httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45472,11 +55742,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) { +// 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: "deleteSourceTiktokMarketing", + OperationID: "getSourceBambooHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45509,11 +55779,11 @@ func (s *Sources) DeleteSourceTiktokMarketing(ctx context.Context, request opera defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45549,7 +55819,7 @@ func (s *Sources) DeleteSourceTiktokMarketing(ctx context.Context, request opera } } - res := &operations.DeleteSourceTiktokMarketingResponse{ + res := &operations.GetSourceBambooHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45563,8 +55833,18 @@ func (s *Sources) DeleteSourceTiktokMarketing(ctx context.Context, request opera httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45576,11 +55856,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) { +// 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: "deleteSourceTrello", + OperationID: "getSourceBasecamp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45613,11 +55893,11 @@ func (s *Sources) DeleteSourceTrello(ctx context.Context, request operations.Del defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45653,7 +55933,7 @@ func (s *Sources) DeleteSourceTrello(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceTrelloResponse{ + res := &operations.GetSourceBasecampResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45667,8 +55947,18 @@ func (s *Sources) DeleteSourceTrello(ctx context.Context, request operations.Del httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45680,11 +55970,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) { +// 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: "deleteSourceTrustpilot", + OperationID: "getSourceBigquery", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45717,11 +56007,11 @@ func (s *Sources) DeleteSourceTrustpilot(ctx context.Context, request operations defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45757,7 +56047,7 @@ func (s *Sources) DeleteSourceTrustpilot(ctx context.Context, request operations } } - res := &operations.DeleteSourceTrustpilotResponse{ + res := &operations.GetSourceBigqueryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45771,8 +56061,18 @@ func (s *Sources) DeleteSourceTrustpilot(ctx context.Context, request operations httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45784,11 +56084,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) { +// 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: "deleteSourceTvmazeSchedule", + OperationID: "getSourceBingAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45821,11 +56121,11 @@ func (s *Sources) DeleteSourceTvmazeSchedule(ctx context.Context, request operat defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45861,7 +56161,7 @@ func (s *Sources) DeleteSourceTvmazeSchedule(ctx context.Context, request operat } } - res := &operations.DeleteSourceTvmazeScheduleResponse{ + res := &operations.GetSourceBingAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45875,8 +56175,18 @@ func (s *Sources) DeleteSourceTvmazeSchedule(ctx context.Context, request operat httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45888,11 +56198,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) { +// GetSourceBitly - Get Source details +func (s *Sources) GetSourceBitly(ctx context.Context, request operations.GetSourceBitlyRequest, opts ...operations.Option) (*operations.GetSourceBitlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceTwilio", + OperationID: "getSourceBitly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -45925,11 +56235,11 @@ func (s *Sources) DeleteSourceTwilio(ctx context.Context, request operations.Del defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -45965,7 +56275,7 @@ func (s *Sources) DeleteSourceTwilio(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceTwilioResponse{ + res := &operations.GetSourceBitlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -45979,8 +56289,18 @@ func (s *Sources) DeleteSourceTwilio(ctx context.Context, request operations.Del httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -45992,11 +56312,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) { +// 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: "deleteSourceTwilioTaskrouter", + OperationID: "getSourceBraintree", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46029,11 +56349,11 @@ func (s *Sources) DeleteSourceTwilioTaskrouter(ctx context.Context, request oper defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46069,7 +56389,7 @@ func (s *Sources) DeleteSourceTwilioTaskrouter(ctx context.Context, request oper } } - res := &operations.DeleteSourceTwilioTaskrouterResponse{ + res := &operations.GetSourceBraintreeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46083,8 +56403,18 @@ func (s *Sources) DeleteSourceTwilioTaskrouter(ctx context.Context, request oper httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -46096,11 +56426,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) { +// 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: "deleteSourceTwitter", + OperationID: "getSourceBraze", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46133,11 +56463,11 @@ func (s *Sources) DeleteSourceTwitter(ctx context.Context, request operations.De defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46173,7 +56503,7 @@ func (s *Sources) DeleteSourceTwitter(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceTwitterResponse{ + res := &operations.GetSourceBrazeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46187,8 +56517,18 @@ func (s *Sources) DeleteSourceTwitter(ctx context.Context, request operations.De httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -46200,11 +56540,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) { +// 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: "deleteSourceTypeform", + OperationID: "getSourceBreezyHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46237,11 +56577,11 @@ func (s *Sources) DeleteSourceTypeform(ctx context.Context, request operations.D defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46277,7 +56617,7 @@ func (s *Sources) DeleteSourceTypeform(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceTypeformResponse{ + res := &operations.GetSourceBreezyHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46291,8 +56631,18 @@ func (s *Sources) DeleteSourceTypeform(ctx context.Context, request operations.D httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -46304,11 +56654,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) { +// GetSourceBrevo - Get Source details +func (s *Sources) GetSourceBrevo(ctx context.Context, request operations.GetSourceBrevoRequest, opts ...operations.Option) (*operations.GetSourceBrevoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceUsCensus", + OperationID: "getSourceBrevo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46341,11 +56691,11 @@ func (s *Sources) DeleteSourceUsCensus(ctx context.Context, request operations.D defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46381,7 +56731,7 @@ func (s *Sources) DeleteSourceUsCensus(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceUsCensusResponse{ + res := &operations.GetSourceBrevoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46395,8 +56745,18 @@ func (s *Sources) DeleteSourceUsCensus(ctx context.Context, request operations.D httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -46408,11 +56768,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) { +// GetSourceBuildkite - Get Source details +func (s *Sources) GetSourceBuildkite(ctx context.Context, request operations.GetSourceBuildkiteRequest, opts ...operations.Option) (*operations.GetSourceBuildkiteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceVantage", + OperationID: "getSourceBuildkite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46445,11 +56805,11 @@ func (s *Sources) DeleteSourceVantage(ctx context.Context, request operations.De defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46485,7 +56845,7 @@ func (s *Sources) DeleteSourceVantage(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceVantageResponse{ + res := &operations.GetSourceBuildkiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46499,8 +56859,18 @@ func (s *Sources) DeleteSourceVantage(ctx context.Context, request operations.De httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -46512,11 +56882,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) { +// GetSourceBuzzsprout - Get Source details +func (s *Sources) GetSourceBuzzsprout(ctx context.Context, request operations.GetSourceBuzzsproutRequest, opts ...operations.Option) (*operations.GetSourceBuzzsproutResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceWebflow", + OperationID: "getSourceBuzzsprout", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46549,11 +56919,11 @@ func (s *Sources) DeleteSourceWebflow(ctx context.Context, request operations.De defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46589,7 +56959,7 @@ func (s *Sources) DeleteSourceWebflow(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceWebflowResponse{ + res := &operations.GetSourceBuzzsproutResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46603,8 +56973,18 @@ func (s *Sources) DeleteSourceWebflow(ctx context.Context, request operations.De httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -46616,11 +56996,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) { +// 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: "deleteSourceWhiskyHunter", + OperationID: "getSourceCalendly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46653,11 +57033,11 @@ func (s *Sources) DeleteSourceWhiskyHunter(ctx context.Context, request operatio defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46693,7 +57073,7 @@ func (s *Sources) DeleteSourceWhiskyHunter(ctx context.Context, request operatio } } - res := &operations.DeleteSourceWhiskyHunterResponse{ + res := &operations.GetSourceCalendlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46707,8 +57087,18 @@ func (s *Sources) DeleteSourceWhiskyHunter(ctx context.Context, request operatio httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -46720,11 +57110,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) { +// GetSourceCanny - Get Source details +func (s *Sources) GetSourceCanny(ctx context.Context, request operations.GetSourceCannyRequest, opts ...operations.Option) (*operations.GetSourceCannyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceWikipediaPageviews", + OperationID: "getSourceCanny", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46757,11 +57147,11 @@ func (s *Sources) DeleteSourceWikipediaPageviews(ctx context.Context, request op defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46797,7 +57187,7 @@ func (s *Sources) DeleteSourceWikipediaPageviews(ctx context.Context, request op } } - res := &operations.DeleteSourceWikipediaPageviewsResponse{ + res := &operations.GetSourceCannyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46811,8 +57201,18 @@ func (s *Sources) DeleteSourceWikipediaPageviews(ctx context.Context, request op httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -46824,11 +57224,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) { +// 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: "deleteSourceWoocommerce", + OperationID: "getSourceCart", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46861,11 +57261,11 @@ func (s *Sources) DeleteSourceWoocommerce(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -46901,7 +57301,7 @@ func (s *Sources) DeleteSourceWoocommerce(ctx context.Context, request operation } } - res := &operations.DeleteSourceWoocommerceResponse{ + res := &operations.GetSourceCartResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -46915,8 +57315,18 @@ func (s *Sources) DeleteSourceWoocommerce(ctx context.Context, request operation httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -46928,11 +57338,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) { +// GetSourceChameleon - Get Source details +func (s *Sources) GetSourceChameleon(ctx context.Context, request operations.GetSourceChameleonRequest, opts ...operations.Option) (*operations.GetSourceChameleonResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceXkcd", + OperationID: "getSourceChameleon", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46965,11 +57375,11 @@ func (s *Sources) DeleteSourceXkcd(ctx context.Context, request operations.Delet defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47005,7 +57415,7 @@ func (s *Sources) DeleteSourceXkcd(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceXkcdResponse{ + res := &operations.GetSourceChameleonResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47019,8 +57429,18 @@ func (s *Sources) DeleteSourceXkcd(ctx context.Context, request operations.Delet httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -47032,11 +57452,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) { +// 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: "deleteSourceYandexMetrica", + OperationID: "getSourceChargebee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47069,11 +57489,11 @@ func (s *Sources) DeleteSourceYandexMetrica(ctx context.Context, request operati defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47109,7 +57529,7 @@ func (s *Sources) DeleteSourceYandexMetrica(ctx context.Context, request operati } } - res := &operations.DeleteSourceYandexMetricaResponse{ + res := &operations.GetSourceChargebeeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47123,8 +57543,18 @@ func (s *Sources) DeleteSourceYandexMetrica(ctx context.Context, request operati httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -47136,11 +57566,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) { +// 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: "deleteSourceYotpo", + OperationID: "getSourceChartmogul", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47173,11 +57603,11 @@ func (s *Sources) DeleteSourceYotpo(ctx context.Context, request operations.Dele defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47213,7 +57643,7 @@ func (s *Sources) DeleteSourceYotpo(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceYotpoResponse{ + res := &operations.GetSourceChartmogulResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47227,8 +57657,18 @@ func (s *Sources) DeleteSourceYotpo(ctx context.Context, request operations.Dele httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -47240,11 +57680,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) { +// GetSourceCimis - Get Source details +func (s *Sources) GetSourceCimis(ctx context.Context, request operations.GetSourceCimisRequest, opts ...operations.Option) (*operations.GetSourceCimisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceYoutubeAnalytics", + OperationID: "getSourceCimis", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47277,11 +57717,11 @@ func (s *Sources) DeleteSourceYoutubeAnalytics(ctx context.Context, request oper defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47317,7 +57757,7 @@ func (s *Sources) DeleteSourceYoutubeAnalytics(ctx context.Context, request oper } } - res := &operations.DeleteSourceYoutubeAnalyticsResponse{ + res := &operations.GetSourceCimisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47331,8 +57771,18 @@ func (s *Sources) DeleteSourceYoutubeAnalytics(ctx context.Context, request oper httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -47344,11 +57794,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) { +// 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: "deleteSourceZendeskChat", + OperationID: "getSourceClazar", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47381,11 +57831,11 @@ func (s *Sources) DeleteSourceZendeskChat(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47421,7 +57871,7 @@ func (s *Sources) DeleteSourceZendeskChat(ctx context.Context, request operation } } - res := &operations.DeleteSourceZendeskChatResponse{ + res := &operations.GetSourceClazarResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47435,8 +57885,18 @@ func (s *Sources) DeleteSourceZendeskChat(ctx context.Context, request operation httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -47448,11 +57908,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) { +// 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: "deleteSourceZendeskSell", + OperationID: "getSourceClickhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47485,11 +57945,11 @@ func (s *Sources) DeleteSourceZendeskSell(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47525,7 +57985,7 @@ func (s *Sources) DeleteSourceZendeskSell(ctx context.Context, request operation } } - res := &operations.DeleteSourceZendeskSellResponse{ + res := &operations.GetSourceClickhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47539,8 +57999,18 @@ func (s *Sources) DeleteSourceZendeskSell(ctx context.Context, request operation httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -47552,11 +58022,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) { +// 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: "deleteSourceZendeskSunshine", + OperationID: "getSourceClickupApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47589,11 +58059,11 @@ func (s *Sources) DeleteSourceZendeskSunshine(ctx context.Context, request opera defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47629,7 +58099,7 @@ func (s *Sources) DeleteSourceZendeskSunshine(ctx context.Context, request opera } } - res := &operations.DeleteSourceZendeskSunshineResponse{ + res := &operations.GetSourceClickupAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47643,8 +58113,18 @@ func (s *Sources) DeleteSourceZendeskSunshine(ctx context.Context, request opera httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -47656,11 +58136,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) { +// 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: "deleteSourceZendeskSupport", + OperationID: "getSourceClockify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47693,11 +58173,11 @@ func (s *Sources) DeleteSourceZendeskSupport(ctx context.Context, request operat defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47733,7 +58213,7 @@ func (s *Sources) DeleteSourceZendeskSupport(ctx context.Context, request operat } } - res := &operations.DeleteSourceZendeskSupportResponse{ + res := &operations.GetSourceClockifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47747,8 +58227,132 @@ func (s *Sources) DeleteSourceZendeskSupport(ctx context.Context, request operat 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 == 403: fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// 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: "getSourceCloseCom", + 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.GetSourceCloseComResponse{ + 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: @@ -47760,11 +58364,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) { +// 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: "deleteSourceZendeskTalk", + OperationID: "getSourceCoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47797,11 +58401,11 @@ func (s *Sources) DeleteSourceZendeskTalk(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47837,7 +58441,7 @@ func (s *Sources) DeleteSourceZendeskTalk(ctx context.Context, request operation } } - res := &operations.DeleteSourceZendeskTalkResponse{ + res := &operations.GetSourceCodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47851,8 +58455,18 @@ func (s *Sources) DeleteSourceZendeskTalk(ctx context.Context, request operation httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -47864,11 +58478,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) { +// 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: "deleteSourceZenloop", + OperationID: "getSourceCoinApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -47901,11 +58515,11 @@ func (s *Sources) DeleteSourceZenloop(ctx context.Context, request operations.De defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -47941,7 +58555,7 @@ func (s *Sources) DeleteSourceZenloop(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceZenloopResponse{ + res := &operations.GetSourceCoinAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -47955,8 +58569,18 @@ func (s *Sources) DeleteSourceZenloop(ctx context.Context, request operations.De httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -47968,11 +58592,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) { +// 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: "deleteSourceZohoCrm", + OperationID: "getSourceCoinmarketcap", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48005,11 +58629,11 @@ func (s *Sources) DeleteSourceZohoCrm(ctx context.Context, request operations.De defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -48045,7 +58669,7 @@ func (s *Sources) DeleteSourceZohoCrm(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceZohoCrmResponse{ + res := &operations.GetSourceCoinmarketcapResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48059,8 +58683,18 @@ func (s *Sources) DeleteSourceZohoCrm(ctx context.Context, request operations.De httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough + 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: @@ -48072,11 +58706,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) { +// 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: "deleteSourceZoom", + OperationID: "getSourceConfigcat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48109,11 +58743,11 @@ func (s *Sources) DeleteSourceZoom(ctx context.Context, request operations.Delet defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + 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) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -48149,7 +58783,7 @@ func (s *Sources) DeleteSourceZoom(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceZoomResponse{ + res := &operations.GetSourceConfigcatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48163,8 +58797,132 @@ func (s *Sources) DeleteSourceZoom(ctx context.Context, request operations.Delet 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 == 403: fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// 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: "getSourceConfluence", + 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.GetSourceConfluenceResponse{ + 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: @@ -48176,11 +58934,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) { +// 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: "getSource", + OperationID: "getSourceConvex", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48253,7 +59011,7 @@ func (s *Sources) GetSource(ctx context.Context, request operations.GetSourceReq } } - res := &operations.GetSourceResponse{ + res := &operations.GetSourceConvexResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48290,11 +59048,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) { +// 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: "getSourceAha", + OperationID: "getSourceCustom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48367,7 +59125,7 @@ func (s *Sources) GetSourceAha(ctx context.Context, request operations.GetSource } } - res := &operations.GetSourceAhaResponse{ + res := &operations.GetSourceCustomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48404,11 +59162,11 @@ func (s *Sources) GetSourceAha(ctx context.Context, request operations.GetSource } -// GetSourceAirbyte - Get Source details -func (s *Sources) GetSourceAirbyte(ctx context.Context, request operations.GetSourceAirbyteRequest, opts ...operations.Option) (*operations.GetSourceAirbyteResponse, 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: "getSourceAirbyte", + OperationID: "getSourceCustomerIo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48481,7 +59239,7 @@ func (s *Sources) GetSourceAirbyte(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceAirbyteResponse{ + res := &operations.GetSourceCustomerIoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48518,11 +59276,11 @@ func (s *Sources) GetSourceAirbyte(ctx context.Context, request operations.GetSo } -// GetSourceAircall - Get Source details -func (s *Sources) GetSourceAircall(ctx context.Context, request operations.GetSourceAircallRequest, opts ...operations.Option) (*operations.GetSourceAircallResponse, 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: "getSourceAircall", + OperationID: "getSourceDatadog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48595,7 +59353,7 @@ func (s *Sources) GetSourceAircall(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceAircallResponse{ + res := &operations.GetSourceDatadogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48632,11 +59390,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) { +// 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: "getSourceAirtable", + OperationID: "getSourceDatascope", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48709,7 +59467,7 @@ func (s *Sources) GetSourceAirtable(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceAirtableResponse{ + res := &operations.GetSourceDatascopeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48746,11 +59504,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) { +// 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: "getSourceAmazonAds", + OperationID: "getSourceDbt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48823,7 +59581,7 @@ func (s *Sources) GetSourceAmazonAds(ctx context.Context, request operations.Get } } - res := &operations.GetSourceAmazonAdsResponse{ + res := &operations.GetSourceDbtResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48860,11 +59618,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) { +// 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: "getSourceAmazonSellerPartner", + OperationID: "getSourceDelighted", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48937,7 +59695,7 @@ func (s *Sources) GetSourceAmazonSellerPartner(ctx context.Context, request oper } } - res := &operations.GetSourceAmazonSellerPartnerResponse{ + res := &operations.GetSourceDelightedResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48974,11 +59732,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) { +// 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: "getSourceAmazonSqs", + OperationID: "getSourceDixa", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49051,7 +59809,7 @@ func (s *Sources) GetSourceAmazonSqs(ctx context.Context, request operations.Get } } - res := &operations.GetSourceAmazonSqsResponse{ + res := &operations.GetSourceDixaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49088,11 +59846,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) { +// 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: "getSourceAmplitude", + OperationID: "getSourceDockerhub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49165,7 +59923,7 @@ func (s *Sources) GetSourceAmplitude(ctx context.Context, request operations.Get } } - res := &operations.GetSourceAmplitudeResponse{ + res := &operations.GetSourceDockerhubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49202,11 +59960,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) { +// 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: "getSourceApifyDataset", + OperationID: "getSourceDremio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49279,7 +60037,7 @@ func (s *Sources) GetSourceApifyDataset(ctx context.Context, request operations. } } - res := &operations.GetSourceApifyDatasetResponse{ + res := &operations.GetSourceDremioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49316,11 +60074,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) { +// 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: "getSourceAppfollow", + OperationID: "getSourceDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49393,7 +60151,7 @@ func (s *Sources) GetSourceAppfollow(ctx context.Context, request operations.Get } } - res := &operations.GetSourceAppfollowResponse{ + res := &operations.GetSourceDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49430,11 +60188,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) { +// 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: "getSourceAsana", + OperationID: "getSourceEmailoctopus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49507,7 +60265,7 @@ func (s *Sources) GetSourceAsana(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceAsanaResponse{ + res := &operations.GetSourceEmailoctopusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49544,11 +60302,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) { +// 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: "getSourceAuth0", + OperationID: "getSourceExchangeRates", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49621,7 +60379,7 @@ func (s *Sources) GetSourceAuth0(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceAuth0Response{ + res := &operations.GetSourceExchangeRatesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49658,11 +60416,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) { +// GetSourceEzofficeinventory - Get Source details +func (s *Sources) GetSourceEzofficeinventory(ctx context.Context, request operations.GetSourceEzofficeinventoryRequest, opts ...operations.Option) (*operations.GetSourceEzofficeinventoryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceAwsCloudtrail", + OperationID: "getSourceEzofficeinventory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49735,7 +60493,7 @@ func (s *Sources) GetSourceAwsCloudtrail(ctx context.Context, request operations } } - res := &operations.GetSourceAwsCloudtrailResponse{ + res := &operations.GetSourceEzofficeinventoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49772,11 +60530,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) { +// 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: "getSourceAzureBlobStorage", + OperationID: "getSourceFacebookMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49849,7 +60607,7 @@ func (s *Sources) GetSourceAzureBlobStorage(ctx context.Context, request operati } } - res := &operations.GetSourceAzureBlobStorageResponse{ + res := &operations.GetSourceFacebookMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -49886,11 +60644,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) { +// 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: "getSourceAzureTable", + OperationID: "getSourceFaker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -49963,7 +60721,7 @@ func (s *Sources) GetSourceAzureTable(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceAzureTableResponse{ + res := &operations.GetSourceFakerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50000,11 +60758,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) { +// 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: "getSourceBambooHr", + OperationID: "getSourceFauna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50077,7 +60835,7 @@ func (s *Sources) GetSourceBambooHr(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceBambooHrResponse{ + res := &operations.GetSourceFaunaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50114,11 +60872,11 @@ func (s *Sources) GetSourceBambooHr(ctx context.Context, request operations.GetS } -// GetSourceBasecamp - Get Source details -func (s *Sources) GetSourceBasecamp(ctx context.Context, request operations.GetSourceBasecampRequest, opts ...operations.Option) (*operations.GetSourceBasecampResponse, 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: "getSourceBasecamp", + OperationID: "getSourceFile", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50191,7 +60949,7 @@ func (s *Sources) GetSourceBasecamp(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceBasecampResponse{ + res := &operations.GetSourceFileResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50228,11 +60986,11 @@ func (s *Sources) GetSourceBasecamp(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) { +// 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: "getSourceBigquery", + OperationID: "getSourceFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50305,7 +61063,7 @@ func (s *Sources) GetSourceBigquery(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceBigqueryResponse{ + res := &operations.GetSourceFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50342,11 +61100,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) { +// 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: "getSourceBingAds", + OperationID: "getSourceFleetio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50419,7 +61177,7 @@ func (s *Sources) GetSourceBingAds(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceBingAdsResponse{ + res := &operations.GetSourceFleetioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50456,11 +61214,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) { +// 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: "getSourceBraintree", + OperationID: "getSourceFreshcaller", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50533,7 +61291,7 @@ func (s *Sources) GetSourceBraintree(ctx context.Context, request operations.Get } } - res := &operations.GetSourceBraintreeResponse{ + res := &operations.GetSourceFreshcallerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50570,11 +61328,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) { +// 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: "getSourceBraze", + OperationID: "getSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50647,7 +61405,7 @@ func (s *Sources) GetSourceBraze(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceBrazeResponse{ + res := &operations.GetSourceFreshdeskResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50684,11 +61442,11 @@ func (s *Sources) GetSourceBraze(ctx context.Context, request operations.GetSour } -// GetSourceBreezyHr - Get Source details -func (s *Sources) GetSourceBreezyHr(ctx context.Context, request operations.GetSourceBreezyHrRequest, opts ...operations.Option) (*operations.GetSourceBreezyHrResponse, 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: "getSourceBreezyHr", + OperationID: "getSourceFreshsales", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50761,7 +61519,7 @@ func (s *Sources) GetSourceBreezyHr(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceBreezyHrResponse{ + res := &operations.GetSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50798,11 +61556,11 @@ func (s *Sources) GetSourceBreezyHr(ctx context.Context, request operations.GetS } -// GetSourceCalendly - Get Source details -func (s *Sources) GetSourceCalendly(ctx context.Context, request operations.GetSourceCalendlyRequest, opts ...operations.Option) (*operations.GetSourceCalendlyResponse, error) { +// GetSourceFront - Get Source details +func (s *Sources) GetSourceFront(ctx context.Context, request operations.GetSourceFrontRequest, opts ...operations.Option) (*operations.GetSourceFrontResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceCalendly", + OperationID: "getSourceFront", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50875,7 +61633,7 @@ func (s *Sources) GetSourceCalendly(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceCalendlyResponse{ + res := &operations.GetSourceFrontResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -50912,11 +61670,11 @@ func (s *Sources) GetSourceCalendly(ctx context.Context, request operations.GetS } -// GetSourceCart - Get Source details -func (s *Sources) GetSourceCart(ctx context.Context, request operations.GetSourceCartRequest, opts ...operations.Option) (*operations.GetSourceCartResponse, 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: "getSourceCart", + OperationID: "getSourceGainsightPx", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -50989,7 +61747,7 @@ func (s *Sources) GetSourceCart(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceCartResponse{ + res := &operations.GetSourceGainsightPxResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51026,11 +61784,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) { +// 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: "getSourceChargebee", + OperationID: "getSourceGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51103,7 +61861,7 @@ func (s *Sources) GetSourceChargebee(ctx context.Context, request operations.Get } } - res := &operations.GetSourceChargebeeResponse{ + res := &operations.GetSourceGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51140,11 +61898,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) { +// 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: "getSourceChartmogul", + OperationID: "getSourceGetlago", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51217,7 +61975,7 @@ func (s *Sources) GetSourceChartmogul(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceChartmogulResponse{ + res := &operations.GetSourceGetlagoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51254,11 +62012,11 @@ func (s *Sources) GetSourceChartmogul(ctx context.Context, request operations.Ge } -// GetSourceClazar - Get Source details -func (s *Sources) GetSourceClazar(ctx context.Context, request operations.GetSourceClazarRequest, opts ...operations.Option) (*operations.GetSourceClazarResponse, error) { +// 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: "getSourceClazar", + OperationID: "getSourceGithub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51331,7 +62089,7 @@ func (s *Sources) GetSourceClazar(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceClazarResponse{ + res := &operations.GetSourceGithubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51368,11 +62126,11 @@ func (s *Sources) GetSourceClazar(ctx context.Context, request operations.GetSou } -// GetSourceClickhouse - Get Source details -func (s *Sources) GetSourceClickhouse(ctx context.Context, request operations.GetSourceClickhouseRequest, opts ...operations.Option) (*operations.GetSourceClickhouseResponse, 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: "getSourceClickhouse", + OperationID: "getSourceGitlab", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51445,7 +62203,7 @@ func (s *Sources) GetSourceClickhouse(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceClickhouseResponse{ + res := &operations.GetSourceGitlabResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51482,11 +62240,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) { +// 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: "getSourceClickupApi", + OperationID: "getSourceGlassfrog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51559,7 +62317,7 @@ func (s *Sources) GetSourceClickupAPI(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceClickupAPIResponse{ + res := &operations.GetSourceGlassfrogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51596,11 +62354,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) { +// 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: "getSourceClockify", + OperationID: "getSourceGnews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51673,7 +62431,7 @@ func (s *Sources) GetSourceClockify(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceClockifyResponse{ + res := &operations.GetSourceGnewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51710,11 +62468,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) { +// 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: "getSourceCloseCom", + OperationID: "getSourceGoldcast", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51787,7 +62545,7 @@ func (s *Sources) GetSourceCloseCom(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceCloseComResponse{ + res := &operations.GetSourceGoldcastResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51824,11 +62582,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) { +// 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: "getSourceCoda", + OperationID: "getSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51901,7 +62659,7 @@ func (s *Sources) GetSourceCoda(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceCodaResponse{ + res := &operations.GetSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51938,11 +62696,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) { +// 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: "getSourceCoinApi", + OperationID: "getSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52015,7 +62773,7 @@ func (s *Sources) GetSourceCoinAPI(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceCoinAPIResponse{ + res := &operations.GetSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52052,11 +62810,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) { +// 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: "getSourceCoinmarketcap", + OperationID: "getSourceGoogleDirectory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52129,7 +62887,7 @@ func (s *Sources) GetSourceCoinmarketcap(ctx context.Context, request operations } } - res := &operations.GetSourceCoinmarketcapResponse{ + res := &operations.GetSourceGoogleDirectoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52166,11 +62924,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) { +// 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: "getSourceConfigcat", + OperationID: "getSourceGoogleDrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52243,7 +63001,7 @@ func (s *Sources) GetSourceConfigcat(ctx context.Context, request operations.Get } } - res := &operations.GetSourceConfigcatResponse{ + res := &operations.GetSourceGoogleDriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52280,11 +63038,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) { +// 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: "getSourceConfluence", + OperationID: "getSourceGooglePagespeedInsights", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52357,7 +63115,7 @@ func (s *Sources) GetSourceConfluence(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceConfluenceResponse{ + res := &operations.GetSourceGooglePagespeedInsightsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52394,11 +63152,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) { +// 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: "getSourceConvex", + OperationID: "getSourceGoogleSearchConsole", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52471,7 +63229,7 @@ func (s *Sources) GetSourceConvex(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceConvexResponse{ + res := &operations.GetSourceGoogleSearchConsoleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52508,11 +63266,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) { +// 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: "getSourceCustom", + OperationID: "getSourceGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52585,7 +63343,7 @@ func (s *Sources) GetSourceCustom(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceCustomResponse{ + res := &operations.GetSourceGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52622,11 +63380,11 @@ func (s *Sources) GetSourceCustom(ctx context.Context, request operations.GetSou } -// GetSourceCustomerIo - Get Source details -func (s *Sources) GetSourceCustomerIo(ctx context.Context, request operations.GetSourceCustomerIoRequest, opts ...operations.Option) (*operations.GetSourceCustomerIoResponse, error) { +// GetSourceGoogleTasks - Get Source details +func (s *Sources) GetSourceGoogleTasks(ctx context.Context, request operations.GetSourceGoogleTasksRequest, opts ...operations.Option) (*operations.GetSourceGoogleTasksResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceCustomerIo", + OperationID: "getSourceGoogleTasks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52699,7 +63457,7 @@ func (s *Sources) GetSourceCustomerIo(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceCustomerIoResponse{ + res := &operations.GetSourceGoogleTasksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52736,11 +63494,11 @@ func (s *Sources) GetSourceCustomerIo(ctx context.Context, request operations.Ge } -// GetSourceDatadog - Get Source details -func (s *Sources) GetSourceDatadog(ctx context.Context, request operations.GetSourceDatadogRequest, opts ...operations.Option) (*operations.GetSourceDatadogResponse, 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: "getSourceDatadog", + OperationID: "getSourceGoogleWebfonts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52813,7 +63571,7 @@ func (s *Sources) GetSourceDatadog(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceDatadogResponse{ + res := &operations.GetSourceGoogleWebfontsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52850,11 +63608,11 @@ func (s *Sources) GetSourceDatadog(ctx context.Context, request operations.GetSo } -// GetSourceDatascope - Get Source details -func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.GetSourceDatascopeRequest, opts ...operations.Option) (*operations.GetSourceDatascopeResponse, error) { +// 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: "getSourceDatascope", + OperationID: "getSourceGreenhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -52927,7 +63685,7 @@ func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.Get } } - res := &operations.GetSourceDatascopeResponse{ + res := &operations.GetSourceGreenhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -52964,11 +63722,11 @@ func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.Get } -// GetSourceDbt - Get Source details -func (s *Sources) GetSourceDbt(ctx context.Context, request operations.GetSourceDbtRequest, opts ...operations.Option) (*operations.GetSourceDbtResponse, 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: "getSourceDbt", + OperationID: "getSourceGridly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53041,7 +63799,7 @@ func (s *Sources) GetSourceDbt(ctx context.Context, request operations.GetSource } } - res := &operations.GetSourceDbtResponse{ + res := &operations.GetSourceGridlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53078,11 +63836,11 @@ func (s *Sources) GetSourceDbt(ctx context.Context, request operations.GetSource } -// GetSourceDelighted - Get Source details -func (s *Sources) GetSourceDelighted(ctx context.Context, request operations.GetSourceDelightedRequest, opts ...operations.Option) (*operations.GetSourceDelightedResponse, error) { +// GetSourceGuru - Get Source details +func (s *Sources) GetSourceGuru(ctx context.Context, request operations.GetSourceGuruRequest, opts ...operations.Option) (*operations.GetSourceGuruResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDelighted", + OperationID: "getSourceGuru", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53155,7 +63913,7 @@ func (s *Sources) GetSourceDelighted(ctx context.Context, request operations.Get } } - res := &operations.GetSourceDelightedResponse{ + res := &operations.GetSourceGuruResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53192,11 +63950,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) { +// 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: "getSourceDixa", + OperationID: "getSourceHardcodedRecords", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53269,7 +64027,7 @@ func (s *Sources) GetSourceDixa(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceDixaResponse{ + res := &operations.GetSourceHardcodedRecordsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53306,11 +64064,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) { +// 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: "getSourceDockerhub", + OperationID: "getSourceHarvest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53383,7 +64141,7 @@ func (s *Sources) GetSourceDockerhub(ctx context.Context, request operations.Get } } - res := &operations.GetSourceDockerhubResponse{ + res := &operations.GetSourceHarvestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53420,11 +64178,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) { +// GetSourceHeight - Get Source details +func (s *Sources) GetSourceHeight(ctx context.Context, request operations.GetSourceHeightRequest, opts ...operations.Option) (*operations.GetSourceHeightResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDremio", + OperationID: "getSourceHeight", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53497,7 +64255,7 @@ func (s *Sources) GetSourceDremio(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceDremioResponse{ + res := &operations.GetSourceHeightResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53534,11 +64292,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) { +// 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: "getSourceDynamodb", + OperationID: "getSourceHibob", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53611,7 +64369,7 @@ func (s *Sources) GetSourceDynamodb(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceDynamodbResponse{ + res := &operations.GetSourceHibobResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53648,11 +64406,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) { +// 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: "getSourceEmailoctopus", + OperationID: "getSourceHighLevel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53725,7 +64483,7 @@ func (s *Sources) GetSourceEmailoctopus(ctx context.Context, request operations. } } - res := &operations.GetSourceEmailoctopusResponse{ + res := &operations.GetSourceHighLevelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53762,11 +64520,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) { +// 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: "getSourceExchangeRates", + OperationID: "getSourceHubplanner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53839,7 +64597,7 @@ func (s *Sources) GetSourceExchangeRates(ctx context.Context, request operations } } - res := &operations.GetSourceExchangeRatesResponse{ + res := &operations.GetSourceHubplannerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53876,11 +64634,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) { +// 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: "getSourceFacebookMarketing", + OperationID: "getSourceHubspot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -53953,7 +64711,7 @@ func (s *Sources) GetSourceFacebookMarketing(ctx context.Context, request operat } } - res := &operations.GetSourceFacebookMarketingResponse{ + res := &operations.GetSourceHubspotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -53990,11 +64748,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) { +// 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: "getSourceFaker", + OperationID: "getSourceInsightly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54067,7 +64825,7 @@ func (s *Sources) GetSourceFaker(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceFakerResponse{ + res := &operations.GetSourceInsightlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54104,11 +64862,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) { +// 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: "getSourceFauna", + OperationID: "getSourceInstagram", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54181,7 +64939,7 @@ func (s *Sources) GetSourceFauna(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceFaunaResponse{ + res := &operations.GetSourceInstagramResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54218,11 +64976,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) { +// 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: "getSourceFile", + OperationID: "getSourceInstatus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54295,7 +65053,7 @@ func (s *Sources) GetSourceFile(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceFileResponse{ + res := &operations.GetSourceInstatusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54332,11 +65090,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) { +// 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: "getSourceFirebolt", + OperationID: "getSourceIntercom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54409,7 +65167,7 @@ func (s *Sources) GetSourceFirebolt(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceFireboltResponse{ + res := &operations.GetSourceIntercomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54446,11 +65204,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) { +// 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: "getSourceFleetio", + OperationID: "getSourceIp2whois", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54523,7 +65281,7 @@ func (s *Sources) GetSourceFleetio(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceFleetioResponse{ + res := &operations.GetSourceIp2whoisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54560,11 +65318,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) { +// 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: "getSourceFreshcaller", + OperationID: "getSourceIterable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54637,7 +65395,7 @@ func (s *Sources) GetSourceFreshcaller(ctx context.Context, request operations.G } } - res := &operations.GetSourceFreshcallerResponse{ + res := &operations.GetSourceIterableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54674,11 +65432,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) { +// 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: "getSourceFreshdesk", + OperationID: "getSourceJira", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54751,7 +65509,7 @@ func (s *Sources) GetSourceFreshdesk(ctx context.Context, request operations.Get } } - res := &operations.GetSourceFreshdeskResponse{ + res := &operations.GetSourceJiraResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54788,11 +65546,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) { +// GetSourceJotform - Get Source details +func (s *Sources) GetSourceJotform(ctx context.Context, request operations.GetSourceJotformRequest, opts ...operations.Option) (*operations.GetSourceJotformResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceFreshsales", + OperationID: "getSourceJotform", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54865,7 +65623,7 @@ func (s *Sources) GetSourceFreshsales(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceFreshsalesResponse{ + res := &operations.GetSourceJotformResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -54902,11 +65660,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) { +// 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: "getSourceGainsightPx", + OperationID: "getSourceK6Cloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -54979,7 +65737,7 @@ func (s *Sources) GetSourceGainsightPx(ctx context.Context, request operations.G } } - res := &operations.GetSourceGainsightPxResponse{ + res := &operations.GetSourceK6CloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55016,11 +65774,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) { +// 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: "getSourceGcs", + OperationID: "getSourceKlarna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55093,7 +65851,7 @@ func (s *Sources) GetSourceGcs(ctx context.Context, request operations.GetSource } } - res := &operations.GetSourceGcsResponse{ + res := &operations.GetSourceKlarnaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55130,11 +65888,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) { +// 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: "getSourceGetlago", + OperationID: "getSourceKlaviyo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55207,7 +65965,7 @@ func (s *Sources) GetSourceGetlago(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceGetlagoResponse{ + res := &operations.GetSourceKlaviyoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55244,11 +66002,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) { +// 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: "getSourceGithub", + OperationID: "getSourceKyve", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55321,7 +66079,7 @@ func (s *Sources) GetSourceGithub(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceGithubResponse{ + res := &operations.GetSourceKyveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55358,11 +66116,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) { +// 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: "getSourceGitlab", + OperationID: "getSourceLaunchdarkly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55435,7 +66193,7 @@ func (s *Sources) GetSourceGitlab(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceGitlabResponse{ + res := &operations.GetSourceLaunchdarklyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55472,11 +66230,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) { +// 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: "getSourceGlassfrog", + OperationID: "getSourceLeadfeeder", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55549,7 +66307,7 @@ func (s *Sources) GetSourceGlassfrog(ctx context.Context, request operations.Get } } - res := &operations.GetSourceGlassfrogResponse{ + res := &operations.GetSourceLeadfeederResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55586,11 +66344,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) { +// 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: "getSourceGnews", + OperationID: "getSourceLemlist", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55663,7 +66421,7 @@ func (s *Sources) GetSourceGnews(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceGnewsResponse{ + res := &operations.GetSourceLemlistResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55700,11 +66458,11 @@ func (s *Sources) GetSourceGnews(ctx context.Context, request operations.GetSour } -// GetSourceGoldcast - Get Source details -func (s *Sources) GetSourceGoldcast(ctx context.Context, request operations.GetSourceGoldcastRequest, opts ...operations.Option) (*operations.GetSourceGoldcastResponse, error) { +// 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: "getSourceGoldcast", + OperationID: "getSourceLeverHiring", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55777,7 +66535,7 @@ func (s *Sources) GetSourceGoldcast(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceGoldcastResponse{ + res := &operations.GetSourceLeverHiringResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55814,11 +66572,11 @@ func (s *Sources) GetSourceGoldcast(ctx context.Context, request operations.GetS } -// GetSourceGoogleAds - Get Source details -func (s *Sources) GetSourceGoogleAds(ctx context.Context, request operations.GetSourceGoogleAdsRequest, opts ...operations.Option) (*operations.GetSourceGoogleAdsResponse, error) { +// 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: "getSourceGoogleAds", + OperationID: "getSourceLinkedinAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -55891,7 +66649,7 @@ func (s *Sources) GetSourceGoogleAds(ctx context.Context, request operations.Get } } - res := &operations.GetSourceGoogleAdsResponse{ + res := &operations.GetSourceLinkedinAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -55928,11 +66686,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) { +// 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: "getSourceGoogleAnalyticsDataApi", + OperationID: "getSourceLinkedinPages", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56005,7 +66763,7 @@ func (s *Sources) GetSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } } - res := &operations.GetSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.GetSourceLinkedinPagesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56042,11 +66800,11 @@ func (s *Sources) GetSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } -// GetSourceGoogleDirectory - Get Source details -func (s *Sources) GetSourceGoogleDirectory(ctx context.Context, request operations.GetSourceGoogleDirectoryRequest, opts ...operations.Option) (*operations.GetSourceGoogleDirectoryResponse, 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: "getSourceGoogleDirectory", + OperationID: "getSourceLinnworks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56119,7 +66877,7 @@ func (s *Sources) GetSourceGoogleDirectory(ctx context.Context, request operatio } } - res := &operations.GetSourceGoogleDirectoryResponse{ + res := &operations.GetSourceLinnworksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56156,11 +66914,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) { +// 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: "getSourceGoogleDrive", + OperationID: "getSourceLokalise", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56233,7 +66991,7 @@ func (s *Sources) GetSourceGoogleDrive(ctx context.Context, request operations.G } } - res := &operations.GetSourceGoogleDriveResponse{ + res := &operations.GetSourceLokaliseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56270,11 +67028,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) { +// 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: "getSourceGooglePagespeedInsights", + OperationID: "getSourceLooker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56347,7 +67105,7 @@ func (s *Sources) GetSourceGooglePagespeedInsights(ctx context.Context, request } } - res := &operations.GetSourceGooglePagespeedInsightsResponse{ + res := &operations.GetSourceLookerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56384,11 +67142,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) { +// 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: "getSourceGoogleSearchConsole", + OperationID: "getSourceLuma", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56461,7 +67219,7 @@ func (s *Sources) GetSourceGoogleSearchConsole(ctx context.Context, request oper } } - res := &operations.GetSourceGoogleSearchConsoleResponse{ + res := &operations.GetSourceLumaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56498,11 +67256,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) { +// 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: "getSourceGoogleSheets", + OperationID: "getSourceMailchimp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56575,7 +67333,7 @@ func (s *Sources) GetSourceGoogleSheets(ctx context.Context, request operations. } } - res := &operations.GetSourceGoogleSheetsResponse{ + res := &operations.GetSourceMailchimpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56612,11 +67370,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) { +// 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: "getSourceGoogleWebfonts", + OperationID: "getSourceMailgun", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56689,7 +67447,7 @@ func (s *Sources) GetSourceGoogleWebfonts(ctx context.Context, request operation } } - res := &operations.GetSourceGoogleWebfontsResponse{ + res := &operations.GetSourceMailgunResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56726,11 +67484,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) { +// 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: "getSourceGreenhouse", + OperationID: "getSourceMailjetSms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56803,7 +67561,7 @@ func (s *Sources) GetSourceGreenhouse(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceGreenhouseResponse{ + res := &operations.GetSourceMailjetSmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56840,11 +67598,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) { +// 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: "getSourceGridly", + OperationID: "getSourceMarketo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -56917,7 +67675,7 @@ func (s *Sources) GetSourceGridly(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceGridlyResponse{ + res := &operations.GetSourceMarketoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -56954,11 +67712,11 @@ func (s *Sources) GetSourceGridly(ctx context.Context, request operations.GetSou } -// GetSourceHardcodedRecords - Get Source details -func (s *Sources) GetSourceHardcodedRecords(ctx context.Context, request operations.GetSourceHardcodedRecordsRequest, opts ...operations.Option) (*operations.GetSourceHardcodedRecordsResponse, 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: "getSourceHardcodedRecords", + OperationID: "getSourceMetabase", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57031,7 +67789,7 @@ func (s *Sources) GetSourceHardcodedRecords(ctx context.Context, request operati } } - res := &operations.GetSourceHardcodedRecordsResponse{ + res := &operations.GetSourceMetabaseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57068,11 +67826,11 @@ func (s *Sources) GetSourceHardcodedRecords(ctx context.Context, request operati } -// GetSourceHarvest - Get Source details -func (s *Sources) GetSourceHarvest(ctx context.Context, request operations.GetSourceHarvestRequest, opts ...operations.Option) (*operations.GetSourceHarvestResponse, 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: "getSourceHarvest", + OperationID: "getSourceMicrosoftOnedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57145,7 +67903,7 @@ func (s *Sources) GetSourceHarvest(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceHarvestResponse{ + res := &operations.GetSourceMicrosoftOnedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57182,11 +67940,11 @@ func (s *Sources) GetSourceHarvest(ctx context.Context, request operations.GetSo } -// GetSourceHibob - Get Source details -func (s *Sources) GetSourceHibob(ctx context.Context, request operations.GetSourceHibobRequest, opts ...operations.Option) (*operations.GetSourceHibobResponse, 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: "getSourceHibob", + OperationID: "getSourceMicrosoftSharepoint", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57259,7 +68017,7 @@ func (s *Sources) GetSourceHibob(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceHibobResponse{ + res := &operations.GetSourceMicrosoftSharepointResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57296,11 +68054,11 @@ func (s *Sources) GetSourceHibob(ctx context.Context, request operations.GetSour } -// GetSourceHighLevel - Get Source details -func (s *Sources) GetSourceHighLevel(ctx context.Context, request operations.GetSourceHighLevelRequest, opts ...operations.Option) (*operations.GetSourceHighLevelResponse, 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: "getSourceHighLevel", + OperationID: "getSourceMicrosoftTeams", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57373,7 +68131,7 @@ func (s *Sources) GetSourceHighLevel(ctx context.Context, request operations.Get } } - res := &operations.GetSourceHighLevelResponse{ + res := &operations.GetSourceMicrosoftTeamsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57410,11 +68168,11 @@ func (s *Sources) GetSourceHighLevel(ctx context.Context, request operations.Get } -// GetSourceHubplanner - Get Source details -func (s *Sources) GetSourceHubplanner(ctx context.Context, request operations.GetSourceHubplannerRequest, opts ...operations.Option) (*operations.GetSourceHubplannerResponse, 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: "getSourceHubplanner", + OperationID: "getSourceMixpanel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57487,7 +68245,7 @@ func (s *Sources) GetSourceHubplanner(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceHubplannerResponse{ + res := &operations.GetSourceMixpanelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57524,11 +68282,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) { +// 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: "getSourceHubspot", + OperationID: "getSourceMonday", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57601,7 +68359,7 @@ func (s *Sources) GetSourceHubspot(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceHubspotResponse{ + res := &operations.GetSourceMondayResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57638,11 +68396,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) { +// 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: "getSourceInsightly", + OperationID: "getSourceMongodbV2", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57715,7 +68473,7 @@ func (s *Sources) GetSourceInsightly(ctx context.Context, request operations.Get } } - res := &operations.GetSourceInsightlyResponse{ + res := &operations.GetSourceMongodbV2Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57752,11 +68510,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) { +// 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: "getSourceInstagram", + OperationID: "getSourceMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57829,7 +68587,7 @@ func (s *Sources) GetSourceInstagram(ctx context.Context, request operations.Get } } - res := &operations.GetSourceInstagramResponse{ + res := &operations.GetSourceMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57866,11 +68624,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) { +// 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: "getSourceInstatus", + OperationID: "getSourceMyHours", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -57943,7 +68701,7 @@ func (s *Sources) GetSourceInstatus(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceInstatusResponse{ + res := &operations.GetSourceMyHoursResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -57980,11 +68738,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) { +// 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: "getSourceIntercom", + OperationID: "getSourceMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58057,7 +68815,7 @@ func (s *Sources) GetSourceIntercom(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceIntercomResponse{ + res := &operations.GetSourceMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58094,11 +68852,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) { +// 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: "getSourceIp2whois", + OperationID: "getSourceNetsuite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58171,7 +68929,7 @@ func (s *Sources) GetSourceIp2whois(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceIp2whoisResponse{ + res := &operations.GetSourceNetsuiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58208,11 +68966,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) { +// 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: "getSourceIterable", + OperationID: "getSourceNorthpassLms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58285,7 +69043,7 @@ func (s *Sources) GetSourceIterable(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceIterableResponse{ + res := &operations.GetSourceNorthpassLmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58322,11 +69080,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) { +// 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: "getSourceJira", + OperationID: "getSourceNotion", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58399,7 +69157,7 @@ func (s *Sources) GetSourceJira(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceJiraResponse{ + res := &operations.GetSourceNotionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58436,11 +69194,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) { +// GetSourceNylas - Get Source details +func (s *Sources) GetSourceNylas(ctx context.Context, request operations.GetSourceNylasRequest, opts ...operations.Option) (*operations.GetSourceNylasResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceK6Cloud", + OperationID: "getSourceNylas", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58513,7 +69271,7 @@ func (s *Sources) GetSourceK6Cloud(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceK6CloudResponse{ + res := &operations.GetSourceNylasResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58550,11 +69308,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) { +// 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: "getSourceKlarna", + OperationID: "getSourceNytimes", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58627,7 +69385,7 @@ func (s *Sources) GetSourceKlarna(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceKlarnaResponse{ + res := &operations.GetSourceNytimesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58664,11 +69422,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) { +// 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: "getSourceKlaviyo", + OperationID: "getSourceOkta", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58741,7 +69499,7 @@ func (s *Sources) GetSourceKlaviyo(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceKlaviyoResponse{ + res := &operations.GetSourceOktaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58778,11 +69536,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) { +// 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: "getSourceKyve", + OperationID: "getSourceOmnisend", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58855,7 +69613,7 @@ func (s *Sources) GetSourceKyve(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceKyveResponse{ + res := &operations.GetSourceOmnisendResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -58892,11 +69650,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) { +// 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: "getSourceLaunchdarkly", + OperationID: "getSourceOnesignal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -58969,7 +69727,7 @@ func (s *Sources) GetSourceLaunchdarkly(ctx context.Context, request operations. } } - res := &operations.GetSourceLaunchdarklyResponse{ + res := &operations.GetSourceOnesignalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59006,11 +69764,11 @@ func (s *Sources) GetSourceLaunchdarkly(ctx context.Context, request operations. } -// GetSourceLeadfeeder - Get Source details -func (s *Sources) GetSourceLeadfeeder(ctx context.Context, request operations.GetSourceLeadfeederRequest, opts ...operations.Option) (*operations.GetSourceLeadfeederResponse, 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: "getSourceLeadfeeder", + OperationID: "getSourceOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59083,7 +69841,7 @@ func (s *Sources) GetSourceLeadfeeder(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceLeadfeederResponse{ + res := &operations.GetSourceOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59120,11 +69878,11 @@ func (s *Sources) GetSourceLeadfeeder(ctx context.Context, request operations.Ge } -// GetSourceLemlist - Get Source details -func (s *Sources) GetSourceLemlist(ctx context.Context, request operations.GetSourceLemlistRequest, opts ...operations.Option) (*operations.GetSourceLemlistResponse, 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: "getSourceLemlist", + OperationID: "getSourceOrb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59197,7 +69955,7 @@ func (s *Sources) GetSourceLemlist(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceLemlistResponse{ + res := &operations.GetSourceOrbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59234,11 +69992,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) { +// 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: "getSourceLeverHiring", + OperationID: "getSourceOrbit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59311,7 +70069,7 @@ func (s *Sources) GetSourceLeverHiring(ctx context.Context, request operations.G } } - res := &operations.GetSourceLeverHiringResponse{ + res := &operations.GetSourceOrbitResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59348,11 +70106,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) { +// 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: "getSourceLinkedinAds", + OperationID: "getSourceOutbrainAmplify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59425,7 +70183,7 @@ func (s *Sources) GetSourceLinkedinAds(ctx context.Context, request operations.G } } - res := &operations.GetSourceLinkedinAdsResponse{ + res := &operations.GetSourceOutbrainAmplifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59462,11 +70220,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) { +// 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: "getSourceLinkedinPages", + OperationID: "getSourceOutreach", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59539,7 +70297,7 @@ func (s *Sources) GetSourceLinkedinPages(ctx context.Context, request operations } } - res := &operations.GetSourceLinkedinPagesResponse{ + res := &operations.GetSourceOutreachResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59576,11 +70334,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) { +// 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: "getSourceLinnworks", + OperationID: "getSourcePaypalTransaction", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59653,7 +70411,7 @@ func (s *Sources) GetSourceLinnworks(ctx context.Context, request operations.Get } } - res := &operations.GetSourceLinnworksResponse{ + res := &operations.GetSourcePaypalTransactionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59690,11 +70448,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) { +// 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: "getSourceLokalise", + OperationID: "getSourcePaystack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59767,7 +70525,7 @@ func (s *Sources) GetSourceLokalise(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceLokaliseResponse{ + res := &operations.GetSourcePaystackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59804,11 +70562,11 @@ func (s *Sources) GetSourceLokalise(ctx context.Context, request operations.GetS } -// GetSourceLooker - Get Source details -func (s *Sources) GetSourceLooker(ctx context.Context, request operations.GetSourceLookerRequest, opts ...operations.Option) (*operations.GetSourceLookerResponse, 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: "getSourceLooker", + OperationID: "getSourcePendo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59881,7 +70639,7 @@ func (s *Sources) GetSourceLooker(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceLookerResponse{ + res := &operations.GetSourcePendoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59918,11 +70676,11 @@ func (s *Sources) GetSourceLooker(ctx context.Context, request operations.GetSou } -// GetSourceLuma - Get Source details -func (s *Sources) GetSourceLuma(ctx context.Context, request operations.GetSourceLumaRequest, opts ...operations.Option) (*operations.GetSourceLumaResponse, 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: "getSourceLuma", + OperationID: "getSourcePennylane", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -59995,7 +70753,7 @@ func (s *Sources) GetSourceLuma(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceLumaResponse{ + res := &operations.GetSourcePennylaneResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60032,11 +70790,11 @@ func (s *Sources) GetSourceLuma(ctx context.Context, request operations.GetSourc } -// GetSourceMailchimp - Get Source details -func (s *Sources) GetSourceMailchimp(ctx context.Context, request operations.GetSourceMailchimpRequest, opts ...operations.Option) (*operations.GetSourceMailchimpResponse, 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: "getSourceMailchimp", + OperationID: "getSourcePersistiq", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60109,7 +70867,7 @@ func (s *Sources) GetSourceMailchimp(ctx context.Context, request operations.Get } } - res := &operations.GetSourceMailchimpResponse{ + res := &operations.GetSourcePersistiqResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60146,11 +70904,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) { +// 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: "getSourceMailgun", + OperationID: "getSourcePexelsApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60223,7 +70981,7 @@ func (s *Sources) GetSourceMailgun(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceMailgunResponse{ + res := &operations.GetSourcePexelsAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60260,11 +71018,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) { +// GetSourcePicqer - Get Source details +func (s *Sources) GetSourcePicqer(ctx context.Context, request operations.GetSourcePicqerRequest, opts ...operations.Option) (*operations.GetSourcePicqerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMailjetSms", + OperationID: "getSourcePicqer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60337,7 +71095,7 @@ func (s *Sources) GetSourceMailjetSms(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceMailjetSmsResponse{ + res := &operations.GetSourcePicqerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60374,11 +71132,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) { +// 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: "getSourceMarketo", + OperationID: "getSourcePinterest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60451,7 +71209,7 @@ func (s *Sources) GetSourceMarketo(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceMarketoResponse{ + res := &operations.GetSourcePinterestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60488,11 +71246,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) { +// 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: "getSourceMetabase", + OperationID: "getSourcePipedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60565,7 +71323,7 @@ func (s *Sources) GetSourceMetabase(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceMetabaseResponse{ + res := &operations.GetSourcePipedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60602,11 +71360,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) { +// GetSourcePiwik - Get Source details +func (s *Sources) GetSourcePiwik(ctx context.Context, request operations.GetSourcePiwikRequest, opts ...operations.Option) (*operations.GetSourcePiwikResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceMicrosoftOnedrive", + OperationID: "getSourcePiwik", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60679,7 +71437,7 @@ func (s *Sources) GetSourceMicrosoftOnedrive(ctx context.Context, request operat } } - res := &operations.GetSourceMicrosoftOnedriveResponse{ + res := &operations.GetSourcePiwikResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60716,11 +71474,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) { +// 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: "getSourceMicrosoftSharepoint", + OperationID: "getSourcePlanhat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60793,7 +71551,7 @@ func (s *Sources) GetSourceMicrosoftSharepoint(ctx context.Context, request oper } } - res := &operations.GetSourceMicrosoftSharepointResponse{ + res := &operations.GetSourcePlanhatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60830,11 +71588,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) { +// 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: "getSourceMicrosoftTeams", + OperationID: "getSourcePocket", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -60907,7 +71665,7 @@ func (s *Sources) GetSourceMicrosoftTeams(ctx context.Context, request operation } } - res := &operations.GetSourceMicrosoftTeamsResponse{ + res := &operations.GetSourcePocketResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -60944,11 +71702,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) { +// 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: "getSourceMixpanel", + OperationID: "getSourcePokeapi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61021,7 +71779,7 @@ func (s *Sources) GetSourceMixpanel(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceMixpanelResponse{ + res := &operations.GetSourcePokeapiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61058,11 +71816,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) { +// 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: "getSourceMonday", + OperationID: "getSourcePolygonStockApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61135,7 +71893,7 @@ func (s *Sources) GetSourceMonday(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceMondayResponse{ + res := &operations.GetSourcePolygonStockAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61172,11 +71930,11 @@ func (s *Sources) GetSourceMonday(ctx context.Context, request operations.GetSou } -// GetSourceMongodbV2 - Get Source details -func (s *Sources) GetSourceMongodbV2(ctx context.Context, request operations.GetSourceMongodbV2Request, opts ...operations.Option) (*operations.GetSourceMongodbV2Response, 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: "getSourceMongodbV2", + OperationID: "getSourcePostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61249,7 +72007,7 @@ func (s *Sources) GetSourceMongodbV2(ctx context.Context, request operations.Get } } - res := &operations.GetSourceMongodbV2Response{ + res := &operations.GetSourcePostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61286,11 +72044,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) { +// 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: "getSourceMssql", + OperationID: "getSourcePosthog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61363,7 +72121,7 @@ func (s *Sources) GetSourceMssql(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceMssqlResponse{ + res := &operations.GetSourcePosthogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61400,11 +72158,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) { +// 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: "getSourceMyHours", + OperationID: "getSourcePostmarkapp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61477,7 +72235,7 @@ func (s *Sources) GetSourceMyHours(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceMyHoursResponse{ + res := &operations.GetSourcePostmarkappResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61514,11 +72272,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) { +// 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: "getSourceMysql", + OperationID: "getSourcePrestashop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61591,7 +72349,7 @@ func (s *Sources) GetSourceMysql(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceMysqlResponse{ + res := &operations.GetSourcePrestashopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61628,11 +72386,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) { +// GetSourceProductboard - Get Source details +func (s *Sources) GetSourceProductboard(ctx context.Context, request operations.GetSourceProductboardRequest, opts ...operations.Option) (*operations.GetSourceProductboardResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceNetsuite", + OperationID: "getSourceProductboard", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61705,7 +72463,7 @@ func (s *Sources) GetSourceNetsuite(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceNetsuiteResponse{ + res := &operations.GetSourceProductboardResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61742,11 +72500,11 @@ func (s *Sources) GetSourceNetsuite(ctx context.Context, request operations.GetS } -// GetSourceNorthpassLms - Get Source details -func (s *Sources) GetSourceNorthpassLms(ctx context.Context, request operations.GetSourceNorthpassLmsRequest, opts ...operations.Option) (*operations.GetSourceNorthpassLmsResponse, error) { +// GetSourceProductive - Get Source details +func (s *Sources) GetSourceProductive(ctx context.Context, request operations.GetSourceProductiveRequest, opts ...operations.Option) (*operations.GetSourceProductiveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceNorthpassLms", + OperationID: "getSourceProductive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61819,7 +72577,7 @@ func (s *Sources) GetSourceNorthpassLms(ctx context.Context, request operations. } } - res := &operations.GetSourceNorthpassLmsResponse{ + res := &operations.GetSourceProductiveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61856,11 +72614,11 @@ func (s *Sources) GetSourceNorthpassLms(ctx context.Context, request operations. } -// GetSourceNotion - Get Source details -func (s *Sources) GetSourceNotion(ctx context.Context, request operations.GetSourceNotionRequest, opts ...operations.Option) (*operations.GetSourceNotionResponse, 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: "getSourceNotion", + OperationID: "getSourcePypi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -61933,7 +72691,7 @@ func (s *Sources) GetSourceNotion(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceNotionResponse{ + res := &operations.GetSourcePypiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -61970,11 +72728,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) { +// 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: "getSourceNytimes", + OperationID: "getSourceQualaroo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62047,7 +72805,7 @@ func (s *Sources) GetSourceNytimes(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceNytimesResponse{ + res := &operations.GetSourceQualarooResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62084,11 +72842,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) { +// 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: "getSourceOkta", + OperationID: "getSourceRailz", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62161,7 +72919,7 @@ func (s *Sources) GetSourceOkta(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceOktaResponse{ + res := &operations.GetSourceRailzResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62198,11 +72956,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) { +// 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: "getSourceOmnisend", + OperationID: "getSourceRecharge", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62275,7 +73033,7 @@ func (s *Sources) GetSourceOmnisend(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceOmnisendResponse{ + res := &operations.GetSourceRechargeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62312,11 +73070,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) { +// 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: "getSourceOnesignal", + OperationID: "getSourceRecreation", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62389,7 +73147,7 @@ func (s *Sources) GetSourceOnesignal(ctx context.Context, request operations.Get } } - res := &operations.GetSourceOnesignalResponse{ + res := &operations.GetSourceRecreationResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62426,11 +73184,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) { +// 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: "getSourceOracle", + OperationID: "getSourceRecruitee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62503,7 +73261,7 @@ func (s *Sources) GetSourceOracle(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceOracleResponse{ + res := &operations.GetSourceRecruiteeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62540,11 +73298,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) { +// 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: "getSourceOrb", + OperationID: "getSourceRecurly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62617,7 +73375,7 @@ func (s *Sources) GetSourceOrb(ctx context.Context, request operations.GetSource } } - res := &operations.GetSourceOrbResponse{ + res := &operations.GetSourceRecurlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62654,11 +73412,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) { +// 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: "getSourceOrbit", + OperationID: "getSourceReddit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62731,7 +73489,7 @@ func (s *Sources) GetSourceOrbit(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceOrbitResponse{ + res := &operations.GetSourceRedditResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62768,11 +73526,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) { +// 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: "getSourceOutbrainAmplify", + OperationID: "getSourceRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62845,7 +73603,7 @@ func (s *Sources) GetSourceOutbrainAmplify(ctx context.Context, request operatio } } - res := &operations.GetSourceOutbrainAmplifyResponse{ + res := &operations.GetSourceRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62882,11 +73640,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) { +// 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: "getSourceOutreach", + OperationID: "getSourceRetently", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -62959,7 +73717,7 @@ func (s *Sources) GetSourceOutreach(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceOutreachResponse{ + res := &operations.GetSourceRetentlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -62996,11 +73754,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) { +// 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: "getSourcePaypalTransaction", + OperationID: "getSourceRkiCovid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63073,7 +73831,7 @@ func (s *Sources) GetSourcePaypalTransaction(ctx context.Context, request operat } } - res := &operations.GetSourcePaypalTransactionResponse{ + res := &operations.GetSourceRkiCovidResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63110,11 +73868,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) { +// 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: "getSourcePaystack", + OperationID: "getSourceRss", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63187,7 +73945,7 @@ func (s *Sources) GetSourcePaystack(ctx context.Context, request operations.GetS } } - res := &operations.GetSourcePaystackResponse{ + res := &operations.GetSourceRssResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63224,11 +73982,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) { +// 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: "getSourcePendo", + OperationID: "getSourceS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63301,7 +74059,7 @@ func (s *Sources) GetSourcePendo(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourcePendoResponse{ + res := &operations.GetSourceS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63338,11 +74096,11 @@ func (s *Sources) GetSourcePendo(ctx context.Context, request operations.GetSour } -// GetSourcePennylane - Get Source details -func (s *Sources) GetSourcePennylane(ctx context.Context, request operations.GetSourcePennylaneRequest, opts ...operations.Option) (*operations.GetSourcePennylaneResponse, 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: "getSourcePennylane", + OperationID: "getSourceSalesforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63415,7 +74173,7 @@ func (s *Sources) GetSourcePennylane(ctx context.Context, request operations.Get } } - res := &operations.GetSourcePennylaneResponse{ + res := &operations.GetSourceSalesforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63452,11 +74210,11 @@ func (s *Sources) GetSourcePennylane(ctx context.Context, request operations.Get } -// GetSourcePersistiq - Get Source details -func (s *Sources) GetSourcePersistiq(ctx context.Context, request operations.GetSourcePersistiqRequest, opts ...operations.Option) (*operations.GetSourcePersistiqResponse, 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: "getSourcePersistiq", + OperationID: "getSourceSalesloft", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63529,7 +74287,7 @@ func (s *Sources) GetSourcePersistiq(ctx context.Context, request operations.Get } } - res := &operations.GetSourcePersistiqResponse{ + res := &operations.GetSourceSalesloftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63566,11 +74324,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) { +// 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: "getSourcePexelsApi", + OperationID: "getSourceSapFieldglass", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63643,7 +74401,7 @@ func (s *Sources) GetSourcePexelsAPI(ctx context.Context, request operations.Get } } - res := &operations.GetSourcePexelsAPIResponse{ + res := &operations.GetSourceSapFieldglassResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63680,11 +74438,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) { +// 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: "getSourcePinterest", + OperationID: "getSourceSavvycal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63757,7 +74515,7 @@ func (s *Sources) GetSourcePinterest(ctx context.Context, request operations.Get } } - res := &operations.GetSourcePinterestResponse{ + res := &operations.GetSourceSavvycalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63794,11 +74552,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) { +// 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: "getSourcePipedrive", + OperationID: "getSourceScryfall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63871,7 +74629,7 @@ func (s *Sources) GetSourcePipedrive(ctx context.Context, request operations.Get } } - res := &operations.GetSourcePipedriveResponse{ + res := &operations.GetSourceScryfallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -63908,11 +74666,11 @@ func (s *Sources) GetSourcePipedrive(ctx context.Context, request operations.Get } -// GetSourcePlanhat - Get Source details -func (s *Sources) GetSourcePlanhat(ctx context.Context, request operations.GetSourcePlanhatRequest, opts ...operations.Option) (*operations.GetSourcePlanhatResponse, 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: "getSourcePlanhat", + OperationID: "getSourceSecoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -63985,7 +74743,7 @@ func (s *Sources) GetSourcePlanhat(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourcePlanhatResponse{ + res := &operations.GetSourceSecodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64022,11 +74780,11 @@ func (s *Sources) GetSourcePlanhat(ctx context.Context, request operations.GetSo } -// GetSourcePocket - Get Source details -func (s *Sources) GetSourcePocket(ctx context.Context, request operations.GetSourcePocketRequest, opts ...operations.Option) (*operations.GetSourcePocketResponse, error) { +// 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: "getSourcePocket", + OperationID: "getSourceSendgrid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64099,7 +74857,7 @@ func (s *Sources) GetSourcePocket(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourcePocketResponse{ + res := &operations.GetSourceSendgridResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64136,11 +74894,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) { +// 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: "getSourcePokeapi", + OperationID: "getSourceSendinblue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64213,7 +74971,7 @@ func (s *Sources) GetSourcePokeapi(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourcePokeapiResponse{ + res := &operations.GetSourceSendinblueResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64250,11 +75008,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) { +// 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: "getSourcePolygonStockApi", + OperationID: "getSourceSenseforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64327,7 +75085,7 @@ func (s *Sources) GetSourcePolygonStockAPI(ctx context.Context, request operatio } } - res := &operations.GetSourcePolygonStockAPIResponse{ + res := &operations.GetSourceSenseforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64364,11 +75122,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) { +// 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: "getSourcePostgres", + OperationID: "getSourceSentry", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64441,7 +75199,7 @@ func (s *Sources) GetSourcePostgres(ctx context.Context, request operations.GetS } } - res := &operations.GetSourcePostgresResponse{ + res := &operations.GetSourceSentryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64478,11 +75236,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) { +// 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: "getSourcePosthog", + OperationID: "getSourceSftp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64555,7 +75313,7 @@ func (s *Sources) GetSourcePosthog(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourcePosthogResponse{ + res := &operations.GetSourceSftpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64592,11 +75350,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) { +// 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: "getSourcePostmarkapp", + OperationID: "getSourceSftpBulk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64669,7 +75427,7 @@ func (s *Sources) GetSourcePostmarkapp(ctx context.Context, request operations.G } } - res := &operations.GetSourcePostmarkappResponse{ + res := &operations.GetSourceSftpBulkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64706,11 +75464,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) { +// 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: "getSourcePrestashop", + OperationID: "getSourceShopify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64783,7 +75541,7 @@ func (s *Sources) GetSourcePrestashop(ctx context.Context, request operations.Ge } } - res := &operations.GetSourcePrestashopResponse{ + res := &operations.GetSourceShopifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64820,11 +75578,11 @@ func (s *Sources) GetSourcePrestashop(ctx context.Context, request operations.Ge } -// GetSourcePypi - Get Source details -func (s *Sources) GetSourcePypi(ctx context.Context, request operations.GetSourcePypiRequest, opts ...operations.Option) (*operations.GetSourcePypiResponse, error) { +// GetSourceShortcut - Get Source details +func (s *Sources) GetSourceShortcut(ctx context.Context, request operations.GetSourceShortcutRequest, opts ...operations.Option) (*operations.GetSourceShortcutResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourcePypi", + OperationID: "getSourceShortcut", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -64897,7 +75655,7 @@ func (s *Sources) GetSourcePypi(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourcePypiResponse{ + res := &operations.GetSourceShortcutResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -64934,11 +75692,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) { +// 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: "getSourceQualaroo", + OperationID: "getSourceShortio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65011,7 +75769,7 @@ func (s *Sources) GetSourceQualaroo(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceQualarooResponse{ + res := &operations.GetSourceShortioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65048,11 +75806,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) { +// 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: "getSourceRailz", + OperationID: "getSourceSlack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65125,7 +75883,7 @@ func (s *Sources) GetSourceRailz(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceRailzResponse{ + res := &operations.GetSourceSlackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65162,11 +75920,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) { +// 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: "getSourceRecharge", + OperationID: "getSourceSmaily", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65239,7 +75997,7 @@ func (s *Sources) GetSourceRecharge(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceRechargeResponse{ + res := &operations.GetSourceSmailyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65276,11 +76034,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) { +// 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: "getSourceRecreation", + OperationID: "getSourceSmartengage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65353,7 +76111,7 @@ func (s *Sources) GetSourceRecreation(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceRecreationResponse{ + res := &operations.GetSourceSmartengageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65390,11 +76148,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) { +// 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: "getSourceRecruitee", + OperationID: "getSourceSmartsheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65467,7 +76225,7 @@ func (s *Sources) GetSourceRecruitee(ctx context.Context, request operations.Get } } - res := &operations.GetSourceRecruiteeResponse{ + res := &operations.GetSourceSmartsheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65504,11 +76262,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) { +// 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: "getSourceRecurly", + OperationID: "getSourceSnapchatMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65581,7 +76339,7 @@ func (s *Sources) GetSourceRecurly(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceRecurlyResponse{ + res := &operations.GetSourceSnapchatMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65618,11 +76376,11 @@ func (s *Sources) GetSourceRecurly(ctx context.Context, request operations.GetSo } -// GetSourceReddit - Get Source details -func (s *Sources) GetSourceReddit(ctx context.Context, request operations.GetSourceRedditRequest, opts ...operations.Option) (*operations.GetSourceRedditResponse, error) { +// 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: "getSourceReddit", + OperationID: "getSourceSnowflake", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65695,7 +76453,7 @@ func (s *Sources) GetSourceReddit(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceRedditResponse{ + res := &operations.GetSourceSnowflakeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65732,11 +76490,11 @@ func (s *Sources) GetSourceReddit(ctx context.Context, request operations.GetSou } -// GetSourceRedshift - Get Source details -func (s *Sources) GetSourceRedshift(ctx context.Context, request operations.GetSourceRedshiftRequest, opts ...operations.Option) (*operations.GetSourceRedshiftResponse, error) { +// 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: "getSourceRedshift", + OperationID: "getSourceSonarCloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65809,7 +76567,7 @@ func (s *Sources) GetSourceRedshift(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceRedshiftResponse{ + res := &operations.GetSourceSonarCloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65846,11 +76604,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) { +// 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: "getSourceRetently", + OperationID: "getSourceSpacexApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -65923,7 +76681,7 @@ func (s *Sources) GetSourceRetently(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceRetentlyResponse{ + res := &operations.GetSourceSpacexAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -65960,11 +76718,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) { +// 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: "getSourceRkiCovid", + OperationID: "getSourceSquare", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66037,7 +76795,7 @@ func (s *Sources) GetSourceRkiCovid(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceRkiCovidResponse{ + res := &operations.GetSourceSquareResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66074,11 +76832,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) { +// 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: "getSourceRss", + OperationID: "getSourceStrava", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66151,7 +76909,7 @@ func (s *Sources) GetSourceRss(ctx context.Context, request operations.GetSource } } - res := &operations.GetSourceRssResponse{ + res := &operations.GetSourceStravaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66188,11 +76946,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) { +// 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: "getSourceS3", + OperationID: "getSourceStripe", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66265,7 +77023,7 @@ func (s *Sources) GetSourceS3(ctx context.Context, request operations.GetSourceS } } - res := &operations.GetSourceS3Response{ + res := &operations.GetSourceStripeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66302,11 +77060,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) { +// 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: "getSourceSalesforce", + OperationID: "getSourceSurveySparrow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66379,7 +77137,7 @@ func (s *Sources) GetSourceSalesforce(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceSalesforceResponse{ + res := &operations.GetSourceSurveySparrowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66416,11 +77174,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) { +// 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: "getSourceSalesloft", + OperationID: "getSourceSurveymonkey", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66493,7 +77251,7 @@ func (s *Sources) GetSourceSalesloft(ctx context.Context, request operations.Get } } - res := &operations.GetSourceSalesloftResponse{ + res := &operations.GetSourceSurveymonkeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66530,11 +77288,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) { +// GetSourceSurvicate - Get Source details +func (s *Sources) GetSourceSurvicate(ctx context.Context, request operations.GetSourceSurvicateRequest, opts ...operations.Option) (*operations.GetSourceSurvicateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSapFieldglass", + OperationID: "getSourceSurvicate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66607,7 +77365,7 @@ func (s *Sources) GetSourceSapFieldglass(ctx context.Context, request operations } } - res := &operations.GetSourceSapFieldglassResponse{ + res := &operations.GetSourceSurvicateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66644,11 +77402,11 @@ func (s *Sources) GetSourceSapFieldglass(ctx context.Context, request operations } -// GetSourceSavvycal - Get Source details -func (s *Sources) GetSourceSavvycal(ctx context.Context, request operations.GetSourceSavvycalRequest, opts ...operations.Option) (*operations.GetSourceSavvycalResponse, error) { +// GetSourceTeamwork - Get Source details +func (s *Sources) GetSourceTeamwork(ctx context.Context, request operations.GetSourceTeamworkRequest, opts ...operations.Option) (*operations.GetSourceTeamworkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSavvycal", + OperationID: "getSourceTeamwork", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66721,7 +77479,7 @@ func (s *Sources) GetSourceSavvycal(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceSavvycalResponse{ + res := &operations.GetSourceTeamworkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66758,11 +77516,11 @@ func (s *Sources) GetSourceSavvycal(ctx context.Context, request operations.GetS } -// GetSourceScryfall - Get Source details -func (s *Sources) GetSourceScryfall(ctx context.Context, request operations.GetSourceScryfallRequest, opts ...operations.Option) (*operations.GetSourceScryfallResponse, error) { +// 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: "getSourceScryfall", + OperationID: "getSourceTempo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66835,7 +77593,7 @@ func (s *Sources) GetSourceScryfall(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceScryfallResponse{ + res := &operations.GetSourceTempoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66872,11 +77630,11 @@ func (s *Sources) GetSourceScryfall(ctx context.Context, request operations.GetS } -// GetSourceSecoda - Get Source details -func (s *Sources) GetSourceSecoda(ctx context.Context, request operations.GetSourceSecodaRequest, opts ...operations.Option) (*operations.GetSourceSecodaResponse, error) { +// 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: "getSourceSecoda", + OperationID: "getSourceTheGuardianApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -66949,7 +77707,7 @@ func (s *Sources) GetSourceSecoda(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceSecodaResponse{ + res := &operations.GetSourceTheGuardianAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -66986,11 +77744,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) { +// 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: "getSourceSendgrid", + OperationID: "getSourceTiktokMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67063,7 +77821,7 @@ func (s *Sources) GetSourceSendgrid(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceSendgridResponse{ + res := &operations.GetSourceTiktokMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67100,11 +77858,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) { +// 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: "getSourceSendinblue", + OperationID: "getSourceTrello", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67177,7 +77935,7 @@ func (s *Sources) GetSourceSendinblue(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceSendinblueResponse{ + res := &operations.GetSourceTrelloResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67214,11 +77972,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) { +// 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: "getSourceSenseforce", + OperationID: "getSourceTrustpilot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67291,7 +78049,7 @@ func (s *Sources) GetSourceSenseforce(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceSenseforceResponse{ + res := &operations.GetSourceTrustpilotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67328,11 +78086,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) { +// 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: "getSourceSentry", + OperationID: "getSourceTvmazeSchedule", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67405,7 +78163,7 @@ func (s *Sources) GetSourceSentry(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceSentryResponse{ + res := &operations.GetSourceTvmazeScheduleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67442,11 +78200,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) { +// 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: "getSourceSftp", + OperationID: "getSourceTwilio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67519,7 +78277,7 @@ func (s *Sources) GetSourceSftp(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceSftpResponse{ + res := &operations.GetSourceTwilioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67556,11 +78314,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) { +// 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: "getSourceSftpBulk", + OperationID: "getSourceTwilioTaskrouter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67633,7 +78391,7 @@ func (s *Sources) GetSourceSftpBulk(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceSftpBulkResponse{ + res := &operations.GetSourceTwilioTaskrouterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67670,11 +78428,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) { +// 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: "getSourceShopify", + OperationID: "getSourceTwitter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67747,7 +78505,7 @@ func (s *Sources) GetSourceShopify(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceShopifyResponse{ + res := &operations.GetSourceTwitterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67784,11 +78542,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) { +// 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: "getSourceShortio", + OperationID: "getSourceTypeform", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67861,7 +78619,7 @@ func (s *Sources) GetSourceShortio(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceShortioResponse{ + res := &operations.GetSourceTypeformResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -67898,11 +78656,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) { +// 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: "getSourceSlack", + OperationID: "getSourceUsCensus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -67975,7 +78733,7 @@ func (s *Sources) GetSourceSlack(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceSlackResponse{ + res := &operations.GetSourceUsCensusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68012,11 +78770,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) { +// 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: "getSourceSmaily", + OperationID: "getSourceVantage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68089,7 +78847,7 @@ func (s *Sources) GetSourceSmaily(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceSmailyResponse{ + res := &operations.GetSourceVantageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68126,11 +78884,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) { +// 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: "getSourceSmartengage", + OperationID: "getSourceWebflow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68203,7 +78961,7 @@ func (s *Sources) GetSourceSmartengage(ctx context.Context, request operations.G } } - res := &operations.GetSourceSmartengageResponse{ + res := &operations.GetSourceWebflowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68240,11 +78998,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) { +// GetSourceWhenIWork - Get Source details +func (s *Sources) GetSourceWhenIWork(ctx context.Context, request operations.GetSourceWhenIWorkRequest, opts ...operations.Option) (*operations.GetSourceWhenIWorkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceSmartsheets", + OperationID: "getSourceWhenIWork", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68317,7 +79075,7 @@ func (s *Sources) GetSourceSmartsheets(ctx context.Context, request operations.G } } - res := &operations.GetSourceSmartsheetsResponse{ + res := &operations.GetSourceWhenIWorkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68354,11 +79112,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) { +// 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: "getSourceSnapchatMarketing", + OperationID: "getSourceWhiskyHunter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68431,7 +79189,7 @@ func (s *Sources) GetSourceSnapchatMarketing(ctx context.Context, request operat } } - res := &operations.GetSourceSnapchatMarketingResponse{ + res := &operations.GetSourceWhiskyHunterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68468,11 +79226,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) { +// 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: "getSourceSnowflake", + OperationID: "getSourceWikipediaPageviews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68545,7 +79303,7 @@ func (s *Sources) GetSourceSnowflake(ctx context.Context, request operations.Get } } - res := &operations.GetSourceSnowflakeResponse{ + res := &operations.GetSourceWikipediaPageviewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68582,11 +79340,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) { +// 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: "getSourceSonarCloud", + OperationID: "getSourceWoocommerce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68659,7 +79417,7 @@ func (s *Sources) GetSourceSonarCloud(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceSonarCloudResponse{ + res := &operations.GetSourceWoocommerceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68696,11 +79454,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) { +// 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: "getSourceSpacexApi", + OperationID: "getSourceXkcd", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68773,7 +79531,7 @@ func (s *Sources) GetSourceSpacexAPI(ctx context.Context, request operations.Get } } - res := &operations.GetSourceSpacexAPIResponse{ + res := &operations.GetSourceXkcdResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68810,11 +79568,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) { +// 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: "getSourceSquare", + OperationID: "getSourceYandexMetrica", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -68887,7 +79645,7 @@ func (s *Sources) GetSourceSquare(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceSquareResponse{ + res := &operations.GetSourceYandexMetricaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -68924,11 +79682,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) { +// 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: "getSourceStrava", + OperationID: "getSourceYotpo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69001,7 +79759,7 @@ func (s *Sources) GetSourceStrava(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceStravaResponse{ + res := &operations.GetSourceYotpoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69038,11 +79796,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) { +// 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: "getSourceStripe", + OperationID: "getSourceYoutubeAnalytics", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69115,7 +79873,7 @@ func (s *Sources) GetSourceStripe(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceStripeResponse{ + res := &operations.GetSourceYoutubeAnalyticsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69152,11 +79910,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) { +// 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: "getSourceSurveySparrow", + OperationID: "getSourceZendeskChat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69229,7 +79987,7 @@ func (s *Sources) GetSourceSurveySparrow(ctx context.Context, request operations } } - res := &operations.GetSourceSurveySparrowResponse{ + res := &operations.GetSourceZendeskChatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69266,11 +80024,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) { +// 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: "getSourceSurveymonkey", + OperationID: "getSourceZendeskSunshine", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69343,7 +80101,7 @@ func (s *Sources) GetSourceSurveymonkey(ctx context.Context, request operations. } } - res := &operations.GetSourceSurveymonkeyResponse{ + res := &operations.GetSourceZendeskSunshineResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69380,11 +80138,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) { +// 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: "getSourceTempo", + OperationID: "getSourceZendeskSupport", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69457,7 +80215,7 @@ func (s *Sources) GetSourceTempo(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceTempoResponse{ + res := &operations.GetSourceZendeskSupportResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69494,11 +80252,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) { +// 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: "getSourceTheGuardianApi", + OperationID: "getSourceZendeskTalk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69571,7 +80329,7 @@ func (s *Sources) GetSourceTheGuardianAPI(ctx context.Context, request operation } } - res := &operations.GetSourceTheGuardianAPIResponse{ + res := &operations.GetSourceZendeskTalkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69608,11 +80366,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) { +// 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: "getSourceTiktokMarketing", + OperationID: "getSourceZenloop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69685,7 +80443,7 @@ func (s *Sources) GetSourceTiktokMarketing(ctx context.Context, request operatio } } - res := &operations.GetSourceTiktokMarketingResponse{ + res := &operations.GetSourceZenloopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69722,11 +80480,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) { +// 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: "getSourceTrello", + OperationID: "getSourceZohoCrm", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69799,7 +80557,7 @@ func (s *Sources) GetSourceTrello(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceTrelloResponse{ + res := &operations.GetSourceZohoCrmResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69836,11 +80594,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) { +// 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: "getSourceTrustpilot", + OperationID: "getSourceZoom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69913,7 +80671,7 @@ func (s *Sources) GetSourceTrustpilot(ctx context.Context, request operations.Ge } } - res := &operations.GetSourceTrustpilotResponse{ + res := &operations.GetSourceZoomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69950,11 +80708,16 @@ 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) { +// 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: "getSourceTvmazeSchedule", + OperationID: "initiateOAuth", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69971,11 +80734,16 @@ func (s *Sources) GetSourceTvmazeSchedule(ctx context.Context, request operation } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + 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 @@ -69987,12 +80755,13 @@ func (s *Sources) GetSourceTvmazeSchedule(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", 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", "application/json") + 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 @@ -70027,7 +80796,7 @@ func (s *Sources) GetSourceTvmazeSchedule(ctx context.Context, request operation } } - res := &operations.GetSourceTvmazeScheduleResponse{ + res := &operations.InitiateOAuthResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70042,20 +80811,10 @@ func (s *Sources) GetSourceTvmazeSchedule(ctx context.Context, request operation 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: + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: default: return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } @@ -70064,11 +80823,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) { +// 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: "getSourceTwilio", + OperationID: "listSources", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70085,7 +80844,7 @@ func (s *Sources) GetSourceTwilio(ctx context.Context, request operations.GetSou } 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) } @@ -70108,6 +80867,10 @@ func (s *Sources) GetSourceTwilio(ctx context.Context, request operations.GetSou 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 } @@ -70141,7 +80904,7 @@ func (s *Sources) GetSourceTwilio(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceTwilioResponse{ + res := &operations.ListSourcesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70158,12 +80921,12 @@ func (s *Sources) GetSourceTwilio(ctx context.Context, request operations.GetSou case httpRes.StatusCode == 200: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - var out shared.SourceResponse + var out shared.SourcesResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.SourceResponse = &out + 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) } @@ -70178,11 +80941,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) { +// 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: "getSourceTwilioTaskrouter", + OperationID: "patchSource", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70204,6 +80967,11 @@ func (s *Sources) GetSourceTwilioTaskrouter(ctx context.Context, request operati 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 @@ -70215,12 +80983,13 @@ func (s *Sources) GetSourceTwilioTaskrouter(ctx context.Context, request operati defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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 @@ -70255,7 +81024,7 @@ func (s *Sources) GetSourceTwilioTaskrouter(ctx context.Context, request operati } } - res := &operations.GetSourceTwilioTaskrouterResponse{ + res := &operations.PatchSourceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70292,11 +81061,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) { +// 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: "getSourceTwitter", + OperationID: "putSource", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70318,6 +81087,11 @@ func (s *Sources) GetSourceTwitter(ctx context.Context, request operations.GetSo 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 @@ -70329,12 +81103,13 @@ func (s *Sources) GetSourceTwitter(ctx context.Context, request operations.GetSo defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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 @@ -70369,7 +81144,7 @@ func (s *Sources) GetSourceTwitter(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceTwitterResponse{ + res := &operations.PutSourceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70406,11 +81181,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) { +// PutSource7shifts - Update a Source fully +func (s *Sources) PutSource7shifts(ctx context.Context, request operations.PutSource7shiftsRequest, opts ...operations.Option) (*operations.PutSource7shiftsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceTypeform", + OperationID: "putSource7shifts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70432,6 +81207,11 @@ func (s *Sources) GetSourceTypeform(ctx context.Context, request operations.GetS return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Source7shiftsPutRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -70443,12 +81223,13 @@ func (s *Sources) GetSourceTypeform(ctx context.Context, request operations.GetS defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -70483,7 +81264,7 @@ func (s *Sources) GetSourceTypeform(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceTypeformResponse{ + res := &operations.PutSource7shiftsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70497,18 +81278,8 @@ func (s *Sources) GetSourceTypeform(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: @@ -70520,11 +81291,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) { +// 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: "getSourceUsCensus", + OperationID: "putSourceAha", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70546,6 +81317,11 @@ func (s *Sources) GetSourceUsCensus(ctx context.Context, request operations.GetS 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 @@ -70557,12 +81333,13 @@ func (s *Sources) GetSourceUsCensus(ctx context.Context, request operations.GetS defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -70597,7 +81374,7 @@ func (s *Sources) GetSourceUsCensus(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceUsCensusResponse{ + res := &operations.PutSourceAhaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70611,18 +81388,8 @@ func (s *Sources) GetSourceUsCensus(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: @@ -70634,11 +81401,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) { +// 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: "getSourceVantage", + OperationID: "putSourceAirbyte", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70660,6 +81427,11 @@ func (s *Sources) GetSourceVantage(ctx context.Context, request operations.GetSo 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 @@ -70671,12 +81443,13 @@ func (s *Sources) GetSourceVantage(ctx context.Context, request operations.GetSo defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -70711,7 +81484,7 @@ func (s *Sources) GetSourceVantage(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceVantageResponse{ + res := &operations.PutSourceAirbyteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70725,18 +81498,8 @@ func (s *Sources) GetSourceVantage(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: @@ -70748,11 +81511,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) { +// 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: "getSourceWebflow", + OperationID: "putSourceAircall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70774,6 +81537,11 @@ func (s *Sources) GetSourceWebflow(ctx context.Context, request operations.GetSo 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 @@ -70785,12 +81553,13 @@ func (s *Sources) GetSourceWebflow(ctx context.Context, request operations.GetSo defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -70825,7 +81594,7 @@ func (s *Sources) GetSourceWebflow(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceWebflowResponse{ + res := &operations.PutSourceAircallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70839,18 +81608,8 @@ func (s *Sources) GetSourceWebflow(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: @@ -70862,11 +81621,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) { +// 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: "getSourceWhiskyHunter", + OperationID: "putSourceAirtable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -70888,6 +81647,11 @@ func (s *Sources) GetSourceWhiskyHunter(ctx context.Context, request operations. 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 @@ -70899,12 +81663,13 @@ func (s *Sources) GetSourceWhiskyHunter(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -70939,7 +81704,7 @@ func (s *Sources) GetSourceWhiskyHunter(ctx context.Context, request operations. } } - res := &operations.GetSourceWhiskyHunterResponse{ + res := &operations.PutSourceAirtableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -70953,18 +81718,8 @@ func (s *Sources) GetSourceWhiskyHunter(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: @@ -70976,11 +81731,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) { +// 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: "getSourceWikipediaPageviews", + OperationID: "putSourceAmazonAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71002,6 +81757,11 @@ func (s *Sources) GetSourceWikipediaPageviews(ctx context.Context, request opera 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 @@ -71013,12 +81773,13 @@ func (s *Sources) GetSourceWikipediaPageviews(ctx context.Context, request opera defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -71053,7 +81814,7 @@ func (s *Sources) GetSourceWikipediaPageviews(ctx context.Context, request opera } } - res := &operations.GetSourceWikipediaPageviewsResponse{ + res := &operations.PutSourceAmazonAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71067,18 +81828,118 @@ func (s *Sources) GetSourceWikipediaPageviews(ctx context.Context, request opera 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 + +} + +// 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: @@ -71090,11 +81951,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) { +// 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: "getSourceWoocommerce", + OperationID: "putSourceAmazonSqs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71116,6 +81977,11 @@ func (s *Sources) GetSourceWoocommerce(ctx context.Context, request operations.G 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 @@ -71127,12 +81993,13 @@ func (s *Sources) GetSourceWoocommerce(ctx context.Context, request operations.G defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -71167,7 +82034,7 @@ func (s *Sources) GetSourceWoocommerce(ctx context.Context, request operations.G } } - res := &operations.GetSourceWoocommerceResponse{ + res := &operations.PutSourceAmazonSqsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71181,18 +82048,8 @@ func (s *Sources) GetSourceWoocommerce(ctx context.Context, request operations.G 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: @@ -71204,11 +82061,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) { +// 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: "getSourceXkcd", + OperationID: "putSourceAmplitude", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71230,6 +82087,11 @@ func (s *Sources) GetSourceXkcd(ctx context.Context, request operations.GetSourc 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 @@ -71241,12 +82103,13 @@ func (s *Sources) GetSourceXkcd(ctx context.Context, request operations.GetSourc defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -71281,7 +82144,7 @@ func (s *Sources) GetSourceXkcd(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceXkcdResponse{ + res := &operations.PutSourceAmplitudeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71295,18 +82158,8 @@ func (s *Sources) GetSourceXkcd(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: @@ -71318,11 +82171,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) { +// 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: "getSourceYandexMetrica", + OperationID: "putSourceApifyDataset", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71344,6 +82197,11 @@ func (s *Sources) GetSourceYandexMetrica(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"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -71355,12 +82213,13 @@ func (s *Sources) GetSourceYandexMetrica(ctx context.Context, request operations defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -71395,7 +82254,7 @@ func (s *Sources) GetSourceYandexMetrica(ctx context.Context, request operations } } - res := &operations.GetSourceYandexMetricaResponse{ + res := &operations.PutSourceApifyDatasetResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71409,18 +82268,8 @@ func (s *Sources) GetSourceYandexMetrica(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: @@ -71432,11 +82281,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) { +// PutSourceAppcues - Update a Source fully +func (s *Sources) PutSourceAppcues(ctx context.Context, request operations.PutSourceAppcuesRequest, opts ...operations.Option) (*operations.PutSourceAppcuesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceYotpo", + OperationID: "putSourceAppcues", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71458,6 +82307,11 @@ func (s *Sources) GetSourceYotpo(ctx context.Context, request operations.GetSour return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAppcuesPutRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -71469,12 +82323,13 @@ func (s *Sources) GetSourceYotpo(ctx context.Context, request operations.GetSour defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -71509,7 +82364,7 @@ func (s *Sources) GetSourceYotpo(ctx context.Context, request operations.GetSour } } - res := &operations.GetSourceYotpoResponse{ + res := &operations.PutSourceAppcuesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71523,18 +82378,8 @@ func (s *Sources) GetSourceYotpo(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: @@ -71546,11 +82391,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) { +// PutSourceAppfigures - Update a Source fully +func (s *Sources) PutSourceAppfigures(ctx context.Context, request operations.PutSourceAppfiguresRequest, opts ...operations.Option) (*operations.PutSourceAppfiguresResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceYoutubeAnalytics", + OperationID: "putSourceAppfigures", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71572,6 +82417,11 @@ func (s *Sources) GetSourceYoutubeAnalytics(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAppfiguresPutRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -71583,12 +82433,13 @@ func (s *Sources) GetSourceYoutubeAnalytics(ctx context.Context, request operati defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -71623,7 +82474,7 @@ func (s *Sources) GetSourceYoutubeAnalytics(ctx context.Context, request operati } } - res := &operations.GetSourceYoutubeAnalyticsResponse{ + res := &operations.PutSourceAppfiguresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71637,18 +82488,8 @@ func (s *Sources) GetSourceYoutubeAnalytics(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: @@ -71660,11 +82501,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) { +// 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: "getSourceZendeskChat", + OperationID: "putSourceAppfollow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71686,6 +82527,11 @@ func (s *Sources) GetSourceZendeskChat(ctx context.Context, request operations.G 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 @@ -71697,12 +82543,13 @@ func (s *Sources) GetSourceZendeskChat(ctx context.Context, request operations.G defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -71737,7 +82584,7 @@ func (s *Sources) GetSourceZendeskChat(ctx context.Context, request operations.G } } - res := &operations.GetSourceZendeskChatResponse{ + res := &operations.PutSourceAppfollowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71751,18 +82598,8 @@ func (s *Sources) GetSourceZendeskChat(ctx context.Context, request operations.G 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: @@ -71774,11 +82611,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) { +// 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: "getSourceZendeskSell", + OperationID: "putSourceAsana", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71800,6 +82637,11 @@ func (s *Sources) GetSourceZendeskSell(ctx context.Context, request operations.G 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 @@ -71811,12 +82653,13 @@ func (s *Sources) GetSourceZendeskSell(ctx context.Context, request operations.G defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -71851,7 +82694,7 @@ func (s *Sources) GetSourceZendeskSell(ctx context.Context, request operations.G } } - res := &operations.GetSourceZendeskSellResponse{ + res := &operations.PutSourceAsanaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71865,18 +82708,8 @@ func (s *Sources) GetSourceZendeskSell(ctx context.Context, request operations.G 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: @@ -71888,11 +82721,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) { +// 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: "getSourceZendeskSunshine", + OperationID: "putSourceAuth0", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -71914,6 +82747,11 @@ func (s *Sources) GetSourceZendeskSunshine(ctx context.Context, request operatio 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 @@ -71925,12 +82763,13 @@ func (s *Sources) GetSourceZendeskSunshine(ctx context.Context, request operatio defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -71965,7 +82804,7 @@ func (s *Sources) GetSourceZendeskSunshine(ctx context.Context, request operatio } } - res := &operations.GetSourceZendeskSunshineResponse{ + res := &operations.PutSourceAuth0Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71979,18 +82818,8 @@ func (s *Sources) GetSourceZendeskSunshine(ctx context.Context, request operatio 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: @@ -72002,11 +82831,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) { +// 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: "getSourceZendeskSupport", + OperationID: "putSourceAwsCloudtrail", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72028,6 +82857,11 @@ func (s *Sources) GetSourceZendeskSupport(ctx context.Context, request operation 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 @@ -72039,12 +82873,13 @@ func (s *Sources) GetSourceZendeskSupport(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -72079,7 +82914,7 @@ func (s *Sources) GetSourceZendeskSupport(ctx context.Context, request operation } } - res := &operations.GetSourceZendeskSupportResponse{ + res := &operations.PutSourceAwsCloudtrailResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72093,18 +82928,8 @@ func (s *Sources) GetSourceZendeskSupport(ctx context.Context, request operation 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: @@ -72116,11 +82941,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) { +// 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: "getSourceZendeskTalk", + OperationID: "putSourceAzureBlobStorage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72142,6 +82967,11 @@ func (s *Sources) GetSourceZendeskTalk(ctx context.Context, request operations.G 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 @@ -72153,12 +82983,13 @@ func (s *Sources) GetSourceZendeskTalk(ctx context.Context, request operations.G defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -72193,7 +83024,7 @@ func (s *Sources) GetSourceZendeskTalk(ctx context.Context, request operations.G } } - res := &operations.GetSourceZendeskTalkResponse{ + res := &operations.PutSourceAzureBlobStorageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72207,18 +83038,8 @@ func (s *Sources) GetSourceZendeskTalk(ctx context.Context, request operations.G 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: @@ -72230,11 +83051,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) { +// 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: "getSourceZenloop", + OperationID: "putSourceAzureTable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72256,6 +83077,11 @@ func (s *Sources) GetSourceZenloop(ctx context.Context, request operations.GetSo 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 @@ -72267,12 +83093,13 @@ func (s *Sources) GetSourceZenloop(ctx context.Context, request operations.GetSo defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -72307,7 +83134,7 @@ func (s *Sources) GetSourceZenloop(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceZenloopResponse{ + res := &operations.PutSourceAzureTableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72321,18 +83148,8 @@ func (s *Sources) GetSourceZenloop(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: @@ -72344,11 +83161,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) { +// 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: "getSourceZohoCrm", + OperationID: "putSourceBambooHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72370,6 +83187,11 @@ func (s *Sources) GetSourceZohoCrm(ctx context.Context, request operations.GetSo 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 @@ -72381,12 +83203,13 @@ func (s *Sources) GetSourceZohoCrm(ctx context.Context, request operations.GetSo defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -72421,7 +83244,7 @@ func (s *Sources) GetSourceZohoCrm(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceZohoCrmResponse{ + res := &operations.PutSourceBambooHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72435,18 +83258,8 @@ func (s *Sources) GetSourceZohoCrm(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: @@ -72458,11 +83271,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) { +// 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: "getSourceZoom", + OperationID: "putSourceBasecamp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72484,6 +83297,11 @@ func (s *Sources) GetSourceZoom(ctx context.Context, request operations.GetSourc 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 @@ -72495,12 +83313,13 @@ func (s *Sources) GetSourceZoom(ctx context.Context, request operations.GetSourc defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("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 @@ -72535,7 +83354,7 @@ func (s *Sources) GetSourceZoom(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceZoomResponse{ + res := &operations.PutSourceBasecampResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72549,18 +83368,8 @@ func (s *Sources) GetSourceZoom(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: @@ -72572,16 +83381,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) { +// 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: "initiateOAuth", + OperationID: "putSourceBigquery", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72598,12 +83402,12 @@ func (s *Sources) InitiateOAuth(ctx context.Context, request shared.InitiateOaut } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := url.JoinPath(baseURL, "/sources/initiateOAuth") + 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, false, "Request", "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 } @@ -72619,7 +83423,7 @@ func (s *Sources) InitiateOAuth(ctx context.Context, request shared.InitiateOaut defer cancel() } - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -72660,7 +83464,7 @@ func (s *Sources) InitiateOAuth(ctx context.Context, request shared.InitiateOaut } } - res := &operations.InitiateOAuthResponse{ + res := &operations.PutSourceBigqueryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72674,11 +83478,11 @@ func (s *Sources) InitiateOAuth(ctx context.Context, request shared.InitiateOaut httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { - case httpRes.StatusCode == 200: - fallthrough - case httpRes.StatusCode == 400: + 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) } @@ -72687,11 +83491,11 @@ func (s *Sources) InitiateOAuth(ctx context.Context, request shared.InitiateOaut } -// ListSources - List sources -func (s *Sources) ListSources(ctx context.Context, request operations.ListSourcesRequest, opts ...operations.Option) (*operations.ListSourcesResponse, 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: "listSources", + OperationID: "putSourceBingAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72708,11 +83512,16 @@ 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) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBingAdsPutRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -72724,16 +83533,13 @@ func (s *Sources) ListSources(ctx context.Context, request operations.ListSource defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + 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("Accept", "*/*") 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) - } + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -72768,7 +83574,7 @@ func (s *Sources) ListSources(ctx context.Context, request operations.ListSource } } - res := &operations.ListSourcesResponse{ + res := &operations.PutSourceBingAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72782,18 +83588,8 @@ func (s *Sources) ListSources(ctx context.Context, request operations.ListSource 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 >= 200 && httpRes.StatusCode < 300: + fallthrough case httpRes.StatusCode == 403: fallthrough case httpRes.StatusCode == 404: @@ -72805,11 +83601,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) { +// PutSourceBitly - Update a Source fully +func (s *Sources) PutSourceBitly(ctx context.Context, request operations.PutSourceBitlyRequest, opts ...operations.Option) (*operations.PutSourceBitlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "patchSource", + OperationID: "putSourceBitly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72831,7 +83627,7 @@ 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"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBitlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -72847,11 +83643,11 @@ 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, "PUT", opURL, bodyReader) 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) req.Header.Set("Content-Type", reqContentType) @@ -72888,7 +83684,7 @@ func (s *Sources) PatchSource(ctx context.Context, request operations.PatchSourc } } - res := &operations.PatchSourceResponse{ + res := &operations.PutSourceBitlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -72902,18 +83698,8 @@ func (s *Sources) PatchSource(ctx context.Context, request operations.PatchSourc 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: @@ -72925,11 +83711,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) { +// 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: "putSource", + OperationID: "putSourceBraintree", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -72951,7 +83737,7 @@ 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"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBraintreePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -72971,7 +83757,7 @@ func (s *Sources) PutSource(ctx context.Context, request operations.PutSourceReq 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) req.Header.Set("Content-Type", reqContentType) @@ -73008,7 +83794,7 @@ func (s *Sources) PutSource(ctx context.Context, request operations.PutSourceReq } } - res := &operations.PutSourceResponse{ + res := &operations.PutSourceBraintreeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73022,18 +83808,8 @@ func (s *Sources) PutSource(ctx context.Context, request operations.PutSourceReq 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: @@ -73045,11 +83821,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) { +// 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: "putSourceAha", + OperationID: "putSourceBraze", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73071,7 +83847,7 @@ 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"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBrazePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73128,7 +83904,7 @@ func (s *Sources) PutSourceAha(ctx context.Context, request operations.PutSource } } - res := &operations.PutSourceAhaResponse{ + res := &operations.PutSourceBrazeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73155,11 +83931,11 @@ func (s *Sources) PutSourceAha(ctx context.Context, request operations.PutSource } -// PutSourceAirbyte - Update a Source fully -func (s *Sources) PutSourceAirbyte(ctx context.Context, request operations.PutSourceAirbyteRequest, opts ...operations.Option) (*operations.PutSourceAirbyteResponse, 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: "putSourceAirbyte", + OperationID: "putSourceBreezyHr", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73181,7 +83957,7 @@ func (s *Sources) PutSourceAirbyte(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAirbytePutRequest", "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 } @@ -73238,7 +84014,7 @@ func (s *Sources) PutSourceAirbyte(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceAirbyteResponse{ + res := &operations.PutSourceBreezyHrResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73265,11 +84041,11 @@ func (s *Sources) PutSourceAirbyte(ctx context.Context, request operations.PutSo } -// PutSourceAircall - Update a Source fully -func (s *Sources) PutSourceAircall(ctx context.Context, request operations.PutSourceAircallRequest, opts ...operations.Option) (*operations.PutSourceAircallResponse, error) { +// PutSourceBrevo - Update a Source fully +func (s *Sources) PutSourceBrevo(ctx context.Context, request operations.PutSourceBrevoRequest, opts ...operations.Option) (*operations.PutSourceBrevoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAircall", + OperationID: "putSourceBrevo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73291,7 +84067,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, "SourceBrevoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73348,7 +84124,7 @@ func (s *Sources) PutSourceAircall(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceAircallResponse{ + res := &operations.PutSourceBrevoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73375,11 +84151,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) { +// PutSourceBuildkite - Update a Source fully +func (s *Sources) PutSourceBuildkite(ctx context.Context, request operations.PutSourceBuildkiteRequest, opts ...operations.Option) (*operations.PutSourceBuildkiteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAirtable", + OperationID: "putSourceBuildkite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73401,7 +84177,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, "SourceBuildkitePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73458,7 +84234,7 @@ func (s *Sources) PutSourceAirtable(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceAirtableResponse{ + res := &operations.PutSourceBuildkiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73485,11 +84261,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) { +// PutSourceBuzzsprout - Update a Source fully +func (s *Sources) PutSourceBuzzsprout(ctx context.Context, request operations.PutSourceBuzzsproutRequest, opts ...operations.Option) (*operations.PutSourceBuzzsproutResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAmazonAds", + OperationID: "putSourceBuzzsprout", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73511,7 +84287,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, "SourceBuzzsproutPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73568,7 +84344,7 @@ func (s *Sources) PutSourceAmazonAds(ctx context.Context, request operations.Put } } - res := &operations.PutSourceAmazonAdsResponse{ + res := &operations.PutSourceBuzzsproutResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73595,11 +84371,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) { +// 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: "putSourceAmazonSellerPartner", + OperationID: "putSourceCalendly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73621,7 +84397,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, "SourceCalendlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73678,7 +84454,7 @@ func (s *Sources) PutSourceAmazonSellerPartner(ctx context.Context, request oper } } - res := &operations.PutSourceAmazonSellerPartnerResponse{ + res := &operations.PutSourceCalendlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73705,11 +84481,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) { +// PutSourceCanny - Update a Source fully +func (s *Sources) PutSourceCanny(ctx context.Context, request operations.PutSourceCannyRequest, opts ...operations.Option) (*operations.PutSourceCannyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAmazonSqs", + OperationID: "putSourceCanny", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73731,7 +84507,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, "SourceCannyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73788,7 +84564,7 @@ func (s *Sources) PutSourceAmazonSqs(ctx context.Context, request operations.Put } } - res := &operations.PutSourceAmazonSqsResponse{ + res := &operations.PutSourceCannyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73815,11 +84591,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) { +// 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: "putSourceAmplitude", + OperationID: "putSourceCart", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73841,7 +84617,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, "SourceCartPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73898,7 +84674,7 @@ func (s *Sources) PutSourceAmplitude(ctx context.Context, request operations.Put } } - res := &operations.PutSourceAmplitudeResponse{ + res := &operations.PutSourceCartResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73925,11 +84701,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) { +// PutSourceChameleon - Update a Source fully +func (s *Sources) PutSourceChameleon(ctx context.Context, request operations.PutSourceChameleonRequest, opts ...operations.Option) (*operations.PutSourceChameleonResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceApifyDataset", + OperationID: "putSourceChameleon", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73951,7 +84727,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, "SourceChameleonPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74008,7 +84784,7 @@ func (s *Sources) PutSourceApifyDataset(ctx context.Context, request operations. } } - res := &operations.PutSourceApifyDatasetResponse{ + res := &operations.PutSourceChameleonResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74035,11 +84811,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, } @@ -74061,7 +84837,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 } @@ -74118,7 +84894,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, @@ -74145,11 +84921,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, } @@ -74171,7 +84947,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 } @@ -74228,7 +85004,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, @@ -74255,11 +85031,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) { +// PutSourceCimis - Update a Source fully +func (s *Sources) PutSourceCimis(ctx context.Context, request operations.PutSourceCimisRequest, opts ...operations.Option) (*operations.PutSourceCimisResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceAuth0", + OperationID: "putSourceCimis", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74281,7 +85057,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, "SourceCimisPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74338,7 +85114,7 @@ func (s *Sources) PutSourceAuth0(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceAuth0Response{ + res := &operations.PutSourceCimisResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74365,11 +85141,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) { +// 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: "putSourceAwsCloudtrail", + OperationID: "putSourceClazar", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74391,7 +85167,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, "SourceClazarPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74448,7 +85224,7 @@ func (s *Sources) PutSourceAwsCloudtrail(ctx context.Context, request operations } } - res := &operations.PutSourceAwsCloudtrailResponse{ + res := &operations.PutSourceClazarResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74475,11 +85251,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) { +// 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: "putSourceAzureBlobStorage", + OperationID: "putSourceClickhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74501,7 +85277,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, "SourceClickhousePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74558,7 +85334,7 @@ func (s *Sources) PutSourceAzureBlobStorage(ctx context.Context, request operati } } - res := &operations.PutSourceAzureBlobStorageResponse{ + res := &operations.PutSourceClickhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74585,11 +85361,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) { +// 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: "putSourceAzureTable", + OperationID: "putSourceClickupApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74611,7 +85387,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, "SourceClickupAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74668,7 +85444,7 @@ func (s *Sources) PutSourceAzureTable(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceAzureTableResponse{ + res := &operations.PutSourceClickupAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74695,11 +85471,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) { +// 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: "putSourceBambooHr", + OperationID: "putSourceClockify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74721,7 +85497,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, "SourceClockifyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74778,7 +85554,7 @@ func (s *Sources) PutSourceBambooHr(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceBambooHrResponse{ + res := &operations.PutSourceClockifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74805,11 +85581,11 @@ func (s *Sources) PutSourceBambooHr(ctx context.Context, request operations.PutS } -// PutSourceBasecamp - Update a Source fully -func (s *Sources) PutSourceBasecamp(ctx context.Context, request operations.PutSourceBasecampRequest, opts ...operations.Option) (*operations.PutSourceBasecampResponse, 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: "putSourceBasecamp", + OperationID: "putSourceCloseCom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74831,7 +85607,7 @@ func (s *Sources) PutSourceBasecamp(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBasecampPutRequest", "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 } @@ -74888,7 +85664,7 @@ func (s *Sources) PutSourceBasecamp(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceBasecampResponse{ + res := &operations.PutSourceCloseComResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -74915,11 +85691,11 @@ func (s *Sources) PutSourceBasecamp(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, } @@ -74941,7 +85717,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 } @@ -74998,7 +85774,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, @@ -75025,11 +85801,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, } @@ -75051,7 +85827,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 } @@ -75108,7 +85884,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, @@ -75135,11 +85911,11 @@ 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, } @@ -75161,7 +85937,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, "SourceCoinmarketcapPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75218,7 +85994,7 @@ func (s *Sources) PutSourceBraintree(ctx context.Context, request operations.Put } } - res := &operations.PutSourceBraintreeResponse{ + res := &operations.PutSourceCoinmarketcapResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75245,11 +86021,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) { +// 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: "putSourceBraze", + OperationID: "putSourceConfigcat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75271,7 +86047,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, "SourceConfigcatPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75328,7 +86104,7 @@ func (s *Sources) PutSourceBraze(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceBrazeResponse{ + res := &operations.PutSourceConfigcatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75355,11 +86131,11 @@ func (s *Sources) PutSourceBraze(ctx context.Context, request operations.PutSour } -// PutSourceBreezyHr - Update a Source fully -func (s *Sources) PutSourceBreezyHr(ctx context.Context, request operations.PutSourceBreezyHrRequest, opts ...operations.Option) (*operations.PutSourceBreezyHrResponse, 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: "putSourceBreezyHr", + OperationID: "putSourceConfluence", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75381,7 +86157,7 @@ func (s *Sources) PutSourceBreezyHr(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBreezyHrPutRequest", "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 } @@ -75438,7 +86214,7 @@ func (s *Sources) PutSourceBreezyHr(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceBreezyHrResponse{ + res := &operations.PutSourceConfluenceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75465,11 +86241,11 @@ func (s *Sources) PutSourceBreezyHr(ctx context.Context, request operations.PutS } -// PutSourceCalendly - Update a Source fully -func (s *Sources) PutSourceCalendly(ctx context.Context, request operations.PutSourceCalendlyRequest, opts ...operations.Option) (*operations.PutSourceCalendlyResponse, 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: "putSourceCalendly", + OperationID: "putSourceConvex", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75491,7 +86267,7 @@ func (s *Sources) PutSourceCalendly(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCalendlyPutRequest", "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 } @@ -75548,7 +86324,7 @@ func (s *Sources) PutSourceCalendly(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceCalendlyResponse{ + res := &operations.PutSourceConvexResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75575,11 +86351,11 @@ func (s *Sources) PutSourceCalendly(ctx context.Context, request operations.PutS } -// PutSourceCart - Update a Source fully -func (s *Sources) PutSourceCart(ctx context.Context, request operations.PutSourceCartRequest, opts ...operations.Option) (*operations.PutSourceCartResponse, 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: "putSourceCart", + OperationID: "putSourceCustom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75601,7 +86377,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, "SourceCustomPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75658,7 +86434,7 @@ func (s *Sources) PutSourceCart(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceCartResponse{ + res := &operations.PutSourceCustomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75685,11 +86461,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) { +// 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: "putSourceChargebee", + OperationID: "putSourceCustomerIo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75711,7 +86487,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, "SourceCustomerIoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75768,7 +86544,7 @@ func (s *Sources) PutSourceChargebee(ctx context.Context, request operations.Put } } - res := &operations.PutSourceChargebeeResponse{ + res := &operations.PutSourceCustomerIoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75795,11 +86571,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) { +// 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: "putSourceChartmogul", + OperationID: "putSourceDatadog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75821,7 +86597,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, "SourceDatadogPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75878,7 +86654,7 @@ func (s *Sources) PutSourceChartmogul(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceChartmogulResponse{ + res := &operations.PutSourceDatadogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -75905,11 +86681,11 @@ func (s *Sources) PutSourceChartmogul(ctx context.Context, request operations.Pu } -// PutSourceClazar - Update a Source fully -func (s *Sources) PutSourceClazar(ctx context.Context, request operations.PutSourceClazarRequest, opts ...operations.Option) (*operations.PutSourceClazarResponse, error) { +// 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: "putSourceClazar", + OperationID: "putSourceDatascope", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -75931,7 +86707,7 @@ func (s *Sources) PutSourceClazar(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClazarPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDatascopePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -75988,7 +86764,7 @@ func (s *Sources) PutSourceClazar(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceClazarResponse{ + res := &operations.PutSourceDatascopeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76015,11 +86791,11 @@ func (s *Sources) PutSourceClazar(ctx context.Context, request operations.PutSou } -// PutSourceClickhouse - Update a Source fully -func (s *Sources) PutSourceClickhouse(ctx context.Context, request operations.PutSourceClickhouseRequest, opts ...operations.Option) (*operations.PutSourceClickhouseResponse, 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: "putSourceClickhouse", + OperationID: "putSourceDbt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76041,7 +86817,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, "SourceDbtPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76098,7 +86874,7 @@ func (s *Sources) PutSourceClickhouse(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceClickhouseResponse{ + res := &operations.PutSourceDbtResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76125,11 +86901,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) { +// 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: "putSourceClickupApi", + OperationID: "putSourceDelighted", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76151,7 +86927,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, "SourceDelightedPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76208,7 +86984,7 @@ func (s *Sources) PutSourceClickupAPI(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceClickupAPIResponse{ + res := &operations.PutSourceDelightedResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76235,11 +87011,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) { +// 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: "putSourceClockify", + OperationID: "putSourceDixa", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76261,7 +87037,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, "SourceDixaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76318,7 +87094,7 @@ func (s *Sources) PutSourceClockify(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceClockifyResponse{ + res := &operations.PutSourceDixaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76345,11 +87121,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) { +// 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: "putSourceCloseCom", + OperationID: "putSourceDockerhub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76371,7 +87147,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, "SourceDockerhubPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76428,7 +87204,7 @@ func (s *Sources) PutSourceCloseCom(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceCloseComResponse{ + res := &operations.PutSourceDockerhubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76455,11 +87231,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) { +// 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: "putSourceCoda", + OperationID: "putSourceDremio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76481,7 +87257,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, "SourceDremioPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76538,7 +87314,7 @@ func (s *Sources) PutSourceCoda(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceCodaResponse{ + res := &operations.PutSourceDremioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76565,11 +87341,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) { +// 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: "putSourceCoinApi", + OperationID: "putSourceDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76591,7 +87367,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, "SourceDynamodbPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76648,7 +87424,7 @@ func (s *Sources) PutSourceCoinAPI(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceCoinAPIResponse{ + res := &operations.PutSourceDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76675,11 +87451,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) { +// 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: "putSourceCoinmarketcap", + OperationID: "putSourceEmailoctopus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76701,7 +87477,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, "SourceEmailoctopusPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76758,7 +87534,7 @@ func (s *Sources) PutSourceCoinmarketcap(ctx context.Context, request operations } } - res := &operations.PutSourceCoinmarketcapResponse{ + res := &operations.PutSourceEmailoctopusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76785,11 +87561,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) { +// 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: "putSourceConfigcat", + OperationID: "putSourceExchangeRates", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76811,7 +87587,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, "SourceExchangeRatesPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76868,7 +87644,7 @@ func (s *Sources) PutSourceConfigcat(ctx context.Context, request operations.Put } } - res := &operations.PutSourceConfigcatResponse{ + res := &operations.PutSourceExchangeRatesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -76895,11 +87671,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) { +// PutSourceEzofficeinventory - Update a Source fully +func (s *Sources) PutSourceEzofficeinventory(ctx context.Context, request operations.PutSourceEzofficeinventoryRequest, opts ...operations.Option) (*operations.PutSourceEzofficeinventoryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceConfluence", + OperationID: "putSourceEzofficeinventory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -76921,7 +87697,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, "SourceEzofficeinventoryPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -76978,7 +87754,7 @@ func (s *Sources) PutSourceConfluence(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceConfluenceResponse{ + res := &operations.PutSourceEzofficeinventoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77005,11 +87781,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) { +// 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: "putSourceConvex", + OperationID: "putSourceFacebookMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77031,7 +87807,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, "SourceFacebookMarketingPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77088,7 +87864,7 @@ func (s *Sources) PutSourceConvex(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceConvexResponse{ + res := &operations.PutSourceFacebookMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77115,11 +87891,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) { +// 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: "putSourceCustom", + OperationID: "putSourceFaker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77141,7 +87917,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, "SourceFakerPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77198,7 +87974,7 @@ func (s *Sources) PutSourceCustom(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceCustomResponse{ + res := &operations.PutSourceFakerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77225,11 +88001,11 @@ func (s *Sources) PutSourceCustom(ctx context.Context, request operations.PutSou } -// PutSourceCustomerIo - Update a Source fully -func (s *Sources) PutSourceCustomerIo(ctx context.Context, request operations.PutSourceCustomerIoRequest, opts ...operations.Option) (*operations.PutSourceCustomerIoResponse, error) { +// 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: "putSourceCustomerIo", + OperationID: "putSourceFauna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77251,7 +88027,7 @@ func (s *Sources) PutSourceCustomerIo(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCustomerIoPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFaunaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77308,7 +88084,7 @@ func (s *Sources) PutSourceCustomerIo(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceCustomerIoResponse{ + res := &operations.PutSourceFaunaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77335,11 +88111,11 @@ func (s *Sources) PutSourceCustomerIo(ctx context.Context, request operations.Pu } -// PutSourceDatadog - Update a Source fully -func (s *Sources) PutSourceDatadog(ctx context.Context, request operations.PutSourceDatadogRequest, opts ...operations.Option) (*operations.PutSourceDatadogResponse, 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: "putSourceDatadog", + OperationID: "putSourceFile", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77361,7 +88137,7 @@ func (s *Sources) PutSourceDatadog(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDatadogPutRequest", "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 } @@ -77418,7 +88194,7 @@ func (s *Sources) PutSourceDatadog(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceDatadogResponse{ + res := &operations.PutSourceFileResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77445,11 +88221,11 @@ func (s *Sources) PutSourceDatadog(ctx context.Context, request operations.PutSo } -// PutSourceDatascope - Update a Source fully -func (s *Sources) PutSourceDatascope(ctx context.Context, request operations.PutSourceDatascopeRequest, opts ...operations.Option) (*operations.PutSourceDatascopeResponse, 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: "putSourceDatascope", + OperationID: "putSourceFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77471,7 +88247,7 @@ 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, "SourceFireboltPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77528,7 +88304,7 @@ func (s *Sources) PutSourceDatascope(ctx context.Context, request operations.Put } } - res := &operations.PutSourceDatascopeResponse{ + res := &operations.PutSourceFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77555,11 +88331,11 @@ func (s *Sources) PutSourceDatascope(ctx context.Context, request operations.Put } -// PutSourceDbt - Update a Source fully -func (s *Sources) PutSourceDbt(ctx context.Context, request operations.PutSourceDbtRequest, opts ...operations.Option) (*operations.PutSourceDbtResponse, 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: "putSourceDbt", + OperationID: "putSourceFleetio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77581,7 +88357,7 @@ func (s *Sources) PutSourceDbt(ctx context.Context, request operations.PutSource return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDbtPutRequest", "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 } @@ -77638,7 +88414,7 @@ func (s *Sources) PutSourceDbt(ctx context.Context, request operations.PutSource } } - res := &operations.PutSourceDbtResponse{ + res := &operations.PutSourceFleetioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77665,11 +88441,11 @@ func (s *Sources) PutSourceDbt(ctx context.Context, request operations.PutSource } -// PutSourceDelighted - Update a Source fully -func (s *Sources) PutSourceDelighted(ctx context.Context, request operations.PutSourceDelightedRequest, opts ...operations.Option) (*operations.PutSourceDelightedResponse, 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: "putSourceDelighted", + OperationID: "putSourceFreshcaller", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77691,7 +88467,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, "SourceFreshcallerPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77748,7 +88524,7 @@ func (s *Sources) PutSourceDelighted(ctx context.Context, request operations.Put } } - res := &operations.PutSourceDelightedResponse{ + res := &operations.PutSourceFreshcallerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77775,11 +88551,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) { +// 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: "putSourceDixa", + OperationID: "putSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77801,7 +88577,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, "SourceFreshdeskPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77858,7 +88634,7 @@ func (s *Sources) PutSourceDixa(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceDixaResponse{ + res := &operations.PutSourceFreshdeskResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77885,11 +88661,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) { +// 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: "putSourceDockerhub", + OperationID: "putSourceFreshsales", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -77911,7 +88687,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, "SourceFreshsalesPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -77968,7 +88744,7 @@ func (s *Sources) PutSourceDockerhub(ctx context.Context, request operations.Put } } - res := &operations.PutSourceDockerhubResponse{ + res := &operations.PutSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -77995,11 +88771,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) { +// PutSourceFront - Update a Source fully +func (s *Sources) PutSourceFront(ctx context.Context, request operations.PutSourceFrontRequest, opts ...operations.Option) (*operations.PutSourceFrontResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceDremio", + OperationID: "putSourceFront", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78021,7 +88797,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, "SourceFrontPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78078,7 +88854,7 @@ func (s *Sources) PutSourceDremio(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceDremioResponse{ + res := &operations.PutSourceFrontResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78105,11 +88881,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) { +// 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: "putSourceDynamodb", + OperationID: "putSourceGainsightPx", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78131,7 +88907,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, "SourceGainsightPxPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78188,7 +88964,7 @@ func (s *Sources) PutSourceDynamodb(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceDynamodbResponse{ + res := &operations.PutSourceGainsightPxResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78215,11 +88991,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) { +// 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: "putSourceEmailoctopus", + OperationID: "putSourceGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78241,7 +89017,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, "SourceGcsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78298,7 +89074,7 @@ func (s *Sources) PutSourceEmailoctopus(ctx context.Context, request operations. } } - res := &operations.PutSourceEmailoctopusResponse{ + res := &operations.PutSourceGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78325,11 +89101,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) { +// 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: "putSourceExchangeRates", + OperationID: "putSourceGetlago", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78351,7 +89127,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, "SourceGetlagoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78408,7 +89184,7 @@ func (s *Sources) PutSourceExchangeRates(ctx context.Context, request operations } } - res := &operations.PutSourceExchangeRatesResponse{ + res := &operations.PutSourceGetlagoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78435,11 +89211,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) { +// 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: "putSourceFacebookMarketing", + OperationID: "putSourceGithub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78461,7 +89237,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, "SourceGithubPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78518,7 +89294,7 @@ func (s *Sources) PutSourceFacebookMarketing(ctx context.Context, request operat } } - res := &operations.PutSourceFacebookMarketingResponse{ + res := &operations.PutSourceGithubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78545,11 +89321,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) { +// 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: "putSourceFaker", + OperationID: "putSourceGitlab", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78571,7 +89347,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, "SourceGitlabPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78628,7 +89404,7 @@ func (s *Sources) PutSourceFaker(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceFakerResponse{ + res := &operations.PutSourceGitlabResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78655,11 +89431,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) { +// 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: "putSourceFauna", + OperationID: "putSourceGlassfrog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78681,7 +89457,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, "SourceGlassfrogPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78738,7 +89514,7 @@ func (s *Sources) PutSourceFauna(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceFaunaResponse{ + res := &operations.PutSourceGlassfrogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78765,11 +89541,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) { +// 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: "putSourceFile", + OperationID: "putSourceGnews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78791,7 +89567,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, "SourceGnewsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78848,7 +89624,7 @@ func (s *Sources) PutSourceFile(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceFileResponse{ + res := &operations.PutSourceGnewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78875,11 +89651,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) { +// 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: "putSourceFirebolt", + OperationID: "putSourceGoldcast", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -78901,7 +89677,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, "SourceGoldcastPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -78958,7 +89734,7 @@ func (s *Sources) PutSourceFirebolt(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceFireboltResponse{ + res := &operations.PutSourceGoldcastResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -78985,11 +89761,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) { +// 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: "putSourceFleetio", + OperationID: "putSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79011,7 +89787,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, "SourceGoogleAdsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79068,7 +89844,7 @@ func (s *Sources) PutSourceFleetio(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceFleetioResponse{ + res := &operations.PutSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79095,11 +89871,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) { +// 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: "putSourceFreshcaller", + OperationID: "putSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79121,7 +89897,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, "SourceGoogleAnalyticsDataAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79178,7 +89954,7 @@ func (s *Sources) PutSourceFreshcaller(ctx context.Context, request operations.P } } - res := &operations.PutSourceFreshcallerResponse{ + res := &operations.PutSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79205,11 +89981,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) { +// 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: "putSourceFreshdesk", + OperationID: "putSourceGoogleDirectory", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79231,7 +90007,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, "SourceGoogleDirectoryPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79288,7 +90064,7 @@ func (s *Sources) PutSourceFreshdesk(ctx context.Context, request operations.Put } } - res := &operations.PutSourceFreshdeskResponse{ + res := &operations.PutSourceGoogleDirectoryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79315,11 +90091,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) { +// 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: "putSourceFreshsales", + OperationID: "putSourceGoogleDrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79341,7 +90117,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, "SourceGoogleDrivePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79398,7 +90174,7 @@ func (s *Sources) PutSourceFreshsales(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceFreshsalesResponse{ + res := &operations.PutSourceGoogleDriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79425,11 +90201,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) { +// 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: "putSourceGainsightPx", + OperationID: "putSourceGooglePagespeedInsights", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79451,7 +90227,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, "SourceGooglePagespeedInsightsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79508,7 +90284,7 @@ func (s *Sources) PutSourceGainsightPx(ctx context.Context, request operations.P } } - res := &operations.PutSourceGainsightPxResponse{ + res := &operations.PutSourceGooglePagespeedInsightsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79535,11 +90311,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) { +// 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: "putSourceGcs", + OperationID: "putSourceGoogleSearchConsole", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79561,7 +90337,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, "SourceGoogleSearchConsolePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79618,7 +90394,7 @@ func (s *Sources) PutSourceGcs(ctx context.Context, request operations.PutSource } } - res := &operations.PutSourceGcsResponse{ + res := &operations.PutSourceGoogleSearchConsoleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79645,11 +90421,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) { +// 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: "putSourceGetlago", + OperationID: "putSourceGoogleSheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79671,7 +90447,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, "SourceGoogleSheetsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79728,7 +90504,7 @@ func (s *Sources) PutSourceGetlago(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceGetlagoResponse{ + res := &operations.PutSourceGoogleSheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79755,11 +90531,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) { +// PutSourceGoogleTasks - Update a Source fully +func (s *Sources) PutSourceGoogleTasks(ctx context.Context, request operations.PutSourceGoogleTasksRequest, opts ...operations.Option) (*operations.PutSourceGoogleTasksResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGithub", + OperationID: "putSourceGoogleTasks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79781,7 +90557,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, "SourceGoogleTasksPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79838,7 +90614,7 @@ func (s *Sources) PutSourceGithub(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceGithubResponse{ + res := &operations.PutSourceGoogleTasksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79865,11 +90641,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) { +// 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: "putSourceGitlab", + OperationID: "putSourceGoogleWebfonts", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -79891,7 +90667,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, "SourceGoogleWebfontsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -79948,7 +90724,7 @@ func (s *Sources) PutSourceGitlab(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceGitlabResponse{ + res := &operations.PutSourceGoogleWebfontsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -79975,11 +90751,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) { +// 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: "putSourceGlassfrog", + OperationID: "putSourceGreenhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80001,7 +90777,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, "SourceGreenhousePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80058,7 +90834,7 @@ func (s *Sources) PutSourceGlassfrog(ctx context.Context, request operations.Put } } - res := &operations.PutSourceGlassfrogResponse{ + res := &operations.PutSourceGreenhouseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80085,11 +90861,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) { +// 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: "putSourceGnews", + OperationID: "putSourceGridly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80111,7 +90887,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, "SourceGridlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80168,7 +90944,7 @@ func (s *Sources) PutSourceGnews(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceGnewsResponse{ + res := &operations.PutSourceGridlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80195,11 +90971,11 @@ func (s *Sources) PutSourceGnews(ctx context.Context, request operations.PutSour } -// PutSourceGoldcast - Update a Source fully -func (s *Sources) PutSourceGoldcast(ctx context.Context, request operations.PutSourceGoldcastRequest, opts ...operations.Option) (*operations.PutSourceGoldcastResponse, error) { +// PutSourceGuru - Update a Source fully +func (s *Sources) PutSourceGuru(ctx context.Context, request operations.PutSourceGuruRequest, opts ...operations.Option) (*operations.PutSourceGuruResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoldcast", + OperationID: "putSourceGuru", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80221,7 +90997,7 @@ func (s *Sources) PutSourceGoldcast(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoldcastPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGuruPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80278,7 +91054,7 @@ func (s *Sources) PutSourceGoldcast(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceGoldcastResponse{ + res := &operations.PutSourceGuruResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80305,11 +91081,11 @@ func (s *Sources) PutSourceGoldcast(ctx context.Context, request operations.PutS } -// PutSourceGoogleAds - Update a Source fully -func (s *Sources) PutSourceGoogleAds(ctx context.Context, request operations.PutSourceGoogleAdsRequest, opts ...operations.Option) (*operations.PutSourceGoogleAdsResponse, error) { +// 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: "putSourceGoogleAds", + OperationID: "putSourceHardcodedRecords", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80331,7 +91107,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, "SourceHardcodedRecordsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80388,7 +91164,7 @@ func (s *Sources) PutSourceGoogleAds(ctx context.Context, request operations.Put } } - res := &operations.PutSourceGoogleAdsResponse{ + res := &operations.PutSourceHardcodedRecordsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80415,11 +91191,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) { +// 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: "putSourceGoogleAnalyticsDataApi", + OperationID: "putSourceHarvest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80441,7 +91217,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, "SourceHarvestPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80498,7 +91274,7 @@ func (s *Sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } } - res := &operations.PutSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.PutSourceHarvestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80525,11 +91301,11 @@ func (s *Sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } -// PutSourceGoogleDirectory - Update a Source fully -func (s *Sources) PutSourceGoogleDirectory(ctx context.Context, request operations.PutSourceGoogleDirectoryRequest, opts ...operations.Option) (*operations.PutSourceGoogleDirectoryResponse, error) { +// PutSourceHeight - Update a Source fully +func (s *Sources) PutSourceHeight(ctx context.Context, request operations.PutSourceHeightRequest, opts ...operations.Option) (*operations.PutSourceHeightResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleDirectory", + OperationID: "putSourceHeight", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80551,7 +91327,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, "SourceHeightPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80608,7 +91384,7 @@ func (s *Sources) PutSourceGoogleDirectory(ctx context.Context, request operatio } } - res := &operations.PutSourceGoogleDirectoryResponse{ + res := &operations.PutSourceHeightResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80635,11 +91411,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) { +// 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: "putSourceGoogleDrive", + OperationID: "putSourceHibob", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80661,7 +91437,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, "SourceHibobPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80718,7 +91494,7 @@ func (s *Sources) PutSourceGoogleDrive(ctx context.Context, request operations.P } } - res := &operations.PutSourceGoogleDriveResponse{ + res := &operations.PutSourceHibobResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80745,11 +91521,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) { +// 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: "putSourceGooglePagespeedInsights", + OperationID: "putSourceHighLevel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80771,7 +91547,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, "SourceHighLevelPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80828,7 +91604,7 @@ func (s *Sources) PutSourceGooglePagespeedInsights(ctx context.Context, request } } - res := &operations.PutSourceGooglePagespeedInsightsResponse{ + res := &operations.PutSourceHighLevelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80855,11 +91631,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) { +// 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: "putSourceGoogleSearchConsole", + OperationID: "putSourceHubplanner", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80881,7 +91657,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, "SourceHubplannerPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -80938,7 +91714,7 @@ func (s *Sources) PutSourceGoogleSearchConsole(ctx context.Context, request oper } } - res := &operations.PutSourceGoogleSearchConsoleResponse{ + res := &operations.PutSourceHubplannerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -80965,11 +91741,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) { +// 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: "putSourceGoogleSheets", + OperationID: "putSourceHubspot", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -80991,7 +91767,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, "SourceHubspotPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81048,7 +91824,7 @@ func (s *Sources) PutSourceGoogleSheets(ctx context.Context, request operations. } } - res := &operations.PutSourceGoogleSheetsResponse{ + res := &operations.PutSourceHubspotResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81075,11 +91851,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) { +// 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: "putSourceGoogleWebfonts", + OperationID: "putSourceInsightly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81101,7 +91877,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, "SourceInsightlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81158,7 +91934,7 @@ func (s *Sources) PutSourceGoogleWebfonts(ctx context.Context, request operation } } - res := &operations.PutSourceGoogleWebfontsResponse{ + res := &operations.PutSourceInsightlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81185,11 +91961,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) { +// 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: "putSourceGreenhouse", + OperationID: "putSourceInstagram", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81211,7 +91987,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, "SourceInstagramPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81268,7 +92044,7 @@ func (s *Sources) PutSourceGreenhouse(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceGreenhouseResponse{ + res := &operations.PutSourceInstagramResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81295,11 +92071,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) { +// 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: "putSourceGridly", + OperationID: "putSourceInstatus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81321,7 +92097,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, "SourceInstatusPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81378,7 +92154,7 @@ func (s *Sources) PutSourceGridly(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceGridlyResponse{ + res := &operations.PutSourceInstatusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81405,11 +92181,11 @@ func (s *Sources) PutSourceGridly(ctx context.Context, request operations.PutSou } -// PutSourceHardcodedRecords - Update a Source fully -func (s *Sources) PutSourceHardcodedRecords(ctx context.Context, request operations.PutSourceHardcodedRecordsRequest, opts ...operations.Option) (*operations.PutSourceHardcodedRecordsResponse, 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: "putSourceHardcodedRecords", + OperationID: "putSourceIntercom", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81431,7 +92207,7 @@ func (s *Sources) PutSourceHardcodedRecords(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHardcodedRecordsPutRequest", "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 } @@ -81488,7 +92264,7 @@ func (s *Sources) PutSourceHardcodedRecords(ctx context.Context, request operati } } - res := &operations.PutSourceHardcodedRecordsResponse{ + res := &operations.PutSourceIntercomResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81515,11 +92291,11 @@ func (s *Sources) PutSourceHardcodedRecords(ctx context.Context, request operati } -// 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, } @@ -81541,7 +92317,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 } @@ -81598,7 +92374,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, @@ -81625,11 +92401,11 @@ func (s *Sources) PutSourceHarvest(ctx context.Context, request operations.PutSo } -// PutSourceHibob - Update a Source fully -func (s *Sources) PutSourceHibob(ctx context.Context, request operations.PutSourceHibobRequest, opts ...operations.Option) (*operations.PutSourceHibobResponse, 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: "putSourceHibob", + OperationID: "putSourceIterable", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81651,7 +92427,7 @@ func (s *Sources) PutSourceHibob(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHibobPutRequest", "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 } @@ -81708,7 +92484,7 @@ func (s *Sources) PutSourceHibob(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceHibobResponse{ + res := &operations.PutSourceIterableResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81735,11 +92511,11 @@ func (s *Sources) PutSourceHibob(ctx context.Context, request operations.PutSour } -// PutSourceHighLevel - Update a Source fully -func (s *Sources) PutSourceHighLevel(ctx context.Context, request operations.PutSourceHighLevelRequest, opts ...operations.Option) (*operations.PutSourceHighLevelResponse, 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: "putSourceHighLevel", + OperationID: "putSourceJira", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81761,7 +92537,7 @@ func (s *Sources) PutSourceHighLevel(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHighLevelPutRequest", "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 } @@ -81818,7 +92594,7 @@ func (s *Sources) PutSourceHighLevel(ctx context.Context, request operations.Put } } - res := &operations.PutSourceHighLevelResponse{ + res := &operations.PutSourceJiraResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81845,11 +92621,11 @@ func (s *Sources) PutSourceHighLevel(ctx context.Context, request operations.Put } -// PutSourceHubplanner - Update a Source fully -func (s *Sources) PutSourceHubplanner(ctx context.Context, request operations.PutSourceHubplannerRequest, opts ...operations.Option) (*operations.PutSourceHubplannerResponse, error) { +// PutSourceJotform - Update a Source fully +func (s *Sources) PutSourceJotform(ctx context.Context, request operations.PutSourceJotformRequest, opts ...operations.Option) (*operations.PutSourceJotformResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceHubplanner", + OperationID: "putSourceJotform", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81871,7 +92647,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, "SourceJotformPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -81928,7 +92704,7 @@ func (s *Sources) PutSourceHubplanner(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceHubplannerResponse{ + res := &operations.PutSourceJotformResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81955,11 +92731,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) { +// 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: "putSourceHubspot", + OperationID: "putSourceK6Cloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -81981,7 +92757,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, "SourceK6CloudPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82038,7 +92814,7 @@ func (s *Sources) PutSourceHubspot(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceHubspotResponse{ + res := &operations.PutSourceK6CloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82065,11 +92841,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) { +// 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: "putSourceInsightly", + OperationID: "putSourceKlarna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82091,7 +92867,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, "SourceKlarnaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82148,7 +92924,7 @@ func (s *Sources) PutSourceInsightly(ctx context.Context, request operations.Put } } - res := &operations.PutSourceInsightlyResponse{ + res := &operations.PutSourceKlarnaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82175,11 +92951,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) { +// 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: "putSourceInstagram", + OperationID: "putSourceKlaviyo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82201,7 +92977,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, "SourceKlaviyoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82258,7 +93034,7 @@ func (s *Sources) PutSourceInstagram(ctx context.Context, request operations.Put } } - res := &operations.PutSourceInstagramResponse{ + res := &operations.PutSourceKlaviyoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82285,11 +93061,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) { +// 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: "putSourceInstatus", + OperationID: "putSourceKyve", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82311,7 +93087,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, "SourceKyvePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82368,7 +93144,7 @@ func (s *Sources) PutSourceInstatus(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceInstatusResponse{ + res := &operations.PutSourceKyveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82395,11 +93171,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) { +// 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: "putSourceIntercom", + OperationID: "putSourceLaunchdarkly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82421,7 +93197,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, "SourceLaunchdarklyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82478,7 +93254,7 @@ func (s *Sources) PutSourceIntercom(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceIntercomResponse{ + res := &operations.PutSourceLaunchdarklyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82505,11 +93281,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) { +// 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: "putSourceIp2whois", + OperationID: "putSourceLeadfeeder", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82531,7 +93307,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, "SourceLeadfeederPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82588,7 +93364,7 @@ func (s *Sources) PutSourceIp2whois(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceIp2whoisResponse{ + res := &operations.PutSourceLeadfeederResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82615,11 +93391,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) { +// 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: "putSourceIterable", + OperationID: "putSourceLemlist", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82641,7 +93417,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, "SourceLemlistPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82698,7 +93474,7 @@ func (s *Sources) PutSourceIterable(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceIterableResponse{ + res := &operations.PutSourceLemlistResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82725,11 +93501,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) { +// 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: "putSourceJira", + OperationID: "putSourceLeverHiring", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82751,7 +93527,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, "SourceLeverHiringPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82808,7 +93584,7 @@ func (s *Sources) PutSourceJira(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceJiraResponse{ + res := &operations.PutSourceLeverHiringResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82835,11 +93611,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) { +// 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: "putSourceK6Cloud", + OperationID: "putSourceLinkedinAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82861,7 +93637,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, "SourceLinkedinAdsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82918,7 +93694,7 @@ func (s *Sources) PutSourceK6Cloud(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceK6CloudResponse{ + res := &operations.PutSourceLinkedinAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -82945,11 +93721,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) { +// 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: "putSourceKlarna", + OperationID: "putSourceLinkedinPages", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -82971,7 +93747,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, "SourceLinkedinPagesPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -83028,7 +93804,7 @@ func (s *Sources) PutSourceKlarna(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceKlarnaResponse{ + res := &operations.PutSourceLinkedinPagesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -83055,11 +93831,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) { +// 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: "putSourceKlaviyo", + OperationID: "putSourceLinnworks", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -83081,7 +93857,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, "SourceLinnworksPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -83138,7 +93914,7 @@ func (s *Sources) PutSourceKlaviyo(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceKlaviyoResponse{ + res := &operations.PutSourceLinnworksResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -83165,11 +93941,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) { +// 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: "putSourceKyve", + OperationID: "putSourceLokalise", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -83191,7 +93967,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, "SourceLokalisePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -83248,7 +94024,7 @@ func (s *Sources) PutSourceKyve(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceKyveResponse{ + res := &operations.PutSourceLokaliseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -83275,11 +94051,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) { +// 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: "putSourceLaunchdarkly", + OperationID: "putSourceLooker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -83301,7 +94077,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, "SourceLookerPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -83358,7 +94134,7 @@ func (s *Sources) PutSourceLaunchdarkly(ctx context.Context, request operations. } } - res := &operations.PutSourceLaunchdarklyResponse{ + res := &operations.PutSourceLookerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -83385,11 +94161,11 @@ func (s *Sources) PutSourceLaunchdarkly(ctx context.Context, request operations. } -// PutSourceLeadfeeder - Update a Source fully -func (s *Sources) PutSourceLeadfeeder(ctx context.Context, request operations.PutSourceLeadfeederRequest, opts ...operations.Option) (*operations.PutSourceLeadfeederResponse, 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: "putSourceLeadfeeder", + OperationID: "putSourceLuma", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -83411,7 +94187,7 @@ func (s *Sources) PutSourceLeadfeeder(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLeadfeederPutRequest", "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 } @@ -83468,7 +94244,7 @@ func (s *Sources) PutSourceLeadfeeder(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceLeadfeederResponse{ + res := &operations.PutSourceLumaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -83495,11 +94271,11 @@ func (s *Sources) PutSourceLeadfeeder(ctx context.Context, request operations.Pu } -// PutSourceLemlist - Update a Source fully -func (s *Sources) PutSourceLemlist(ctx context.Context, request operations.PutSourceLemlistRequest, opts ...operations.Option) (*operations.PutSourceLemlistResponse, 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: "putSourceLemlist", + OperationID: "putSourceMailchimp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -83521,7 +94297,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, "SourceMailchimpPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -83578,7 +94354,7 @@ func (s *Sources) PutSourceLemlist(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceLemlistResponse{ + res := &operations.PutSourceMailchimpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -83605,11 +94381,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) { +// 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: "putSourceLeverHiring", + OperationID: "putSourceMailgun", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -83631,7 +94407,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, "SourceMailgunPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -83688,7 +94464,7 @@ func (s *Sources) PutSourceLeverHiring(ctx context.Context, request operations.P } } - res := &operations.PutSourceLeverHiringResponse{ + res := &operations.PutSourceMailgunResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -83715,11 +94491,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) { +// 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: "putSourceLinkedinAds", + OperationID: "putSourceMailjetSms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -83741,7 +94517,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, "SourceMailjetSmsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -83798,7 +94574,7 @@ func (s *Sources) PutSourceLinkedinAds(ctx context.Context, request operations.P } } - res := &operations.PutSourceLinkedinAdsResponse{ + res := &operations.PutSourceMailjetSmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -83825,11 +94601,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) { +// 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: "putSourceLinkedinPages", + OperationID: "putSourceMarketo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -83851,7 +94627,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, "SourceMarketoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -83908,7 +94684,7 @@ func (s *Sources) PutSourceLinkedinPages(ctx context.Context, request operations } } - res := &operations.PutSourceLinkedinPagesResponse{ + res := &operations.PutSourceMarketoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -83935,11 +94711,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) { +// 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: "putSourceLinnworks", + OperationID: "putSourceMetabase", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -83961,7 +94737,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, "SourceMetabasePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -84018,7 +94794,7 @@ func (s *Sources) PutSourceLinnworks(ctx context.Context, request operations.Put } } - res := &operations.PutSourceLinnworksResponse{ + res := &operations.PutSourceMetabaseResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -84045,11 +94821,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) { +// 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: "putSourceLokalise", + OperationID: "putSourceMicrosoftOnedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -84071,7 +94847,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, "SourceMicrosoftOnedrivePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -84128,7 +94904,7 @@ func (s *Sources) PutSourceLokalise(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceLokaliseResponse{ + res := &operations.PutSourceMicrosoftOnedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -84155,11 +94931,11 @@ func (s *Sources) PutSourceLokalise(ctx context.Context, request operations.PutS } -// PutSourceLooker - Update a Source fully -func (s *Sources) PutSourceLooker(ctx context.Context, request operations.PutSourceLookerRequest, opts ...operations.Option) (*operations.PutSourceLookerResponse, 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: "putSourceLooker", + OperationID: "putSourceMicrosoftSharepoint", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -84181,7 +94957,7 @@ func (s *Sources) PutSourceLooker(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLookerPutRequest", "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 } @@ -84238,7 +95014,7 @@ func (s *Sources) PutSourceLooker(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceLookerResponse{ + res := &operations.PutSourceMicrosoftSharepointResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -84265,11 +95041,11 @@ func (s *Sources) PutSourceLooker(ctx context.Context, request operations.PutSou } -// PutSourceLuma - Update a Source fully -func (s *Sources) PutSourceLuma(ctx context.Context, request operations.PutSourceLumaRequest, opts ...operations.Option) (*operations.PutSourceLumaResponse, 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: "putSourceLuma", + OperationID: "putSourceMicrosoftTeams", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -84291,7 +95067,7 @@ func (s *Sources) PutSourceLuma(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLumaPutRequest", "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 } @@ -84348,7 +95124,7 @@ func (s *Sources) PutSourceLuma(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceLumaResponse{ + res := &operations.PutSourceMicrosoftTeamsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -84375,11 +95151,11 @@ func (s *Sources) PutSourceLuma(ctx context.Context, request operations.PutSourc } -// PutSourceMailchimp - Update a Source fully -func (s *Sources) PutSourceMailchimp(ctx context.Context, request operations.PutSourceMailchimpRequest, opts ...operations.Option) (*operations.PutSourceMailchimpResponse, 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: "putSourceMailchimp", + OperationID: "putSourceMixpanel", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -84401,7 +95177,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, "SourceMixpanelPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -84458,7 +95234,7 @@ func (s *Sources) PutSourceMailchimp(ctx context.Context, request operations.Put } } - res := &operations.PutSourceMailchimpResponse{ + res := &operations.PutSourceMixpanelResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -84485,11 +95261,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) { +// 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: "putSourceMailgun", + OperationID: "putSourceMonday", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -84511,7 +95287,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, "SourceMondayPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -84568,7 +95344,7 @@ func (s *Sources) PutSourceMailgun(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceMailgunResponse{ + res := &operations.PutSourceMondayResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -84595,11 +95371,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) { +// 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: "putSourceMailjetSms", + OperationID: "putSourceMongodbV2", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -84621,7 +95397,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, "SourceMongodbV2PutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -84678,7 +95454,7 @@ func (s *Sources) PutSourceMailjetSms(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceMailjetSmsResponse{ + res := &operations.PutSourceMongodbV2Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -84705,11 +95481,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) { +// 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: "putSourceMarketo", + OperationID: "putSourceMssql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -84731,7 +95507,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, "SourceMssqlPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -84788,7 +95564,7 @@ func (s *Sources) PutSourceMarketo(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceMarketoResponse{ + res := &operations.PutSourceMssqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -84815,11 +95591,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) { +// 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: "putSourceMetabase", + OperationID: "putSourceMyHours", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -84841,7 +95617,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, "SourceMyHoursPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -84898,7 +95674,7 @@ func (s *Sources) PutSourceMetabase(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceMetabaseResponse{ + res := &operations.PutSourceMyHoursResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -84925,11 +95701,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) { +// 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: "putSourceMicrosoftOnedrive", + OperationID: "putSourceMysql", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -84951,7 +95727,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, "SourceMysqlPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85008,7 +95784,7 @@ func (s *Sources) PutSourceMicrosoftOnedrive(ctx context.Context, request operat } } - res := &operations.PutSourceMicrosoftOnedriveResponse{ + res := &operations.PutSourceMysqlResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -85035,11 +95811,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) { +// 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: "putSourceMicrosoftSharepoint", + OperationID: "putSourceNetsuite", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -85061,7 +95837,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, "SourceNetsuitePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85118,7 +95894,7 @@ func (s *Sources) PutSourceMicrosoftSharepoint(ctx context.Context, request oper } } - res := &operations.PutSourceMicrosoftSharepointResponse{ + res := &operations.PutSourceNetsuiteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -85145,11 +95921,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) { +// 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: "putSourceMicrosoftTeams", + OperationID: "putSourceNorthpassLms", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -85171,7 +95947,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, "SourceNorthpassLmsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85228,7 +96004,7 @@ func (s *Sources) PutSourceMicrosoftTeams(ctx context.Context, request operation } } - res := &operations.PutSourceMicrosoftTeamsResponse{ + res := &operations.PutSourceNorthpassLmsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -85255,11 +96031,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) { +// 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: "putSourceMixpanel", + OperationID: "putSourceNotion", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -85281,7 +96057,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, "SourceNotionPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85338,7 +96114,7 @@ func (s *Sources) PutSourceMixpanel(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceMixpanelResponse{ + res := &operations.PutSourceNotionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -85365,11 +96141,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) { +// PutSourceNylas - Update a Source fully +func (s *Sources) PutSourceNylas(ctx context.Context, request operations.PutSourceNylasRequest, opts ...operations.Option) (*operations.PutSourceNylasResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceMonday", + OperationID: "putSourceNylas", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -85391,7 +96167,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, "SourceNylasPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85448,7 +96224,7 @@ func (s *Sources) PutSourceMonday(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceMondayResponse{ + res := &operations.PutSourceNylasResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -85475,11 +96251,11 @@ func (s *Sources) PutSourceMonday(ctx context.Context, request operations.PutSou } -// PutSourceMongodbV2 - Update a Source fully -func (s *Sources) PutSourceMongodbV2(ctx context.Context, request operations.PutSourceMongodbV2Request, opts ...operations.Option) (*operations.PutSourceMongodbV2Response, 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: "putSourceMongodbV2", + OperationID: "putSourceNytimes", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -85501,7 +96277,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, "SourceNytimesPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85558,7 +96334,7 @@ func (s *Sources) PutSourceMongodbV2(ctx context.Context, request operations.Put } } - res := &operations.PutSourceMongodbV2Response{ + res := &operations.PutSourceNytimesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -85585,11 +96361,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) { +// 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: "putSourceMssql", + OperationID: "putSourceOkta", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -85611,7 +96387,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, "SourceOktaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85668,7 +96444,7 @@ func (s *Sources) PutSourceMssql(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceMssqlResponse{ + res := &operations.PutSourceOktaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -85695,11 +96471,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) { +// 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: "putSourceMyHours", + OperationID: "putSourceOmnisend", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -85721,7 +96497,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, "SourceOmnisendPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85778,7 +96554,7 @@ func (s *Sources) PutSourceMyHours(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceMyHoursResponse{ + res := &operations.PutSourceOmnisendResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -85805,11 +96581,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) { +// 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: "putSourceMysql", + OperationID: "putSourceOnesignal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -85831,7 +96607,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, "SourceOnesignalPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85888,7 +96664,7 @@ func (s *Sources) PutSourceMysql(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceMysqlResponse{ + res := &operations.PutSourceOnesignalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -85915,11 +96691,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) { +// 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: "putSourceNetsuite", + OperationID: "putSourceOracle", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -85941,7 +96717,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, "SourceOraclePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -85998,7 +96774,7 @@ func (s *Sources) PutSourceNetsuite(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceNetsuiteResponse{ + res := &operations.PutSourceOracleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -86025,11 +96801,11 @@ func (s *Sources) PutSourceNetsuite(ctx context.Context, request operations.PutS } -// PutSourceNorthpassLms - Update a Source fully -func (s *Sources) PutSourceNorthpassLms(ctx context.Context, request operations.PutSourceNorthpassLmsRequest, opts ...operations.Option) (*operations.PutSourceNorthpassLmsResponse, 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: "putSourceNorthpassLms", + OperationID: "putSourceOrb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -86051,7 +96827,7 @@ func (s *Sources) PutSourceNorthpassLms(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNorthpassLmsPutRequest", "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 } @@ -86108,7 +96884,7 @@ func (s *Sources) PutSourceNorthpassLms(ctx context.Context, request operations. } } - res := &operations.PutSourceNorthpassLmsResponse{ + res := &operations.PutSourceOrbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -86135,11 +96911,11 @@ func (s *Sources) PutSourceNorthpassLms(ctx context.Context, request operations. } -// PutSourceNotion - Update a Source fully -func (s *Sources) PutSourceNotion(ctx context.Context, request operations.PutSourceNotionRequest, opts ...operations.Option) (*operations.PutSourceNotionResponse, 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: "putSourceNotion", + OperationID: "putSourceOrbit", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -86161,7 +96937,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, "SourceOrbitPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -86218,7 +96994,7 @@ func (s *Sources) PutSourceNotion(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceNotionResponse{ + res := &operations.PutSourceOrbitResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -86245,11 +97021,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) { +// 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: "putSourceNytimes", + OperationID: "putSourceOutbrainAmplify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -86271,7 +97047,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, "SourceOutbrainAmplifyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -86328,7 +97104,7 @@ func (s *Sources) PutSourceNytimes(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceNytimesResponse{ + res := &operations.PutSourceOutbrainAmplifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -86355,11 +97131,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) { +// 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: "putSourceOkta", + OperationID: "putSourceOutreach", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -86381,7 +97157,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, "SourceOutreachPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -86438,7 +97214,7 @@ func (s *Sources) PutSourceOkta(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceOktaResponse{ + res := &operations.PutSourceOutreachResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -86465,11 +97241,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) { +// 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: "putSourceOmnisend", + OperationID: "putSourcePaypalTransaction", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -86491,7 +97267,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, "SourcePaypalTransactionPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -86548,7 +97324,7 @@ func (s *Sources) PutSourceOmnisend(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceOmnisendResponse{ + res := &operations.PutSourcePaypalTransactionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -86575,11 +97351,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) { +// 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: "putSourceOnesignal", + OperationID: "putSourcePaystack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -86601,7 +97377,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, "SourcePaystackPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -86658,7 +97434,7 @@ func (s *Sources) PutSourceOnesignal(ctx context.Context, request operations.Put } } - res := &operations.PutSourceOnesignalResponse{ + res := &operations.PutSourcePaystackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -86685,11 +97461,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) { +// 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: "putSourceOracle", + OperationID: "putSourcePendo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -86711,7 +97487,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, "SourcePendoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -86768,7 +97544,7 @@ func (s *Sources) PutSourceOracle(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceOracleResponse{ + res := &operations.PutSourcePendoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -86795,11 +97571,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) { +// 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: "putSourceOrb", + OperationID: "putSourcePennylane", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -86821,7 +97597,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, "SourcePennylanePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -86878,7 +97654,7 @@ func (s *Sources) PutSourceOrb(ctx context.Context, request operations.PutSource } } - res := &operations.PutSourceOrbResponse{ + res := &operations.PutSourcePennylaneResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -86905,11 +97681,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) { +// 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: "putSourceOrbit", + OperationID: "putSourcePersistiq", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -86931,7 +97707,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, "SourcePersistiqPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -86988,7 +97764,7 @@ func (s *Sources) PutSourceOrbit(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceOrbitResponse{ + res := &operations.PutSourcePersistiqResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -87015,11 +97791,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) { +// 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: "putSourceOutbrainAmplify", + OperationID: "putSourcePexelsApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -87041,7 +97817,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, "SourcePexelsAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -87098,7 +97874,7 @@ func (s *Sources) PutSourceOutbrainAmplify(ctx context.Context, request operatio } } - res := &operations.PutSourceOutbrainAmplifyResponse{ + res := &operations.PutSourcePexelsAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -87125,11 +97901,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) { +// PutSourcePicqer - Update a Source fully +func (s *Sources) PutSourcePicqer(ctx context.Context, request operations.PutSourcePicqerRequest, opts ...operations.Option) (*operations.PutSourcePicqerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceOutreach", + OperationID: "putSourcePicqer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -87151,7 +97927,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, "SourcePicqerPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -87208,7 +97984,7 @@ func (s *Sources) PutSourceOutreach(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceOutreachResponse{ + res := &operations.PutSourcePicqerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -87235,11 +98011,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) { +// 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: "putSourcePaypalTransaction", + OperationID: "putSourcePinterest", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -87261,7 +98037,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, "SourcePinterestPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -87318,7 +98094,7 @@ func (s *Sources) PutSourcePaypalTransaction(ctx context.Context, request operat } } - res := &operations.PutSourcePaypalTransactionResponse{ + res := &operations.PutSourcePinterestResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -87345,11 +98121,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) { +// 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: "putSourcePaystack", + OperationID: "putSourcePipedrive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -87371,7 +98147,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, "SourcePipedrivePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -87428,7 +98204,7 @@ func (s *Sources) PutSourcePaystack(ctx context.Context, request operations.PutS } } - res := &operations.PutSourcePaystackResponse{ + res := &operations.PutSourcePipedriveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -87455,11 +98231,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) { +// PutSourcePiwik - Update a Source fully +func (s *Sources) PutSourcePiwik(ctx context.Context, request operations.PutSourcePiwikRequest, opts ...operations.Option) (*operations.PutSourcePiwikResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePendo", + OperationID: "putSourcePiwik", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -87481,7 +98257,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, "SourcePiwikPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -87538,7 +98314,7 @@ func (s *Sources) PutSourcePendo(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourcePendoResponse{ + res := &operations.PutSourcePiwikResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -87565,11 +98341,11 @@ func (s *Sources) PutSourcePendo(ctx context.Context, request operations.PutSour } -// PutSourcePennylane - Update a Source fully -func (s *Sources) PutSourcePennylane(ctx context.Context, request operations.PutSourcePennylaneRequest, opts ...operations.Option) (*operations.PutSourcePennylaneResponse, 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: "putSourcePennylane", + OperationID: "putSourcePlanhat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -87591,7 +98367,7 @@ func (s *Sources) PutSourcePennylane(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePennylanePutRequest", "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 } @@ -87648,7 +98424,7 @@ func (s *Sources) PutSourcePennylane(ctx context.Context, request operations.Put } } - res := &operations.PutSourcePennylaneResponse{ + res := &operations.PutSourcePlanhatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -87675,11 +98451,11 @@ func (s *Sources) PutSourcePennylane(ctx context.Context, request operations.Put } -// PutSourcePersistiq - Update a Source fully -func (s *Sources) PutSourcePersistiq(ctx context.Context, request operations.PutSourcePersistiqRequest, opts ...operations.Option) (*operations.PutSourcePersistiqResponse, 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: "putSourcePersistiq", + OperationID: "putSourcePocket", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -87701,7 +98477,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, "SourcePocketPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -87758,7 +98534,7 @@ func (s *Sources) PutSourcePersistiq(ctx context.Context, request operations.Put } } - res := &operations.PutSourcePersistiqResponse{ + res := &operations.PutSourcePocketResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -87785,11 +98561,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) { +// 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: "putSourcePexelsApi", + OperationID: "putSourcePokeapi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -87811,7 +98587,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, "SourcePokeapiPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -87868,7 +98644,7 @@ func (s *Sources) PutSourcePexelsAPI(ctx context.Context, request operations.Put } } - res := &operations.PutSourcePexelsAPIResponse{ + res := &operations.PutSourcePokeapiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -87895,11 +98671,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) { +// 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: "putSourcePinterest", + OperationID: "putSourcePolygonStockApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -87921,7 +98697,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, "SourcePolygonStockAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -87978,7 +98754,7 @@ func (s *Sources) PutSourcePinterest(ctx context.Context, request operations.Put } } - res := &operations.PutSourcePinterestResponse{ + res := &operations.PutSourcePolygonStockAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88005,11 +98781,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) { +// 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: "putSourcePipedrive", + OperationID: "putSourcePostgres", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -88031,7 +98807,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, "SourcePostgresPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -88088,7 +98864,7 @@ func (s *Sources) PutSourcePipedrive(ctx context.Context, request operations.Put } } - res := &operations.PutSourcePipedriveResponse{ + res := &operations.PutSourcePostgresResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88115,11 +98891,11 @@ func (s *Sources) PutSourcePipedrive(ctx context.Context, request operations.Put } -// PutSourcePlanhat - Update a Source fully -func (s *Sources) PutSourcePlanhat(ctx context.Context, request operations.PutSourcePlanhatRequest, opts ...operations.Option) (*operations.PutSourcePlanhatResponse, 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: "putSourcePlanhat", + OperationID: "putSourcePosthog", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -88141,7 +98917,7 @@ func (s *Sources) PutSourcePlanhat(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePlanhatPutRequest", "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 } @@ -88198,7 +98974,7 @@ func (s *Sources) PutSourcePlanhat(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourcePlanhatResponse{ + res := &operations.PutSourcePosthogResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88225,11 +99001,11 @@ func (s *Sources) PutSourcePlanhat(ctx context.Context, request operations.PutSo } -// PutSourcePocket - Update a Source fully -func (s *Sources) PutSourcePocket(ctx context.Context, request operations.PutSourcePocketRequest, opts ...operations.Option) (*operations.PutSourcePocketResponse, 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: "putSourcePocket", + OperationID: "putSourcePostmarkapp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -88251,7 +99027,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, "SourcePostmarkappPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -88308,7 +99084,7 @@ func (s *Sources) PutSourcePocket(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourcePocketResponse{ + res := &operations.PutSourcePostmarkappResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88335,11 +99111,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) { +// 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: "putSourcePokeapi", + OperationID: "putSourcePrestashop", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -88361,7 +99137,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, "SourcePrestashopPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -88418,7 +99194,7 @@ func (s *Sources) PutSourcePokeapi(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourcePokeapiResponse{ + res := &operations.PutSourcePrestashopResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88445,11 +99221,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) { +// PutSourceProductboard - Update a Source fully +func (s *Sources) PutSourceProductboard(ctx context.Context, request operations.PutSourceProductboardRequest, opts ...operations.Option) (*operations.PutSourceProductboardResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePolygonStockApi", + OperationID: "putSourceProductboard", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -88471,7 +99247,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, "SourceProductboardPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -88528,7 +99304,7 @@ func (s *Sources) PutSourcePolygonStockAPI(ctx context.Context, request operatio } } - res := &operations.PutSourcePolygonStockAPIResponse{ + res := &operations.PutSourceProductboardResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88555,11 +99331,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) { +// PutSourceProductive - Update a Source fully +func (s *Sources) PutSourceProductive(ctx context.Context, request operations.PutSourceProductiveRequest, opts ...operations.Option) (*operations.PutSourceProductiveResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourcePostgres", + OperationID: "putSourceProductive", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -88581,7 +99357,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, "SourceProductivePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -88638,7 +99414,7 @@ func (s *Sources) PutSourcePostgres(ctx context.Context, request operations.PutS } } - res := &operations.PutSourcePostgresResponse{ + res := &operations.PutSourceProductiveResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88665,11 +99441,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) { +// 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: "putSourcePosthog", + OperationID: "putSourcePypi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -88691,7 +99467,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, "SourcePypiPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -88748,7 +99524,7 @@ func (s *Sources) PutSourcePosthog(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourcePosthogResponse{ + res := &operations.PutSourcePypiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88775,11 +99551,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) { +// 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: "putSourcePostmarkapp", + OperationID: "putSourceQualaroo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -88801,7 +99577,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, "SourceQualarooPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -88858,7 +99634,7 @@ func (s *Sources) PutSourcePostmarkapp(ctx context.Context, request operations.P } } - res := &operations.PutSourcePostmarkappResponse{ + res := &operations.PutSourceQualarooResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88885,11 +99661,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) { +// 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: "putSourcePrestashop", + OperationID: "putSourceRailz", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -88911,7 +99687,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, "SourceRailzPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -88968,7 +99744,7 @@ func (s *Sources) PutSourcePrestashop(ctx context.Context, request operations.Pu } } - res := &operations.PutSourcePrestashopResponse{ + res := &operations.PutSourceRailzResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -88995,11 +99771,11 @@ func (s *Sources) PutSourcePrestashop(ctx context.Context, request operations.Pu } -// 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, } @@ -89021,7 +99797,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 } @@ -89078,7 +99854,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, @@ -89105,11 +99881,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, } @@ -89131,7 +99907,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 } @@ -89188,7 +99964,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, @@ -89215,11 +99991,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, } @@ -89241,7 +100017,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 } @@ -89298,7 +100074,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, @@ -89325,11 +100101,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, } @@ -89351,7 +100127,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 } @@ -89408,7 +100184,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, @@ -89435,11 +100211,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, } @@ -89461,7 +100237,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 } @@ -89518,7 +100294,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, @@ -89545,11 +100321,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, } @@ -89571,7 +100347,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 } @@ -89628,7 +100404,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, @@ -89655,11 +100431,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, } @@ -89681,7 +100457,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 } @@ -89738,7 +100514,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, @@ -89765,11 +100541,11 @@ func (s *Sources) PutSourceRecurly(ctx context.Context, request operations.PutSo } -// PutSourceReddit - Update a Source fully -func (s *Sources) PutSourceReddit(ctx context.Context, request operations.PutSourceRedditRequest, opts ...operations.Option) (*operations.PutSourceRedditResponse, 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: "putSourceReddit", + OperationID: "putSourceRkiCovid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -89791,7 +100567,7 @@ func (s *Sources) PutSourceReddit(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRedditPutRequest", "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 } @@ -89848,7 +100624,7 @@ func (s *Sources) PutSourceReddit(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceRedditResponse{ + res := &operations.PutSourceRkiCovidResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -89875,11 +100651,11 @@ func (s *Sources) PutSourceReddit(ctx context.Context, request operations.PutSou } -// PutSourceRedshift - Update a Source fully -func (s *Sources) PutSourceRedshift(ctx context.Context, request operations.PutSourceRedshiftRequest, opts ...operations.Option) (*operations.PutSourceRedshiftResponse, 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: "putSourceRedshift", + OperationID: "putSourceRss", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -89901,7 +100677,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, "SourceRssPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -89958,7 +100734,7 @@ func (s *Sources) PutSourceRedshift(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceRedshiftResponse{ + res := &operations.PutSourceRssResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -89985,11 +100761,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) { +// 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: "putSourceRetently", + OperationID: "putSourceS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -90011,7 +100787,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, "SourceS3PutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -90068,7 +100844,7 @@ func (s *Sources) PutSourceRetently(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceRetentlyResponse{ + res := &operations.PutSourceS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -90095,11 +100871,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) { +// 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: "putSourceRkiCovid", + OperationID: "putSourceSalesforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -90121,7 +100897,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, "SourceSalesforcePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -90178,7 +100954,7 @@ func (s *Sources) PutSourceRkiCovid(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceRkiCovidResponse{ + res := &operations.PutSourceSalesforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -90205,11 +100981,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) { +// 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: "putSourceRss", + OperationID: "putSourceSalesloft", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -90231,7 +101007,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, "SourceSalesloftPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -90288,7 +101064,7 @@ func (s *Sources) PutSourceRss(ctx context.Context, request operations.PutSource } } - res := &operations.PutSourceRssResponse{ + res := &operations.PutSourceSalesloftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -90315,11 +101091,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) { +// 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: "putSourceS3", + OperationID: "putSourceSapFieldglass", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -90341,7 +101117,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, "SourceSapFieldglassPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -90398,7 +101174,7 @@ func (s *Sources) PutSourceS3(ctx context.Context, request operations.PutSourceS } } - res := &operations.PutSourceS3Response{ + res := &operations.PutSourceSapFieldglassResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -90425,11 +101201,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) { +// 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: "putSourceSalesforce", + OperationID: "putSourceSavvycal", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -90451,7 +101227,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, "SourceSavvycalPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -90508,7 +101284,7 @@ func (s *Sources) PutSourceSalesforce(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceSalesforceResponse{ + res := &operations.PutSourceSavvycalResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -90535,11 +101311,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) { +// 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: "putSourceSalesloft", + OperationID: "putSourceScryfall", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -90561,7 +101337,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, "SourceScryfallPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -90618,7 +101394,7 @@ func (s *Sources) PutSourceSalesloft(ctx context.Context, request operations.Put } } - res := &operations.PutSourceSalesloftResponse{ + res := &operations.PutSourceScryfallResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -90645,11 +101421,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) { +// PutSourceSecoda - Update a Source fully +func (s *Sources) PutSourceSecoda(ctx context.Context, request operations.PutSourceSecodaRequest, opts ...operations.Option) (*operations.PutSourceSecodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSapFieldglass", + OperationID: "putSourceSecoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -90671,7 +101447,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, "SourceSecodaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -90728,7 +101504,7 @@ func (s *Sources) PutSourceSapFieldglass(ctx context.Context, request operations } } - res := &operations.PutSourceSapFieldglassResponse{ + res := &operations.PutSourceSecodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -90755,11 +101531,11 @@ func (s *Sources) PutSourceSapFieldglass(ctx context.Context, request operations } -// PutSourceSavvycal - Update a Source fully -func (s *Sources) PutSourceSavvycal(ctx context.Context, request operations.PutSourceSavvycalRequest, opts ...operations.Option) (*operations.PutSourceSavvycalResponse, error) { +// PutSourceSendgrid - Update a Source fully +func (s *Sources) PutSourceSendgrid(ctx context.Context, request operations.PutSourceSendgridRequest, opts ...operations.Option) (*operations.PutSourceSendgridResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSavvycal", + OperationID: "putSourceSendgrid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -90781,7 +101557,7 @@ func (s *Sources) PutSourceSavvycal(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSavvycalPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSendgridPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -90838,7 +101614,7 @@ func (s *Sources) PutSourceSavvycal(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceSavvycalResponse{ + res := &operations.PutSourceSendgridResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -90865,11 +101641,11 @@ func (s *Sources) PutSourceSavvycal(ctx context.Context, request operations.PutS } -// PutSourceScryfall - Update a Source fully -func (s *Sources) PutSourceScryfall(ctx context.Context, request operations.PutSourceScryfallRequest, opts ...operations.Option) (*operations.PutSourceScryfallResponse, error) { +// PutSourceSendinblue - Update a Source fully +func (s *Sources) PutSourceSendinblue(ctx context.Context, request operations.PutSourceSendinblueRequest, opts ...operations.Option) (*operations.PutSourceSendinblueResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceScryfall", + OperationID: "putSourceSendinblue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -90891,7 +101667,7 @@ func (s *Sources) PutSourceScryfall(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceScryfallPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSendinbluePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -90948,7 +101724,7 @@ func (s *Sources) PutSourceScryfall(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceScryfallResponse{ + res := &operations.PutSourceSendinblueResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -90975,11 +101751,11 @@ func (s *Sources) PutSourceScryfall(ctx context.Context, request operations.PutS } -// PutSourceSecoda - Update a Source fully -func (s *Sources) PutSourceSecoda(ctx context.Context, request operations.PutSourceSecodaRequest, opts ...operations.Option) (*operations.PutSourceSecodaResponse, error) { +// PutSourceSenseforce - Update a Source fully +func (s *Sources) PutSourceSenseforce(ctx context.Context, request operations.PutSourceSenseforceRequest, opts ...operations.Option) (*operations.PutSourceSenseforceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSecoda", + OperationID: "putSourceSenseforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91001,7 +101777,7 @@ func (s *Sources) PutSourceSecoda(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSecodaPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSenseforcePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -91058,7 +101834,7 @@ func (s *Sources) PutSourceSecoda(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceSecodaResponse{ + res := &operations.PutSourceSenseforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -91085,11 +101861,11 @@ func (s *Sources) PutSourceSecoda(ctx context.Context, request operations.PutSou } -// PutSourceSendgrid - Update a Source fully -func (s *Sources) PutSourceSendgrid(ctx context.Context, request operations.PutSourceSendgridRequest, opts ...operations.Option) (*operations.PutSourceSendgridResponse, error) { +// PutSourceSentry - Update a Source fully +func (s *Sources) PutSourceSentry(ctx context.Context, request operations.PutSourceSentryRequest, opts ...operations.Option) (*operations.PutSourceSentryResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSendgrid", + OperationID: "putSourceSentry", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91111,7 +101887,7 @@ func (s *Sources) PutSourceSendgrid(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSendgridPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSentryPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -91168,7 +101944,7 @@ func (s *Sources) PutSourceSendgrid(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceSendgridResponse{ + res := &operations.PutSourceSentryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -91195,11 +101971,11 @@ func (s *Sources) PutSourceSendgrid(ctx context.Context, request operations.PutS } -// PutSourceSendinblue - Update a Source fully -func (s *Sources) PutSourceSendinblue(ctx context.Context, request operations.PutSourceSendinblueRequest, opts ...operations.Option) (*operations.PutSourceSendinblueResponse, error) { +// PutSourceSftp - Update a Source fully +func (s *Sources) PutSourceSftp(ctx context.Context, request operations.PutSourceSftpRequest, opts ...operations.Option) (*operations.PutSourceSftpResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSendinblue", + OperationID: "putSourceSftp", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91221,7 +101997,7 @@ func (s *Sources) PutSourceSendinblue(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSendinbluePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSftpPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -91278,7 +102054,7 @@ func (s *Sources) PutSourceSendinblue(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceSendinblueResponse{ + res := &operations.PutSourceSftpResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -91305,11 +102081,11 @@ func (s *Sources) PutSourceSendinblue(ctx context.Context, request operations.Pu } -// PutSourceSenseforce - Update a Source fully -func (s *Sources) PutSourceSenseforce(ctx context.Context, request operations.PutSourceSenseforceRequest, opts ...operations.Option) (*operations.PutSourceSenseforceResponse, error) { +// PutSourceSftpBulk - Update a Source fully +func (s *Sources) PutSourceSftpBulk(ctx context.Context, request operations.PutSourceSftpBulkRequest, opts ...operations.Option) (*operations.PutSourceSftpBulkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSenseforce", + OperationID: "putSourceSftpBulk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91331,7 +102107,7 @@ func (s *Sources) PutSourceSenseforce(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSenseforcePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSftpBulkPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -91388,7 +102164,7 @@ func (s *Sources) PutSourceSenseforce(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceSenseforceResponse{ + res := &operations.PutSourceSftpBulkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -91415,11 +102191,11 @@ func (s *Sources) PutSourceSenseforce(ctx context.Context, request operations.Pu } -// PutSourceSentry - Update a Source fully -func (s *Sources) PutSourceSentry(ctx context.Context, request operations.PutSourceSentryRequest, opts ...operations.Option) (*operations.PutSourceSentryResponse, error) { +// PutSourceShopify - Update a Source fully +func (s *Sources) PutSourceShopify(ctx context.Context, request operations.PutSourceShopifyRequest, opts ...operations.Option) (*operations.PutSourceShopifyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSentry", + OperationID: "putSourceShopify", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91441,7 +102217,7 @@ func (s *Sources) PutSourceSentry(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSentryPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceShopifyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -91498,7 +102274,7 @@ func (s *Sources) PutSourceSentry(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceSentryResponse{ + res := &operations.PutSourceShopifyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -91525,11 +102301,11 @@ func (s *Sources) PutSourceSentry(ctx context.Context, request operations.PutSou } -// PutSourceSftp - Update a Source fully -func (s *Sources) PutSourceSftp(ctx context.Context, request operations.PutSourceSftpRequest, opts ...operations.Option) (*operations.PutSourceSftpResponse, error) { +// PutSourceShortcut - Update a Source fully +func (s *Sources) PutSourceShortcut(ctx context.Context, request operations.PutSourceShortcutRequest, opts ...operations.Option) (*operations.PutSourceShortcutResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSftp", + OperationID: "putSourceShortcut", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91551,7 +102327,7 @@ func (s *Sources) PutSourceSftp(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSftpPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceShortcutPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -91608,7 +102384,7 @@ func (s *Sources) PutSourceSftp(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceSftpResponse{ + res := &operations.PutSourceShortcutResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -91635,11 +102411,11 @@ func (s *Sources) PutSourceSftp(ctx context.Context, request operations.PutSourc } -// PutSourceSftpBulk - Update a Source fully -func (s *Sources) PutSourceSftpBulk(ctx context.Context, request operations.PutSourceSftpBulkRequest, opts ...operations.Option) (*operations.PutSourceSftpBulkResponse, error) { +// PutSourceShortio - Update a Source fully +func (s *Sources) PutSourceShortio(ctx context.Context, request operations.PutSourceShortioRequest, opts ...operations.Option) (*operations.PutSourceShortioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSftpBulk", + OperationID: "putSourceShortio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91661,7 +102437,7 @@ func (s *Sources) PutSourceSftpBulk(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSftpBulkPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceShortioPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -91718,7 +102494,7 @@ func (s *Sources) PutSourceSftpBulk(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceSftpBulkResponse{ + res := &operations.PutSourceShortioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -91745,11 +102521,11 @@ func (s *Sources) PutSourceSftpBulk(ctx context.Context, request operations.PutS } -// PutSourceShopify - Update a Source fully -func (s *Sources) PutSourceShopify(ctx context.Context, request operations.PutSourceShopifyRequest, opts ...operations.Option) (*operations.PutSourceShopifyResponse, error) { +// PutSourceSlack - Update a Source fully +func (s *Sources) PutSourceSlack(ctx context.Context, request operations.PutSourceSlackRequest, opts ...operations.Option) (*operations.PutSourceSlackResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceShopify", + OperationID: "putSourceSlack", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91771,7 +102547,7 @@ func (s *Sources) PutSourceShopify(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceShopifyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSlackPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -91828,7 +102604,7 @@ func (s *Sources) PutSourceShopify(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceShopifyResponse{ + res := &operations.PutSourceSlackResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -91855,11 +102631,11 @@ func (s *Sources) PutSourceShopify(ctx context.Context, request operations.PutSo } -// PutSourceShortio - Update a Source fully -func (s *Sources) PutSourceShortio(ctx context.Context, request operations.PutSourceShortioRequest, opts ...operations.Option) (*operations.PutSourceShortioResponse, error) { +// PutSourceSmaily - Update a Source fully +func (s *Sources) PutSourceSmaily(ctx context.Context, request operations.PutSourceSmailyRequest, opts ...operations.Option) (*operations.PutSourceSmailyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceShortio", + OperationID: "putSourceSmaily", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91881,7 +102657,7 @@ func (s *Sources) PutSourceShortio(ctx context.Context, request operations.PutSo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceShortioPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSmailyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -91938,7 +102714,7 @@ func (s *Sources) PutSourceShortio(ctx context.Context, request operations.PutSo } } - res := &operations.PutSourceShortioResponse{ + res := &operations.PutSourceSmailyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -91965,11 +102741,11 @@ func (s *Sources) PutSourceShortio(ctx context.Context, request operations.PutSo } -// PutSourceSlack - Update a Source fully -func (s *Sources) PutSourceSlack(ctx context.Context, request operations.PutSourceSlackRequest, opts ...operations.Option) (*operations.PutSourceSlackResponse, error) { +// PutSourceSmartengage - Update a Source fully +func (s *Sources) PutSourceSmartengage(ctx context.Context, request operations.PutSourceSmartengageRequest, opts ...operations.Option) (*operations.PutSourceSmartengageResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSlack", + OperationID: "putSourceSmartengage", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -91991,7 +102767,7 @@ func (s *Sources) PutSourceSlack(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSlackPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSmartengagePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -92048,7 +102824,7 @@ func (s *Sources) PutSourceSlack(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceSlackResponse{ + res := &operations.PutSourceSmartengageResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -92075,11 +102851,11 @@ func (s *Sources) PutSourceSlack(ctx context.Context, request operations.PutSour } -// PutSourceSmaily - Update a Source fully -func (s *Sources) PutSourceSmaily(ctx context.Context, request operations.PutSourceSmailyRequest, opts ...operations.Option) (*operations.PutSourceSmailyResponse, error) { +// PutSourceSmartsheets - Update a Source fully +func (s *Sources) PutSourceSmartsheets(ctx context.Context, request operations.PutSourceSmartsheetsRequest, opts ...operations.Option) (*operations.PutSourceSmartsheetsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSmaily", + OperationID: "putSourceSmartsheets", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -92101,7 +102877,7 @@ func (s *Sources) PutSourceSmaily(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSmailyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSmartsheetsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -92158,7 +102934,7 @@ func (s *Sources) PutSourceSmaily(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceSmailyResponse{ + res := &operations.PutSourceSmartsheetsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -92185,11 +102961,11 @@ func (s *Sources) PutSourceSmaily(ctx context.Context, request operations.PutSou } -// PutSourceSmartengage - Update a Source fully -func (s *Sources) PutSourceSmartengage(ctx context.Context, request operations.PutSourceSmartengageRequest, opts ...operations.Option) (*operations.PutSourceSmartengageResponse, error) { +// PutSourceSnapchatMarketing - Update a Source fully +func (s *Sources) PutSourceSnapchatMarketing(ctx context.Context, request operations.PutSourceSnapchatMarketingRequest, opts ...operations.Option) (*operations.PutSourceSnapchatMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSmartengage", + OperationID: "putSourceSnapchatMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -92211,7 +102987,7 @@ func (s *Sources) PutSourceSmartengage(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSmartengagePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSnapchatMarketingPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -92268,7 +103044,7 @@ func (s *Sources) PutSourceSmartengage(ctx context.Context, request operations.P } } - res := &operations.PutSourceSmartengageResponse{ + res := &operations.PutSourceSnapchatMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -92295,11 +103071,11 @@ func (s *Sources) PutSourceSmartengage(ctx context.Context, request operations.P } -// PutSourceSmartsheets - Update a Source fully -func (s *Sources) PutSourceSmartsheets(ctx context.Context, request operations.PutSourceSmartsheetsRequest, opts ...operations.Option) (*operations.PutSourceSmartsheetsResponse, error) { +// PutSourceSnowflake - Update a Source fully +func (s *Sources) PutSourceSnowflake(ctx context.Context, request operations.PutSourceSnowflakeRequest, opts ...operations.Option) (*operations.PutSourceSnowflakeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSmartsheets", + OperationID: "putSourceSnowflake", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -92321,7 +103097,7 @@ func (s *Sources) PutSourceSmartsheets(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSmartsheetsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSnowflakePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -92378,7 +103154,7 @@ func (s *Sources) PutSourceSmartsheets(ctx context.Context, request operations.P } } - res := &operations.PutSourceSmartsheetsResponse{ + res := &operations.PutSourceSnowflakeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -92405,11 +103181,11 @@ func (s *Sources) PutSourceSmartsheets(ctx context.Context, request operations.P } -// PutSourceSnapchatMarketing - Update a Source fully -func (s *Sources) PutSourceSnapchatMarketing(ctx context.Context, request operations.PutSourceSnapchatMarketingRequest, opts ...operations.Option) (*operations.PutSourceSnapchatMarketingResponse, error) { +// PutSourceSonarCloud - Update a Source fully +func (s *Sources) PutSourceSonarCloud(ctx context.Context, request operations.PutSourceSonarCloudRequest, opts ...operations.Option) (*operations.PutSourceSonarCloudResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSnapchatMarketing", + OperationID: "putSourceSonarCloud", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -92431,7 +103207,7 @@ func (s *Sources) PutSourceSnapchatMarketing(ctx context.Context, request operat return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSnapchatMarketingPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSonarCloudPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -92488,7 +103264,7 @@ func (s *Sources) PutSourceSnapchatMarketing(ctx context.Context, request operat } } - res := &operations.PutSourceSnapchatMarketingResponse{ + res := &operations.PutSourceSonarCloudResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -92515,11 +103291,11 @@ func (s *Sources) PutSourceSnapchatMarketing(ctx context.Context, request operat } -// PutSourceSnowflake - Update a Source fully -func (s *Sources) PutSourceSnowflake(ctx context.Context, request operations.PutSourceSnowflakeRequest, opts ...operations.Option) (*operations.PutSourceSnowflakeResponse, error) { +// PutSourceSpacexAPI - Update a Source fully +func (s *Sources) PutSourceSpacexAPI(ctx context.Context, request operations.PutSourceSpacexAPIRequest, opts ...operations.Option) (*operations.PutSourceSpacexAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSnowflake", + OperationID: "putSourceSpacexApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -92541,7 +103317,7 @@ func (s *Sources) PutSourceSnowflake(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSnowflakePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSpacexAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -92598,7 +103374,7 @@ func (s *Sources) PutSourceSnowflake(ctx context.Context, request operations.Put } } - res := &operations.PutSourceSnowflakeResponse{ + res := &operations.PutSourceSpacexAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -92625,11 +103401,11 @@ func (s *Sources) PutSourceSnowflake(ctx context.Context, request operations.Put } -// PutSourceSonarCloud - Update a Source fully -func (s *Sources) PutSourceSonarCloud(ctx context.Context, request operations.PutSourceSonarCloudRequest, opts ...operations.Option) (*operations.PutSourceSonarCloudResponse, error) { +// PutSourceSquare - Update a Source fully +func (s *Sources) PutSourceSquare(ctx context.Context, request operations.PutSourceSquareRequest, opts ...operations.Option) (*operations.PutSourceSquareResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSonarCloud", + OperationID: "putSourceSquare", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -92651,7 +103427,7 @@ func (s *Sources) PutSourceSonarCloud(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSonarCloudPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSquarePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -92708,7 +103484,7 @@ func (s *Sources) PutSourceSonarCloud(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceSonarCloudResponse{ + res := &operations.PutSourceSquareResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -92735,11 +103511,11 @@ func (s *Sources) PutSourceSonarCloud(ctx context.Context, request operations.Pu } -// PutSourceSpacexAPI - Update a Source fully -func (s *Sources) PutSourceSpacexAPI(ctx context.Context, request operations.PutSourceSpacexAPIRequest, opts ...operations.Option) (*operations.PutSourceSpacexAPIResponse, error) { +// PutSourceStrava - Update a Source fully +func (s *Sources) PutSourceStrava(ctx context.Context, request operations.PutSourceStravaRequest, opts ...operations.Option) (*operations.PutSourceStravaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSpacexApi", + OperationID: "putSourceStrava", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -92761,7 +103537,7 @@ func (s *Sources) PutSourceSpacexAPI(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSpacexAPIPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceStravaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -92818,7 +103594,7 @@ func (s *Sources) PutSourceSpacexAPI(ctx context.Context, request operations.Put } } - res := &operations.PutSourceSpacexAPIResponse{ + res := &operations.PutSourceStravaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -92845,11 +103621,11 @@ func (s *Sources) PutSourceSpacexAPI(ctx context.Context, request operations.Put } -// PutSourceSquare - Update a Source fully -func (s *Sources) PutSourceSquare(ctx context.Context, request operations.PutSourceSquareRequest, opts ...operations.Option) (*operations.PutSourceSquareResponse, error) { +// PutSourceStripe - Update a Source fully +func (s *Sources) PutSourceStripe(ctx context.Context, request operations.PutSourceStripeRequest, opts ...operations.Option) (*operations.PutSourceStripeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSquare", + OperationID: "putSourceStripe", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -92871,7 +103647,7 @@ func (s *Sources) PutSourceSquare(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSquarePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceStripePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -92928,7 +103704,7 @@ func (s *Sources) PutSourceSquare(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceSquareResponse{ + res := &operations.PutSourceStripeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -92955,11 +103731,11 @@ func (s *Sources) PutSourceSquare(ctx context.Context, request operations.PutSou } -// PutSourceStrava - Update a Source fully -func (s *Sources) PutSourceStrava(ctx context.Context, request operations.PutSourceStravaRequest, opts ...operations.Option) (*operations.PutSourceStravaResponse, error) { +// PutSourceSurveySparrow - Update a Source fully +func (s *Sources) PutSourceSurveySparrow(ctx context.Context, request operations.PutSourceSurveySparrowRequest, opts ...operations.Option) (*operations.PutSourceSurveySparrowResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceStrava", + OperationID: "putSourceSurveySparrow", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -92981,7 +103757,7 @@ func (s *Sources) PutSourceStrava(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceStravaPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSurveySparrowPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -93038,7 +103814,7 @@ func (s *Sources) PutSourceStrava(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceStravaResponse{ + res := &operations.PutSourceSurveySparrowResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -93065,11 +103841,11 @@ func (s *Sources) PutSourceStrava(ctx context.Context, request operations.PutSou } -// PutSourceStripe - Update a Source fully -func (s *Sources) PutSourceStripe(ctx context.Context, request operations.PutSourceStripeRequest, opts ...operations.Option) (*operations.PutSourceStripeResponse, error) { +// PutSourceSurveymonkey - Update a Source fully +func (s *Sources) PutSourceSurveymonkey(ctx context.Context, request operations.PutSourceSurveymonkeyRequest, opts ...operations.Option) (*operations.PutSourceSurveymonkeyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceStripe", + OperationID: "putSourceSurveymonkey", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -93091,7 +103867,7 @@ func (s *Sources) PutSourceStripe(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceStripePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSurveymonkeyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -93148,7 +103924,7 @@ func (s *Sources) PutSourceStripe(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceStripeResponse{ + res := &operations.PutSourceSurveymonkeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -93175,11 +103951,11 @@ func (s *Sources) PutSourceStripe(ctx context.Context, request operations.PutSou } -// PutSourceSurveySparrow - Update a Source fully -func (s *Sources) PutSourceSurveySparrow(ctx context.Context, request operations.PutSourceSurveySparrowRequest, opts ...operations.Option) (*operations.PutSourceSurveySparrowResponse, error) { +// PutSourceSurvicate - Update a Source fully +func (s *Sources) PutSourceSurvicate(ctx context.Context, request operations.PutSourceSurvicateRequest, opts ...operations.Option) (*operations.PutSourceSurvicateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSurveySparrow", + OperationID: "putSourceSurvicate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -93201,7 +103977,7 @@ func (s *Sources) PutSourceSurveySparrow(ctx context.Context, request operations return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSurveySparrowPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSurvicatePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -93258,7 +104034,7 @@ func (s *Sources) PutSourceSurveySparrow(ctx context.Context, request operations } } - res := &operations.PutSourceSurveySparrowResponse{ + res := &operations.PutSourceSurvicateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -93285,11 +104061,11 @@ func (s *Sources) PutSourceSurveySparrow(ctx context.Context, request operations } -// PutSourceSurveymonkey - Update a Source fully -func (s *Sources) PutSourceSurveymonkey(ctx context.Context, request operations.PutSourceSurveymonkeyRequest, opts ...operations.Option) (*operations.PutSourceSurveymonkeyResponse, error) { +// PutSourceTeamwork - Update a Source fully +func (s *Sources) PutSourceTeamwork(ctx context.Context, request operations.PutSourceTeamworkRequest, opts ...operations.Option) (*operations.PutSourceTeamworkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceSurveymonkey", + OperationID: "putSourceTeamwork", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -93311,7 +104087,7 @@ func (s *Sources) PutSourceSurveymonkey(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSurveymonkeyPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTeamworkPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -93368,7 +104144,7 @@ func (s *Sources) PutSourceSurveymonkey(ctx context.Context, request operations. } } - res := &operations.PutSourceSurveymonkeyResponse{ + res := &operations.PutSourceTeamworkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -94825,11 +105601,11 @@ func (s *Sources) PutSourceWebflow(ctx context.Context, request operations.PutSo } -// PutSourceWhiskyHunter - Update a Source fully -func (s *Sources) PutSourceWhiskyHunter(ctx context.Context, request operations.PutSourceWhiskyHunterRequest, opts ...operations.Option) (*operations.PutSourceWhiskyHunterResponse, error) { +// PutSourceWhenIWork - Update a Source fully +func (s *Sources) PutSourceWhenIWork(ctx context.Context, request operations.PutSourceWhenIWorkRequest, opts ...operations.Option) (*operations.PutSourceWhenIWorkResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceWhiskyHunter", + OperationID: "putSourceWhenIWork", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -94851,7 +105627,7 @@ func (s *Sources) PutSourceWhiskyHunter(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWhiskyHunterPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWhenIWorkPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -94908,7 +105684,7 @@ func (s *Sources) PutSourceWhiskyHunter(ctx context.Context, request operations. } } - res := &operations.PutSourceWhiskyHunterResponse{ + res := &operations.PutSourceWhenIWorkResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -94935,11 +105711,11 @@ func (s *Sources) PutSourceWhiskyHunter(ctx context.Context, request operations. } -// PutSourceWikipediaPageviews - Update a Source fully -func (s *Sources) PutSourceWikipediaPageviews(ctx context.Context, request operations.PutSourceWikipediaPageviewsRequest, opts ...operations.Option) (*operations.PutSourceWikipediaPageviewsResponse, error) { +// PutSourceWhiskyHunter - Update a Source fully +func (s *Sources) PutSourceWhiskyHunter(ctx context.Context, request operations.PutSourceWhiskyHunterRequest, opts ...operations.Option) (*operations.PutSourceWhiskyHunterResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceWikipediaPageviews", + OperationID: "putSourceWhiskyHunter", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -94961,7 +105737,7 @@ func (s *Sources) PutSourceWikipediaPageviews(ctx context.Context, request opera return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWikipediaPageviewsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWhiskyHunterPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -95018,7 +105794,7 @@ func (s *Sources) PutSourceWikipediaPageviews(ctx context.Context, request opera } } - res := &operations.PutSourceWikipediaPageviewsResponse{ + res := &operations.PutSourceWhiskyHunterResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -95045,11 +105821,11 @@ func (s *Sources) PutSourceWikipediaPageviews(ctx context.Context, request opera } -// PutSourceWoocommerce - Update a Source fully -func (s *Sources) PutSourceWoocommerce(ctx context.Context, request operations.PutSourceWoocommerceRequest, opts ...operations.Option) (*operations.PutSourceWoocommerceResponse, error) { +// PutSourceWikipediaPageviews - Update a Source fully +func (s *Sources) PutSourceWikipediaPageviews(ctx context.Context, request operations.PutSourceWikipediaPageviewsRequest, opts ...operations.Option) (*operations.PutSourceWikipediaPageviewsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceWoocommerce", + OperationID: "putSourceWikipediaPageviews", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -95071,7 +105847,7 @@ func (s *Sources) PutSourceWoocommerce(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWoocommercePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWikipediaPageviewsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -95128,7 +105904,7 @@ func (s *Sources) PutSourceWoocommerce(ctx context.Context, request operations.P } } - res := &operations.PutSourceWoocommerceResponse{ + res := &operations.PutSourceWikipediaPageviewsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -95155,11 +105931,11 @@ func (s *Sources) PutSourceWoocommerce(ctx context.Context, request operations.P } -// PutSourceXkcd - Update a Source fully -func (s *Sources) PutSourceXkcd(ctx context.Context, request operations.PutSourceXkcdRequest, opts ...operations.Option) (*operations.PutSourceXkcdResponse, error) { +// PutSourceWoocommerce - Update a Source fully +func (s *Sources) PutSourceWoocommerce(ctx context.Context, request operations.PutSourceWoocommerceRequest, opts ...operations.Option) (*operations.PutSourceWoocommerceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceXkcd", + OperationID: "putSourceWoocommerce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -95181,7 +105957,7 @@ func (s *Sources) PutSourceXkcd(ctx context.Context, request operations.PutSourc return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceXkcdPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWoocommercePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -95238,7 +106014,7 @@ func (s *Sources) PutSourceXkcd(ctx context.Context, request operations.PutSourc } } - res := &operations.PutSourceXkcdResponse{ + res := &operations.PutSourceWoocommerceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -95265,11 +106041,11 @@ func (s *Sources) PutSourceXkcd(ctx context.Context, request operations.PutSourc } -// PutSourceYandexMetrica - Update a Source fully -func (s *Sources) PutSourceYandexMetrica(ctx context.Context, request operations.PutSourceYandexMetricaRequest, opts ...operations.Option) (*operations.PutSourceYandexMetricaResponse, error) { +// PutSourceXkcd - Update a Source fully +func (s *Sources) PutSourceXkcd(ctx context.Context, request operations.PutSourceXkcdRequest, opts ...operations.Option) (*operations.PutSourceXkcdResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceYandexMetrica", + OperationID: "putSourceXkcd", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -95291,7 +106067,7 @@ func (s *Sources) PutSourceYandexMetrica(ctx context.Context, request operations return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYandexMetricaPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceXkcdPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -95348,7 +106124,7 @@ func (s *Sources) PutSourceYandexMetrica(ctx context.Context, request operations } } - res := &operations.PutSourceYandexMetricaResponse{ + res := &operations.PutSourceXkcdResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -95375,11 +106151,11 @@ func (s *Sources) PutSourceYandexMetrica(ctx context.Context, request operations } -// PutSourceYotpo - Update a Source fully -func (s *Sources) PutSourceYotpo(ctx context.Context, request operations.PutSourceYotpoRequest, opts ...operations.Option) (*operations.PutSourceYotpoResponse, error) { +// PutSourceYandexMetrica - Update a Source fully +func (s *Sources) PutSourceYandexMetrica(ctx context.Context, request operations.PutSourceYandexMetricaRequest, opts ...operations.Option) (*operations.PutSourceYandexMetricaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceYotpo", + OperationID: "putSourceYandexMetrica", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -95401,7 +106177,7 @@ func (s *Sources) PutSourceYotpo(ctx context.Context, request operations.PutSour return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYotpoPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYandexMetricaPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -95458,7 +106234,7 @@ func (s *Sources) PutSourceYotpo(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceYotpoResponse{ + res := &operations.PutSourceYandexMetricaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -95485,11 +106261,11 @@ func (s *Sources) PutSourceYotpo(ctx context.Context, request operations.PutSour } -// PutSourceYoutubeAnalytics - Update a Source fully -func (s *Sources) PutSourceYoutubeAnalytics(ctx context.Context, request operations.PutSourceYoutubeAnalyticsRequest, opts ...operations.Option) (*operations.PutSourceYoutubeAnalyticsResponse, error) { +// PutSourceYotpo - Update a Source fully +func (s *Sources) PutSourceYotpo(ctx context.Context, request operations.PutSourceYotpoRequest, opts ...operations.Option) (*operations.PutSourceYotpoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceYoutubeAnalytics", + OperationID: "putSourceYotpo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -95511,7 +106287,7 @@ func (s *Sources) PutSourceYoutubeAnalytics(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYoutubeAnalyticsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYotpoPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -95568,7 +106344,7 @@ func (s *Sources) PutSourceYoutubeAnalytics(ctx context.Context, request operati } } - res := &operations.PutSourceYoutubeAnalyticsResponse{ + res := &operations.PutSourceYotpoResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -95595,11 +106371,11 @@ func (s *Sources) PutSourceYoutubeAnalytics(ctx context.Context, request operati } -// PutSourceZendeskChat - Update a Source fully -func (s *Sources) PutSourceZendeskChat(ctx context.Context, request operations.PutSourceZendeskChatRequest, opts ...operations.Option) (*operations.PutSourceZendeskChatResponse, error) { +// PutSourceYoutubeAnalytics - Update a Source fully +func (s *Sources) PutSourceYoutubeAnalytics(ctx context.Context, request operations.PutSourceYoutubeAnalyticsRequest, opts ...operations.Option) (*operations.PutSourceYoutubeAnalyticsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceZendeskChat", + OperationID: "putSourceYoutubeAnalytics", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -95621,7 +106397,7 @@ func (s *Sources) PutSourceZendeskChat(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZendeskChatPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYoutubeAnalyticsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -95678,7 +106454,7 @@ func (s *Sources) PutSourceZendeskChat(ctx context.Context, request operations.P } } - res := &operations.PutSourceZendeskChatResponse{ + res := &operations.PutSourceYoutubeAnalyticsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -95705,11 +106481,11 @@ func (s *Sources) PutSourceZendeskChat(ctx context.Context, request operations.P } -// PutSourceZendeskSell - Update a Source fully -func (s *Sources) PutSourceZendeskSell(ctx context.Context, request operations.PutSourceZendeskSellRequest, opts ...operations.Option) (*operations.PutSourceZendeskSellResponse, error) { +// PutSourceZendeskChat - Update a Source fully +func (s *Sources) PutSourceZendeskChat(ctx context.Context, request operations.PutSourceZendeskChatRequest, opts ...operations.Option) (*operations.PutSourceZendeskChatResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceZendeskSell", + OperationID: "putSourceZendeskChat", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -95731,7 +106507,7 @@ func (s *Sources) PutSourceZendeskSell(ctx context.Context, request operations.P return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZendeskSellPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZendeskChatPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -95788,7 +106564,7 @@ func (s *Sources) PutSourceZendeskSell(ctx context.Context, request operations.P } } - res := &operations.PutSourceZendeskSellResponse{ + res := &operations.PutSourceZendeskChatResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes,