Skip to content

Commit

Permalink
add missing sweeper regions (#12951)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottSuarez authored Feb 3, 2025
1 parent b79356d commit 59b47aa
Show file tree
Hide file tree
Showing 63 changed files with 286 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mmv1/products/apphub/Application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions mmv1/products/artifactregistry/Repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions mmv1/products/biglake/Catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions mmv1/products/bigqueryanalyticshub/DataExchange.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 6 additions & 0 deletions mmv1/products/bigqueryconnection/Connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions mmv1/products/bigqueryreservation/CapacityCommitment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 7 additions & 0 deletions mmv1/products/certificatemanager/Certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions mmv1/products/certificatemanager/DnsAuthorization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions mmv1/products/certificatemanager/TrustConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions mmv1/products/cloudbuild/Trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions mmv1/products/cloudbuildv2/Connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions mmv1/products/cloudfunctions2/Function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions mmv1/products/cloudrun/Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 7 additions & 0 deletions mmv1/products/compute/Address.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 7 additions & 0 deletions mmv1/products/compute/ForwardingRule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 7 additions & 0 deletions mmv1/products/compute/RegionBackendService.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 6 additions & 0 deletions mmv1/products/compute/RegionHealthCheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions mmv1/products/compute/RegionNetworkEndpointGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
9 changes: 9 additions & 0 deletions mmv1/products/compute/RegionSecurityPolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions mmv1/products/compute/RegionTargetHttpProxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions mmv1/products/compute/RegionTargetTcpProxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions mmv1/products/compute/RegionUrlMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions mmv1/products/compute/ResourcePolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions mmv1/products/compute/Router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 6 additions & 0 deletions mmv1/products/compute/ServiceAttachment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
10 changes: 10 additions & 0 deletions mmv1/products/compute/Subnetwork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions mmv1/products/dataprocgdc/ServiceInstance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions mmv1/products/dialogflowcx/SecuritySettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions mmv1/products/discoveryengine/DataStore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions mmv1/products/documentai/Processor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 6 additions & 0 deletions mmv1/products/filestore/Instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions mmv1/products/gkeonprem/BareMetalCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading

0 comments on commit 59b47aa

Please sign in to comment.