Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
lola98 committed Feb 20, 2024
1 parent cf64d28 commit 17f5c74
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
22 changes: 11 additions & 11 deletions mmv1/products/cloudquotas/QuotaPreference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -113,25 +113,25 @@ 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
- !ruby/object:Api::Type::KeyValuePairs
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: |
Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion mmv1/products/cloudquotas/product.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ versions:
name: ga
base_url: https://cloudquotas.googleapis.com/v1/
scopes:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/cloud-platform
3 changes: 1 addition & 2 deletions mmv1/templates/terraform/encoders/quota_preference.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.
-%>


parent := d.Get("parent").(string)
preference_id := d.Get("quota_preference_id").(string)

Expand All @@ -37,4 +36,4 @@ if d.Get("name") != nil {
}
}

return obj, nil
return obj, nil

0 comments on commit 17f5c74

Please sign in to comment.