@googleapis/serviceusage 1.1.0 → 4.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 +103 -0
- package/README.md +11 -2
- package/build/v1.d.ts +24 -18
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +185 -174
- package/build/v1beta1.js +24 -12
- package/build/v1beta1.js.map +1 -1
- package/package.json +2 -2
- package/v1.ts +22 -18
- package/v1beta1.ts +211 -190
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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); \}
|
|
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
|
|
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
|
|
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
|
*/
|
|
@@ -1326,6 +1330,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1326
1330
|
* Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.
|
|
1327
1331
|
*/
|
|
1328
1332
|
export interface Schema$MetricRule {
|
|
1333
|
+
/**
|
|
1334
|
+
* Metrics to update when the selected methods are called. The key of the map is the metric name, the value is the DynamicCostType to specify how to calculate the cost from the request. The cost amount will be increased for the metric against which the quota limits are defined. It is only implemented in CloudESF(go/cloudesf)
|
|
1335
|
+
*/
|
|
1336
|
+
dynamicMetricCosts?: {[key: string]: string} | null;
|
|
1329
1337
|
/**
|
|
1330
1338
|
* 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.
|
|
1331
1339
|
*/
|
|
@@ -1373,7 +1381,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1373
1381
|
*/
|
|
1374
1382
|
name?: string | null;
|
|
1375
1383
|
/**
|
|
1376
|
-
* Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL.
|
|
1384
|
+
* 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
1385
|
*/
|
|
1378
1386
|
type?: string | null;
|
|
1379
1387
|
}
|
|
@@ -1473,7 +1481,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1473
1481
|
*/
|
|
1474
1482
|
export interface Schema$Page {
|
|
1475
1483
|
/**
|
|
1476
|
-
* The Markdown content of the page. You can use (== include {path\} ==) to include content from a Markdown file.
|
|
1484
|
+
* 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
1485
|
*/
|
|
1478
1486
|
content?: string | null;
|
|
1479
1487
|
/**
|
|
@@ -3084,8 +3092,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3084
3092
|
* // Do the magic
|
|
3085
3093
|
* const res = await serviceusage.services.consumerQuotaMetrics.get({
|
|
3086
3094
|
* // 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`
|
|
3087
|
-
* name:
|
|
3088
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric',
|
|
3095
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric',
|
|
3089
3096
|
* // Specifies the level of detail for quota information in the response.
|
|
3090
3097
|
* view: 'placeholder-value',
|
|
3091
3098
|
* });
|
|
@@ -3222,8 +3229,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3222
3229
|
* google.options({auth: authClient});
|
|
3223
3230
|
*
|
|
3224
3231
|
* // Do the magic
|
|
3225
|
-
* const res =
|
|
3226
|
-
* {
|
|
3232
|
+
* const res =
|
|
3233
|
+
* await serviceusage.services.consumerQuotaMetrics.importAdminOverrides({
|
|
3227
3234
|
* // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
|
|
3228
3235
|
* parent: '[^/]+/[^/]+/services/my-service',
|
|
3229
3236
|
*
|
|
@@ -3236,8 +3243,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3236
3243
|
* // "inlineSource": {}
|
|
3237
3244
|
* // }
|
|
3238
3245
|
* },
|
|
3239
|
-
* }
|
|
3240
|
-
* );
|
|
3246
|
+
* });
|
|
3241
3247
|
* console.log(res.data);
|
|
3242
3248
|
*
|
|
3243
3249
|
* // Example response
|
|
@@ -3307,7 +3313,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3307
3313
|
|
|
3308
3314
|
if (typeof paramsOrCallback === 'function') {
|
|
3309
3315
|
callback = paramsOrCallback;
|
|
3310
|
-
params =
|
|
3316
|
+
params =
|
|
3317
|
+
{} as Params$Resource$Services$Consumerquotametrics$Importadminoverrides;
|
|
3311
3318
|
options = {};
|
|
3312
3319
|
}
|
|
3313
3320
|
|
|
@@ -3372,8 +3379,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3372
3379
|
* google.options({auth: authClient});
|
|
3373
3380
|
*
|
|
3374
3381
|
* // Do the magic
|
|
3375
|
-
* const res =
|
|
3376
|
-
* {
|
|
3382
|
+
* const res =
|
|
3383
|
+
* await serviceusage.services.consumerQuotaMetrics.importConsumerOverrides({
|
|
3377
3384
|
* // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
|
|
3378
3385
|
* parent: '[^/]+/[^/]+/services/my-service',
|
|
3379
3386
|
*
|
|
@@ -3386,8 +3393,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3386
3393
|
* // "inlineSource": {}
|
|
3387
3394
|
* // }
|
|
3388
3395
|
* },
|
|
3389
|
-
* }
|
|
3390
|
-
* );
|
|
3396
|
+
* });
|
|
3391
3397
|
* console.log(res.data);
|
|
3392
3398
|
*
|
|
3393
3399
|
* // Example response
|
|
@@ -3457,7 +3463,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3457
3463
|
|
|
3458
3464
|
if (typeof paramsOrCallback === 'function') {
|
|
3459
3465
|
callback = paramsOrCallback;
|
|
3460
|
-
params =
|
|
3466
|
+
params =
|
|
3467
|
+
{} as Params$Resource$Services$Consumerquotametrics$Importconsumeroverrides;
|
|
3461
3468
|
options = {};
|
|
3462
3469
|
}
|
|
3463
3470
|
|
|
@@ -3703,12 +3710,14 @@ export namespace serviceusage_v1beta1 {
|
|
|
3703
3710
|
consumerOverrides: Resource$Services$Consumerquotametrics$Limits$Consumeroverrides;
|
|
3704
3711
|
constructor(context: APIRequestContext) {
|
|
3705
3712
|
this.context = context;
|
|
3706
|
-
this.adminOverrides =
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3713
|
+
this.adminOverrides =
|
|
3714
|
+
new Resource$Services$Consumerquotametrics$Limits$Adminoverrides(
|
|
3715
|
+
this.context
|
|
3716
|
+
);
|
|
3717
|
+
this.consumerOverrides =
|
|
3718
|
+
new Resource$Services$Consumerquotametrics$Limits$Consumeroverrides(
|
|
3719
|
+
this.context
|
|
3720
|
+
);
|
|
3712
3721
|
}
|
|
3713
3722
|
|
|
3714
3723
|
/**
|
|
@@ -3742,8 +3751,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3742
3751
|
* // Do the magic
|
|
3743
3752
|
* const res = await serviceusage.services.consumerQuotaMetrics.limits.get({
|
|
3744
3753
|
* // The resource name of the quota limit. Use the quota limit resource name returned by previous ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls.
|
|
3745
|
-
* name:
|
|
3746
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3754
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3747
3755
|
* // Specifies the level of detail for quota information in the response.
|
|
3748
3756
|
* view: 'placeholder-value',
|
|
3749
3757
|
* });
|
|
@@ -3756,6 +3764,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3756
3764
|
* // "metric": "my_metric",
|
|
3757
3765
|
* // "name": "my_name",
|
|
3758
3766
|
* // "quotaBuckets": [],
|
|
3767
|
+
* // "supportedLocations": [],
|
|
3759
3768
|
* // "unit": "my_unit"
|
|
3760
3769
|
* // }
|
|
3761
3770
|
* }
|
|
@@ -3899,30 +3908,31 @@ export namespace serviceusage_v1beta1 {
|
|
|
3899
3908
|
* google.options({auth: authClient});
|
|
3900
3909
|
*
|
|
3901
3910
|
* // Do the magic
|
|
3902
|
-
* const res =
|
|
3903
|
-
*
|
|
3904
|
-
*
|
|
3905
|
-
*
|
|
3906
|
-
*
|
|
3907
|
-
*
|
|
3908
|
-
*
|
|
3909
|
-
*
|
|
3910
|
-
*
|
|
3911
|
-
*
|
|
3912
|
-
*
|
|
3913
|
-
*
|
|
3914
|
-
*
|
|
3915
|
-
*
|
|
3916
|
-
*
|
|
3917
|
-
*
|
|
3918
|
-
*
|
|
3919
|
-
*
|
|
3920
|
-
*
|
|
3921
|
-
*
|
|
3922
|
-
*
|
|
3923
|
-
*
|
|
3924
|
-
*
|
|
3925
|
-
*
|
|
3911
|
+
* const res =
|
|
3912
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.create(
|
|
3913
|
+
* {
|
|
3914
|
+
* // 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.
|
|
3915
|
+
* force: 'placeholder-value',
|
|
3916
|
+
* // 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.
|
|
3917
|
+
* forceOnly: 'placeholder-value',
|
|
3918
|
+
* // 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`
|
|
3919
|
+
* parent:
|
|
3920
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3921
|
+
*
|
|
3922
|
+
* // Request body metadata
|
|
3923
|
+
* requestBody: {
|
|
3924
|
+
* // request body parameters
|
|
3925
|
+
* // {
|
|
3926
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
3927
|
+
* // "dimensions": {},
|
|
3928
|
+
* // "metric": "my_metric",
|
|
3929
|
+
* // "name": "my_name",
|
|
3930
|
+
* // "overrideValue": "my_overrideValue",
|
|
3931
|
+
* // "unit": "my_unit"
|
|
3932
|
+
* // }
|
|
3933
|
+
* },
|
|
3934
|
+
* }
|
|
3935
|
+
* );
|
|
3926
3936
|
* console.log(res.data);
|
|
3927
3937
|
*
|
|
3928
3938
|
* // Example response
|
|
@@ -3990,7 +4000,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3990
4000
|
|
|
3991
4001
|
if (typeof paramsOrCallback === 'function') {
|
|
3992
4002
|
callback = paramsOrCallback;
|
|
3993
|
-
params =
|
|
4003
|
+
params =
|
|
4004
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Create;
|
|
3994
4005
|
options = {};
|
|
3995
4006
|
}
|
|
3996
4007
|
|
|
@@ -4055,17 +4066,17 @@ export namespace serviceusage_v1beta1 {
|
|
|
4055
4066
|
* google.options({auth: authClient});
|
|
4056
4067
|
*
|
|
4057
4068
|
* // Do the magic
|
|
4058
|
-
* const res =
|
|
4059
|
-
*
|
|
4060
|
-
*
|
|
4061
|
-
*
|
|
4062
|
-
*
|
|
4063
|
-
*
|
|
4064
|
-
*
|
|
4065
|
-
*
|
|
4066
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4067
|
-
*
|
|
4068
|
-
*
|
|
4069
|
+
* const res =
|
|
4070
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.delete(
|
|
4071
|
+
* {
|
|
4072
|
+
* // 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.
|
|
4073
|
+
* force: 'placeholder-value',
|
|
4074
|
+
* // 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.
|
|
4075
|
+
* forceOnly: 'placeholder-value',
|
|
4076
|
+
* // 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`
|
|
4077
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4078
|
+
* }
|
|
4079
|
+
* );
|
|
4069
4080
|
* console.log(res.data);
|
|
4070
4081
|
*
|
|
4071
4082
|
* // Example response
|
|
@@ -4133,7 +4144,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4133
4144
|
|
|
4134
4145
|
if (typeof paramsOrCallback === 'function') {
|
|
4135
4146
|
callback = paramsOrCallback;
|
|
4136
|
-
params =
|
|
4147
|
+
params =
|
|
4148
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Delete;
|
|
4137
4149
|
options = {};
|
|
4138
4150
|
}
|
|
4139
4151
|
|
|
@@ -4195,17 +4207,18 @@ export namespace serviceusage_v1beta1 {
|
|
|
4195
4207
|
* google.options({auth: authClient});
|
|
4196
4208
|
*
|
|
4197
4209
|
* // Do the magic
|
|
4198
|
-
* const res =
|
|
4199
|
-
*
|
|
4200
|
-
*
|
|
4201
|
-
*
|
|
4202
|
-
*
|
|
4203
|
-
*
|
|
4204
|
-
*
|
|
4205
|
-
*
|
|
4206
|
-
*
|
|
4207
|
-
*
|
|
4208
|
-
*
|
|
4210
|
+
* const res =
|
|
4211
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.list(
|
|
4212
|
+
* {
|
|
4213
|
+
* // Requested size of the next page of data.
|
|
4214
|
+
* pageSize: 'placeholder-value',
|
|
4215
|
+
* // Token identifying which result to start with; returned by a previous list call.
|
|
4216
|
+
* pageToken: 'placeholder-value',
|
|
4217
|
+
* // 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`
|
|
4218
|
+
* parent:
|
|
4219
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
4220
|
+
* }
|
|
4221
|
+
* );
|
|
4209
4222
|
* console.log(res.data);
|
|
4210
4223
|
*
|
|
4211
4224
|
* // Example response
|
|
@@ -4277,7 +4290,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4277
4290
|
|
|
4278
4291
|
if (typeof paramsOrCallback === 'function') {
|
|
4279
4292
|
callback = paramsOrCallback;
|
|
4280
|
-
params =
|
|
4293
|
+
params =
|
|
4294
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$List;
|
|
4281
4295
|
options = {};
|
|
4282
4296
|
}
|
|
4283
4297
|
|
|
@@ -4342,32 +4356,32 @@ export namespace serviceusage_v1beta1 {
|
|
|
4342
4356
|
* google.options({auth: authClient});
|
|
4343
4357
|
*
|
|
4344
4358
|
* // Do the magic
|
|
4345
|
-
* const res =
|
|
4346
|
-
*
|
|
4347
|
-
*
|
|
4348
|
-
*
|
|
4349
|
-
*
|
|
4350
|
-
*
|
|
4351
|
-
*
|
|
4352
|
-
*
|
|
4353
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4354
|
-
*
|
|
4355
|
-
*
|
|
4356
|
-
*
|
|
4357
|
-
*
|
|
4358
|
-
*
|
|
4359
|
-
*
|
|
4360
|
-
*
|
|
4361
|
-
*
|
|
4362
|
-
*
|
|
4363
|
-
*
|
|
4364
|
-
*
|
|
4365
|
-
*
|
|
4366
|
-
*
|
|
4367
|
-
*
|
|
4368
|
-
*
|
|
4369
|
-
*
|
|
4370
|
-
*
|
|
4359
|
+
* const res =
|
|
4360
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.patch(
|
|
4361
|
+
* {
|
|
4362
|
+
* // 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.
|
|
4363
|
+
* force: 'placeholder-value',
|
|
4364
|
+
* // 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.
|
|
4365
|
+
* forceOnly: 'placeholder-value',
|
|
4366
|
+
* // 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`
|
|
4367
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4368
|
+
* // Update only the specified fields of the override. If unset, all fields will be updated.
|
|
4369
|
+
* updateMask: 'placeholder-value',
|
|
4370
|
+
*
|
|
4371
|
+
* // Request body metadata
|
|
4372
|
+
* requestBody: {
|
|
4373
|
+
* // request body parameters
|
|
4374
|
+
* // {
|
|
4375
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
4376
|
+
* // "dimensions": {},
|
|
4377
|
+
* // "metric": "my_metric",
|
|
4378
|
+
* // "name": "my_name",
|
|
4379
|
+
* // "overrideValue": "my_overrideValue",
|
|
4380
|
+
* // "unit": "my_unit"
|
|
4381
|
+
* // }
|
|
4382
|
+
* },
|
|
4383
|
+
* }
|
|
4384
|
+
* );
|
|
4371
4385
|
* console.log(res.data);
|
|
4372
4386
|
*
|
|
4373
4387
|
* // Example response
|
|
@@ -4435,7 +4449,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4435
4449
|
|
|
4436
4450
|
if (typeof paramsOrCallback === 'function') {
|
|
4437
4451
|
callback = paramsOrCallback;
|
|
4438
|
-
params =
|
|
4452
|
+
params =
|
|
4453
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Patch;
|
|
4439
4454
|
options = {};
|
|
4440
4455
|
}
|
|
4441
4456
|
|
|
@@ -4579,30 +4594,31 @@ export namespace serviceusage_v1beta1 {
|
|
|
4579
4594
|
* google.options({auth: authClient});
|
|
4580
4595
|
*
|
|
4581
4596
|
* // Do the magic
|
|
4582
|
-
* const res =
|
|
4583
|
-
*
|
|
4584
|
-
*
|
|
4585
|
-
*
|
|
4586
|
-
*
|
|
4587
|
-
*
|
|
4588
|
-
*
|
|
4589
|
-
*
|
|
4590
|
-
*
|
|
4591
|
-
*
|
|
4592
|
-
*
|
|
4593
|
-
*
|
|
4594
|
-
*
|
|
4595
|
-
*
|
|
4596
|
-
*
|
|
4597
|
-
*
|
|
4598
|
-
*
|
|
4599
|
-
*
|
|
4600
|
-
*
|
|
4601
|
-
*
|
|
4602
|
-
*
|
|
4603
|
-
*
|
|
4604
|
-
*
|
|
4605
|
-
*
|
|
4597
|
+
* const res =
|
|
4598
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.create(
|
|
4599
|
+
* {
|
|
4600
|
+
* // 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.
|
|
4601
|
+
* force: 'placeholder-value',
|
|
4602
|
+
* // 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.
|
|
4603
|
+
* forceOnly: 'placeholder-value',
|
|
4604
|
+
* // 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`
|
|
4605
|
+
* parent:
|
|
4606
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
4607
|
+
*
|
|
4608
|
+
* // Request body metadata
|
|
4609
|
+
* requestBody: {
|
|
4610
|
+
* // request body parameters
|
|
4611
|
+
* // {
|
|
4612
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
4613
|
+
* // "dimensions": {},
|
|
4614
|
+
* // "metric": "my_metric",
|
|
4615
|
+
* // "name": "my_name",
|
|
4616
|
+
* // "overrideValue": "my_overrideValue",
|
|
4617
|
+
* // "unit": "my_unit"
|
|
4618
|
+
* // }
|
|
4619
|
+
* },
|
|
4620
|
+
* }
|
|
4621
|
+
* );
|
|
4606
4622
|
* console.log(res.data);
|
|
4607
4623
|
*
|
|
4608
4624
|
* // Example response
|
|
@@ -4670,7 +4686,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4670
4686
|
|
|
4671
4687
|
if (typeof paramsOrCallback === 'function') {
|
|
4672
4688
|
callback = paramsOrCallback;
|
|
4673
|
-
params =
|
|
4689
|
+
params =
|
|
4690
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Create;
|
|
4674
4691
|
options = {};
|
|
4675
4692
|
}
|
|
4676
4693
|
|
|
@@ -4735,17 +4752,17 @@ export namespace serviceusage_v1beta1 {
|
|
|
4735
4752
|
* google.options({auth: authClient});
|
|
4736
4753
|
*
|
|
4737
4754
|
* // Do the magic
|
|
4738
|
-
* const res =
|
|
4739
|
-
*
|
|
4740
|
-
*
|
|
4741
|
-
*
|
|
4742
|
-
*
|
|
4743
|
-
*
|
|
4744
|
-
*
|
|
4745
|
-
*
|
|
4746
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
4747
|
-
*
|
|
4748
|
-
*
|
|
4755
|
+
* const res =
|
|
4756
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.delete(
|
|
4757
|
+
* {
|
|
4758
|
+
* // 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.
|
|
4759
|
+
* force: 'placeholder-value',
|
|
4760
|
+
* // 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.
|
|
4761
|
+
* forceOnly: 'placeholder-value',
|
|
4762
|
+
* // 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`
|
|
4763
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
4764
|
+
* }
|
|
4765
|
+
* );
|
|
4749
4766
|
* console.log(res.data);
|
|
4750
4767
|
*
|
|
4751
4768
|
* // Example response
|
|
@@ -4813,7 +4830,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4813
4830
|
|
|
4814
4831
|
if (typeof paramsOrCallback === 'function') {
|
|
4815
4832
|
callback = paramsOrCallback;
|
|
4816
|
-
params =
|
|
4833
|
+
params =
|
|
4834
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Delete;
|
|
4817
4835
|
options = {};
|
|
4818
4836
|
}
|
|
4819
4837
|
|
|
@@ -4875,17 +4893,18 @@ export namespace serviceusage_v1beta1 {
|
|
|
4875
4893
|
* google.options({auth: authClient});
|
|
4876
4894
|
*
|
|
4877
4895
|
* // Do the magic
|
|
4878
|
-
* const res =
|
|
4879
|
-
*
|
|
4880
|
-
*
|
|
4881
|
-
*
|
|
4882
|
-
*
|
|
4883
|
-
*
|
|
4884
|
-
*
|
|
4885
|
-
*
|
|
4886
|
-
*
|
|
4887
|
-
*
|
|
4888
|
-
*
|
|
4896
|
+
* const res =
|
|
4897
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.list(
|
|
4898
|
+
* {
|
|
4899
|
+
* // Requested size of the next page of data.
|
|
4900
|
+
* pageSize: 'placeholder-value',
|
|
4901
|
+
* // Token identifying which result to start with; returned by a previous list call.
|
|
4902
|
+
* pageToken: 'placeholder-value',
|
|
4903
|
+
* // 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`
|
|
4904
|
+
* parent:
|
|
4905
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
4906
|
+
* }
|
|
4907
|
+
* );
|
|
4889
4908
|
* console.log(res.data);
|
|
4890
4909
|
*
|
|
4891
4910
|
* // Example response
|
|
@@ -4957,7 +4976,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4957
4976
|
|
|
4958
4977
|
if (typeof paramsOrCallback === 'function') {
|
|
4959
4978
|
callback = paramsOrCallback;
|
|
4960
|
-
params =
|
|
4979
|
+
params =
|
|
4980
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$List;
|
|
4961
4981
|
options = {};
|
|
4962
4982
|
}
|
|
4963
4983
|
|
|
@@ -5024,32 +5044,32 @@ export namespace serviceusage_v1beta1 {
|
|
|
5024
5044
|
* google.options({auth: authClient});
|
|
5025
5045
|
*
|
|
5026
5046
|
* // Do the magic
|
|
5027
|
-
* const res =
|
|
5028
|
-
*
|
|
5029
|
-
*
|
|
5030
|
-
*
|
|
5031
|
-
*
|
|
5032
|
-
*
|
|
5033
|
-
*
|
|
5034
|
-
*
|
|
5035
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
5036
|
-
*
|
|
5037
|
-
*
|
|
5038
|
-
*
|
|
5039
|
-
*
|
|
5040
|
-
*
|
|
5041
|
-
*
|
|
5042
|
-
*
|
|
5043
|
-
*
|
|
5044
|
-
*
|
|
5045
|
-
*
|
|
5046
|
-
*
|
|
5047
|
-
*
|
|
5048
|
-
*
|
|
5049
|
-
*
|
|
5050
|
-
*
|
|
5051
|
-
*
|
|
5052
|
-
*
|
|
5047
|
+
* const res =
|
|
5048
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.patch(
|
|
5049
|
+
* {
|
|
5050
|
+
* // 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.
|
|
5051
|
+
* force: 'placeholder-value',
|
|
5052
|
+
* // 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.
|
|
5053
|
+
* forceOnly: 'placeholder-value',
|
|
5054
|
+
* // 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`
|
|
5055
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
5056
|
+
* // Update only the specified fields of the override. If unset, all fields will be updated.
|
|
5057
|
+
* updateMask: 'placeholder-value',
|
|
5058
|
+
*
|
|
5059
|
+
* // Request body metadata
|
|
5060
|
+
* requestBody: {
|
|
5061
|
+
* // request body parameters
|
|
5062
|
+
* // {
|
|
5063
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
5064
|
+
* // "dimensions": {},
|
|
5065
|
+
* // "metric": "my_metric",
|
|
5066
|
+
* // "name": "my_name",
|
|
5067
|
+
* // "overrideValue": "my_overrideValue",
|
|
5068
|
+
* // "unit": "my_unit"
|
|
5069
|
+
* // }
|
|
5070
|
+
* },
|
|
5071
|
+
* }
|
|
5072
|
+
* );
|
|
5053
5073
|
* console.log(res.data);
|
|
5054
5074
|
*
|
|
5055
5075
|
* // Example response
|
|
@@ -5117,7 +5137,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
5117
5137
|
|
|
5118
5138
|
if (typeof paramsOrCallback === 'function') {
|
|
5119
5139
|
callback = paramsOrCallback;
|
|
5120
|
-
params =
|
|
5140
|
+
params =
|
|
5141
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Patch;
|
|
5121
5142
|
options = {};
|
|
5122
5143
|
}
|
|
5123
5144
|
|