forked from hashicorp/terraform-provider-google-beta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tag product and tagkey resource (hashicorp#4565) (hashicorp#3062)
* Added tag product and tagkey resource * Skipped vcr tests and added id_format and import_format vcr tests don't work due to randomness * Added self_link definition * Added tag key update test * Re-added id_format and import_format * Marked error code 10 as retryable See https://github.com/googleapis/googleapis/blob/8f117308d5bb55816953a0d6ad1a7d27a69a7d3f/google/rpc/code.proto#L130 * Added additional logging of potentially-retriable errors * Switched to custom import generated imports can't handle slashes in ids * Removed error code 10 from retry errors TLDR if an operation returns error code 10, we can't actually retry the operation itself; we would have to retry the original POST, which would take a larger modification to creating an object * Added mutex for tagkey operations * Removed logging line for manual testing * Run tags resource tests sequentially due to concurrency issues * Switched tagkey mutex to use parent field directly * Made tagkey tests eligible for VCR and non-parallel * Switched to self_link/id_format/import_format using name_from_self_link * Cleaned up docs * Removed etag field * Corrected id/import formats to match self link * Removed custom import Signed-off-by: Modular Magician <[email protected]>
- Loading branch information
1 parent
59f6b71
commit fb0ff2c
Showing
11 changed files
with
930 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:new-resource | ||
`google_tags_tag_key` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.