@googleapis/serviceusage 22.0.0 → 23.0.0
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/CHANGELOG.md +11 -0
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +92 -17
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +92 -17
- package/build/v1beta1.js.map +1 -1
- package/index.ts +1 -4
- package/package.json +1 -1
- package/v1.ts +96 -33
- package/v1beta1.ts +104 -49
package/v1beta1.ts
CHANGED
|
@@ -179,7 +179,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
179
179
|
/**
|
|
180
180
|
* Output only. Analysis result of updating a policy.
|
|
181
181
|
*/
|
|
182
|
-
|
|
182
|
+
analysisResult?: Schema$AnalysisResult;
|
|
183
183
|
/**
|
|
184
184
|
* Output only. The type of analysis.
|
|
185
185
|
*/
|
|
@@ -620,11 +620,11 @@ export namespace serviceusage_v1beta1 {
|
|
|
620
620
|
*/
|
|
621
621
|
export interface Schema$ConsumerPolicy {
|
|
622
622
|
/**
|
|
623
|
-
*
|
|
623
|
+
* Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.
|
|
624
624
|
*/
|
|
625
|
-
|
|
625
|
+
createTime?: string | null;
|
|
626
626
|
/**
|
|
627
|
-
* Enable rules define usable services and
|
|
627
|
+
* Enable rules define usable services and groups. There can currently be at most one `EnableRule`. This restriction will be lifted in later releases.
|
|
628
628
|
*/
|
|
629
629
|
enableRules?: Schema$EnableRule[];
|
|
630
630
|
/**
|
|
@@ -632,11 +632,11 @@ export namespace serviceusage_v1beta1 {
|
|
|
632
632
|
*/
|
|
633
633
|
etag?: string | null;
|
|
634
634
|
/**
|
|
635
|
-
* Output only. The resource name of the policy.
|
|
635
|
+
* Output only. The resource name of the policy. Only the `default` policy is supported: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
|
|
636
636
|
*/
|
|
637
637
|
name?: string | null;
|
|
638
638
|
/**
|
|
639
|
-
* The last
|
|
639
|
+
* Output only. The time the policy was last updated.
|
|
640
640
|
*/
|
|
641
641
|
updateTime?: string | null;
|
|
642
642
|
}
|
|
@@ -954,7 +954,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
954
954
|
serviceId?: string | null;
|
|
955
955
|
}
|
|
956
956
|
/**
|
|
957
|
-
* The consumer policy rule that defines
|
|
957
|
+
* The consumer policy rule that defines enabled services and groups.
|
|
958
958
|
*/
|
|
959
959
|
export interface Schema$EnableRule {
|
|
960
960
|
/**
|
|
@@ -962,15 +962,11 @@ export namespace serviceusage_v1beta1 {
|
|
|
962
962
|
*/
|
|
963
963
|
enableType?: string | null;
|
|
964
964
|
/**
|
|
965
|
-
*
|
|
966
|
-
*/
|
|
967
|
-
groups?: string[] | null;
|
|
968
|
-
/**
|
|
969
|
-
* DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the services that are enabled. Example: `storage.googleapis.com`.
|
|
965
|
+
* The names of the services that are enabled. Example: `services/storage.googleapis.com`.
|
|
970
966
|
*/
|
|
971
967
|
services?: string[] | null;
|
|
972
968
|
/**
|
|
973
|
-
* The names of the services or service groups that are enabled. Example: `services/storage.googleapis.com`, `groups/googleServices`, `groups/allServices`.
|
|
969
|
+
* Deprecated: Use the `services` field instead. The names of the services or service groups that are enabled. Example: `services/storage.googleapis.com`, `groups/googleServices`, `groups/allServices`.
|
|
974
970
|
*/
|
|
975
971
|
values?: string[] | null;
|
|
976
972
|
}
|
|
@@ -1372,6 +1368,53 @@ export namespace serviceusage_v1beta1 {
|
|
|
1372
1368
|
*/
|
|
1373
1369
|
usage?: Schema$Usage;
|
|
1374
1370
|
}
|
|
1371
|
+
/**
|
|
1372
|
+
* A message to group the analysis information.
|
|
1373
|
+
*/
|
|
1374
|
+
export interface Schema$GoogleApiServiceusageV2alphaAnalysis {
|
|
1375
|
+
/**
|
|
1376
|
+
* Output only. Analysis result of updating a policy.
|
|
1377
|
+
*/
|
|
1378
|
+
analysisResult?: Schema$GoogleApiServiceusageV2alphaAnalysisResult;
|
|
1379
|
+
/**
|
|
1380
|
+
* Output only. The type of analysis.
|
|
1381
|
+
*/
|
|
1382
|
+
analysisType?: string | null;
|
|
1383
|
+
/**
|
|
1384
|
+
* Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc.
|
|
1385
|
+
*/
|
|
1386
|
+
displayName?: string | null;
|
|
1387
|
+
/**
|
|
1388
|
+
* The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.
|
|
1389
|
+
*/
|
|
1390
|
+
service?: string | null;
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* An analysis result including blockers and warnings.
|
|
1394
|
+
*/
|
|
1395
|
+
export interface Schema$GoogleApiServiceusageV2alphaAnalysisResult {
|
|
1396
|
+
/**
|
|
1397
|
+
* Blocking information that would prevent the policy changes at runtime.
|
|
1398
|
+
*/
|
|
1399
|
+
blockers?: Schema$GoogleApiServiceusageV2alphaImpact[];
|
|
1400
|
+
/**
|
|
1401
|
+
* Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime.
|
|
1402
|
+
*/
|
|
1403
|
+
warnings?: Schema$GoogleApiServiceusageV2alphaImpact[];
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* Metadata for the `AnalyzeConsumerPolicy` method.
|
|
1407
|
+
*/
|
|
1408
|
+
export interface Schema$GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata {}
|
|
1409
|
+
/**
|
|
1410
|
+
* The response of analyzing a consumer policy update.
|
|
1411
|
+
*/
|
|
1412
|
+
export interface Schema$GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse {
|
|
1413
|
+
/**
|
|
1414
|
+
* The list of analyses returned from performing the intended policy update analysis. The analysis is grouped by service name and different analysis types. The empty analysis list means that the consumer policy can be updated without any warnings or blockers.
|
|
1415
|
+
*/
|
|
1416
|
+
analysis?: Schema$GoogleApiServiceusageV2alphaAnalysis[];
|
|
1417
|
+
}
|
|
1375
1418
|
/**
|
|
1376
1419
|
* Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.
|
|
1377
1420
|
*/
|
|
@@ -1410,6 +1453,23 @@ export namespace serviceusage_v1beta1 {
|
|
|
1410
1453
|
*/
|
|
1411
1454
|
services?: string[] | null;
|
|
1412
1455
|
}
|
|
1456
|
+
/**
|
|
1457
|
+
* A message to group impacts of updating a policy.
|
|
1458
|
+
*/
|
|
1459
|
+
export interface Schema$GoogleApiServiceusageV2alphaImpact {
|
|
1460
|
+
/**
|
|
1461
|
+
* Output only. User friendly impact detail in a free form message.
|
|
1462
|
+
*/
|
|
1463
|
+
detail?: string | null;
|
|
1464
|
+
/**
|
|
1465
|
+
* Output only. The type of impact.
|
|
1466
|
+
*/
|
|
1467
|
+
impactType?: string | null;
|
|
1468
|
+
/**
|
|
1469
|
+
* The parent resource that the analysis is based on and the service name that the analysis is for. Example: `projects/100/services/compute.googleapis.com`, folders/101/services/compute.googleapis.com` and `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same as the parent resource of the analyzed policy. However, for some analysis types, the parent can be different. For example, for resource existence analysis, if the parent resource of the analyzed policy is a folder or an organization, the parent resource here can still be the project that contains the resources.
|
|
1470
|
+
*/
|
|
1471
|
+
parent?: string | null;
|
|
1472
|
+
}
|
|
1413
1473
|
/**
|
|
1414
1474
|
* Metadata for the `UpdateConsumerPolicy` method.
|
|
1415
1475
|
*/
|
|
@@ -1647,9 +1707,9 @@ export namespace serviceusage_v1beta1 {
|
|
|
1647
1707
|
*/
|
|
1648
1708
|
impactType?: string | null;
|
|
1649
1709
|
/**
|
|
1650
|
-
*
|
|
1710
|
+
* Output only. This field will be populated only for the `DEPENDENCY_MISSING_DEPENDENCIES` impact type. Example: `services/compute.googleapis.com`. Impact.detail will be in format : `missing service dependency: {missing_dependency\}.`
|
|
1651
1711
|
*/
|
|
1652
|
-
|
|
1712
|
+
missingDependency?: string | null;
|
|
1653
1713
|
}
|
|
1654
1714
|
/**
|
|
1655
1715
|
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.
|
|
@@ -2061,10 +2121,18 @@ export namespace serviceusage_v1beta1 {
|
|
|
2061
2121
|
* Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.
|
|
2062
2122
|
*/
|
|
2063
2123
|
export interface Schema$MetricRule {
|
|
2124
|
+
/**
|
|
2125
|
+
* Optional. Metrics to update when the selected methods are called, and the associated cost applied to each metric, iff the source of the call is an agent. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.
|
|
2126
|
+
*/
|
|
2127
|
+
agenticMetricCosts?: {[key: string]: string} | null;
|
|
2064
2128
|
/**
|
|
2065
2129
|
* Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.
|
|
2066
2130
|
*/
|
|
2067
2131
|
metricCosts?: {[key: string]: string} | null;
|
|
2132
|
+
/**
|
|
2133
|
+
* Optional. Metrics to update when the selected methods are called, and the associated cost applied to each metric, iff the source of the call is not an agent. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.
|
|
2134
|
+
*/
|
|
2135
|
+
nonagenticMetricCosts?: {[key: string]: string} | null;
|
|
2068
2136
|
/**
|
|
2069
2137
|
* Selects the methods to which this rule applies. Refer to selector for syntax details.
|
|
2070
2138
|
*/
|
|
@@ -2419,6 +2487,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
2419
2487
|
* Name of the quota limit. The name must be provided, and it must be unique within the service. The name can only include alphanumeric characters as well as '-'. The maximum length of the limit name is 64 characters.
|
|
2420
2488
|
*/
|
|
2421
2489
|
name?: string | null;
|
|
2490
|
+
/**
|
|
2491
|
+
* Optional. This is only informational, the logic to allocate the quota to the correct metric (such as in `metric_rules`) should identify which quota metrics to allocate to.
|
|
2492
|
+
*/
|
|
2493
|
+
trafficSource?: string | null;
|
|
2422
2494
|
/**
|
|
2423
2495
|
* Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * "1/min/{project\}" for quota per minute per project. Note: the order of unit components is insignificant. The "1" at the beginning is required to follow the metric unit syntax.
|
|
2424
2496
|
*/
|
|
@@ -2839,8 +2911,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
2839
2911
|
| BodyResponseCallback<Schema$Operation>
|
|
2840
2912
|
| BodyResponseCallback<Readable>,
|
|
2841
2913
|
callback?:
|
|
2842
|
-
|
|
2843
|
-
| BodyResponseCallback<Readable>
|
|
2914
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
2844
2915
|
):
|
|
2845
2916
|
| void
|
|
2846
2917
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -2967,8 +3038,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
2967
3038
|
list(
|
|
2968
3039
|
params: Params$Resource$Operations$List,
|
|
2969
3040
|
options:
|
|
2970
|
-
|
|
|
2971
|
-
| BodyResponseCallback<Schema$ListOperationsResponse>,
|
|
3041
|
+
MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>,
|
|
2972
3042
|
callback: BodyResponseCallback<Schema$ListOperationsResponse>
|
|
2973
3043
|
): void;
|
|
2974
3044
|
list(
|
|
@@ -3178,8 +3248,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3178
3248
|
| BodyResponseCallback<Schema$Operation>
|
|
3179
3249
|
| BodyResponseCallback<Readable>,
|
|
3180
3250
|
callback?:
|
|
3181
|
-
|
|
3182
|
-
| BodyResponseCallback<Readable>
|
|
3251
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3183
3252
|
):
|
|
3184
3253
|
| void
|
|
3185
3254
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -3328,8 +3397,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3328
3397
|
| BodyResponseCallback<Schema$Operation>
|
|
3329
3398
|
| BodyResponseCallback<Readable>,
|
|
3330
3399
|
callback?:
|
|
3331
|
-
|
|
3332
|
-
| BodyResponseCallback<Readable>
|
|
3400
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3333
3401
|
):
|
|
3334
3402
|
| void
|
|
3335
3403
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -3477,8 +3545,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3477
3545
|
| BodyResponseCallback<Schema$Operation>
|
|
3478
3546
|
| BodyResponseCallback<Readable>,
|
|
3479
3547
|
callback?:
|
|
3480
|
-
|
|
3481
|
-
| BodyResponseCallback<Readable>
|
|
3548
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3482
3549
|
):
|
|
3483
3550
|
| void
|
|
3484
3551
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -3622,8 +3689,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3622
3689
|
| BodyResponseCallback<Schema$Operation>
|
|
3623
3690
|
| BodyResponseCallback<Readable>,
|
|
3624
3691
|
callback?:
|
|
3625
|
-
|
|
3626
|
-
| BodyResponseCallback<Readable>
|
|
3692
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3627
3693
|
):
|
|
3628
3694
|
| void
|
|
3629
3695
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -3764,8 +3830,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3764
3830
|
| BodyResponseCallback<Schema$Service>
|
|
3765
3831
|
| BodyResponseCallback<Readable>,
|
|
3766
3832
|
callback?:
|
|
3767
|
-
|
|
3768
|
-
| BodyResponseCallback<Readable>
|
|
3833
|
+
BodyResponseCallback<Schema$Service> | BodyResponseCallback<Readable>
|
|
3769
3834
|
):
|
|
3770
3835
|
| void
|
|
3771
3836
|
| Promise<GaxiosResponseWithHTTP2<Schema$Service>>
|
|
@@ -3889,8 +3954,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3889
3954
|
list(
|
|
3890
3955
|
params: Params$Resource$Services$List,
|
|
3891
3956
|
options:
|
|
3892
|
-
|
|
|
3893
|
-
| BodyResponseCallback<Schema$ListServicesResponse>,
|
|
3957
|
+
MethodOptions | BodyResponseCallback<Schema$ListServicesResponse>,
|
|
3894
3958
|
callback: BodyResponseCallback<Schema$ListServicesResponse>
|
|
3895
3959
|
): void;
|
|
3896
3960
|
list(
|
|
@@ -4284,8 +4348,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
4284
4348
|
| BodyResponseCallback<Schema$Operation>
|
|
4285
4349
|
| BodyResponseCallback<Readable>,
|
|
4286
4350
|
callback?:
|
|
4287
|
-
|
|
4288
|
-
| BodyResponseCallback<Readable>
|
|
4351
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4289
4352
|
):
|
|
4290
4353
|
| void
|
|
4291
4354
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -4442,8 +4505,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
4442
4505
|
| BodyResponseCallback<Schema$Operation>
|
|
4443
4506
|
| BodyResponseCallback<Readable>,
|
|
4444
4507
|
callback?:
|
|
4445
|
-
|
|
4446
|
-
| BodyResponseCallback<Readable>
|
|
4508
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4447
4509
|
):
|
|
4448
4510
|
| void
|
|
4449
4511
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -4996,8 +5058,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
4996
5058
|
| BodyResponseCallback<Schema$Operation>
|
|
4997
5059
|
| BodyResponseCallback<Readable>,
|
|
4998
5060
|
callback?:
|
|
4999
|
-
|
|
5000
|
-
| BodyResponseCallback<Readable>
|
|
5061
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5001
5062
|
):
|
|
5002
5063
|
| void
|
|
5003
5064
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -5148,8 +5209,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
5148
5209
|
| BodyResponseCallback<Schema$Operation>
|
|
5149
5210
|
| BodyResponseCallback<Readable>,
|
|
5150
5211
|
callback?:
|
|
5151
|
-
|
|
5152
|
-
| BodyResponseCallback<Readable>
|
|
5212
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5153
5213
|
):
|
|
5154
5214
|
| void
|
|
5155
5215
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -5277,8 +5337,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
5277
5337
|
list(
|
|
5278
5338
|
params: Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$List,
|
|
5279
5339
|
options:
|
|
5280
|
-
|
|
|
5281
|
-
| BodyResponseCallback<Schema$ListAdminOverridesResponse>,
|
|
5340
|
+
MethodOptions | BodyResponseCallback<Schema$ListAdminOverridesResponse>,
|
|
5282
5341
|
callback: BodyResponseCallback<Schema$ListAdminOverridesResponse>
|
|
5283
5342
|
): void;
|
|
5284
5343
|
list(
|
|
@@ -5466,8 +5525,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
5466
5525
|
| BodyResponseCallback<Schema$Operation>
|
|
5467
5526
|
| BodyResponseCallback<Readable>,
|
|
5468
5527
|
callback?:
|
|
5469
|
-
|
|
5470
|
-
| BodyResponseCallback<Readable>
|
|
5528
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5471
5529
|
):
|
|
5472
5530
|
| void
|
|
5473
5531
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -5707,8 +5765,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
5707
5765
|
| BodyResponseCallback<Schema$Operation>
|
|
5708
5766
|
| BodyResponseCallback<Readable>,
|
|
5709
5767
|
callback?:
|
|
5710
|
-
|
|
5711
|
-
| BodyResponseCallback<Readable>
|
|
5768
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5712
5769
|
):
|
|
5713
5770
|
| void
|
|
5714
5771
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -5859,8 +5916,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
5859
5916
|
| BodyResponseCallback<Schema$Operation>
|
|
5860
5917
|
| BodyResponseCallback<Readable>,
|
|
5861
5918
|
callback?:
|
|
5862
|
-
|
|
5863
|
-
| BodyResponseCallback<Readable>
|
|
5919
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5864
5920
|
):
|
|
5865
5921
|
| void
|
|
5866
5922
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -6179,8 +6235,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
6179
6235
|
| BodyResponseCallback<Schema$Operation>
|
|
6180
6236
|
| BodyResponseCallback<Readable>,
|
|
6181
6237
|
callback?:
|
|
6182
|
-
|
|
6183
|
-
| BodyResponseCallback<Readable>
|
|
6238
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
6184
6239
|
):
|
|
6185
6240
|
| void
|
|
6186
6241
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|