@googleapis/serviceusage 22.0.0 → 23.1.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/v1.ts CHANGED
@@ -179,7 +179,7 @@ export namespace serviceusage_v1 {
179
179
  /**
180
180
  * Output only. Analysis result of updating a policy.
181
181
  */
182
- analysis?: Schema$AnalysisResult;
182
+ analysisResult?: Schema$AnalysisResult;
183
183
  /**
184
184
  * Output only. The type of analysis.
185
185
  */
@@ -633,11 +633,11 @@ export namespace serviceusage_v1 {
633
633
  */
634
634
  export interface Schema$ConsumerPolicy {
635
635
  /**
636
- * Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)
636
+ * Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.
637
637
  */
638
- annotations?: {[key: string]: string} | null;
638
+ createTime?: string | null;
639
639
  /**
640
- * Enable rules define usable services and service groups.
640
+ * Enable rules define usable services and groups. There can currently be at most one `EnableRule`. This restriction will be lifted in later releases.
641
641
  */
642
642
  enableRules?: Schema$EnableRule[];
643
643
  /**
@@ -645,11 +645,11 @@ export namespace serviceusage_v1 {
645
645
  */
646
646
  etag?: string | null;
647
647
  /**
648
- * Output only. The resource name of the policy. We only allow consumer policy name as `default` for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
648
+ * 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`.
649
649
  */
650
650
  name?: string | null;
651
651
  /**
652
- * The last-modified time.
652
+ * Output only. The time the policy was last updated.
653
653
  */
654
654
  updateTime?: string | null;
655
655
  }
@@ -914,7 +914,7 @@ export namespace serviceusage_v1 {
914
914
  serviceId?: string | null;
915
915
  }
916
916
  /**
917
- * The consumer policy rule that defines usable services and service groups.
917
+ * The consumer policy rule that defines enabled services and groups.
918
918
  */
919
919
  export interface Schema$EnableRule {
920
920
  /**
@@ -922,15 +922,11 @@ export namespace serviceusage_v1 {
922
922
  */
923
923
  enableType?: string | null;
924
924
  /**
925
- * DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of the service groups that are enabled (Not Implemented). Example: `groups/googleServices`.
926
- */
927
- groups?: string[] | null;
928
- /**
929
- * DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the services that are enabled. Example: `storage.googleapis.com`.
925
+ * The names of the services that are enabled. Example: `services/storage.googleapis.com`.
930
926
  */
931
927
  services?: string[] | null;
932
928
  /**
933
- * The names of the services or service groups that are enabled. Example: `services/storage.googleapis.com`, `groups/googleServices`, `groups/allServices`.
929
+ * 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`.
934
930
  */
935
931
  values?: string[] | null;
936
932
  }
@@ -1332,6 +1328,53 @@ export namespace serviceusage_v1 {
1332
1328
  */
1333
1329
  usage?: Schema$Usage;
1334
1330
  }
1331
+ /**
1332
+ * A message to group the analysis information.
1333
+ */
1334
+ export interface Schema$GoogleApiServiceusageV2alphaAnalysis {
1335
+ /**
1336
+ * Output only. Analysis result of updating a policy.
1337
+ */
1338
+ analysisResult?: Schema$GoogleApiServiceusageV2alphaAnalysisResult;
1339
+ /**
1340
+ * Output only. The type of analysis.
1341
+ */
1342
+ analysisType?: string | null;
1343
+ /**
1344
+ * Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc.
1345
+ */
1346
+ displayName?: string | null;
1347
+ /**
1348
+ * The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.
1349
+ */
1350
+ service?: string | null;
1351
+ }
1352
+ /**
1353
+ * An analysis result including blockers and warnings.
1354
+ */
1355
+ export interface Schema$GoogleApiServiceusageV2alphaAnalysisResult {
1356
+ /**
1357
+ * Blocking information that would prevent the policy changes at runtime.
1358
+ */
1359
+ blockers?: Schema$GoogleApiServiceusageV2alphaImpact[];
1360
+ /**
1361
+ * Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime.
1362
+ */
1363
+ warnings?: Schema$GoogleApiServiceusageV2alphaImpact[];
1364
+ }
1365
+ /**
1366
+ * Metadata for the `AnalyzeConsumerPolicy` method.
1367
+ */
1368
+ export interface Schema$GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata {}
1369
+ /**
1370
+ * The response of analyzing a consumer policy update.
1371
+ */
1372
+ export interface Schema$GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse {
1373
+ /**
1374
+ * 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.
1375
+ */
1376
+ analysis?: Schema$GoogleApiServiceusageV2alphaAnalysis[];
1377
+ }
1335
1378
  /**
1336
1379
  * Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.
1337
1380
  */
@@ -1370,6 +1413,23 @@ export namespace serviceusage_v1 {
1370
1413
  */
1371
1414
  services?: string[] | null;
1372
1415
  }
1416
+ /**
1417
+ * A message to group impacts of updating a policy.
1418
+ */
1419
+ export interface Schema$GoogleApiServiceusageV2alphaImpact {
1420
+ /**
1421
+ * Output only. User friendly impact detail in a free form message.
1422
+ */
1423
+ detail?: string | null;
1424
+ /**
1425
+ * Output only. The type of impact.
1426
+ */
1427
+ impactType?: string | null;
1428
+ /**
1429
+ * 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.
1430
+ */
1431
+ parent?: string | null;
1432
+ }
1373
1433
  /**
1374
1434
  * Metadata for the `UpdateConsumerPolicy` method.
1375
1435
  */
@@ -1607,9 +1667,9 @@ export namespace serviceusage_v1 {
1607
1667
  */
1608
1668
  impactType?: string | null;
1609
1669
  /**
1610
- * 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.
1670
+ * 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\}.`
1611
1671
  */
1612
- parent?: string | null;
1672
+ missingDependency?: string | null;
1613
1673
  }
1614
1674
  /**
1615
1675
  * Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.
@@ -1948,10 +2008,18 @@ export namespace serviceusage_v1 {
1948
2008
  * Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.
1949
2009
  */
1950
2010
  export interface Schema$MetricRule {
2011
+ /**
2012
+ * 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.
2013
+ */
2014
+ agenticMetricCosts?: {[key: string]: string} | null;
1951
2015
  /**
1952
2016
  * 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.
1953
2017
  */
1954
2018
  metricCosts?: {[key: string]: string} | null;
2019
+ /**
2020
+ * 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.
2021
+ */
2022
+ nonagenticMetricCosts?: {[key: string]: string} | null;
1955
2023
  /**
1956
2024
  * Selects the methods to which this rule applies. Refer to selector for syntax details.
1957
2025
  */
@@ -2231,6 +2299,10 @@ export namespace serviceusage_v1 {
2231
2299
  * 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.
2232
2300
  */
2233
2301
  name?: string | null;
2302
+ /**
2303
+ * 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.
2304
+ */
2305
+ trafficSource?: string | null;
2234
2306
  /**
2235
2307
  * 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.
2236
2308
  */
@@ -2576,8 +2648,7 @@ export namespace serviceusage_v1 {
2576
2648
  | BodyResponseCallback<Schema$Empty>
2577
2649
  | BodyResponseCallback<Readable>,
2578
2650
  callback?:
2579
- | BodyResponseCallback<Schema$Empty>
2580
- | BodyResponseCallback<Readable>
2651
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
2581
2652
  ):
2582
2653
  | void
2583
2654
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -2711,8 +2782,7 @@ export namespace serviceusage_v1 {
2711
2782
  | BodyResponseCallback<Schema$Empty>
2712
2783
  | BodyResponseCallback<Readable>,
2713
2784
  callback?:
2714
- | BodyResponseCallback<Schema$Empty>
2715
- | BodyResponseCallback<Readable>
2785
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
2716
2786
  ):
2717
2787
  | void
2718
2788
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -2852,8 +2922,7 @@ export namespace serviceusage_v1 {
2852
2922
  | BodyResponseCallback<Schema$Operation>
2853
2923
  | BodyResponseCallback<Readable>,
2854
2924
  callback?:
2855
- | BodyResponseCallback<Schema$Operation>
2856
- | BodyResponseCallback<Readable>
2925
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2857
2926
  ):
2858
2927
  | void
2859
2928
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -2980,8 +3049,7 @@ export namespace serviceusage_v1 {
2980
3049
  list(
2981
3050
  params: Params$Resource$Operations$List,
2982
3051
  options:
2983
- | MethodOptions
2984
- | BodyResponseCallback<Schema$ListOperationsResponse>,
3052
+ MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>,
2985
3053
  callback: BodyResponseCallback<Schema$ListOperationsResponse>
2986
3054
  ): void;
2987
3055
  list(
@@ -3201,8 +3269,7 @@ export namespace serviceusage_v1 {
3201
3269
  | BodyResponseCallback<Schema$Operation>
3202
3270
  | BodyResponseCallback<Readable>,
3203
3271
  callback?:
3204
- | BodyResponseCallback<Schema$Operation>
3205
- | BodyResponseCallback<Readable>
3272
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3206
3273
  ):
3207
3274
  | void
3208
3275
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3325,8 +3392,7 @@ export namespace serviceusage_v1 {
3325
3392
  batchGet(
3326
3393
  params: Params$Resource$Services$Batchget,
3327
3394
  options:
3328
- | MethodOptions
3329
- | BodyResponseCallback<Schema$BatchGetServicesResponse>,
3395
+ MethodOptions | BodyResponseCallback<Schema$BatchGetServicesResponse>,
3330
3396
  callback: BodyResponseCallback<Schema$BatchGetServicesResponse>
3331
3397
  ): void;
3332
3398
  batchGet(
@@ -3500,8 +3566,7 @@ export namespace serviceusage_v1 {
3500
3566
  | BodyResponseCallback<Schema$Operation>
3501
3567
  | BodyResponseCallback<Readable>,
3502
3568
  callback?:
3503
- | BodyResponseCallback<Schema$Operation>
3504
- | BodyResponseCallback<Readable>
3569
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3505
3570
  ):
3506
3571
  | void
3507
3572
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3649,8 +3714,7 @@ export namespace serviceusage_v1 {
3649
3714
  | BodyResponseCallback<Schema$Operation>
3650
3715
  | BodyResponseCallback<Readable>,
3651
3716
  callback?:
3652
- | BodyResponseCallback<Schema$Operation>
3653
- | BodyResponseCallback<Readable>
3717
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3654
3718
  ):
3655
3719
  | void
3656
3720
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3919,8 +3983,7 @@ export namespace serviceusage_v1 {
3919
3983
  list(
3920
3984
  params: Params$Resource$Services$List,
3921
3985
  options:
3922
- | MethodOptions
3923
- | BodyResponseCallback<Schema$ListServicesResponse>,
3986
+ MethodOptions | BodyResponseCallback<Schema$ListServicesResponse>,
3924
3987
  callback: BodyResponseCallback<Schema$ListServicesResponse>
3925
3988
  ): void;
3926
3989
  list(
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
- analysis?: Schema$AnalysisResult;
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
- * Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)
623
+ * Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.
624
624
  */
625
- annotations?: {[key: string]: string} | null;
625
+ createTime?: string | null;
626
626
  /**
627
- * Enable rules define usable services and service groups.
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. We only allow consumer policy name as `default` for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
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-modified time.
639
+ * Output only. The time the policy was last updated.
640
640
  */
641
641
  updateTime?: string | null;
642
642
  }
@@ -668,6 +668,10 @@ export namespace serviceusage_v1beta1 {
668
668
  * List of all supported locations. This field is present only if the limit has a {region\} or {zone\} dimension.
669
669
  */
670
670
  supportedLocations?: string[] | null;
671
+ /**
672
+ * Indicates the traffic type attribution for this quota limit (e.g. agentic). This is an informational field used to categorize and filter the quota limits.
673
+ */
674
+ trafficSource?: string | null;
671
675
  /**
672
676
  * The limit unit. 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.
673
677
  */
@@ -954,7 +958,7 @@ export namespace serviceusage_v1beta1 {
954
958
  serviceId?: string | null;
955
959
  }
956
960
  /**
957
- * The consumer policy rule that defines usable services and service groups.
961
+ * The consumer policy rule that defines enabled services and groups.
958
962
  */
959
963
  export interface Schema$EnableRule {
960
964
  /**
@@ -962,15 +966,11 @@ export namespace serviceusage_v1beta1 {
962
966
  */
963
967
  enableType?: string | null;
964
968
  /**
965
- * DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of the service groups that are enabled (Not Implemented). Example: `groups/googleServices`.
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`.
969
+ * The names of the services that are enabled. Example: `services/storage.googleapis.com`.
970
970
  */
971
971
  services?: string[] | null;
972
972
  /**
973
- * The names of the services or service groups that are enabled. Example: `services/storage.googleapis.com`, `groups/googleServices`, `groups/allServices`.
973
+ * 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
974
  */
975
975
  values?: string[] | null;
976
976
  }
@@ -1372,6 +1372,53 @@ export namespace serviceusage_v1beta1 {
1372
1372
  */
1373
1373
  usage?: Schema$Usage;
1374
1374
  }
1375
+ /**
1376
+ * A message to group the analysis information.
1377
+ */
1378
+ export interface Schema$GoogleApiServiceusageV2alphaAnalysis {
1379
+ /**
1380
+ * Output only. Analysis result of updating a policy.
1381
+ */
1382
+ analysisResult?: Schema$GoogleApiServiceusageV2alphaAnalysisResult;
1383
+ /**
1384
+ * Output only. The type of analysis.
1385
+ */
1386
+ analysisType?: string | null;
1387
+ /**
1388
+ * Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc.
1389
+ */
1390
+ displayName?: string | null;
1391
+ /**
1392
+ * The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.
1393
+ */
1394
+ service?: string | null;
1395
+ }
1396
+ /**
1397
+ * An analysis result including blockers and warnings.
1398
+ */
1399
+ export interface Schema$GoogleApiServiceusageV2alphaAnalysisResult {
1400
+ /**
1401
+ * Blocking information that would prevent the policy changes at runtime.
1402
+ */
1403
+ blockers?: Schema$GoogleApiServiceusageV2alphaImpact[];
1404
+ /**
1405
+ * Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime.
1406
+ */
1407
+ warnings?: Schema$GoogleApiServiceusageV2alphaImpact[];
1408
+ }
1409
+ /**
1410
+ * Metadata for the `AnalyzeConsumerPolicy` method.
1411
+ */
1412
+ export interface Schema$GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata {}
1413
+ /**
1414
+ * The response of analyzing a consumer policy update.
1415
+ */
1416
+ export interface Schema$GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse {
1417
+ /**
1418
+ * 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.
1419
+ */
1420
+ analysis?: Schema$GoogleApiServiceusageV2alphaAnalysis[];
1421
+ }
1375
1422
  /**
1376
1423
  * Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.
1377
1424
  */
@@ -1410,6 +1457,23 @@ export namespace serviceusage_v1beta1 {
1410
1457
  */
1411
1458
  services?: string[] | null;
1412
1459
  }
1460
+ /**
1461
+ * A message to group impacts of updating a policy.
1462
+ */
1463
+ export interface Schema$GoogleApiServiceusageV2alphaImpact {
1464
+ /**
1465
+ * Output only. User friendly impact detail in a free form message.
1466
+ */
1467
+ detail?: string | null;
1468
+ /**
1469
+ * Output only. The type of impact.
1470
+ */
1471
+ impactType?: string | null;
1472
+ /**
1473
+ * 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.
1474
+ */
1475
+ parent?: string | null;
1476
+ }
1413
1477
  /**
1414
1478
  * Metadata for the `UpdateConsumerPolicy` method.
1415
1479
  */
@@ -1647,9 +1711,9 @@ export namespace serviceusage_v1beta1 {
1647
1711
  */
1648
1712
  impactType?: string | null;
1649
1713
  /**
1650
- * 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.
1714
+ * 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
1715
  */
1652
- parent?: string | null;
1716
+ missingDependency?: string | null;
1653
1717
  }
1654
1718
  /**
1655
1719
  * Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.
@@ -2061,10 +2125,18 @@ export namespace serviceusage_v1beta1 {
2061
2125
  * 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
2126
  */
2063
2127
  export interface Schema$MetricRule {
2128
+ /**
2129
+ * 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.
2130
+ */
2131
+ agenticMetricCosts?: {[key: string]: string} | null;
2064
2132
  /**
2065
2133
  * 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
2134
  */
2067
2135
  metricCosts?: {[key: string]: string} | null;
2136
+ /**
2137
+ * 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.
2138
+ */
2139
+ nonagenticMetricCosts?: {[key: string]: string} | null;
2068
2140
  /**
2069
2141
  * Selects the methods to which this rule applies. Refer to selector for syntax details.
2070
2142
  */
@@ -2419,6 +2491,10 @@ export namespace serviceusage_v1beta1 {
2419
2491
  * 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
2492
  */
2421
2493
  name?: string | null;
2494
+ /**
2495
+ * 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.
2496
+ */
2497
+ trafficSource?: string | null;
2422
2498
  /**
2423
2499
  * 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
2500
  */
@@ -2839,8 +2915,7 @@ export namespace serviceusage_v1beta1 {
2839
2915
  | BodyResponseCallback<Schema$Operation>
2840
2916
  | BodyResponseCallback<Readable>,
2841
2917
  callback?:
2842
- | BodyResponseCallback<Schema$Operation>
2843
- | BodyResponseCallback<Readable>
2918
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2844
2919
  ):
2845
2920
  | void
2846
2921
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -2967,8 +3042,7 @@ export namespace serviceusage_v1beta1 {
2967
3042
  list(
2968
3043
  params: Params$Resource$Operations$List,
2969
3044
  options:
2970
- | MethodOptions
2971
- | BodyResponseCallback<Schema$ListOperationsResponse>,
3045
+ MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>,
2972
3046
  callback: BodyResponseCallback<Schema$ListOperationsResponse>
2973
3047
  ): void;
2974
3048
  list(
@@ -3178,8 +3252,7 @@ export namespace serviceusage_v1beta1 {
3178
3252
  | BodyResponseCallback<Schema$Operation>
3179
3253
  | BodyResponseCallback<Readable>,
3180
3254
  callback?:
3181
- | BodyResponseCallback<Schema$Operation>
3182
- | BodyResponseCallback<Readable>
3255
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3183
3256
  ):
3184
3257
  | void
3185
3258
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3328,8 +3401,7 @@ export namespace serviceusage_v1beta1 {
3328
3401
  | BodyResponseCallback<Schema$Operation>
3329
3402
  | BodyResponseCallback<Readable>,
3330
3403
  callback?:
3331
- | BodyResponseCallback<Schema$Operation>
3332
- | BodyResponseCallback<Readable>
3404
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3333
3405
  ):
3334
3406
  | void
3335
3407
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3477,8 +3549,7 @@ export namespace serviceusage_v1beta1 {
3477
3549
  | BodyResponseCallback<Schema$Operation>
3478
3550
  | BodyResponseCallback<Readable>,
3479
3551
  callback?:
3480
- | BodyResponseCallback<Schema$Operation>
3481
- | BodyResponseCallback<Readable>
3552
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3482
3553
  ):
3483
3554
  | void
3484
3555
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3622,8 +3693,7 @@ export namespace serviceusage_v1beta1 {
3622
3693
  | BodyResponseCallback<Schema$Operation>
3623
3694
  | BodyResponseCallback<Readable>,
3624
3695
  callback?:
3625
- | BodyResponseCallback<Schema$Operation>
3626
- | BodyResponseCallback<Readable>
3696
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3627
3697
  ):
3628
3698
  | void
3629
3699
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3764,8 +3834,7 @@ export namespace serviceusage_v1beta1 {
3764
3834
  | BodyResponseCallback<Schema$Service>
3765
3835
  | BodyResponseCallback<Readable>,
3766
3836
  callback?:
3767
- | BodyResponseCallback<Schema$Service>
3768
- | BodyResponseCallback<Readable>
3837
+ BodyResponseCallback<Schema$Service> | BodyResponseCallback<Readable>
3769
3838
  ):
3770
3839
  | void
3771
3840
  | Promise<GaxiosResponseWithHTTP2<Schema$Service>>
@@ -3889,8 +3958,7 @@ export namespace serviceusage_v1beta1 {
3889
3958
  list(
3890
3959
  params: Params$Resource$Services$List,
3891
3960
  options:
3892
- | MethodOptions
3893
- | BodyResponseCallback<Schema$ListServicesResponse>,
3961
+ MethodOptions | BodyResponseCallback<Schema$ListServicesResponse>,
3894
3962
  callback: BodyResponseCallback<Schema$ListServicesResponse>
3895
3963
  ): void;
3896
3964
  list(
@@ -4284,8 +4352,7 @@ export namespace serviceusage_v1beta1 {
4284
4352
  | BodyResponseCallback<Schema$Operation>
4285
4353
  | BodyResponseCallback<Readable>,
4286
4354
  callback?:
4287
- | BodyResponseCallback<Schema$Operation>
4288
- | BodyResponseCallback<Readable>
4355
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4289
4356
  ):
4290
4357
  | void
4291
4358
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -4442,8 +4509,7 @@ export namespace serviceusage_v1beta1 {
4442
4509
  | BodyResponseCallback<Schema$Operation>
4443
4510
  | BodyResponseCallback<Readable>,
4444
4511
  callback?:
4445
- | BodyResponseCallback<Schema$Operation>
4446
- | BodyResponseCallback<Readable>
4512
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4447
4513
  ):
4448
4514
  | void
4449
4515
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -4766,6 +4832,7 @@ export namespace serviceusage_v1beta1 {
4766
4832
  * // "name": "my_name",
4767
4833
  * // "quotaBuckets": [],
4768
4834
  * // "supportedLocations": [],
4835
+ * // "trafficSource": "my_trafficSource",
4769
4836
  * // "unit": "my_unit"
4770
4837
  * // }
4771
4838
  * }
@@ -4996,8 +5063,7 @@ export namespace serviceusage_v1beta1 {
4996
5063
  | BodyResponseCallback<Schema$Operation>
4997
5064
  | BodyResponseCallback<Readable>,
4998
5065
  callback?:
4999
- | BodyResponseCallback<Schema$Operation>
5000
- | BodyResponseCallback<Readable>
5066
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5001
5067
  ):
5002
5068
  | void
5003
5069
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5148,8 +5214,7 @@ export namespace serviceusage_v1beta1 {
5148
5214
  | BodyResponseCallback<Schema$Operation>
5149
5215
  | BodyResponseCallback<Readable>,
5150
5216
  callback?:
5151
- | BodyResponseCallback<Schema$Operation>
5152
- | BodyResponseCallback<Readable>
5217
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5153
5218
  ):
5154
5219
  | void
5155
5220
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5277,8 +5342,7 @@ export namespace serviceusage_v1beta1 {
5277
5342
  list(
5278
5343
  params: Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$List,
5279
5344
  options:
5280
- | MethodOptions
5281
- | BodyResponseCallback<Schema$ListAdminOverridesResponse>,
5345
+ MethodOptions | BodyResponseCallback<Schema$ListAdminOverridesResponse>,
5282
5346
  callback: BodyResponseCallback<Schema$ListAdminOverridesResponse>
5283
5347
  ): void;
5284
5348
  list(
@@ -5466,8 +5530,7 @@ export namespace serviceusage_v1beta1 {
5466
5530
  | BodyResponseCallback<Schema$Operation>
5467
5531
  | BodyResponseCallback<Readable>,
5468
5532
  callback?:
5469
- | BodyResponseCallback<Schema$Operation>
5470
- | BodyResponseCallback<Readable>
5533
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5471
5534
  ):
5472
5535
  | void
5473
5536
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5707,8 +5770,7 @@ export namespace serviceusage_v1beta1 {
5707
5770
  | BodyResponseCallback<Schema$Operation>
5708
5771
  | BodyResponseCallback<Readable>,
5709
5772
  callback?:
5710
- | BodyResponseCallback<Schema$Operation>
5711
- | BodyResponseCallback<Readable>
5773
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5712
5774
  ):
5713
5775
  | void
5714
5776
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5859,8 +5921,7 @@ export namespace serviceusage_v1beta1 {
5859
5921
  | BodyResponseCallback<Schema$Operation>
5860
5922
  | BodyResponseCallback<Readable>,
5861
5923
  callback?:
5862
- | BodyResponseCallback<Schema$Operation>
5863
- | BodyResponseCallback<Readable>
5924
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5864
5925
  ):
5865
5926
  | void
5866
5927
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6179,8 +6240,7 @@ export namespace serviceusage_v1beta1 {
6179
6240
  | BodyResponseCallback<Schema$Operation>
6180
6241
  | BodyResponseCallback<Readable>,
6181
6242
  callback?:
6182
- | BodyResponseCallback<Schema$Operation>
6183
- | BodyResponseCallback<Readable>
6243
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6184
6244
  ):
6185
6245
  | void
6186
6246
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>