From 17f5c74c5f01d2b90e6868bb0c16b259db281608 Mon Sep 17 00:00:00 2001 From: Lola Liu Date: Tue, 20 Feb 2024 15:49:29 -0800 Subject: [PATCH] fix lint error --- .../products/cloudquotas/QuotaPreference.yaml | 22 +++++++++---------- mmv1/products/cloudquotas/product.yaml | 2 +- .../encoders/quota_preference.go.erb | 3 +-- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/mmv1/products/cloudquotas/QuotaPreference.yaml b/mmv1/products/cloudquotas/QuotaPreference.yaml index 7868d2bb9bff..3423334da219 100644 --- a/mmv1/products/cloudquotas/QuotaPreference.yaml +++ b/mmv1/products/cloudquotas/QuotaPreference.yaml @@ -67,7 +67,7 @@ parameters: url_param_only: true default_value: :QUOTA_SAFETY_CHECK_UNSPECIFIED description: The list of quota safety checks to be ignored. - values: + values: - :QUOTA_SAFETY_CHECK_UNSPECIFIED - :QUOTA_DECREASE_BELOW_USAGE - :QUOTA_DECREASE_PERCENTAGE_TOO_HIGH @@ -76,7 +76,7 @@ properties: - !ruby/object:Api::Type::String name: 'name' description: | - The resource name of the quota preference. Required except in the CREATE requests. + The resource name of the quota preference. Required except in the CREATE requests. - !ruby/object:Api::Type::String name: 'service' required: true @@ -96,7 +96,7 @@ properties: name: 'preferredValue' required: true description: | - The preferred value. Must be greater than or equal to -1. If set to -1, it means the value is "unlimited". + The preferred value. Must be greater than or equal to -1. If set to -1, it means the value is "unlimited". - !ruby/object:Api::Type::String name: 'stateDetail' output: true @@ -113,14 +113,14 @@ properties: - !ruby/object:Api::Type::KeyValuePairs name: 'annotations' description: |- - The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations. - + The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations. + An object containing a list of "key: value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - !ruby/object:Api::Type::Enum name: 'requestOrigin' output: true description: The origin of the quota preference request. - values: + values: - :ORIGIN_UNSPECIFIED - :CLOUD_CONSOLE` - :AUTO_ADJUSTER @@ -128,10 +128,10 @@ properties: name: 'dimensions' description: |- The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value. If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value. - - NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map. - - Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension. + + NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map. + + Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension. - !ruby/object:Api::Type::String name: 'etag' description: | @@ -146,7 +146,7 @@ properties: name: 'updateTime' output: true description: | - Update time stamp. + Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". - !ruby/object:Api::Type::Boolean name: 'reconciling' diff --git a/mmv1/products/cloudquotas/product.yaml b/mmv1/products/cloudquotas/product.yaml index 8082932da0bc..53c82344b0d2 100644 --- a/mmv1/products/cloudquotas/product.yaml +++ b/mmv1/products/cloudquotas/product.yaml @@ -19,4 +19,4 @@ versions: name: ga base_url: https://cloudquotas.googleapis.com/v1/ scopes: - - https://www.googleapis.com/auth/cloud-platform \ No newline at end of file + - https://www.googleapis.com/auth/cloud-platform diff --git a/mmv1/templates/terraform/encoders/quota_preference.go.erb b/mmv1/templates/terraform/encoders/quota_preference.go.erb index 317717d6f6db..9b96123f3cde 100644 --- a/mmv1/templates/terraform/encoders/quota_preference.go.erb +++ b/mmv1/templates/terraform/encoders/quota_preference.go.erb @@ -13,7 +13,6 @@ # limitations under the License. -%> - parent := d.Get("parent").(string) preference_id := d.Get("quota_preference_id").(string) @@ -37,4 +36,4 @@ if d.Get("name") != nil { } } -return obj, nil +return obj, nil \ No newline at end of file