blob: 98dd33de4a4bea963c0a7da778a3fabe04035f39 [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> . <a href="serviceusage_v1beta1.services.consumerQuotaMetrics.limits.html">limits</a> . <a href="serviceusage_v1beta1.services.consumerQuotaMetrics.limits.consumerOverrides.html">consumerOverrides</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(parent, body=None, force=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a consumer override.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a consumer override.</p>
83<p class="toc_element">
84 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Lists all consumer overrides on this limit.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
90 <code><a href="#patch">patch(name, body=None, updateMask=None, force=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Updates a consumer override.</p>
92<h3>Method Details</h3>
93<div class="method">
94 <code class="details" id="create">create(parent, body=None, force=None, x__xgafv=None)</code>
95 <pre>Creates a consumer override.
96A consumer override is applied to the consumer on its own authority to
97limit its own quota usage. Consumer overrides cannot be used to grant more
98quota than would be allowed by admin overrides, producer overrides, or the
99default limit of the service.
100
101Args:
102 parent: string, The resource name of the parent quota limit, returned by a
103ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
104
105An example name would be:
106`projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` (required)
107 body: object, The request body.
108 The object takes the form of:
109
110{ # A quota override
111 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
112 #
113 # An example unit would be:
114 # `1/{project}/{region}`
115 # Note that `{project}` and `{region}` are not placeholders in this example;
116 # the literal characters `{` and `}` occur in the string.
117 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
118 #
119 # An example name would be:
120 # `compute.googleapis.com/cpus`
121 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
122 # for dimensions defined in the limit unit.
123 #
124 # For example, an override on a limit with the unit 1/{project}/{region}
125 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
126 # the override is only applied to quota consumed in that region.
127 #
128 # This map has the following restrictions:
129 #
130 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
131 # Any string appearing in {brackets} in the unit (besides {project} or
132 # {user}) is a defined key.
133 # * &quot;project&quot; is not a valid key; the project is already specified in
134 # the parent resource name.
135 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
136 # that apply only to a specific user.
137 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
138 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
139 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
140 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
141 # map.
142 &quot;a_key&quot;: &quot;A String&quot;,
143 },
144 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
145 # This name is generated by the server when the override is created.
146 #
147 # Example names would be:
148 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
149 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
150 #
151 # The resource name is intended to be opaque and should not be parsed for
152 # its component strings, since its representation could change in the future.
153 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
154 # Can be any nonnegative integer, or -1 (unlimited quota).
155}
156
157 force: boolean, Whether to force the creation of the quota override.
158If creating an override would cause the effective quota for the consumer to
159decrease by more than 10 percent, the call is rejected, as a safety measure
160to avoid accidentally decreasing quota too quickly. Setting the force
161parameter to true ignores this restriction.
162 x__xgafv: string, V1 error format.
163 Allowed values
164 1 - v1 error format
165 2 - v2 error format
166
167Returns:
168 An object of the form:
169
170 { # This resource represents a long-running operation that is the result of a
171 # network API call.
172 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
173 # If `true`, the operation is completed, and either `error` or `response` is
174 # available.
175 &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.
176 # different programming environments, including REST APIs and RPC APIs. It is
177 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
178 # three pieces of data: error code, error message, and error details.
179 #
180 # You can find out more about this error model and how to work with it in the
181 # [API Design Guide](https://cloud.google.com/apis/design/errors).
182 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
183 # message types for APIs to use.
184 {
185 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
186 },
187 ],
188 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
189 # user-facing error message should be localized and sent in the
190 # google.rpc.Status.details field, or localized by the client.
191 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
192 },
193 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
194 # originally returns it. If you use the default HTTP mapping, the
195 # `name` should be a resource name ending with `operations/{unique_id}`.
196 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
197 # method returns no data on success, such as `Delete`, the response is
198 # `google.protobuf.Empty`. If the original method is standard
199 # `Get`/`Create`/`Update`, the response should be the resource. For other
200 # methods, the response should have the type `XxxResponse`, where `Xxx`
201 # is the original method name. For example, if the original method name
202 # is `TakeSnapshot()`, the inferred response type is
203 # `TakeSnapshotResponse`.
204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
205 },
206 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
207 # contains progress information and common metadata such as create time.
208 # Some services might not provide such metadata. Any method that returns a
209 # long-running operation should document the metadata type, if any.
210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
211 },
212 }</pre>
213</div>
214
215<div class="method">
216 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
217 <pre>Deletes a consumer override.
218
219Args:
220 name: string, The resource name of the override to delete.
221
222An example name would be:
223`projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` (required)
224 force: boolean, Whether to force the deletion of the quota override.
225If deleting an override would cause the effective quota for the consumer to
226decrease by more than 10 percent, the call is rejected, as a safety measure
227to avoid accidentally decreasing quota too quickly. Setting the force
228parameter to true ignores this restriction.
229 x__xgafv: string, V1 error format.
230 Allowed values
231 1 - v1 error format
232 2 - v2 error format
233
234Returns:
235 An object of the form:
236
237 { # This resource represents a long-running operation that is the result of a
238 # network API call.
239 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
240 # If `true`, the operation is completed, and either `error` or `response` is
241 # available.
242 &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.
243 # different programming environments, including REST APIs and RPC APIs. It is
244 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
245 # three pieces of data: error code, error message, and error details.
246 #
247 # You can find out more about this error model and how to work with it in the
248 # [API Design Guide](https://cloud.google.com/apis/design/errors).
249 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
250 # message types for APIs to use.
251 {
252 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
253 },
254 ],
255 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
256 # user-facing error message should be localized and sent in the
257 # google.rpc.Status.details field, or localized by the client.
258 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
259 },
260 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
261 # originally returns it. If you use the default HTTP mapping, the
262 # `name` should be a resource name ending with `operations/{unique_id}`.
263 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
264 # method returns no data on success, such as `Delete`, the response is
265 # `google.protobuf.Empty`. If the original method is standard
266 # `Get`/`Create`/`Update`, the response should be the resource. For other
267 # methods, the response should have the type `XxxResponse`, where `Xxx`
268 # is the original method name. For example, if the original method name
269 # is `TakeSnapshot()`, the inferred response type is
270 # `TakeSnapshotResponse`.
271 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
272 },
273 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
274 # contains progress information and common metadata such as create time.
275 # Some services might not provide such metadata. Any method that returns a
276 # long-running operation should document the metadata type, if any.
277 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
278 },
279 }</pre>
280</div>
281
282<div class="method">
283 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
284 <pre>Lists all consumer overrides on this limit.
285
286Args:
287 parent: string, The resource name of the parent quota limit, returned by a
288ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
289
290An example name would be:
291`projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` (required)
292 pageSize: integer, Requested size of the next page of data.
293 pageToken: string, Token identifying which result to start with; returned by a previous list
294call.
295 x__xgafv: string, V1 error format.
296 Allowed values
297 1 - v1 error format
298 2 - v2 error format
299
300Returns:
301 An object of the form:
302
303 { # Response message for ListConsumerOverrides.
304 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token identifying which result to start with; returned by a previous list
305 # call.
306 &quot;overrides&quot;: [ # Consumer overrides on this limit.
307 { # A quota override
308 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
309 #
310 # An example unit would be:
311 # `1/{project}/{region}`
312 # Note that `{project}` and `{region}` are not placeholders in this example;
313 # the literal characters `{` and `}` occur in the string.
314 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
315 #
316 # An example name would be:
317 # `compute.googleapis.com/cpus`
318 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
319 # for dimensions defined in the limit unit.
320 #
321 # For example, an override on a limit with the unit 1/{project}/{region}
322 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
323 # the override is only applied to quota consumed in that region.
324 #
325 # This map has the following restrictions:
326 #
327 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
328 # Any string appearing in {brackets} in the unit (besides {project} or
329 # {user}) is a defined key.
330 # * &quot;project&quot; is not a valid key; the project is already specified in
331 # the parent resource name.
332 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
333 # that apply only to a specific user.
334 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
335 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
336 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
337 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
338 # map.
339 &quot;a_key&quot;: &quot;A String&quot;,
340 },
341 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
342 # This name is generated by the server when the override is created.
343 #
344 # Example names would be:
345 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
346 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
347 #
348 # The resource name is intended to be opaque and should not be parsed for
349 # its component strings, since its representation could change in the future.
350 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
351 # Can be any nonnegative integer, or -1 (unlimited quota).
352 },
353 ],
354 }</pre>
355</div>
356
357<div class="method">
358 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
359 <pre>Retrieves the next page of results.
360
361Args:
362 previous_request: The request for the previous page. (required)
363 previous_response: The response from the request for the previous page. (required)
364
365Returns:
366 A request object that you can call &#x27;execute()&#x27; on to request the next
367 page. Returns None if there are no more items in the collection.
368 </pre>
369</div>
370
371<div class="method">
372 <code class="details" id="patch">patch(name, body=None, updateMask=None, force=None, x__xgafv=None)</code>
373 <pre>Updates a consumer override.
374
375Args:
376 name: string, The resource name of the override to update.
377
378An example name would be:
379`projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` (required)
380 body: object, The request body.
381 The object takes the form of:
382
383{ # A quota override
384 &quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies.
385 #
386 # An example unit would be:
387 # `1/{project}/{region}`
388 # Note that `{project}` and `{region}` are not placeholders in this example;
389 # the literal characters `{` and `}` occur in the string.
390 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric to which this override applies.
391 #
392 # An example name would be:
393 # `compute.googleapis.com/cpus`
394 &quot;dimensions&quot;: { # If this map is nonempty, then this override applies only to specific values
395 # for dimensions defined in the limit unit.
396 #
397 # For example, an override on a limit with the unit 1/{project}/{region}
398 # could contain an entry with the key &quot;region&quot; and the value &quot;us-east-1&quot;;
399 # the override is only applied to quota consumed in that region.
400 #
401 # This map has the following restrictions:
402 #
403 # * Keys that are not defined in the limit&#x27;s unit are not valid keys.
404 # Any string appearing in {brackets} in the unit (besides {project} or
405 # {user}) is a defined key.
406 # * &quot;project&quot; is not a valid key; the project is already specified in
407 # the parent resource name.
408 # * &quot;user&quot; is not a valid key; the API does not support quota overrides
409 # that apply only to a specific user.
410 # * If &quot;region&quot; appears as a key, its value must be a valid Cloud region.
411 # * If &quot;zone&quot; appears as a key, its value must be a valid Cloud zone.
412 # * If any valid key other than &quot;region&quot; or &quot;zone&quot; appears in the map, then
413 # all valid keys other than &quot;region&quot; or &quot;zone&quot; must also appear in the
414 # map.
415 &quot;a_key&quot;: &quot;A String&quot;,
416 },
417 &quot;name&quot;: &quot;A String&quot;, # The resource name of the override.
418 # This name is generated by the server when the override is created.
419 #
420 # Example names would be:
421 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
422 # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
423 #
424 # The resource name is intended to be opaque and should not be parsed for
425 # its component strings, since its representation could change in the future.
426 &quot;overrideValue&quot;: &quot;A String&quot;, # The overriding quota limit value.
427 # Can be any nonnegative integer, or -1 (unlimited quota).
428}
429
430 updateMask: string, Update only the specified fields of the override.
431If unset, all fields will be updated.
432 force: boolean, Whether to force the update of the quota override.
433If updating an override would cause the effective quota for the consumer to
434decrease by more than 10 percent, the call is rejected, as a safety measure
435to avoid accidentally decreasing quota too quickly. Setting the force
436parameter to true ignores this restriction.
437 x__xgafv: string, V1 error format.
438 Allowed values
439 1 - v1 error format
440 2 - v2 error format
441
442Returns:
443 An object of the form:
444
445 { # This resource represents a long-running operation that is the result of a
446 # network API call.
447 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
448 # If `true`, the operation is completed, and either `error` or `response` is
449 # available.
450 &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.
451 # different programming environments, including REST APIs and RPC APIs. It is
452 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
453 # three pieces of data: error code, error message, and error details.
454 #
455 # You can find out more about this error model and how to work with it in the
456 # [API Design Guide](https://cloud.google.com/apis/design/errors).
457 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
458 # message types for APIs to use.
459 {
460 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
461 },
462 ],
463 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
464 # user-facing error message should be localized and sent in the
465 # google.rpc.Status.details field, or localized by the client.
466 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
467 },
468 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
469 # originally returns it. If you use the default HTTP mapping, the
470 # `name` should be a resource name ending with `operations/{unique_id}`.
471 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
472 # method returns no data on success, such as `Delete`, the response is
473 # `google.protobuf.Empty`. If the original method is standard
474 # `Get`/`Create`/`Update`, the response should be the resource. For other
475 # methods, the response should have the type `XxxResponse`, where `Xxx`
476 # is the original method name. For example, if the original method name
477 # is `TakeSnapshot()`, the inferred response type is
478 # `TakeSnapshotResponse`.
479 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
480 },
481 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
482 # contains progress information and common metadata such as create time.
483 # Some services might not provide such metadata. Any method that returns a
484 # long-running operation should document the metadata type, if any.
485 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
486 },
487 }</pre>
488</div>
489
490</body></html>