@googleapis/serviceusage 0.2.1 → 3.1.1
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 +105 -0
- package/README.md +11 -2
- package/build/v1.d.ts +53 -26
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +230 -198
- package/build/v1beta1.js +24 -12
- package/build/v1beta1.js.map +1 -1
- package/package.json +2 -2
- package/v1.ts +46 -26
- package/v1beta1.ts +251 -214
package/build/v1beta1.d.ts
CHANGED
|
@@ -77,11 +77,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
77
77
|
*/
|
|
78
78
|
export interface Schema$AdminQuotaPolicy {
|
|
79
79
|
/**
|
|
80
|
-
* The cloud resource container at which the quota policy is created. The format is {container_type\}/{container_number\}
|
|
80
|
+
* The cloud resource container at which the quota policy is created. The format is `{container_type\}/{container_number\}`
|
|
81
81
|
*/
|
|
82
82
|
container?: string | null;
|
|
83
83
|
/**
|
|
84
|
-
* If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit 1/{project\}/{region\} could contain an entry with the key
|
|
84
|
+
* If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit `1/{project\}/{region\}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the following restrictions: * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * Keys other than `region` or `zone` are not valid.
|
|
85
85
|
*/
|
|
86
86
|
dimensions?: {
|
|
87
87
|
[key: string]: string;
|
|
@@ -137,7 +137,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
137
137
|
version?: string | null;
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
|
-
* `Authentication` defines the authentication configuration for
|
|
140
|
+
* `Authentication` defines the authentication configuration for API methods provided by an API service. Example: name: calendar.googleapis.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 - selector: google.calendar.Delegate oauth: canonical_scopes: https://www.googleapis.com/auth/calendar.read
|
|
141
141
|
*/
|
|
142
142
|
export interface Schema$Authentication {
|
|
143
143
|
/**
|
|
@@ -241,10 +241,6 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
241
241
|
* 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.
|
|
242
242
|
*/
|
|
243
243
|
jwtAudience?: string | null;
|
|
244
|
-
/**
|
|
245
|
-
* Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
|
|
246
|
-
*/
|
|
247
|
-
minDeadline?: number | null;
|
|
248
244
|
/**
|
|
249
245
|
* The number of seconds to wait for the completion of a long running operation. The default is no deadline.
|
|
250
246
|
*/
|
|
@@ -345,6 +341,10 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
345
341
|
* 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).
|
|
346
342
|
*/
|
|
347
343
|
quotaBuckets?: Schema$QuotaBucket[];
|
|
344
|
+
/**
|
|
345
|
+
* List of all supported locations. This field is present only if the limit has a {region\} or {zone\} dimension.
|
|
346
|
+
*/
|
|
347
|
+
supportedLocations?: string[] | null;
|
|
348
348
|
/**
|
|
349
349
|
* 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.
|
|
350
350
|
*/
|
|
@@ -363,7 +363,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
363
363
|
*/
|
|
364
364
|
descendantConsumerQuotaLimits?: Schema$ConsumerQuotaLimit[];
|
|
365
365
|
/**
|
|
366
|
-
* The display name of the metric. An example name would be:
|
|
366
|
+
* The display name of the metric. An example name would be: `CPUs`
|
|
367
367
|
*/
|
|
368
368
|
displayName?: string | null;
|
|
369
369
|
/**
|
|
@@ -371,7 +371,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
371
371
|
*/
|
|
372
372
|
metric?: string | null;
|
|
373
373
|
/**
|
|
374
|
-
* The resource name of the quota settings on this metric for this consumer. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
|
|
374
|
+
* The resource name of the quota settings on this metric for this consumer. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
|
|
375
375
|
*/
|
|
376
376
|
name?: string | null;
|
|
377
377
|
/**
|
|
@@ -414,14 +414,19 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
414
414
|
selector?: string | null;
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
417
|
-
* Selects and configures the service controller used by the service. The service controller handles
|
|
417
|
+
* 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
|
|
418
418
|
*/
|
|
419
419
|
export interface Schema$Control {
|
|
420
420
|
/**
|
|
421
|
-
* The service
|
|
421
|
+
* 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
|
|
422
422
|
*/
|
|
423
423
|
environment?: string | null;
|
|
424
424
|
}
|
|
425
|
+
/**
|
|
426
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by CreateAdminQuotaPolicy.
|
|
427
|
+
*/
|
|
428
|
+
export interface Schema$CreateAdminQuotaPolicyMetadata {
|
|
429
|
+
}
|
|
425
430
|
/**
|
|
426
431
|
* Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses. Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1.AnotherError
|
|
427
432
|
*/
|
|
@@ -461,6 +466,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
461
466
|
*/
|
|
462
467
|
path?: string | null;
|
|
463
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by DeleteAdminQuotaPolicy.
|
|
471
|
+
*/
|
|
472
|
+
export interface Schema$DeleteAdminQuotaPolicyMetadata {
|
|
473
|
+
}
|
|
464
474
|
/**
|
|
465
475
|
* Request message for the `DisableService` method.
|
|
466
476
|
*/
|
|
@@ -500,7 +510,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
500
510
|
*/
|
|
501
511
|
serviceRootUrl?: string | null;
|
|
502
512
|
/**
|
|
503
|
-
* A short
|
|
513
|
+
* 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`.
|
|
504
514
|
*/
|
|
505
515
|
summary?: string | null;
|
|
506
516
|
}
|
|
@@ -513,16 +523,16 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
513
523
|
*/
|
|
514
524
|
deprecationDescription?: string | null;
|
|
515
525
|
/**
|
|
516
|
-
* Description of the selected
|
|
526
|
+
* 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.
|
|
517
527
|
*/
|
|
518
528
|
description?: string | null;
|
|
519
529
|
/**
|
|
520
|
-
* 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.
|
|
530
|
+
* 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.
|
|
521
531
|
*/
|
|
522
532
|
selector?: string | null;
|
|
523
533
|
}
|
|
524
534
|
/**
|
|
525
|
-
* 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); \}
|
|
535
|
+
* 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); \}
|
|
526
536
|
*/
|
|
527
537
|
export interface Schema$Empty {
|
|
528
538
|
}
|
|
@@ -554,13 +564,9 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
554
564
|
service?: Schema$GoogleApiServiceusageV1Service;
|
|
555
565
|
}
|
|
556
566
|
/**
|
|
557
|
-
* `Endpoint` describes a network
|
|
567
|
+
* `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
|
|
558
568
|
*/
|
|
559
569
|
export interface Schema$Endpoint {
|
|
560
|
-
/**
|
|
561
|
-
* DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple google.api.Endpoint for each of the intended aliases. Additional names that this endpoint will be hosted on.
|
|
562
|
-
*/
|
|
563
|
-
aliases?: string[] | null;
|
|
564
570
|
/**
|
|
565
571
|
* Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka cross-domain traffic, would allow the backends served from this endpoint to receive and respond to HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed.
|
|
566
572
|
*/
|
|
@@ -661,6 +667,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
661
667
|
*/
|
|
662
668
|
typeUrl?: string | null;
|
|
663
669
|
}
|
|
670
|
+
/**
|
|
671
|
+
* Metadata for the `GetServiceIdentity` method.
|
|
672
|
+
*/
|
|
673
|
+
export interface Schema$GetServiceIdentityMetadata {
|
|
674
|
+
}
|
|
664
675
|
/**
|
|
665
676
|
* Response message for getting service identity.
|
|
666
677
|
*/
|
|
@@ -675,7 +686,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
675
686
|
state?: string | null;
|
|
676
687
|
}
|
|
677
688
|
/**
|
|
678
|
-
* `Service` is the root object of Google service configuration
|
|
689
|
+
* `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
|
|
679
690
|
*/
|
|
680
691
|
export interface Schema$GoogleApiService {
|
|
681
692
|
/**
|
|
@@ -719,7 +730,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
719
730
|
*/
|
|
720
731
|
endpoints?: Schema$Endpoint[];
|
|
721
732
|
/**
|
|
722
|
-
* 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
|
|
733
|
+
* 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
|
|
723
734
|
*/
|
|
724
735
|
enums?: Schema$Enum[];
|
|
725
736
|
/**
|
|
@@ -775,11 +786,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
775
786
|
*/
|
|
776
787
|
systemTypes?: Schema$Type[];
|
|
777
788
|
/**
|
|
778
|
-
* The product title for this service.
|
|
789
|
+
* The product title for this service, it is the name displayed in Google Cloud Console.
|
|
779
790
|
*/
|
|
780
791
|
title?: string | null;
|
|
781
792
|
/**
|
|
782
|
-
* 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
|
|
793
|
+
* 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
|
|
783
794
|
*/
|
|
784
795
|
types?: Schema$Type[];
|
|
785
796
|
/**
|
|
@@ -946,6 +957,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
946
957
|
*/
|
|
947
958
|
selector?: string | null;
|
|
948
959
|
}
|
|
960
|
+
/**
|
|
961
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.
|
|
962
|
+
*/
|
|
963
|
+
export interface Schema$ImportAdminOverridesMetadata {
|
|
964
|
+
}
|
|
949
965
|
/**
|
|
950
966
|
* Request message for ImportAdminOverrides
|
|
951
967
|
*/
|
|
@@ -972,6 +988,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
972
988
|
*/
|
|
973
989
|
overrides?: Schema$QuotaOverride[];
|
|
974
990
|
}
|
|
991
|
+
/**
|
|
992
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminQuotaPolicies.
|
|
993
|
+
*/
|
|
994
|
+
export interface Schema$ImportAdminQuotaPoliciesMetadata {
|
|
995
|
+
}
|
|
975
996
|
/**
|
|
976
997
|
* Response message for ImportAdminQuotaPolicies
|
|
977
998
|
*/
|
|
@@ -981,6 +1002,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
981
1002
|
*/
|
|
982
1003
|
policies?: Schema$AdminQuotaPolicy[];
|
|
983
1004
|
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportConsumerOverrides.
|
|
1007
|
+
*/
|
|
1008
|
+
export interface Schema$ImportConsumerOverridesMetadata {
|
|
1009
|
+
}
|
|
984
1010
|
/**
|
|
985
1011
|
* Request message for ImportConsumerOverrides
|
|
986
1012
|
*/
|
|
@@ -1305,7 +1331,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
1305
1331
|
*/
|
|
1306
1332
|
name?: string | null;
|
|
1307
1333
|
/**
|
|
1308
|
-
* Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL.
|
|
1334
|
+
* 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).
|
|
1309
1335
|
*/
|
|
1310
1336
|
type?: string | null;
|
|
1311
1337
|
}
|
|
@@ -1411,7 +1437,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
1411
1437
|
*/
|
|
1412
1438
|
export interface Schema$Page {
|
|
1413
1439
|
/**
|
|
1414
|
-
* The Markdown content of the page. You can use (== include {path\} ==) to include content from a Markdown file.
|
|
1440
|
+
* 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.
|
|
1415
1441
|
*/
|
|
1416
1442
|
content?: string | null;
|
|
1417
1443
|
/**
|
|
@@ -1453,7 +1479,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
1453
1479
|
*/
|
|
1454
1480
|
defaultLimit?: string | null;
|
|
1455
1481
|
/**
|
|
1456
|
-
* The dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map has key
|
|
1482
|
+
* The dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map has key `region` and value `us-east-1`, then the specified effective limit is only effective in that region, and the specified overrides apply only in that region.
|
|
1457
1483
|
*/
|
|
1458
1484
|
dimensions?: {
|
|
1459
1485
|
[key: string]: string;
|
|
@@ -1519,11 +1545,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
1519
1545
|
*/
|
|
1520
1546
|
export interface Schema$QuotaOverride {
|
|
1521
1547
|
/**
|
|
1522
|
-
* The resource name of the ancestor that requested the override. For example:
|
|
1548
|
+
* The resource name of the ancestor that requested the override. For example: `organizations/12345` or `folders/67890`. Used by admin overrides only.
|
|
1523
1549
|
*/
|
|
1524
1550
|
adminOverrideAncestor?: string | null;
|
|
1525
1551
|
/**
|
|
1526
|
-
* If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit. For example, an override on a limit with the unit 1/{project\}/{region\} could contain an entry with the key
|
|
1552
|
+
* If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit. For example, an override on a limit with the unit `1/{project\}/{region\}` could contain an entry with the key `region` and the value `us-east-1`; the override is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in `{brackets\}` in the unit (besides `{project\}` or `{user\}`) is a defined key. * `project` is not a valid key; the project is already specified in the parent resource name. * `user` is not a valid key; the API does not support quota overrides that apply only to a specific user. * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * If any valid key other than `region` or `zone` appears in the map, then all valid keys other than `region` or `zone` must also appear in the map.
|
|
1527
1553
|
*/
|
|
1528
1554
|
dimensions?: {
|
|
1529
1555
|
[key: string]: string;
|
|
@@ -1554,11 +1580,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
1554
1580
|
*/
|
|
1555
1581
|
config?: Schema$ServiceConfig;
|
|
1556
1582
|
/**
|
|
1557
|
-
* The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com
|
|
1583
|
+
* The resource name of the consumer and service. A valid name would be: - `projects/123/services/serviceusage.googleapis.com`
|
|
1558
1584
|
*/
|
|
1559
1585
|
name?: string | null;
|
|
1560
1586
|
/**
|
|
1561
|
-
* The resource name of the consumer. A valid name would be: - projects/123
|
|
1587
|
+
* The resource name of the consumer. A valid name would be: - `projects/123`
|
|
1562
1588
|
*/
|
|
1563
1589
|
parent?: string | null;
|
|
1564
1590
|
/**
|
|
@@ -1731,6 +1757,11 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
1731
1757
|
*/
|
|
1732
1758
|
syntax?: string | null;
|
|
1733
1759
|
}
|
|
1760
|
+
/**
|
|
1761
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by UpdateAdminQuotaPolicy.
|
|
1762
|
+
*/
|
|
1763
|
+
export interface Schema$UpdateAdminQuotaPolicyMetadata {
|
|
1764
|
+
}
|
|
1734
1765
|
/**
|
|
1735
1766
|
* Configuration controlling usage of a service.
|
|
1736
1767
|
*/
|
|
@@ -1927,7 +1958,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
1927
1958
|
consumerQuotaMetrics: Resource$Services$Consumerquotametrics;
|
|
1928
1959
|
constructor(context: APIRequestContext);
|
|
1929
1960
|
/**
|
|
1930
|
-
*
|
|
1961
|
+
* Enables multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. Operation response type: `google.protobuf.Empty`
|
|
1931
1962
|
* @example
|
|
1932
1963
|
* ```js
|
|
1933
1964
|
* // Before running the sample:
|
|
@@ -1998,7 +2029,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
1998
2029
|
batchEnable(params: Params$Resource$Services$Batchenable, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1999
2030
|
batchEnable(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2000
2031
|
/**
|
|
2001
|
-
*
|
|
2032
|
+
* Disables a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation response type: `google.protobuf.Empty`
|
|
2002
2033
|
* @example
|
|
2003
2034
|
* ```js
|
|
2004
2035
|
* // Before running the sample:
|
|
@@ -2067,7 +2098,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2067
2098
|
disable(params: Params$Resource$Services$Disable, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2068
2099
|
disable(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2069
2100
|
/**
|
|
2070
|
-
*
|
|
2101
|
+
* Enables a service so that it can be used with a project. Operation response type: `google.protobuf.Empty`
|
|
2071
2102
|
* @example
|
|
2072
2103
|
* ```js
|
|
2073
2104
|
* // Before running the sample:
|
|
@@ -2136,7 +2167,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2136
2167
|
enable(params: Params$Resource$Services$Enable, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2137
2168
|
enable(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2138
2169
|
/**
|
|
2139
|
-
*
|
|
2170
|
+
* Generates service identity for service.
|
|
2140
2171
|
* @example
|
|
2141
2172
|
* ```js
|
|
2142
2173
|
* // Before running the sample:
|
|
@@ -2261,7 +2292,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2261
2292
|
get(params: Params$Resource$Services$Get, callback: BodyResponseCallback<Schema$Service>): void;
|
|
2262
2293
|
get(callback: BodyResponseCallback<Schema$Service>): void;
|
|
2263
2294
|
/**
|
|
2264
|
-
*
|
|
2295
|
+
* Lists all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project.
|
|
2265
2296
|
* @example
|
|
2266
2297
|
* ```js
|
|
2267
2298
|
* // Before running the sample:
|
|
@@ -2421,9 +2452,8 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2421
2452
|
*
|
|
2422
2453
|
* // Do the magic
|
|
2423
2454
|
* const res = await serviceusage.services.consumerQuotaMetrics.get({
|
|
2424
|
-
* // 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
|
|
2425
|
-
* name:
|
|
2426
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric',
|
|
2455
|
+
* // 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`
|
|
2456
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric',
|
|
2427
2457
|
* // Specifies the level of detail for quota information in the response.
|
|
2428
2458
|
* view: 'placeholder-value',
|
|
2429
2459
|
* });
|
|
@@ -2459,7 +2489,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2459
2489
|
get(params: Params$Resource$Services$Consumerquotametrics$Get, callback: BodyResponseCallback<Schema$ConsumerQuotaMetric>): void;
|
|
2460
2490
|
get(callback: BodyResponseCallback<Schema$ConsumerQuotaMetric>): void;
|
|
2461
2491
|
/**
|
|
2462
|
-
*
|
|
2492
|
+
* Creates or updates multiple admin overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.
|
|
2463
2493
|
* @example
|
|
2464
2494
|
* ```js
|
|
2465
2495
|
* // Before running the sample:
|
|
@@ -2487,8 +2517,8 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2487
2517
|
* google.options({auth: authClient});
|
|
2488
2518
|
*
|
|
2489
2519
|
* // Do the magic
|
|
2490
|
-
* const res =
|
|
2491
|
-
* {
|
|
2520
|
+
* const res =
|
|
2521
|
+
* await serviceusage.services.consumerQuotaMetrics.importAdminOverrides({
|
|
2492
2522
|
* // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
|
|
2493
2523
|
* parent: '[^/]+/[^/]+/services/my-service',
|
|
2494
2524
|
*
|
|
@@ -2501,8 +2531,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2501
2531
|
* // "inlineSource": {}
|
|
2502
2532
|
* // }
|
|
2503
2533
|
* },
|
|
2504
|
-
* }
|
|
2505
|
-
* );
|
|
2534
|
+
* });
|
|
2506
2535
|
* console.log(res.data);
|
|
2507
2536
|
*
|
|
2508
2537
|
* // Example response
|
|
@@ -2534,7 +2563,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2534
2563
|
importAdminOverrides(params: Params$Resource$Services$Consumerquotametrics$Importadminoverrides, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2535
2564
|
importAdminOverrides(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2536
2565
|
/**
|
|
2537
|
-
*
|
|
2566
|
+
* Creates or updates multiple consumer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.
|
|
2538
2567
|
* @example
|
|
2539
2568
|
* ```js
|
|
2540
2569
|
* // Before running the sample:
|
|
@@ -2562,8 +2591,8 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2562
2591
|
* google.options({auth: authClient});
|
|
2563
2592
|
*
|
|
2564
2593
|
* // Do the magic
|
|
2565
|
-
* const res =
|
|
2566
|
-
* {
|
|
2594
|
+
* const res =
|
|
2595
|
+
* await serviceusage.services.consumerQuotaMetrics.importConsumerOverrides({
|
|
2567
2596
|
* // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
|
|
2568
2597
|
* parent: '[^/]+/[^/]+/services/my-service',
|
|
2569
2598
|
*
|
|
@@ -2576,8 +2605,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2576
2605
|
* // "inlineSource": {}
|
|
2577
2606
|
* // }
|
|
2578
2607
|
* },
|
|
2579
|
-
* }
|
|
2580
|
-
* );
|
|
2608
|
+
* });
|
|
2581
2609
|
* console.log(res.data);
|
|
2582
2610
|
*
|
|
2583
2611
|
* // Example response
|
|
@@ -2642,7 +2670,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2642
2670
|
* pageSize: 'placeholder-value',
|
|
2643
2671
|
* // Token identifying which result to start with; returned by a previous list call.
|
|
2644
2672
|
* pageToken: 'placeholder-value',
|
|
2645
|
-
* // Parent of the quotas resource. Some example names would be: projects/123/services/serviceconsumermanagement.googleapis.com folders/345/services/serviceconsumermanagement.googleapis.com organizations/456/services/serviceconsumermanagement.googleapis.com
|
|
2673
|
+
* // Parent of the quotas resource. Some example names would be: `projects/123/services/serviceconsumermanagement.googleapis.com` `folders/345/services/serviceconsumermanagement.googleapis.com` `organizations/456/services/serviceconsumermanagement.googleapis.com`
|
|
2646
2674
|
* parent: '[^/]+/[^/]+/services/my-service',
|
|
2647
2675
|
* // Specifies the level of detail for quota information in the response.
|
|
2648
2676
|
* view: 'placeholder-value',
|
|
@@ -2677,7 +2705,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2677
2705
|
}
|
|
2678
2706
|
export interface Params$Resource$Services$Consumerquotametrics$Get extends StandardParameters {
|
|
2679
2707
|
/**
|
|
2680
|
-
* 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
|
|
2708
|
+
* 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`
|
|
2681
2709
|
*/
|
|
2682
2710
|
name?: string;
|
|
2683
2711
|
/**
|
|
@@ -2715,7 +2743,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2715
2743
|
*/
|
|
2716
2744
|
pageToken?: string;
|
|
2717
2745
|
/**
|
|
2718
|
-
* Parent of the quotas resource. Some example names would be: projects/123/services/serviceconsumermanagement.googleapis.com folders/345/services/serviceconsumermanagement.googleapis.com organizations/456/services/serviceconsumermanagement.googleapis.com
|
|
2746
|
+
* Parent of the quotas resource. Some example names would be: `projects/123/services/serviceconsumermanagement.googleapis.com` `folders/345/services/serviceconsumermanagement.googleapis.com` `organizations/456/services/serviceconsumermanagement.googleapis.com`
|
|
2719
2747
|
*/
|
|
2720
2748
|
parent?: string;
|
|
2721
2749
|
/**
|
|
@@ -2759,8 +2787,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2759
2787
|
* // Do the magic
|
|
2760
2788
|
* const res = await serviceusage.services.consumerQuotaMetrics.limits.get({
|
|
2761
2789
|
* // The resource name of the quota limit. Use the quota limit resource name returned by previous ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls.
|
|
2762
|
-
* name:
|
|
2763
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
2790
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
2764
2791
|
* // Specifies the level of detail for quota information in the response.
|
|
2765
2792
|
* view: 'placeholder-value',
|
|
2766
2793
|
* });
|
|
@@ -2773,6 +2800,7 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2773
2800
|
* // "metric": "my_metric",
|
|
2774
2801
|
* // "name": "my_name",
|
|
2775
2802
|
* // "quotaBuckets": [],
|
|
2803
|
+
* // "supportedLocations": [],
|
|
2776
2804
|
* // "unit": "my_unit"
|
|
2777
2805
|
* // }
|
|
2778
2806
|
* }
|
|
@@ -2838,30 +2866,31 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2838
2866
|
* google.options({auth: authClient});
|
|
2839
2867
|
*
|
|
2840
2868
|
* // Do the magic
|
|
2841
|
-
* const res =
|
|
2842
|
-
*
|
|
2843
|
-
*
|
|
2844
|
-
*
|
|
2845
|
-
*
|
|
2846
|
-
*
|
|
2847
|
-
*
|
|
2848
|
-
*
|
|
2849
|
-
*
|
|
2850
|
-
*
|
|
2851
|
-
*
|
|
2852
|
-
*
|
|
2853
|
-
*
|
|
2854
|
-
*
|
|
2855
|
-
*
|
|
2856
|
-
*
|
|
2857
|
-
*
|
|
2858
|
-
*
|
|
2859
|
-
*
|
|
2860
|
-
*
|
|
2861
|
-
*
|
|
2862
|
-
*
|
|
2863
|
-
*
|
|
2864
|
-
*
|
|
2869
|
+
* const res =
|
|
2870
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.create(
|
|
2871
|
+
* {
|
|
2872
|
+
* // 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.
|
|
2873
|
+
* force: 'placeholder-value',
|
|
2874
|
+
* // 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.
|
|
2875
|
+
* forceOnly: 'placeholder-value',
|
|
2876
|
+
* // 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`
|
|
2877
|
+
* parent:
|
|
2878
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
2879
|
+
*
|
|
2880
|
+
* // Request body metadata
|
|
2881
|
+
* requestBody: {
|
|
2882
|
+
* // request body parameters
|
|
2883
|
+
* // {
|
|
2884
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
2885
|
+
* // "dimensions": {},
|
|
2886
|
+
* // "metric": "my_metric",
|
|
2887
|
+
* // "name": "my_name",
|
|
2888
|
+
* // "overrideValue": "my_overrideValue",
|
|
2889
|
+
* // "unit": "my_unit"
|
|
2890
|
+
* // }
|
|
2891
|
+
* },
|
|
2892
|
+
* }
|
|
2893
|
+
* );
|
|
2865
2894
|
* console.log(res.data);
|
|
2866
2895
|
*
|
|
2867
2896
|
* // Example response
|
|
@@ -2921,17 +2950,17 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2921
2950
|
* google.options({auth: authClient});
|
|
2922
2951
|
*
|
|
2923
2952
|
* // Do the magic
|
|
2924
|
-
* const res =
|
|
2925
|
-
*
|
|
2926
|
-
*
|
|
2927
|
-
*
|
|
2928
|
-
*
|
|
2929
|
-
*
|
|
2930
|
-
*
|
|
2931
|
-
*
|
|
2932
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
2933
|
-
*
|
|
2934
|
-
*
|
|
2953
|
+
* const res =
|
|
2954
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.delete(
|
|
2955
|
+
* {
|
|
2956
|
+
* // 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.
|
|
2957
|
+
* force: 'placeholder-value',
|
|
2958
|
+
* // 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.
|
|
2959
|
+
* forceOnly: 'placeholder-value',
|
|
2960
|
+
* // 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`
|
|
2961
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
2962
|
+
* }
|
|
2963
|
+
* );
|
|
2935
2964
|
* console.log(res.data);
|
|
2936
2965
|
*
|
|
2937
2966
|
* // Example response
|
|
@@ -2991,17 +3020,18 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
2991
3020
|
* google.options({auth: authClient});
|
|
2992
3021
|
*
|
|
2993
3022
|
* // Do the magic
|
|
2994
|
-
* const res =
|
|
2995
|
-
*
|
|
2996
|
-
*
|
|
2997
|
-
*
|
|
2998
|
-
*
|
|
2999
|
-
*
|
|
3000
|
-
*
|
|
3001
|
-
*
|
|
3002
|
-
*
|
|
3003
|
-
*
|
|
3004
|
-
*
|
|
3023
|
+
* const res =
|
|
3024
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.list(
|
|
3025
|
+
* {
|
|
3026
|
+
* // Requested size of the next page of data.
|
|
3027
|
+
* pageSize: 'placeholder-value',
|
|
3028
|
+
* // Token identifying which result to start with; returned by a previous list call.
|
|
3029
|
+
* pageToken: 'placeholder-value',
|
|
3030
|
+
* // 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`
|
|
3031
|
+
* parent:
|
|
3032
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3033
|
+
* }
|
|
3034
|
+
* );
|
|
3005
3035
|
* console.log(res.data);
|
|
3006
3036
|
*
|
|
3007
3037
|
* // Example response
|
|
@@ -3058,32 +3088,32 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
3058
3088
|
* google.options({auth: authClient});
|
|
3059
3089
|
*
|
|
3060
3090
|
* // Do the magic
|
|
3061
|
-
* const res =
|
|
3062
|
-
*
|
|
3063
|
-
*
|
|
3064
|
-
*
|
|
3065
|
-
*
|
|
3066
|
-
*
|
|
3067
|
-
*
|
|
3068
|
-
*
|
|
3069
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
3070
|
-
*
|
|
3071
|
-
*
|
|
3072
|
-
*
|
|
3073
|
-
*
|
|
3074
|
-
*
|
|
3075
|
-
*
|
|
3076
|
-
*
|
|
3077
|
-
*
|
|
3078
|
-
*
|
|
3079
|
-
*
|
|
3080
|
-
*
|
|
3081
|
-
*
|
|
3082
|
-
*
|
|
3083
|
-
*
|
|
3084
|
-
*
|
|
3085
|
-
*
|
|
3086
|
-
*
|
|
3091
|
+
* const res =
|
|
3092
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.patch(
|
|
3093
|
+
* {
|
|
3094
|
+
* // 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.
|
|
3095
|
+
* force: 'placeholder-value',
|
|
3096
|
+
* // 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.
|
|
3097
|
+
* forceOnly: 'placeholder-value',
|
|
3098
|
+
* // 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`
|
|
3099
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
3100
|
+
* // Update only the specified fields of the override. If unset, all fields will be updated.
|
|
3101
|
+
* updateMask: 'placeholder-value',
|
|
3102
|
+
*
|
|
3103
|
+
* // Request body metadata
|
|
3104
|
+
* requestBody: {
|
|
3105
|
+
* // request body parameters
|
|
3106
|
+
* // {
|
|
3107
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
3108
|
+
* // "dimensions": {},
|
|
3109
|
+
* // "metric": "my_metric",
|
|
3110
|
+
* // "name": "my_name",
|
|
3111
|
+
* // "overrideValue": "my_overrideValue",
|
|
3112
|
+
* // "unit": "my_unit"
|
|
3113
|
+
* // }
|
|
3114
|
+
* },
|
|
3115
|
+
* }
|
|
3116
|
+
* );
|
|
3087
3117
|
* console.log(res.data);
|
|
3088
3118
|
*
|
|
3089
3119
|
* // Example response
|
|
@@ -3215,30 +3245,31 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
3215
3245
|
* google.options({auth: authClient});
|
|
3216
3246
|
*
|
|
3217
3247
|
* // Do the magic
|
|
3218
|
-
* const res =
|
|
3219
|
-
*
|
|
3220
|
-
*
|
|
3221
|
-
*
|
|
3222
|
-
*
|
|
3223
|
-
*
|
|
3224
|
-
*
|
|
3225
|
-
*
|
|
3226
|
-
*
|
|
3227
|
-
*
|
|
3228
|
-
*
|
|
3229
|
-
*
|
|
3230
|
-
*
|
|
3231
|
-
*
|
|
3232
|
-
*
|
|
3233
|
-
*
|
|
3234
|
-
*
|
|
3235
|
-
*
|
|
3236
|
-
*
|
|
3237
|
-
*
|
|
3238
|
-
*
|
|
3239
|
-
*
|
|
3240
|
-
*
|
|
3241
|
-
*
|
|
3248
|
+
* const res =
|
|
3249
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.create(
|
|
3250
|
+
* {
|
|
3251
|
+
* // 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.
|
|
3252
|
+
* force: 'placeholder-value',
|
|
3253
|
+
* // 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.
|
|
3254
|
+
* forceOnly: 'placeholder-value',
|
|
3255
|
+
* // 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`
|
|
3256
|
+
* parent:
|
|
3257
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3258
|
+
*
|
|
3259
|
+
* // Request body metadata
|
|
3260
|
+
* requestBody: {
|
|
3261
|
+
* // request body parameters
|
|
3262
|
+
* // {
|
|
3263
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
3264
|
+
* // "dimensions": {},
|
|
3265
|
+
* // "metric": "my_metric",
|
|
3266
|
+
* // "name": "my_name",
|
|
3267
|
+
* // "overrideValue": "my_overrideValue",
|
|
3268
|
+
* // "unit": "my_unit"
|
|
3269
|
+
* // }
|
|
3270
|
+
* },
|
|
3271
|
+
* }
|
|
3272
|
+
* );
|
|
3242
3273
|
* console.log(res.data);
|
|
3243
3274
|
*
|
|
3244
3275
|
* // Example response
|
|
@@ -3298,17 +3329,17 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
3298
3329
|
* google.options({auth: authClient});
|
|
3299
3330
|
*
|
|
3300
3331
|
* // Do the magic
|
|
3301
|
-
* const res =
|
|
3302
|
-
*
|
|
3303
|
-
*
|
|
3304
|
-
*
|
|
3305
|
-
*
|
|
3306
|
-
*
|
|
3307
|
-
*
|
|
3308
|
-
*
|
|
3309
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
3310
|
-
*
|
|
3311
|
-
*
|
|
3332
|
+
* const res =
|
|
3333
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.delete(
|
|
3334
|
+
* {
|
|
3335
|
+
* // 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.
|
|
3336
|
+
* force: 'placeholder-value',
|
|
3337
|
+
* // 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.
|
|
3338
|
+
* forceOnly: 'placeholder-value',
|
|
3339
|
+
* // 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`
|
|
3340
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
3341
|
+
* }
|
|
3342
|
+
* );
|
|
3312
3343
|
* console.log(res.data);
|
|
3313
3344
|
*
|
|
3314
3345
|
* // Example response
|
|
@@ -3368,17 +3399,18 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
3368
3399
|
* google.options({auth: authClient});
|
|
3369
3400
|
*
|
|
3370
3401
|
* // Do the magic
|
|
3371
|
-
* const res =
|
|
3372
|
-
*
|
|
3373
|
-
*
|
|
3374
|
-
*
|
|
3375
|
-
*
|
|
3376
|
-
*
|
|
3377
|
-
*
|
|
3378
|
-
*
|
|
3379
|
-
*
|
|
3380
|
-
*
|
|
3381
|
-
*
|
|
3402
|
+
* const res =
|
|
3403
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.list(
|
|
3404
|
+
* {
|
|
3405
|
+
* // Requested size of the next page of data.
|
|
3406
|
+
* pageSize: 'placeholder-value',
|
|
3407
|
+
* // Token identifying which result to start with; returned by a previous list call.
|
|
3408
|
+
* pageToken: 'placeholder-value',
|
|
3409
|
+
* // 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`
|
|
3410
|
+
* parent:
|
|
3411
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3412
|
+
* }
|
|
3413
|
+
* );
|
|
3382
3414
|
* console.log(res.data);
|
|
3383
3415
|
*
|
|
3384
3416
|
* // Example response
|
|
@@ -3435,32 +3467,32 @@ export declare namespace serviceusage_v1beta1 {
|
|
|
3435
3467
|
* google.options({auth: authClient});
|
|
3436
3468
|
*
|
|
3437
3469
|
* // Do the magic
|
|
3438
|
-
* const res =
|
|
3439
|
-
*
|
|
3440
|
-
*
|
|
3441
|
-
*
|
|
3442
|
-
*
|
|
3443
|
-
*
|
|
3444
|
-
*
|
|
3445
|
-
*
|
|
3446
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
3447
|
-
*
|
|
3448
|
-
*
|
|
3449
|
-
*
|
|
3450
|
-
*
|
|
3451
|
-
*
|
|
3452
|
-
*
|
|
3453
|
-
*
|
|
3454
|
-
*
|
|
3455
|
-
*
|
|
3456
|
-
*
|
|
3457
|
-
*
|
|
3458
|
-
*
|
|
3459
|
-
*
|
|
3460
|
-
*
|
|
3461
|
-
*
|
|
3462
|
-
*
|
|
3463
|
-
*
|
|
3470
|
+
* const res =
|
|
3471
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.patch(
|
|
3472
|
+
* {
|
|
3473
|
+
* // 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.
|
|
3474
|
+
* force: 'placeholder-value',
|
|
3475
|
+
* // 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.
|
|
3476
|
+
* forceOnly: 'placeholder-value',
|
|
3477
|
+
* // 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`
|
|
3478
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
3479
|
+
* // Update only the specified fields of the override. If unset, all fields will be updated.
|
|
3480
|
+
* updateMask: 'placeholder-value',
|
|
3481
|
+
*
|
|
3482
|
+
* // Request body metadata
|
|
3483
|
+
* requestBody: {
|
|
3484
|
+
* // request body parameters
|
|
3485
|
+
* // {
|
|
3486
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
3487
|
+
* // "dimensions": {},
|
|
3488
|
+
* // "metric": "my_metric",
|
|
3489
|
+
* // "name": "my_name",
|
|
3490
|
+
* // "overrideValue": "my_overrideValue",
|
|
3491
|
+
* // "unit": "my_unit"
|
|
3492
|
+
* // }
|
|
3493
|
+
* },
|
|
3494
|
+
* }
|
|
3495
|
+
* );
|
|
3464
3496
|
* console.log(res.data);
|
|
3465
3497
|
*
|
|
3466
3498
|
* // Example response
|