From 379d6839bb84e3add19cafe93be35ee3a5165bbb Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Fri, 10 Jan 2025 14:33:16 +1100 Subject: [PATCH] swap v3 refs to v4 --- internal/acctest/acctest.go | 4 ++-- internal/logging/logging.go | 2 +- internal/provider.go | 4 ++-- internal/services/access_rule/data_source.go | 4 ++-- .../services/access_rule/data_source_model.go | 4 ++-- .../services/access_rule/list_data_source.go | 2 +- .../access_rule/list_data_source_model.go | 4 ++-- internal/services/access_rule/resource.go | 6 +++--- internal/services/account/data_source.go | 4 ++-- .../services/account/data_source_model.go | 4 ++-- internal/services/account/list_data_source.go | 2 +- .../account/list_data_source_model.go | 4 ++-- internal/services/account/resource.go | 6 +++--- .../services/account_member/data_source.go | 4 ++-- .../account_member/data_source_model.go | 4 ++-- .../account_member/list_data_source.go | 2 +- .../account_member/list_data_source_model.go | 4 ++-- internal/services/account_member/resource.go | 6 +++--- internal/services/account_role/data_source.go | 4 ++-- .../account_role/data_source_model.go | 4 ++-- .../services/account_role/list_data_source.go | 2 +- .../account_role/list_data_source_model.go | 4 ++-- .../account_subscription/data_source.go | 4 ++-- .../account_subscription/data_source_model.go | 4 ++-- .../services/account_subscription/resource.go | 6 +++--- .../services/account_token/data_source.go | 4 ++-- .../account_token/data_source_model.go | 4 ++-- .../account_token/list_data_source.go | 2 +- .../account_token/list_data_source_model.go | 4 ++-- internal/services/account_token/resource.go | 6 +++--- internal/services/address_map/data_source.go | 4 ++-- .../services/address_map/data_source_model.go | 4 ++-- .../services/address_map/list_data_source.go | 2 +- .../address_map/list_data_source_model.go | 4 ++-- internal/services/address_map/resource.go | 6 +++--- internal/services/api_shield/data_source.go | 4 ++-- .../services/api_shield/data_source_model.go | 4 ++-- internal/services/api_shield/resource.go | 6 +++--- .../data_source.go | 2 +- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../api_shield_operation/data_source.go | 4 ++-- .../api_shield_operation/data_source_model.go | 4 ++-- .../api_shield_operation/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/api_shield_operation/resource.go | 6 +++--- .../api_shield_operation/resource_test.go | 4 ++-- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../services/api_shield_schema/data_source.go | 4 ++-- .../api_shield_schema/data_source_model.go | 4 ++-- .../api_shield_schema/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/api_shield_schema/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- internal/services/api_token/data_source.go | 4 ++-- .../services/api_token/data_source_model.go | 4 ++-- .../services/api_token/list_data_source.go | 2 +- .../api_token/list_data_source_model.go | 4 ++-- internal/services/api_token/resource.go | 6 +++--- .../data_source.go | 2 +- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../argo_smart_routing/data_source.go | 4 ++-- .../argo_smart_routing/data_source_model.go | 4 ++-- .../services/argo_smart_routing/resource.go | 6 +++--- .../argo_tiered_caching/data_source.go | 4 ++-- .../argo_tiered_caching/data_source_model.go | 4 ++-- .../services/argo_tiered_caching/resource.go | 6 +++--- .../authenticated_origin_pulls/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../authenticated_origin_pulls/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../services/bot_management/data_source.go | 4 ++-- .../bot_management/data_source_model.go | 4 ++-- internal/services/bot_management/resource.go | 6 +++--- .../services/byo_ip_prefix/data_source.go | 4 ++-- .../byo_ip_prefix/data_source_model.go | 4 ++-- .../byo_ip_prefix/list_data_source.go | 2 +- .../byo_ip_prefix/list_data_source_model.go | 4 ++-- internal/services/byo_ip_prefix/resource.go | 6 +++--- .../services/calls_sfu_app/data_source.go | 4 ++-- .../calls_sfu_app/data_source_model.go | 4 ++-- .../calls_sfu_app/list_data_source.go | 2 +- .../calls_sfu_app/list_data_source_model.go | 4 ++-- internal/services/calls_sfu_app/resource.go | 6 +++--- .../services/calls_turn_app/data_source.go | 4 ++-- .../calls_turn_app/data_source_model.go | 4 ++-- .../calls_turn_app/list_data_source.go | 2 +- .../calls_turn_app/list_data_source_model.go | 4 ++-- internal/services/calls_turn_app/resource.go | 6 +++--- .../services/certificate_pack/data_source.go | 4 ++-- .../certificate_pack/data_source_model.go | 4 ++-- .../certificate_pack/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/certificate_pack/resource.go | 6 +++--- .../cloud_connector_rules/data_source.go | 2 +- .../data_source_model.go | 4 ++-- .../cloud_connector_rules/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../cloud_connector_rules/resource.go | 6 +++--- .../cloudforce_one_request/data_source.go | 4 ++-- .../data_source_model.go | 2 +- .../list_data_source.go | 2 +- .../list_data_source_model.go | 2 +- .../cloudforce_one_request/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../cloudforce_one_request_asset/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 2 +- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 2 +- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../content_scanning_expression/resource.go | 6 +++--- .../services/custom_hostname/data_source.go | 4 ++-- .../custom_hostname/data_source_model.go | 4 ++-- .../custom_hostname/list_data_source.go | 2 +- .../custom_hostname/list_data_source_model.go | 4 ++-- internal/services/custom_hostname/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- internal/services/custom_ssl/data_source.go | 4 ++-- .../services/custom_ssl/data_source_model.go | 4 ++-- .../services/custom_ssl/list_data_source.go | 2 +- .../custom_ssl/list_data_source_model.go | 4 ++-- internal/services/custom_ssl/resource.go | 6 +++--- internal/services/d1_database/data_source.go | 4 ++-- .../services/d1_database/data_source_model.go | 4 ++-- .../services/d1_database/list_data_source.go | 2 +- .../d1_database/list_data_source_model.go | 4 ++-- internal/services/d1_database/resource.go | 6 +++--- .../services/dcv_delegation/data_source.go | 4 ++-- .../dcv_delegation/data_source_model.go | 4 ++-- internal/services/dns_firewall/data_source.go | 4 ++-- .../dns_firewall/data_source_model.go | 4 ++-- .../services/dns_firewall/list_data_source.go | 2 +- .../dns_firewall/list_data_source_model.go | 4 ++-- internal/services/dns_firewall/resource.go | 6 +++--- .../services/dns_firewall/resource_test.go | 4 ++-- internal/services/dns_record/data_source.go | 4 ++-- .../services/dns_record/data_source_model.go | 6 +++--- .../services/dns_record/list_data_source.go | 2 +- .../dns_record/list_data_source_model.go | 6 +++--- internal/services/dns_record/resource.go | 6 +++--- internal/services/dns_record/resource_test.go | 4 ++-- .../dns_zone_transfers_acl/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../dns_zone_transfers_acl/resource.go | 6 +++--- .../dns_zone_transfers_acl/resource_test.go | 4 ++-- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../dns_zone_transfers_incoming/resource.go | 6 +++--- .../resource_test.go | 4 ++-- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../dns_zone_transfers_outgoing/resource.go | 6 +++--- .../resource_test.go | 4 ++-- .../dns_zone_transfers_peer/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../dns_zone_transfers_peer/resource.go | 6 +++--- .../dns_zone_transfers_tsig/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../dns_zone_transfers_tsig/resource.go | 6 +++--- .../dns_zone_transfers_tsig/resource_test.go | 4 ++-- .../email_routing_address/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../email_routing_address/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../email_routing_address/resource.go | 6 +++--- .../email_routing_catch_all/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../email_routing_catch_all/resource.go | 6 +++--- .../services/email_routing_dns/data_source.go | 4 ++-- .../email_routing_dns/data_source_model.go | 4 ++-- .../services/email_routing_dns/resource.go | 6 +++--- .../email_routing_rule/data_source.go | 4 ++-- .../email_routing_rule/data_source_model.go | 4 ++-- .../email_routing_rule/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/email_routing_rule/resource.go | 6 +++--- .../email_routing_settings/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../email_routing_settings/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../email_security_block_sender/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- internal/services/filter/data_source.go | 4 ++-- internal/services/filter/data_source_model.go | 4 ++-- internal/services/filter/list_data_source.go | 2 +- .../services/filter/list_data_source_model.go | 4 ++-- internal/services/filter/resource.go | 6 +++--- .../services/firewall_rule/data_source.go | 4 ++-- .../firewall_rule/data_source_model.go | 4 ++-- .../firewall_rule/list_data_source.go | 2 +- .../firewall_rule/list_data_source_model.go | 4 ++-- internal/services/firewall_rule/resource.go | 6 +++--- internal/services/healthcheck/data_source.go | 4 ++-- .../services/healthcheck/data_source_model.go | 4 ++-- .../services/healthcheck/list_data_source.go | 2 +- .../healthcheck/list_data_source_model.go | 4 ++-- internal/services/healthcheck/resource.go | 6 +++--- .../hostname_tls_setting/data_source.go | 6 +++--- .../hostname_tls_setting/data_source_model.go | 4 ++-- .../services/hostname_tls_setting/resource.go | 6 +++--- .../services/hyperdrive_config/data_source.go | 4 ++-- .../hyperdrive_config/data_source_model.go | 4 ++-- .../hyperdrive_config/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/hyperdrive_config/resource.go | 6 +++--- internal/services/image/data_source.go | 4 ++-- internal/services/image/data_source_model.go | 4 ++-- internal/services/image/list_data_source.go | 2 +- .../services/image/list_data_source_model.go | 4 ++-- internal/services/image/resource.go | 6 +++--- .../services/image_variant/data_source.go | 4 ++-- .../image_variant/data_source_model.go | 4 ++-- internal/services/image_variant/resource.go | 6 +++--- .../keyless_certificate/data_source.go | 4 ++-- .../keyless_certificate/data_source_model.go | 4 ++-- .../keyless_certificate/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/keyless_certificate/resource.go | 6 +++--- .../leaked_credential_check/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../leaked_credential_check/resource.go | 6 +++--- .../data_source.go | 2 +- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../leaked_credential_check_rule/resource.go | 6 +++--- internal/services/list/data_source.go | 4 ++-- internal/services/list/data_source_model.go | 4 ++-- internal/services/list/list_data_source.go | 2 +- .../services/list/list_data_source_model.go | 4 ++-- internal/services/list/resource.go | 6 +++--- internal/services/list_item/data_source.go | 4 ++-- .../services/list_item/data_source_model.go | 4 ++-- .../services/list_item/list_data_source.go | 2 +- .../list_item/list_data_source_model.go | 4 ++-- internal/services/list_item/resource.go | 6 +++--- .../services/load_balancer/data_source.go | 4 ++-- .../load_balancer/data_source_model.go | 4 ++-- .../load_balancer/list_data_source.go | 2 +- .../load_balancer/list_data_source_model.go | 4 ++-- internal/services/load_balancer/resource.go | 6 +++--- .../services/load_balancer/resource_test.go | 4 ++-- .../load_balancer_monitor/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../load_balancer_monitor/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../load_balancer_monitor/resource.go | 6 +++--- .../load_balancer_pool/data_source.go | 4 ++-- .../load_balancer_pool/data_source_model.go | 4 ++-- .../load_balancer_pool/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/load_balancer_pool/resource.go | 6 +++--- .../load_balancer_pool/resource_test.go | 4 ++-- .../services/logpull_retention/data_source.go | 4 ++-- .../logpull_retention/data_source_model.go | 4 ++-- .../services/logpull_retention/resource.go | 6 +++--- .../logpush_dataset_field/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../logpush_dataset_job/data_source.go | 4 ++-- .../logpush_dataset_job/data_source_model.go | 4 ++-- internal/services/logpush_job/data_source.go | 4 ++-- .../services/logpush_job/data_source_model.go | 4 ++-- .../services/logpush_job/list_data_source.go | 2 +- .../logpush_job/list_data_source_model.go | 4 ++-- internal/services/logpush_job/resource.go | 6 +++--- .../logpush_ownership_challenge/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../magic_network_monitoring_rule/resource.go | 6 +++--- .../magic_transit_connector/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../magic_transit_connector/resource.go | 6 +++--- .../magic_transit_site/data_source.go | 4 ++-- .../magic_transit_site/data_source_model.go | 4 ++-- .../magic_transit_site/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/magic_transit_site/resource.go | 6 +++--- .../magic_transit_site_acl/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../magic_transit_site_acl/resource.go | 6 +++--- .../magic_transit_site_lan/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../magic_transit_site_lan/resource.go | 6 +++--- .../magic_transit_site_wan/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../magic_transit_site_wan/resource.go | 6 +++--- .../magic_wan_gre_tunnel/data_source.go | 4 ++-- .../magic_wan_gre_tunnel/data_source_model.go | 4 ++-- .../services/magic_wan_gre_tunnel/resource.go | 6 +++--- .../magic_wan_ipsec_tunnel/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../magic_wan_ipsec_tunnel/resource.go | 6 +++--- .../magic_wan_static_route/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../magic_wan_static_route/resource.go | 6 +++--- .../managed_transforms/data_source.go | 4 ++-- .../managed_transforms/data_source_model.go | 4 ++-- .../services/managed_transforms/resource.go | 6 +++--- .../services/mtls_certificate/data_source.go | 4 ++-- .../mtls_certificate/data_source_model.go | 4 ++-- .../mtls_certificate/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/mtls_certificate/resource.go | 6 +++--- .../notification_policy/data_source.go | 4 ++-- .../notification_policy/data_source_model.go | 4 ++-- .../notification_policy/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/notification_policy/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../notification_policy_webhooks/resource.go | 6 +++--- .../observatory_scheduled_test/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../observatory_scheduled_test/resource.go | 6 +++--- .../origin_ca_certificate/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../origin_ca_certificate/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../origin_ca_certificate/resource.go | 6 +++--- internal/services/page_rule/custom.go | 2 +- internal/services/page_rule/data_source.go | 4 ++-- .../services/page_rule/data_source_model.go | 4 ++-- internal/services/page_rule/resource.go | 6 +++--- .../page_shield_connections/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../page_shield_cookies/data_source.go | 4 ++-- .../page_shield_cookies/data_source_model.go | 4 ++-- .../page_shield_cookies/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../page_shield_policy/data_source.go | 4 ++-- .../page_shield_policy/data_source_model.go | 4 ++-- .../page_shield_policy/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/page_shield_policy/resource.go | 6 +++--- .../page_shield_scripts/data_source.go | 4 ++-- .../page_shield_scripts/data_source_model.go | 4 ++-- .../page_shield_scripts/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- internal/services/pages_domain/data_source.go | 4 ++-- .../pages_domain/data_source_model.go | 4 ++-- .../services/pages_domain/list_data_source.go | 2 +- .../pages_domain/list_data_source_model.go | 4 ++-- internal/services/pages_domain/resource.go | 6 +++--- .../services/pages_project/data_source.go | 4 ++-- .../pages_project/data_source_model.go | 4 ++-- .../pages_project/list_data_source.go | 2 +- .../pages_project/list_data_source_model.go | 4 ++-- internal/services/pages_project/resource.go | 6 +++--- .../services/permission_group/data_source.go | 4 ++-- .../permission_group/data_source_model.go | 4 ++-- .../permission_group/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- internal/services/queue/data_source.go | 4 ++-- internal/services/queue/data_source_model.go | 4 ++-- internal/services/queue/list_data_source.go | 2 +- .../services/queue/list_data_source_model.go | 4 ++-- internal/services/queue/resource.go | 6 +++--- .../services/queue_consumer/data_source.go | 4 ++-- .../queue_consumer/data_source_model.go | 4 ++-- internal/services/queue_consumer/resource.go | 6 +++--- internal/services/{ => r2_bucket}/.DS_Store | Bin 6148 -> 6148 bytes internal/services/r2_bucket/data_source.go | 4 ++-- .../services/r2_bucket/data_source_model.go | 4 ++-- internal/services/r2_bucket/resource.go | 6 +++--- .../services/r2_custom_domain/data_source.go | 4 ++-- .../r2_custom_domain/data_source_model.go | 4 ++-- .../services/r2_custom_domain/resource.go | 6 +++--- .../services/r2_managed_domain/resource.go | 6 +++--- internal/services/rate_limit/data_source.go | 4 ++-- .../services/rate_limit/data_source_model.go | 4 ++-- .../services/rate_limit/list_data_source.go | 2 +- .../rate_limit/list_data_source_model.go | 4 ++-- internal/services/rate_limit/resource.go | 6 +++--- .../services/regional_hostname/data_source.go | 4 ++-- .../regional_hostname/data_source_model.go | 4 ++-- .../regional_hostname/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/regional_hostname/resource.go | 6 +++--- .../regional_tiered_cache/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../regional_tiered_cache/resource.go | 6 +++--- .../services/registrar_domain/data_source.go | 4 ++-- .../registrar_domain/data_source_model.go | 4 ++-- .../registrar_domain/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/registrar_domain/resource.go | 6 +++--- .../services/resource_group/data_source.go | 4 ++-- .../resource_group/data_source_model.go | 4 ++-- .../resource_group/list_data_source.go | 2 +- .../resource_group/list_data_source_model.go | 4 ++-- internal/services/ruleset/data_source.go | 4 ++-- .../services/ruleset/data_source_model.go | 4 ++-- internal/services/ruleset/list_data_source.go | 2 +- .../ruleset/list_data_source_model.go | 4 ++-- internal/services/ruleset/resource.go | 6 +++--- .../services/snippet_rules/data_source.go | 2 +- .../snippet_rules/data_source_model.go | 4 ++-- .../snippet_rules/list_data_source.go | 2 +- .../snippet_rules/list_data_source_model.go | 4 ++-- internal/services/snippet_rules/resource.go | 6 +++--- internal/services/snippets/data_source.go | 4 ++-- .../services/snippets/data_source_model.go | 4 ++-- .../services/snippets/list_data_source.go | 2 +- .../snippets/list_data_source_model.go | 4 ++-- internal/services/snippets/resource.go | 6 +++--- .../spectrum_application/data_source.go | 4 ++-- .../spectrum_application/data_source_model.go | 4 ++-- .../spectrum_application/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/spectrum_application/resource.go | 6 +++--- internal/services/stream/data_source.go | 4 ++-- internal/services/stream/data_source_model.go | 4 ++-- internal/services/stream/list_data_source.go | 2 +- .../services/stream/list_data_source_model.go | 4 ++-- internal/services/stream/resource.go | 6 +++--- .../stream_audio_track/data_source.go | 4 ++-- .../stream_audio_track/data_source_model.go | 4 ++-- .../services/stream_audio_track/resource.go | 6 +++--- .../stream_caption_language/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../stream_caption_language/resource.go | 6 +++--- .../services/stream_download/data_source.go | 4 ++-- .../stream_download/data_source_model.go | 4 ++-- internal/services/stream_download/resource.go | 6 +++--- internal/services/stream_key/data_source.go | 4 ++-- .../services/stream_key/data_source_model.go | 4 ++-- internal/services/stream_key/resource.go | 6 +++--- .../services/stream_live_input/data_source.go | 4 ++-- .../stream_live_input/data_source_model.go | 4 ++-- .../services/stream_live_input/resource.go | 6 +++--- .../services/stream_watermark/data_source.go | 4 ++-- .../stream_watermark/data_source_model.go | 4 ++-- .../stream_watermark/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/stream_watermark/resource.go | 6 +++--- .../services/stream_webhook/data_source.go | 4 ++-- .../stream_webhook/data_source_model.go | 4 ++-- internal/services/stream_webhook/resource.go | 6 +++--- internal/services/tiered_cache/data_source.go | 4 ++-- .../tiered_cache/data_source_model.go | 4 ++-- internal/services/tiered_cache/resource.go | 6 +++--- internal/services/total_tls/data_source.go | 4 ++-- .../services/total_tls/data_source_model.go | 4 ++-- internal/services/total_tls/resource.go | 6 +++--- .../services/turnstile_widget/data_source.go | 4 ++-- .../turnstile_widget/data_source_model.go | 4 ++-- .../turnstile_widget/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/turnstile_widget/resource.go | 6 +++--- .../url_normalization_settings/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../url_normalization_settings/resource.go | 6 +++--- internal/services/user/data_source.go | 4 ++-- internal/services/user/resource.go | 6 +++--- .../user_agent_blocking_rule/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../user_agent_blocking_rule/resource.go | 6 +++--- internal/services/waiting_room/data_source.go | 4 ++-- .../waiting_room/data_source_model.go | 4 ++-- .../services/waiting_room/list_data_source.go | 2 +- .../waiting_room/list_data_source_model.go | 4 ++-- internal/services/waiting_room/resource.go | 6 +++--- .../waiting_room_event/data_source.go | 4 ++-- .../waiting_room_event/data_source_model.go | 4 ++-- .../waiting_room_event/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/waiting_room_event/resource.go | 6 +++--- .../waiting_room_rules/data_source.go | 4 ++-- .../waiting_room_rules/data_source_model.go | 4 ++-- .../services/waiting_room_rules/resource.go | 6 +++--- .../waiting_room_settings/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../waiting_room_settings/resource.go | 6 +++--- .../services/web3_hostname/data_source.go | 4 ++-- .../web3_hostname/data_source_model.go | 4 ++-- .../web3_hostname/list_data_source.go | 2 +- .../web3_hostname/list_data_source_model.go | 4 ++-- internal/services/web3_hostname/resource.go | 6 +++--- .../services/web_analytics_rule/resource.go | 6 +++--- .../web_analytics_site/data_source.go | 4 ++-- .../web_analytics_site/data_source_model.go | 4 ++-- .../web_analytics_site/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/web_analytics_site/resource.go | 6 +++--- .../workers_cron_trigger/data_source.go | 4 ++-- .../workers_cron_trigger/data_source_model.go | 4 ++-- .../services/workers_cron_trigger/resource.go | 6 +++--- .../workers_custom_domain/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../workers_custom_domain/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../workers_custom_domain/resource.go | 6 +++--- .../workers_deployment/data_source.go | 4 ++-- .../workers_deployment/data_source_model.go | 4 ++-- .../services/workers_deployment/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- internal/services/workers_kv/data_source.go | 4 ++-- .../services/workers_kv/data_source_model.go | 4 ++-- internal/services/workers_kv/resource.go | 6 +++--- .../workers_kv_namespace/data_source.go | 4 ++-- .../workers_kv_namespace/data_source_model.go | 4 ++-- .../workers_kv_namespace/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/workers_kv_namespace/resource.go | 6 +++--- .../services/workers_script/data_source.go | 4 ++-- .../workers_script/data_source_model.go | 4 ++-- .../workers_script/list_data_source.go | 2 +- .../workers_script/list_data_source_model.go | 4 ++-- internal/services/workers_script/resource.go | 6 +++--- .../workers_script_subdomain/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../workers_script_subdomain/resource.go | 6 +++--- .../services/workers_secret/data_source.go | 4 ++-- .../workers_secret/data_source_model.go | 4 ++-- .../workers_secret/list_data_source.go | 2 +- .../workers_secret/list_data_source_model.go | 4 ++-- internal/services/workers_secret/resource.go | 6 +++--- .../services/workers_secret/resource_test.go | 4 ++-- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../zero_trust_access_application/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../zero_trust_access_custom_page/resource.go | 6 +++--- .../zero_trust_access_group/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../zero_trust_access_group/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../resource_test.go | 4 ++-- .../zero_trust_access_policy/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../zero_trust_access_policy/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../zero_trust_access_tag/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../zero_trust_access_tag/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../zero_trust_access_tag/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../zero_trust_dex_test/data_source.go | 4 ++-- .../zero_trust_dex_test/data_source_model.go | 4 ++-- .../zero_trust_dex_test/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/zero_trust_dex_test/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../zero_trust_dlp_custom_profile/resource.go | 6 +++--- .../zero_trust_dlp_dataset/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../zero_trust_dlp_dataset/resource.go | 6 +++--- .../zero_trust_dlp_entry/data_source.go | 4 ++-- .../zero_trust_dlp_entry/data_source_model.go | 4 ++-- .../zero_trust_dlp_entry/list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../services/zero_trust_dlp_entry/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../zero_trust_dns_location/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../zero_trust_dns_location/resource.go | 6 +++--- .../data_source.go | 2 +- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../data_source.go | 2 +- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../zero_trust_gateway_policy/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../zero_trust_gateway_policy/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../zero_trust_gateway_settings/resource.go | 6 +++--- .../services/zero_trust_list/data_source.go | 4 ++-- .../zero_trust_list/data_source_model.go | 4 ++-- .../zero_trust_list/list_data_source.go | 2 +- .../zero_trust_list/list_data_source_model.go | 4 ++-- internal/services/zero_trust_list/resource.go | 6 +++--- .../zero_trust_organization/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../zero_trust_organization/resource.go | 6 +++--- .../zero_trust_risk_behavior/data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../zero_trust_risk_behavior/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../zero_trust_tunnel_cloudflared/resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- .../data_source.go | 4 ++-- .../data_source_model.go | 4 ++-- .../list_data_source.go | 2 +- .../list_data_source_model.go | 4 ++-- .../resource.go | 6 +++--- internal/services/zone/data_source.go | 4 ++-- internal/services/zone/data_source_model.go | 4 ++-- internal/services/zone/list_data_source.go | 2 +- .../services/zone/list_data_source_model.go | 4 ++-- internal/services/zone/resource.go | 6 +++--- .../zone_cache_reserve/data_source.go | 4 ++-- .../zone_cache_reserve/data_source_model.go | 4 ++-- .../services/zone_cache_reserve/resource.go | 6 +++--- .../zone_cache_variants/data_source.go | 4 ++-- .../zone_cache_variants/data_source_model.go | 4 ++-- .../services/zone_cache_variants/resource.go | 6 +++--- internal/services/zone_dnssec/custom.go | 6 +++--- internal/services/zone_dnssec/data_source.go | 4 ++-- .../services/zone_dnssec/data_source_model.go | 4 ++-- internal/services/zone_dnssec/resource.go | 6 +++--- internal/services/zone_hold/data_source.go | 4 ++-- .../services/zone_hold/data_source_model.go | 4 ++-- internal/services/zone_hold/resource.go | 6 +++--- .../services/zone_lockdown/data_source.go | 4 ++-- .../zone_lockdown/data_source_model.go | 4 ++-- .../zone_lockdown/list_data_source.go | 2 +- .../zone_lockdown/list_data_source_model.go | 4 ++-- internal/services/zone_lockdown/resource.go | 6 +++--- internal/services/zone_setting/data_source.go | 4 ++-- .../zone_setting/data_source_model.go | 4 ++-- internal/services/zone_setting/resource.go | 6 +++--- .../services/zone_subscription/data_source.go | 4 ++-- .../services/zone_subscription/resource.go | 6 +++--- scripts/bootstrap | 3 --- scripts/link | 2 +- scripts/unlink | 2 +- 782 files changed, 1610 insertions(+), 1613 deletions(-) rename internal/services/{ => r2_bucket}/.DS_Store (88%) diff --git a/internal/acctest/acctest.go b/internal/acctest/acctest.go index 0e7b685e3b..8879740785 100644 --- a/internal/acctest/acctest.go +++ b/internal/acctest/acctest.go @@ -8,8 +8,8 @@ import ( "testing" cfv1 "github.com/cloudflare/cloudflare-go" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal" "github.com/cloudflare/terraform-provider-cloudflare/internal/consts" "github.com/hashicorp/terraform-plugin-framework/providerserver" diff --git a/internal/logging/logging.go b/internal/logging/logging.go index 1d033d6dbf..9c8679e0a3 100644 --- a/internal/logging/logging.go +++ b/internal/logging/logging.go @@ -9,7 +9,7 @@ import ( "slices" "strings" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/hashicorp/terraform-plugin-log/tflog" ) diff --git a/internal/provider.go b/internal/provider.go index e9f2d5d688..6ab8b6e822 100644 --- a/internal/provider.go +++ b/internal/provider.go @@ -7,8 +7,8 @@ import ( "fmt" "regexp" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/consts" "github.com/cloudflare/terraform-provider-cloudflare/internal/services/access_rule" "github.com/cloudflare/terraform-provider-cloudflare/internal/services/account" diff --git a/internal/services/access_rule/data_source.go b/internal/services/access_rule/data_source.go index 1051399a4c..58df205cf1 100644 --- a/internal/services/access_rule/data_source.go +++ b/internal/services/access_rule/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/access_rule/data_source_model.go b/internal/services/access_rule/data_source_model.go index a824790e4e..6fd5b3add9 100644 --- a/internal/services/access_rule/data_source_model.go +++ b/internal/services/access_rule/data_source_model.go @@ -5,8 +5,8 @@ package access_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/access_rule/list_data_source.go b/internal/services/access_rule/list_data_source.go index 2a78b767f1..9ec0e0563e 100644 --- a/internal/services/access_rule/list_data_source.go +++ b/internal/services/access_rule/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/access_rule/list_data_source_model.go b/internal/services/access_rule/list_data_source_model.go index e267eff841..ad595b19b7 100644 --- a/internal/services/access_rule/list_data_source_model.go +++ b/internal/services/access_rule/list_data_source_model.go @@ -5,8 +5,8 @@ package access_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/access_rule/resource.go b/internal/services/access_rule/resource.go index c291ce390f..66af441484 100644 --- a/internal/services/access_rule/resource.go +++ b/internal/services/access_rule/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/account/data_source.go b/internal/services/account/data_source.go index 1e20ca3cab..26245d0a68 100644 --- a/internal/services/account/data_source.go +++ b/internal/services/account/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/account/data_source_model.go b/internal/services/account/data_source_model.go index 78102f3227..e93fbef9f0 100644 --- a/internal/services/account/data_source_model.go +++ b/internal/services/account/data_source_model.go @@ -5,8 +5,8 @@ package account import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/account/list_data_source.go b/internal/services/account/list_data_source.go index 77d354a9df..7faae03b8a 100644 --- a/internal/services/account/list_data_source.go +++ b/internal/services/account/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/account/list_data_source_model.go b/internal/services/account/list_data_source_model.go index 506c06df02..c4e9e1d4d5 100644 --- a/internal/services/account/list_data_source_model.go +++ b/internal/services/account/list_data_source_model.go @@ -5,8 +5,8 @@ package account import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/account/resource.go b/internal/services/account/resource.go index ee8f79ff0d..bcdd9107bc 100644 --- a/internal/services/account/resource.go +++ b/internal/services/account/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/account_member/data_source.go b/internal/services/account_member/data_source.go index 1b8174d245..3320234af4 100644 --- a/internal/services/account_member/data_source.go +++ b/internal/services/account_member/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/account_member/data_source_model.go b/internal/services/account_member/data_source_model.go index e1e559cb85..f75dfdf6cd 100644 --- a/internal/services/account_member/data_source_model.go +++ b/internal/services/account_member/data_source_model.go @@ -5,8 +5,8 @@ package account_member import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/account_member/list_data_source.go b/internal/services/account_member/list_data_source.go index 87bdf9f1c3..589d807602 100644 --- a/internal/services/account_member/list_data_source.go +++ b/internal/services/account_member/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/account_member/list_data_source_model.go b/internal/services/account_member/list_data_source_model.go index 09e7182ffe..4113ba7c39 100644 --- a/internal/services/account_member/list_data_source_model.go +++ b/internal/services/account_member/list_data_source_model.go @@ -5,8 +5,8 @@ package account_member import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/account_member/resource.go b/internal/services/account_member/resource.go index 76dccb8e26..ca88d4ac3a 100644 --- a/internal/services/account_member/resource.go +++ b/internal/services/account_member/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/account_role/data_source.go b/internal/services/account_role/data_source.go index 0174d5aec5..5ca99eda8e 100644 --- a/internal/services/account_role/data_source.go +++ b/internal/services/account_role/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/account_role/data_source_model.go b/internal/services/account_role/data_source_model.go index 8bb071ba04..c0d4127551 100644 --- a/internal/services/account_role/data_source_model.go +++ b/internal/services/account_role/data_source_model.go @@ -5,8 +5,8 @@ package account_role import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/account_role/list_data_source.go b/internal/services/account_role/list_data_source.go index c0ff069342..be9ab188e7 100644 --- a/internal/services/account_role/list_data_source.go +++ b/internal/services/account_role/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/account_role/list_data_source_model.go b/internal/services/account_role/list_data_source_model.go index 3cbf88ca76..c6035ec3ac 100644 --- a/internal/services/account_role/list_data_source_model.go +++ b/internal/services/account_role/list_data_source_model.go @@ -5,8 +5,8 @@ package account_role import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/account_subscription/data_source.go b/internal/services/account_subscription/data_source.go index ce736ee3a5..17f806c81d 100644 --- a/internal/services/account_subscription/data_source.go +++ b/internal/services/account_subscription/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/account_subscription/data_source_model.go b/internal/services/account_subscription/data_source_model.go index 3370bcf0da..ac92dce8bc 100644 --- a/internal/services/account_subscription/data_source_model.go +++ b/internal/services/account_subscription/data_source_model.go @@ -5,8 +5,8 @@ package account_subscription import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/account_subscription/resource.go b/internal/services/account_subscription/resource.go index 59176221b1..49492ff4d7 100644 --- a/internal/services/account_subscription/resource.go +++ b/internal/services/account_subscription/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/account_token/data_source.go b/internal/services/account_token/data_source.go index 4787b64947..716aa069c5 100644 --- a/internal/services/account_token/data_source.go +++ b/internal/services/account_token/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/account_token/data_source_model.go b/internal/services/account_token/data_source_model.go index 31fab4493a..76bf4a309c 100644 --- a/internal/services/account_token/data_source_model.go +++ b/internal/services/account_token/data_source_model.go @@ -5,8 +5,8 @@ package account_token import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/account_token/list_data_source.go b/internal/services/account_token/list_data_source.go index d0b8d20aba..cc8373b5ed 100644 --- a/internal/services/account_token/list_data_source.go +++ b/internal/services/account_token/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/account_token/list_data_source_model.go b/internal/services/account_token/list_data_source_model.go index 33c0b8643e..17a9a8689a 100644 --- a/internal/services/account_token/list_data_source_model.go +++ b/internal/services/account_token/list_data_source_model.go @@ -5,8 +5,8 @@ package account_token import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/account_token/resource.go b/internal/services/account_token/resource.go index 1dac00a099..1664a85477 100644 --- a/internal/services/account_token/resource.go +++ b/internal/services/account_token/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/address_map/data_source.go b/internal/services/address_map/data_source.go index fe5c2885d9..0b6e34c7ac 100644 --- a/internal/services/address_map/data_source.go +++ b/internal/services/address_map/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/address_map/data_source_model.go b/internal/services/address_map/data_source_model.go index bb21d1bd89..7ca4b0fb5c 100644 --- a/internal/services/address_map/data_source_model.go +++ b/internal/services/address_map/data_source_model.go @@ -5,8 +5,8 @@ package address_map import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/addressing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/addressing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/address_map/list_data_source.go b/internal/services/address_map/list_data_source.go index 23b8a63bac..d743f6a643 100644 --- a/internal/services/address_map/list_data_source.go +++ b/internal/services/address_map/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/address_map/list_data_source_model.go b/internal/services/address_map/list_data_source_model.go index 124cde8879..dd369182cc 100644 --- a/internal/services/address_map/list_data_source_model.go +++ b/internal/services/address_map/list_data_source_model.go @@ -5,8 +5,8 @@ package address_map import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/addressing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/addressing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/address_map/resource.go b/internal/services/address_map/resource.go index 5c52454156..0f4522144e 100644 --- a/internal/services/address_map/resource.go +++ b/internal/services/address_map/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/addressing" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/addressing" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/api_shield/data_source.go b/internal/services/api_shield/data_source.go index dd40e8dc36..550a15c8d1 100644 --- a/internal/services/api_shield/data_source.go +++ b/internal/services/api_shield/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/api_shield/data_source_model.go b/internal/services/api_shield/data_source_model.go index b7aaf6ff08..3a7819a480 100644 --- a/internal/services/api_shield/data_source_model.go +++ b/internal/services/api_shield/data_source_model.go @@ -5,8 +5,8 @@ package api_shield import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/api_shield/resource.go b/internal/services/api_shield/resource.go index ef2778785b..8f9afeffb2 100644 --- a/internal/services/api_shield/resource.go +++ b/internal/services/api_shield/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/api_shield_discovery_operation/data_source.go b/internal/services/api_shield_discovery_operation/data_source.go index 3fccfdca36..d84d80900b 100644 --- a/internal/services/api_shield_discovery_operation/data_source.go +++ b/internal/services/api_shield_discovery_operation/data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/hashicorp/terraform-plugin-framework/datasource" ) diff --git a/internal/services/api_shield_discovery_operation/data_source_model.go b/internal/services/api_shield_discovery_operation/data_source_model.go index cd03e5850f..b70af1daf8 100644 --- a/internal/services/api_shield_discovery_operation/data_source_model.go +++ b/internal/services/api_shield_discovery_operation/data_source_model.go @@ -5,8 +5,8 @@ package api_shield_discovery_operation import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/api_shield_discovery_operation/list_data_source.go b/internal/services/api_shield_discovery_operation/list_data_source.go index b85fb2cc34..51f0cb7945 100644 --- a/internal/services/api_shield_discovery_operation/list_data_source.go +++ b/internal/services/api_shield_discovery_operation/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/api_shield_discovery_operation/list_data_source_model.go b/internal/services/api_shield_discovery_operation/list_data_source_model.go index c9a5f49d78..28f881800f 100644 --- a/internal/services/api_shield_discovery_operation/list_data_source_model.go +++ b/internal/services/api_shield_discovery_operation/list_data_source_model.go @@ -5,8 +5,8 @@ package api_shield_discovery_operation import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/api_shield_discovery_operation/resource.go b/internal/services/api_shield_discovery_operation/resource.go index 51f254f80a..8833c96b35 100644 --- a/internal/services/api_shield_discovery_operation/resource.go +++ b/internal/services/api_shield_discovery_operation/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/api_shield_operation/data_source.go b/internal/services/api_shield_operation/data_source.go index e3833d64ac..c1521ca3a0 100644 --- a/internal/services/api_shield_operation/data_source.go +++ b/internal/services/api_shield_operation/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/api_shield_operation/data_source_model.go b/internal/services/api_shield_operation/data_source_model.go index 799a808b15..cc3846744b 100644 --- a/internal/services/api_shield_operation/data_source_model.go +++ b/internal/services/api_shield_operation/data_source_model.go @@ -5,8 +5,8 @@ package api_shield_operation import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/api_shield_operation/list_data_source.go b/internal/services/api_shield_operation/list_data_source.go index ded277d5b2..ebb6d5526e 100644 --- a/internal/services/api_shield_operation/list_data_source.go +++ b/internal/services/api_shield_operation/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/api_shield_operation/list_data_source_model.go b/internal/services/api_shield_operation/list_data_source_model.go index fb185be01b..064a6134c9 100644 --- a/internal/services/api_shield_operation/list_data_source_model.go +++ b/internal/services/api_shield_operation/list_data_source_model.go @@ -5,8 +5,8 @@ package api_shield_operation import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/api_shield_operation/resource.go b/internal/services/api_shield_operation/resource.go index 157f3752fc..5624f03d12 100644 --- a/internal/services/api_shield_operation/resource.go +++ b/internal/services/api_shield_operation/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/api_shield_operation/resource_test.go b/internal/services/api_shield_operation/resource_test.go index 1806e1c661..809bf8cc78 100644 --- a/internal/services/api_shield_operation/resource_test.go +++ b/internal/services/api_shield_operation/resource_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/cloudflare/cloudflare-go" - cfv3 "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + cfv3 "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/consts" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" diff --git a/internal/services/api_shield_operation_schema_validation_settings/data_source.go b/internal/services/api_shield_operation_schema_validation_settings/data_source.go index e9fa73575f..2b638491e9 100644 --- a/internal/services/api_shield_operation_schema_validation_settings/data_source.go +++ b/internal/services/api_shield_operation_schema_validation_settings/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/api_shield_operation_schema_validation_settings/data_source_model.go b/internal/services/api_shield_operation_schema_validation_settings/data_source_model.go index cb55ac6644..1636207ad8 100644 --- a/internal/services/api_shield_operation_schema_validation_settings/data_source_model.go +++ b/internal/services/api_shield_operation_schema_validation_settings/data_source_model.go @@ -5,8 +5,8 @@ package api_shield_operation_schema_validation_settings import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/api_shield_operation_schema_validation_settings/resource.go b/internal/services/api_shield_operation_schema_validation_settings/resource.go index de0049cba0..3cc7e1f435 100644 --- a/internal/services/api_shield_operation_schema_validation_settings/resource.go +++ b/internal/services/api_shield_operation_schema_validation_settings/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/api_shield_schema/data_source.go b/internal/services/api_shield_schema/data_source.go index 1c01e2f4a2..fd0c593d55 100644 --- a/internal/services/api_shield_schema/data_source.go +++ b/internal/services/api_shield_schema/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/api_shield_schema/data_source_model.go b/internal/services/api_shield_schema/data_source_model.go index 73c231b4dd..dd20c5e6fe 100644 --- a/internal/services/api_shield_schema/data_source_model.go +++ b/internal/services/api_shield_schema/data_source_model.go @@ -5,8 +5,8 @@ package api_shield_schema import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/api_shield_schema/list_data_source.go b/internal/services/api_shield_schema/list_data_source.go index b7482a0af4..ec336aa488 100644 --- a/internal/services/api_shield_schema/list_data_source.go +++ b/internal/services/api_shield_schema/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/api_shield_schema/list_data_source_model.go b/internal/services/api_shield_schema/list_data_source_model.go index 1f7debe8b8..3a028494b1 100644 --- a/internal/services/api_shield_schema/list_data_source_model.go +++ b/internal/services/api_shield_schema/list_data_source_model.go @@ -5,8 +5,8 @@ package api_shield_schema import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/api_shield_schema/resource.go b/internal/services/api_shield_schema/resource.go index 0b15e589d2..9633ed23ee 100644 --- a/internal/services/api_shield_schema/resource.go +++ b/internal/services/api_shield_schema/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/api_shield_schema_validation_settings/data_source.go b/internal/services/api_shield_schema_validation_settings/data_source.go index 5d4bad6c25..62e629bbfa 100644 --- a/internal/services/api_shield_schema_validation_settings/data_source.go +++ b/internal/services/api_shield_schema_validation_settings/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/api_shield_schema_validation_settings/data_source_model.go b/internal/services/api_shield_schema_validation_settings/data_source_model.go index 323f10361a..17b7fa30c0 100644 --- a/internal/services/api_shield_schema_validation_settings/data_source_model.go +++ b/internal/services/api_shield_schema_validation_settings/data_source_model.go @@ -5,8 +5,8 @@ package api_shield_schema_validation_settings import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/api_shield_schema_validation_settings/resource.go b/internal/services/api_shield_schema_validation_settings/resource.go index 28533ba90c..624de320f1 100644 --- a/internal/services/api_shield_schema_validation_settings/resource.go +++ b/internal/services/api_shield_schema_validation_settings/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/api_gateway" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/api_gateway" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/api_token/data_source.go b/internal/services/api_token/data_source.go index e36bcd0b58..b3326a123c 100644 --- a/internal/services/api_token/data_source.go +++ b/internal/services/api_token/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/api_token/data_source_model.go b/internal/services/api_token/data_source_model.go index cd1c4fbd23..7734989c9d 100644 --- a/internal/services/api_token/data_source_model.go +++ b/internal/services/api_token/data_source_model.go @@ -5,8 +5,8 @@ package api_token import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/user" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/user" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/api_token/list_data_source.go b/internal/services/api_token/list_data_source.go index 2f4cb0e01d..7f082135a6 100644 --- a/internal/services/api_token/list_data_source.go +++ b/internal/services/api_token/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/api_token/list_data_source_model.go b/internal/services/api_token/list_data_source_model.go index 3f83627a4d..00732f4877 100644 --- a/internal/services/api_token/list_data_source_model.go +++ b/internal/services/api_token/list_data_source_model.go @@ -5,8 +5,8 @@ package api_token import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/user" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/user" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/api_token/resource.go b/internal/services/api_token/resource.go index a862a02b42..a3f9bcc96d 100644 --- a/internal/services/api_token/resource.go +++ b/internal/services/api_token/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/user" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/user" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/api_token_permissions_groups/data_source.go b/internal/services/api_token_permissions_groups/data_source.go index 3fb9e8639c..e17943c0e7 100644 --- a/internal/services/api_token_permissions_groups/data_source.go +++ b/internal/services/api_token_permissions_groups/data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/hashicorp/terraform-plugin-framework/datasource" ) diff --git a/internal/services/api_token_permissions_groups/data_source_model.go b/internal/services/api_token_permissions_groups/data_source_model.go index 90b83e7c6c..30e8931ee5 100644 --- a/internal/services/api_token_permissions_groups/data_source_model.go +++ b/internal/services/api_token_permissions_groups/data_source_model.go @@ -5,8 +5,8 @@ package api_token_permissions_groups import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/api_token_permissions_groups/list_data_source.go b/internal/services/api_token_permissions_groups/list_data_source.go index e09619e8df..2f1db6a583 100644 --- a/internal/services/api_token_permissions_groups/list_data_source.go +++ b/internal/services/api_token_permissions_groups/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/api_token_permissions_groups/list_data_source_model.go b/internal/services/api_token_permissions_groups/list_data_source_model.go index d656844eed..f6a6fecaf5 100644 --- a/internal/services/api_token_permissions_groups/list_data_source_model.go +++ b/internal/services/api_token_permissions_groups/list_data_source_model.go @@ -5,8 +5,8 @@ package api_token_permissions_groups import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/accounts" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/accounts" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/argo_smart_routing/data_source.go b/internal/services/argo_smart_routing/data_source.go index 9fd6a7bb6b..c56f7f41b7 100644 --- a/internal/services/argo_smart_routing/data_source.go +++ b/internal/services/argo_smart_routing/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/argo_smart_routing/data_source_model.go b/internal/services/argo_smart_routing/data_source_model.go index f8072a34d9..e64bb91ced 100644 --- a/internal/services/argo_smart_routing/data_source_model.go +++ b/internal/services/argo_smart_routing/data_source_model.go @@ -5,8 +5,8 @@ package argo_smart_routing import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/argo" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/argo" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/argo_smart_routing/resource.go b/internal/services/argo_smart_routing/resource.go index 5c060fbdba..98d7211910 100644 --- a/internal/services/argo_smart_routing/resource.go +++ b/internal/services/argo_smart_routing/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/argo" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/argo" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/argo_tiered_caching/data_source.go b/internal/services/argo_tiered_caching/data_source.go index 14b214a752..2e2e7b0ecb 100644 --- a/internal/services/argo_tiered_caching/data_source.go +++ b/internal/services/argo_tiered_caching/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/argo_tiered_caching/data_source_model.go b/internal/services/argo_tiered_caching/data_source_model.go index 54c74c8126..4573b766aa 100644 --- a/internal/services/argo_tiered_caching/data_source_model.go +++ b/internal/services/argo_tiered_caching/data_source_model.go @@ -5,8 +5,8 @@ package argo_tiered_caching import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/argo" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/argo" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/argo_tiered_caching/resource.go b/internal/services/argo_tiered_caching/resource.go index e49f26da31..74a3b30b81 100644 --- a/internal/services/argo_tiered_caching/resource.go +++ b/internal/services/argo_tiered_caching/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/argo" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/argo" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/authenticated_origin_pulls/data_source.go b/internal/services/authenticated_origin_pulls/data_source.go index 744ea9bac5..7563f18b45 100644 --- a/internal/services/authenticated_origin_pulls/data_source.go +++ b/internal/services/authenticated_origin_pulls/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/authenticated_origin_pulls/data_source_model.go b/internal/services/authenticated_origin_pulls/data_source_model.go index e9fa597df6..67f7e773c0 100644 --- a/internal/services/authenticated_origin_pulls/data_source_model.go +++ b/internal/services/authenticated_origin_pulls/data_source_model.go @@ -5,8 +5,8 @@ package authenticated_origin_pulls import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/origin_tls_client_auth" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/authenticated_origin_pulls/resource.go b/internal/services/authenticated_origin_pulls/resource.go index b0d4281f6f..e458cdc38a 100644 --- a/internal/services/authenticated_origin_pulls/resource.go +++ b/internal/services/authenticated_origin_pulls/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/origin_tls_client_auth" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/authenticated_origin_pulls_certificate/data_source.go b/internal/services/authenticated_origin_pulls_certificate/data_source.go index ca3609e360..ae61e02d0b 100644 --- a/internal/services/authenticated_origin_pulls_certificate/data_source.go +++ b/internal/services/authenticated_origin_pulls_certificate/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/authenticated_origin_pulls_certificate/data_source_model.go b/internal/services/authenticated_origin_pulls_certificate/data_source_model.go index 58d44a7521..163b0f1203 100644 --- a/internal/services/authenticated_origin_pulls_certificate/data_source_model.go +++ b/internal/services/authenticated_origin_pulls_certificate/data_source_model.go @@ -5,8 +5,8 @@ package authenticated_origin_pulls_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/origin_tls_client_auth" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/authenticated_origin_pulls_certificate/list_data_source.go b/internal/services/authenticated_origin_pulls_certificate/list_data_source.go index 4762421c78..c391d19f85 100644 --- a/internal/services/authenticated_origin_pulls_certificate/list_data_source.go +++ b/internal/services/authenticated_origin_pulls_certificate/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/authenticated_origin_pulls_certificate/list_data_source_model.go b/internal/services/authenticated_origin_pulls_certificate/list_data_source_model.go index 0a3624474f..e74dda025f 100644 --- a/internal/services/authenticated_origin_pulls_certificate/list_data_source_model.go +++ b/internal/services/authenticated_origin_pulls_certificate/list_data_source_model.go @@ -5,8 +5,8 @@ package authenticated_origin_pulls_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/origin_tls_client_auth" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/authenticated_origin_pulls_certificate/resource.go b/internal/services/authenticated_origin_pulls_certificate/resource.go index 3075f2dc7b..e94fd54786 100644 --- a/internal/services/authenticated_origin_pulls_certificate/resource.go +++ b/internal/services/authenticated_origin_pulls_certificate/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/origin_tls_client_auth" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/origin_tls_client_auth" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/bot_management/data_source.go b/internal/services/bot_management/data_source.go index 527713e71c..3f10079450 100644 --- a/internal/services/bot_management/data_source.go +++ b/internal/services/bot_management/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/bot_management/data_source_model.go b/internal/services/bot_management/data_source_model.go index 55170cf12e..9ad755a401 100644 --- a/internal/services/bot_management/data_source_model.go +++ b/internal/services/bot_management/data_source_model.go @@ -5,8 +5,8 @@ package bot_management import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/bot_management" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/bot_management" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/bot_management/resource.go b/internal/services/bot_management/resource.go index 2152b2b644..d671fb82e9 100644 --- a/internal/services/bot_management/resource.go +++ b/internal/services/bot_management/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/bot_management" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/bot_management" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/byo_ip_prefix/data_source.go b/internal/services/byo_ip_prefix/data_source.go index c8b77ef9e1..9e1502daf5 100644 --- a/internal/services/byo_ip_prefix/data_source.go +++ b/internal/services/byo_ip_prefix/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/byo_ip_prefix/data_source_model.go b/internal/services/byo_ip_prefix/data_source_model.go index 160988a1c5..f49cc1f03c 100644 --- a/internal/services/byo_ip_prefix/data_source_model.go +++ b/internal/services/byo_ip_prefix/data_source_model.go @@ -5,8 +5,8 @@ package byo_ip_prefix import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/addressing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/addressing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/byo_ip_prefix/list_data_source.go b/internal/services/byo_ip_prefix/list_data_source.go index 6fd8cc0204..4b334349d2 100644 --- a/internal/services/byo_ip_prefix/list_data_source.go +++ b/internal/services/byo_ip_prefix/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/byo_ip_prefix/list_data_source_model.go b/internal/services/byo_ip_prefix/list_data_source_model.go index 3a0f120d6d..53f9579a17 100644 --- a/internal/services/byo_ip_prefix/list_data_source_model.go +++ b/internal/services/byo_ip_prefix/list_data_source_model.go @@ -5,8 +5,8 @@ package byo_ip_prefix import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/addressing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/addressing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/byo_ip_prefix/resource.go b/internal/services/byo_ip_prefix/resource.go index d28caa0e0d..71a18429d0 100644 --- a/internal/services/byo_ip_prefix/resource.go +++ b/internal/services/byo_ip_prefix/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/addressing" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/addressing" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/calls_sfu_app/data_source.go b/internal/services/calls_sfu_app/data_source.go index ff9d5ed43b..ccfd6a129d 100644 --- a/internal/services/calls_sfu_app/data_source.go +++ b/internal/services/calls_sfu_app/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/calls_sfu_app/data_source_model.go b/internal/services/calls_sfu_app/data_source_model.go index e09971037b..3892b01026 100644 --- a/internal/services/calls_sfu_app/data_source_model.go +++ b/internal/services/calls_sfu_app/data_source_model.go @@ -5,8 +5,8 @@ package calls_sfu_app import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/calls" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/calls" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/calls_sfu_app/list_data_source.go b/internal/services/calls_sfu_app/list_data_source.go index 5a5dcfb3ba..38b7f01fac 100644 --- a/internal/services/calls_sfu_app/list_data_source.go +++ b/internal/services/calls_sfu_app/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/calls_sfu_app/list_data_source_model.go b/internal/services/calls_sfu_app/list_data_source_model.go index c7a06171d1..3748a58dee 100644 --- a/internal/services/calls_sfu_app/list_data_source_model.go +++ b/internal/services/calls_sfu_app/list_data_source_model.go @@ -5,8 +5,8 @@ package calls_sfu_app import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/calls" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/calls" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/calls_sfu_app/resource.go b/internal/services/calls_sfu_app/resource.go index 672b4d3c61..3fb5f92483 100644 --- a/internal/services/calls_sfu_app/resource.go +++ b/internal/services/calls_sfu_app/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/calls" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/calls" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/calls_turn_app/data_source.go b/internal/services/calls_turn_app/data_source.go index 710e1dd60d..aeaf2ebf8f 100644 --- a/internal/services/calls_turn_app/data_source.go +++ b/internal/services/calls_turn_app/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/calls_turn_app/data_source_model.go b/internal/services/calls_turn_app/data_source_model.go index 3335905a3a..80fca23361 100644 --- a/internal/services/calls_turn_app/data_source_model.go +++ b/internal/services/calls_turn_app/data_source_model.go @@ -5,8 +5,8 @@ package calls_turn_app import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/calls" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/calls" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/calls_turn_app/list_data_source.go b/internal/services/calls_turn_app/list_data_source.go index f78c78de84..6fed9f08ce 100644 --- a/internal/services/calls_turn_app/list_data_source.go +++ b/internal/services/calls_turn_app/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/calls_turn_app/list_data_source_model.go b/internal/services/calls_turn_app/list_data_source_model.go index efc7ca2616..8b0ef8003b 100644 --- a/internal/services/calls_turn_app/list_data_source_model.go +++ b/internal/services/calls_turn_app/list_data_source_model.go @@ -5,8 +5,8 @@ package calls_turn_app import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/calls" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/calls" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/calls_turn_app/resource.go b/internal/services/calls_turn_app/resource.go index 593fd4e521..e1a8e89cf0 100644 --- a/internal/services/calls_turn_app/resource.go +++ b/internal/services/calls_turn_app/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/calls" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/calls" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/certificate_pack/data_source.go b/internal/services/certificate_pack/data_source.go index c8e5649bfa..80e9e1c26e 100644 --- a/internal/services/certificate_pack/data_source.go +++ b/internal/services/certificate_pack/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/certificate_pack/data_source_model.go b/internal/services/certificate_pack/data_source_model.go index 3e487691ea..9ecdf7d9bd 100644 --- a/internal/services/certificate_pack/data_source_model.go +++ b/internal/services/certificate_pack/data_source_model.go @@ -5,8 +5,8 @@ package certificate_pack import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/ssl" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/ssl" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/certificate_pack/list_data_source.go b/internal/services/certificate_pack/list_data_source.go index 9512cc34af..39c7acfc05 100644 --- a/internal/services/certificate_pack/list_data_source.go +++ b/internal/services/certificate_pack/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/certificate_pack/list_data_source_model.go b/internal/services/certificate_pack/list_data_source_model.go index da67891393..cd7f351917 100644 --- a/internal/services/certificate_pack/list_data_source_model.go +++ b/internal/services/certificate_pack/list_data_source_model.go @@ -5,8 +5,8 @@ package certificate_pack import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/ssl" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/ssl" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/certificate_pack/resource.go b/internal/services/certificate_pack/resource.go index c116d39716..4ff5e7dae2 100644 --- a/internal/services/certificate_pack/resource.go +++ b/internal/services/certificate_pack/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/ssl" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/ssl" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/cloud_connector_rules/data_source.go b/internal/services/cloud_connector_rules/data_source.go index 5096a76462..43036c526d 100644 --- a/internal/services/cloud_connector_rules/data_source.go +++ b/internal/services/cloud_connector_rules/data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/hashicorp/terraform-plugin-framework/datasource" ) diff --git a/internal/services/cloud_connector_rules/data_source_model.go b/internal/services/cloud_connector_rules/data_source_model.go index 6e9bd6f49c..7c4b3ce033 100644 --- a/internal/services/cloud_connector_rules/data_source_model.go +++ b/internal/services/cloud_connector_rules/data_source_model.go @@ -5,8 +5,8 @@ package cloud_connector_rules import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cloud_connector" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cloud_connector" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/cloud_connector_rules/list_data_source.go b/internal/services/cloud_connector_rules/list_data_source.go index 4af092c44a..dc1b7bf454 100644 --- a/internal/services/cloud_connector_rules/list_data_source.go +++ b/internal/services/cloud_connector_rules/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/cloud_connector_rules/list_data_source_model.go b/internal/services/cloud_connector_rules/list_data_source_model.go index ca4f020214..8deeea1165 100644 --- a/internal/services/cloud_connector_rules/list_data_source_model.go +++ b/internal/services/cloud_connector_rules/list_data_source_model.go @@ -5,8 +5,8 @@ package cloud_connector_rules import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cloud_connector" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cloud_connector" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/cloud_connector_rules/resource.go b/internal/services/cloud_connector_rules/resource.go index b925fa0e17..56ebcda80d 100644 --- a/internal/services/cloud_connector_rules/resource.go +++ b/internal/services/cloud_connector_rules/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cloud_connector" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cloud_connector" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/cloudforce_one_request/data_source.go b/internal/services/cloudforce_one_request/data_source.go index ae64d182ab..bcf87c055e 100644 --- a/internal/services/cloudforce_one_request/data_source.go +++ b/internal/services/cloudforce_one_request/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/cloudforce_one_request/data_source_model.go b/internal/services/cloudforce_one_request/data_source_model.go index 54160906c5..519fcd0058 100644 --- a/internal/services/cloudforce_one_request/data_source_model.go +++ b/internal/services/cloudforce_one_request/data_source_model.go @@ -5,7 +5,7 @@ package cloudforce_one_request import ( "context" - "github.com/cloudflare/cloudflare-go/v3/cloudforce_one" + "github.com/cloudflare/cloudflare-go/v4/cloudforce_one" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/cloudforce_one_request/list_data_source.go b/internal/services/cloudforce_one_request/list_data_source.go index d1e4709beb..f11ff32650 100644 --- a/internal/services/cloudforce_one_request/list_data_source.go +++ b/internal/services/cloudforce_one_request/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/cloudforce_one_request/list_data_source_model.go b/internal/services/cloudforce_one_request/list_data_source_model.go index f6f0d90017..77e90175ae 100644 --- a/internal/services/cloudforce_one_request/list_data_source_model.go +++ b/internal/services/cloudforce_one_request/list_data_source_model.go @@ -5,7 +5,7 @@ package cloudforce_one_request import ( "context" - "github.com/cloudflare/cloudflare-go/v3/cloudforce_one" + "github.com/cloudflare/cloudflare-go/v4/cloudforce_one" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/cloudforce_one_request/resource.go b/internal/services/cloudforce_one_request/resource.go index ce9c960869..dd782bb726 100644 --- a/internal/services/cloudforce_one_request/resource.go +++ b/internal/services/cloudforce_one_request/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cloudforce_one" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cloudforce_one" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/cloudforce_one_request_asset/data_source.go b/internal/services/cloudforce_one_request_asset/data_source.go index 2d08b2d409..5f2a35b11a 100644 --- a/internal/services/cloudforce_one_request_asset/data_source.go +++ b/internal/services/cloudforce_one_request_asset/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/cloudforce_one_request_asset/resource.go b/internal/services/cloudforce_one_request_asset/resource.go index 401d88768d..9460d92adb 100644 --- a/internal/services/cloudforce_one_request_asset/resource.go +++ b/internal/services/cloudforce_one_request_asset/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cloudforce_one" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cloudforce_one" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/cloudforce_one_request_message/data_source.go b/internal/services/cloudforce_one_request_message/data_source.go index c42c27f40a..a0d3b87c08 100644 --- a/internal/services/cloudforce_one_request_message/data_source.go +++ b/internal/services/cloudforce_one_request_message/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/cloudforce_one_request_message/data_source_model.go b/internal/services/cloudforce_one_request_message/data_source_model.go index d42be82c45..9a66bd5b5b 100644 --- a/internal/services/cloudforce_one_request_message/data_source_model.go +++ b/internal/services/cloudforce_one_request_message/data_source_model.go @@ -5,7 +5,7 @@ package cloudforce_one_request_message import ( "context" - "github.com/cloudflare/cloudflare-go/v3/cloudforce_one" + "github.com/cloudflare/cloudflare-go/v4/cloudforce_one" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/cloudforce_one_request_message/resource.go b/internal/services/cloudforce_one_request_message/resource.go index f0108af76b..8457e0ffec 100644 --- a/internal/services/cloudforce_one_request_message/resource.go +++ b/internal/services/cloudforce_one_request_message/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cloudforce_one" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cloudforce_one" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/cloudforce_one_request_priority/data_source.go b/internal/services/cloudforce_one_request_priority/data_source.go index 241f3a8a3c..00adfb954c 100644 --- a/internal/services/cloudforce_one_request_priority/data_source.go +++ b/internal/services/cloudforce_one_request_priority/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/cloudforce_one_request_priority/resource.go b/internal/services/cloudforce_one_request_priority/resource.go index 1b21b8aee9..be978f946d 100644 --- a/internal/services/cloudforce_one_request_priority/resource.go +++ b/internal/services/cloudforce_one_request_priority/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cloudforce_one" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cloudforce_one" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/content_scanning_expression/data_source.go b/internal/services/content_scanning_expression/data_source.go index db84abb749..ef1a143f73 100644 --- a/internal/services/content_scanning_expression/data_source.go +++ b/internal/services/content_scanning_expression/data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/hashicorp/terraform-plugin-framework/datasource" ) diff --git a/internal/services/content_scanning_expression/data_source_model.go b/internal/services/content_scanning_expression/data_source_model.go index e63b04777b..d4d6f132dc 100644 --- a/internal/services/content_scanning_expression/data_source_model.go +++ b/internal/services/content_scanning_expression/data_source_model.go @@ -5,8 +5,8 @@ package content_scanning_expression import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/content_scanning" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/content_scanning" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/content_scanning_expression/list_data_source.go b/internal/services/content_scanning_expression/list_data_source.go index d4f33432ec..9b14073373 100644 --- a/internal/services/content_scanning_expression/list_data_source.go +++ b/internal/services/content_scanning_expression/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/content_scanning_expression/list_data_source_model.go b/internal/services/content_scanning_expression/list_data_source_model.go index c937172cce..099c6bfb56 100644 --- a/internal/services/content_scanning_expression/list_data_source_model.go +++ b/internal/services/content_scanning_expression/list_data_source_model.go @@ -5,8 +5,8 @@ package content_scanning_expression import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/content_scanning" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/content_scanning" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/content_scanning_expression/resource.go b/internal/services/content_scanning_expression/resource.go index e26f605033..8d2b23ad3b 100644 --- a/internal/services/content_scanning_expression/resource.go +++ b/internal/services/content_scanning_expression/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/content_scanning" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/content_scanning" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/custom_hostname/data_source.go b/internal/services/custom_hostname/data_source.go index 36603b8316..3df9612e55 100644 --- a/internal/services/custom_hostname/data_source.go +++ b/internal/services/custom_hostname/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/custom_hostname/data_source_model.go b/internal/services/custom_hostname/data_source_model.go index c9febe86f4..8577b73cf6 100644 --- a/internal/services/custom_hostname/data_source_model.go +++ b/internal/services/custom_hostname/data_source_model.go @@ -5,8 +5,8 @@ package custom_hostname import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/custom_hostnames" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/custom_hostnames" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/custom_hostname/list_data_source.go b/internal/services/custom_hostname/list_data_source.go index 506cf98914..bf40aaa160 100644 --- a/internal/services/custom_hostname/list_data_source.go +++ b/internal/services/custom_hostname/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/custom_hostname/list_data_source_model.go b/internal/services/custom_hostname/list_data_source_model.go index b7a5c5063c..bd357e65ce 100644 --- a/internal/services/custom_hostname/list_data_source_model.go +++ b/internal/services/custom_hostname/list_data_source_model.go @@ -5,8 +5,8 @@ package custom_hostname import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/custom_hostnames" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/custom_hostnames" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/custom_hostname/resource.go b/internal/services/custom_hostname/resource.go index ed38d8f5d7..a957c0255c 100644 --- a/internal/services/custom_hostname/resource.go +++ b/internal/services/custom_hostname/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/custom_hostnames" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/custom_hostnames" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/custom_hostname_fallback_origin/data_source.go b/internal/services/custom_hostname_fallback_origin/data_source.go index 9ead89776a..58b0c7d20e 100644 --- a/internal/services/custom_hostname_fallback_origin/data_source.go +++ b/internal/services/custom_hostname_fallback_origin/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/custom_hostname_fallback_origin/data_source_model.go b/internal/services/custom_hostname_fallback_origin/data_source_model.go index b1dc76aae0..83fbaf9536 100644 --- a/internal/services/custom_hostname_fallback_origin/data_source_model.go +++ b/internal/services/custom_hostname_fallback_origin/data_source_model.go @@ -5,8 +5,8 @@ package custom_hostname_fallback_origin import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/custom_hostnames" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/custom_hostnames" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/custom_hostname_fallback_origin/resource.go b/internal/services/custom_hostname_fallback_origin/resource.go index 1eca43fbe9..367a953a60 100644 --- a/internal/services/custom_hostname_fallback_origin/resource.go +++ b/internal/services/custom_hostname_fallback_origin/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/custom_hostnames" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/custom_hostnames" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/custom_ssl/data_source.go b/internal/services/custom_ssl/data_source.go index dc7dfe2761..b1b611807c 100644 --- a/internal/services/custom_ssl/data_source.go +++ b/internal/services/custom_ssl/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/custom_ssl/data_source_model.go b/internal/services/custom_ssl/data_source_model.go index ea1aa625a9..23539fb1d8 100644 --- a/internal/services/custom_ssl/data_source_model.go +++ b/internal/services/custom_ssl/data_source_model.go @@ -5,8 +5,8 @@ package custom_ssl import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/custom_certificates" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/custom_certificates" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/custom_ssl/list_data_source.go b/internal/services/custom_ssl/list_data_source.go index a91bc3b97c..2fcbc66fe2 100644 --- a/internal/services/custom_ssl/list_data_source.go +++ b/internal/services/custom_ssl/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/custom_ssl/list_data_source_model.go b/internal/services/custom_ssl/list_data_source_model.go index 8d7eb54535..0077eee7e2 100644 --- a/internal/services/custom_ssl/list_data_source_model.go +++ b/internal/services/custom_ssl/list_data_source_model.go @@ -5,8 +5,8 @@ package custom_ssl import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/custom_certificates" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/custom_certificates" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/custom_ssl/resource.go b/internal/services/custom_ssl/resource.go index c37c4f7bc1..e86f9be4b2 100644 --- a/internal/services/custom_ssl/resource.go +++ b/internal/services/custom_ssl/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/custom_certificates" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/custom_certificates" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/d1_database/data_source.go b/internal/services/d1_database/data_source.go index 3baf327581..17bff69856 100644 --- a/internal/services/d1_database/data_source.go +++ b/internal/services/d1_database/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/d1_database/data_source_model.go b/internal/services/d1_database/data_source_model.go index c5c091db5c..b27a9a15ac 100644 --- a/internal/services/d1_database/data_source_model.go +++ b/internal/services/d1_database/data_source_model.go @@ -5,8 +5,8 @@ package d1_database import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/d1" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/d1" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/d1_database/list_data_source.go b/internal/services/d1_database/list_data_source.go index 7b610c05db..6b7651a453 100644 --- a/internal/services/d1_database/list_data_source.go +++ b/internal/services/d1_database/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/d1_database/list_data_source_model.go b/internal/services/d1_database/list_data_source_model.go index 161765e8e8..69ec6c608f 100644 --- a/internal/services/d1_database/list_data_source_model.go +++ b/internal/services/d1_database/list_data_source_model.go @@ -5,8 +5,8 @@ package d1_database import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/d1" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/d1" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/d1_database/resource.go b/internal/services/d1_database/resource.go index 314d546f15..c011d670d1 100644 --- a/internal/services/d1_database/resource.go +++ b/internal/services/d1_database/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/d1" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/d1" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/dcv_delegation/data_source.go b/internal/services/dcv_delegation/data_source.go index 89b9b73706..3a564a66c4 100644 --- a/internal/services/dcv_delegation/data_source.go +++ b/internal/services/dcv_delegation/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/dcv_delegation/data_source_model.go b/internal/services/dcv_delegation/data_source_model.go index f60ca4bf78..3e3f2f1d43 100644 --- a/internal/services/dcv_delegation/data_source_model.go +++ b/internal/services/dcv_delegation/data_source_model.go @@ -5,8 +5,8 @@ package dcv_delegation import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dcv_delegation" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dcv_delegation" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/dns_firewall/data_source.go b/internal/services/dns_firewall/data_source.go index 5fa378ec0a..61dd534ceb 100644 --- a/internal/services/dns_firewall/data_source.go +++ b/internal/services/dns_firewall/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/dns_firewall/data_source_model.go b/internal/services/dns_firewall/data_source_model.go index 1276a9b6e3..1569691684 100644 --- a/internal/services/dns_firewall/data_source_model.go +++ b/internal/services/dns_firewall/data_source_model.go @@ -5,8 +5,8 @@ package dns_firewall import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns_firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns_firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/dns_firewall/list_data_source.go b/internal/services/dns_firewall/list_data_source.go index 5df33704e6..84d5e4ba32 100644 --- a/internal/services/dns_firewall/list_data_source.go +++ b/internal/services/dns_firewall/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/dns_firewall/list_data_source_model.go b/internal/services/dns_firewall/list_data_source_model.go index a2ae0c2b5c..bf147746ea 100644 --- a/internal/services/dns_firewall/list_data_source_model.go +++ b/internal/services/dns_firewall/list_data_source_model.go @@ -5,8 +5,8 @@ package dns_firewall import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns_firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns_firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/dns_firewall/resource.go b/internal/services/dns_firewall/resource.go index 26bdbf80d8..2e675492c1 100644 --- a/internal/services/dns_firewall/resource.go +++ b/internal/services/dns_firewall/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns_firewall" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns_firewall" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/dns_firewall/resource_test.go b/internal/services/dns_firewall/resource_test.go index cec7b4018a..19d69518c2 100644 --- a/internal/services/dns_firewall/resource_test.go +++ b/internal/services/dns_firewall/resource_test.go @@ -6,8 +6,8 @@ import ( "os" "testing" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns_firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns_firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" "github.com/hashicorp/terraform-plugin-testing/helper/resource" diff --git a/internal/services/dns_record/data_source.go b/internal/services/dns_record/data_source.go index 46f9093ae5..9d7e389a48 100755 --- a/internal/services/dns_record/data_source.go +++ b/internal/services/dns_record/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/dns_record/data_source_model.go b/internal/services/dns_record/data_source_model.go index bd577adef5..c3726ca5a0 100755 --- a/internal/services/dns_record/data_source_model.go +++ b/internal/services/dns_record/data_source_model.go @@ -5,9 +5,9 @@ package dns_record import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/shared" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/shared" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/dns_record/list_data_source.go b/internal/services/dns_record/list_data_source.go index bee3267454..f9fd99e67c 100755 --- a/internal/services/dns_record/list_data_source.go +++ b/internal/services/dns_record/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/dns_record/list_data_source_model.go b/internal/services/dns_record/list_data_source_model.go index abbd6aa082..67df17c267 100755 --- a/internal/services/dns_record/list_data_source_model.go +++ b/internal/services/dns_record/list_data_source_model.go @@ -5,9 +5,9 @@ package dns_record import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/shared" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/shared" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/dns_record/resource.go b/internal/services/dns_record/resource.go index 98d4502487..40e0288896 100755 --- a/internal/services/dns_record/resource.go +++ b/internal/services/dns_record/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/dns_record/resource_test.go b/internal/services/dns_record/resource_test.go index 335f4b7a17..57c5b325f5 100644 --- a/internal/services/dns_record/resource_test.go +++ b/internal/services/dns_record/resource_test.go @@ -10,8 +10,8 @@ import ( "testing" cfold "github.com/cloudflare/cloudflare-go" - cloudflare "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + cloudflare "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/consts" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" diff --git a/internal/services/dns_zone_transfers_acl/data_source.go b/internal/services/dns_zone_transfers_acl/data_source.go index 8759ee5463..c83c7dbcf1 100644 --- a/internal/services/dns_zone_transfers_acl/data_source.go +++ b/internal/services/dns_zone_transfers_acl/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/dns_zone_transfers_acl/data_source_model.go b/internal/services/dns_zone_transfers_acl/data_source_model.go index e9488a1e99..1a05d8cd53 100644 --- a/internal/services/dns_zone_transfers_acl/data_source_model.go +++ b/internal/services/dns_zone_transfers_acl/data_source_model.go @@ -5,8 +5,8 @@ package dns_zone_transfers_acl import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/dns_zone_transfers_acl/list_data_source.go b/internal/services/dns_zone_transfers_acl/list_data_source.go index 853591f04c..609d6485dd 100644 --- a/internal/services/dns_zone_transfers_acl/list_data_source.go +++ b/internal/services/dns_zone_transfers_acl/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/dns_zone_transfers_acl/list_data_source_model.go b/internal/services/dns_zone_transfers_acl/list_data_source_model.go index ae517d01bf..e6d0c9c077 100644 --- a/internal/services/dns_zone_transfers_acl/list_data_source_model.go +++ b/internal/services/dns_zone_transfers_acl/list_data_source_model.go @@ -5,8 +5,8 @@ package dns_zone_transfers_acl import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/dns_zone_transfers_acl/resource.go b/internal/services/dns_zone_transfers_acl/resource.go index 83d2637f82..87b9ac4ce2 100644 --- a/internal/services/dns_zone_transfers_acl/resource.go +++ b/internal/services/dns_zone_transfers_acl/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/dns_zone_transfers_acl/resource_test.go b/internal/services/dns_zone_transfers_acl/resource_test.go index d266aea0e0..54fd4368ce 100644 --- a/internal/services/dns_zone_transfers_acl/resource_test.go +++ b/internal/services/dns_zone_transfers_acl/resource_test.go @@ -8,8 +8,8 @@ import ( "os" "testing" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" "github.com/hashicorp/terraform-plugin-log/tflog" diff --git a/internal/services/dns_zone_transfers_incoming/data_source.go b/internal/services/dns_zone_transfers_incoming/data_source.go index 1be5ce973b..3d123c62fb 100644 --- a/internal/services/dns_zone_transfers_incoming/data_source.go +++ b/internal/services/dns_zone_transfers_incoming/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/dns_zone_transfers_incoming/data_source_model.go b/internal/services/dns_zone_transfers_incoming/data_source_model.go index 90053f0415..f19dacdb23 100644 --- a/internal/services/dns_zone_transfers_incoming/data_source_model.go +++ b/internal/services/dns_zone_transfers_incoming/data_source_model.go @@ -5,8 +5,8 @@ package dns_zone_transfers_incoming import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/dns_zone_transfers_incoming/resource.go b/internal/services/dns_zone_transfers_incoming/resource.go index 568997bf18..e2b2e3129a 100644 --- a/internal/services/dns_zone_transfers_incoming/resource.go +++ b/internal/services/dns_zone_transfers_incoming/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/dns_zone_transfers_incoming/resource_test.go b/internal/services/dns_zone_transfers_incoming/resource_test.go index b152273441..b6b06dc6e3 100644 --- a/internal/services/dns_zone_transfers_incoming/resource_test.go +++ b/internal/services/dns_zone_transfers_incoming/resource_test.go @@ -8,8 +8,8 @@ import ( "os" "testing" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" "github.com/hashicorp/terraform-plugin-log/tflog" diff --git a/internal/services/dns_zone_transfers_outgoing/data_source.go b/internal/services/dns_zone_transfers_outgoing/data_source.go index 2163532ef5..a2f4ae34e4 100644 --- a/internal/services/dns_zone_transfers_outgoing/data_source.go +++ b/internal/services/dns_zone_transfers_outgoing/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/dns_zone_transfers_outgoing/data_source_model.go b/internal/services/dns_zone_transfers_outgoing/data_source_model.go index eab36373e5..293e756129 100644 --- a/internal/services/dns_zone_transfers_outgoing/data_source_model.go +++ b/internal/services/dns_zone_transfers_outgoing/data_source_model.go @@ -5,8 +5,8 @@ package dns_zone_transfers_outgoing import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/dns_zone_transfers_outgoing/resource.go b/internal/services/dns_zone_transfers_outgoing/resource.go index 97bdbf75b2..37ad965f03 100644 --- a/internal/services/dns_zone_transfers_outgoing/resource.go +++ b/internal/services/dns_zone_transfers_outgoing/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/dns_zone_transfers_outgoing/resource_test.go b/internal/services/dns_zone_transfers_outgoing/resource_test.go index 30ca44b520..9c4d601f23 100644 --- a/internal/services/dns_zone_transfers_outgoing/resource_test.go +++ b/internal/services/dns_zone_transfers_outgoing/resource_test.go @@ -8,8 +8,8 @@ import ( "os" "testing" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" "github.com/hashicorp/terraform-plugin-log/tflog" diff --git a/internal/services/dns_zone_transfers_peer/data_source.go b/internal/services/dns_zone_transfers_peer/data_source.go index 0fc09de648..d9b4bc65ab 100644 --- a/internal/services/dns_zone_transfers_peer/data_source.go +++ b/internal/services/dns_zone_transfers_peer/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/dns_zone_transfers_peer/data_source_model.go b/internal/services/dns_zone_transfers_peer/data_source_model.go index c7ebbcb5d5..da428edd3d 100644 --- a/internal/services/dns_zone_transfers_peer/data_source_model.go +++ b/internal/services/dns_zone_transfers_peer/data_source_model.go @@ -5,8 +5,8 @@ package dns_zone_transfers_peer import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/dns_zone_transfers_peer/list_data_source.go b/internal/services/dns_zone_transfers_peer/list_data_source.go index 8b24747a97..badd6278fe 100644 --- a/internal/services/dns_zone_transfers_peer/list_data_source.go +++ b/internal/services/dns_zone_transfers_peer/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/dns_zone_transfers_peer/list_data_source_model.go b/internal/services/dns_zone_transfers_peer/list_data_source_model.go index dce45d85b4..c4cafb52bd 100644 --- a/internal/services/dns_zone_transfers_peer/list_data_source_model.go +++ b/internal/services/dns_zone_transfers_peer/list_data_source_model.go @@ -5,8 +5,8 @@ package dns_zone_transfers_peer import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/dns_zone_transfers_peer/resource.go b/internal/services/dns_zone_transfers_peer/resource.go index 30a7b0e8c3..59ac649fce 100644 --- a/internal/services/dns_zone_transfers_peer/resource.go +++ b/internal/services/dns_zone_transfers_peer/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/dns_zone_transfers_tsig/data_source.go b/internal/services/dns_zone_transfers_tsig/data_source.go index 01b18af9c6..7c27dfcc6c 100644 --- a/internal/services/dns_zone_transfers_tsig/data_source.go +++ b/internal/services/dns_zone_transfers_tsig/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/dns_zone_transfers_tsig/data_source_model.go b/internal/services/dns_zone_transfers_tsig/data_source_model.go index b1d1c4771d..d4ac99b5e4 100644 --- a/internal/services/dns_zone_transfers_tsig/data_source_model.go +++ b/internal/services/dns_zone_transfers_tsig/data_source_model.go @@ -5,8 +5,8 @@ package dns_zone_transfers_tsig import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/dns_zone_transfers_tsig/list_data_source.go b/internal/services/dns_zone_transfers_tsig/list_data_source.go index bc6d1253fd..88146a090c 100644 --- a/internal/services/dns_zone_transfers_tsig/list_data_source.go +++ b/internal/services/dns_zone_transfers_tsig/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/dns_zone_transfers_tsig/list_data_source_model.go b/internal/services/dns_zone_transfers_tsig/list_data_source_model.go index 00e9d1a2c8..a7414a1835 100644 --- a/internal/services/dns_zone_transfers_tsig/list_data_source_model.go +++ b/internal/services/dns_zone_transfers_tsig/list_data_source_model.go @@ -5,8 +5,8 @@ package dns_zone_transfers_tsig import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/dns_zone_transfers_tsig/resource.go b/internal/services/dns_zone_transfers_tsig/resource.go index a19b664124..6e6198713c 100644 --- a/internal/services/dns_zone_transfers_tsig/resource.go +++ b/internal/services/dns_zone_transfers_tsig/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/dns_zone_transfers_tsig/resource_test.go b/internal/services/dns_zone_transfers_tsig/resource_test.go index d12663a783..80dbdcbdca 100644 --- a/internal/services/dns_zone_transfers_tsig/resource_test.go +++ b/internal/services/dns_zone_transfers_tsig/resource_test.go @@ -8,8 +8,8 @@ import ( "os" "testing" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" "github.com/hashicorp/terraform-plugin-log/tflog" diff --git a/internal/services/email_routing_address/data_source.go b/internal/services/email_routing_address/data_source.go index b5574794e7..dcaef7941b 100644 --- a/internal/services/email_routing_address/data_source.go +++ b/internal/services/email_routing_address/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/email_routing_address/data_source_model.go b/internal/services/email_routing_address/data_source_model.go index 207af05b77..155f13684d 100644 --- a/internal/services/email_routing_address/data_source_model.go +++ b/internal/services/email_routing_address/data_source_model.go @@ -5,8 +5,8 @@ package email_routing_address import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/email_routing_address/list_data_source.go b/internal/services/email_routing_address/list_data_source.go index 388d9bf44a..7c8f33e0b2 100644 --- a/internal/services/email_routing_address/list_data_source.go +++ b/internal/services/email_routing_address/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/email_routing_address/list_data_source_model.go b/internal/services/email_routing_address/list_data_source_model.go index ba980a2eae..97aec2208c 100644 --- a/internal/services/email_routing_address/list_data_source_model.go +++ b/internal/services/email_routing_address/list_data_source_model.go @@ -5,8 +5,8 @@ package email_routing_address import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/email_routing_address/resource.go b/internal/services/email_routing_address/resource.go index bfcccc4f8b..fb37a5fcc7 100644 --- a/internal/services/email_routing_address/resource.go +++ b/internal/services/email_routing_address/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/email_routing_catch_all/data_source.go b/internal/services/email_routing_catch_all/data_source.go index fd58934227..2e8fede16c 100644 --- a/internal/services/email_routing_catch_all/data_source.go +++ b/internal/services/email_routing_catch_all/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/email_routing_catch_all/data_source_model.go b/internal/services/email_routing_catch_all/data_source_model.go index 6f114d28d6..3a52f033d0 100644 --- a/internal/services/email_routing_catch_all/data_source_model.go +++ b/internal/services/email_routing_catch_all/data_source_model.go @@ -5,8 +5,8 @@ package email_routing_catch_all import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/email_routing_catch_all/resource.go b/internal/services/email_routing_catch_all/resource.go index 6121e07340..6848cb3093 100644 --- a/internal/services/email_routing_catch_all/resource.go +++ b/internal/services/email_routing_catch_all/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/email_routing_dns/data_source.go b/internal/services/email_routing_dns/data_source.go index 1efe0bee78..3ac4d11f4f 100644 --- a/internal/services/email_routing_dns/data_source.go +++ b/internal/services/email_routing_dns/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/email_routing_dns/data_source_model.go b/internal/services/email_routing_dns/data_source_model.go index ac5bfd6b23..10cfe56370 100644 --- a/internal/services/email_routing_dns/data_source_model.go +++ b/internal/services/email_routing_dns/data_source_model.go @@ -5,8 +5,8 @@ package email_routing_dns import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/email_routing_dns/resource.go b/internal/services/email_routing_dns/resource.go index e0591de5f3..b3d0d62a6c 100644 --- a/internal/services/email_routing_dns/resource.go +++ b/internal/services/email_routing_dns/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/email_routing_rule/data_source.go b/internal/services/email_routing_rule/data_source.go index 7de9a68216..125c53989b 100644 --- a/internal/services/email_routing_rule/data_source.go +++ b/internal/services/email_routing_rule/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/email_routing_rule/data_source_model.go b/internal/services/email_routing_rule/data_source_model.go index b31d2ef6da..123ef22afa 100644 --- a/internal/services/email_routing_rule/data_source_model.go +++ b/internal/services/email_routing_rule/data_source_model.go @@ -5,8 +5,8 @@ package email_routing_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/email_routing_rule/list_data_source.go b/internal/services/email_routing_rule/list_data_source.go index a5e400c355..e4b8bd289e 100644 --- a/internal/services/email_routing_rule/list_data_source.go +++ b/internal/services/email_routing_rule/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/email_routing_rule/list_data_source_model.go b/internal/services/email_routing_rule/list_data_source_model.go index 2109bbab39..edf2daddb2 100644 --- a/internal/services/email_routing_rule/list_data_source_model.go +++ b/internal/services/email_routing_rule/list_data_source_model.go @@ -5,8 +5,8 @@ package email_routing_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/email_routing_rule/resource.go b/internal/services/email_routing_rule/resource.go index 17b5458d25..75abf75703 100644 --- a/internal/services/email_routing_rule/resource.go +++ b/internal/services/email_routing_rule/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/email_routing_settings/data_source.go b/internal/services/email_routing_settings/data_source.go index 7e1f6b995a..d3fcc43e9d 100644 --- a/internal/services/email_routing_settings/data_source.go +++ b/internal/services/email_routing_settings/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/email_routing_settings/data_source_model.go b/internal/services/email_routing_settings/data_source_model.go index b446551a69..911e93a0ba 100644 --- a/internal/services/email_routing_settings/data_source_model.go +++ b/internal/services/email_routing_settings/data_source_model.go @@ -5,8 +5,8 @@ package email_routing_settings import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/email_routing_settings/resource.go b/internal/services/email_routing_settings/resource.go index 55c6cf780f..a81f122b10 100644 --- a/internal/services/email_routing_settings/resource.go +++ b/internal/services/email_routing_settings/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_routing" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_routing" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/email_security_block_sender/data_source.go b/internal/services/email_security_block_sender/data_source.go index c7cde1b582..cb29565945 100644 --- a/internal/services/email_security_block_sender/data_source.go +++ b/internal/services/email_security_block_sender/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/email_security_block_sender/data_source_model.go b/internal/services/email_security_block_sender/data_source_model.go index 2bc4f710ae..991af04b9b 100644 --- a/internal/services/email_security_block_sender/data_source_model.go +++ b/internal/services/email_security_block_sender/data_source_model.go @@ -5,8 +5,8 @@ package email_security_block_sender import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_security" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_security" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/email_security_block_sender/list_data_source.go b/internal/services/email_security_block_sender/list_data_source.go index 9b06e3f068..eca53e61fa 100644 --- a/internal/services/email_security_block_sender/list_data_source.go +++ b/internal/services/email_security_block_sender/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/email_security_block_sender/list_data_source_model.go b/internal/services/email_security_block_sender/list_data_source_model.go index c97a9a52a1..8f0b8dd243 100644 --- a/internal/services/email_security_block_sender/list_data_source_model.go +++ b/internal/services/email_security_block_sender/list_data_source_model.go @@ -5,8 +5,8 @@ package email_security_block_sender import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_security" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_security" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/email_security_block_sender/resource.go b/internal/services/email_security_block_sender/resource.go index 474c51acba..321cff5d2a 100644 --- a/internal/services/email_security_block_sender/resource.go +++ b/internal/services/email_security_block_sender/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_security" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_security" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/email_security_impersonation_registry/data_source.go b/internal/services/email_security_impersonation_registry/data_source.go index cfba609498..fcb356ef44 100644 --- a/internal/services/email_security_impersonation_registry/data_source.go +++ b/internal/services/email_security_impersonation_registry/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/email_security_impersonation_registry/data_source_model.go b/internal/services/email_security_impersonation_registry/data_source_model.go index b33934e655..4f61621080 100644 --- a/internal/services/email_security_impersonation_registry/data_source_model.go +++ b/internal/services/email_security_impersonation_registry/data_source_model.go @@ -5,8 +5,8 @@ package email_security_impersonation_registry import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_security" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_security" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/email_security_impersonation_registry/list_data_source.go b/internal/services/email_security_impersonation_registry/list_data_source.go index 1259c6864e..7a604b5fa7 100644 --- a/internal/services/email_security_impersonation_registry/list_data_source.go +++ b/internal/services/email_security_impersonation_registry/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/email_security_impersonation_registry/list_data_source_model.go b/internal/services/email_security_impersonation_registry/list_data_source_model.go index 09b19236be..766f6049f6 100644 --- a/internal/services/email_security_impersonation_registry/list_data_source_model.go +++ b/internal/services/email_security_impersonation_registry/list_data_source_model.go @@ -5,8 +5,8 @@ package email_security_impersonation_registry import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_security" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_security" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/email_security_impersonation_registry/resource.go b/internal/services/email_security_impersonation_registry/resource.go index 08d7555adc..19b7aac6ed 100644 --- a/internal/services/email_security_impersonation_registry/resource.go +++ b/internal/services/email_security_impersonation_registry/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_security" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_security" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/email_security_trusted_domains/data_source.go b/internal/services/email_security_trusted_domains/data_source.go index 503dde2e6e..8dd8603c6f 100644 --- a/internal/services/email_security_trusted_domains/data_source.go +++ b/internal/services/email_security_trusted_domains/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/email_security_trusted_domains/data_source_model.go b/internal/services/email_security_trusted_domains/data_source_model.go index 02ceb40275..1cfe84a0ab 100644 --- a/internal/services/email_security_trusted_domains/data_source_model.go +++ b/internal/services/email_security_trusted_domains/data_source_model.go @@ -5,8 +5,8 @@ package email_security_trusted_domains import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_security" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_security" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/email_security_trusted_domains/list_data_source.go b/internal/services/email_security_trusted_domains/list_data_source.go index 0de6fde522..32cbf77cc0 100644 --- a/internal/services/email_security_trusted_domains/list_data_source.go +++ b/internal/services/email_security_trusted_domains/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/email_security_trusted_domains/list_data_source_model.go b/internal/services/email_security_trusted_domains/list_data_source_model.go index ff46c9358f..b37bcee3c6 100644 --- a/internal/services/email_security_trusted_domains/list_data_source_model.go +++ b/internal/services/email_security_trusted_domains/list_data_source_model.go @@ -5,8 +5,8 @@ package email_security_trusted_domains import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_security" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_security" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/email_security_trusted_domains/resource.go b/internal/services/email_security_trusted_domains/resource.go index d1412a366b..a60466af21 100644 --- a/internal/services/email_security_trusted_domains/resource.go +++ b/internal/services/email_security_trusted_domains/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/email_security" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/email_security" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/filter/data_source.go b/internal/services/filter/data_source.go index 35ed963b3f..cfb1354b44 100644 --- a/internal/services/filter/data_source.go +++ b/internal/services/filter/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/filter/data_source_model.go b/internal/services/filter/data_source_model.go index 0b21ecbbc8..0e4346caf4 100644 --- a/internal/services/filter/data_source_model.go +++ b/internal/services/filter/data_source_model.go @@ -5,8 +5,8 @@ package filter import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/filters" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/filters" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/filter/list_data_source.go b/internal/services/filter/list_data_source.go index 294173750d..6f24a5f6f7 100644 --- a/internal/services/filter/list_data_source.go +++ b/internal/services/filter/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/filter/list_data_source_model.go b/internal/services/filter/list_data_source_model.go index e68649d7c5..37cd433749 100644 --- a/internal/services/filter/list_data_source_model.go +++ b/internal/services/filter/list_data_source_model.go @@ -5,8 +5,8 @@ package filter import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/filters" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/filters" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/filter/resource.go b/internal/services/filter/resource.go index b8eac2f222..4aee6fcb47 100644 --- a/internal/services/filter/resource.go +++ b/internal/services/filter/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/filters" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/filters" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/firewall_rule/data_source.go b/internal/services/firewall_rule/data_source.go index eea9697732..24790c969a 100644 --- a/internal/services/firewall_rule/data_source.go +++ b/internal/services/firewall_rule/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/firewall_rule/data_source_model.go b/internal/services/firewall_rule/data_source_model.go index 684b89cb31..00027b3dbe 100644 --- a/internal/services/firewall_rule/data_source_model.go +++ b/internal/services/firewall_rule/data_source_model.go @@ -5,8 +5,8 @@ package firewall_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/firewall_rule/list_data_source.go b/internal/services/firewall_rule/list_data_source.go index 832d3ad2c5..705206a401 100644 --- a/internal/services/firewall_rule/list_data_source.go +++ b/internal/services/firewall_rule/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/firewall_rule/list_data_source_model.go b/internal/services/firewall_rule/list_data_source_model.go index e4b61d5978..0584681e8c 100644 --- a/internal/services/firewall_rule/list_data_source_model.go +++ b/internal/services/firewall_rule/list_data_source_model.go @@ -5,8 +5,8 @@ package firewall_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/firewall_rule/resource.go b/internal/services/firewall_rule/resource.go index ca6e87d328..93e4857747 100644 --- a/internal/services/firewall_rule/resource.go +++ b/internal/services/firewall_rule/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/healthcheck/data_source.go b/internal/services/healthcheck/data_source.go index 44e6c843ff..396e9ae979 100644 --- a/internal/services/healthcheck/data_source.go +++ b/internal/services/healthcheck/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/healthcheck/data_source_model.go b/internal/services/healthcheck/data_source_model.go index c2e61c946e..91074e22c7 100644 --- a/internal/services/healthcheck/data_source_model.go +++ b/internal/services/healthcheck/data_source_model.go @@ -5,8 +5,8 @@ package healthcheck import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/healthchecks" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/healthchecks" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/healthcheck/list_data_source.go b/internal/services/healthcheck/list_data_source.go index 51f62d5c3d..55d53704bb 100644 --- a/internal/services/healthcheck/list_data_source.go +++ b/internal/services/healthcheck/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/healthcheck/list_data_source_model.go b/internal/services/healthcheck/list_data_source_model.go index 15abc0744a..c8ce0a4842 100644 --- a/internal/services/healthcheck/list_data_source_model.go +++ b/internal/services/healthcheck/list_data_source_model.go @@ -5,8 +5,8 @@ package healthcheck import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/healthchecks" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/healthchecks" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/healthcheck/resource.go b/internal/services/healthcheck/resource.go index f5bff57a71..a5da6ae659 100644 --- a/internal/services/healthcheck/resource.go +++ b/internal/services/healthcheck/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/healthchecks" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/healthchecks" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/hostname_tls_setting/data_source.go b/internal/services/hostname_tls_setting/data_source.go index 38144f7986..60b00ec5c5 100644 --- a/internal/services/hostname_tls_setting/data_source.go +++ b/internal/services/hostname_tls_setting/data_source.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/hostnames" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/hostnames" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/hostname_tls_setting/data_source_model.go b/internal/services/hostname_tls_setting/data_source_model.go index 81d30780ca..b657f32e48 100644 --- a/internal/services/hostname_tls_setting/data_source_model.go +++ b/internal/services/hostname_tls_setting/data_source_model.go @@ -5,8 +5,8 @@ package hostname_tls_setting import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/hostnames" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/hostnames" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/hostname_tls_setting/resource.go b/internal/services/hostname_tls_setting/resource.go index 3e5ef1d672..adda82fce5 100644 --- a/internal/services/hostname_tls_setting/resource.go +++ b/internal/services/hostname_tls_setting/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/hostnames" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/hostnames" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/hyperdrive_config/data_source.go b/internal/services/hyperdrive_config/data_source.go index 6374051a90..47d03f151a 100644 --- a/internal/services/hyperdrive_config/data_source.go +++ b/internal/services/hyperdrive_config/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/hyperdrive_config/data_source_model.go b/internal/services/hyperdrive_config/data_source_model.go index 13d9fa37a8..98c7bd360d 100644 --- a/internal/services/hyperdrive_config/data_source_model.go +++ b/internal/services/hyperdrive_config/data_source_model.go @@ -5,8 +5,8 @@ package hyperdrive_config import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/hyperdrive" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/hyperdrive" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/hyperdrive_config/list_data_source.go b/internal/services/hyperdrive_config/list_data_source.go index 7151c633b2..68172bb975 100644 --- a/internal/services/hyperdrive_config/list_data_source.go +++ b/internal/services/hyperdrive_config/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/hyperdrive_config/list_data_source_model.go b/internal/services/hyperdrive_config/list_data_source_model.go index fec97e3ee6..3bc697b840 100644 --- a/internal/services/hyperdrive_config/list_data_source_model.go +++ b/internal/services/hyperdrive_config/list_data_source_model.go @@ -5,8 +5,8 @@ package hyperdrive_config import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/hyperdrive" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/hyperdrive" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/hyperdrive_config/resource.go b/internal/services/hyperdrive_config/resource.go index 6ed1efd045..3486dc80ab 100644 --- a/internal/services/hyperdrive_config/resource.go +++ b/internal/services/hyperdrive_config/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/hyperdrive" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/hyperdrive" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/image/data_source.go b/internal/services/image/data_source.go index 7e9cd23971..c73055a46c 100644 --- a/internal/services/image/data_source.go +++ b/internal/services/image/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/image/data_source_model.go b/internal/services/image/data_source_model.go index 61bd5b4d7d..d73b7bdc39 100644 --- a/internal/services/image/data_source_model.go +++ b/internal/services/image/data_source_model.go @@ -5,8 +5,8 @@ package image import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/images" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/images" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/image/list_data_source.go b/internal/services/image/list_data_source.go index c51bdde49c..675d9d31c3 100644 --- a/internal/services/image/list_data_source.go +++ b/internal/services/image/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/hashicorp/terraform-plugin-framework/datasource" ) diff --git a/internal/services/image/list_data_source_model.go b/internal/services/image/list_data_source_model.go index a70bc6c832..ad08d46143 100644 --- a/internal/services/image/list_data_source_model.go +++ b/internal/services/image/list_data_source_model.go @@ -5,8 +5,8 @@ package image import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/images" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/images" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/image/resource.go b/internal/services/image/resource.go index 6773e2dcf5..d93b063463 100644 --- a/internal/services/image/resource.go +++ b/internal/services/image/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/images" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/images" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/image_variant/data_source.go b/internal/services/image_variant/data_source.go index 54443d5e03..6974971001 100644 --- a/internal/services/image_variant/data_source.go +++ b/internal/services/image_variant/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/image_variant/data_source_model.go b/internal/services/image_variant/data_source_model.go index 9a16997228..671e5f384c 100644 --- a/internal/services/image_variant/data_source_model.go +++ b/internal/services/image_variant/data_source_model.go @@ -5,8 +5,8 @@ package image_variant import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/images" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/images" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/image_variant/resource.go b/internal/services/image_variant/resource.go index e59145bbf5..7d14fc4bb2 100644 --- a/internal/services/image_variant/resource.go +++ b/internal/services/image_variant/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/images" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/images" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/keyless_certificate/data_source.go b/internal/services/keyless_certificate/data_source.go index 8a4aa365df..4ae738de3f 100644 --- a/internal/services/keyless_certificate/data_source.go +++ b/internal/services/keyless_certificate/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/keyless_certificate/data_source_model.go b/internal/services/keyless_certificate/data_source_model.go index 211b9e566c..57a730fdc6 100644 --- a/internal/services/keyless_certificate/data_source_model.go +++ b/internal/services/keyless_certificate/data_source_model.go @@ -5,8 +5,8 @@ package keyless_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/keyless_certificates" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/keyless_certificates" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/keyless_certificate/list_data_source.go b/internal/services/keyless_certificate/list_data_source.go index ea836f6d2e..e0e1321a1a 100644 --- a/internal/services/keyless_certificate/list_data_source.go +++ b/internal/services/keyless_certificate/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/keyless_certificate/list_data_source_model.go b/internal/services/keyless_certificate/list_data_source_model.go index 89be1762b2..d019611a51 100644 --- a/internal/services/keyless_certificate/list_data_source_model.go +++ b/internal/services/keyless_certificate/list_data_source_model.go @@ -5,8 +5,8 @@ package keyless_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/keyless_certificates" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/keyless_certificates" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/keyless_certificate/resource.go b/internal/services/keyless_certificate/resource.go index 4d7a8d050b..3503d63417 100644 --- a/internal/services/keyless_certificate/resource.go +++ b/internal/services/keyless_certificate/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/keyless_certificates" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/keyless_certificates" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/leaked_credential_check/data_source.go b/internal/services/leaked_credential_check/data_source.go index 4ed55d31c7..492cc4c70f 100644 --- a/internal/services/leaked_credential_check/data_source.go +++ b/internal/services/leaked_credential_check/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/leaked_credential_check/data_source_model.go b/internal/services/leaked_credential_check/data_source_model.go index 2e59b13b9d..4fe8d27bb3 100644 --- a/internal/services/leaked_credential_check/data_source_model.go +++ b/internal/services/leaked_credential_check/data_source_model.go @@ -5,8 +5,8 @@ package leaked_credential_check import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/leaked_credential_checks" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/leaked_credential_checks" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/leaked_credential_check/resource.go b/internal/services/leaked_credential_check/resource.go index da58672359..6a3fccca1a 100644 --- a/internal/services/leaked_credential_check/resource.go +++ b/internal/services/leaked_credential_check/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/leaked_credential_checks" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/leaked_credential_checks" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/leaked_credential_check_rule/data_source.go b/internal/services/leaked_credential_check_rule/data_source.go index b1126640bc..7342ed3330 100644 --- a/internal/services/leaked_credential_check_rule/data_source.go +++ b/internal/services/leaked_credential_check_rule/data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/hashicorp/terraform-plugin-framework/datasource" ) diff --git a/internal/services/leaked_credential_check_rule/data_source_model.go b/internal/services/leaked_credential_check_rule/data_source_model.go index 387c5e62f2..0a0c1ceeff 100644 --- a/internal/services/leaked_credential_check_rule/data_source_model.go +++ b/internal/services/leaked_credential_check_rule/data_source_model.go @@ -5,8 +5,8 @@ package leaked_credential_check_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/leaked_credential_checks" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/leaked_credential_checks" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/leaked_credential_check_rule/list_data_source.go b/internal/services/leaked_credential_check_rule/list_data_source.go index 583a95b8d4..20bcf710cd 100644 --- a/internal/services/leaked_credential_check_rule/list_data_source.go +++ b/internal/services/leaked_credential_check_rule/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/leaked_credential_check_rule/list_data_source_model.go b/internal/services/leaked_credential_check_rule/list_data_source_model.go index cf60caf442..d206fec902 100644 --- a/internal/services/leaked_credential_check_rule/list_data_source_model.go +++ b/internal/services/leaked_credential_check_rule/list_data_source_model.go @@ -5,8 +5,8 @@ package leaked_credential_check_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/leaked_credential_checks" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/leaked_credential_checks" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/leaked_credential_check_rule/resource.go b/internal/services/leaked_credential_check_rule/resource.go index 3565325706..75a69ead38 100644 --- a/internal/services/leaked_credential_check_rule/resource.go +++ b/internal/services/leaked_credential_check_rule/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/leaked_credential_checks" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/leaked_credential_checks" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/list/data_source.go b/internal/services/list/data_source.go index 8ba6c7c0a8..0d3e00b099 100644 --- a/internal/services/list/data_source.go +++ b/internal/services/list/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/list/data_source_model.go b/internal/services/list/data_source_model.go index 2099752d05..6c097201f5 100644 --- a/internal/services/list/data_source_model.go +++ b/internal/services/list/data_source_model.go @@ -5,8 +5,8 @@ package list import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rules" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rules" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/list/list_data_source.go b/internal/services/list/list_data_source.go index d68b06c11e..f90281cd01 100644 --- a/internal/services/list/list_data_source.go +++ b/internal/services/list/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/list/list_data_source_model.go b/internal/services/list/list_data_source_model.go index 021cfe6347..1bf23f3e97 100644 --- a/internal/services/list/list_data_source_model.go +++ b/internal/services/list/list_data_source_model.go @@ -5,8 +5,8 @@ package list import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rules" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rules" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/list/resource.go b/internal/services/list/resource.go index c4c15e2e6e..1e77a7a608 100644 --- a/internal/services/list/resource.go +++ b/internal/services/list/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/rules" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/rules" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/list_item/data_source.go b/internal/services/list_item/data_source.go index c8b9c3e285..bcadce61ff 100644 --- a/internal/services/list_item/data_source.go +++ b/internal/services/list_item/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/list_item/data_source_model.go b/internal/services/list_item/data_source_model.go index cf858d7156..e839bc2da3 100644 --- a/internal/services/list_item/data_source_model.go +++ b/internal/services/list_item/data_source_model.go @@ -5,8 +5,8 @@ package list_item import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rules" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rules" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/list_item/list_data_source.go b/internal/services/list_item/list_data_source.go index 8f655fe443..74b0eb140d 100644 --- a/internal/services/list_item/list_data_source.go +++ b/internal/services/list_item/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/list_item/list_data_source_model.go b/internal/services/list_item/list_data_source_model.go index ca1b8e3527..b85828bd8d 100644 --- a/internal/services/list_item/list_data_source_model.go +++ b/internal/services/list_item/list_data_source_model.go @@ -5,8 +5,8 @@ package list_item import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rules" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rules" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/list_item/resource.go b/internal/services/list_item/resource.go index 71d76821a4..33d678b61d 100644 --- a/internal/services/list_item/resource.go +++ b/internal/services/list_item/resource.go @@ -10,9 +10,9 @@ import ( "net/http" "strconv" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/rules" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/rules" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/load_balancer/data_source.go b/internal/services/load_balancer/data_source.go index 2e466f6b9b..9f3a3c52f8 100644 --- a/internal/services/load_balancer/data_source.go +++ b/internal/services/load_balancer/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/load_balancer/data_source_model.go b/internal/services/load_balancer/data_source_model.go index b684b877ca..6947d208f3 100644 --- a/internal/services/load_balancer/data_source_model.go +++ b/internal/services/load_balancer/data_source_model.go @@ -5,8 +5,8 @@ package load_balancer import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/load_balancer/list_data_source.go b/internal/services/load_balancer/list_data_source.go index 12392b26f8..3fe2c79b7d 100644 --- a/internal/services/load_balancer/list_data_source.go +++ b/internal/services/load_balancer/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/load_balancer/list_data_source_model.go b/internal/services/load_balancer/list_data_source_model.go index fc24390d7b..b5c4505916 100644 --- a/internal/services/load_balancer/list_data_source_model.go +++ b/internal/services/load_balancer/list_data_source_model.go @@ -5,8 +5,8 @@ package load_balancer import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/load_balancer/resource.go b/internal/services/load_balancer/resource.go index 61fdc7e44f..89a33c2326 100644 --- a/internal/services/load_balancer/resource.go +++ b/internal/services/load_balancer/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/load_balancer/resource_test.go b/internal/services/load_balancer/resource_test.go index bd98a4c053..68772772ca 100644 --- a/internal/services/load_balancer/resource_test.go +++ b/internal/services/load_balancer/resource_test.go @@ -9,8 +9,8 @@ import ( "time" cfold "github.com/cloudflare/cloudflare-go" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/consts" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" diff --git a/internal/services/load_balancer_monitor/data_source.go b/internal/services/load_balancer_monitor/data_source.go index 3fdf062b8b..ff1f7457f1 100644 --- a/internal/services/load_balancer_monitor/data_source.go +++ b/internal/services/load_balancer_monitor/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/load_balancer_monitor/data_source_model.go b/internal/services/load_balancer_monitor/data_source_model.go index 2ba057a6e6..c21966e1ed 100644 --- a/internal/services/load_balancer_monitor/data_source_model.go +++ b/internal/services/load_balancer_monitor/data_source_model.go @@ -5,8 +5,8 @@ package load_balancer_monitor import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/load_balancer_monitor/list_data_source.go b/internal/services/load_balancer_monitor/list_data_source.go index 09514bdee4..407543b69e 100644 --- a/internal/services/load_balancer_monitor/list_data_source.go +++ b/internal/services/load_balancer_monitor/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/load_balancer_monitor/list_data_source_model.go b/internal/services/load_balancer_monitor/list_data_source_model.go index c3e18814ed..4f60e90f7d 100644 --- a/internal/services/load_balancer_monitor/list_data_source_model.go +++ b/internal/services/load_balancer_monitor/list_data_source_model.go @@ -5,8 +5,8 @@ package load_balancer_monitor import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/load_balancer_monitor/resource.go b/internal/services/load_balancer_monitor/resource.go index 95ce09a446..517574800d 100644 --- a/internal/services/load_balancer_monitor/resource.go +++ b/internal/services/load_balancer_monitor/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/load_balancer_pool/data_source.go b/internal/services/load_balancer_pool/data_source.go index e235a84d10..0e3857b463 100644 --- a/internal/services/load_balancer_pool/data_source.go +++ b/internal/services/load_balancer_pool/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/load_balancer_pool/data_source_model.go b/internal/services/load_balancer_pool/data_source_model.go index 60b9147155..ead3ca014f 100644 --- a/internal/services/load_balancer_pool/data_source_model.go +++ b/internal/services/load_balancer_pool/data_source_model.go @@ -5,8 +5,8 @@ package load_balancer_pool import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/load_balancer_pool/list_data_source.go b/internal/services/load_balancer_pool/list_data_source.go index c442b7fac1..d08973c1dd 100644 --- a/internal/services/load_balancer_pool/list_data_source.go +++ b/internal/services/load_balancer_pool/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/load_balancer_pool/list_data_source_model.go b/internal/services/load_balancer_pool/list_data_source_model.go index f78d2f641c..a72943592d 100644 --- a/internal/services/load_balancer_pool/list_data_source_model.go +++ b/internal/services/load_balancer_pool/list_data_source_model.go @@ -5,8 +5,8 @@ package load_balancer_pool import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/load_balancer_pool/resource.go b/internal/services/load_balancer_pool/resource.go index 90cdcf7ce8..46605e1c65 100644 --- a/internal/services/load_balancer_pool/resource.go +++ b/internal/services/load_balancer_pool/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/load_balancer_pool/resource_test.go b/internal/services/load_balancer_pool/resource_test.go index 4539ea8c25..a4742e9787 100644 --- a/internal/services/load_balancer_pool/resource_test.go +++ b/internal/services/load_balancer_pool/resource_test.go @@ -9,8 +9,8 @@ import ( "time" cfold "github.com/cloudflare/cloudflare-go" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/load_balancers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/load_balancers" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/consts" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" diff --git a/internal/services/logpull_retention/data_source.go b/internal/services/logpull_retention/data_source.go index 7d962d2894..ec0c84e016 100644 --- a/internal/services/logpull_retention/data_source.go +++ b/internal/services/logpull_retention/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/logpull_retention/data_source_model.go b/internal/services/logpull_retention/data_source_model.go index 2d19cbc37c..0004300338 100644 --- a/internal/services/logpull_retention/data_source_model.go +++ b/internal/services/logpull_retention/data_source_model.go @@ -5,8 +5,8 @@ package logpull_retention import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/logs" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/logs" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/logpull_retention/resource.go b/internal/services/logpull_retention/resource.go index 1d2cbf5aff..1bd4898a67 100644 --- a/internal/services/logpull_retention/resource.go +++ b/internal/services/logpull_retention/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/logs" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/logs" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/logpush_dataset_field/data_source.go b/internal/services/logpush_dataset_field/data_source.go index e211b53835..004cf78562 100644 --- a/internal/services/logpush_dataset_field/data_source.go +++ b/internal/services/logpush_dataset_field/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/logpush_dataset_field/data_source_model.go b/internal/services/logpush_dataset_field/data_source_model.go index f9eb881651..96427e275c 100644 --- a/internal/services/logpush_dataset_field/data_source_model.go +++ b/internal/services/logpush_dataset_field/data_source_model.go @@ -5,8 +5,8 @@ package logpush_dataset_field import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/logpush" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/logpush" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/logpush_dataset_job/data_source.go b/internal/services/logpush_dataset_job/data_source.go index c91d5b7433..c14c56ddaf 100644 --- a/internal/services/logpush_dataset_job/data_source.go +++ b/internal/services/logpush_dataset_job/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/logpush_dataset_job/data_source_model.go b/internal/services/logpush_dataset_job/data_source_model.go index a352372d90..65f5b3c97a 100644 --- a/internal/services/logpush_dataset_job/data_source_model.go +++ b/internal/services/logpush_dataset_job/data_source_model.go @@ -5,8 +5,8 @@ package logpush_dataset_job import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/logpush" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/logpush" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/logpush_job/data_source.go b/internal/services/logpush_job/data_source.go index 825a6c3621..d83f48cd53 100644 --- a/internal/services/logpush_job/data_source.go +++ b/internal/services/logpush_job/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/logpush_job/data_source_model.go b/internal/services/logpush_job/data_source_model.go index 18bdf3e39b..5a3d66d2cc 100644 --- a/internal/services/logpush_job/data_source_model.go +++ b/internal/services/logpush_job/data_source_model.go @@ -5,8 +5,8 @@ package logpush_job import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/logpush" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/logpush" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/logpush_job/list_data_source.go b/internal/services/logpush_job/list_data_source.go index e7537f7a55..2ea2288c38 100644 --- a/internal/services/logpush_job/list_data_source.go +++ b/internal/services/logpush_job/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/logpush_job/list_data_source_model.go b/internal/services/logpush_job/list_data_source_model.go index 432ce0eae6..e5e1b9d933 100644 --- a/internal/services/logpush_job/list_data_source_model.go +++ b/internal/services/logpush_job/list_data_source_model.go @@ -5,8 +5,8 @@ package logpush_job import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/logpush" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/logpush" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/logpush_job/resource.go b/internal/services/logpush_job/resource.go index 8ade30dafa..7b3280991f 100644 --- a/internal/services/logpush_job/resource.go +++ b/internal/services/logpush_job/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/logpush" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/logpush" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/logpush_ownership_challenge/resource.go b/internal/services/logpush_ownership_challenge/resource.go index d1072fe2d1..8d8d7c8b1e 100644 --- a/internal/services/logpush_ownership_challenge/resource.go +++ b/internal/services/logpush_ownership_challenge/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/logpush" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/logpush" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/magic_network_monitoring_configuration/data_source.go b/internal/services/magic_network_monitoring_configuration/data_source.go index a83893379b..12624d76bd 100644 --- a/internal/services/magic_network_monitoring_configuration/data_source.go +++ b/internal/services/magic_network_monitoring_configuration/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_network_monitoring_configuration/data_source_model.go b/internal/services/magic_network_monitoring_configuration/data_source_model.go index db0cd65b54..83e761d8f8 100644 --- a/internal/services/magic_network_monitoring_configuration/data_source_model.go +++ b/internal/services/magic_network_monitoring_configuration/data_source_model.go @@ -5,8 +5,8 @@ package magic_network_monitoring_configuration import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_network_monitoring" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_network_monitoring" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_network_monitoring_configuration/resource.go b/internal/services/magic_network_monitoring_configuration/resource.go index cae457fffb..94e80339b8 100644 --- a/internal/services/magic_network_monitoring_configuration/resource.go +++ b/internal/services/magic_network_monitoring_configuration/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_network_monitoring" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_network_monitoring" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/magic_network_monitoring_rule/data_source.go b/internal/services/magic_network_monitoring_rule/data_source.go index 57a46836b8..9e7a60a6f8 100644 --- a/internal/services/magic_network_monitoring_rule/data_source.go +++ b/internal/services/magic_network_monitoring_rule/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_network_monitoring_rule/data_source_model.go b/internal/services/magic_network_monitoring_rule/data_source_model.go index d91207ed05..49a8339fc2 100644 --- a/internal/services/magic_network_monitoring_rule/data_source_model.go +++ b/internal/services/magic_network_monitoring_rule/data_source_model.go @@ -5,8 +5,8 @@ package magic_network_monitoring_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_network_monitoring" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_network_monitoring" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_network_monitoring_rule/list_data_source.go b/internal/services/magic_network_monitoring_rule/list_data_source.go index 81eb1b2685..f727709204 100644 --- a/internal/services/magic_network_monitoring_rule/list_data_source.go +++ b/internal/services/magic_network_monitoring_rule/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/magic_network_monitoring_rule/list_data_source_model.go b/internal/services/magic_network_monitoring_rule/list_data_source_model.go index beef29ca1e..da8dfd898c 100644 --- a/internal/services/magic_network_monitoring_rule/list_data_source_model.go +++ b/internal/services/magic_network_monitoring_rule/list_data_source_model.go @@ -5,8 +5,8 @@ package magic_network_monitoring_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_network_monitoring" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_network_monitoring" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_network_monitoring_rule/resource.go b/internal/services/magic_network_monitoring_rule/resource.go index 0f8f25a2dc..e2558dfb9d 100644 --- a/internal/services/magic_network_monitoring_rule/resource.go +++ b/internal/services/magic_network_monitoring_rule/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_network_monitoring" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_network_monitoring" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/magic_transit_connector/data_source.go b/internal/services/magic_transit_connector/data_source.go index ac436a6672..d209b564a7 100644 --- a/internal/services/magic_transit_connector/data_source.go +++ b/internal/services/magic_transit_connector/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_transit_connector/data_source_model.go b/internal/services/magic_transit_connector/data_source_model.go index b0b1ef81d6..e3a69d77fb 100644 --- a/internal/services/magic_transit_connector/data_source_model.go +++ b/internal/services/magic_transit_connector/data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_connector import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_connector/list_data_source.go b/internal/services/magic_transit_connector/list_data_source.go index c54c4b1fb4..f008a632a4 100644 --- a/internal/services/magic_transit_connector/list_data_source.go +++ b/internal/services/magic_transit_connector/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/magic_transit_connector/list_data_source_model.go b/internal/services/magic_transit_connector/list_data_source_model.go index 92cabef409..de57ae9319 100644 --- a/internal/services/magic_transit_connector/list_data_source_model.go +++ b/internal/services/magic_transit_connector/list_data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_connector import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_connector/resource.go b/internal/services/magic_transit_connector/resource.go index bd7c6e3eb2..db2ecd3b1e 100644 --- a/internal/services/magic_transit_connector/resource.go +++ b/internal/services/magic_transit_connector/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/magic_transit_site/data_source.go b/internal/services/magic_transit_site/data_source.go index d820462e7b..7fbc2c0133 100644 --- a/internal/services/magic_transit_site/data_source.go +++ b/internal/services/magic_transit_site/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_transit_site/data_source_model.go b/internal/services/magic_transit_site/data_source_model.go index 93b6849bdd..52264e3cd8 100644 --- a/internal/services/magic_transit_site/data_source_model.go +++ b/internal/services/magic_transit_site/data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_site import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_site/list_data_source.go b/internal/services/magic_transit_site/list_data_source.go index 996a0178c6..ba894a535c 100644 --- a/internal/services/magic_transit_site/list_data_source.go +++ b/internal/services/magic_transit_site/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/magic_transit_site/list_data_source_model.go b/internal/services/magic_transit_site/list_data_source_model.go index fc63235c78..54ef70bc2e 100644 --- a/internal/services/magic_transit_site/list_data_source_model.go +++ b/internal/services/magic_transit_site/list_data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_site import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_site/resource.go b/internal/services/magic_transit_site/resource.go index cde90bf1d3..66ff73fb1d 100644 --- a/internal/services/magic_transit_site/resource.go +++ b/internal/services/magic_transit_site/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/magic_transit_site_acl/data_source.go b/internal/services/magic_transit_site_acl/data_source.go index b239a48d12..7a6fc9f74d 100644 --- a/internal/services/magic_transit_site_acl/data_source.go +++ b/internal/services/magic_transit_site_acl/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_transit_site_acl/data_source_model.go b/internal/services/magic_transit_site_acl/data_source_model.go index e3ae3dd138..ca0de632a7 100644 --- a/internal/services/magic_transit_site_acl/data_source_model.go +++ b/internal/services/magic_transit_site_acl/data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_site_acl import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_site_acl/list_data_source.go b/internal/services/magic_transit_site_acl/list_data_source.go index 031033e091..01dc4dcc07 100644 --- a/internal/services/magic_transit_site_acl/list_data_source.go +++ b/internal/services/magic_transit_site_acl/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/magic_transit_site_acl/list_data_source_model.go b/internal/services/magic_transit_site_acl/list_data_source_model.go index 725fbeb86a..e8367753f8 100644 --- a/internal/services/magic_transit_site_acl/list_data_source_model.go +++ b/internal/services/magic_transit_site_acl/list_data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_site_acl import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_site_acl/resource.go b/internal/services/magic_transit_site_acl/resource.go index 7fd5ffeb0f..ea8e1d3a85 100644 --- a/internal/services/magic_transit_site_acl/resource.go +++ b/internal/services/magic_transit_site_acl/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/magic_transit_site_lan/data_source.go b/internal/services/magic_transit_site_lan/data_source.go index 8f0ea626cc..6b924c133a 100644 --- a/internal/services/magic_transit_site_lan/data_source.go +++ b/internal/services/magic_transit_site_lan/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_transit_site_lan/data_source_model.go b/internal/services/magic_transit_site_lan/data_source_model.go index 3978837b3d..a0048e2ef5 100644 --- a/internal/services/magic_transit_site_lan/data_source_model.go +++ b/internal/services/magic_transit_site_lan/data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_site_lan import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_site_lan/list_data_source.go b/internal/services/magic_transit_site_lan/list_data_source.go index df6ecd7274..ca2ac9752c 100644 --- a/internal/services/magic_transit_site_lan/list_data_source.go +++ b/internal/services/magic_transit_site_lan/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/magic_transit_site_lan/list_data_source_model.go b/internal/services/magic_transit_site_lan/list_data_source_model.go index bdc97f698e..d28ad3ec73 100644 --- a/internal/services/magic_transit_site_lan/list_data_source_model.go +++ b/internal/services/magic_transit_site_lan/list_data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_site_lan import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_site_lan/resource.go b/internal/services/magic_transit_site_lan/resource.go index b1b2af4c67..01dc5cab7c 100644 --- a/internal/services/magic_transit_site_lan/resource.go +++ b/internal/services/magic_transit_site_lan/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/magic_transit_site_wan/data_source.go b/internal/services/magic_transit_site_wan/data_source.go index 668e989085..99ebcf12b9 100644 --- a/internal/services/magic_transit_site_wan/data_source.go +++ b/internal/services/magic_transit_site_wan/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_transit_site_wan/data_source_model.go b/internal/services/magic_transit_site_wan/data_source_model.go index df1401497e..a8c0d18818 100644 --- a/internal/services/magic_transit_site_wan/data_source_model.go +++ b/internal/services/magic_transit_site_wan/data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_site_wan import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_site_wan/list_data_source.go b/internal/services/magic_transit_site_wan/list_data_source.go index 9f47d27bac..7c6dcedf81 100644 --- a/internal/services/magic_transit_site_wan/list_data_source.go +++ b/internal/services/magic_transit_site_wan/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/magic_transit_site_wan/list_data_source_model.go b/internal/services/magic_transit_site_wan/list_data_source_model.go index 815489e168..85569b7ec7 100644 --- a/internal/services/magic_transit_site_wan/list_data_source_model.go +++ b/internal/services/magic_transit_site_wan/list_data_source_model.go @@ -5,8 +5,8 @@ package magic_transit_site_wan import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/magic_transit_site_wan/resource.go b/internal/services/magic_transit_site_wan/resource.go index e7e7608811..e81ee1fc1a 100644 --- a/internal/services/magic_transit_site_wan/resource.go +++ b/internal/services/magic_transit_site_wan/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/magic_wan_gre_tunnel/data_source.go b/internal/services/magic_wan_gre_tunnel/data_source.go index 146788b92c..e779153586 100644 --- a/internal/services/magic_wan_gre_tunnel/data_source.go +++ b/internal/services/magic_wan_gre_tunnel/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_wan_gre_tunnel/data_source_model.go b/internal/services/magic_wan_gre_tunnel/data_source_model.go index 539d15f3ba..6cf8b60b43 100644 --- a/internal/services/magic_wan_gre_tunnel/data_source_model.go +++ b/internal/services/magic_wan_gre_tunnel/data_source_model.go @@ -5,8 +5,8 @@ package magic_wan_gre_tunnel import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/magic_wan_gre_tunnel/resource.go b/internal/services/magic_wan_gre_tunnel/resource.go index 32f59164f1..a15fe74422 100644 --- a/internal/services/magic_wan_gre_tunnel/resource.go +++ b/internal/services/magic_wan_gre_tunnel/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/magic_wan_ipsec_tunnel/data_source.go b/internal/services/magic_wan_ipsec_tunnel/data_source.go index 4ac31fb673..aba1a51f5e 100644 --- a/internal/services/magic_wan_ipsec_tunnel/data_source.go +++ b/internal/services/magic_wan_ipsec_tunnel/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_wan_ipsec_tunnel/data_source_model.go b/internal/services/magic_wan_ipsec_tunnel/data_source_model.go index bda9330cd6..602c9d50ee 100644 --- a/internal/services/magic_wan_ipsec_tunnel/data_source_model.go +++ b/internal/services/magic_wan_ipsec_tunnel/data_source_model.go @@ -5,8 +5,8 @@ package magic_wan_ipsec_tunnel import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/magic_wan_ipsec_tunnel/resource.go b/internal/services/magic_wan_ipsec_tunnel/resource.go index fa3a97bb63..09d67b2eaa 100644 --- a/internal/services/magic_wan_ipsec_tunnel/resource.go +++ b/internal/services/magic_wan_ipsec_tunnel/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/magic_wan_static_route/data_source.go b/internal/services/magic_wan_static_route/data_source.go index 28c96dab1f..35a7e7ae02 100644 --- a/internal/services/magic_wan_static_route/data_source.go +++ b/internal/services/magic_wan_static_route/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/magic_wan_static_route/data_source_model.go b/internal/services/magic_wan_static_route/data_source_model.go index 5001219e9b..b18aef07b6 100644 --- a/internal/services/magic_wan_static_route/data_source_model.go +++ b/internal/services/magic_wan_static_route/data_source_model.go @@ -5,8 +5,8 @@ package magic_wan_static_route import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/magic_wan_static_route/resource.go b/internal/services/magic_wan_static_route/resource.go index 759f653373..35b8a0e0ae 100644 --- a/internal/services/magic_wan_static_route/resource.go +++ b/internal/services/magic_wan_static_route/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/magic_transit" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/magic_transit" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/managed_transforms/data_source.go b/internal/services/managed_transforms/data_source.go index f0eabf3992..2c2d592b26 100644 --- a/internal/services/managed_transforms/data_source.go +++ b/internal/services/managed_transforms/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/managed_transforms/data_source_model.go b/internal/services/managed_transforms/data_source_model.go index f5561a7442..a51e791ccc 100644 --- a/internal/services/managed_transforms/data_source_model.go +++ b/internal/services/managed_transforms/data_source_model.go @@ -5,8 +5,8 @@ package managed_transforms import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/managed_transforms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/managed_transforms" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/managed_transforms/resource.go b/internal/services/managed_transforms/resource.go index 1a6ce03918..52fd5ffce5 100644 --- a/internal/services/managed_transforms/resource.go +++ b/internal/services/managed_transforms/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/managed_transforms" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/managed_transforms" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/mtls_certificate/data_source.go b/internal/services/mtls_certificate/data_source.go index 2ef5659475..203e625829 100644 --- a/internal/services/mtls_certificate/data_source.go +++ b/internal/services/mtls_certificate/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/mtls_certificate/data_source_model.go b/internal/services/mtls_certificate/data_source_model.go index 3e0fb6edb4..de924f5d28 100644 --- a/internal/services/mtls_certificate/data_source_model.go +++ b/internal/services/mtls_certificate/data_source_model.go @@ -5,8 +5,8 @@ package mtls_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/mtls_certificates" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/mtls_certificates" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/mtls_certificate/list_data_source.go b/internal/services/mtls_certificate/list_data_source.go index 76172b2386..1f22b7f434 100644 --- a/internal/services/mtls_certificate/list_data_source.go +++ b/internal/services/mtls_certificate/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/mtls_certificate/list_data_source_model.go b/internal/services/mtls_certificate/list_data_source_model.go index 655161cb99..8f6f38c2c4 100644 --- a/internal/services/mtls_certificate/list_data_source_model.go +++ b/internal/services/mtls_certificate/list_data_source_model.go @@ -5,8 +5,8 @@ package mtls_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/mtls_certificates" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/mtls_certificates" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/mtls_certificate/resource.go b/internal/services/mtls_certificate/resource.go index 41f6f303c3..b208cbdc31 100644 --- a/internal/services/mtls_certificate/resource.go +++ b/internal/services/mtls_certificate/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/mtls_certificates" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/mtls_certificates" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/notification_policy/data_source.go b/internal/services/notification_policy/data_source.go index caff86e53e..b118bf5b21 100644 --- a/internal/services/notification_policy/data_source.go +++ b/internal/services/notification_policy/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/notification_policy/data_source_model.go b/internal/services/notification_policy/data_source_model.go index 6296086da2..5f4649a0cd 100644 --- a/internal/services/notification_policy/data_source_model.go +++ b/internal/services/notification_policy/data_source_model.go @@ -5,8 +5,8 @@ package notification_policy import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/alerting" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/alerting" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/notification_policy/list_data_source.go b/internal/services/notification_policy/list_data_source.go index 17d8bb955a..53e148649b 100644 --- a/internal/services/notification_policy/list_data_source.go +++ b/internal/services/notification_policy/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/notification_policy/list_data_source_model.go b/internal/services/notification_policy/list_data_source_model.go index ec6ccd08e7..a295c65e24 100644 --- a/internal/services/notification_policy/list_data_source_model.go +++ b/internal/services/notification_policy/list_data_source_model.go @@ -5,8 +5,8 @@ package notification_policy import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/alerting" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/alerting" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/notification_policy/resource.go b/internal/services/notification_policy/resource.go index cf611d3bcb..8ff0fe0f2a 100644 --- a/internal/services/notification_policy/resource.go +++ b/internal/services/notification_policy/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/alerting" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/alerting" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/notification_policy_webhooks/data_source.go b/internal/services/notification_policy_webhooks/data_source.go index 7b6f0411f0..99069a40f9 100644 --- a/internal/services/notification_policy_webhooks/data_source.go +++ b/internal/services/notification_policy_webhooks/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/notification_policy_webhooks/data_source_model.go b/internal/services/notification_policy_webhooks/data_source_model.go index f04c17bca1..f4b9fa9e5c 100644 --- a/internal/services/notification_policy_webhooks/data_source_model.go +++ b/internal/services/notification_policy_webhooks/data_source_model.go @@ -5,8 +5,8 @@ package notification_policy_webhooks import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/alerting" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/alerting" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/notification_policy_webhooks/list_data_source.go b/internal/services/notification_policy_webhooks/list_data_source.go index ff51b6a4e1..84df212602 100644 --- a/internal/services/notification_policy_webhooks/list_data_source.go +++ b/internal/services/notification_policy_webhooks/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/notification_policy_webhooks/list_data_source_model.go b/internal/services/notification_policy_webhooks/list_data_source_model.go index a47f6e9c8a..4f882b604c 100644 --- a/internal/services/notification_policy_webhooks/list_data_source_model.go +++ b/internal/services/notification_policy_webhooks/list_data_source_model.go @@ -5,8 +5,8 @@ package notification_policy_webhooks import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/alerting" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/alerting" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/notification_policy_webhooks/resource.go b/internal/services/notification_policy_webhooks/resource.go index c7186e9131..9743d62450 100644 --- a/internal/services/notification_policy_webhooks/resource.go +++ b/internal/services/notification_policy_webhooks/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/alerting" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/alerting" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/observatory_scheduled_test/data_source.go b/internal/services/observatory_scheduled_test/data_source.go index 4ca25031bd..b801922c2e 100644 --- a/internal/services/observatory_scheduled_test/data_source.go +++ b/internal/services/observatory_scheduled_test/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/observatory_scheduled_test/data_source_model.go b/internal/services/observatory_scheduled_test/data_source_model.go index e0a181ecf6..d6004edc3a 100644 --- a/internal/services/observatory_scheduled_test/data_source_model.go +++ b/internal/services/observatory_scheduled_test/data_source_model.go @@ -5,8 +5,8 @@ package observatory_scheduled_test import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/speed" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/speed" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/observatory_scheduled_test/resource.go b/internal/services/observatory_scheduled_test/resource.go index 89e58e4f9b..ffbf6b35b6 100644 --- a/internal/services/observatory_scheduled_test/resource.go +++ b/internal/services/observatory_scheduled_test/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/speed" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/speed" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/origin_ca_certificate/data_source.go b/internal/services/origin_ca_certificate/data_source.go index bf78371fa0..ec04919f25 100644 --- a/internal/services/origin_ca_certificate/data_source.go +++ b/internal/services/origin_ca_certificate/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/origin_ca_certificate/data_source_model.go b/internal/services/origin_ca_certificate/data_source_model.go index e0964ab031..eba5af9d7c 100644 --- a/internal/services/origin_ca_certificate/data_source_model.go +++ b/internal/services/origin_ca_certificate/data_source_model.go @@ -5,8 +5,8 @@ package origin_ca_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/origin_ca_certificates" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/origin_ca_certificates" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/origin_ca_certificate/list_data_source.go b/internal/services/origin_ca_certificate/list_data_source.go index 708f842238..ee9d886c3e 100644 --- a/internal/services/origin_ca_certificate/list_data_source.go +++ b/internal/services/origin_ca_certificate/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/origin_ca_certificate/list_data_source_model.go b/internal/services/origin_ca_certificate/list_data_source_model.go index f9f1fa7639..d7847e0eb3 100644 --- a/internal/services/origin_ca_certificate/list_data_source_model.go +++ b/internal/services/origin_ca_certificate/list_data_source_model.go @@ -5,8 +5,8 @@ package origin_ca_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/origin_ca_certificates" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/origin_ca_certificates" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/origin_ca_certificate/resource.go b/internal/services/origin_ca_certificate/resource.go index 99be5724de..34bd612dbb 100644 --- a/internal/services/origin_ca_certificate/resource.go +++ b/internal/services/origin_ca_certificate/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/origin_ca_certificates" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/origin_ca_certificates" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/page_rule/custom.go b/internal/services/page_rule/custom.go index 95d68b3a22..fd28df1f0b 100644 --- a/internal/services/page_rule/custom.go +++ b/internal/services/page_rule/custom.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" - "github.com/cloudflare/cloudflare-go/v3/page_rules" + "github.com/cloudflare/cloudflare-go/v4/page_rules" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/page_rule/data_source.go b/internal/services/page_rule/data_source.go index 49fd94846f..932656459c 100644 --- a/internal/services/page_rule/data_source.go +++ b/internal/services/page_rule/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/page_rule/data_source_model.go b/internal/services/page_rule/data_source_model.go index b1adfcb3dd..0ea9a78e0a 100644 --- a/internal/services/page_rule/data_source_model.go +++ b/internal/services/page_rule/data_source_model.go @@ -5,8 +5,8 @@ package page_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/page_rules" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/page_rules" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/page_rule/resource.go b/internal/services/page_rule/resource.go index 84c556b413..6206d459c5 100644 --- a/internal/services/page_rule/resource.go +++ b/internal/services/page_rule/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/page_rules" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/page_rules" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/page_shield_connections/data_source.go b/internal/services/page_shield_connections/data_source.go index 780851bb62..f378064c1f 100644 --- a/internal/services/page_shield_connections/data_source.go +++ b/internal/services/page_shield_connections/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/page_shield_connections/data_source_model.go b/internal/services/page_shield_connections/data_source_model.go index d58f234ced..a87c1e1b54 100644 --- a/internal/services/page_shield_connections/data_source_model.go +++ b/internal/services/page_shield_connections/data_source_model.go @@ -5,8 +5,8 @@ package page_shield_connections import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/page_shield" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/page_shield" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/page_shield_connections/list_data_source.go b/internal/services/page_shield_connections/list_data_source.go index 37847847f9..1cdd5b5c11 100644 --- a/internal/services/page_shield_connections/list_data_source.go +++ b/internal/services/page_shield_connections/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/page_shield_connections/list_data_source_model.go b/internal/services/page_shield_connections/list_data_source_model.go index 21d143fa22..9d458b4f1e 100644 --- a/internal/services/page_shield_connections/list_data_source_model.go +++ b/internal/services/page_shield_connections/list_data_source_model.go @@ -5,8 +5,8 @@ package page_shield_connections import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/page_shield" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/page_shield" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/page_shield_cookies/data_source.go b/internal/services/page_shield_cookies/data_source.go index 44a65b2b7c..43c635f32d 100644 --- a/internal/services/page_shield_cookies/data_source.go +++ b/internal/services/page_shield_cookies/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/page_shield_cookies/data_source_model.go b/internal/services/page_shield_cookies/data_source_model.go index 33970bedd7..b26d22317e 100644 --- a/internal/services/page_shield_cookies/data_source_model.go +++ b/internal/services/page_shield_cookies/data_source_model.go @@ -5,8 +5,8 @@ package page_shield_cookies import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/page_shield" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/page_shield" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/page_shield_cookies/list_data_source.go b/internal/services/page_shield_cookies/list_data_source.go index 93c151bb17..baf09f1675 100644 --- a/internal/services/page_shield_cookies/list_data_source.go +++ b/internal/services/page_shield_cookies/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/page_shield_cookies/list_data_source_model.go b/internal/services/page_shield_cookies/list_data_source_model.go index caf726b76b..705ad0aa1a 100644 --- a/internal/services/page_shield_cookies/list_data_source_model.go +++ b/internal/services/page_shield_cookies/list_data_source_model.go @@ -5,8 +5,8 @@ package page_shield_cookies import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/page_shield" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/page_shield" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/page_shield_policy/data_source.go b/internal/services/page_shield_policy/data_source.go index 1ff68e4a31..152bb9344a 100644 --- a/internal/services/page_shield_policy/data_source.go +++ b/internal/services/page_shield_policy/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/page_shield_policy/data_source_model.go b/internal/services/page_shield_policy/data_source_model.go index 3fe99c1770..8b8e31c46c 100644 --- a/internal/services/page_shield_policy/data_source_model.go +++ b/internal/services/page_shield_policy/data_source_model.go @@ -5,8 +5,8 @@ package page_shield_policy import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/page_shield" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/page_shield" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/page_shield_policy/list_data_source.go b/internal/services/page_shield_policy/list_data_source.go index 39daf47314..77486afaf4 100644 --- a/internal/services/page_shield_policy/list_data_source.go +++ b/internal/services/page_shield_policy/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/page_shield_policy/list_data_source_model.go b/internal/services/page_shield_policy/list_data_source_model.go index 1f8a59641e..5e0903e88d 100644 --- a/internal/services/page_shield_policy/list_data_source_model.go +++ b/internal/services/page_shield_policy/list_data_source_model.go @@ -5,8 +5,8 @@ package page_shield_policy import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/page_shield" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/page_shield" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/page_shield_policy/resource.go b/internal/services/page_shield_policy/resource.go index fc8d1412ba..97a1a59705 100644 --- a/internal/services/page_shield_policy/resource.go +++ b/internal/services/page_shield_policy/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/page_shield" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/page_shield" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/page_shield_scripts/data_source.go b/internal/services/page_shield_scripts/data_source.go index 79e28f1b80..c86c3b6200 100644 --- a/internal/services/page_shield_scripts/data_source.go +++ b/internal/services/page_shield_scripts/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/page_shield_scripts/data_source_model.go b/internal/services/page_shield_scripts/data_source_model.go index ddde2f8b7f..bdfef91d67 100644 --- a/internal/services/page_shield_scripts/data_source_model.go +++ b/internal/services/page_shield_scripts/data_source_model.go @@ -5,8 +5,8 @@ package page_shield_scripts import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/page_shield" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/page_shield" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/page_shield_scripts/list_data_source.go b/internal/services/page_shield_scripts/list_data_source.go index 88ef6849a0..215cd5faa1 100644 --- a/internal/services/page_shield_scripts/list_data_source.go +++ b/internal/services/page_shield_scripts/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/page_shield_scripts/list_data_source_model.go b/internal/services/page_shield_scripts/list_data_source_model.go index fe04aac83e..c29d9d1889 100644 --- a/internal/services/page_shield_scripts/list_data_source_model.go +++ b/internal/services/page_shield_scripts/list_data_source_model.go @@ -5,8 +5,8 @@ package page_shield_scripts import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/page_shield" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/page_shield" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/pages_domain/data_source.go b/internal/services/pages_domain/data_source.go index c62753e95a..16a9c9aa7c 100644 --- a/internal/services/pages_domain/data_source.go +++ b/internal/services/pages_domain/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/pages_domain/data_source_model.go b/internal/services/pages_domain/data_source_model.go index 79483cb68c..623a8e6911 100644 --- a/internal/services/pages_domain/data_source_model.go +++ b/internal/services/pages_domain/data_source_model.go @@ -5,8 +5,8 @@ package pages_domain import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/pages" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/pages" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/pages_domain/list_data_source.go b/internal/services/pages_domain/list_data_source.go index 3d1b0d4fb4..825cdc6ce1 100644 --- a/internal/services/pages_domain/list_data_source.go +++ b/internal/services/pages_domain/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/pages_domain/list_data_source_model.go b/internal/services/pages_domain/list_data_source_model.go index f44ff72fc2..c993333715 100644 --- a/internal/services/pages_domain/list_data_source_model.go +++ b/internal/services/pages_domain/list_data_source_model.go @@ -5,8 +5,8 @@ package pages_domain import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/pages" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/pages" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/pages_domain/resource.go b/internal/services/pages_domain/resource.go index 59713aba7a..4b21ee95cd 100644 --- a/internal/services/pages_domain/resource.go +++ b/internal/services/pages_domain/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/pages" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/pages" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/pages_project/data_source.go b/internal/services/pages_project/data_source.go index 5a4ec1dc58..54d0406fa4 100644 --- a/internal/services/pages_project/data_source.go +++ b/internal/services/pages_project/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/pages_project/data_source_model.go b/internal/services/pages_project/data_source_model.go index 4bc7ecc236..89697e79b3 100644 --- a/internal/services/pages_project/data_source_model.go +++ b/internal/services/pages_project/data_source_model.go @@ -5,8 +5,8 @@ package pages_project import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/pages" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/pages" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/pages_project/list_data_source.go b/internal/services/pages_project/list_data_source.go index a30da4d439..cac848c360 100644 --- a/internal/services/pages_project/list_data_source.go +++ b/internal/services/pages_project/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/pages_project/list_data_source_model.go b/internal/services/pages_project/list_data_source_model.go index 5f7e90e561..618d5eef2f 100644 --- a/internal/services/pages_project/list_data_source_model.go +++ b/internal/services/pages_project/list_data_source_model.go @@ -5,8 +5,8 @@ package pages_project import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/pages" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/pages" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/pages_project/resource.go b/internal/services/pages_project/resource.go index 6cc95587d2..32c16400ce 100644 --- a/internal/services/pages_project/resource.go +++ b/internal/services/pages_project/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/pages" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/pages" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/permission_group/data_source.go b/internal/services/permission_group/data_source.go index 130bb95f2f..423d080a3e 100644 --- a/internal/services/permission_group/data_source.go +++ b/internal/services/permission_group/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/permission_group/data_source_model.go b/internal/services/permission_group/data_source_model.go index ec2c82e369..1ec2fd0b1f 100644 --- a/internal/services/permission_group/data_source_model.go +++ b/internal/services/permission_group/data_source_model.go @@ -5,8 +5,8 @@ package permission_group import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/iam" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/iam" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/permission_group/list_data_source.go b/internal/services/permission_group/list_data_source.go index 70137254c6..849cdc69c3 100644 --- a/internal/services/permission_group/list_data_source.go +++ b/internal/services/permission_group/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/permission_group/list_data_source_model.go b/internal/services/permission_group/list_data_source_model.go index e915e94f31..f0d72ac51c 100644 --- a/internal/services/permission_group/list_data_source_model.go +++ b/internal/services/permission_group/list_data_source_model.go @@ -5,8 +5,8 @@ package permission_group import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/iam" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/iam" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/queue/data_source.go b/internal/services/queue/data_source.go index 07977bd613..b680c57816 100644 --- a/internal/services/queue/data_source.go +++ b/internal/services/queue/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/queue/data_source_model.go b/internal/services/queue/data_source_model.go index e6980fb578..75032caef2 100644 --- a/internal/services/queue/data_source_model.go +++ b/internal/services/queue/data_source_model.go @@ -5,8 +5,8 @@ package queue import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/queues" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/queues" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/queue/list_data_source.go b/internal/services/queue/list_data_source.go index ca0c8e2c15..9dcb3394a0 100644 --- a/internal/services/queue/list_data_source.go +++ b/internal/services/queue/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/queue/list_data_source_model.go b/internal/services/queue/list_data_source_model.go index 0b38705b7a..ee969af71f 100644 --- a/internal/services/queue/list_data_source_model.go +++ b/internal/services/queue/list_data_source_model.go @@ -5,8 +5,8 @@ package queue import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/queues" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/queues" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/queue/resource.go b/internal/services/queue/resource.go index 8603193508..6f105b0a73 100644 --- a/internal/services/queue/resource.go +++ b/internal/services/queue/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/queues" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/queues" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/queue_consumer/data_source.go b/internal/services/queue_consumer/data_source.go index 71f2c97a97..8469bb91e4 100644 --- a/internal/services/queue_consumer/data_source.go +++ b/internal/services/queue_consumer/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/queue_consumer/data_source_model.go b/internal/services/queue_consumer/data_source_model.go index b81446eb7c..d6a5ac2c94 100644 --- a/internal/services/queue_consumer/data_source_model.go +++ b/internal/services/queue_consumer/data_source_model.go @@ -5,8 +5,8 @@ package queue_consumer import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/queues" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/queues" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/queue_consumer/resource.go b/internal/services/queue_consumer/resource.go index e496c8bce4..07d0fa1d2b 100644 --- a/internal/services/queue_consumer/resource.go +++ b/internal/services/queue_consumer/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/queues" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/queues" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/.DS_Store b/internal/services/r2_bucket/.DS_Store similarity index 88% rename from internal/services/.DS_Store rename to internal/services/r2_bucket/.DS_Store index 3d579d50f5ca286fde15116d4ef000ea35fcc6eb..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 100644 GIT binary patch delta 70 zcmZoMXfc=|#>AjHu~2NHo+1YW5HK<@2y8B7p2o7dfmw=qGdl-A2T%b}v`T(zLk1J1H!z_?`S`(OheB`G1F zimK_gl~uzq>c+KqD>E;p<8+vGX?!^^Pw^(U#FU*yVdgiiBPmiEi7>7lQ4pf!>O2yG z%(`+Yf~4|#KZIeLrr+2cjoiHsX*(ouI}7OUy9ar08qMw9!xR6G-wXMKue-oda5L3e yU*u(aM)0q(AG}y_DQ?iGl=M|Eh^5c!I4=G~Nx!sW!)n!3WSzpbwr0oHyY>wcerAjS diff --git a/internal/services/r2_bucket/data_source.go b/internal/services/r2_bucket/data_source.go index 30f864303e..abd14f052e 100644 --- a/internal/services/r2_bucket/data_source.go +++ b/internal/services/r2_bucket/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/r2_bucket/data_source_model.go b/internal/services/r2_bucket/data_source_model.go index 1f63516e19..5b929e7579 100644 --- a/internal/services/r2_bucket/data_source_model.go +++ b/internal/services/r2_bucket/data_source_model.go @@ -5,8 +5,8 @@ package r2_bucket import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/r2" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/r2" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/r2_bucket/resource.go b/internal/services/r2_bucket/resource.go index 4962a5e571..efbcb012d9 100644 --- a/internal/services/r2_bucket/resource.go +++ b/internal/services/r2_bucket/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/r2" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/r2" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/r2_custom_domain/data_source.go b/internal/services/r2_custom_domain/data_source.go index 5d68767d9b..5cd7ec8a25 100644 --- a/internal/services/r2_custom_domain/data_source.go +++ b/internal/services/r2_custom_domain/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/r2_custom_domain/data_source_model.go b/internal/services/r2_custom_domain/data_source_model.go index 9402c44b0d..6400853787 100644 --- a/internal/services/r2_custom_domain/data_source_model.go +++ b/internal/services/r2_custom_domain/data_source_model.go @@ -5,8 +5,8 @@ package r2_custom_domain import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/r2" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/r2" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/r2_custom_domain/resource.go b/internal/services/r2_custom_domain/resource.go index 02e4959648..dcd3006a4b 100644 --- a/internal/services/r2_custom_domain/resource.go +++ b/internal/services/r2_custom_domain/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/r2" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/r2" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/r2_managed_domain/resource.go b/internal/services/r2_managed_domain/resource.go index ab2aa1d800..3fffc08127 100644 --- a/internal/services/r2_managed_domain/resource.go +++ b/internal/services/r2_managed_domain/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/r2" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/r2" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/rate_limit/data_source.go b/internal/services/rate_limit/data_source.go index 2a3b118702..8f09036712 100644 --- a/internal/services/rate_limit/data_source.go +++ b/internal/services/rate_limit/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/rate_limit/data_source_model.go b/internal/services/rate_limit/data_source_model.go index e0d9909f27..53176e7824 100644 --- a/internal/services/rate_limit/data_source_model.go +++ b/internal/services/rate_limit/data_source_model.go @@ -5,8 +5,8 @@ package rate_limit import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rate_limits" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rate_limits" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/rate_limit/list_data_source.go b/internal/services/rate_limit/list_data_source.go index 1e5fa87c8e..d778539bd0 100644 --- a/internal/services/rate_limit/list_data_source.go +++ b/internal/services/rate_limit/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/rate_limit/list_data_source_model.go b/internal/services/rate_limit/list_data_source_model.go index 5fe9d71442..30f8ebdf61 100644 --- a/internal/services/rate_limit/list_data_source_model.go +++ b/internal/services/rate_limit/list_data_source_model.go @@ -5,8 +5,8 @@ package rate_limit import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rate_limits" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rate_limits" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/rate_limit/resource.go b/internal/services/rate_limit/resource.go index 71c9316c09..8877190281 100644 --- a/internal/services/rate_limit/resource.go +++ b/internal/services/rate_limit/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/rate_limits" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/rate_limits" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/regional_hostname/data_source.go b/internal/services/regional_hostname/data_source.go index f3cfe11d23..4b66b3b2ba 100644 --- a/internal/services/regional_hostname/data_source.go +++ b/internal/services/regional_hostname/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/regional_hostname/data_source_model.go b/internal/services/regional_hostname/data_source_model.go index d2b963014f..3f6c835578 100644 --- a/internal/services/regional_hostname/data_source_model.go +++ b/internal/services/regional_hostname/data_source_model.go @@ -5,8 +5,8 @@ package regional_hostname import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/addressing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/addressing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/regional_hostname/list_data_source.go b/internal/services/regional_hostname/list_data_source.go index f47c2927d4..8a99ca8b35 100644 --- a/internal/services/regional_hostname/list_data_source.go +++ b/internal/services/regional_hostname/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/regional_hostname/list_data_source_model.go b/internal/services/regional_hostname/list_data_source_model.go index 86acd178c8..eb5c2c26cc 100644 --- a/internal/services/regional_hostname/list_data_source_model.go +++ b/internal/services/regional_hostname/list_data_source_model.go @@ -5,8 +5,8 @@ package regional_hostname import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/addressing" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/addressing" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/regional_hostname/resource.go b/internal/services/regional_hostname/resource.go index 0ba46f09c2..82e22f54af 100644 --- a/internal/services/regional_hostname/resource.go +++ b/internal/services/regional_hostname/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/addressing" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/addressing" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/regional_tiered_cache/data_source.go b/internal/services/regional_tiered_cache/data_source.go index a25c313971..93c194455c 100644 --- a/internal/services/regional_tiered_cache/data_source.go +++ b/internal/services/regional_tiered_cache/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/regional_tiered_cache/data_source_model.go b/internal/services/regional_tiered_cache/data_source_model.go index 8f56580d0c..3b4062d6fe 100644 --- a/internal/services/regional_tiered_cache/data_source_model.go +++ b/internal/services/regional_tiered_cache/data_source_model.go @@ -5,8 +5,8 @@ package regional_tiered_cache import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cache" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cache" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/regional_tiered_cache/resource.go b/internal/services/regional_tiered_cache/resource.go index fadf91777f..3ad221bb61 100644 --- a/internal/services/regional_tiered_cache/resource.go +++ b/internal/services/regional_tiered_cache/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cache" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cache" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/registrar_domain/data_source.go b/internal/services/registrar_domain/data_source.go index 2e6e7bad5e..ca4980924d 100644 --- a/internal/services/registrar_domain/data_source.go +++ b/internal/services/registrar_domain/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/registrar_domain/data_source_model.go b/internal/services/registrar_domain/data_source_model.go index 455f4dc98e..90574a13f6 100644 --- a/internal/services/registrar_domain/data_source_model.go +++ b/internal/services/registrar_domain/data_source_model.go @@ -5,8 +5,8 @@ package registrar_domain import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/registrar" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/registrar" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/registrar_domain/list_data_source.go b/internal/services/registrar_domain/list_data_source.go index 3105612a65..2d2fac60e2 100644 --- a/internal/services/registrar_domain/list_data_source.go +++ b/internal/services/registrar_domain/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/registrar_domain/list_data_source_model.go b/internal/services/registrar_domain/list_data_source_model.go index 5169570412..9568b37ca8 100644 --- a/internal/services/registrar_domain/list_data_source_model.go +++ b/internal/services/registrar_domain/list_data_source_model.go @@ -5,8 +5,8 @@ package registrar_domain import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/registrar" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/registrar" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/registrar_domain/resource.go b/internal/services/registrar_domain/resource.go index 5cfd035a73..71cba200a3 100644 --- a/internal/services/registrar_domain/resource.go +++ b/internal/services/registrar_domain/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/registrar" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/registrar" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/resource_group/data_source.go b/internal/services/resource_group/data_source.go index ec7d2b3aad..fb30a9c27e 100644 --- a/internal/services/resource_group/data_source.go +++ b/internal/services/resource_group/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/resource_group/data_source_model.go b/internal/services/resource_group/data_source_model.go index 01586ae522..fdd5eca1e8 100644 --- a/internal/services/resource_group/data_source_model.go +++ b/internal/services/resource_group/data_source_model.go @@ -5,8 +5,8 @@ package resource_group import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/iam" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/iam" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/resource_group/list_data_source.go b/internal/services/resource_group/list_data_source.go index b6ab9a60eb..ab63eeba9f 100644 --- a/internal/services/resource_group/list_data_source.go +++ b/internal/services/resource_group/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/resource_group/list_data_source_model.go b/internal/services/resource_group/list_data_source_model.go index 9702f47850..4fac4af5a7 100644 --- a/internal/services/resource_group/list_data_source_model.go +++ b/internal/services/resource_group/list_data_source_model.go @@ -5,8 +5,8 @@ package resource_group import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/iam" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/iam" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/ruleset/data_source.go b/internal/services/ruleset/data_source.go index 80c7c04e59..ebde812037 100644 --- a/internal/services/ruleset/data_source.go +++ b/internal/services/ruleset/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/ruleset/data_source_model.go b/internal/services/ruleset/data_source_model.go index 3b9199c32b..fb1451d6c2 100644 --- a/internal/services/ruleset/data_source_model.go +++ b/internal/services/ruleset/data_source_model.go @@ -5,8 +5,8 @@ package ruleset import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rulesets" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rulesets" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/ruleset/list_data_source.go b/internal/services/ruleset/list_data_source.go index 2aeac180d9..0313614d6e 100644 --- a/internal/services/ruleset/list_data_source.go +++ b/internal/services/ruleset/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/ruleset/list_data_source_model.go b/internal/services/ruleset/list_data_source_model.go index e30cf903da..b8b6c27ee6 100644 --- a/internal/services/ruleset/list_data_source_model.go +++ b/internal/services/ruleset/list_data_source_model.go @@ -5,8 +5,8 @@ package ruleset import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rulesets" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rulesets" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/ruleset/resource.go b/internal/services/ruleset/resource.go index dc7ee9f20c..043e2d9b3b 100644 --- a/internal/services/ruleset/resource.go +++ b/internal/services/ruleset/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/rulesets" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/rulesets" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/snippet_rules/data_source.go b/internal/services/snippet_rules/data_source.go index ee72f9729b..9407011d6c 100644 --- a/internal/services/snippet_rules/data_source.go +++ b/internal/services/snippet_rules/data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/hashicorp/terraform-plugin-framework/datasource" ) diff --git a/internal/services/snippet_rules/data_source_model.go b/internal/services/snippet_rules/data_source_model.go index 36db9b0fbc..c188e8f85f 100644 --- a/internal/services/snippet_rules/data_source_model.go +++ b/internal/services/snippet_rules/data_source_model.go @@ -5,8 +5,8 @@ package snippet_rules import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/snippets" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/snippets" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/snippet_rules/list_data_source.go b/internal/services/snippet_rules/list_data_source.go index ca779ac839..1c0d1a4405 100644 --- a/internal/services/snippet_rules/list_data_source.go +++ b/internal/services/snippet_rules/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/snippet_rules/list_data_source_model.go b/internal/services/snippet_rules/list_data_source_model.go index 2990d7bca4..bbc864ed51 100644 --- a/internal/services/snippet_rules/list_data_source_model.go +++ b/internal/services/snippet_rules/list_data_source_model.go @@ -5,8 +5,8 @@ package snippet_rules import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/snippets" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/snippets" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/snippet_rules/resource.go b/internal/services/snippet_rules/resource.go index 428945233b..96637d2a8e 100644 --- a/internal/services/snippet_rules/resource.go +++ b/internal/services/snippet_rules/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/snippets" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/snippets" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/snippets/data_source.go b/internal/services/snippets/data_source.go index e03aa1d280..369804a22f 100644 --- a/internal/services/snippets/data_source.go +++ b/internal/services/snippets/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/snippets/data_source_model.go b/internal/services/snippets/data_source_model.go index 9232a46e77..2a07811848 100644 --- a/internal/services/snippets/data_source_model.go +++ b/internal/services/snippets/data_source_model.go @@ -5,8 +5,8 @@ package snippets import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/snippets" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/snippets" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/snippets/list_data_source.go b/internal/services/snippets/list_data_source.go index ccbda0a12f..bc9481c0c2 100644 --- a/internal/services/snippets/list_data_source.go +++ b/internal/services/snippets/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/snippets/list_data_source_model.go b/internal/services/snippets/list_data_source_model.go index 1b11a90e11..d48c8f0cb8 100644 --- a/internal/services/snippets/list_data_source_model.go +++ b/internal/services/snippets/list_data_source_model.go @@ -5,8 +5,8 @@ package snippets import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/snippets" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/snippets" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/snippets/resource.go b/internal/services/snippets/resource.go index 509a8e3443..9a34d8ca16 100644 --- a/internal/services/snippets/resource.go +++ b/internal/services/snippets/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/snippets" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/snippets" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/spectrum_application/data_source.go b/internal/services/spectrum_application/data_source.go index 0cd8142385..9c2491a5be 100644 --- a/internal/services/spectrum_application/data_source.go +++ b/internal/services/spectrum_application/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/spectrum_application/data_source_model.go b/internal/services/spectrum_application/data_source_model.go index d2eebd58aa..39cf8b295f 100644 --- a/internal/services/spectrum_application/data_source_model.go +++ b/internal/services/spectrum_application/data_source_model.go @@ -5,8 +5,8 @@ package spectrum_application import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/spectrum" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/spectrum" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/spectrum_application/list_data_source.go b/internal/services/spectrum_application/list_data_source.go index 938ad2efb6..2078a411b8 100644 --- a/internal/services/spectrum_application/list_data_source.go +++ b/internal/services/spectrum_application/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/spectrum_application/list_data_source_model.go b/internal/services/spectrum_application/list_data_source_model.go index c07eca5de5..254aed1cd8 100644 --- a/internal/services/spectrum_application/list_data_source_model.go +++ b/internal/services/spectrum_application/list_data_source_model.go @@ -5,8 +5,8 @@ package spectrum_application import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/spectrum" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/spectrum" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/spectrum_application/resource.go b/internal/services/spectrum_application/resource.go index c9eaf325d7..a2628b8758 100644 --- a/internal/services/spectrum_application/resource.go +++ b/internal/services/spectrum_application/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/spectrum" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/spectrum" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/stream/data_source.go b/internal/services/stream/data_source.go index 05f2deffd7..7f9ac2fd3d 100644 --- a/internal/services/stream/data_source.go +++ b/internal/services/stream/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/stream/data_source_model.go b/internal/services/stream/data_source_model.go index 43ae530fdc..cf1d34dbec 100644 --- a/internal/services/stream/data_source_model.go +++ b/internal/services/stream/data_source_model.go @@ -5,8 +5,8 @@ package stream import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/stream/list_data_source.go b/internal/services/stream/list_data_source.go index ff8088a24f..9885face0e 100644 --- a/internal/services/stream/list_data_source.go +++ b/internal/services/stream/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/stream/list_data_source_model.go b/internal/services/stream/list_data_source_model.go index a3e388ed8a..8937dbb669 100644 --- a/internal/services/stream/list_data_source_model.go +++ b/internal/services/stream/list_data_source_model.go @@ -5,8 +5,8 @@ package stream import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/stream/resource.go b/internal/services/stream/resource.go index 70b2036378..d52c2a3bae 100644 --- a/internal/services/stream/resource.go +++ b/internal/services/stream/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/stream_audio_track/data_source.go b/internal/services/stream_audio_track/data_source.go index 78900725aa..dec528b01a 100644 --- a/internal/services/stream_audio_track/data_source.go +++ b/internal/services/stream_audio_track/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/stream_audio_track/data_source_model.go b/internal/services/stream_audio_track/data_source_model.go index 2ffd4e011c..c1b8f981ad 100644 --- a/internal/services/stream_audio_track/data_source_model.go +++ b/internal/services/stream_audio_track/data_source_model.go @@ -5,8 +5,8 @@ package stream_audio_track import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/stream_audio_track/resource.go b/internal/services/stream_audio_track/resource.go index 0aca275ca7..dd4682496d 100644 --- a/internal/services/stream_audio_track/resource.go +++ b/internal/services/stream_audio_track/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/stream_caption_language/data_source.go b/internal/services/stream_caption_language/data_source.go index 317ec935f1..9d08b933f2 100644 --- a/internal/services/stream_caption_language/data_source.go +++ b/internal/services/stream_caption_language/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/stream_caption_language/data_source_model.go b/internal/services/stream_caption_language/data_source_model.go index 49090b128b..62f1dadac6 100644 --- a/internal/services/stream_caption_language/data_source_model.go +++ b/internal/services/stream_caption_language/data_source_model.go @@ -5,8 +5,8 @@ package stream_caption_language import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/stream_caption_language/resource.go b/internal/services/stream_caption_language/resource.go index f0c9dd1476..4a1989b145 100644 --- a/internal/services/stream_caption_language/resource.go +++ b/internal/services/stream_caption_language/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/stream_download/data_source.go b/internal/services/stream_download/data_source.go index 7f042f7bf2..9c07afe1e2 100644 --- a/internal/services/stream_download/data_source.go +++ b/internal/services/stream_download/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/stream_download/data_source_model.go b/internal/services/stream_download/data_source_model.go index 2fffb6f85d..921502c04e 100644 --- a/internal/services/stream_download/data_source_model.go +++ b/internal/services/stream_download/data_source_model.go @@ -5,8 +5,8 @@ package stream_download import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/stream_download/resource.go b/internal/services/stream_download/resource.go index 8e35193f4e..82828e6c0d 100644 --- a/internal/services/stream_download/resource.go +++ b/internal/services/stream_download/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/stream_key/data_source.go b/internal/services/stream_key/data_source.go index 35a35a6336..f3a44dffa7 100644 --- a/internal/services/stream_key/data_source.go +++ b/internal/services/stream_key/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/stream_key/data_source_model.go b/internal/services/stream_key/data_source_model.go index 9919415983..2820378a63 100644 --- a/internal/services/stream_key/data_source_model.go +++ b/internal/services/stream_key/data_source_model.go @@ -5,8 +5,8 @@ package stream_key import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/stream_key/resource.go b/internal/services/stream_key/resource.go index 4d6084b6d4..73f153f864 100644 --- a/internal/services/stream_key/resource.go +++ b/internal/services/stream_key/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/stream_live_input/data_source.go b/internal/services/stream_live_input/data_source.go index 88490f770b..c62909a347 100644 --- a/internal/services/stream_live_input/data_source.go +++ b/internal/services/stream_live_input/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/stream_live_input/data_source_model.go b/internal/services/stream_live_input/data_source_model.go index 91666ca13f..84644b206d 100644 --- a/internal/services/stream_live_input/data_source_model.go +++ b/internal/services/stream_live_input/data_source_model.go @@ -5,8 +5,8 @@ package stream_live_input import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/stream_live_input/resource.go b/internal/services/stream_live_input/resource.go index 8379019b5c..fcbfc4d593 100644 --- a/internal/services/stream_live_input/resource.go +++ b/internal/services/stream_live_input/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/stream_watermark/data_source.go b/internal/services/stream_watermark/data_source.go index e639441160..ed693673f7 100644 --- a/internal/services/stream_watermark/data_source.go +++ b/internal/services/stream_watermark/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/stream_watermark/data_source_model.go b/internal/services/stream_watermark/data_source_model.go index af2182e69c..0b7a5c8ce7 100644 --- a/internal/services/stream_watermark/data_source_model.go +++ b/internal/services/stream_watermark/data_source_model.go @@ -5,8 +5,8 @@ package stream_watermark import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/stream_watermark/list_data_source.go b/internal/services/stream_watermark/list_data_source.go index 75f2ccd7e2..50e28db2a5 100644 --- a/internal/services/stream_watermark/list_data_source.go +++ b/internal/services/stream_watermark/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/stream_watermark/list_data_source_model.go b/internal/services/stream_watermark/list_data_source_model.go index 84c3fcf879..d669c278a1 100644 --- a/internal/services/stream_watermark/list_data_source_model.go +++ b/internal/services/stream_watermark/list_data_source_model.go @@ -5,8 +5,8 @@ package stream_watermark import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/stream_watermark/resource.go b/internal/services/stream_watermark/resource.go index c85f3d51ba..3cfd2ed719 100644 --- a/internal/services/stream_watermark/resource.go +++ b/internal/services/stream_watermark/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/stream_webhook/data_source.go b/internal/services/stream_webhook/data_source.go index 401afaf6a9..8502f43d37 100644 --- a/internal/services/stream_webhook/data_source.go +++ b/internal/services/stream_webhook/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/stream_webhook/data_source_model.go b/internal/services/stream_webhook/data_source_model.go index 9333a6eb87..6bd3b3dd16 100644 --- a/internal/services/stream_webhook/data_source_model.go +++ b/internal/services/stream_webhook/data_source_model.go @@ -5,8 +5,8 @@ package stream_webhook import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/stream_webhook/resource.go b/internal/services/stream_webhook/resource.go index a62f42fcc6..f16edbf80b 100644 --- a/internal/services/stream_webhook/resource.go +++ b/internal/services/stream_webhook/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/stream" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/stream" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/tiered_cache/data_source.go b/internal/services/tiered_cache/data_source.go index d077ff01f8..86f4aedc4e 100644 --- a/internal/services/tiered_cache/data_source.go +++ b/internal/services/tiered_cache/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/tiered_cache/data_source_model.go b/internal/services/tiered_cache/data_source_model.go index 355965a797..6fafce4e34 100644 --- a/internal/services/tiered_cache/data_source_model.go +++ b/internal/services/tiered_cache/data_source_model.go @@ -5,8 +5,8 @@ package tiered_cache import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cache" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cache" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/tiered_cache/resource.go b/internal/services/tiered_cache/resource.go index 78b9e3f537..805ba57409 100644 --- a/internal/services/tiered_cache/resource.go +++ b/internal/services/tiered_cache/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cache" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cache" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/total_tls/data_source.go b/internal/services/total_tls/data_source.go index 8179fa97a5..35bf3fc571 100644 --- a/internal/services/total_tls/data_source.go +++ b/internal/services/total_tls/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/total_tls/data_source_model.go b/internal/services/total_tls/data_source_model.go index fa8cb1ed21..3a6f9e3063 100644 --- a/internal/services/total_tls/data_source_model.go +++ b/internal/services/total_tls/data_source_model.go @@ -5,8 +5,8 @@ package total_tls import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/acm" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/acm" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/total_tls/resource.go b/internal/services/total_tls/resource.go index 493aedc281..3a36d32b9a 100644 --- a/internal/services/total_tls/resource.go +++ b/internal/services/total_tls/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/acm" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/acm" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/turnstile_widget/data_source.go b/internal/services/turnstile_widget/data_source.go index 1d19a33da4..b93c3f9a49 100644 --- a/internal/services/turnstile_widget/data_source.go +++ b/internal/services/turnstile_widget/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/turnstile_widget/data_source_model.go b/internal/services/turnstile_widget/data_source_model.go index 20e0a5f5af..80052c2539 100644 --- a/internal/services/turnstile_widget/data_source_model.go +++ b/internal/services/turnstile_widget/data_source_model.go @@ -5,8 +5,8 @@ package turnstile_widget import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/turnstile" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/turnstile" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/turnstile_widget/list_data_source.go b/internal/services/turnstile_widget/list_data_source.go index a98c41c104..6398cfddba 100644 --- a/internal/services/turnstile_widget/list_data_source.go +++ b/internal/services/turnstile_widget/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/turnstile_widget/list_data_source_model.go b/internal/services/turnstile_widget/list_data_source_model.go index ba7b7bb6c5..f94564d6f5 100644 --- a/internal/services/turnstile_widget/list_data_source_model.go +++ b/internal/services/turnstile_widget/list_data_source_model.go @@ -5,8 +5,8 @@ package turnstile_widget import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/turnstile" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/turnstile" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/turnstile_widget/resource.go b/internal/services/turnstile_widget/resource.go index 0cdfd15255..536ca727f4 100644 --- a/internal/services/turnstile_widget/resource.go +++ b/internal/services/turnstile_widget/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/turnstile" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/turnstile" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/url_normalization_settings/data_source.go b/internal/services/url_normalization_settings/data_source.go index edd0ad6a5b..b7d56f2b1d 100644 --- a/internal/services/url_normalization_settings/data_source.go +++ b/internal/services/url_normalization_settings/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/url_normalization_settings/data_source_model.go b/internal/services/url_normalization_settings/data_source_model.go index 86b634fdc7..6bd3c4731a 100644 --- a/internal/services/url_normalization_settings/data_source_model.go +++ b/internal/services/url_normalization_settings/data_source_model.go @@ -5,8 +5,8 @@ package url_normalization_settings import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/url_normalization" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/url_normalization" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/url_normalization_settings/resource.go b/internal/services/url_normalization_settings/resource.go index 06de5ca05a..e21101ee9c 100644 --- a/internal/services/url_normalization_settings/resource.go +++ b/internal/services/url_normalization_settings/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/url_normalization" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/url_normalization" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/user/data_source.go b/internal/services/user/data_source.go index 76191abda2..e7458672d8 100644 --- a/internal/services/user/data_source.go +++ b/internal/services/user/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/user/resource.go b/internal/services/user/resource.go index c2a0eb7f8b..a54a156cc4 100644 --- a/internal/services/user/resource.go +++ b/internal/services/user/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/user" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/user" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/user_agent_blocking_rule/data_source.go b/internal/services/user_agent_blocking_rule/data_source.go index 558c5529a5..80655b6d6e 100644 --- a/internal/services/user_agent_blocking_rule/data_source.go +++ b/internal/services/user_agent_blocking_rule/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/user_agent_blocking_rule/data_source_model.go b/internal/services/user_agent_blocking_rule/data_source_model.go index fe3994b45a..9e566864d0 100644 --- a/internal/services/user_agent_blocking_rule/data_source_model.go +++ b/internal/services/user_agent_blocking_rule/data_source_model.go @@ -5,8 +5,8 @@ package user_agent_blocking_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/user_agent_blocking_rule/list_data_source.go b/internal/services/user_agent_blocking_rule/list_data_source.go index 1149aae1d0..2ff75fcbad 100644 --- a/internal/services/user_agent_blocking_rule/list_data_source.go +++ b/internal/services/user_agent_blocking_rule/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/user_agent_blocking_rule/list_data_source_model.go b/internal/services/user_agent_blocking_rule/list_data_source_model.go index 71bbec4c5c..f859070d69 100644 --- a/internal/services/user_agent_blocking_rule/list_data_source_model.go +++ b/internal/services/user_agent_blocking_rule/list_data_source_model.go @@ -5,8 +5,8 @@ package user_agent_blocking_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/user_agent_blocking_rule/resource.go b/internal/services/user_agent_blocking_rule/resource.go index b7954356af..d1114750d4 100644 --- a/internal/services/user_agent_blocking_rule/resource.go +++ b/internal/services/user_agent_blocking_rule/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/waiting_room/data_source.go b/internal/services/waiting_room/data_source.go index 539a70101b..75746f27ab 100644 --- a/internal/services/waiting_room/data_source.go +++ b/internal/services/waiting_room/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/waiting_room/data_source_model.go b/internal/services/waiting_room/data_source_model.go index be2c522f40..ee1439e358 100644 --- a/internal/services/waiting_room/data_source_model.go +++ b/internal/services/waiting_room/data_source_model.go @@ -5,8 +5,8 @@ package waiting_room import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/waiting_room/list_data_source.go b/internal/services/waiting_room/list_data_source.go index 3987e1a87b..dd31b8431f 100644 --- a/internal/services/waiting_room/list_data_source.go +++ b/internal/services/waiting_room/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/waiting_room/list_data_source_model.go b/internal/services/waiting_room/list_data_source_model.go index de47cb4e25..9c65f5ceb1 100644 --- a/internal/services/waiting_room/list_data_source_model.go +++ b/internal/services/waiting_room/list_data_source_model.go @@ -5,8 +5,8 @@ package waiting_room import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/waiting_room/resource.go b/internal/services/waiting_room/resource.go index bc0868b92d..49abd74903 100644 --- a/internal/services/waiting_room/resource.go +++ b/internal/services/waiting_room/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/waiting_room_event/data_source.go b/internal/services/waiting_room_event/data_source.go index 8cea692e96..bd10ea15d9 100644 --- a/internal/services/waiting_room_event/data_source.go +++ b/internal/services/waiting_room_event/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/waiting_room_event/data_source_model.go b/internal/services/waiting_room_event/data_source_model.go index a701d7077e..069a4b6644 100644 --- a/internal/services/waiting_room_event/data_source_model.go +++ b/internal/services/waiting_room_event/data_source_model.go @@ -5,8 +5,8 @@ package waiting_room_event import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/waiting_room_event/list_data_source.go b/internal/services/waiting_room_event/list_data_source.go index 3c2134ca88..411092ef26 100644 --- a/internal/services/waiting_room_event/list_data_source.go +++ b/internal/services/waiting_room_event/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/waiting_room_event/list_data_source_model.go b/internal/services/waiting_room_event/list_data_source_model.go index 0027d69153..56591ec70a 100644 --- a/internal/services/waiting_room_event/list_data_source_model.go +++ b/internal/services/waiting_room_event/list_data_source_model.go @@ -5,8 +5,8 @@ package waiting_room_event import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/waiting_room_event/resource.go b/internal/services/waiting_room_event/resource.go index 5cb96d79d4..456fc87c6e 100644 --- a/internal/services/waiting_room_event/resource.go +++ b/internal/services/waiting_room_event/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/waiting_room_rules/data_source.go b/internal/services/waiting_room_rules/data_source.go index 06dca0ab9c..ac3615c193 100644 --- a/internal/services/waiting_room_rules/data_source.go +++ b/internal/services/waiting_room_rules/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/waiting_room_rules/data_source_model.go b/internal/services/waiting_room_rules/data_source_model.go index 7a3864fae8..4874c3b737 100644 --- a/internal/services/waiting_room_rules/data_source_model.go +++ b/internal/services/waiting_room_rules/data_source_model.go @@ -5,8 +5,8 @@ package waiting_room_rules import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/waiting_room_rules/resource.go b/internal/services/waiting_room_rules/resource.go index 3a71bf08df..0111d31a6b 100644 --- a/internal/services/waiting_room_rules/resource.go +++ b/internal/services/waiting_room_rules/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/waiting_room_settings/data_source.go b/internal/services/waiting_room_settings/data_source.go index 58bb639c16..ab2dd3bf17 100644 --- a/internal/services/waiting_room_settings/data_source.go +++ b/internal/services/waiting_room_settings/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/waiting_room_settings/data_source_model.go b/internal/services/waiting_room_settings/data_source_model.go index 35dea9c3dd..65fc4945d8 100644 --- a/internal/services/waiting_room_settings/data_source_model.go +++ b/internal/services/waiting_room_settings/data_source_model.go @@ -5,8 +5,8 @@ package waiting_room_settings import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/waiting_room_settings/resource.go b/internal/services/waiting_room_settings/resource.go index 2cc57e1b67..ba7639fd6e 100644 --- a/internal/services/waiting_room_settings/resource.go +++ b/internal/services/waiting_room_settings/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/waiting_rooms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/waiting_rooms" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/web3_hostname/data_source.go b/internal/services/web3_hostname/data_source.go index cae3f1dc1c..6db29d61b6 100644 --- a/internal/services/web3_hostname/data_source.go +++ b/internal/services/web3_hostname/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/web3_hostname/data_source_model.go b/internal/services/web3_hostname/data_source_model.go index a340034497..829d1f37df 100644 --- a/internal/services/web3_hostname/data_source_model.go +++ b/internal/services/web3_hostname/data_source_model.go @@ -5,8 +5,8 @@ package web3_hostname import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/web3" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/web3" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/web3_hostname/list_data_source.go b/internal/services/web3_hostname/list_data_source.go index 290ae89130..390761cdaf 100644 --- a/internal/services/web3_hostname/list_data_source.go +++ b/internal/services/web3_hostname/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/web3_hostname/list_data_source_model.go b/internal/services/web3_hostname/list_data_source_model.go index 49fe7554f8..80cadf6991 100644 --- a/internal/services/web3_hostname/list_data_source_model.go +++ b/internal/services/web3_hostname/list_data_source_model.go @@ -5,8 +5,8 @@ package web3_hostname import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/web3" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/web3" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/web3_hostname/resource.go b/internal/services/web3_hostname/resource.go index e6aa7e687c..35da63276c 100644 --- a/internal/services/web3_hostname/resource.go +++ b/internal/services/web3_hostname/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/web3" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/web3" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/web_analytics_rule/resource.go b/internal/services/web_analytics_rule/resource.go index 0fe93ff48d..5cb22bc993 100644 --- a/internal/services/web_analytics_rule/resource.go +++ b/internal/services/web_analytics_rule/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/rum" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/rum" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/web_analytics_site/data_source.go b/internal/services/web_analytics_site/data_source.go index 6c4c80b9ad..dba3c23441 100644 --- a/internal/services/web_analytics_site/data_source.go +++ b/internal/services/web_analytics_site/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/web_analytics_site/data_source_model.go b/internal/services/web_analytics_site/data_source_model.go index 6c8172f5ba..6fb6715b95 100644 --- a/internal/services/web_analytics_site/data_source_model.go +++ b/internal/services/web_analytics_site/data_source_model.go @@ -5,8 +5,8 @@ package web_analytics_site import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rum" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rum" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/web_analytics_site/list_data_source.go b/internal/services/web_analytics_site/list_data_source.go index 6a983e639b..093690942e 100644 --- a/internal/services/web_analytics_site/list_data_source.go +++ b/internal/services/web_analytics_site/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/web_analytics_site/list_data_source_model.go b/internal/services/web_analytics_site/list_data_source_model.go index a05a41acb2..51d4bee9d5 100644 --- a/internal/services/web_analytics_site/list_data_source_model.go +++ b/internal/services/web_analytics_site/list_data_source_model.go @@ -5,8 +5,8 @@ package web_analytics_site import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/rum" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/rum" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/web_analytics_site/resource.go b/internal/services/web_analytics_site/resource.go index e25c4f9335..022ea6d3c7 100644 --- a/internal/services/web_analytics_site/resource.go +++ b/internal/services/web_analytics_site/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/rum" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/rum" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/workers_cron_trigger/data_source.go b/internal/services/workers_cron_trigger/data_source.go index cefd6aae08..8f3f6051aa 100644 --- a/internal/services/workers_cron_trigger/data_source.go +++ b/internal/services/workers_cron_trigger/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/workers_cron_trigger/data_source_model.go b/internal/services/workers_cron_trigger/data_source_model.go index 01507ad2e6..2b7eaf131e 100644 --- a/internal/services/workers_cron_trigger/data_source_model.go +++ b/internal/services/workers_cron_trigger/data_source_model.go @@ -5,8 +5,8 @@ package workers_cron_trigger import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/workers_cron_trigger/resource.go b/internal/services/workers_cron_trigger/resource.go index 2bf41c5263..cc6a7ee393 100644 --- a/internal/services/workers_cron_trigger/resource.go +++ b/internal/services/workers_cron_trigger/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/workers_custom_domain/data_source.go b/internal/services/workers_custom_domain/data_source.go index 56d15df896..57b32e7631 100644 --- a/internal/services/workers_custom_domain/data_source.go +++ b/internal/services/workers_custom_domain/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/workers_custom_domain/data_source_model.go b/internal/services/workers_custom_domain/data_source_model.go index 5bbc5e7eeb..c2d692e2da 100644 --- a/internal/services/workers_custom_domain/data_source_model.go +++ b/internal/services/workers_custom_domain/data_source_model.go @@ -5,8 +5,8 @@ package workers_custom_domain import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/workers_custom_domain/list_data_source.go b/internal/services/workers_custom_domain/list_data_source.go index 0fbf2d60ba..d13a46438f 100644 --- a/internal/services/workers_custom_domain/list_data_source.go +++ b/internal/services/workers_custom_domain/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/workers_custom_domain/list_data_source_model.go b/internal/services/workers_custom_domain/list_data_source_model.go index 9ca422f36e..802cb2bb40 100644 --- a/internal/services/workers_custom_domain/list_data_source_model.go +++ b/internal/services/workers_custom_domain/list_data_source_model.go @@ -5,8 +5,8 @@ package workers_custom_domain import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/workers_custom_domain/resource.go b/internal/services/workers_custom_domain/resource.go index 6763b063bd..8d974afdca 100644 --- a/internal/services/workers_custom_domain/resource.go +++ b/internal/services/workers_custom_domain/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/workers_deployment/data_source.go b/internal/services/workers_deployment/data_source.go index 8463a46952..a81e66b1b0 100644 --- a/internal/services/workers_deployment/data_source.go +++ b/internal/services/workers_deployment/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/workers_deployment/data_source_model.go b/internal/services/workers_deployment/data_source_model.go index 9a6a1bb61c..7d0cdefc20 100644 --- a/internal/services/workers_deployment/data_source_model.go +++ b/internal/services/workers_deployment/data_source_model.go @@ -5,8 +5,8 @@ package workers_deployment import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/workers_deployment/resource.go b/internal/services/workers_deployment/resource.go index 384adb5d62..8000ec2242 100644 --- a/internal/services/workers_deployment/resource.go +++ b/internal/services/workers_deployment/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/workers_for_platforms_dispatch_namespace/data_source.go b/internal/services/workers_for_platforms_dispatch_namespace/data_source.go index a39b7b859a..f39ba63126 100644 --- a/internal/services/workers_for_platforms_dispatch_namespace/data_source.go +++ b/internal/services/workers_for_platforms_dispatch_namespace/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/workers_for_platforms_dispatch_namespace/data_source_model.go b/internal/services/workers_for_platforms_dispatch_namespace/data_source_model.go index 77efcc6ccf..4ef7946ba9 100644 --- a/internal/services/workers_for_platforms_dispatch_namespace/data_source_model.go +++ b/internal/services/workers_for_platforms_dispatch_namespace/data_source_model.go @@ -5,8 +5,8 @@ package workers_for_platforms_dispatch_namespace import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers_for_platforms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers_for_platforms" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/workers_for_platforms_dispatch_namespace/list_data_source.go b/internal/services/workers_for_platforms_dispatch_namespace/list_data_source.go index 84a0385499..9b24d6cffa 100644 --- a/internal/services/workers_for_platforms_dispatch_namespace/list_data_source.go +++ b/internal/services/workers_for_platforms_dispatch_namespace/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/workers_for_platforms_dispatch_namespace/list_data_source_model.go b/internal/services/workers_for_platforms_dispatch_namespace/list_data_source_model.go index a4906b5327..4634808a8b 100644 --- a/internal/services/workers_for_platforms_dispatch_namespace/list_data_source_model.go +++ b/internal/services/workers_for_platforms_dispatch_namespace/list_data_source_model.go @@ -5,8 +5,8 @@ package workers_for_platforms_dispatch_namespace import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers_for_platforms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers_for_platforms" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/workers_for_platforms_dispatch_namespace/resource.go b/internal/services/workers_for_platforms_dispatch_namespace/resource.go index d7ecad428f..6b872f39f3 100644 --- a/internal/services/workers_for_platforms_dispatch_namespace/resource.go +++ b/internal/services/workers_for_platforms_dispatch_namespace/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/workers_for_platforms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/workers_for_platforms" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/workers_kv/data_source.go b/internal/services/workers_kv/data_source.go index 4eec46a924..e9cbe4f57b 100644 --- a/internal/services/workers_kv/data_source.go +++ b/internal/services/workers_kv/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/workers_kv/data_source_model.go b/internal/services/workers_kv/data_source_model.go index 5353ce4b6a..f5a63a1dc0 100644 --- a/internal/services/workers_kv/data_source_model.go +++ b/internal/services/workers_kv/data_source_model.go @@ -5,8 +5,8 @@ package workers_kv import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/kv" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/kv" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/workers_kv/resource.go b/internal/services/workers_kv/resource.go index 4bcd446023..6ea2c11bc0 100644 --- a/internal/services/workers_kv/resource.go +++ b/internal/services/workers_kv/resource.go @@ -9,9 +9,9 @@ import ( "net/http" "net/url" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/kv" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/kv" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/workers_kv_namespace/data_source.go b/internal/services/workers_kv_namespace/data_source.go index ac67b593ab..a3b0d4a00f 100644 --- a/internal/services/workers_kv_namespace/data_source.go +++ b/internal/services/workers_kv_namespace/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/workers_kv_namespace/data_source_model.go b/internal/services/workers_kv_namespace/data_source_model.go index 0d92268840..6adc47a36c 100644 --- a/internal/services/workers_kv_namespace/data_source_model.go +++ b/internal/services/workers_kv_namespace/data_source_model.go @@ -5,8 +5,8 @@ package workers_kv_namespace import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/kv" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/kv" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/workers_kv_namespace/list_data_source.go b/internal/services/workers_kv_namespace/list_data_source.go index 99e645edde..84dd9eb1d2 100644 --- a/internal/services/workers_kv_namespace/list_data_source.go +++ b/internal/services/workers_kv_namespace/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/workers_kv_namespace/list_data_source_model.go b/internal/services/workers_kv_namespace/list_data_source_model.go index dac6371c90..540ec700a5 100644 --- a/internal/services/workers_kv_namespace/list_data_source_model.go +++ b/internal/services/workers_kv_namespace/list_data_source_model.go @@ -5,8 +5,8 @@ package workers_kv_namespace import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/kv" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/kv" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/workers_kv_namespace/resource.go b/internal/services/workers_kv_namespace/resource.go index d89767a9e1..f4a6b472b9 100644 --- a/internal/services/workers_kv_namespace/resource.go +++ b/internal/services/workers_kv_namespace/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/kv" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/kv" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/workers_script/data_source.go b/internal/services/workers_script/data_source.go index 3d0c62908e..af4790341d 100644 --- a/internal/services/workers_script/data_source.go +++ b/internal/services/workers_script/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/workers_script/data_source_model.go b/internal/services/workers_script/data_source_model.go index 29e418635a..486217c39a 100644 --- a/internal/services/workers_script/data_source_model.go +++ b/internal/services/workers_script/data_source_model.go @@ -5,8 +5,8 @@ package workers_script import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/workers_script/list_data_source.go b/internal/services/workers_script/list_data_source.go index 4381dd463a..1591babe8d 100644 --- a/internal/services/workers_script/list_data_source.go +++ b/internal/services/workers_script/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/workers_script/list_data_source_model.go b/internal/services/workers_script/list_data_source_model.go index d01cffc406..145fd53386 100644 --- a/internal/services/workers_script/list_data_source_model.go +++ b/internal/services/workers_script/list_data_source_model.go @@ -5,8 +5,8 @@ package workers_script import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/workers_script/resource.go b/internal/services/workers_script/resource.go index 461002e97e..9027a5335b 100644 --- a/internal/services/workers_script/resource.go +++ b/internal/services/workers_script/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/workers_script_subdomain/data_source.go b/internal/services/workers_script_subdomain/data_source.go index 93fb3ee558..e0940a4d97 100644 --- a/internal/services/workers_script_subdomain/data_source.go +++ b/internal/services/workers_script_subdomain/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/workers_script_subdomain/data_source_model.go b/internal/services/workers_script_subdomain/data_source_model.go index 2c9d4cd16a..37bb0e2a47 100644 --- a/internal/services/workers_script_subdomain/data_source_model.go +++ b/internal/services/workers_script_subdomain/data_source_model.go @@ -5,8 +5,8 @@ package workers_script_subdomain import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/workers_script_subdomain/resource.go b/internal/services/workers_script_subdomain/resource.go index 5419d338a2..7c2c7b8b6c 100644 --- a/internal/services/workers_script_subdomain/resource.go +++ b/internal/services/workers_script_subdomain/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/workers" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/workers" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/workers_secret/data_source.go b/internal/services/workers_secret/data_source.go index fbed16e7c8..376bb64671 100644 --- a/internal/services/workers_secret/data_source.go +++ b/internal/services/workers_secret/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/workers_secret/data_source_model.go b/internal/services/workers_secret/data_source_model.go index f2706990c0..72058efb2b 100644 --- a/internal/services/workers_secret/data_source_model.go +++ b/internal/services/workers_secret/data_source_model.go @@ -5,8 +5,8 @@ package workers_secret import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers_for_platforms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers_for_platforms" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/workers_secret/list_data_source.go b/internal/services/workers_secret/list_data_source.go index 8ca13c12d7..723735fc3a 100644 --- a/internal/services/workers_secret/list_data_source.go +++ b/internal/services/workers_secret/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/workers_secret/list_data_source_model.go b/internal/services/workers_secret/list_data_source_model.go index 3df3525410..411e909b2c 100644 --- a/internal/services/workers_secret/list_data_source_model.go +++ b/internal/services/workers_secret/list_data_source_model.go @@ -5,8 +5,8 @@ package workers_secret import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers_for_platforms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers_for_platforms" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/workers_secret/resource.go b/internal/services/workers_secret/resource.go index 1a7722c5ec..d137f65128 100644 --- a/internal/services/workers_secret/resource.go +++ b/internal/services/workers_secret/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/workers_for_platforms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/workers_for_platforms" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/workers_secret/resource_test.go b/internal/services/workers_secret/resource_test.go index 9114f1d04f..cfbc4150c7 100644 --- a/internal/services/workers_secret/resource_test.go +++ b/internal/services/workers_secret/resource_test.go @@ -6,8 +6,8 @@ import ( "os" "testing" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/workers_for_platforms" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/workers_for_platforms" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" "github.com/hashicorp/terraform-plugin-testing/helper/resource" diff --git a/internal/services/zero_trust_access_application/data_source.go b/internal/services/zero_trust_access_application/data_source.go index ba74928313..74dc1c4af8 100644 --- a/internal/services/zero_trust_access_application/data_source.go +++ b/internal/services/zero_trust_access_application/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_application/data_source_model.go b/internal/services/zero_trust_access_application/data_source_model.go index 0830e6ebd3..e0f9e85213 100644 --- a/internal/services/zero_trust_access_application/data_source_model.go +++ b/internal/services/zero_trust_access_application/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_application import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/zero_trust_access_application/list_data_source.go b/internal/services/zero_trust_access_application/list_data_source.go index e091d43f53..0a8c2d0027 100644 --- a/internal/services/zero_trust_access_application/list_data_source.go +++ b/internal/services/zero_trust_access_application/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_application/list_data_source_model.go b/internal/services/zero_trust_access_application/list_data_source_model.go index a40afb99f8..e3286fbfae 100644 --- a/internal/services/zero_trust_access_application/list_data_source_model.go +++ b/internal/services/zero_trust_access_application/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_application import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/zero_trust_access_application/resource.go b/internal/services/zero_trust_access_application/resource.go index a36d4580fc..bde53bff48 100644 --- a/internal/services/zero_trust_access_application/resource.go +++ b/internal/services/zero_trust_access_application/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_custom_page/data_source.go b/internal/services/zero_trust_access_custom_page/data_source.go index cac815e0de..4658601324 100644 --- a/internal/services/zero_trust_access_custom_page/data_source.go +++ b/internal/services/zero_trust_access_custom_page/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_custom_page/data_source_model.go b/internal/services/zero_trust_access_custom_page/data_source_model.go index 4afe8ec91c..594540adcc 100644 --- a/internal/services/zero_trust_access_custom_page/data_source_model.go +++ b/internal/services/zero_trust_access_custom_page/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_custom_page import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_custom_page/list_data_source.go b/internal/services/zero_trust_access_custom_page/list_data_source.go index b2a417f199..b1a8133687 100644 --- a/internal/services/zero_trust_access_custom_page/list_data_source.go +++ b/internal/services/zero_trust_access_custom_page/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_custom_page/list_data_source_model.go b/internal/services/zero_trust_access_custom_page/list_data_source_model.go index 27b33efe90..2788611842 100644 --- a/internal/services/zero_trust_access_custom_page/list_data_source_model.go +++ b/internal/services/zero_trust_access_custom_page/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_custom_page import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_custom_page/resource.go b/internal/services/zero_trust_access_custom_page/resource.go index e3e5c1837e..22ddc480b8 100644 --- a/internal/services/zero_trust_access_custom_page/resource.go +++ b/internal/services/zero_trust_access_custom_page/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_group/data_source.go b/internal/services/zero_trust_access_group/data_source.go index 86d922517a..82ae1d244d 100644 --- a/internal/services/zero_trust_access_group/data_source.go +++ b/internal/services/zero_trust_access_group/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_group/data_source_model.go b/internal/services/zero_trust_access_group/data_source_model.go index 6adb5d9205..0211da0459 100644 --- a/internal/services/zero_trust_access_group/data_source_model.go +++ b/internal/services/zero_trust_access_group/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_group import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_group/list_data_source.go b/internal/services/zero_trust_access_group/list_data_source.go index 6e12cfecdd..c57aba2ee3 100644 --- a/internal/services/zero_trust_access_group/list_data_source.go +++ b/internal/services/zero_trust_access_group/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_group/list_data_source_model.go b/internal/services/zero_trust_access_group/list_data_source_model.go index 94efb3630d..b35b146e02 100644 --- a/internal/services/zero_trust_access_group/list_data_source_model.go +++ b/internal/services/zero_trust_access_group/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_group import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_group/resource.go b/internal/services/zero_trust_access_group/resource.go index be2a5f9964..6f7e0a2a43 100644 --- a/internal/services/zero_trust_access_group/resource.go +++ b/internal/services/zero_trust_access_group/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_identity_provider/data_source.go b/internal/services/zero_trust_access_identity_provider/data_source.go index 5886cd9b8f..ce19a67196 100644 --- a/internal/services/zero_trust_access_identity_provider/data_source.go +++ b/internal/services/zero_trust_access_identity_provider/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_identity_provider/data_source_model.go b/internal/services/zero_trust_access_identity_provider/data_source_model.go index 711c7898d3..233bd3cbbe 100644 --- a/internal/services/zero_trust_access_identity_provider/data_source_model.go +++ b/internal/services/zero_trust_access_identity_provider/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_identity_provider import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_access_identity_provider/list_data_source.go b/internal/services/zero_trust_access_identity_provider/list_data_source.go index 3942ef6ca8..04b539f5b9 100644 --- a/internal/services/zero_trust_access_identity_provider/list_data_source.go +++ b/internal/services/zero_trust_access_identity_provider/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_identity_provider/list_data_source_model.go b/internal/services/zero_trust_access_identity_provider/list_data_source_model.go index 601e25e644..5491742246 100644 --- a/internal/services/zero_trust_access_identity_provider/list_data_source_model.go +++ b/internal/services/zero_trust_access_identity_provider/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_identity_provider import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_access_identity_provider/resource.go b/internal/services/zero_trust_access_identity_provider/resource.go index 9fd9af4967..75962e62e7 100644 --- a/internal/services/zero_trust_access_identity_provider/resource.go +++ b/internal/services/zero_trust_access_identity_provider/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_infrastructure_target/data_source.go b/internal/services/zero_trust_access_infrastructure_target/data_source.go index 0aec2b6e60..851b442125 100644 --- a/internal/services/zero_trust_access_infrastructure_target/data_source.go +++ b/internal/services/zero_trust_access_infrastructure_target/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_infrastructure_target/data_source_model.go b/internal/services/zero_trust_access_infrastructure_target/data_source_model.go index a141607eb5..cd43aa0d5d 100644 --- a/internal/services/zero_trust_access_infrastructure_target/data_source_model.go +++ b/internal/services/zero_trust_access_infrastructure_target/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_infrastructure_target import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_infrastructure_target/list_data_source.go b/internal/services/zero_trust_access_infrastructure_target/list_data_source.go index 5cb5797761..c4a6e8c404 100644 --- a/internal/services/zero_trust_access_infrastructure_target/list_data_source.go +++ b/internal/services/zero_trust_access_infrastructure_target/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_infrastructure_target/list_data_source_model.go b/internal/services/zero_trust_access_infrastructure_target/list_data_source_model.go index 803611e7b9..9ddd520d81 100644 --- a/internal/services/zero_trust_access_infrastructure_target/list_data_source_model.go +++ b/internal/services/zero_trust_access_infrastructure_target/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_infrastructure_target import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_infrastructure_target/resource.go b/internal/services/zero_trust_access_infrastructure_target/resource.go index b603501ba5..2b6f999cb4 100644 --- a/internal/services/zero_trust_access_infrastructure_target/resource.go +++ b/internal/services/zero_trust_access_infrastructure_target/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_key_configuration/data_source.go b/internal/services/zero_trust_access_key_configuration/data_source.go index 4323f8994e..6321b31b3b 100644 --- a/internal/services/zero_trust_access_key_configuration/data_source.go +++ b/internal/services/zero_trust_access_key_configuration/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_key_configuration/data_source_model.go b/internal/services/zero_trust_access_key_configuration/data_source_model.go index 6ddc2683a3..bc497122e6 100644 --- a/internal/services/zero_trust_access_key_configuration/data_source_model.go +++ b/internal/services/zero_trust_access_key_configuration/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_key_configuration import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_access_key_configuration/resource.go b/internal/services/zero_trust_access_key_configuration/resource.go index 60580c3c3f..ceb638a774 100644 --- a/internal/services/zero_trust_access_key_configuration/resource.go +++ b/internal/services/zero_trust_access_key_configuration/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_mtls_certificate/data_source.go b/internal/services/zero_trust_access_mtls_certificate/data_source.go index 6ce242b217..c8b5ea4e52 100644 --- a/internal/services/zero_trust_access_mtls_certificate/data_source.go +++ b/internal/services/zero_trust_access_mtls_certificate/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_mtls_certificate/data_source_model.go b/internal/services/zero_trust_access_mtls_certificate/data_source_model.go index 004e9927f5..1d73649d04 100644 --- a/internal/services/zero_trust_access_mtls_certificate/data_source_model.go +++ b/internal/services/zero_trust_access_mtls_certificate/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_mtls_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_mtls_certificate/list_data_source.go b/internal/services/zero_trust_access_mtls_certificate/list_data_source.go index 095d4217ba..9995ec1ec9 100644 --- a/internal/services/zero_trust_access_mtls_certificate/list_data_source.go +++ b/internal/services/zero_trust_access_mtls_certificate/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_mtls_certificate/list_data_source_model.go b/internal/services/zero_trust_access_mtls_certificate/list_data_source_model.go index 188bbfe80e..cadb54d418 100644 --- a/internal/services/zero_trust_access_mtls_certificate/list_data_source_model.go +++ b/internal/services/zero_trust_access_mtls_certificate/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_mtls_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_mtls_certificate/resource.go b/internal/services/zero_trust_access_mtls_certificate/resource.go index 6ab1932394..4efbb83ee2 100644 --- a/internal/services/zero_trust_access_mtls_certificate/resource.go +++ b/internal/services/zero_trust_access_mtls_certificate/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_mtls_hostname_settings/data_source.go b/internal/services/zero_trust_access_mtls_hostname_settings/data_source.go index b4b50f7cda..709be4a087 100644 --- a/internal/services/zero_trust_access_mtls_hostname_settings/data_source.go +++ b/internal/services/zero_trust_access_mtls_hostname_settings/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_mtls_hostname_settings/data_source_model.go b/internal/services/zero_trust_access_mtls_hostname_settings/data_source_model.go index 17a1eb7ac9..e4c1f00f25 100644 --- a/internal/services/zero_trust_access_mtls_hostname_settings/data_source_model.go +++ b/internal/services/zero_trust_access_mtls_hostname_settings/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_mtls_hostname_settings import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/zero_trust_access_mtls_hostname_settings/resource.go b/internal/services/zero_trust_access_mtls_hostname_settings/resource.go index e7bf6fb060..18446eb073 100644 --- a/internal/services/zero_trust_access_mtls_hostname_settings/resource.go +++ b/internal/services/zero_trust_access_mtls_hostname_settings/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/zero_trust_access_mtls_hostname_settings/resource_test.go b/internal/services/zero_trust_access_mtls_hostname_settings/resource_test.go index caa3cf50cc..16859ecb08 100644 --- a/internal/services/zero_trust_access_mtls_hostname_settings/resource_test.go +++ b/internal/services/zero_trust_access_mtls_hostname_settings/resource_test.go @@ -7,8 +7,8 @@ import ( "testing" cfv1 "github.com/cloudflare/cloudflare-go" - cfv2 "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + cfv2 "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/acctest" "github.com/cloudflare/terraform-provider-cloudflare/internal/consts" "github.com/cloudflare/terraform-provider-cloudflare/internal/utils" diff --git a/internal/services/zero_trust_access_policy/data_source.go b/internal/services/zero_trust_access_policy/data_source.go index f040130a77..ed20d926f6 100644 --- a/internal/services/zero_trust_access_policy/data_source.go +++ b/internal/services/zero_trust_access_policy/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_policy/data_source_model.go b/internal/services/zero_trust_access_policy/data_source_model.go index 059d53d976..2e9fbffffd 100644 --- a/internal/services/zero_trust_access_policy/data_source_model.go +++ b/internal/services/zero_trust_access_policy/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_policy import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_policy/list_data_source.go b/internal/services/zero_trust_access_policy/list_data_source.go index 54aa203cff..0fb0dc08b8 100644 --- a/internal/services/zero_trust_access_policy/list_data_source.go +++ b/internal/services/zero_trust_access_policy/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_policy/list_data_source_model.go b/internal/services/zero_trust_access_policy/list_data_source_model.go index 14c6c6bf68..c9ad3c8a15 100644 --- a/internal/services/zero_trust_access_policy/list_data_source_model.go +++ b/internal/services/zero_trust_access_policy/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_policy import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_policy/resource.go b/internal/services/zero_trust_access_policy/resource.go index 0f07da853a..0c138fb768 100644 --- a/internal/services/zero_trust_access_policy/resource.go +++ b/internal/services/zero_trust_access_policy/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_service_token/data_source.go b/internal/services/zero_trust_access_service_token/data_source.go index cddc1b7dd6..fc70dcd59f 100644 --- a/internal/services/zero_trust_access_service_token/data_source.go +++ b/internal/services/zero_trust_access_service_token/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_service_token/data_source_model.go b/internal/services/zero_trust_access_service_token/data_source_model.go index 8cd6653aa5..e5785d37b5 100644 --- a/internal/services/zero_trust_access_service_token/data_source_model.go +++ b/internal/services/zero_trust_access_service_token/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_service_token import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_service_token/list_data_source.go b/internal/services/zero_trust_access_service_token/list_data_source.go index 0f669a7410..729c56ca6f 100644 --- a/internal/services/zero_trust_access_service_token/list_data_source.go +++ b/internal/services/zero_trust_access_service_token/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_service_token/list_data_source_model.go b/internal/services/zero_trust_access_service_token/list_data_source_model.go index 1d2f50d7ec..813752733a 100644 --- a/internal/services/zero_trust_access_service_token/list_data_source_model.go +++ b/internal/services/zero_trust_access_service_token/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_service_token import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_service_token/resource.go b/internal/services/zero_trust_access_service_token/resource.go index 8e12054f41..3360a698b8 100644 --- a/internal/services/zero_trust_access_service_token/resource.go +++ b/internal/services/zero_trust_access_service_token/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_short_lived_certificate/data_source.go b/internal/services/zero_trust_access_short_lived_certificate/data_source.go index 6ddc98bbd3..344a114088 100644 --- a/internal/services/zero_trust_access_short_lived_certificate/data_source.go +++ b/internal/services/zero_trust_access_short_lived_certificate/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_short_lived_certificate/data_source_model.go b/internal/services/zero_trust_access_short_lived_certificate/data_source_model.go index 42415adb70..fbcbeb922e 100644 --- a/internal/services/zero_trust_access_short_lived_certificate/data_source_model.go +++ b/internal/services/zero_trust_access_short_lived_certificate/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_short_lived_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_access_short_lived_certificate/list_data_source.go b/internal/services/zero_trust_access_short_lived_certificate/list_data_source.go index 74cde11530..609e9d618d 100644 --- a/internal/services/zero_trust_access_short_lived_certificate/list_data_source.go +++ b/internal/services/zero_trust_access_short_lived_certificate/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_short_lived_certificate/list_data_source_model.go b/internal/services/zero_trust_access_short_lived_certificate/list_data_source_model.go index 731ea6f75a..491fc2b348 100644 --- a/internal/services/zero_trust_access_short_lived_certificate/list_data_source_model.go +++ b/internal/services/zero_trust_access_short_lived_certificate/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_short_lived_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_access_short_lived_certificate/resource.go b/internal/services/zero_trust_access_short_lived_certificate/resource.go index cd578f15ce..bb795f2735 100644 --- a/internal/services/zero_trust_access_short_lived_certificate/resource.go +++ b/internal/services/zero_trust_access_short_lived_certificate/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_access_tag/data_source.go b/internal/services/zero_trust_access_tag/data_source.go index 670fd162b2..434e490dd6 100644 --- a/internal/services/zero_trust_access_tag/data_source.go +++ b/internal/services/zero_trust_access_tag/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_access_tag/data_source_model.go b/internal/services/zero_trust_access_tag/data_source_model.go index 9b837b5455..848ac90c01 100644 --- a/internal/services/zero_trust_access_tag/data_source_model.go +++ b/internal/services/zero_trust_access_tag/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_tag import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_tag/list_data_source.go b/internal/services/zero_trust_access_tag/list_data_source.go index c390702fc1..24e19fc6ee 100644 --- a/internal/services/zero_trust_access_tag/list_data_source.go +++ b/internal/services/zero_trust_access_tag/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_access_tag/list_data_source_model.go b/internal/services/zero_trust_access_tag/list_data_source_model.go index 01c7452805..29062e4ab2 100644 --- a/internal/services/zero_trust_access_tag/list_data_source_model.go +++ b/internal/services/zero_trust_access_tag/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_access_tag import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_access_tag/resource.go b/internal/services/zero_trust_access_tag/resource.go index f950874067..4592e31a47 100644 --- a/internal/services/zero_trust_access_tag/resource.go +++ b/internal/services/zero_trust_access_tag/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_device_custom_profile/data_source.go b/internal/services/zero_trust_device_custom_profile/data_source.go index 20b4d13f38..487fd136e8 100644 --- a/internal/services/zero_trust_device_custom_profile/data_source.go +++ b/internal/services/zero_trust_device_custom_profile/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_device_custom_profile/data_source_model.go b/internal/services/zero_trust_device_custom_profile/data_source_model.go index 203b6c4d74..cfe362b7c5 100644 --- a/internal/services/zero_trust_device_custom_profile/data_source_model.go +++ b/internal/services/zero_trust_device_custom_profile/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_custom_profile import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_device_custom_profile/list_data_source.go b/internal/services/zero_trust_device_custom_profile/list_data_source.go index b3fe783318..8b00e34856 100644 --- a/internal/services/zero_trust_device_custom_profile/list_data_source.go +++ b/internal/services/zero_trust_device_custom_profile/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_device_custom_profile/list_data_source_model.go b/internal/services/zero_trust_device_custom_profile/list_data_source_model.go index fc31a4e61a..21f256a0cc 100644 --- a/internal/services/zero_trust_device_custom_profile/list_data_source_model.go +++ b/internal/services/zero_trust_device_custom_profile/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_custom_profile import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_device_custom_profile/resource.go b/internal/services/zero_trust_device_custom_profile/resource.go index 45f192e918..8d7729f000 100644 --- a/internal/services/zero_trust_device_custom_profile/resource.go +++ b/internal/services/zero_trust_device_custom_profile/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_device_custom_profile_local_domain_fallback/data_source.go b/internal/services/zero_trust_device_custom_profile_local_domain_fallback/data_source.go index fee7f416c9..cf95b73e7b 100644 --- a/internal/services/zero_trust_device_custom_profile_local_domain_fallback/data_source.go +++ b/internal/services/zero_trust_device_custom_profile_local_domain_fallback/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_device_custom_profile_local_domain_fallback/data_source_model.go b/internal/services/zero_trust_device_custom_profile_local_domain_fallback/data_source_model.go index 4ac5e8b7c4..2ae7d155c1 100644 --- a/internal/services/zero_trust_device_custom_profile_local_domain_fallback/data_source_model.go +++ b/internal/services/zero_trust_device_custom_profile_local_domain_fallback/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_custom_profile_local_domain_fallback import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/zero_trust_device_custom_profile_local_domain_fallback/resource.go b/internal/services/zero_trust_device_custom_profile_local_domain_fallback/resource.go index a16d111243..b0ef3c3832 100644 --- a/internal/services/zero_trust_device_custom_profile_local_domain_fallback/resource.go +++ b/internal/services/zero_trust_device_custom_profile_local_domain_fallback/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_device_default_profile/data_source.go b/internal/services/zero_trust_device_default_profile/data_source.go index 5fef994272..c5d29c83e8 100644 --- a/internal/services/zero_trust_device_default_profile/data_source.go +++ b/internal/services/zero_trust_device_default_profile/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_device_default_profile/data_source_model.go b/internal/services/zero_trust_device_default_profile/data_source_model.go index 05ad2b2003..adca8b1198 100644 --- a/internal/services/zero_trust_device_default_profile/data_source_model.go +++ b/internal/services/zero_trust_device_default_profile/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_default_profile import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_device_default_profile/resource.go b/internal/services/zero_trust_device_default_profile/resource.go index 2ba42e8046..431c84b4bd 100644 --- a/internal/services/zero_trust_device_default_profile/resource.go +++ b/internal/services/zero_trust_device_default_profile/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/zero_trust_device_default_profile_certificates/data_source.go b/internal/services/zero_trust_device_default_profile_certificates/data_source.go index 767cec61ae..0358632e83 100644 --- a/internal/services/zero_trust_device_default_profile_certificates/data_source.go +++ b/internal/services/zero_trust_device_default_profile_certificates/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_device_default_profile_certificates/data_source_model.go b/internal/services/zero_trust_device_default_profile_certificates/data_source_model.go index 8ef11e84d2..634a5fde2b 100644 --- a/internal/services/zero_trust_device_default_profile_certificates/data_source_model.go +++ b/internal/services/zero_trust_device_default_profile_certificates/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_default_profile_certificates import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/zero_trust_device_default_profile_certificates/resource.go b/internal/services/zero_trust_device_default_profile_certificates/resource.go index ef053d44f5..f6ecdf0f17 100644 --- a/internal/services/zero_trust_device_default_profile_certificates/resource.go +++ b/internal/services/zero_trust_device_default_profile_certificates/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/zero_trust_device_default_profile_local_domain_fallback/data_source.go b/internal/services/zero_trust_device_default_profile_local_domain_fallback/data_source.go index 83a6a6bd1d..242d14cf76 100644 --- a/internal/services/zero_trust_device_default_profile_local_domain_fallback/data_source.go +++ b/internal/services/zero_trust_device_default_profile_local_domain_fallback/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_device_default_profile_local_domain_fallback/data_source_model.go b/internal/services/zero_trust_device_default_profile_local_domain_fallback/data_source_model.go index 4f361d69b6..d513d877dc 100644 --- a/internal/services/zero_trust_device_default_profile_local_domain_fallback/data_source_model.go +++ b/internal/services/zero_trust_device_default_profile_local_domain_fallback/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_default_profile_local_domain_fallback import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/zero_trust_device_default_profile_local_domain_fallback/resource.go b/internal/services/zero_trust_device_default_profile_local_domain_fallback/resource.go index 43b47bb1e9..92fcb72e40 100644 --- a/internal/services/zero_trust_device_default_profile_local_domain_fallback/resource.go +++ b/internal/services/zero_trust_device_default_profile_local_domain_fallback/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/zero_trust_device_managed_networks/data_source.go b/internal/services/zero_trust_device_managed_networks/data_source.go index 2dd1734b80..c83a62b373 100644 --- a/internal/services/zero_trust_device_managed_networks/data_source.go +++ b/internal/services/zero_trust_device_managed_networks/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_device_managed_networks/data_source_model.go b/internal/services/zero_trust_device_managed_networks/data_source_model.go index 7f8e630a25..0b24c7bc1c 100644 --- a/internal/services/zero_trust_device_managed_networks/data_source_model.go +++ b/internal/services/zero_trust_device_managed_networks/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_managed_networks import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_device_managed_networks/list_data_source.go b/internal/services/zero_trust_device_managed_networks/list_data_source.go index 0cc054febb..175ade4616 100644 --- a/internal/services/zero_trust_device_managed_networks/list_data_source.go +++ b/internal/services/zero_trust_device_managed_networks/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_device_managed_networks/list_data_source_model.go b/internal/services/zero_trust_device_managed_networks/list_data_source_model.go index 8eb0a06d7c..a51486f1cc 100644 --- a/internal/services/zero_trust_device_managed_networks/list_data_source_model.go +++ b/internal/services/zero_trust_device_managed_networks/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_managed_networks import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_device_managed_networks/resource.go b/internal/services/zero_trust_device_managed_networks/resource.go index 4911bcf237..3cbbf505e7 100644 --- a/internal/services/zero_trust_device_managed_networks/resource.go +++ b/internal/services/zero_trust_device_managed_networks/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_device_posture_integration/data_source.go b/internal/services/zero_trust_device_posture_integration/data_source.go index 61d1a4aa08..162d7dfba7 100644 --- a/internal/services/zero_trust_device_posture_integration/data_source.go +++ b/internal/services/zero_trust_device_posture_integration/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_device_posture_integration/data_source_model.go b/internal/services/zero_trust_device_posture_integration/data_source_model.go index 4115f2167d..6611579c56 100644 --- a/internal/services/zero_trust_device_posture_integration/data_source_model.go +++ b/internal/services/zero_trust_device_posture_integration/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_posture_integration import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_device_posture_integration/list_data_source.go b/internal/services/zero_trust_device_posture_integration/list_data_source.go index fbf15ea549..6881a29353 100644 --- a/internal/services/zero_trust_device_posture_integration/list_data_source.go +++ b/internal/services/zero_trust_device_posture_integration/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_device_posture_integration/list_data_source_model.go b/internal/services/zero_trust_device_posture_integration/list_data_source_model.go index 341218eaf4..73ad066670 100644 --- a/internal/services/zero_trust_device_posture_integration/list_data_source_model.go +++ b/internal/services/zero_trust_device_posture_integration/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_posture_integration import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_device_posture_integration/resource.go b/internal/services/zero_trust_device_posture_integration/resource.go index b62018d1e4..dfa9188503 100644 --- a/internal/services/zero_trust_device_posture_integration/resource.go +++ b/internal/services/zero_trust_device_posture_integration/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_device_posture_rule/data_source.go b/internal/services/zero_trust_device_posture_rule/data_source.go index bea22b09d5..b762be58af 100644 --- a/internal/services/zero_trust_device_posture_rule/data_source.go +++ b/internal/services/zero_trust_device_posture_rule/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_device_posture_rule/data_source_model.go b/internal/services/zero_trust_device_posture_rule/data_source_model.go index cdb272e7a3..924f4c4039 100644 --- a/internal/services/zero_trust_device_posture_rule/data_source_model.go +++ b/internal/services/zero_trust_device_posture_rule/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_posture_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_device_posture_rule/list_data_source.go b/internal/services/zero_trust_device_posture_rule/list_data_source.go index 501411ac7a..008f59ed9a 100644 --- a/internal/services/zero_trust_device_posture_rule/list_data_source.go +++ b/internal/services/zero_trust_device_posture_rule/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_device_posture_rule/list_data_source_model.go b/internal/services/zero_trust_device_posture_rule/list_data_source_model.go index c044fbfc48..5d710fc991 100644 --- a/internal/services/zero_trust_device_posture_rule/list_data_source_model.go +++ b/internal/services/zero_trust_device_posture_rule/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_device_posture_rule import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_device_posture_rule/resource.go b/internal/services/zero_trust_device_posture_rule/resource.go index c37e7164f0..db490efe1a 100644 --- a/internal/services/zero_trust_device_posture_rule/resource.go +++ b/internal/services/zero_trust_device_posture_rule/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_dex_test/data_source.go b/internal/services/zero_trust_dex_test/data_source.go index 96fd0647e6..838adddfcc 100644 --- a/internal/services/zero_trust_dex_test/data_source.go +++ b/internal/services/zero_trust_dex_test/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_dex_test/data_source_model.go b/internal/services/zero_trust_dex_test/data_source_model.go index d9bf60dea7..c72c4308b5 100644 --- a/internal/services/zero_trust_dex_test/data_source_model.go +++ b/internal/services/zero_trust_dex_test/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dex_test import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_dex_test/list_data_source.go b/internal/services/zero_trust_dex_test/list_data_source.go index e9456b2f3e..df858e5116 100644 --- a/internal/services/zero_trust_dex_test/list_data_source.go +++ b/internal/services/zero_trust_dex_test/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_dex_test/list_data_source_model.go b/internal/services/zero_trust_dex_test/list_data_source_model.go index 2d0dab543c..ac69f8d2a2 100644 --- a/internal/services/zero_trust_dex_test/list_data_source_model.go +++ b/internal/services/zero_trust_dex_test/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dex_test import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_dex_test/resource.go b/internal/services/zero_trust_dex_test/resource.go index 350eb8e8b5..4afbd17083 100644 --- a/internal/services/zero_trust_dex_test/resource.go +++ b/internal/services/zero_trust_dex_test/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_dlp_custom_profile/data_source.go b/internal/services/zero_trust_dlp_custom_profile/data_source.go index 753b11ea3b..7c0ff298b2 100644 --- a/internal/services/zero_trust_dlp_custom_profile/data_source.go +++ b/internal/services/zero_trust_dlp_custom_profile/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_dlp_custom_profile/data_source_model.go b/internal/services/zero_trust_dlp_custom_profile/data_source_model.go index fcbcd31d1c..19d5ddb5c2 100644 --- a/internal/services/zero_trust_dlp_custom_profile/data_source_model.go +++ b/internal/services/zero_trust_dlp_custom_profile/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dlp_custom_profile import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/zero_trust_dlp_custom_profile/resource.go b/internal/services/zero_trust_dlp_custom_profile/resource.go index 8d485d0ccc..0dde291b02 100644 --- a/internal/services/zero_trust_dlp_custom_profile/resource.go +++ b/internal/services/zero_trust_dlp_custom_profile/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_dlp_dataset/data_source.go b/internal/services/zero_trust_dlp_dataset/data_source.go index 3e24a836c7..569205925d 100644 --- a/internal/services/zero_trust_dlp_dataset/data_source.go +++ b/internal/services/zero_trust_dlp_dataset/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_dlp_dataset/data_source_model.go b/internal/services/zero_trust_dlp_dataset/data_source_model.go index 225ed6d06b..2de14f6a09 100644 --- a/internal/services/zero_trust_dlp_dataset/data_source_model.go +++ b/internal/services/zero_trust_dlp_dataset/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dlp_dataset import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_dlp_dataset/list_data_source.go b/internal/services/zero_trust_dlp_dataset/list_data_source.go index dbe082dc29..f636b68cd6 100644 --- a/internal/services/zero_trust_dlp_dataset/list_data_source.go +++ b/internal/services/zero_trust_dlp_dataset/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_dlp_dataset/list_data_source_model.go b/internal/services/zero_trust_dlp_dataset/list_data_source_model.go index 9da3f486bc..5a92e7a24f 100644 --- a/internal/services/zero_trust_dlp_dataset/list_data_source_model.go +++ b/internal/services/zero_trust_dlp_dataset/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dlp_dataset import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_dlp_dataset/resource.go b/internal/services/zero_trust_dlp_dataset/resource.go index 3ec482cf8c..96eba70403 100644 --- a/internal/services/zero_trust_dlp_dataset/resource.go +++ b/internal/services/zero_trust_dlp_dataset/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/zero_trust_dlp_entry/data_source.go b/internal/services/zero_trust_dlp_entry/data_source.go index 6129d08b38..38ca58bfbf 100644 --- a/internal/services/zero_trust_dlp_entry/data_source.go +++ b/internal/services/zero_trust_dlp_entry/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_dlp_entry/data_source_model.go b/internal/services/zero_trust_dlp_entry/data_source_model.go index 3e4842dde6..643402cbd8 100644 --- a/internal/services/zero_trust_dlp_entry/data_source_model.go +++ b/internal/services/zero_trust_dlp_entry/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dlp_entry import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/zero_trust_dlp_entry/list_data_source.go b/internal/services/zero_trust_dlp_entry/list_data_source.go index e69294517d..fe93b3ec53 100644 --- a/internal/services/zero_trust_dlp_entry/list_data_source.go +++ b/internal/services/zero_trust_dlp_entry/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_dlp_entry/list_data_source_model.go b/internal/services/zero_trust_dlp_entry/list_data_source_model.go index 1a25b3e58b..a8ee9fbd52 100644 --- a/internal/services/zero_trust_dlp_entry/list_data_source_model.go +++ b/internal/services/zero_trust_dlp_entry/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dlp_entry import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/zero_trust_dlp_entry/resource.go b/internal/services/zero_trust_dlp_entry/resource.go index 31b3bb2967..e74d4a175f 100644 --- a/internal/services/zero_trust_dlp_entry/resource.go +++ b/internal/services/zero_trust_dlp_entry/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_dlp_predefined_profile/data_source.go b/internal/services/zero_trust_dlp_predefined_profile/data_source.go index 5a99e70436..5e45e4a140 100644 --- a/internal/services/zero_trust_dlp_predefined_profile/data_source.go +++ b/internal/services/zero_trust_dlp_predefined_profile/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_dlp_predefined_profile/data_source_model.go b/internal/services/zero_trust_dlp_predefined_profile/data_source_model.go index bbf968cca8..c4c77f9748 100644 --- a/internal/services/zero_trust_dlp_predefined_profile/data_source_model.go +++ b/internal/services/zero_trust_dlp_predefined_profile/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dlp_predefined_profile import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/zero_trust_dlp_predefined_profile/resource.go b/internal/services/zero_trust_dlp_predefined_profile/resource.go index 3842de50fe..38f312151b 100644 --- a/internal/services/zero_trust_dlp_predefined_profile/resource.go +++ b/internal/services/zero_trust_dlp_predefined_profile/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_dns_location/data_source.go b/internal/services/zero_trust_dns_location/data_source.go index dd60b0033e..cd383bffe9 100644 --- a/internal/services/zero_trust_dns_location/data_source.go +++ b/internal/services/zero_trust_dns_location/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_dns_location/data_source_model.go b/internal/services/zero_trust_dns_location/data_source_model.go index b7ef085fc6..224b26d7a4 100644 --- a/internal/services/zero_trust_dns_location/data_source_model.go +++ b/internal/services/zero_trust_dns_location/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dns_location import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_dns_location/list_data_source.go b/internal/services/zero_trust_dns_location/list_data_source.go index 44bab37391..4a24cde3a6 100644 --- a/internal/services/zero_trust_dns_location/list_data_source.go +++ b/internal/services/zero_trust_dns_location/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_dns_location/list_data_source_model.go b/internal/services/zero_trust_dns_location/list_data_source_model.go index cf25e8c42c..63f25248f3 100644 --- a/internal/services/zero_trust_dns_location/list_data_source_model.go +++ b/internal/services/zero_trust_dns_location/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_dns_location import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_dns_location/resource.go b/internal/services/zero_trust_dns_location/resource.go index b839312197..cfad0c4e58 100644 --- a/internal/services/zero_trust_dns_location/resource.go +++ b/internal/services/zero_trust_dns_location/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_gateway_app_types/data_source.go b/internal/services/zero_trust_gateway_app_types/data_source.go index 19dded4381..fbbad7f1cf 100644 --- a/internal/services/zero_trust_gateway_app_types/data_source.go +++ b/internal/services/zero_trust_gateway_app_types/data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/hashicorp/terraform-plugin-framework/datasource" ) diff --git a/internal/services/zero_trust_gateway_app_types/data_source_model.go b/internal/services/zero_trust_gateway_app_types/data_source_model.go index 7f6aedcf68..1f93ae72d0 100644 --- a/internal/services/zero_trust_gateway_app_types/data_source_model.go +++ b/internal/services/zero_trust_gateway_app_types/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_app_types import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_gateway_app_types/list_data_source.go b/internal/services/zero_trust_gateway_app_types/list_data_source.go index 566ad5e618..90ed9e71d2 100644 --- a/internal/services/zero_trust_gateway_app_types/list_data_source.go +++ b/internal/services/zero_trust_gateway_app_types/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_gateway_app_types/list_data_source_model.go b/internal/services/zero_trust_gateway_app_types/list_data_source_model.go index 9aa1b33741..3629d303d5 100644 --- a/internal/services/zero_trust_gateway_app_types/list_data_source_model.go +++ b/internal/services/zero_trust_gateway_app_types/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_app_types import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_gateway_categories/data_source.go b/internal/services/zero_trust_gateway_categories/data_source.go index 4352eca572..204a7e337f 100644 --- a/internal/services/zero_trust_gateway_categories/data_source.go +++ b/internal/services/zero_trust_gateway_categories/data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/hashicorp/terraform-plugin-framework/datasource" ) diff --git a/internal/services/zero_trust_gateway_categories/data_source_model.go b/internal/services/zero_trust_gateway_categories/data_source_model.go index e585ca0265..48c76a43ac 100644 --- a/internal/services/zero_trust_gateway_categories/data_source_model.go +++ b/internal/services/zero_trust_gateway_categories/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_categories import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_gateway_categories/list_data_source.go b/internal/services/zero_trust_gateway_categories/list_data_source.go index 76e34f3093..b3dd150c0c 100644 --- a/internal/services/zero_trust_gateway_categories/list_data_source.go +++ b/internal/services/zero_trust_gateway_categories/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_gateway_categories/list_data_source_model.go b/internal/services/zero_trust_gateway_categories/list_data_source_model.go index 26287572d6..c08c7699ca 100644 --- a/internal/services/zero_trust_gateway_categories/list_data_source_model.go +++ b/internal/services/zero_trust_gateway_categories/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_categories import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_gateway_certificate/data_source.go b/internal/services/zero_trust_gateway_certificate/data_source.go index b020cbc365..6e1f642ff3 100644 --- a/internal/services/zero_trust_gateway_certificate/data_source.go +++ b/internal/services/zero_trust_gateway_certificate/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_gateway_certificate/data_source_model.go b/internal/services/zero_trust_gateway_certificate/data_source_model.go index c172bc943c..2ef2afeceb 100644 --- a/internal/services/zero_trust_gateway_certificate/data_source_model.go +++ b/internal/services/zero_trust_gateway_certificate/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_gateway_certificate/list_data_source.go b/internal/services/zero_trust_gateway_certificate/list_data_source.go index b95d699e6f..4ffe4afb55 100644 --- a/internal/services/zero_trust_gateway_certificate/list_data_source.go +++ b/internal/services/zero_trust_gateway_certificate/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_gateway_certificate/list_data_source_model.go b/internal/services/zero_trust_gateway_certificate/list_data_source_model.go index 45f8060fef..2f2ea4968f 100644 --- a/internal/services/zero_trust_gateway_certificate/list_data_source_model.go +++ b/internal/services/zero_trust_gateway_certificate/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_certificate import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_gateway_certificate/resource.go b/internal/services/zero_trust_gateway_certificate/resource.go index e7fcb7794e..bc418e584f 100644 --- a/internal/services/zero_trust_gateway_certificate/resource.go +++ b/internal/services/zero_trust_gateway_certificate/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_gateway_policy/data_source.go b/internal/services/zero_trust_gateway_policy/data_source.go index 12b559f7ad..ade884c9d6 100644 --- a/internal/services/zero_trust_gateway_policy/data_source.go +++ b/internal/services/zero_trust_gateway_policy/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_gateway_policy/data_source_model.go b/internal/services/zero_trust_gateway_policy/data_source_model.go index e32ecf9545..c0395adeed 100644 --- a/internal/services/zero_trust_gateway_policy/data_source_model.go +++ b/internal/services/zero_trust_gateway_policy/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_policy import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_gateway_policy/list_data_source.go b/internal/services/zero_trust_gateway_policy/list_data_source.go index 52198a6deb..41305c405e 100644 --- a/internal/services/zero_trust_gateway_policy/list_data_source.go +++ b/internal/services/zero_trust_gateway_policy/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_gateway_policy/list_data_source_model.go b/internal/services/zero_trust_gateway_policy/list_data_source_model.go index 9563862748..bc7ce9bd47 100644 --- a/internal/services/zero_trust_gateway_policy/list_data_source_model.go +++ b/internal/services/zero_trust_gateway_policy/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_policy import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_gateway_policy/resource.go b/internal/services/zero_trust_gateway_policy/resource.go index 36746fa3f0..b8aed439da 100644 --- a/internal/services/zero_trust_gateway_policy/resource.go +++ b/internal/services/zero_trust_gateway_policy/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_gateway_proxy_endpoint/data_source.go b/internal/services/zero_trust_gateway_proxy_endpoint/data_source.go index 4c9bb9361a..96e6b48ff9 100644 --- a/internal/services/zero_trust_gateway_proxy_endpoint/data_source.go +++ b/internal/services/zero_trust_gateway_proxy_endpoint/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_gateway_proxy_endpoint/data_source_model.go b/internal/services/zero_trust_gateway_proxy_endpoint/data_source_model.go index cad2b1f72e..b52a3894fb 100644 --- a/internal/services/zero_trust_gateway_proxy_endpoint/data_source_model.go +++ b/internal/services/zero_trust_gateway_proxy_endpoint/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_proxy_endpoint import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/zero_trust_gateway_proxy_endpoint/resource.go b/internal/services/zero_trust_gateway_proxy_endpoint/resource.go index 6787c68149..c1420275dc 100644 --- a/internal/services/zero_trust_gateway_proxy_endpoint/resource.go +++ b/internal/services/zero_trust_gateway_proxy_endpoint/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_gateway_settings/data_source.go b/internal/services/zero_trust_gateway_settings/data_source.go index ef9b56a973..554220e9cf 100644 --- a/internal/services/zero_trust_gateway_settings/data_source.go +++ b/internal/services/zero_trust_gateway_settings/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_gateway_settings/data_source_model.go b/internal/services/zero_trust_gateway_settings/data_source_model.go index a3bbf33964..ff3f437a24 100644 --- a/internal/services/zero_trust_gateway_settings/data_source_model.go +++ b/internal/services/zero_trust_gateway_settings/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_gateway_settings import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_gateway_settings/resource.go b/internal/services/zero_trust_gateway_settings/resource.go index 725e14cd75..acc760513c 100644 --- a/internal/services/zero_trust_gateway_settings/resource.go +++ b/internal/services/zero_trust_gateway_settings/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_list/data_source.go b/internal/services/zero_trust_list/data_source.go index d2408c0738..489e8edc35 100644 --- a/internal/services/zero_trust_list/data_source.go +++ b/internal/services/zero_trust_list/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_list/data_source_model.go b/internal/services/zero_trust_list/data_source_model.go index d65846a2bc..11eba53d02 100644 --- a/internal/services/zero_trust_list/data_source_model.go +++ b/internal/services/zero_trust_list/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_list import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_list/list_data_source.go b/internal/services/zero_trust_list/list_data_source.go index 76768475c8..f9da4e7b24 100644 --- a/internal/services/zero_trust_list/list_data_source.go +++ b/internal/services/zero_trust_list/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_list/list_data_source_model.go b/internal/services/zero_trust_list/list_data_source_model.go index 1f14a8fc07..e445f38794 100644 --- a/internal/services/zero_trust_list/list_data_source_model.go +++ b/internal/services/zero_trust_list/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_list import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_list/resource.go b/internal/services/zero_trust_list/resource.go index 32496d272d..d885621b12 100644 --- a/internal/services/zero_trust_list/resource.go +++ b/internal/services/zero_trust_list/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_organization/data_source.go b/internal/services/zero_trust_organization/data_source.go index d252eb6b48..147a433030 100644 --- a/internal/services/zero_trust_organization/data_source.go +++ b/internal/services/zero_trust_organization/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_organization/data_source_model.go b/internal/services/zero_trust_organization/data_source_model.go index ffb3f05ec1..ea74a802c7 100644 --- a/internal/services/zero_trust_organization/data_source_model.go +++ b/internal/services/zero_trust_organization/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_organization import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_organization/resource.go b/internal/services/zero_trust_organization/resource.go index cef53c9d3d..46bc4adfef 100644 --- a/internal/services/zero_trust_organization/resource.go +++ b/internal/services/zero_trust_organization/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/zero_trust_risk_behavior/data_source.go b/internal/services/zero_trust_risk_behavior/data_source.go index c763ddc692..26ed7f8526 100644 --- a/internal/services/zero_trust_risk_behavior/data_source.go +++ b/internal/services/zero_trust_risk_behavior/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_risk_behavior/data_source_model.go b/internal/services/zero_trust_risk_behavior/data_source_model.go index 49c3b241e4..faa6fbb09c 100644 --- a/internal/services/zero_trust_risk_behavior/data_source_model.go +++ b/internal/services/zero_trust_risk_behavior/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_risk_behavior import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zero_trust_risk_behavior/resource.go b/internal/services/zero_trust_risk_behavior/resource.go index 5a09f86911..c3eaad361e 100644 --- a/internal/services/zero_trust_risk_behavior/resource.go +++ b/internal/services/zero_trust_risk_behavior/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/zero_trust_risk_scoring_integration/data_source.go b/internal/services/zero_trust_risk_scoring_integration/data_source.go index 5ff01dfeb4..3c4c32f9ca 100644 --- a/internal/services/zero_trust_risk_scoring_integration/data_source.go +++ b/internal/services/zero_trust_risk_scoring_integration/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_risk_scoring_integration/data_source_model.go b/internal/services/zero_trust_risk_scoring_integration/data_source_model.go index 2c01da29de..b3b1420283 100644 --- a/internal/services/zero_trust_risk_scoring_integration/data_source_model.go +++ b/internal/services/zero_trust_risk_scoring_integration/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_risk_scoring_integration import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_risk_scoring_integration/list_data_source.go b/internal/services/zero_trust_risk_scoring_integration/list_data_source.go index 2d2b75066e..a75cb58914 100644 --- a/internal/services/zero_trust_risk_scoring_integration/list_data_source.go +++ b/internal/services/zero_trust_risk_scoring_integration/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_risk_scoring_integration/list_data_source_model.go b/internal/services/zero_trust_risk_scoring_integration/list_data_source_model.go index 27f129a71b..8b0f99331c 100644 --- a/internal/services/zero_trust_risk_scoring_integration/list_data_source_model.go +++ b/internal/services/zero_trust_risk_scoring_integration/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_risk_scoring_integration import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_risk_scoring_integration/resource.go b/internal/services/zero_trust_risk_scoring_integration/resource.go index 1681db3392..7c1802a52d 100644 --- a/internal/services/zero_trust_risk_scoring_integration/resource.go +++ b/internal/services/zero_trust_risk_scoring_integration/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_tunnel_cloudflared/data_source.go b/internal/services/zero_trust_tunnel_cloudflared/data_source.go index 11797a8f3b..4bb2e3caea 100644 --- a/internal/services/zero_trust_tunnel_cloudflared/data_source.go +++ b/internal/services/zero_trust_tunnel_cloudflared/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_tunnel_cloudflared/data_source_model.go b/internal/services/zero_trust_tunnel_cloudflared/data_source_model.go index c0ec8a5dfe..9502003cce 100644 --- a/internal/services/zero_trust_tunnel_cloudflared/data_source_model.go +++ b/internal/services/zero_trust_tunnel_cloudflared/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_tunnel_cloudflared import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/zero_trust_tunnel_cloudflared/list_data_source.go b/internal/services/zero_trust_tunnel_cloudflared/list_data_source.go index 2c460cb66c..4bd959443b 100644 --- a/internal/services/zero_trust_tunnel_cloudflared/list_data_source.go +++ b/internal/services/zero_trust_tunnel_cloudflared/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_tunnel_cloudflared/list_data_source_model.go b/internal/services/zero_trust_tunnel_cloudflared/list_data_source_model.go index 343de8414d..c4fe0850af 100644 --- a/internal/services/zero_trust_tunnel_cloudflared/list_data_source_model.go +++ b/internal/services/zero_trust_tunnel_cloudflared/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_tunnel_cloudflared import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" diff --git a/internal/services/zero_trust_tunnel_cloudflared/resource.go b/internal/services/zero_trust_tunnel_cloudflared/resource.go index 2345f6a5d9..1b825ba83c 100644 --- a/internal/services/zero_trust_tunnel_cloudflared/resource.go +++ b/internal/services/zero_trust_tunnel_cloudflared/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_tunnel_cloudflared_config/data_source.go b/internal/services/zero_trust_tunnel_cloudflared_config/data_source.go index 4fb5d72989..0c5914ccd4 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_config/data_source.go +++ b/internal/services/zero_trust_tunnel_cloudflared_config/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_tunnel_cloudflared_config/data_source_model.go b/internal/services/zero_trust_tunnel_cloudflared_config/data_source_model.go index 329441ae8f..45b48fdf52 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_config/data_source_model.go +++ b/internal/services/zero_trust_tunnel_cloudflared_config/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_tunnel_cloudflared_config import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_tunnel_cloudflared_config/resource.go b/internal/services/zero_trust_tunnel_cloudflared_config/resource.go index 973609f7d4..8b48b5c92b 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_config/resource.go +++ b/internal/services/zero_trust_tunnel_cloudflared_config/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_tunnel_cloudflared_route/data_source.go b/internal/services/zero_trust_tunnel_cloudflared_route/data_source.go index f8bc2c0967..c3818bffe7 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_route/data_source.go +++ b/internal/services/zero_trust_tunnel_cloudflared_route/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_tunnel_cloudflared_route/data_source_model.go b/internal/services/zero_trust_tunnel_cloudflared_route/data_source_model.go index 87a5d9b732..dd4df297c3 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_route/data_source_model.go +++ b/internal/services/zero_trust_tunnel_cloudflared_route/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_tunnel_cloudflared_route import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_tunnel_cloudflared_route/list_data_source.go b/internal/services/zero_trust_tunnel_cloudflared_route/list_data_source.go index 95e0db4779..1ed1525661 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_route/list_data_source.go +++ b/internal/services/zero_trust_tunnel_cloudflared_route/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_tunnel_cloudflared_route/list_data_source_model.go b/internal/services/zero_trust_tunnel_cloudflared_route/list_data_source_model.go index 1f85446a09..c94239d46c 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_route/list_data_source_model.go +++ b/internal/services/zero_trust_tunnel_cloudflared_route/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_tunnel_cloudflared_route import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_tunnel_cloudflared_route/resource.go b/internal/services/zero_trust_tunnel_cloudflared_route/resource.go index d846959e0f..817e8c90ac 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_route/resource.go +++ b/internal/services/zero_trust_tunnel_cloudflared_route/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/data_source.go b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/data_source.go index b28d50415c..8158532d56 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/data_source.go +++ b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/data_source_model.go b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/data_source_model.go index ae21bd6230..ed1e96b478 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/data_source_model.go +++ b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_tunnel_cloudflared_virtual_network import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/list_data_source.go b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/list_data_source.go index 8b3aee0653..101e131d5c 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/list_data_source.go +++ b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/list_data_source_model.go b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/list_data_source_model.go index 2061bb043b..e84cf4b19e 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/list_data_source_model.go +++ b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/list_data_source_model.go @@ -5,8 +5,8 @@ package zero_trust_tunnel_cloudflared_virtual_network import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/resource.go b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/resource.go index 4551e8a7ed..777b067094 100644 --- a/internal/services/zero_trust_tunnel_cloudflared_virtual_network/resource.go +++ b/internal/services/zero_trust_tunnel_cloudflared_virtual_network/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zero_trust" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zero_trust" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zone/data_source.go b/internal/services/zone/data_source.go index 63eae55dd7..590f247c1b 100644 --- a/internal/services/zone/data_source.go +++ b/internal/services/zone/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zone/data_source_model.go b/internal/services/zone/data_source_model.go index 5464432b66..906b649103 100644 --- a/internal/services/zone/data_source_model.go +++ b/internal/services/zone/data_source_model.go @@ -5,8 +5,8 @@ package zone import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zones" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zones" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zone/list_data_source.go b/internal/services/zone/list_data_source.go index c8e2948d1b..0f96aba18f 100644 --- a/internal/services/zone/list_data_source.go +++ b/internal/services/zone/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zone/list_data_source_model.go b/internal/services/zone/list_data_source_model.go index 44bffeee03..ab75820f27 100644 --- a/internal/services/zone/list_data_source_model.go +++ b/internal/services/zone/list_data_source_model.go @@ -5,8 +5,8 @@ package zone import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zones" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zones" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zone/resource.go b/internal/services/zone/resource.go index 6b949b18dd..1a61bffaf9 100644 --- a/internal/services/zone/resource.go +++ b/internal/services/zone/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zones" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zones" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zone_cache_reserve/data_source.go b/internal/services/zone_cache_reserve/data_source.go index e08339cbca..86622847f2 100644 --- a/internal/services/zone_cache_reserve/data_source.go +++ b/internal/services/zone_cache_reserve/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zone_cache_reserve/data_source_model.go b/internal/services/zone_cache_reserve/data_source_model.go index edfd753518..9ea534de42 100644 --- a/internal/services/zone_cache_reserve/data_source_model.go +++ b/internal/services/zone_cache_reserve/data_source_model.go @@ -5,8 +5,8 @@ package zone_cache_reserve import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cache" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cache" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zone_cache_reserve/resource.go b/internal/services/zone_cache_reserve/resource.go index 5d308489d6..b5fcd67a44 100644 --- a/internal/services/zone_cache_reserve/resource.go +++ b/internal/services/zone_cache_reserve/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cache" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cache" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zone_cache_variants/data_source.go b/internal/services/zone_cache_variants/data_source.go index 40d4833f8d..5a3703478b 100644 --- a/internal/services/zone_cache_variants/data_source.go +++ b/internal/services/zone_cache_variants/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zone_cache_variants/data_source_model.go b/internal/services/zone_cache_variants/data_source_model.go index 380e1a41f1..b0441145fe 100644 --- a/internal/services/zone_cache_variants/data_source_model.go +++ b/internal/services/zone_cache_variants/data_source_model.go @@ -5,8 +5,8 @@ package zone_cache_variants import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cache" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cache" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zone_cache_variants/resource.go b/internal/services/zone_cache_variants/resource.go index ed3b4299a1..2d4fbc91b0 100644 --- a/internal/services/zone_cache_variants/resource.go +++ b/internal/services/zone_cache_variants/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/cache" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/cache" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zone_dnssec/custom.go b/internal/services/zone_dnssec/custom.go index 881037e20e..9a00f843d5 100644 --- a/internal/services/zone_dnssec/custom.go +++ b/internal/services/zone_dnssec/custom.go @@ -3,9 +3,9 @@ package zone_dnssec import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" ) diff --git a/internal/services/zone_dnssec/data_source.go b/internal/services/zone_dnssec/data_source.go index 82128cd547..61e6b041cb 100644 --- a/internal/services/zone_dnssec/data_source.go +++ b/internal/services/zone_dnssec/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zone_dnssec/data_source_model.go b/internal/services/zone_dnssec/data_source_model.go index 0f15048902..698f6f46c6 100644 --- a/internal/services/zone_dnssec/data_source_model.go +++ b/internal/services/zone_dnssec/data_source_model.go @@ -5,8 +5,8 @@ package zone_dnssec import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zone_dnssec/resource.go b/internal/services/zone_dnssec/resource.go index 8b27d9b721..a5d8647fb1 100644 --- a/internal/services/zone_dnssec/resource.go +++ b/internal/services/zone_dnssec/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/dns" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/dns" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zone_hold/data_source.go b/internal/services/zone_hold/data_source.go index 04de9a9892..1207d1aa49 100644 --- a/internal/services/zone_hold/data_source.go +++ b/internal/services/zone_hold/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zone_hold/data_source_model.go b/internal/services/zone_hold/data_source_model.go index b8672bb6fb..3a5220f8c9 100644 --- a/internal/services/zone_hold/data_source_model.go +++ b/internal/services/zone_hold/data_source_model.go @@ -5,8 +5,8 @@ package zone_hold import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zones" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zones" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/services/zone_hold/resource.go b/internal/services/zone_hold/resource.go index 244c1f6cab..f4745d60c3 100644 --- a/internal/services/zone_hold/resource.go +++ b/internal/services/zone_hold/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zones" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zones" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zone_lockdown/data_source.go b/internal/services/zone_lockdown/data_source.go index 3e97da7ce2..ce3a939db8 100644 --- a/internal/services/zone_lockdown/data_source.go +++ b/internal/services/zone_lockdown/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zone_lockdown/data_source_model.go b/internal/services/zone_lockdown/data_source_model.go index cd19309cce..db27c52e6a 100644 --- a/internal/services/zone_lockdown/data_source_model.go +++ b/internal/services/zone_lockdown/data_source_model.go @@ -5,8 +5,8 @@ package zone_lockdown import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zone_lockdown/list_data_source.go b/internal/services/zone_lockdown/list_data_source.go index c488cfe3ae..0e4904dce5 100644 --- a/internal/services/zone_lockdown/list_data_source.go +++ b/internal/services/zone_lockdown/list_data_source.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/cloudflare/cloudflare-go/v3" + "github.com/cloudflare/cloudflare-go/v4" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/internal/services/zone_lockdown/list_data_source_model.go b/internal/services/zone_lockdown/list_data_source_model.go index 5a0a19b851..47d1e7590e 100644 --- a/internal/services/zone_lockdown/list_data_source_model.go +++ b/internal/services/zone_lockdown/list_data_source_model.go @@ -5,8 +5,8 @@ package zone_lockdown import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" "github.com/cloudflare/terraform-provider-cloudflare/internal/customfield" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/zone_lockdown/resource.go b/internal/services/zone_lockdown/resource.go index 2f2e217289..8dd16db946 100644 --- a/internal/services/zone_lockdown/resource.go +++ b/internal/services/zone_lockdown/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/firewall" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/firewall" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zone_setting/data_source.go b/internal/services/zone_setting/data_source.go index 2512dc73b7..003ebe0381 100644 --- a/internal/services/zone_setting/data_source.go +++ b/internal/services/zone_setting/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zone_setting/data_source_model.go b/internal/services/zone_setting/data_source_model.go index e2f67793fc..2f371856ba 100644 --- a/internal/services/zone_setting/data_source_model.go +++ b/internal/services/zone_setting/data_source_model.go @@ -5,8 +5,8 @@ package zone_setting import ( "context" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/zones" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/zones" "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/services/zone_setting/resource.go b/internal/services/zone_setting/resource.go index f3be718eaa..242b88c997 100644 --- a/internal/services/zone_setting/resource.go +++ b/internal/services/zone_setting/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zones" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zones" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/importpath" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" diff --git a/internal/services/zone_subscription/data_source.go b/internal/services/zone_subscription/data_source.go index 359725eb5b..275f92f418 100644 --- a/internal/services/zone_subscription/data_source.go +++ b/internal/services/zone_subscription/data_source.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/datasource" diff --git a/internal/services/zone_subscription/resource.go b/internal/services/zone_subscription/resource.go index 93b9490eaa..7db1bfdca5 100644 --- a/internal/services/zone_subscription/resource.go +++ b/internal/services/zone_subscription/resource.go @@ -8,9 +8,9 @@ import ( "io" "net/http" - "github.com/cloudflare/cloudflare-go/v3" - "github.com/cloudflare/cloudflare-go/v3/option" - "github.com/cloudflare/cloudflare-go/v3/zones" + "github.com/cloudflare/cloudflare-go/v4" + "github.com/cloudflare/cloudflare-go/v4/option" + "github.com/cloudflare/cloudflare-go/v4/zones" "github.com/cloudflare/terraform-provider-cloudflare/internal/apijson" "github.com/cloudflare/terraform-provider-cloudflare/internal/logging" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/scripts/bootstrap b/scripts/bootstrap index df7ee26716..ed03e527a4 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -13,7 +13,4 @@ fi echo "==> Installing Go dependencies…" -# pull in cloudflare-go@next until we cut a fresh release -go get github.com/cloudflare/cloudflare-go/v3@next - go mod tidy diff --git a/scripts/link b/scripts/link index 09511e4f0f..78523f3d49 100755 --- a/scripts/link +++ b/scripts/link @@ -13,4 +13,4 @@ fi echo "==> Linking with local directory" go mod tidy -e -go mod edit -replace github.com/cloudflare/cloudflare-go/v3="$LOCAL_GO" +go mod edit -replace github.com/cloudflare/cloudflare-go/v4="$LOCAL_GO" diff --git a/scripts/unlink b/scripts/unlink index d7e337d18a..9e5734e848 100755 --- a/scripts/unlink +++ b/scripts/unlink @@ -5,4 +5,4 @@ set -e cd "$(dirname "$0")/.." echo "==> Unlinking with local directory" -go mod edit -dropreplace github.com/cloudflare/cloudflare-go/v3 +go mod edit -dropreplace github.com/cloudflare/cloudflare-go/v4