From b53452f85b7d66e1336d136ddb52dd2136cc9552 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 21 Mar 2024 01:21:31 -0700 Subject: [PATCH] chore: update go_package and Go importpath docs: annotate QuotaPreference.dimensions field as immutable, annotate QuotaPreference.QuotaConfig.annotations field as optional PiperOrigin-RevId: 617759942 --- google/api/cloudquotas/v1/cloudquotas_v1.yaml | 2 +- google/api/cloudquotas/v1/resources.proto | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/google/api/cloudquotas/v1/cloudquotas_v1.yaml b/google/api/cloudquotas/v1/cloudquotas_v1.yaml index 30ba31c069c80..d8f7cb308cb1d 100644 --- a/google/api/cloudquotas/v1/cloudquotas_v1.yaml +++ b/google/api/cloudquotas/v1/cloudquotas_v1.yaml @@ -21,7 +21,7 @@ authentication: publishing: new_issue_uri: https://issuetracker.google.com/issues/new?component=445904 - documentation_uri: https://cloud.google.com/docs/quota/api-overview + documentation_uri: https://cloud.google.com/docs/quotas/api-overview api_short_name: cloudquotas github_label: 'api: cloudquotas' doc_tag_prefix: cloudquotas diff --git a/google/api/cloudquotas/v1/resources.proto b/google/api/cloudquotas/v1/resources.proto index 9c7ef471def6f..05de83f9bd383 100644 --- a/google/api/cloudquotas/v1/resources.proto +++ b/google/api/cloudquotas/v1/resources.proto @@ -180,9 +180,9 @@ message QuotaPreference { // `projects/123/locations/global/quotaPreferences/my-config-for-us-east1` string name = 1; - // 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. + // Immutable. 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 @@ -194,7 +194,7 @@ message QuotaPreference { // // Example: {"provider", "Foo Inc"} where "provider" is a service specific // dimension. - map dimensions = 2; + map dimensions = 2 [(google.api.field_behavior) = IMMUTABLE]; // Required. Preferred quota configuration. QuotaConfig quota_config = 3 [(google.api.field_behavior) = REQUIRED]; @@ -272,10 +272,10 @@ message QuotaConfig { // quota decrease requests do not have a trace id. string trace_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // 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 - map annotations = 5; + // Optional. 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 + map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; // Output only. The origin of the quota preference request. Origin request_origin = 6 [(google.api.field_behavior) = OUTPUT_ONLY];