blob: 20329e22c6529d14850e1ab8a5acaa88aec4823d [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="serviceusage_v1beta1.html">Service Usage API</a> . <a href="serviceusage_v1beta1.services.html">services</a> . <a href="serviceusage_v1beta1.services.consumerQuotaMetrics.html">consumerQuotaMetrics</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="serviceusage_v1beta1.services.consumerQuotaMetrics.limits.html">limits()</a></code>
79</p>
80<p class="firstline">Returns the limits Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
84<p class="firstline">Retrieves a summary of quota information for a specific quota metric</p>
85<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070086 <code><a href="#importConsumerOverrides">importConsumerOverrides(parent, body=None, x__xgafv=None)</a></code></p>
87<p class="firstline">Create or update multiple consumer overrides atomically, all on the</p>
88<p class="toc_element">
89 <code><a href="#list">list(parent, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070090<p class="firstline">Retrieves a summary of all quota information visible to the service</p>
91<p class="toc_element">
92 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
93<p class="firstline">Retrieves the next page of results.</p>
94<h3>Method Details</h3>
95<div class="method">
96 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
97 <pre>Retrieves a summary of quota information for a specific quota metric
98
99Args:
100 name: string, The resource name of the quota limit.
101
102An example name would be:
103projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests (required)
104 view: string, Specifies the level of detail for quota information in the response.
105 x__xgafv: string, V1 error format.
106 Allowed values
107 1 - v1 error format
108 2 - v2 error format
109
110Returns:
111 An object of the form:
112
113 { # Consumer quota settings for a quota metric.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700114 &quot;name&quot;: &quot;A String&quot;, # The resource name of the quota settings on this metric for this consumer.
115 #
116 # An example name would be:
117 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus
118 #
119 # The resource name is intended to be opaque and should not be parsed for
120 # its component strings, since its representation could change in the future.
121 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric.
122 #
123 # An example name would be:
124 # `compute.googleapis.com/cpus`
125 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the metric.
126 #
127 # An example name would be:
128 # &quot;CPUs&quot;
129 &quot;unit&quot;: &quot;A String&quot;, # The units in which the metric value is reported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;consumerQuotaLimits&quot;: [ # The consumer quota for each quota limit defined on the metric.
131 { # Consumer quota settings for a quota limit.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700132 &quot;allowsAdminOverrides&quot;: True or False, # Whether admin overrides are allowed on this limit
133 &quot;metric&quot;: &quot;A String&quot;, # The name of the parent metric of this limit.
134 #
135 # An example name would be:
136 # `compute.googleapis.com/cpus`
137 &quot;unit&quot;: &quot;A String&quot;, # The limit unit.
138 #
139 # An example unit would be
140 # `1/{project}/{region}`
141 # Note that `{project}` and `{region}` are not placeholders in this example;
142 # the literal characters `{` and `}` occur in the string.
143 &quot;isPrecise&quot;: True or False, # Whether this limit is precise or imprecise.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700144 &quot;name&quot;: &quot;A String&quot;, # The resource name of the quota limit.
145 #
146 # An example name would be:
147 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
148 #
149 # The resource name is intended to be opaque and should not be parsed for
150 # its component strings, since its representation could change in the future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;quotaBuckets&quot;: [ # Summary of the enforced quota buckets, organized by quota dimension,
152 # ordered from least specific to most specific (for example, the global
153 # default bucket, with no quota dimensions, will always appear first).
154 { # A quota bucket is a quota provisioning unit for a specific set of dimensions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &quot;producerOverride&quot;: { # A quota override # Producer override on this quota bucket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700156 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
157 # This name is generated by the server when the override is created.
158 #
159 # Example names would be:
160 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
161 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
162 #
163 # The resource name is intended to be opaque and should not be parsed for
164 # its component strings, since its representation could change in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700165 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
166 # Can be any nonnegative integer, or -1 (unlimited quota).
167 &quot;adminOverrideAncestor&quot;: &quot;A String&quot;, # The resource name of the ancestor that requested the override. For example:
168 # &quot;organizations/12345&quot; or &quot;folders/67890&quot;.
169 # Used by admin overrides only.
170 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
171 #
172 # An example unit would be:
173 # `1/{project}/{region}`
174 # Note that `{project}` and `{region}` are not placeholders in this example;
175 # the literal characters `{` and `}` occur in the string.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
177 #
178 # An example name would be:
179 # `compute.googleapis.com/cpus`
180 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
181 # for dimensions defined in the limit unit.
182 #
183 # For example, an override on a limit with the unit 1/{project}/{region}
184 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
185 # the override is only applied to quota consumed in that region.
186 #
187 # This map has the following restrictions:
188 #
189 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
190 # Any string appearing in {brackets} in the unit (besides {project} or
191 # {user}) is a defined key.
192 # * &quot;project&quot; is not a valid key; the project is already specified in
193 # the parent resource name.
194 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
195 # that apply only to a specific user.
196 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
197 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
198 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
199 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
200 # map.
201 &quot;a_key&quot;: &quot;A String&quot;,
202 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700203 },
204 &quot;consumerOverride&quot;: { # A quota override # Consumer override on this quota bucket.
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
206 # This name is generated by the server when the override is created.
207 #
208 # Example names would be:
209 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
210 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
211 #
212 # The resource name is intended to be opaque and should not be parsed for
213 # its component strings, since its representation could change in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700214 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
215 # Can be any nonnegative integer, or -1 (unlimited quota).
216 &quot;adminOverrideAncestor&quot;: &quot;A String&quot;, # The resource name of the ancestor that requested the override. For example:
217 # &quot;organizations/12345&quot; or &quot;folders/67890&quot;.
218 # Used by admin overrides only.
219 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
220 #
221 # An example unit would be:
222 # `1/{project}/{region}`
223 # Note that `{project}` and `{region}` are not placeholders in this example;
224 # the literal characters `{` and `}` occur in the string.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700225 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
226 #
227 # An example name would be:
228 # `compute.googleapis.com/cpus`
229 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
230 # for dimensions defined in the limit unit.
231 #
232 # For example, an override on a limit with the unit 1/{project}/{region}
233 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
234 # the override is only applied to quota consumed in that region.
235 #
236 # This map has the following restrictions:
237 #
238 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
239 # Any string appearing in {brackets} in the unit (besides {project} or
240 # {user}) is a defined key.
241 # * &quot;project&quot; is not a valid key; the project is already specified in
242 # the parent resource name.
243 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
244 # that apply only to a specific user.
245 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
246 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
247 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
248 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
249 # map.
250 &quot;a_key&quot;: &quot;A String&quot;,
251 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 },
253 &quot;dimensions&quot;: { # The dimensions of this quota bucket.
254 #
255 # If this map is empty, this is the global bucket, which is the default quota
256 # value applied to all requests that do not have a more specific override.
257 #
258 # If this map is nonempty, the default limit, effective limit, and quota
259 # overrides apply only to requests that have the dimensions given in the map.
260 #
261 # For example, if the map has key &quot;region&quot; and value &quot;us-east-1&quot;, then the
262 # specified effective limit is only effective in that region, and the
263 # specified overrides apply only in that region.
264 &quot;a_key&quot;: &quot;A String&quot;,
265 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700266 &quot;defaultLimit&quot;: &quot;A String&quot;, # The default limit of this quota bucket, as specified by the service
267 # configuration.
268 &quot;adminOverride&quot;: { # A quota override # Admin override on this quota bucket.
269 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
270 # This name is generated by the server when the override is created.
271 #
272 # Example names would be:
273 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
274 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
275 #
276 # The resource name is intended to be opaque and should not be parsed for
277 # its component strings, since its representation could change in the future.
278 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
279 # Can be any nonnegative integer, or -1 (unlimited quota).
280 &quot;adminOverrideAncestor&quot;: &quot;A String&quot;, # The resource name of the ancestor that requested the override. For example:
281 # &quot;organizations/12345&quot; or &quot;folders/67890&quot;.
282 # Used by admin overrides only.
283 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
284 #
285 # An example unit would be:
286 # `1/{project}/{region}`
287 # Note that `{project}` and `{region}` are not placeholders in this example;
288 # the literal characters `{` and `}` occur in the string.
289 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
290 #
291 # An example name would be:
292 # `compute.googleapis.com/cpus`
293 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
294 # for dimensions defined in the limit unit.
295 #
296 # For example, an override on a limit with the unit 1/{project}/{region}
297 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
298 # the override is only applied to quota consumed in that region.
299 #
300 # This map has the following restrictions:
301 #
302 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
303 # Any string appearing in {brackets} in the unit (besides {project} or
304 # {user}) is a defined key.
305 # * &quot;project&quot; is not a valid key; the project is already specified in
306 # the parent resource name.
307 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
308 # that apply only to a specific user.
309 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
310 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
311 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
312 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
313 # map.
314 &quot;a_key&quot;: &quot;A String&quot;,
315 },
316 },
317 &quot;effectiveLimit&quot;: &quot;A String&quot;, # The effective limit of this quota bucket. Equal to default_limit if there
318 # are no overrides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700319 },
320 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 },
322 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 }</pre>
324</div>
325
326<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700327 <code class="details" id="importConsumerOverrides">importConsumerOverrides(parent, body=None, x__xgafv=None)</code>
328 <pre>Create or update multiple consumer overrides atomically, all on the
329same consumer, but on many different metrics or limits.
330The name field in the quota override message should not be set.
331
332Args:
333 parent: string, The resource name of the consumer.
334
335An example name would be:
336`projects/123/services/compute.googleapis.com` (required)
337 body: object, The request body.
338 The object takes the form of:
339
340{ # Request message for ImportConsumerOverrides
341 &quot;force&quot;: True or False, # Whether to force the creation of the quota overrides.
342 # If creating an override would cause the effective quota for the consumer to
343 # decrease by more than 10 percent, the call is rejected, as a safety measure
344 # to avoid accidentally decreasing quota too quickly. Setting the force
345 # parameter to true ignores this restriction.
346 &quot;inlineSource&quot;: { # Import data embedded in the request message # The import data is specified in the request message itself
347 &quot;overrides&quot;: [ # The overrides to create.
348 # Each override must have a value for &#x27;metric&#x27; and &#x27;unit&#x27;, to specify
349 # which metric and which limit the override should be applied to.
350 { # A quota override
351 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
352 # This name is generated by the server when the override is created.
353 #
354 # Example names would be:
355 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
356 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
357 #
358 # The resource name is intended to be opaque and should not be parsed for
359 # its component strings, since its representation could change in the future.
360 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
361 # Can be any nonnegative integer, or -1 (unlimited quota).
362 &quot;adminOverrideAncestor&quot;: &quot;A String&quot;, # The resource name of the ancestor that requested the override. For example:
363 # &quot;organizations/12345&quot; or &quot;folders/67890&quot;.
364 # Used by admin overrides only.
365 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
366 #
367 # An example unit would be:
368 # `1/{project}/{region}`
369 # Note that `{project}` and `{region}` are not placeholders in this example;
370 # the literal characters `{` and `}` occur in the string.
371 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
372 #
373 # An example name would be:
374 # `compute.googleapis.com/cpus`
375 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
376 # for dimensions defined in the limit unit.
377 #
378 # For example, an override on a limit with the unit 1/{project}/{region}
379 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
380 # the override is only applied to quota consumed in that region.
381 #
382 # This map has the following restrictions:
383 #
384 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
385 # Any string appearing in {brackets} in the unit (besides {project} or
386 # {user}) is a defined key.
387 # * &quot;project&quot; is not a valid key; the project is already specified in
388 # the parent resource name.
389 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
390 # that apply only to a specific user.
391 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
392 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
393 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
394 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
395 # map.
396 &quot;a_key&quot;: &quot;A String&quot;,
397 },
398 },
399 ],
400 },
401 }
402
403 x__xgafv: string, V1 error format.
404 Allowed values
405 1 - v1 error format
406 2 - v2 error format
407
408Returns:
409 An object of the form:
410
411 { # This resource represents a long-running operation that is the result of a
412 # network API call.
413 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
414 # method returns no data on success, such as `Delete`, the response is
415 # `google.protobuf.Empty`. If the original method is standard
416 # `Get`/`Create`/`Update`, the response should be the resource. For other
417 # methods, the response should have the type `XxxResponse`, where `Xxx`
418 # is the original method name. For example, if the original method name
419 # is `TakeSnapshot()`, the inferred response type is
420 # `TakeSnapshotResponse`.
421 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
422 },
423 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
424 # different programming environments, including REST APIs and RPC APIs. It is
425 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
426 # three pieces of data: error code, error message, and error details.
427 #
428 # You can find out more about this error model and how to work with it in the
429 # [API Design Guide](https://cloud.google.com/apis/design/errors).
430 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
431 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
432 # user-facing error message should be localized and sent in the
433 # google.rpc.Status.details field, or localized by the client.
434 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
435 # message types for APIs to use.
436 {
437 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
438 },
439 ],
440 },
441 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
442 # contains progress information and common metadata such as create time.
443 # Some services might not provide such metadata. Any method that returns a
444 # long-running operation should document the metadata type, if any.
445 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
446 },
447 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
448 # originally returns it. If you use the default HTTP mapping, the
449 # `name` should be a resource name ending with `operations/{unique_id}`.
450 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
451 # If `true`, the operation is completed, and either `error` or `response` is
452 # available.
453 }</pre>
454</div>
455
456<div class="method">
457 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700458 <pre>Retrieves a summary of all quota information visible to the service
459consumer, organized by service metric. Each metric includes information
460about all of its defined limits. Each limit includes the limit
461configuration (quota unit, preciseness, default value), the current
462effective limit value, and all of the overrides applied to the limit.
463
464Args:
465 parent: string, Parent of the quotas resource.
466
467Some example names would be:
468projects/123/services/serviceconsumermanagement.googleapis.com
469folders/345/services/serviceconsumermanagement.googleapis.com
470organizations/456/services/serviceconsumermanagement.googleapis.com (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700471 pageSize: integer, Requested size of the next page of data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 pageToken: string, Token identifying which result to start with; returned by a previous list
473call.
474 view: string, Specifies the level of detail for quota information in the response.
475 x__xgafv: string, V1 error format.
476 Allowed values
477 1 - v1 error format
478 2 - v2 error format
479
480Returns:
481 An object of the form:
482
483 { # Response message for ListConsumerQuotaMetrics
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700484 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token identifying which result to start with; returned by a previous list
485 # call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;metrics&quot;: [ # Quota settings for the consumer, organized by quota metric.
487 { # Consumer quota settings for a quota metric.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700488 &quot;name&quot;: &quot;A String&quot;, # The resource name of the quota settings on this metric for this consumer.
489 #
490 # An example name would be:
491 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus
492 #
493 # The resource name is intended to be opaque and should not be parsed for
494 # its component strings, since its representation could change in the future.
495 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric.
496 #
497 # An example name would be:
498 # `compute.googleapis.com/cpus`
499 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the metric.
500 #
501 # An example name would be:
502 # &quot;CPUs&quot;
503 &quot;unit&quot;: &quot;A String&quot;, # The units in which the metric value is reported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;consumerQuotaLimits&quot;: [ # The consumer quota for each quota limit defined on the metric.
505 { # Consumer quota settings for a quota limit.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700506 &quot;allowsAdminOverrides&quot;: True or False, # Whether admin overrides are allowed on this limit
507 &quot;metric&quot;: &quot;A String&quot;, # The name of the parent metric of this limit.
508 #
509 # An example name would be:
510 # `compute.googleapis.com/cpus`
511 &quot;unit&quot;: &quot;A String&quot;, # The limit unit.
512 #
513 # An example unit would be
514 # `1/{project}/{region}`
515 # Note that `{project}` and `{region}` are not placeholders in this example;
516 # the literal characters `{` and `}` occur in the string.
517 &quot;isPrecise&quot;: True or False, # Whether this limit is precise or imprecise.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700518 &quot;name&quot;: &quot;A String&quot;, # The resource name of the quota limit.
519 #
520 # An example name would be:
521 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
522 #
523 # The resource name is intended to be opaque and should not be parsed for
524 # its component strings, since its representation could change in the future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;quotaBuckets&quot;: [ # Summary of the enforced quota buckets, organized by quota dimension,
526 # ordered from least specific to most specific (for example, the global
527 # default bucket, with no quota dimensions, will always appear first).
528 { # A quota bucket is a quota provisioning unit for a specific set of dimensions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700529 &quot;producerOverride&quot;: { # A quota override # Producer override on this quota bucket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700530 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
531 # This name is generated by the server when the override is created.
532 #
533 # Example names would be:
534 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
535 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
536 #
537 # The resource name is intended to be opaque and should not be parsed for
538 # its component strings, since its representation could change in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700539 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
540 # Can be any nonnegative integer, or -1 (unlimited quota).
541 &quot;adminOverrideAncestor&quot;: &quot;A String&quot;, # The resource name of the ancestor that requested the override. For example:
542 # &quot;organizations/12345&quot; or &quot;folders/67890&quot;.
543 # Used by admin overrides only.
544 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
545 #
546 # An example unit would be:
547 # `1/{project}/{region}`
548 # Note that `{project}` and `{region}` are not placeholders in this example;
549 # the literal characters `{` and `}` occur in the string.
Bu Sun Kim65020912020-05-20 12:08:20 -0700550 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
551 #
552 # An example name would be:
553 # `compute.googleapis.com/cpus`
554 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
555 # for dimensions defined in the limit unit.
556 #
557 # For example, an override on a limit with the unit 1/{project}/{region}
558 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
559 # the override is only applied to quota consumed in that region.
560 #
561 # This map has the following restrictions:
562 #
563 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
564 # Any string appearing in {brackets} in the unit (besides {project} or
565 # {user}) is a defined key.
566 # * &quot;project&quot; is not a valid key; the project is already specified in
567 # the parent resource name.
568 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
569 # that apply only to a specific user.
570 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
571 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
572 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
573 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
574 # map.
575 &quot;a_key&quot;: &quot;A String&quot;,
576 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700577 },
578 &quot;consumerOverride&quot;: { # A quota override # Consumer override on this quota bucket.
Bu Sun Kim65020912020-05-20 12:08:20 -0700579 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
580 # This name is generated by the server when the override is created.
581 #
582 # Example names would be:
583 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
584 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
585 #
586 # The resource name is intended to be opaque and should not be parsed for
587 # its component strings, since its representation could change in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700588 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
589 # Can be any nonnegative integer, or -1 (unlimited quota).
590 &quot;adminOverrideAncestor&quot;: &quot;A String&quot;, # The resource name of the ancestor that requested the override. For example:
591 # &quot;organizations/12345&quot; or &quot;folders/67890&quot;.
592 # Used by admin overrides only.
593 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
594 #
595 # An example unit would be:
596 # `1/{project}/{region}`
597 # Note that `{project}` and `{region}` are not placeholders in this example;
598 # the literal characters `{` and `}` occur in the string.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700599 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
600 #
601 # An example name would be:
602 # `compute.googleapis.com/cpus`
603 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
604 # for dimensions defined in the limit unit.
605 #
606 # For example, an override on a limit with the unit 1/{project}/{region}
607 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
608 # the override is only applied to quota consumed in that region.
609 #
610 # This map has the following restrictions:
611 #
612 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
613 # Any string appearing in {brackets} in the unit (besides {project} or
614 # {user}) is a defined key.
615 # * &quot;project&quot; is not a valid key; the project is already specified in
616 # the parent resource name.
617 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
618 # that apply only to a specific user.
619 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
620 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
621 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
622 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
623 # map.
624 &quot;a_key&quot;: &quot;A String&quot;,
625 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 },
627 &quot;dimensions&quot;: { # The dimensions of this quota bucket.
628 #
629 # If this map is empty, this is the global bucket, which is the default quota
630 # value applied to all requests that do not have a more specific override.
631 #
632 # If this map is nonempty, the default limit, effective limit, and quota
633 # overrides apply only to requests that have the dimensions given in the map.
634 #
635 # For example, if the map has key &quot;region&quot; and value &quot;us-east-1&quot;, then the
636 # specified effective limit is only effective in that region, and the
637 # specified overrides apply only in that region.
638 &quot;a_key&quot;: &quot;A String&quot;,
639 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700640 &quot;defaultLimit&quot;: &quot;A String&quot;, # The default limit of this quota bucket, as specified by the service
641 # configuration.
642 &quot;adminOverride&quot;: { # A quota override # Admin override on this quota bucket.
643 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
644 # This name is generated by the server when the override is created.
645 #
646 # Example names would be:
647 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
648 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
649 #
650 # The resource name is intended to be opaque and should not be parsed for
651 # its component strings, since its representation could change in the future.
652 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
653 # Can be any nonnegative integer, or -1 (unlimited quota).
654 &quot;adminOverrideAncestor&quot;: &quot;A String&quot;, # The resource name of the ancestor that requested the override. For example:
655 # &quot;organizations/12345&quot; or &quot;folders/67890&quot;.
656 # Used by admin overrides only.
657 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
658 #
659 # An example unit would be:
660 # `1/{project}/{region}`
661 # Note that `{project}` and `{region}` are not placeholders in this example;
662 # the literal characters `{` and `}` occur in the string.
663 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
664 #
665 # An example name would be:
666 # `compute.googleapis.com/cpus`
667 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
668 # for dimensions defined in the limit unit.
669 #
670 # For example, an override on a limit with the unit 1/{project}/{region}
671 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
672 # the override is only applied to quota consumed in that region.
673 #
674 # This map has the following restrictions:
675 #
676 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
677 # Any string appearing in {brackets} in the unit (besides {project} or
678 # {user}) is a defined key.
679 # * &quot;project&quot; is not a valid key; the project is already specified in
680 # the parent resource name.
681 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
682 # that apply only to a specific user.
683 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
684 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
685 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
686 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
687 # map.
688 &quot;a_key&quot;: &quot;A String&quot;,
689 },
690 },
691 &quot;effectiveLimit&quot;: &quot;A String&quot;, # The effective limit of this quota bucket. Equal to default_limit if there
692 # are no overrides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700693 },
694 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700695 },
696 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700697 },
698 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 }</pre>
700</div>
701
702<div class="method">
703 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
704 <pre>Retrieves the next page of results.
705
706Args:
707 previous_request: The request for the previous page. (required)
708 previous_response: The response from the request for the previous page. (required)
709
710Returns:
711 A request object that you can call &#x27;execute()&#x27; on to request the next
712 page. Returns None if there are no more items in the collection.
713 </pre>
714</div>
715
716</body></html>