Skip to content

Commit

Permalink
HandWrite sweeper for dataCatalogTaxonomy (#9908) (hashicorp#6923)
Browse files Browse the repository at this point in the history
[upstream:a8ab34eb06ae386e8394ba6a690c33d84a235aa6]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Feb 1, 2024
1 parent acdb60f commit 94ce430
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .changelog/9908.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```release-note:none
```
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** Type: MMv1 ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Magic Modules and manual
// changes will be clobbered when the file is regenerated.
//
// Please read more about how to change this file in
// .github/CONTRIBUTING.md.
//
// ----------------------------------------------------------------------------

package datacatalog

import (
Expand Down Expand Up @@ -64,7 +49,7 @@ func testSweepDataCatalogTaxonomy(region string) error {
},
}

listTemplate := strings.Split("https://datacatalog.googleapis.com/v1beta1/projects/{{project}}/locations/{{region}}/taxonomies", "?")[0]
listTemplate := strings.Split("https://datacatalog.googleapis.com/v1/projects/{{project}}/locations/{{region}}/taxonomies", "?")[0]
listUrl, err := tpgresource.ReplaceVars(d, config, listTemplate)
if err != nil {
log.Printf("[INFO][SWEEPER_LOG] error preparing sweeper list url: %s", err)
Expand Down Expand Up @@ -108,7 +93,7 @@ func testSweepDataCatalogTaxonomy(region string) error {
continue
}

deleteTemplate := "https://datacatalog.googleapis.com/v1beta1/{{name}}"
deleteTemplate := "https://datacatalog.googleapis.com/v1/{{display_name}}"
deleteUrl, err := tpgresource.ReplaceVars(d, config, deleteTemplate)
if err != nil {
log.Printf("[INFO][SWEEPER_LOG] error preparing delete url: %s", err)
Expand Down

0 comments on commit 94ce430

Please sign in to comment.