forked from GoogleCloudPlatform/magic-modules
-
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.
support force delete consumer quota override (GoogleCloudPlatform#5753)
- Loading branch information
1 parent
3f3ecf0
commit f145931
Showing
3 changed files
with
29 additions
and
2 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
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
19 changes: 19 additions & 0 deletions
19
mmv1/templates/terraform/examples/consumer_quota_override_custom_dimension.tf.erb
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,19 @@ | ||
resource "google_project" "my_project" { | ||
provider = google-beta | ||
name = "tf-test-project" | ||
project_id = "<%= ctx[:vars]['project_id'] %>" | ||
org_id = "<%= ctx[:test_env_vars]['org_id'] %>" | ||
} | ||
|
||
resource "google_service_usage_consumer_quota_override" "override" { | ||
provider = google-beta | ||
project = google_project.my_project.project_id | ||
service = "libraryagent.googleapis.com" | ||
metric = urlencode("libraryagent.googleapis.com/borrows") | ||
limit = urlencode("/author/project") | ||
override_value = "1" | ||
force = true | ||
dimensions = { | ||
author = "larry" | ||
} | ||
} |