@maxim_mazurok/gapi.client.serviceusage-v1beta1 0.0.20230811 → 0.0.20230816
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +37 -1
- package/package.json +1 -1
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://serviceusage.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230816
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1431,6 +1431,39 @@ declare namespace gapi.client {
|
|
|
1431
1431
|
common?:
|
|
1432
1432
|
CommonLanguageSettings;
|
|
1433
1433
|
}
|
|
1434
|
+
interface ProducerQuotaPolicy {
|
|
1435
|
+
/** The cloud resource container at which the quota policy is created. The format is `{container_type}/{container_number}` */
|
|
1436
|
+
container?:
|
|
1437
|
+
string;
|
|
1438
|
+
/**
|
|
1439
|
+
* 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
|
|
1440
|
+
* `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the
|
|
1441
|
+
* following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined
|
|
1442
|
+
* key. * `project` is not a valid key; the project is already specified in the parent resource name. * `user` is not a valid key; the API does not support quota policies that apply
|
|
1443
|
+
* only to a specific user. * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * If any valid
|
|
1444
|
+
* key other than `region` or `zone` appears in the map, then all valid keys other than `region` or `zone` must also appear in the map.
|
|
1445
|
+
*/
|
|
1446
|
+
dimensions?:
|
|
1447
|
+
{ [P in string]: string };
|
|
1448
|
+
/** The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus` */
|
|
1449
|
+
metric?:
|
|
1450
|
+
string;
|
|
1451
|
+
/**
|
|
1452
|
+
* The resource name of the policy. This name is generated by the server when the policy is created. Example names would be:
|
|
1453
|
+
* `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
|
|
1454
|
+
*/
|
|
1455
|
+
name?:
|
|
1456
|
+
string;
|
|
1457
|
+
/** The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota). */
|
|
1458
|
+
policyValue?:
|
|
1459
|
+
string;
|
|
1460
|
+
/**
|
|
1461
|
+
* 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;
|
|
1462
|
+
* the literal characters `{` and `}` occur in the string.
|
|
1463
|
+
*/
|
|
1464
|
+
unit?:
|
|
1465
|
+
string;
|
|
1466
|
+
}
|
|
1434
1467
|
interface Publishing {
|
|
1435
1468
|
/** Used as a tracking tag when collecting data about the APIs developer relations artifacts like docs, packages delivered to package managers, etc. Example: "speech". */
|
|
1436
1469
|
apiShortName?:
|
|
@@ -1502,6 +1535,9 @@ declare namespace gapi.client {
|
|
|
1502
1535
|
/** Producer override on this quota bucket. */
|
|
1503
1536
|
producerOverride?:
|
|
1504
1537
|
QuotaOverride;
|
|
1538
|
+
/** Producer policy inherited from the closet ancestor of the current consumer. */
|
|
1539
|
+
producerQuotaPolicy?:
|
|
1540
|
+
ProducerQuotaPolicy;
|
|
1505
1541
|
}
|
|
1506
1542
|
interface QuotaLimit {
|
|
1507
1543
|
/**
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230816
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|