Skip to content

Commit 3a74e53

Browse files
feat(serviceconsumermanagement): update the api
#### serviceconsumermanagement:v1beta1 The following keys were added: - resources.services.resources.consumerQuotaMetrics.methods.importProducerQuotaPolicies (Total Keys: 12) - resources.services.resources.consumerQuotaMetrics.resources.limits.resources.producerQuotaPolicies.methods.create (Total Keys: 18) - resources.services.resources.consumerQuotaMetrics.resources.limits.resources.producerQuotaPolicies.methods.delete (Total Keys: 17) - resources.services.resources.consumerQuotaMetrics.resources.limits.resources.producerQuotaPolicies.methods.list (Total Keys: 16) - resources.services.resources.consumerQuotaMetrics.resources.limits.resources.producerQuotaPolicies.methods.patch (Total Keys: 21) - schemas.V1Beta1ImportProducerQuotaPoliciesRequest (Total Keys: 6) - schemas.V1Beta1ListProducerQuotaPoliciesResponse (Total Keys: 5) - schemas.V1Beta1PolicyInlineSource (Total Keys: 4)
1 parent 53cd896 commit 3a74e53

5 files changed

+614
-2
lines changed

docs/dyn/serviceconsumermanagement_v1beta1.services.consumerQuotaMetrics.html

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ <h2>Instance Methods</h2>
8888
<p class="toc_element">
8989
<code><a href="#importProducerOverrides">importProducerOverrides(parent, body=None, x__xgafv=None)</a></code></p>
9090
<p class="firstline">Create or update multiple producer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.</p>
91+
<p class="toc_element">
92+
<code><a href="#importProducerQuotaPolicies">importProducerQuotaPolicies(parent, body=None, x__xgafv=None)</a></code></p>
93+
<p class="firstline">Create or update multiple producer quota policies atomically, all on the same ancestor, but on many different metrics or limits. The name field in the quota policy message should not be set.</p>
9194
<p class="toc_element">
9295
<code><a href="#list">list(parent, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
9396
<p class="firstline">Retrieves a summary of all quota information about this consumer that is visible to the service producer, for each quota metric defined by the service. Each metric includes information about all of its defined limits. Each limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the overrides applied to the limit.</p>
@@ -313,6 +316,64 @@ <h3>Method Details</h3>
313316
}</pre>
314317
</div>
315318

319+
<div class="method">
320+
<code class="details" id="importProducerQuotaPolicies">importProducerQuotaPolicies(parent, body=None, x__xgafv=None)</code>
321+
<pre>Create or update multiple producer quota policies atomically, all on the same ancestor, but on many different metrics or limits. The name field in the quota policy message should not be set.
322+
323+
Args:
324+
parent: string, The resource name of the consumer. An example name would be: `services/compute.googleapis.com/organizations/123` (required)
325+
body: object, The request body.
326+
The object takes the form of:
327+
328+
{ # Request message for ImportProducerQuotaPolicies
329+
&quot;force&quot;: True or False, # Whether to force the import of the quota policies. If the policy import would decrease the default limit of any consumer tier by more than 10 percent, the call is rejected, as a safety measure to avoid accidentally decreasing quota too quickly. Setting the force parameter to true ignores this restriction.
330+
&quot;forceJustification&quot;: &quot;A String&quot;, # If force option is set to true, force_justification is suggested to be set to log the reason in audit logs.
331+
&quot;inlineSource&quot;: { # Import data embedded in the request message # The import data is specified in the request message itself
332+
&quot;policies&quot;: [ # The policies to create. Each policy must have a value for &#x27;metric&#x27; and &#x27;unit&#x27;, to specify which metric and which limit the policy should be applied to.
333+
{ # Quota policy created by service producer.
334+
&quot;container&quot;: &quot;A String&quot;, # The cloud resource container at which the quota policy is created. The format is {container_type}/{container_number}
335+
&quot;dimensions&quot;: { # If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, a policy on a limit with the unit 1/{project}/{region} could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit&#x27;s unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined key. * &quot;project&quot; is not a valid key; the project is already specified in the parent resource name. * &quot;user&quot; is not a valid key; the API does not support quota polcies that apply only to a specific user. * If &quot;region&quot; appears as a key, its value must be a valid Cloud region. * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone. * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the map.
336+
&quot;a_key&quot;: &quot;A String&quot;,
337+
},
338+
&quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
339+
&quot;name&quot;: &quot;A String&quot;, # The resource name of the producer policy. An example name would be: `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
340+
&quot;policyValue&quot;: &quot;A String&quot;, # The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
341+
&quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this policy applies. An example unit would be: `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.
342+
},
343+
],
344+
},
345+
&quot;validateOnly&quot;: True or False, # If set to true, validate the request, but do not actually update.
346+
}
347+
348+
x__xgafv: string, V1 error format.
349+
Allowed values
350+
1 - v1 error format
351+
2 - v2 error format
352+
353+
Returns:
354+
An object of the form:
355+
356+
{ # This resource represents a long-running operation that is the result of a network API call.
357+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
358+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
359+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
360+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
361+
{
362+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
363+
},
364+
],
365+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
366+
},
367+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
368+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
369+
},
370+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
371+
&quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
372+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373+
},
374+
}</pre>
375+
</div>
376+
316377
<div class="method">
317378
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
318379
<pre>Retrieves a summary of all quota information about this consumer that is visible to the service producer, for each quota metric defined by the service. Each metric includes information about all of its defined limits. Each limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the overrides applied to the limit.

docs/dyn/serviceconsumermanagement_v1beta1.services.consumerQuotaMetrics.limits.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ <h2>Instance Methods</h2>
7979
</p>
8080
<p class="firstline">Returns the producerOverrides Resource.</p>
8181

82+
<p class="toc_element">
83+
<code><a href="serviceconsumermanagement_v1beta1.services.consumerQuotaMetrics.limits.producerQuotaPolicies.html">producerQuotaPolicies()</a></code>
84+
</p>
85+
<p class="firstline">Returns the producerQuotaPolicies Resource.</p>
86+
8287
<p class="toc_element">
8388
<code><a href="#close">close()</a></code></p>
8489
<p class="firstline">Close httplib2 connections.</p>

0 commit comments

Comments
 (0)