From 59b47aa5b62d8ce0aba2d7ec6cdf45c7886b5d37 Mon Sep 17 00:00:00 2001 From: Scott Suarez Date: Mon, 3 Feb 2025 14:09:43 -0800 Subject: [PATCH] add missing sweeper regions (#12951) --- mmv1/products/apphub/Application.yaml | 5 +++++ mmv1/products/artifactregistry/Repository.yaml | 4 ++++ mmv1/products/biglake/Catalog.yaml | 3 +++ .../bigqueryanalyticshub/DataExchange.yaml | 3 +++ mmv1/products/bigqueryconnection/Connection.yaml | 6 ++++++ .../bigqueryreservation/CapacityCommitment.yaml | 3 +++ mmv1/products/certificatemanager/Certificate.yaml | 7 +++++++ .../certificatemanager/DnsAuthorization.yaml | 4 ++++ mmv1/products/certificatemanager/TrustConfig.yaml | 4 ++++ mmv1/products/cloudbuild/Trigger.yaml | 4 ++++ mmv1/products/cloudbuildv2/Connection.yaml | 4 ++++ mmv1/products/cloudfunctions2/Function.yaml | 5 +++++ mmv1/products/cloudrun/Service.yaml | 5 +++++ mmv1/products/compute/Address.yaml | 7 +++++++ mmv1/products/compute/ForwardingRule.yaml | 7 +++++++ mmv1/products/compute/RegionBackendService.yaml | 7 +++++++ mmv1/products/compute/RegionHealthCheck.yaml | 6 ++++++ .../compute/RegionNetworkEndpointGroup.yaml | 5 +++++ .../RegionNetworkFirewallPolicyWithRules.yaml | 3 +++ mmv1/products/compute/RegionSecurityPolicy.yaml | 9 +++++++++ mmv1/products/compute/RegionTargetHttpProxy.yaml | 5 +++++ mmv1/products/compute/RegionTargetTcpProxy.yaml | 4 ++++ mmv1/products/compute/RegionUrlMap.yaml | 5 +++++ mmv1/products/compute/ResourcePolicy.yaml | 5 +++++ mmv1/products/compute/Router.yaml | 5 +++++ mmv1/products/compute/ServiceAttachment.yaml | 6 ++++++ mmv1/products/compute/Subnetwork.yaml | 10 ++++++++++ mmv1/products/dataprocgdc/ServiceInstance.yaml | 3 +++ mmv1/products/dialogflowcx/SecuritySettings.yaml | 3 +++ mmv1/products/discoveryengine/DataStore.yaml | 4 ++++ mmv1/products/documentai/Processor.yaml | 4 ++++ mmv1/products/filestore/Instance.yaml | 6 ++++++ mmv1/products/gkeonprem/BareMetalCluster.yaml | 3 +++ mmv1/products/gkeonprem/VmwareCluster.yaml | 3 +++ mmv1/products/iamworkforcepool/WorkforcePool.yaml | 3 +++ mmv1/products/integrations/AuthConfig.yaml | 12 ++++++++++++ mmv1/products/integrations/Client.yaml | 14 ++++++++++++++ .../ServiceConnectionPolicy.yaml | 5 +++++ mmv1/products/networkconnectivity/Spoke.yaml | 4 ++++ .../networkmanagement/VpcFlowLogsConfig.yaml | 3 +++ mmv1/products/networksecurity/AuthzPolicy.yaml | 3 +++ .../networksecurity/GatewaySecurityPolicy.yaml | 7 +++++++ .../networksecurity/InterceptDeployment.yaml | 3 +++ .../networksecurity/InterceptDeploymentGroup.yaml | 3 +++ .../networksecurity/InterceptEndpointGroup.yaml | 3 +++ .../InterceptEndpointGroupAssociation.yaml | 3 +++ .../networksecurity/MirroringDeployment.yaml | 3 +++ .../networksecurity/MirroringDeploymentGroup.yaml | 3 +++ .../networksecurity/MirroringEndpointGroup.yaml | 3 +++ .../MirroringEndpointGroupAssociation.yaml | 3 +++ mmv1/products/networksecurity/ServerTlsPolicy.yaml | 4 ++++ mmv1/products/networkservices/AuthzExtension.yaml | 3 +++ .../products/networkservices/LbRouteExtension.yaml | 3 +++ .../networkservices/LbTrafficExtension.yaml | 3 +++ .../networkservices/ServiceLbPolicies.yaml | 3 +++ mmv1/products/notebooks/Environment.yaml | 3 +++ mmv1/products/notebooks/Instance.yaml | 4 ++++ mmv1/products/parallelstore/Instance.yaml | 3 +++ mmv1/products/redis/Cluster.yaml | 5 +++++ .../securitycenterv2/ProjectMuteConfig.yaml | 3 +++ .../ProjectNotificationConfig.yaml | 3 +++ .../securitycenterv2/ProjectSccBigQueryExport.yaml | 3 +++ mmv1/products/workbench/Instance.yaml | 4 ++++ 63 files changed, 286 insertions(+) diff --git a/mmv1/products/apphub/Application.yaml b/mmv1/products/apphub/Application.yaml index cde922521370..4e0ebb42ea15 100644 --- a/mmv1/products/apphub/Application.yaml +++ b/mmv1/products/apphub/Application.yaml @@ -40,6 +40,11 @@ custom_code: constants: 'templates/terraform/constants/apphub_application.go.tmpl' custom_diff: - 'apphubApplicationCustomizeDiff' +sweeper: + regions: + - "us-central1" + - "us-east1" + - "global" examples: - name: 'apphub_application_basic' primary_resource_id: 'example' diff --git a/mmv1/products/artifactregistry/Repository.yaml b/mmv1/products/artifactregistry/Repository.yaml index 34761870a4a7..fe602651a8d4 100644 --- a/mmv1/products/artifactregistry/Repository.yaml +++ b/mmv1/products/artifactregistry/Repository.yaml @@ -54,6 +54,10 @@ custom_code: constants: 'templates/terraform/constants/artifact_registry_repository.go.tmpl' encoder: 'templates/terraform/encoders/location_from_region.go.tmpl' pre_create: 'templates/terraform/pre_create/artifact_registry_remote_repository.go.tmpl' +sweeper: + regions: + - "us-central1" + - "us" examples: - name: 'artifact_registry_repository_basic' primary_resource_id: 'my-repo' diff --git a/mmv1/products/biglake/Catalog.yaml b/mmv1/products/biglake/Catalog.yaml index 4d14cc3cd65d..fd4ec4f0f3b1 100644 --- a/mmv1/products/biglake/Catalog.yaml +++ b/mmv1/products/biglake/Catalog.yaml @@ -29,6 +29,9 @@ timeouts: update_minutes: 20 delete_minutes: 20 custom_code: +sweeper: + regions: + - "US" examples: - name: 'bigquery_biglake_catalog' primary_resource_id: 'default' diff --git a/mmv1/products/bigqueryanalyticshub/DataExchange.yaml b/mmv1/products/bigqueryanalyticshub/DataExchange.yaml index 4677a3699c5f..7c415c637f17 100644 --- a/mmv1/products/bigqueryanalyticshub/DataExchange.yaml +++ b/mmv1/products/bigqueryanalyticshub/DataExchange.yaml @@ -41,6 +41,9 @@ iam_policy: - 'projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}}' - '{{data_exchange_id}}' custom_code: +sweeper: + regions: + - "US" examples: - name: 'bigquery_analyticshub_data_exchange_basic' primary_resource_id: 'data_exchange' diff --git a/mmv1/products/bigqueryconnection/Connection.yaml b/mmv1/products/bigqueryconnection/Connection.yaml index f212a1359483..4b7d723f4684 100644 --- a/mmv1/products/bigqueryconnection/Connection.yaml +++ b/mmv1/products/bigqueryconnection/Connection.yaml @@ -45,6 +45,12 @@ iam_policy: custom_code: encoder: 'templates/terraform/encoders/bigquery_connection.go.tmpl' post_create: 'templates/terraform/post_create/bigquery_connection_id.go.tmpl' +sweeper: + regions: + - "US" + - "EU" + - "aws-us-east-1" + - "azure-eastus2" examples: - name: 'bigquery_connection_cloud_resource' primary_resource_id: 'connection' diff --git a/mmv1/products/bigqueryreservation/CapacityCommitment.yaml b/mmv1/products/bigqueryreservation/CapacityCommitment.yaml index 48d07d80b798..77d6aa008147 100644 --- a/mmv1/products/bigqueryreservation/CapacityCommitment.yaml +++ b/mmv1/products/bigqueryreservation/CapacityCommitment.yaml @@ -37,6 +37,9 @@ timeouts: custom_code: constants: 'templates/terraform/constants/bigquery_reservation_capacity_commitment.go.tmpl' custom_import: 'templates/terraform/custom_import/bigquery_reservation_capacity_commitment_set_id.go.tmpl' +sweeper: + regions: + - "us-west2" examples: - name: 'bigquery_reservation_capacity_commitment_basic' primary_resource_id: 'commitment' diff --git a/mmv1/products/certificatemanager/Certificate.yaml b/mmv1/products/certificatemanager/Certificate.yaml index cbd76d526496..a6208153e20a 100644 --- a/mmv1/products/certificatemanager/Certificate.yaml +++ b/mmv1/products/certificatemanager/Certificate.yaml @@ -40,6 +40,13 @@ custom_code: constants: 'templates/terraform/constants/cert_manager.tmpl' schema_version: 1 state_upgraders: true +sweeper: + regions: + - "us-central1" + - "us-east1" + - "us-south1" + - "us-west1" + - "us-west2" examples: - name: 'certificate_manager_google_managed_certificate_dns' primary_resource_id: 'default' diff --git a/mmv1/products/certificatemanager/DnsAuthorization.yaml b/mmv1/products/certificatemanager/DnsAuthorization.yaml index 36b53b8ac0ec..27f95637eb48 100644 --- a/mmv1/products/certificatemanager/DnsAuthorization.yaml +++ b/mmv1/products/certificatemanager/DnsAuthorization.yaml @@ -38,6 +38,10 @@ async: custom_code: schema_version: 1 state_upgraders: true +sweeper: + regions: + - "global" + - "us-central1" examples: - name: 'certificate_manager_dns_authorization_basic' primary_resource_id: 'default' diff --git a/mmv1/products/certificatemanager/TrustConfig.yaml b/mmv1/products/certificatemanager/TrustConfig.yaml index 7cff05cba687..1c7c4e9a419b 100644 --- a/mmv1/products/certificatemanager/TrustConfig.yaml +++ b/mmv1/products/certificatemanager/TrustConfig.yaml @@ -40,6 +40,10 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "global" + - "us-central1" examples: - name: 'certificate_manager_trust_config' primary_resource_id: 'default' diff --git a/mmv1/products/cloudbuild/Trigger.yaml b/mmv1/products/cloudbuild/Trigger.yaml index 68350ea563dd..88a95683d475 100644 --- a/mmv1/products/cloudbuild/Trigger.yaml +++ b/mmv1/products/cloudbuild/Trigger.yaml @@ -46,6 +46,10 @@ custom_diff: - 'stepTimeoutCustomizeDiff' schema_version: 2 state_upgraders: true +sweeper: + regions: + - "us-central1" + - "global" examples: - name: 'cloudbuild_trigger_filename' primary_resource_id: 'filename-trigger' diff --git a/mmv1/products/cloudbuildv2/Connection.yaml b/mmv1/products/cloudbuildv2/Connection.yaml index 205195397bcf..c0af93f533c3 100644 --- a/mmv1/products/cloudbuildv2/Connection.yaml +++ b/mmv1/products/cloudbuildv2/Connection.yaml @@ -49,6 +49,10 @@ iam_policy: custom_code: exclude_tgc: true legacy_long_form_project: true +sweeper: + regions: + - "us-west1" + - "us-central1" examples: - name: 'cloudbuildv2_connection' primary_resource_id: 'my-connection' diff --git a/mmv1/products/cloudfunctions2/Function.yaml b/mmv1/products/cloudfunctions2/Function.yaml index 2bb24141a557..0c198ffe69b8 100644 --- a/mmv1/products/cloudfunctions2/Function.yaml +++ b/mmv1/products/cloudfunctions2/Function.yaml @@ -56,6 +56,11 @@ custom_code: constants: 'templates/terraform/constants/cloudfunctions2_function.go.tmpl' encoder: 'templates/terraform/encoders/cloudfunctions2_runtime_update_policy.go.tmpl' taint_resource_on_failed_create: true +sweeper: + regions: + - "us-central1" + - "us-west1" + - "europe-west6" examples: - name: 'cloudfunctions2_basic' primary_resource_id: 'function' diff --git a/mmv1/products/cloudrun/Service.yaml b/mmv1/products/cloudrun/Service.yaml index 9e726b4a36d8..89f3f685b90a 100644 --- a/mmv1/products/cloudrun/Service.yaml +++ b/mmv1/products/cloudrun/Service.yaml @@ -60,6 +60,11 @@ error_retry_predicates: schema_version: 2 state_upgrade_base_schema_version: 1 state_upgraders: true +sweeper: + regions: + - "us-central1" + - "europe-west1" + - "europe-north1" examples: - name: 'cloud_run_service_basic' primary_resource_id: 'default' diff --git a/mmv1/products/compute/Address.yaml b/mmv1/products/compute/Address.yaml index a5df36000b4b..5fa41fa327df 100644 --- a/mmv1/products/compute/Address.yaml +++ b/mmv1/products/compute/Address.yaml @@ -51,6 +51,13 @@ async: collection_url_key: 'items' custom_code: post_create: 'templates/terraform/post_create/labels.tmpl' +sweeper: + regions: + - "us-west1" + - "us-west2" + - "us-central1" + - "us-east1" + - "europe-west1" examples: - name: 'address_basic' primary_resource_id: 'ip_address' diff --git a/mmv1/products/compute/ForwardingRule.yaml b/mmv1/products/compute/ForwardingRule.yaml index e1e83cc44341..7830a1ccb266 100644 --- a/mmv1/products/compute/ForwardingRule.yaml +++ b/mmv1/products/compute/ForwardingRule.yaml @@ -47,6 +47,13 @@ custom_code: custom_diff: - 'forwardingRuleCustomizeDiff' legacy_long_form_project: true +sweeper: + regions: + - "us-west2" + - "us-central1" + - "europe-west1" + - "europe-west4" + - "us-west1" examples: - name: 'internal_http_lb_with_mig_backend' primary_resource_id: 'google_compute_forwarding_rule' diff --git a/mmv1/products/compute/RegionBackendService.yaml b/mmv1/products/compute/RegionBackendService.yaml index cfb7ba08c9d8..68123b67f089 100644 --- a/mmv1/products/compute/RegionBackendService.yaml +++ b/mmv1/products/compute/RegionBackendService.yaml @@ -52,6 +52,13 @@ custom_diff: - 'customDiffRegionBackendService' schema_version: 1 migrate_state: 'tpgresource.MigrateStateNoop' +sweeper: + regions: + - "us-west1" + - "us-west2" + - "us-central1" + - "europe-west1" + - "europe-west4" examples: - name: 'region_backend_service_basic' primary_resource_id: 'default' diff --git a/mmv1/products/compute/RegionHealthCheck.yaml b/mmv1/products/compute/RegionHealthCheck.yaml index ee4539a3f069..d49a1e29bfa9 100644 --- a/mmv1/products/compute/RegionHealthCheck.yaml +++ b/mmv1/products/compute/RegionHealthCheck.yaml @@ -50,6 +50,12 @@ custom_code: encoder: 'templates/terraform/encoders/health_check_type.tmpl' custom_diff: - 'healthCheckCustomizeDiff' +sweeper: + regions: + - "europe-west1" + - "us-central1" + - "europe-west4" + - "us-west1" examples: - name: 'region_health_check_tcp' primary_resource_id: 'tcp-region-health-check' diff --git a/mmv1/products/compute/RegionNetworkEndpointGroup.yaml b/mmv1/products/compute/RegionNetworkEndpointGroup.yaml index cd8273905e6f..d35fd5b42106 100644 --- a/mmv1/products/compute/RegionNetworkEndpointGroup.yaml +++ b/mmv1/products/compute/RegionNetworkEndpointGroup.yaml @@ -44,6 +44,11 @@ async: resource_inside_response: false collection_url_key: 'items' custom_code: +sweeper: + regions: + - "us-central1" + - "asia-northeast3" + - "europe-west4" examples: - name: 'region_network_endpoint_group_functions' primary_resource_id: 'function_neg' diff --git a/mmv1/products/compute/RegionNetworkFirewallPolicyWithRules.yaml b/mmv1/products/compute/RegionNetworkFirewallPolicyWithRules.yaml index f22c2c50c0b4..b24614000bc6 100644 --- a/mmv1/products/compute/RegionNetworkFirewallPolicyWithRules.yaml +++ b/mmv1/products/compute/RegionNetworkFirewallPolicyWithRules.yaml @@ -39,6 +39,9 @@ custom_code: decoder: 'templates/terraform/decoders/resource_compute_region_network_firewall_policy_with_rules.go.tmpl' post_create: 'templates/terraform/post_create/resource_compute_region_network_firewall_policy_with_rules.go.tmpl' legacy_long_form_project: true +sweeper: + regions: + - "us-west2" examples: - name: 'compute_region_network_firewall_policy_with_rules_full' primary_resource_id: 'primary' diff --git a/mmv1/products/compute/RegionSecurityPolicy.yaml b/mmv1/products/compute/RegionSecurityPolicy.yaml index f5dad0221dba..3fa4a355fc0b 100644 --- a/mmv1/products/compute/RegionSecurityPolicy.yaml +++ b/mmv1/products/compute/RegionSecurityPolicy.yaml @@ -40,6 +40,15 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "asia-southeast1" + - "us-central1" + - "us-west1" + - "southamerica-west1" + - "europe-west1" + - "us-west2" + - "us-south1" examples: - name: 'region_security_policy_basic' primary_resource_id: 'region-sec-policy-basic' diff --git a/mmv1/products/compute/RegionTargetHttpProxy.yaml b/mmv1/products/compute/RegionTargetHttpProxy.yaml index 54164f8d6e4b..4cf07f35df28 100644 --- a/mmv1/products/compute/RegionTargetHttpProxy.yaml +++ b/mmv1/products/compute/RegionTargetHttpProxy.yaml @@ -37,6 +37,11 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "us-west1" + - "europe-west1" + - "us-central1" examples: - name: 'region_target_http_proxy_basic' primary_resource_id: 'default' diff --git a/mmv1/products/compute/RegionTargetTcpProxy.yaml b/mmv1/products/compute/RegionTargetTcpProxy.yaml index 46917a6079f8..956e31674e8e 100644 --- a/mmv1/products/compute/RegionTargetTcpProxy.yaml +++ b/mmv1/products/compute/RegionTargetTcpProxy.yaml @@ -38,6 +38,10 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "europe-west4" + - "us-central1" examples: - name: 'region_target_tcp_proxy_basic' primary_resource_id: 'default' diff --git a/mmv1/products/compute/RegionUrlMap.yaml b/mmv1/products/compute/RegionUrlMap.yaml index 1d8c982b4a28..9e654408f613 100644 --- a/mmv1/products/compute/RegionUrlMap.yaml +++ b/mmv1/products/compute/RegionUrlMap.yaml @@ -34,6 +34,11 @@ async: resource_inside_response: false collection_url_key: 'items' custom_code: +sweeper: + regions: + - "europe-west1" + - "us-central1" + - "us-west1" examples: - name: 'region_url_map_basic' primary_resource_id: 'regionurlmap' diff --git a/mmv1/products/compute/ResourcePolicy.yaml b/mmv1/products/compute/ResourcePolicy.yaml index b71acc2def9c..1de7910847e3 100644 --- a/mmv1/products/compute/ResourcePolicy.yaml +++ b/mmv1/products/compute/ResourcePolicy.yaml @@ -38,6 +38,11 @@ async: collection_url_key: 'items' custom_code: constants: 'templates/terraform/constants/compute_resource_policy.go.tmpl' +sweeper: + regions: + - "europe-west1" + - "us-central1" + - "us-east4" examples: - name: 'resource_policy_basic' primary_resource_id: 'foo' diff --git a/mmv1/products/compute/Router.yaml b/mmv1/products/compute/Router.yaml index 1b231c1019d6..9c6784b47c24 100644 --- a/mmv1/products/compute/Router.yaml +++ b/mmv1/products/compute/Router.yaml @@ -44,6 +44,11 @@ custom_code: constants: 'templates/terraform/constants/router.go.tmpl' custom_diff: - 'resourceComputeRouterCustomDiff' +sweeper: + regions: + - "us-central1" + - "us-east1" + - "us-east4" examples: - name: 'router_basic' primary_resource_id: 'foobar' diff --git a/mmv1/products/compute/ServiceAttachment.yaml b/mmv1/products/compute/ServiceAttachment.yaml index f0e27bee6dec..1f1d61c4b29b 100644 --- a/mmv1/products/compute/ServiceAttachment.yaml +++ b/mmv1/products/compute/ServiceAttachment.yaml @@ -38,6 +38,12 @@ async: custom_code: constants: 'templates/terraform/constants/compute_service_attachment.go.tmpl' update_encoder: 'templates/terraform/update_encoder/compute_service_attachment.go.tmpl' +sweeper: + regions: + - "us-west2" + - "us-central1" + - "europe-west4" + - "us-east1" examples: - name: 'service_attachment_basic' primary_resource_id: 'psc_ilb_service_attachment' diff --git a/mmv1/products/compute/Subnetwork.yaml b/mmv1/products/compute/Subnetwork.yaml index e9fa01fe2d32..80ec4a4ddbb3 100644 --- a/mmv1/products/compute/Subnetwork.yaml +++ b/mmv1/products/compute/Subnetwork.yaml @@ -70,6 +70,16 @@ custom_code: custom_diff: - 'customdiff.ForceNewIfChange("ip_cidr_range", IsShrinkageIpCidr)' - 'sendSecondaryIpRangeIfEmptyDiff' +sweeper: + regions: + - "southamerica-west1" + - "us-south1" + - "us-west2" + - "us-central1" + - "us-east1" + - "europe-west1" + - "us-west1" + - "europe-west4" examples: - name: 'subnetwork_basic' primary_resource_id: 'network-with-private-secondary-ip-ranges' diff --git a/mmv1/products/dataprocgdc/ServiceInstance.yaml b/mmv1/products/dataprocgdc/ServiceInstance.yaml index 7f094fc42deb..3fa4ebc4e1aa 100644 --- a/mmv1/products/dataprocgdc/ServiceInstance.yaml +++ b/mmv1/products/dataprocgdc/ServiceInstance.yaml @@ -25,6 +25,9 @@ id_format: projects/{{project}}/locations/{{location}}/serviceInstances/{{servic import_format: - projects/{{project}}/locations/{{location}}/serviceInstances/{{service_instance_id}} autogen_async: true +sweeper: + regions: + - "us-west2" parameters: - name: location type: String diff --git a/mmv1/products/dialogflowcx/SecuritySettings.yaml b/mmv1/products/dialogflowcx/SecuritySettings.yaml index 006921fcffc5..70d2e9e5234b 100644 --- a/mmv1/products/dialogflowcx/SecuritySettings.yaml +++ b/mmv1/products/dialogflowcx/SecuritySettings.yaml @@ -34,6 +34,9 @@ timeouts: custom_code: post_create: 'templates/terraform/post_create/sleep.go.tmpl' post_update: 'templates/terraform/post_create/sleep.go.tmpl' +sweeper: + regions: + - "global" examples: - name: 'dialogflowcx_security_settings_basic' primary_resource_id: 'basic_security_settings' diff --git a/mmv1/products/discoveryengine/DataStore.yaml b/mmv1/products/discoveryengine/DataStore.yaml index 86754cdd0a28..e0e5c7517770 100644 --- a/mmv1/products/discoveryengine/DataStore.yaml +++ b/mmv1/products/discoveryengine/DataStore.yaml @@ -43,6 +43,10 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "global" + - "eu" examples: - name: 'discoveryengine_datastore_basic' primary_resource_id: 'basic' diff --git a/mmv1/products/documentai/Processor.yaml b/mmv1/products/documentai/Processor.yaml index 052795afa540..e91345cd926e 100644 --- a/mmv1/products/documentai/Processor.yaml +++ b/mmv1/products/documentai/Processor.yaml @@ -27,6 +27,10 @@ timeouts: update_minutes: 20 delete_minutes: 20 custom_code: +sweeper: + regions: + - "eu" + - "us" examples: - name: 'documentai_processor' primary_resource_id: 'processor' diff --git a/mmv1/products/filestore/Instance.yaml b/mmv1/products/filestore/Instance.yaml index 3c8552788318..466019690e30 100644 --- a/mmv1/products/filestore/Instance.yaml +++ b/mmv1/products/filestore/Instance.yaml @@ -46,6 +46,12 @@ error_abort_predicates: - 'transport_tpg.Is429QuotaError' schema_version: 1 state_upgraders: true +sweeper: + regions: + - "us-central1-b" + - "us-central1" + - "us-east1" + - "us-west1" examples: - name: 'filestore_instance_basic' primary_resource_id: 'instance' diff --git a/mmv1/products/gkeonprem/BareMetalCluster.yaml b/mmv1/products/gkeonprem/BareMetalCluster.yaml index faaa150259f8..e527bfcfb1a1 100644 --- a/mmv1/products/gkeonprem/BareMetalCluster.yaml +++ b/mmv1/products/gkeonprem/BareMetalCluster.yaml @@ -38,6 +38,9 @@ async: resource_inside_response: true custom_code: taint_resource_on_failed_create: true +sweeper: + regions: + - "us-west1" examples: - name: 'gkeonprem_bare_metal_cluster_basic' primary_resource_id: 'cluster-basic' diff --git a/mmv1/products/gkeonprem/VmwareCluster.yaml b/mmv1/products/gkeonprem/VmwareCluster.yaml index b9a6c3564d22..b6fd9ca651fe 100644 --- a/mmv1/products/gkeonprem/VmwareCluster.yaml +++ b/mmv1/products/gkeonprem/VmwareCluster.yaml @@ -38,6 +38,9 @@ async: resource_inside_response: true custom_code: taint_resource_on_failed_create: true +sweeper: + regions: + - "us-west1" examples: - name: 'gkeonprem_vmware_cluster_basic' primary_resource_id: 'cluster-basic' diff --git a/mmv1/products/iamworkforcepool/WorkforcePool.yaml b/mmv1/products/iamworkforcepool/WorkforcePool.yaml index b34dcaa30b95..ae2c90cab1ad 100644 --- a/mmv1/products/iamworkforcepool/WorkforcePool.yaml +++ b/mmv1/products/iamworkforcepool/WorkforcePool.yaml @@ -47,6 +47,9 @@ custom_code: constants: 'templates/terraform/constants/iam_workforce_pool.go.tmpl' decoder: 'templates/terraform/decoders/treat_deleted_state_as_gone.go.tmpl' test_check_destroy: 'templates/terraform/custom_check_destroy/iam_workforce_pool.go.tmpl' +sweeper: + regions: + - "global" examples: - name: 'iam_workforce_pool_basic' primary_resource_id: 'example' diff --git a/mmv1/products/integrations/AuthConfig.yaml b/mmv1/products/integrations/AuthConfig.yaml index 78e33c7ba293..d8ac8efac9a9 100644 --- a/mmv1/products/integrations/AuthConfig.yaml +++ b/mmv1/products/integrations/AuthConfig.yaml @@ -38,6 +38,18 @@ custom_code: post_create: 'templates/terraform/post_create/set_computed_name.tmpl' pre_update: 'templates/terraform/pre_update/integrations_auth_config.go.tmpl' custom_import: 'templates/terraform/custom_import/self_link_as_name.tmpl' +sweeper: + regions: + - "us-west3" + - "asia-east2" + - "asia-east1" + - "southamerica-east1" + - "us-west2" + - "southamerica-west1" + - "us-west4" + - "northamerica-northeast2" + - "northamerica-northeast1" + - "us-south1" examples: - name: 'integrations_auth_config_basic' primary_resource_id: 'basic_example' diff --git a/mmv1/products/integrations/Client.yaml b/mmv1/products/integrations/Client.yaml index cd1162e21f5d..963b8aebd70c 100644 --- a/mmv1/products/integrations/Client.yaml +++ b/mmv1/products/integrations/Client.yaml @@ -37,6 +37,20 @@ timeouts: custom_code: decoder: 'templates/terraform/decoders/integrations_client.go.tmpl' pre_create: 'templates/terraform/pre_create/integrations_client.go.tmpl' +sweeper: + regions: + - "us-east1" + - "asia-east1" + - "southamerica-west1" + - "northamerica-northeast1" + - "us-central1" + - "us-south1" + - "southamerica-east1" + - "us-west2" + - "us-west4" + - "northamerica-northeast2" + - "us-west3" + - "asia-east2" examples: - name: 'integrations_client_basic' primary_resource_id: 'example' diff --git a/mmv1/products/networkconnectivity/ServiceConnectionPolicy.yaml b/mmv1/products/networkconnectivity/ServiceConnectionPolicy.yaml index 1ba54cabffbe..f0b98ccc4f70 100644 --- a/mmv1/products/networkconnectivity/ServiceConnectionPolicy.yaml +++ b/mmv1/products/networkconnectivity/ServiceConnectionPolicy.yaml @@ -45,6 +45,11 @@ async: resource_inside_response: false custom_code: update_encoder: 'templates/terraform/encoders/service_connection_policy.go.tmpl' +sweeper: + regions: + - "us-central1" + - "us-east1" + - "europe-west1" examples: - name: 'network_connectivity_policy_basic' primary_resource_id: 'default' diff --git a/mmv1/products/networkconnectivity/Spoke.yaml b/mmv1/products/networkconnectivity/Spoke.yaml index 7c66f43ef182..4584cddf2b53 100644 --- a/mmv1/products/networkconnectivity/Spoke.yaml +++ b/mmv1/products/networkconnectivity/Spoke.yaml @@ -37,6 +37,10 @@ async: resource_inside_response: false custom_code: legacy_long_form_project: true +sweeper: + regions: + - "us-central1" + - "global" examples: - name: 'network_connectivity_spoke_linked_vpc_network_basic' primary_resource_id: 'primary' diff --git a/mmv1/products/networkmanagement/VpcFlowLogsConfig.yaml b/mmv1/products/networkmanagement/VpcFlowLogsConfig.yaml index 79f269ee11be..1f9b083aa4c8 100644 --- a/mmv1/products/networkmanagement/VpcFlowLogsConfig.yaml +++ b/mmv1/products/networkmanagement/VpcFlowLogsConfig.yaml @@ -37,6 +37,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "global" examples: - name: 'network_management_vpc_flow_logs_config_interconnect_full' primary_resource_id: 'interconnect-test' diff --git a/mmv1/products/networksecurity/AuthzPolicy.yaml b/mmv1/products/networksecurity/AuthzPolicy.yaml index 68e2f24c757c..0ea4d23d6d02 100644 --- a/mmv1/products/networksecurity/AuthzPolicy.yaml +++ b/mmv1/products/networksecurity/AuthzPolicy.yaml @@ -44,6 +44,9 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "us-west1" examples: - name: 'network_services_authz_policy_advanced' primary_resource_id: 'default' diff --git a/mmv1/products/networksecurity/GatewaySecurityPolicy.yaml b/mmv1/products/networksecurity/GatewaySecurityPolicy.yaml index 5675f2f0ad44..b3be3c922846 100644 --- a/mmv1/products/networksecurity/GatewaySecurityPolicy.yaml +++ b/mmv1/products/networksecurity/GatewaySecurityPolicy.yaml @@ -43,6 +43,13 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "us-west1" + - "us-west2" + - "us-east1" + - "us-central1" + - "us-south1" examples: - name: 'network_security_gateway_security_policy_basic' primary_resource_id: 'default' diff --git a/mmv1/products/networksecurity/InterceptDeployment.yaml b/mmv1/products/networksecurity/InterceptDeployment.yaml index 45e2e98bcaf5..417dea94f17a 100644 --- a/mmv1/products/networksecurity/InterceptDeployment.yaml +++ b/mmv1/products/networksecurity/InterceptDeployment.yaml @@ -37,6 +37,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "us-central1-a" examples: - name: 'network_security_intercept_deployment_basic' config_path: 'templates/terraform/examples/network_security_intercept_deployment_basic.tf.tmpl' diff --git a/mmv1/products/networksecurity/InterceptDeploymentGroup.yaml b/mmv1/products/networksecurity/InterceptDeploymentGroup.yaml index 5ea32042f951..3b6567bb2c7f 100644 --- a/mmv1/products/networksecurity/InterceptDeploymentGroup.yaml +++ b/mmv1/products/networksecurity/InterceptDeploymentGroup.yaml @@ -37,6 +37,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "global" examples: - name: 'network_security_intercept_deployment_group_basic' config_path: 'templates/terraform/examples/network_security_intercept_deployment_group_basic.tf.tmpl' diff --git a/mmv1/products/networksecurity/InterceptEndpointGroup.yaml b/mmv1/products/networksecurity/InterceptEndpointGroup.yaml index 2e56a8e64f71..912e36b75092 100644 --- a/mmv1/products/networksecurity/InterceptEndpointGroup.yaml +++ b/mmv1/products/networksecurity/InterceptEndpointGroup.yaml @@ -37,6 +37,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "global" examples: - name: 'network_security_intercept_endpoint_group_basic' config_path: 'templates/terraform/examples/network_security_intercept_endpoint_group_basic.tf.tmpl' diff --git a/mmv1/products/networksecurity/InterceptEndpointGroupAssociation.yaml b/mmv1/products/networksecurity/InterceptEndpointGroupAssociation.yaml index 63ad1c296477..29cee4402f5b 100644 --- a/mmv1/products/networksecurity/InterceptEndpointGroupAssociation.yaml +++ b/mmv1/products/networksecurity/InterceptEndpointGroupAssociation.yaml @@ -37,6 +37,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "global" examples: - name: 'network_security_intercept_endpoint_group_association_basic' config_path: 'templates/terraform/examples/network_security_intercept_endpoint_group_association_basic.tf.tmpl' diff --git a/mmv1/products/networksecurity/MirroringDeployment.yaml b/mmv1/products/networksecurity/MirroringDeployment.yaml index e8d90168d6ac..2b5e28bdf9e4 100644 --- a/mmv1/products/networksecurity/MirroringDeployment.yaml +++ b/mmv1/products/networksecurity/MirroringDeployment.yaml @@ -37,6 +37,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "us-central1-a" examples: - name: 'network_security_mirroring_deployment_basic' config_path: 'templates/terraform/examples/network_security_mirroring_deployment_basic.tf.tmpl' diff --git a/mmv1/products/networksecurity/MirroringDeploymentGroup.yaml b/mmv1/products/networksecurity/MirroringDeploymentGroup.yaml index f2dcfaffa10e..723197b5144f 100644 --- a/mmv1/products/networksecurity/MirroringDeploymentGroup.yaml +++ b/mmv1/products/networksecurity/MirroringDeploymentGroup.yaml @@ -37,6 +37,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "global" examples: - name: 'network_security_mirroring_deployment_group_basic' config_path: 'templates/terraform/examples/network_security_mirroring_deployment_group_basic.tf.tmpl' diff --git a/mmv1/products/networksecurity/MirroringEndpointGroup.yaml b/mmv1/products/networksecurity/MirroringEndpointGroup.yaml index 5f77d9dc8dee..5e265e6ba547 100644 --- a/mmv1/products/networksecurity/MirroringEndpointGroup.yaml +++ b/mmv1/products/networksecurity/MirroringEndpointGroup.yaml @@ -37,6 +37,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "global" examples: - name: 'network_security_mirroring_endpoint_group_basic' config_path: 'templates/terraform/examples/network_security_mirroring_endpoint_group_basic.tf.tmpl' diff --git a/mmv1/products/networksecurity/MirroringEndpointGroupAssociation.yaml b/mmv1/products/networksecurity/MirroringEndpointGroupAssociation.yaml index 3f4c4d3a4cc9..f6410e3d9e9d 100644 --- a/mmv1/products/networksecurity/MirroringEndpointGroupAssociation.yaml +++ b/mmv1/products/networksecurity/MirroringEndpointGroupAssociation.yaml @@ -37,6 +37,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "global" examples: - name: 'network_security_mirroring_endpoint_group_association_basic' config_path: 'templates/terraform/examples/network_security_mirroring_endpoint_group_association_basic.tf.tmpl' diff --git a/mmv1/products/networksecurity/ServerTlsPolicy.yaml b/mmv1/products/networksecurity/ServerTlsPolicy.yaml index cd992c5e9dac..cc2cf6783eda 100644 --- a/mmv1/products/networksecurity/ServerTlsPolicy.yaml +++ b/mmv1/products/networksecurity/ServerTlsPolicy.yaml @@ -42,6 +42,10 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "us-central1" + - "global" examples: - name: 'network_security_server_tls_policy_basic' primary_resource_id: 'default' diff --git a/mmv1/products/networkservices/AuthzExtension.yaml b/mmv1/products/networkservices/AuthzExtension.yaml index 3017001f2dfe..74afe3683c30 100644 --- a/mmv1/products/networkservices/AuthzExtension.yaml +++ b/mmv1/products/networkservices/AuthzExtension.yaml @@ -44,6 +44,9 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "us-west1" examples: - name: 'network_services_authz_extension_basic' primary_resource_id: 'default' diff --git a/mmv1/products/networkservices/LbRouteExtension.yaml b/mmv1/products/networkservices/LbRouteExtension.yaml index b844b27b6d5d..9e59346d1378 100644 --- a/mmv1/products/networkservices/LbRouteExtension.yaml +++ b/mmv1/products/networkservices/LbRouteExtension.yaml @@ -38,6 +38,9 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "us-west1" examples: - name: 'network_services_lb_route_extension_basic' primary_resource_id: 'default' diff --git a/mmv1/products/networkservices/LbTrafficExtension.yaml b/mmv1/products/networkservices/LbTrafficExtension.yaml index ca56b15edc87..4ef936441c92 100644 --- a/mmv1/products/networkservices/LbTrafficExtension.yaml +++ b/mmv1/products/networkservices/LbTrafficExtension.yaml @@ -38,6 +38,9 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "us-west1" examples: - name: 'network_services_lb_traffic_extension_basic' primary_resource_id: 'default' diff --git a/mmv1/products/networkservices/ServiceLbPolicies.yaml b/mmv1/products/networkservices/ServiceLbPolicies.yaml index 79d4dd45cb97..b28fb30f6018 100644 --- a/mmv1/products/networkservices/ServiceLbPolicies.yaml +++ b/mmv1/products/networkservices/ServiceLbPolicies.yaml @@ -46,6 +46,9 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "global" examples: - name: 'network_services_service_lb_policies_basic' primary_resource_id: 'default' diff --git a/mmv1/products/notebooks/Environment.yaml b/mmv1/products/notebooks/Environment.yaml index 937e76426616..56b2f92cac18 100644 --- a/mmv1/products/notebooks/Environment.yaml +++ b/mmv1/products/notebooks/Environment.yaml @@ -35,6 +35,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "us-west1-a" examples: - name: 'notebook_environment_basic' primary_resource_id: 'environment' diff --git a/mmv1/products/notebooks/Instance.yaml b/mmv1/products/notebooks/Instance.yaml index 1f4d6426311c..47db92093d6d 100644 --- a/mmv1/products/notebooks/Instance.yaml +++ b/mmv1/products/notebooks/Instance.yaml @@ -59,6 +59,10 @@ state_upgraders: true # This resource should not be removed until the 2025 major release or later. # Check instance availability first before fully removing. deprecation_message: '`google_notebook_instance` is deprecated and will be removed in a future major release. Use `google_workbench_instance` instead.' +sweeper: + regions: + - "us-west1-a" + - "us-central1-a" examples: - name: 'notebook_instance_basic' primary_resource_id: 'instance' diff --git a/mmv1/products/parallelstore/Instance.yaml b/mmv1/products/parallelstore/Instance.yaml index 0a8691591239..e4996be7c9c6 100644 --- a/mmv1/products/parallelstore/Instance.yaml +++ b/mmv1/products/parallelstore/Instance.yaml @@ -36,6 +36,9 @@ async: result: resource_inside_response: true custom_code: +sweeper: + regions: + - "us-central1-a" examples: - name: 'parallelstore_instance_basic_beta' primary_resource_id: 'instance' diff --git a/mmv1/products/redis/Cluster.yaml b/mmv1/products/redis/Cluster.yaml index d4b315e99816..cdf8c19f9d37 100644 --- a/mmv1/products/redis/Cluster.yaml +++ b/mmv1/products/redis/Cluster.yaml @@ -116,6 +116,11 @@ async: result: resource_inside_response: false custom_code: +sweeper: + regions: + - "us-central1" + - "us-east1" + - "europe-west1" examples: - name: 'redis_cluster_ha' primary_resource_id: 'cluster-ha' diff --git a/mmv1/products/securitycenterv2/ProjectMuteConfig.yaml b/mmv1/products/securitycenterv2/ProjectMuteConfig.yaml index 4bd083286f5f..e21051d2bcdc 100644 --- a/mmv1/products/securitycenterv2/ProjectMuteConfig.yaml +++ b/mmv1/products/securitycenterv2/ProjectMuteConfig.yaml @@ -35,6 +35,9 @@ timeouts: update_minutes: 20 delete_minutes: 20 custom_code: +sweeper: + regions: + - "global" examples: - name: 'scc_v2_project_mute_config_basic' primary_resource_id: 'default' diff --git a/mmv1/products/securitycenterv2/ProjectNotificationConfig.yaml b/mmv1/products/securitycenterv2/ProjectNotificationConfig.yaml index 739b99758600..3b6d89d95e67 100644 --- a/mmv1/products/securitycenterv2/ProjectNotificationConfig.yaml +++ b/mmv1/products/securitycenterv2/ProjectNotificationConfig.yaml @@ -41,6 +41,9 @@ timeouts: custom_code: post_create: 'templates/terraform/post_create/set_computed_name.tmpl' custom_import: 'templates/terraform/custom_import/self_link_as_name_set_project.go.tmpl' +sweeper: + regions: + - "global" examples: - name: 'scc_v2_project_notification_config_basic' primary_resource_id: 'custom_notification_config' diff --git a/mmv1/products/securitycenterv2/ProjectSccBigQueryExport.yaml b/mmv1/products/securitycenterv2/ProjectSccBigQueryExport.yaml index 3f577888b273..3469d46926ab 100644 --- a/mmv1/products/securitycenterv2/ProjectSccBigQueryExport.yaml +++ b/mmv1/products/securitycenterv2/ProjectSccBigQueryExport.yaml @@ -38,6 +38,9 @@ timeouts: update_minutes: 20 delete_minutes: 20 custom_code: +sweeper: + regions: + - "global" examples: - name: 'scc_v2_project_big_query_export_config_basic' primary_resource_id: 'custom_big_query_export_config' diff --git a/mmv1/products/workbench/Instance.yaml b/mmv1/products/workbench/Instance.yaml index 940af0306e8b..83b28db2b3eb 100644 --- a/mmv1/products/workbench/Instance.yaml +++ b/mmv1/products/workbench/Instance.yaml @@ -52,6 +52,10 @@ custom_code: post_create: 'templates/terraform/post_create/workbench_instance.go.tmpl' pre_update: 'templates/terraform/pre_update/workbench_instance.go.tmpl' post_update: 'templates/terraform/post_update/workbench_instance.go.tmpl' +sweeper: + regions: + - "us-west1-a" + - "us-central1-a" examples: - name: 'workbench_instance_basic' primary_resource_id: 'instance'