@googleapis/serviceusage 1.0.0 → 3.2.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/v1beta1.ts CHANGED
@@ -248,7 +248,7 @@ export namespace serviceusage_v1beta1 {
248
248
  */
249
249
  jwksUri?: string | null;
250
250
  /**
251
- * Defines the locations to extract the JWT. JWT locations can be either from HTTP headers or URL query parameters. The rule is that the first match wins. The checking order is: checking all headers first, then URL query parameters. If not specified, default to use following 3 locations: 1) Authorization: Bearer 2) x-goog-iap-jwt-assertion 3) access_token query parameter Default locations can be specified as followings: jwt_locations: - header: Authorization value_prefix: "Bearer " - header: x-goog-iap-jwt-assertion - query: access_token
251
+ * Defines the locations to extract the JWT. For now it is only used by the Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) JWT locations can be one of HTTP headers, URL query parameters or cookies. The rule is that the first match wins. If not specified, default to use following 3 locations: 1) Authorization: Bearer 2) x-goog-iap-jwt-assertion 3) access_token query parameter Default locations can be specified as followings: jwt_locations: - header: Authorization value_prefix: "Bearer " - header: x-goog-iap-jwt-assertion - query: access_token
252
252
  */
253
253
  jwtLocations?: Schema$JwtLocation[];
254
254
  }
@@ -294,10 +294,6 @@ export namespace serviceusage_v1beta1 {
294
294
  * The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend.
295
295
  */
296
296
  jwtAudience?: string | null;
297
- /**
298
- * Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
299
- */
300
- minDeadline?: number | null;
301
297
  /**
302
298
  * The number of seconds to wait for the completion of a long running operation. The default is no deadline.
303
299
  */
@@ -398,6 +394,10 @@ export namespace serviceusage_v1beta1 {
398
394
  * Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
399
395
  */
400
396
  quotaBuckets?: Schema$QuotaBucket[];
397
+ /**
398
+ * List of all supported locations. This field is present only if the limit has a {region\} or {zone\} dimension.
399
+ */
400
+ supportedLocations?: string[] | null;
401
401
  /**
402
402
  * 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.
403
403
  */
@@ -467,11 +467,11 @@ export namespace serviceusage_v1beta1 {
467
467
  selector?: string | null;
468
468
  }
469
469
  /**
470
- * Selects and configures the service controller used by the service. The service controller handles features like abuse, quota, billing, logging, monitoring, etc.
470
+ * Selects and configures the service controller used by the service. The service controller handles two things: - **What is allowed:** for each API request, Chemist checks the project status, activation status, abuse status, billing status, service status, location restrictions, VPC Service Controls, SuperQuota, and other policies. - **What has happened:** for each API response, Chemist reports the telemetry data to analytics, auditing, billing, eventing, logging, monitoring, sawmill, and tracing. Chemist also accepts telemetry data not associated with API traffic, such as billing metrics. Example: control: environment: servicecontrol.googleapis.com
471
471
  */
472
472
  export interface Schema$Control {
473
473
  /**
474
- * The service control environment to use. If empty, no control plane feature (like quota and billing) will be enabled.
474
+ * The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com
475
475
  */
476
476
  environment?: string | null;
477
477
  }
@@ -560,7 +560,7 @@ export namespace serviceusage_v1beta1 {
560
560
  */
561
561
  serviceRootUrl?: string | null;
562
562
  /**
563
- * A short summary of what the service does. Can only be provided by plain text.
563
+ * A short description of what the service does. The summary must be plain text. It becomes the overview of the service displayed in Google Cloud Console. NOTE: This field is equivalent to the standard field `description`.
564
564
  */
565
565
  summary?: string | null;
566
566
  }
@@ -573,16 +573,16 @@ export namespace serviceusage_v1beta1 {
573
573
  */
574
574
  deprecationDescription?: string | null;
575
575
  /**
576
- * Description of the selected API(s).
576
+ * Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
577
577
  */
578
578
  description?: string | null;
579
579
  /**
580
- * The selector is a comma-separated list of patterns. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
580
+ * The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
581
581
  */
582
582
  selector?: string | null;
583
583
  }
584
584
  /**
585
- * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
585
+ * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
586
586
  */
587
587
  export interface Schema$Empty {}
588
588
  /**
@@ -612,7 +612,7 @@ export namespace serviceusage_v1beta1 {
612
612
  service?: Schema$GoogleApiServiceusageV1Service;
613
613
  }
614
614
  /**
615
- * `Endpoint` describes a network endpoint of a service that serves a set of APIs. It is commonly known as a service endpoint. A service may expose any number of service endpoints, and all service endpoints share the same service definition, such as quota limits and monitoring metrics. Example service configuration: name: library-example.googleapis.com endpoints: # Below entry makes 'google.example.library.v1.Library' # API be served from endpoint address library-example.googleapis.com. # It also allows HTTP OPTIONS calls to be passed to the backend, for # it to decide whether the subsequent cross-origin request is # allowed to proceed. - name: library-example.googleapis.com allow_cors: true
615
+ * `Endpoint` describes a network address of a service that serves a set of APIs. It is commonly known as a service endpoint. A service may expose any number of service endpoints, and all service endpoints share the same service definition, such as quota limits and monitoring metrics. Example: type: google.api.Service name: library-example.googleapis.com endpoints: # Declares network address `https://library-example.googleapis.com` # for service `library-example.googleapis.com`. The `https` scheme # is implicit for all service endpoints. Other schemes may be # supported in the future. - name: library-example.googleapis.com allow_cors: false - name: content-staging-library-example.googleapis.com # Allows HTTP OPTIONS calls to be passed to the API frontend, for it # to decide whether the subsequent cross-origin request is allowed # to proceed. allow_cors: true
616
616
  */
617
617
  export interface Schema$Endpoint {
618
618
  /**
@@ -733,7 +733,7 @@ export namespace serviceusage_v1beta1 {
733
733
  state?: string | null;
734
734
  }
735
735
  /**
736
- * `Service` is the root object of Google service configuration schema. It describes basic information about a service, such as the name and the title, and delegates other aspects to sub-sections. Each sub-section is either a proto message or a repeated proto message that configures a specific aspect, such as auth. See each proto message definition for details. Example: type: google.api.Service name: calendar.googleapis.com title: Google Calendar API apis: - name: google.calendar.v3.Calendar authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: "*" requirements: provider_id: google_calendar_auth
736
+ * `Service` is the root object of Google API service configuration (service config). It describes the basic information about a logical service, such as the service name and the user-facing title, and delegates other aspects to sub-sections. Each sub-section is either a proto message or a repeated proto message that configures a specific aspect, such as auth. For more information, see each proto message definition. Example: type: google.api.Service name: calendar.googleapis.com title: Google Calendar API apis: - name: google.calendar.v3.Calendar visibility: rules: - selector: "google.calendar.v3.*" restriction: PREVIEW backend: rules: - selector: "google.calendar.v3.*" address: calendar.example.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: "*" requirements: provider_id: google_calendar_auth
737
737
  */
738
738
  export interface Schema$GoogleApiService {
739
739
  /**
@@ -777,7 +777,7 @@ export namespace serviceusage_v1beta1 {
777
777
  */
778
778
  endpoints?: Schema$Endpoint[];
779
779
  /**
780
- * A list of all enum types included in this API service. Enums referenced directly or indirectly by the `apis` are automatically included. Enums which are not referenced but shall be included should be listed here by name. Example: enums: - name: google.someapi.v1.SomeEnum
780
+ * A list of all enum types included in this API service. Enums referenced directly or indirectly by the `apis` are automatically included. Enums which are not referenced but shall be included should be listed here by name by the configuration author. Example: enums: - name: google.someapi.v1.SomeEnum
781
781
  */
782
782
  enums?: Schema$Enum[];
783
783
  /**
@@ -833,11 +833,11 @@ export namespace serviceusage_v1beta1 {
833
833
  */
834
834
  systemTypes?: Schema$Type[];
835
835
  /**
836
- * The product title for this service.
836
+ * The product title for this service, it is the name displayed in Google Cloud Console.
837
837
  */
838
838
  title?: string | null;
839
839
  /**
840
- * A list of all proto message types included in this API service. Types referenced directly or indirectly by the `apis` are automatically included. Messages which are not referenced but shall be included, such as types used by the `google.protobuf.Any` type, should be listed here by name. Example: types: - name: google.protobuf.Int32
840
+ * A list of all proto message types included in this API service. Types referenced directly or indirectly by the `apis` are automatically included. Messages which are not referenced but shall be included, such as types used by the `google.protobuf.Any` type, should be listed here by name by the configuration author. Example: types: - name: google.protobuf.Int32
841
841
  */
842
842
  types?: Schema$Type[];
843
843
  /**
@@ -1081,6 +1081,10 @@ export namespace serviceusage_v1beta1 {
1081
1081
  * Specifies a location to extract JWT from an API request.
1082
1082
  */
1083
1083
  export interface Schema$JwtLocation {
1084
+ /**
1085
+ * Specifies cookie name to extract JWT token.
1086
+ */
1087
+ cookie?: string | null;
1084
1088
  /**
1085
1089
  * Specifies HTTP header name to extract JWT token.
1086
1090
  */
@@ -1373,7 +1377,7 @@ export namespace serviceusage_v1beta1 {
1373
1377
  */
1374
1378
  name?: string | null;
1375
1379
  /**
1376
- * Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL.
1380
+ * Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. For a list of types, see [Monitoring resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list).
1377
1381
  */
1378
1382
  type?: string | null;
1379
1383
  }
@@ -1473,7 +1477,7 @@ export namespace serviceusage_v1beta1 {
1473
1477
  */
1474
1478
  export interface Schema$Page {
1475
1479
  /**
1476
- * The Markdown content of the page. You can use (== include {path\} ==) to include content from a Markdown file.
1480
+ * The Markdown content of the page. You can use (== include {path\} ==) to include content from a Markdown file. The content can be used to produce the documentation page such as HTML format page.
1477
1481
  */
1478
1482
  content?: string | null;
1479
1483
  /**
@@ -1846,7 +1850,10 @@ export namespace serviceusage_v1beta1 {
1846
1850
  * async function main() {
1847
1851
  * const auth = new google.auth.GoogleAuth({
1848
1852
  * // Scopes can be specified either as an array or as a single, space-delimited string.
1849
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1853
+ * scopes: [
1854
+ * 'https://www.googleapis.com/auth/cloud-platform',
1855
+ * 'https://www.googleapis.com/auth/service.management',
1856
+ * ],
1850
1857
  * });
1851
1858
  *
1852
1859
  * // Acquire an auth client, and bind it to all future calls
@@ -1975,7 +1982,10 @@ export namespace serviceusage_v1beta1 {
1975
1982
  * async function main() {
1976
1983
  * const auth = new google.auth.GoogleAuth({
1977
1984
  * // Scopes can be specified either as an array or as a single, space-delimited string.
1978
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1985
+ * scopes: [
1986
+ * 'https://www.googleapis.com/auth/cloud-platform',
1987
+ * 'https://www.googleapis.com/auth/service.management',
1988
+ * ],
1979
1989
  * });
1980
1990
  *
1981
1991
  * // Acquire an auth client, and bind it to all future calls
@@ -2151,7 +2161,10 @@ export namespace serviceusage_v1beta1 {
2151
2161
  * async function main() {
2152
2162
  * const auth = new google.auth.GoogleAuth({
2153
2163
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2154
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2164
+ * scopes: [
2165
+ * 'https://www.googleapis.com/auth/cloud-platform',
2166
+ * 'https://www.googleapis.com/auth/service.management',
2167
+ * ],
2155
2168
  * });
2156
2169
  *
2157
2170
  * // Acquire an auth client, and bind it to all future calls
@@ -2292,7 +2305,10 @@ export namespace serviceusage_v1beta1 {
2292
2305
  * async function main() {
2293
2306
  * const auth = new google.auth.GoogleAuth({
2294
2307
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2295
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2308
+ * scopes: [
2309
+ * 'https://www.googleapis.com/auth/cloud-platform',
2310
+ * 'https://www.googleapis.com/auth/service.management',
2311
+ * ],
2296
2312
  * });
2297
2313
  *
2298
2314
  * // Acquire an auth client, and bind it to all future calls
@@ -2430,7 +2446,10 @@ export namespace serviceusage_v1beta1 {
2430
2446
  * async function main() {
2431
2447
  * const auth = new google.auth.GoogleAuth({
2432
2448
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2433
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2449
+ * scopes: [
2450
+ * 'https://www.googleapis.com/auth/cloud-platform',
2451
+ * 'https://www.googleapis.com/auth/service.management',
2452
+ * ],
2434
2453
  * });
2435
2454
  *
2436
2455
  * // Acquire an auth client, and bind it to all future calls
@@ -2568,7 +2587,10 @@ export namespace serviceusage_v1beta1 {
2568
2587
  * async function main() {
2569
2588
  * const auth = new google.auth.GoogleAuth({
2570
2589
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2571
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2590
+ * scopes: [
2591
+ * 'https://www.googleapis.com/auth/cloud-platform',
2592
+ * 'https://www.googleapis.com/auth/service.management',
2593
+ * ],
2572
2594
  * });
2573
2595
  *
2574
2596
  * // Acquire an auth client, and bind it to all future calls
@@ -2702,7 +2724,10 @@ export namespace serviceusage_v1beta1 {
2702
2724
  * async function main() {
2703
2725
  * const auth = new google.auth.GoogleAuth({
2704
2726
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2705
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2727
+ * scopes: [
2728
+ * 'https://www.googleapis.com/auth/cloud-platform',
2729
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2730
+ * ],
2706
2731
  * });
2707
2732
  *
2708
2733
  * // Acquire an auth client, and bind it to all future calls
@@ -2830,7 +2855,10 @@ export namespace serviceusage_v1beta1 {
2830
2855
  * async function main() {
2831
2856
  * const auth = new google.auth.GoogleAuth({
2832
2857
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2833
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2858
+ * scopes: [
2859
+ * 'https://www.googleapis.com/auth/cloud-platform',
2860
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2861
+ * ],
2834
2862
  * });
2835
2863
  *
2836
2864
  * // Acquire an auth client, and bind it to all future calls
@@ -3047,7 +3075,10 @@ export namespace serviceusage_v1beta1 {
3047
3075
  * async function main() {
3048
3076
  * const auth = new google.auth.GoogleAuth({
3049
3077
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3050
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3078
+ * scopes: [
3079
+ * 'https://www.googleapis.com/auth/cloud-platform',
3080
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3081
+ * ],
3051
3082
  * });
3052
3083
  *
3053
3084
  * // Acquire an auth client, and bind it to all future calls
@@ -3057,8 +3088,7 @@ export namespace serviceusage_v1beta1 {
3057
3088
  * // Do the magic
3058
3089
  * const res = await serviceusage.services.consumerQuotaMetrics.get({
3059
3090
  * // The resource name of the quota limit. An example name would be: `projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests`
3060
- * name:
3061
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric',
3091
+ * name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric',
3062
3092
  * // Specifies the level of detail for quota information in the response.
3063
3093
  * view: 'placeholder-value',
3064
3094
  * });
@@ -3184,7 +3214,10 @@ export namespace serviceusage_v1beta1 {
3184
3214
  * async function main() {
3185
3215
  * const auth = new google.auth.GoogleAuth({
3186
3216
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3187
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3217
+ * scopes: [
3218
+ * 'https://www.googleapis.com/auth/cloud-platform',
3219
+ * 'https://www.googleapis.com/auth/service.management',
3220
+ * ],
3188
3221
  * });
3189
3222
  *
3190
3223
  * // Acquire an auth client, and bind it to all future calls
@@ -3192,8 +3225,8 @@ export namespace serviceusage_v1beta1 {
3192
3225
  * google.options({auth: authClient});
3193
3226
  *
3194
3227
  * // Do the magic
3195
- * const res = await serviceusage.services.consumerQuotaMetrics.importAdminOverrides(
3196
- * {
3228
+ * const res =
3229
+ * await serviceusage.services.consumerQuotaMetrics.importAdminOverrides({
3197
3230
  * // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
3198
3231
  * parent: '[^/]+/[^/]+/services/my-service',
3199
3232
  *
@@ -3206,8 +3239,7 @@ export namespace serviceusage_v1beta1 {
3206
3239
  * // "inlineSource": {}
3207
3240
  * // }
3208
3241
  * },
3209
- * }
3210
- * );
3242
+ * });
3211
3243
  * console.log(res.data);
3212
3244
  *
3213
3245
  * // Example response
@@ -3277,7 +3309,8 @@ export namespace serviceusage_v1beta1 {
3277
3309
 
3278
3310
  if (typeof paramsOrCallback === 'function') {
3279
3311
  callback = paramsOrCallback;
3280
- params = {} as Params$Resource$Services$Consumerquotametrics$Importadminoverrides;
3312
+ params =
3313
+ {} as Params$Resource$Services$Consumerquotametrics$Importadminoverrides;
3281
3314
  options = {};
3282
3315
  }
3283
3316
 
@@ -3331,7 +3364,10 @@ export namespace serviceusage_v1beta1 {
3331
3364
  * async function main() {
3332
3365
  * const auth = new google.auth.GoogleAuth({
3333
3366
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3334
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3367
+ * scopes: [
3368
+ * 'https://www.googleapis.com/auth/cloud-platform',
3369
+ * 'https://www.googleapis.com/auth/service.management',
3370
+ * ],
3335
3371
  * });
3336
3372
  *
3337
3373
  * // Acquire an auth client, and bind it to all future calls
@@ -3339,8 +3375,8 @@ export namespace serviceusage_v1beta1 {
3339
3375
  * google.options({auth: authClient});
3340
3376
  *
3341
3377
  * // Do the magic
3342
- * const res = await serviceusage.services.consumerQuotaMetrics.importConsumerOverrides(
3343
- * {
3378
+ * const res =
3379
+ * await serviceusage.services.consumerQuotaMetrics.importConsumerOverrides({
3344
3380
  * // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
3345
3381
  * parent: '[^/]+/[^/]+/services/my-service',
3346
3382
  *
@@ -3353,8 +3389,7 @@ export namespace serviceusage_v1beta1 {
3353
3389
  * // "inlineSource": {}
3354
3390
  * // }
3355
3391
  * },
3356
- * }
3357
- * );
3392
+ * });
3358
3393
  * console.log(res.data);
3359
3394
  *
3360
3395
  * // Example response
@@ -3424,7 +3459,8 @@ export namespace serviceusage_v1beta1 {
3424
3459
 
3425
3460
  if (typeof paramsOrCallback === 'function') {
3426
3461
  callback = paramsOrCallback;
3427
- params = {} as Params$Resource$Services$Consumerquotametrics$Importconsumeroverrides;
3462
+ params =
3463
+ {} as Params$Resource$Services$Consumerquotametrics$Importconsumeroverrides;
3428
3464
  options = {};
3429
3465
  }
3430
3466
 
@@ -3478,7 +3514,10 @@ export namespace serviceusage_v1beta1 {
3478
3514
  * async function main() {
3479
3515
  * const auth = new google.auth.GoogleAuth({
3480
3516
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3481
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3517
+ * scopes: [
3518
+ * 'https://www.googleapis.com/auth/cloud-platform',
3519
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3520
+ * ],
3482
3521
  * });
3483
3522
  *
3484
3523
  * // Acquire an auth client, and bind it to all future calls
@@ -3667,12 +3706,14 @@ export namespace serviceusage_v1beta1 {
3667
3706
  consumerOverrides: Resource$Services$Consumerquotametrics$Limits$Consumeroverrides;
3668
3707
  constructor(context: APIRequestContext) {
3669
3708
  this.context = context;
3670
- this.adminOverrides = new Resource$Services$Consumerquotametrics$Limits$Adminoverrides(
3671
- this.context
3672
- );
3673
- this.consumerOverrides = new Resource$Services$Consumerquotametrics$Limits$Consumeroverrides(
3674
- this.context
3675
- );
3709
+ this.adminOverrides =
3710
+ new Resource$Services$Consumerquotametrics$Limits$Adminoverrides(
3711
+ this.context
3712
+ );
3713
+ this.consumerOverrides =
3714
+ new Resource$Services$Consumerquotametrics$Limits$Consumeroverrides(
3715
+ this.context
3716
+ );
3676
3717
  }
3677
3718
 
3678
3719
  /**
@@ -3693,7 +3734,10 @@ export namespace serviceusage_v1beta1 {
3693
3734
  * async function main() {
3694
3735
  * const auth = new google.auth.GoogleAuth({
3695
3736
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3696
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3737
+ * scopes: [
3738
+ * 'https://www.googleapis.com/auth/cloud-platform',
3739
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3740
+ * ],
3697
3741
  * });
3698
3742
  *
3699
3743
  * // Acquire an auth client, and bind it to all future calls
@@ -3703,8 +3747,7 @@ export namespace serviceusage_v1beta1 {
3703
3747
  * // Do the magic
3704
3748
  * const res = await serviceusage.services.consumerQuotaMetrics.limits.get({
3705
3749
  * // The resource name of the quota limit. Use the quota limit resource name returned by previous ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls.
3706
- * name:
3707
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
3750
+ * name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
3708
3751
  * // Specifies the level of detail for quota information in the response.
3709
3752
  * view: 'placeholder-value',
3710
3753
  * });
@@ -3717,6 +3760,7 @@ export namespace serviceusage_v1beta1 {
3717
3760
  * // "metric": "my_metric",
3718
3761
  * // "name": "my_name",
3719
3762
  * // "quotaBuckets": [],
3763
+ * // "supportedLocations": [],
3720
3764
  * // "unit": "my_unit"
3721
3765
  * // }
3722
3766
  * }
@@ -3849,7 +3893,10 @@ export namespace serviceusage_v1beta1 {
3849
3893
  * async function main() {
3850
3894
  * const auth = new google.auth.GoogleAuth({
3851
3895
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3852
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3896
+ * scopes: [
3897
+ * 'https://www.googleapis.com/auth/cloud-platform',
3898
+ * 'https://www.googleapis.com/auth/service.management',
3899
+ * ],
3853
3900
  * });
3854
3901
  *
3855
3902
  * // Acquire an auth client, and bind it to all future calls
@@ -3857,30 +3904,31 @@ export namespace serviceusage_v1beta1 {
3857
3904
  * google.options({auth: authClient});
3858
3905
  *
3859
3906
  * // Do the magic
3860
- * const res = await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.create(
3861
- * {
3862
- * // Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
3863
- * force: 'placeholder-value',
3864
- * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
3865
- * forceOnly: 'placeholder-value',
3866
- * // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
3867
- * parent:
3868
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
3869
- *
3870
- * // Request body metadata
3871
- * requestBody: {
3872
- * // request body parameters
3873
- * // {
3874
- * // "adminOverrideAncestor": "my_adminOverrideAncestor",
3875
- * // "dimensions": {},
3876
- * // "metric": "my_metric",
3877
- * // "name": "my_name",
3878
- * // "overrideValue": "my_overrideValue",
3879
- * // "unit": "my_unit"
3880
- * // }
3881
- * },
3882
- * }
3883
- * );
3907
+ * const res =
3908
+ * await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.create(
3909
+ * {
3910
+ * // Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
3911
+ * force: 'placeholder-value',
3912
+ * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
3913
+ * forceOnly: 'placeholder-value',
3914
+ * // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
3915
+ * parent:
3916
+ * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
3917
+ *
3918
+ * // Request body metadata
3919
+ * requestBody: {
3920
+ * // request body parameters
3921
+ * // {
3922
+ * // "adminOverrideAncestor": "my_adminOverrideAncestor",
3923
+ * // "dimensions": {},
3924
+ * // "metric": "my_metric",
3925
+ * // "name": "my_name",
3926
+ * // "overrideValue": "my_overrideValue",
3927
+ * // "unit": "my_unit"
3928
+ * // }
3929
+ * },
3930
+ * }
3931
+ * );
3884
3932
  * console.log(res.data);
3885
3933
  *
3886
3934
  * // Example response
@@ -3948,7 +3996,8 @@ export namespace serviceusage_v1beta1 {
3948
3996
 
3949
3997
  if (typeof paramsOrCallback === 'function') {
3950
3998
  callback = paramsOrCallback;
3951
- params = {} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Create;
3999
+ params =
4000
+ {} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Create;
3952
4001
  options = {};
3953
4002
  }
3954
4003
 
@@ -4002,7 +4051,10 @@ export namespace serviceusage_v1beta1 {
4002
4051
  * async function main() {
4003
4052
  * const auth = new google.auth.GoogleAuth({
4004
4053
  * // Scopes can be specified either as an array or as a single, space-delimited string.
4005
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4054
+ * scopes: [
4055
+ * 'https://www.googleapis.com/auth/cloud-platform',
4056
+ * 'https://www.googleapis.com/auth/service.management',
4057
+ * ],
4006
4058
  * });
4007
4059
  *
4008
4060
  * // Acquire an auth client, and bind it to all future calls
@@ -4010,17 +4062,17 @@ export namespace serviceusage_v1beta1 {
4010
4062
  * google.options({auth: authClient});
4011
4063
  *
4012
4064
  * // Do the magic
4013
- * const res = await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.delete(
4014
- * {
4015
- * // Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
4016
- * force: 'placeholder-value',
4017
- * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
4018
- * forceOnly: 'placeholder-value',
4019
- * // The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
4020
- * name:
4021
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
4022
- * }
4023
- * );
4065
+ * const res =
4066
+ * await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.delete(
4067
+ * {
4068
+ * // Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
4069
+ * force: 'placeholder-value',
4070
+ * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
4071
+ * forceOnly: 'placeholder-value',
4072
+ * // The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
4073
+ * name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
4074
+ * }
4075
+ * );
4024
4076
  * console.log(res.data);
4025
4077
  *
4026
4078
  * // Example response
@@ -4088,7 +4140,8 @@ export namespace serviceusage_v1beta1 {
4088
4140
 
4089
4141
  if (typeof paramsOrCallback === 'function') {
4090
4142
  callback = paramsOrCallback;
4091
- params = {} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Delete;
4143
+ params =
4144
+ {} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Delete;
4092
4145
  options = {};
4093
4146
  }
4094
4147
 
@@ -4139,7 +4192,10 @@ export namespace serviceusage_v1beta1 {
4139
4192
  * async function main() {
4140
4193
  * const auth = new google.auth.GoogleAuth({
4141
4194
  * // Scopes can be specified either as an array or as a single, space-delimited string.
4142
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4195
+ * scopes: [
4196
+ * 'https://www.googleapis.com/auth/cloud-platform',
4197
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4198
+ * ],
4143
4199
  * });
4144
4200
  *
4145
4201
  * // Acquire an auth client, and bind it to all future calls
@@ -4147,17 +4203,18 @@ export namespace serviceusage_v1beta1 {
4147
4203
  * google.options({auth: authClient});
4148
4204
  *
4149
4205
  * // Do the magic
4150
- * const res = await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.list(
4151
- * {
4152
- * // Requested size of the next page of data.
4153
- * pageSize: 'placeholder-value',
4154
- * // Token identifying which result to start with; returned by a previous list call.
4155
- * pageToken: 'placeholder-value',
4156
- * // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
4157
- * parent:
4158
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
4159
- * }
4160
- * );
4206
+ * const res =
4207
+ * await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.list(
4208
+ * {
4209
+ * // Requested size of the next page of data.
4210
+ * pageSize: 'placeholder-value',
4211
+ * // Token identifying which result to start with; returned by a previous list call.
4212
+ * pageToken: 'placeholder-value',
4213
+ * // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
4214
+ * parent:
4215
+ * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
4216
+ * }
4217
+ * );
4161
4218
  * console.log(res.data);
4162
4219
  *
4163
4220
  * // Example response
@@ -4229,7 +4286,8 @@ export namespace serviceusage_v1beta1 {
4229
4286
 
4230
4287
  if (typeof paramsOrCallback === 'function') {
4231
4288
  callback = paramsOrCallback;
4232
- params = {} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$List;
4289
+ params =
4290
+ {} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$List;
4233
4291
  options = {};
4234
4292
  }
4235
4293
 
@@ -4283,7 +4341,10 @@ export namespace serviceusage_v1beta1 {
4283
4341
  * async function main() {
4284
4342
  * const auth = new google.auth.GoogleAuth({
4285
4343
  * // Scopes can be specified either as an array or as a single, space-delimited string.
4286
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4344
+ * scopes: [
4345
+ * 'https://www.googleapis.com/auth/cloud-platform',
4346
+ * 'https://www.googleapis.com/auth/service.management',
4347
+ * ],
4287
4348
  * });
4288
4349
  *
4289
4350
  * // Acquire an auth client, and bind it to all future calls
@@ -4291,32 +4352,32 @@ export namespace serviceusage_v1beta1 {
4291
4352
  * google.options({auth: authClient});
4292
4353
  *
4293
4354
  * // Do the magic
4294
- * const res = await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.patch(
4295
- * {
4296
- * // Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
4297
- * force: 'placeholder-value',
4298
- * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
4299
- * forceOnly: 'placeholder-value',
4300
- * // The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
4301
- * name:
4302
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
4303
- * // Update only the specified fields of the override. If unset, all fields will be updated.
4304
- * updateMask: 'placeholder-value',
4305
- *
4306
- * // Request body metadata
4307
- * requestBody: {
4308
- * // request body parameters
4309
- * // {
4310
- * // "adminOverrideAncestor": "my_adminOverrideAncestor",
4311
- * // "dimensions": {},
4312
- * // "metric": "my_metric",
4313
- * // "name": "my_name",
4314
- * // "overrideValue": "my_overrideValue",
4315
- * // "unit": "my_unit"
4316
- * // }
4317
- * },
4318
- * }
4319
- * );
4355
+ * const res =
4356
+ * await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.patch(
4357
+ * {
4358
+ * // Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
4359
+ * force: 'placeholder-value',
4360
+ * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
4361
+ * forceOnly: 'placeholder-value',
4362
+ * // The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
4363
+ * name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
4364
+ * // Update only the specified fields of the override. If unset, all fields will be updated.
4365
+ * updateMask: 'placeholder-value',
4366
+ *
4367
+ * // Request body metadata
4368
+ * requestBody: {
4369
+ * // request body parameters
4370
+ * // {
4371
+ * // "adminOverrideAncestor": "my_adminOverrideAncestor",
4372
+ * // "dimensions": {},
4373
+ * // "metric": "my_metric",
4374
+ * // "name": "my_name",
4375
+ * // "overrideValue": "my_overrideValue",
4376
+ * // "unit": "my_unit"
4377
+ * // }
4378
+ * },
4379
+ * }
4380
+ * );
4320
4381
  * console.log(res.data);
4321
4382
  *
4322
4383
  * // Example response
@@ -4384,7 +4445,8 @@ export namespace serviceusage_v1beta1 {
4384
4445
 
4385
4446
  if (typeof paramsOrCallback === 'function') {
4386
4447
  callback = paramsOrCallback;
4387
- params = {} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Patch;
4448
+ params =
4449
+ {} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Patch;
4388
4450
  options = {};
4389
4451
  }
4390
4452
 
@@ -4517,7 +4579,10 @@ export namespace serviceusage_v1beta1 {
4517
4579
  * async function main() {
4518
4580
  * const auth = new google.auth.GoogleAuth({
4519
4581
  * // Scopes can be specified either as an array or as a single, space-delimited string.
4520
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4582
+ * scopes: [
4583
+ * 'https://www.googleapis.com/auth/cloud-platform',
4584
+ * 'https://www.googleapis.com/auth/service.management',
4585
+ * ],
4521
4586
  * });
4522
4587
  *
4523
4588
  * // Acquire an auth client, and bind it to all future calls
@@ -4525,30 +4590,31 @@ export namespace serviceusage_v1beta1 {
4525
4590
  * google.options({auth: authClient});
4526
4591
  *
4527
4592
  * // Do the magic
4528
- * const res = await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.create(
4529
- * {
4530
- * // Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
4531
- * force: 'placeholder-value',
4532
- * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
4533
- * forceOnly: 'placeholder-value',
4534
- * // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
4535
- * parent:
4536
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
4537
- *
4538
- * // Request body metadata
4539
- * requestBody: {
4540
- * // request body parameters
4541
- * // {
4542
- * // "adminOverrideAncestor": "my_adminOverrideAncestor",
4543
- * // "dimensions": {},
4544
- * // "metric": "my_metric",
4545
- * // "name": "my_name",
4546
- * // "overrideValue": "my_overrideValue",
4547
- * // "unit": "my_unit"
4548
- * // }
4549
- * },
4550
- * }
4551
- * );
4593
+ * const res =
4594
+ * await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.create(
4595
+ * {
4596
+ * // Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
4597
+ * force: 'placeholder-value',
4598
+ * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
4599
+ * forceOnly: 'placeholder-value',
4600
+ * // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
4601
+ * parent:
4602
+ * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
4603
+ *
4604
+ * // Request body metadata
4605
+ * requestBody: {
4606
+ * // request body parameters
4607
+ * // {
4608
+ * // "adminOverrideAncestor": "my_adminOverrideAncestor",
4609
+ * // "dimensions": {},
4610
+ * // "metric": "my_metric",
4611
+ * // "name": "my_name",
4612
+ * // "overrideValue": "my_overrideValue",
4613
+ * // "unit": "my_unit"
4614
+ * // }
4615
+ * },
4616
+ * }
4617
+ * );
4552
4618
  * console.log(res.data);
4553
4619
  *
4554
4620
  * // Example response
@@ -4616,7 +4682,8 @@ export namespace serviceusage_v1beta1 {
4616
4682
 
4617
4683
  if (typeof paramsOrCallback === 'function') {
4618
4684
  callback = paramsOrCallback;
4619
- params = {} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Create;
4685
+ params =
4686
+ {} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Create;
4620
4687
  options = {};
4621
4688
  }
4622
4689
 
@@ -4670,7 +4737,10 @@ export namespace serviceusage_v1beta1 {
4670
4737
  * async function main() {
4671
4738
  * const auth = new google.auth.GoogleAuth({
4672
4739
  * // Scopes can be specified either as an array or as a single, space-delimited string.
4673
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4740
+ * scopes: [
4741
+ * 'https://www.googleapis.com/auth/cloud-platform',
4742
+ * 'https://www.googleapis.com/auth/service.management',
4743
+ * ],
4674
4744
  * });
4675
4745
  *
4676
4746
  * // Acquire an auth client, and bind it to all future calls
@@ -4678,17 +4748,17 @@ export namespace serviceusage_v1beta1 {
4678
4748
  * google.options({auth: authClient});
4679
4749
  *
4680
4750
  * // Do the magic
4681
- * const res = await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.delete(
4682
- * {
4683
- * // Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
4684
- * force: 'placeholder-value',
4685
- * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
4686
- * forceOnly: 'placeholder-value',
4687
- * // The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
4688
- * name:
4689
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
4690
- * }
4691
- * );
4751
+ * const res =
4752
+ * await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.delete(
4753
+ * {
4754
+ * // Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
4755
+ * force: 'placeholder-value',
4756
+ * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
4757
+ * forceOnly: 'placeholder-value',
4758
+ * // The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
4759
+ * name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
4760
+ * }
4761
+ * );
4692
4762
  * console.log(res.data);
4693
4763
  *
4694
4764
  * // Example response
@@ -4756,7 +4826,8 @@ export namespace serviceusage_v1beta1 {
4756
4826
 
4757
4827
  if (typeof paramsOrCallback === 'function') {
4758
4828
  callback = paramsOrCallback;
4759
- params = {} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Delete;
4829
+ params =
4830
+ {} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Delete;
4760
4831
  options = {};
4761
4832
  }
4762
4833
 
@@ -4807,7 +4878,10 @@ export namespace serviceusage_v1beta1 {
4807
4878
  * async function main() {
4808
4879
  * const auth = new google.auth.GoogleAuth({
4809
4880
  * // Scopes can be specified either as an array or as a single, space-delimited string.
4810
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4881
+ * scopes: [
4882
+ * 'https://www.googleapis.com/auth/cloud-platform',
4883
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4884
+ * ],
4811
4885
  * });
4812
4886
  *
4813
4887
  * // Acquire an auth client, and bind it to all future calls
@@ -4815,17 +4889,18 @@ export namespace serviceusage_v1beta1 {
4815
4889
  * google.options({auth: authClient});
4816
4890
  *
4817
4891
  * // Do the magic
4818
- * const res = await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.list(
4819
- * {
4820
- * // Requested size of the next page of data.
4821
- * pageSize: 'placeholder-value',
4822
- * // Token identifying which result to start with; returned by a previous list call.
4823
- * pageToken: 'placeholder-value',
4824
- * // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
4825
- * parent:
4826
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
4827
- * }
4828
- * );
4892
+ * const res =
4893
+ * await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.list(
4894
+ * {
4895
+ * // Requested size of the next page of data.
4896
+ * pageSize: 'placeholder-value',
4897
+ * // Token identifying which result to start with; returned by a previous list call.
4898
+ * pageToken: 'placeholder-value',
4899
+ * // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
4900
+ * parent:
4901
+ * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
4902
+ * }
4903
+ * );
4829
4904
  * console.log(res.data);
4830
4905
  *
4831
4906
  * // Example response
@@ -4897,7 +4972,8 @@ export namespace serviceusage_v1beta1 {
4897
4972
 
4898
4973
  if (typeof paramsOrCallback === 'function') {
4899
4974
  callback = paramsOrCallback;
4900
- params = {} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$List;
4975
+ params =
4976
+ {} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$List;
4901
4977
  options = {};
4902
4978
  }
4903
4979
 
@@ -4953,7 +5029,10 @@ export namespace serviceusage_v1beta1 {
4953
5029
  * async function main() {
4954
5030
  * const auth = new google.auth.GoogleAuth({
4955
5031
  * // Scopes can be specified either as an array or as a single, space-delimited string.
4956
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5032
+ * scopes: [
5033
+ * 'https://www.googleapis.com/auth/cloud-platform',
5034
+ * 'https://www.googleapis.com/auth/service.management',
5035
+ * ],
4957
5036
  * });
4958
5037
  *
4959
5038
  * // Acquire an auth client, and bind it to all future calls
@@ -4961,32 +5040,32 @@ export namespace serviceusage_v1beta1 {
4961
5040
  * google.options({auth: authClient});
4962
5041
  *
4963
5042
  * // Do the magic
4964
- * const res = await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.patch(
4965
- * {
4966
- * // Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
4967
- * force: 'placeholder-value',
4968
- * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
4969
- * forceOnly: 'placeholder-value',
4970
- * // The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
4971
- * name:
4972
- * '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
4973
- * // Update only the specified fields of the override. If unset, all fields will be updated.
4974
- * updateMask: 'placeholder-value',
4975
- *
4976
- * // Request body metadata
4977
- * requestBody: {
4978
- * // request body parameters
4979
- * // {
4980
- * // "adminOverrideAncestor": "my_adminOverrideAncestor",
4981
- * // "dimensions": {},
4982
- * // "metric": "my_metric",
4983
- * // "name": "my_name",
4984
- * // "overrideValue": "my_overrideValue",
4985
- * // "unit": "my_unit"
4986
- * // }
4987
- * },
4988
- * }
4989
- * );
5043
+ * const res =
5044
+ * await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.patch(
5045
+ * {
5046
+ * // Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
5047
+ * force: 'placeholder-value',
5048
+ * // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
5049
+ * forceOnly: 'placeholder-value',
5050
+ * // The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
5051
+ * name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
5052
+ * // Update only the specified fields of the override. If unset, all fields will be updated.
5053
+ * updateMask: 'placeholder-value',
5054
+ *
5055
+ * // Request body metadata
5056
+ * requestBody: {
5057
+ * // request body parameters
5058
+ * // {
5059
+ * // "adminOverrideAncestor": "my_adminOverrideAncestor",
5060
+ * // "dimensions": {},
5061
+ * // "metric": "my_metric",
5062
+ * // "name": "my_name",
5063
+ * // "overrideValue": "my_overrideValue",
5064
+ * // "unit": "my_unit"
5065
+ * // }
5066
+ * },
5067
+ * }
5068
+ * );
4990
5069
  * console.log(res.data);
4991
5070
  *
4992
5071
  * // Example response
@@ -5054,7 +5133,8 @@ export namespace serviceusage_v1beta1 {
5054
5133
 
5055
5134
  if (typeof paramsOrCallback === 'function') {
5056
5135
  callback = paramsOrCallback;
5057
- params = {} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Patch;
5136
+ params =
5137
+ {} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Patch;
5058
5138
  options = {};
5059
5139
  }
5060
5140