diff --git a/mmv1/products/cloudquotas/QuotaPreference.yaml b/mmv1/products/cloudquotas/QuotaPreference.yaml index 9ac2a049bc54..b31af9878597 100644 --- a/mmv1/products/cloudquotas/QuotaPreference.yaml +++ b/mmv1/products/cloudquotas/QuotaPreference.yaml @@ -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. diff --git a/mmv1/templates/terraform/custom_expand/cloudquotas_quota_preference_trace_id.go.erb b/mmv1/templates/terraform/custom_expand/cloudquotas_quota_preference_trace_id.go.erb new file mode 100644 index 000000000000..bb5152e6fb1a --- /dev/null +++ b/mmv1/templates/terraform/custom_expand/cloudquotas_quota_preference_trace_id.go.erb @@ -0,0 +1,3 @@ +func expand<%= prefix -%><%= titlelize_property(property) -%>(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) { + return nil, nil +} \ No newline at end of file diff --git a/mmv1/third_party/terraform/services/cloudquotas/resource_cloud_quotas_quota_preference_test.go b/mmv1/third_party/terraform/services/cloudquotas/resource_cloud_quotas_quota_preference_test.go index b0c044aded08..4de702d30c0c 100644 --- a/mmv1/third_party/terraform/services/cloudquotas/resource_cloud_quotas_quota_preference_test.go +++ b/mmv1/third_party/terraform/services/cloudquotas/resource_cloud_quotas_quota_preference_test.go @@ -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] @@ -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}"