Skip to content

Commit

Permalink
Ignore trace_id in the request (GoogleCloudPlatform#11408)
Browse files Browse the repository at this point in the history
  • Loading branch information
lola98 authored and BBBmau committed Aug 21, 2024
1 parent 5e86eb3 commit b48d0c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions mmv1/products/cloudquotas/QuotaPreference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ properties:
description: Granted quota value.
- !ruby/object:Api::Type::String
name: 'traceId'
custom_expand: 'templates/terraform/custom_expand/cloudquotas_quota_preference_trace_id.go.erb'
output: true
description: |
The trace id that the Google Cloud uses to provision the requested quota. This trace id may be used by the client to contact Cloud support to track the state of a quota preference request. The trace id is only produced for increase requests and is unique for each request. The quota decrease requests do not have a trace id.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
func expand<%= prefix -%><%= titlelize_property(property) -%>(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) {
return nil, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func testAccCloudQuotasQuotaPreference_cloudquotasQuotaPreferenceBasicExample_ba
service = "cloudbilling.googleapis.com"
depends_on = [google_project_service.compute]
}
resource "time_sleep" "wait_120_seconds" {
create_duration = "120s"
depends_on = [google_project_service.billing]
Expand Down Expand Up @@ -145,7 +145,7 @@ func testAccCloudQuotasQuotaPreference_cloudquotasQuotaPreferenceBasicExample_in

func testAccCloudQuotasQuotaPreference_cloudquotasQuotaPreferenceBasicExample_decreaseQuota(context map[string]interface{}) string {
return acctest.Nprintf(`
resource "google_project" "new_project" {
resource "google_project" "new_project" {
project_id = "tf-test%{random_suffix}"
name = "tf-test%{random_suffix}"
org_id = "%{org_id}"
Expand Down

0 comments on commit b48d0c1

Please sign in to comment.