@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/v1beta1.ts
CHANGED
|
@@ -132,11 +132,11 @@ export namespace serviceusage_v1beta1 {
|
|
|
132
132
|
*/
|
|
133
133
|
export interface Schema$AdminQuotaPolicy {
|
|
134
134
|
/**
|
|
135
|
-
* The cloud resource container at which the quota policy is created. The format is {container_type\}/{container_number\}
|
|
135
|
+
* The cloud resource container at which the quota policy is created. The format is `{container_type\}/{container_number\}`
|
|
136
136
|
*/
|
|
137
137
|
container?: string | null;
|
|
138
138
|
/**
|
|
139
|
-
* 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
|
|
139
|
+
* 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.
|
|
140
140
|
*/
|
|
141
141
|
dimensions?: {[key: string]: string} | null;
|
|
142
142
|
/**
|
|
@@ -190,7 +190,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
190
190
|
version?: string | null;
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
|
-
* `Authentication` defines the authentication configuration for
|
|
193
|
+
* `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
|
|
194
194
|
*/
|
|
195
195
|
export interface Schema$Authentication {
|
|
196
196
|
/**
|
|
@@ -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
|
*/
|
|
@@ -416,7 +416,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
416
416
|
*/
|
|
417
417
|
descendantConsumerQuotaLimits?: Schema$ConsumerQuotaLimit[];
|
|
418
418
|
/**
|
|
419
|
-
* The display name of the metric. An example name would be:
|
|
419
|
+
* The display name of the metric. An example name would be: `CPUs`
|
|
420
420
|
*/
|
|
421
421
|
displayName?: string | null;
|
|
422
422
|
/**
|
|
@@ -424,7 +424,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
424
424
|
*/
|
|
425
425
|
metric?: string | null;
|
|
426
426
|
/**
|
|
427
|
-
* 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.
|
|
427
|
+
* 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.
|
|
428
428
|
*/
|
|
429
429
|
name?: string | null;
|
|
430
430
|
/**
|
|
@@ -467,14 +467,18 @@ 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
|
}
|
|
478
|
+
/**
|
|
479
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by CreateAdminQuotaPolicy.
|
|
480
|
+
*/
|
|
481
|
+
export interface Schema$CreateAdminQuotaPolicyMetadata {}
|
|
478
482
|
/**
|
|
479
483
|
* 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
|
|
480
484
|
*/
|
|
@@ -514,6 +518,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
514
518
|
*/
|
|
515
519
|
path?: string | null;
|
|
516
520
|
}
|
|
521
|
+
/**
|
|
522
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by DeleteAdminQuotaPolicy.
|
|
523
|
+
*/
|
|
524
|
+
export interface Schema$DeleteAdminQuotaPolicyMetadata {}
|
|
517
525
|
/**
|
|
518
526
|
* Request message for the `DisableService` method.
|
|
519
527
|
*/
|
|
@@ -552,7 +560,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
552
560
|
*/
|
|
553
561
|
serviceRootUrl?: string | null;
|
|
554
562
|
/**
|
|
555
|
-
* 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`.
|
|
556
564
|
*/
|
|
557
565
|
summary?: string | null;
|
|
558
566
|
}
|
|
@@ -565,16 +573,16 @@ export namespace serviceusage_v1beta1 {
|
|
|
565
573
|
*/
|
|
566
574
|
deprecationDescription?: string | null;
|
|
567
575
|
/**
|
|
568
|
-
* 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.
|
|
569
577
|
*/
|
|
570
578
|
description?: string | null;
|
|
571
579
|
/**
|
|
572
|
-
* 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.
|
|
573
581
|
*/
|
|
574
582
|
selector?: string | null;
|
|
575
583
|
}
|
|
576
584
|
/**
|
|
577
|
-
* 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); \}
|
|
578
586
|
*/
|
|
579
587
|
export interface Schema$Empty {}
|
|
580
588
|
/**
|
|
@@ -604,13 +612,9 @@ export namespace serviceusage_v1beta1 {
|
|
|
604
612
|
service?: Schema$GoogleApiServiceusageV1Service;
|
|
605
613
|
}
|
|
606
614
|
/**
|
|
607
|
-
* `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
|
|
608
616
|
*/
|
|
609
617
|
export interface Schema$Endpoint {
|
|
610
|
-
/**
|
|
611
|
-
* 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.
|
|
612
|
-
*/
|
|
613
|
-
aliases?: string[] | null;
|
|
614
618
|
/**
|
|
615
619
|
* 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.
|
|
616
620
|
*/
|
|
@@ -711,6 +715,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
711
715
|
*/
|
|
712
716
|
typeUrl?: string | null;
|
|
713
717
|
}
|
|
718
|
+
/**
|
|
719
|
+
* Metadata for the `GetServiceIdentity` method.
|
|
720
|
+
*/
|
|
721
|
+
export interface Schema$GetServiceIdentityMetadata {}
|
|
714
722
|
/**
|
|
715
723
|
* Response message for getting service identity.
|
|
716
724
|
*/
|
|
@@ -725,7 +733,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
725
733
|
state?: string | null;
|
|
726
734
|
}
|
|
727
735
|
/**
|
|
728
|
-
* `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
|
|
729
737
|
*/
|
|
730
738
|
export interface Schema$GoogleApiService {
|
|
731
739
|
/**
|
|
@@ -769,7 +777,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
769
777
|
*/
|
|
770
778
|
endpoints?: Schema$Endpoint[];
|
|
771
779
|
/**
|
|
772
|
-
* 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
|
|
773
781
|
*/
|
|
774
782
|
enums?: Schema$Enum[];
|
|
775
783
|
/**
|
|
@@ -825,11 +833,11 @@ export namespace serviceusage_v1beta1 {
|
|
|
825
833
|
*/
|
|
826
834
|
systemTypes?: Schema$Type[];
|
|
827
835
|
/**
|
|
828
|
-
* The product title for this service.
|
|
836
|
+
* The product title for this service, it is the name displayed in Google Cloud Console.
|
|
829
837
|
*/
|
|
830
838
|
title?: string | null;
|
|
831
839
|
/**
|
|
832
|
-
* 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
|
|
833
841
|
*/
|
|
834
842
|
types?: Schema$Type[];
|
|
835
843
|
/**
|
|
@@ -996,6 +1004,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
996
1004
|
*/
|
|
997
1005
|
selector?: string | null;
|
|
998
1006
|
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.
|
|
1009
|
+
*/
|
|
1010
|
+
export interface Schema$ImportAdminOverridesMetadata {}
|
|
999
1011
|
/**
|
|
1000
1012
|
* Request message for ImportAdminOverrides
|
|
1001
1013
|
*/
|
|
@@ -1022,6 +1034,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1022
1034
|
*/
|
|
1023
1035
|
overrides?: Schema$QuotaOverride[];
|
|
1024
1036
|
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminQuotaPolicies.
|
|
1039
|
+
*/
|
|
1040
|
+
export interface Schema$ImportAdminQuotaPoliciesMetadata {}
|
|
1025
1041
|
/**
|
|
1026
1042
|
* Response message for ImportAdminQuotaPolicies
|
|
1027
1043
|
*/
|
|
@@ -1031,6 +1047,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1031
1047
|
*/
|
|
1032
1048
|
policies?: Schema$AdminQuotaPolicy[];
|
|
1033
1049
|
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportConsumerOverrides.
|
|
1052
|
+
*/
|
|
1053
|
+
export interface Schema$ImportConsumerOverridesMetadata {}
|
|
1034
1054
|
/**
|
|
1035
1055
|
* Request message for ImportConsumerOverrides
|
|
1036
1056
|
*/
|
|
@@ -1353,7 +1373,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1353
1373
|
*/
|
|
1354
1374
|
name?: string | null;
|
|
1355
1375
|
/**
|
|
1356
|
-
* Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL.
|
|
1376
|
+
* 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).
|
|
1357
1377
|
*/
|
|
1358
1378
|
type?: string | null;
|
|
1359
1379
|
}
|
|
@@ -1453,7 +1473,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1453
1473
|
*/
|
|
1454
1474
|
export interface Schema$Page {
|
|
1455
1475
|
/**
|
|
1456
|
-
* The Markdown content of the page. You can use (== include {path\} ==) to include content from a Markdown file.
|
|
1476
|
+
* 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.
|
|
1457
1477
|
*/
|
|
1458
1478
|
content?: string | null;
|
|
1459
1479
|
/**
|
|
@@ -1495,7 +1515,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1495
1515
|
*/
|
|
1496
1516
|
defaultLimit?: string | null;
|
|
1497
1517
|
/**
|
|
1498
|
-
* 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
|
|
1518
|
+
* 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.
|
|
1499
1519
|
*/
|
|
1500
1520
|
dimensions?: {[key: string]: string} | null;
|
|
1501
1521
|
/**
|
|
@@ -1557,11 +1577,11 @@ export namespace serviceusage_v1beta1 {
|
|
|
1557
1577
|
*/
|
|
1558
1578
|
export interface Schema$QuotaOverride {
|
|
1559
1579
|
/**
|
|
1560
|
-
* The resource name of the ancestor that requested the override. For example:
|
|
1580
|
+
* The resource name of the ancestor that requested the override. For example: `organizations/12345` or `folders/67890`. Used by admin overrides only.
|
|
1561
1581
|
*/
|
|
1562
1582
|
adminOverrideAncestor?: string | null;
|
|
1563
1583
|
/**
|
|
1564
|
-
* 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
|
|
1584
|
+
* 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.
|
|
1565
1585
|
*/
|
|
1566
1586
|
dimensions?: {[key: string]: string} | null;
|
|
1567
1587
|
/**
|
|
@@ -1590,11 +1610,11 @@ export namespace serviceusage_v1beta1 {
|
|
|
1590
1610
|
*/
|
|
1591
1611
|
config?: Schema$ServiceConfig;
|
|
1592
1612
|
/**
|
|
1593
|
-
* The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com
|
|
1613
|
+
* The resource name of the consumer and service. A valid name would be: - `projects/123/services/serviceusage.googleapis.com`
|
|
1594
1614
|
*/
|
|
1595
1615
|
name?: string | null;
|
|
1596
1616
|
/**
|
|
1597
|
-
* The resource name of the consumer. A valid name would be: - projects/123
|
|
1617
|
+
* The resource name of the consumer. A valid name would be: - `projects/123`
|
|
1598
1618
|
*/
|
|
1599
1619
|
parent?: string | null;
|
|
1600
1620
|
/**
|
|
@@ -1763,6 +1783,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1763
1783
|
*/
|
|
1764
1784
|
syntax?: string | null;
|
|
1765
1785
|
}
|
|
1786
|
+
/**
|
|
1787
|
+
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by UpdateAdminQuotaPolicy.
|
|
1788
|
+
*/
|
|
1789
|
+
export interface Schema$UpdateAdminQuotaPolicyMetadata {}
|
|
1766
1790
|
/**
|
|
1767
1791
|
* Configuration controlling usage of a service.
|
|
1768
1792
|
*/
|
|
@@ -2116,7 +2140,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
2116
2140
|
}
|
|
2117
2141
|
|
|
2118
2142
|
/**
|
|
2119
|
-
*
|
|
2143
|
+
* 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`
|
|
2120
2144
|
* @example
|
|
2121
2145
|
* ```js
|
|
2122
2146
|
* // Before running the sample:
|
|
@@ -2260,7 +2284,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
2260
2284
|
}
|
|
2261
2285
|
|
|
2262
2286
|
/**
|
|
2263
|
-
*
|
|
2287
|
+
* 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`
|
|
2264
2288
|
* @example
|
|
2265
2289
|
* ```js
|
|
2266
2290
|
* // Before running the sample:
|
|
@@ -2401,7 +2425,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
2401
2425
|
}
|
|
2402
2426
|
|
|
2403
2427
|
/**
|
|
2404
|
-
*
|
|
2428
|
+
* Enables a service so that it can be used with a project. Operation response type: `google.protobuf.Empty`
|
|
2405
2429
|
* @example
|
|
2406
2430
|
* ```js
|
|
2407
2431
|
* // Before running the sample:
|
|
@@ -2542,7 +2566,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
2542
2566
|
}
|
|
2543
2567
|
|
|
2544
2568
|
/**
|
|
2545
|
-
*
|
|
2569
|
+
* Generates service identity for service.
|
|
2546
2570
|
* @example
|
|
2547
2571
|
* ```js
|
|
2548
2572
|
* // Before running the sample:
|
|
@@ -2810,7 +2834,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
2810
2834
|
}
|
|
2811
2835
|
|
|
2812
2836
|
/**
|
|
2813
|
-
*
|
|
2837
|
+
* 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.
|
|
2814
2838
|
* @example
|
|
2815
2839
|
* ```js
|
|
2816
2840
|
* // Before running the sample:
|
|
@@ -3059,9 +3083,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3059
3083
|
*
|
|
3060
3084
|
* // Do the magic
|
|
3061
3085
|
* const res = await serviceusage.services.consumerQuotaMetrics.get({
|
|
3062
|
-
* // 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
|
|
3063
|
-
* name:
|
|
3064
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric',
|
|
3086
|
+
* // 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: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric',
|
|
3065
3088
|
* // Specifies the level of detail for quota information in the response.
|
|
3066
3089
|
* view: 'placeholder-value',
|
|
3067
3090
|
* });
|
|
@@ -3170,7 +3193,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3170
3193
|
}
|
|
3171
3194
|
|
|
3172
3195
|
/**
|
|
3173
|
-
*
|
|
3196
|
+
* 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.
|
|
3174
3197
|
* @example
|
|
3175
3198
|
* ```js
|
|
3176
3199
|
* // Before running the sample:
|
|
@@ -3198,8 +3221,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3198
3221
|
* google.options({auth: authClient});
|
|
3199
3222
|
*
|
|
3200
3223
|
* // Do the magic
|
|
3201
|
-
* const res =
|
|
3202
|
-
* {
|
|
3224
|
+
* const res =
|
|
3225
|
+
* await serviceusage.services.consumerQuotaMetrics.importAdminOverrides({
|
|
3203
3226
|
* // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
|
|
3204
3227
|
* parent: '[^/]+/[^/]+/services/my-service',
|
|
3205
3228
|
*
|
|
@@ -3212,8 +3235,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3212
3235
|
* // "inlineSource": {}
|
|
3213
3236
|
* // }
|
|
3214
3237
|
* },
|
|
3215
|
-
* }
|
|
3216
|
-
* );
|
|
3238
|
+
* });
|
|
3217
3239
|
* console.log(res.data);
|
|
3218
3240
|
*
|
|
3219
3241
|
* // Example response
|
|
@@ -3283,7 +3305,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3283
3305
|
|
|
3284
3306
|
if (typeof paramsOrCallback === 'function') {
|
|
3285
3307
|
callback = paramsOrCallback;
|
|
3286
|
-
params =
|
|
3308
|
+
params =
|
|
3309
|
+
{} as Params$Resource$Services$Consumerquotametrics$Importadminoverrides;
|
|
3287
3310
|
options = {};
|
|
3288
3311
|
}
|
|
3289
3312
|
|
|
@@ -3320,7 +3343,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3320
3343
|
}
|
|
3321
3344
|
|
|
3322
3345
|
/**
|
|
3323
|
-
*
|
|
3346
|
+
* 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.
|
|
3324
3347
|
* @example
|
|
3325
3348
|
* ```js
|
|
3326
3349
|
* // Before running the sample:
|
|
@@ -3348,8 +3371,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3348
3371
|
* google.options({auth: authClient});
|
|
3349
3372
|
*
|
|
3350
3373
|
* // Do the magic
|
|
3351
|
-
* const res =
|
|
3352
|
-
* {
|
|
3374
|
+
* const res =
|
|
3375
|
+
* await serviceusage.services.consumerQuotaMetrics.importConsumerOverrides({
|
|
3353
3376
|
* // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
|
|
3354
3377
|
* parent: '[^/]+/[^/]+/services/my-service',
|
|
3355
3378
|
*
|
|
@@ -3362,8 +3385,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3362
3385
|
* // "inlineSource": {}
|
|
3363
3386
|
* // }
|
|
3364
3387
|
* },
|
|
3365
|
-
* }
|
|
3366
|
-
* );
|
|
3388
|
+
* });
|
|
3367
3389
|
* console.log(res.data);
|
|
3368
3390
|
*
|
|
3369
3391
|
* // Example response
|
|
@@ -3433,7 +3455,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3433
3455
|
|
|
3434
3456
|
if (typeof paramsOrCallback === 'function') {
|
|
3435
3457
|
callback = paramsOrCallback;
|
|
3436
|
-
params =
|
|
3458
|
+
params =
|
|
3459
|
+
{} as Params$Resource$Services$Consumerquotametrics$Importconsumeroverrides;
|
|
3437
3460
|
options = {};
|
|
3438
3461
|
}
|
|
3439
3462
|
|
|
@@ -3503,7 +3526,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3503
3526
|
* pageSize: 'placeholder-value',
|
|
3504
3527
|
* // Token identifying which result to start with; returned by a previous list call.
|
|
3505
3528
|
* pageToken: 'placeholder-value',
|
|
3506
|
-
* // 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
|
|
3529
|
+
* // 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`
|
|
3507
3530
|
* parent: '[^/]+/[^/]+/services/my-service',
|
|
3508
3531
|
* // Specifies the level of detail for quota information in the response.
|
|
3509
3532
|
* view: 'placeholder-value',
|
|
@@ -3621,7 +3644,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3621
3644
|
export interface Params$Resource$Services$Consumerquotametrics$Get
|
|
3622
3645
|
extends StandardParameters {
|
|
3623
3646
|
/**
|
|
3624
|
-
* 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
|
|
3647
|
+
* 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`
|
|
3625
3648
|
*/
|
|
3626
3649
|
name?: string;
|
|
3627
3650
|
/**
|
|
@@ -3664,7 +3687,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3664
3687
|
*/
|
|
3665
3688
|
pageToken?: string;
|
|
3666
3689
|
/**
|
|
3667
|
-
* 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
|
|
3690
|
+
* 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`
|
|
3668
3691
|
*/
|
|
3669
3692
|
parent?: string;
|
|
3670
3693
|
/**
|
|
@@ -3679,12 +3702,14 @@ export namespace serviceusage_v1beta1 {
|
|
|
3679
3702
|
consumerOverrides: Resource$Services$Consumerquotametrics$Limits$Consumeroverrides;
|
|
3680
3703
|
constructor(context: APIRequestContext) {
|
|
3681
3704
|
this.context = context;
|
|
3682
|
-
this.adminOverrides =
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3705
|
+
this.adminOverrides =
|
|
3706
|
+
new Resource$Services$Consumerquotametrics$Limits$Adminoverrides(
|
|
3707
|
+
this.context
|
|
3708
|
+
);
|
|
3709
|
+
this.consumerOverrides =
|
|
3710
|
+
new Resource$Services$Consumerquotametrics$Limits$Consumeroverrides(
|
|
3711
|
+
this.context
|
|
3712
|
+
);
|
|
3688
3713
|
}
|
|
3689
3714
|
|
|
3690
3715
|
/**
|
|
@@ -3718,8 +3743,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3718
3743
|
* // Do the magic
|
|
3719
3744
|
* const res = await serviceusage.services.consumerQuotaMetrics.limits.get({
|
|
3720
3745
|
* // The resource name of the quota limit. Use the quota limit resource name returned by previous ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls.
|
|
3721
|
-
* name:
|
|
3722
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3746
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3723
3747
|
* // Specifies the level of detail for quota information in the response.
|
|
3724
3748
|
* view: 'placeholder-value',
|
|
3725
3749
|
* });
|
|
@@ -3732,6 +3756,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3732
3756
|
* // "metric": "my_metric",
|
|
3733
3757
|
* // "name": "my_name",
|
|
3734
3758
|
* // "quotaBuckets": [],
|
|
3759
|
+
* // "supportedLocations": [],
|
|
3735
3760
|
* // "unit": "my_unit"
|
|
3736
3761
|
* // }
|
|
3737
3762
|
* }
|
|
@@ -3875,30 +3900,31 @@ export namespace serviceusage_v1beta1 {
|
|
|
3875
3900
|
* google.options({auth: authClient});
|
|
3876
3901
|
*
|
|
3877
3902
|
* // Do the magic
|
|
3878
|
-
* const res =
|
|
3879
|
-
*
|
|
3880
|
-
*
|
|
3881
|
-
*
|
|
3882
|
-
*
|
|
3883
|
-
*
|
|
3884
|
-
*
|
|
3885
|
-
*
|
|
3886
|
-
*
|
|
3887
|
-
*
|
|
3888
|
-
*
|
|
3889
|
-
*
|
|
3890
|
-
*
|
|
3891
|
-
*
|
|
3892
|
-
*
|
|
3893
|
-
*
|
|
3894
|
-
*
|
|
3895
|
-
*
|
|
3896
|
-
*
|
|
3897
|
-
*
|
|
3898
|
-
*
|
|
3899
|
-
*
|
|
3900
|
-
*
|
|
3901
|
-
*
|
|
3903
|
+
* const res =
|
|
3904
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.create(
|
|
3905
|
+
* {
|
|
3906
|
+
* // 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.
|
|
3907
|
+
* force: 'placeholder-value',
|
|
3908
|
+
* // 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.
|
|
3909
|
+
* forceOnly: 'placeholder-value',
|
|
3910
|
+
* // 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`
|
|
3911
|
+
* parent:
|
|
3912
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3913
|
+
*
|
|
3914
|
+
* // Request body metadata
|
|
3915
|
+
* requestBody: {
|
|
3916
|
+
* // request body parameters
|
|
3917
|
+
* // {
|
|
3918
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
3919
|
+
* // "dimensions": {},
|
|
3920
|
+
* // "metric": "my_metric",
|
|
3921
|
+
* // "name": "my_name",
|
|
3922
|
+
* // "overrideValue": "my_overrideValue",
|
|
3923
|
+
* // "unit": "my_unit"
|
|
3924
|
+
* // }
|
|
3925
|
+
* },
|
|
3926
|
+
* }
|
|
3927
|
+
* );
|
|
3902
3928
|
* console.log(res.data);
|
|
3903
3929
|
*
|
|
3904
3930
|
* // Example response
|
|
@@ -3966,7 +3992,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
3966
3992
|
|
|
3967
3993
|
if (typeof paramsOrCallback === 'function') {
|
|
3968
3994
|
callback = paramsOrCallback;
|
|
3969
|
-
params =
|
|
3995
|
+
params =
|
|
3996
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Create;
|
|
3970
3997
|
options = {};
|
|
3971
3998
|
}
|
|
3972
3999
|
|
|
@@ -4031,17 +4058,17 @@ export namespace serviceusage_v1beta1 {
|
|
|
4031
4058
|
* google.options({auth: authClient});
|
|
4032
4059
|
*
|
|
4033
4060
|
* // Do the magic
|
|
4034
|
-
* const res =
|
|
4035
|
-
*
|
|
4036
|
-
*
|
|
4037
|
-
*
|
|
4038
|
-
*
|
|
4039
|
-
*
|
|
4040
|
-
*
|
|
4041
|
-
*
|
|
4042
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4043
|
-
*
|
|
4044
|
-
*
|
|
4061
|
+
* const res =
|
|
4062
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.delete(
|
|
4063
|
+
* {
|
|
4064
|
+
* // 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.
|
|
4065
|
+
* force: 'placeholder-value',
|
|
4066
|
+
* // 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.
|
|
4067
|
+
* forceOnly: 'placeholder-value',
|
|
4068
|
+
* // 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`
|
|
4069
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4070
|
+
* }
|
|
4071
|
+
* );
|
|
4045
4072
|
* console.log(res.data);
|
|
4046
4073
|
*
|
|
4047
4074
|
* // Example response
|
|
@@ -4109,7 +4136,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4109
4136
|
|
|
4110
4137
|
if (typeof paramsOrCallback === 'function') {
|
|
4111
4138
|
callback = paramsOrCallback;
|
|
4112
|
-
params =
|
|
4139
|
+
params =
|
|
4140
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Delete;
|
|
4113
4141
|
options = {};
|
|
4114
4142
|
}
|
|
4115
4143
|
|
|
@@ -4171,17 +4199,18 @@ export namespace serviceusage_v1beta1 {
|
|
|
4171
4199
|
* google.options({auth: authClient});
|
|
4172
4200
|
*
|
|
4173
4201
|
* // Do the magic
|
|
4174
|
-
* const res =
|
|
4175
|
-
*
|
|
4176
|
-
*
|
|
4177
|
-
*
|
|
4178
|
-
*
|
|
4179
|
-
*
|
|
4180
|
-
*
|
|
4181
|
-
*
|
|
4182
|
-
*
|
|
4183
|
-
*
|
|
4184
|
-
*
|
|
4202
|
+
* const res =
|
|
4203
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.list(
|
|
4204
|
+
* {
|
|
4205
|
+
* // Requested size of the next page of data.
|
|
4206
|
+
* pageSize: 'placeholder-value',
|
|
4207
|
+
* // Token identifying which result to start with; returned by a previous list call.
|
|
4208
|
+
* pageToken: 'placeholder-value',
|
|
4209
|
+
* // 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`
|
|
4210
|
+
* parent:
|
|
4211
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
4212
|
+
* }
|
|
4213
|
+
* );
|
|
4185
4214
|
* console.log(res.data);
|
|
4186
4215
|
*
|
|
4187
4216
|
* // Example response
|
|
@@ -4253,7 +4282,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4253
4282
|
|
|
4254
4283
|
if (typeof paramsOrCallback === 'function') {
|
|
4255
4284
|
callback = paramsOrCallback;
|
|
4256
|
-
params =
|
|
4285
|
+
params =
|
|
4286
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$List;
|
|
4257
4287
|
options = {};
|
|
4258
4288
|
}
|
|
4259
4289
|
|
|
@@ -4318,32 +4348,32 @@ export namespace serviceusage_v1beta1 {
|
|
|
4318
4348
|
* google.options({auth: authClient});
|
|
4319
4349
|
*
|
|
4320
4350
|
* // Do the magic
|
|
4321
|
-
* const res =
|
|
4322
|
-
*
|
|
4323
|
-
*
|
|
4324
|
-
*
|
|
4325
|
-
*
|
|
4326
|
-
*
|
|
4327
|
-
*
|
|
4328
|
-
*
|
|
4329
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4330
|
-
*
|
|
4331
|
-
*
|
|
4332
|
-
*
|
|
4333
|
-
*
|
|
4334
|
-
*
|
|
4335
|
-
*
|
|
4336
|
-
*
|
|
4337
|
-
*
|
|
4338
|
-
*
|
|
4339
|
-
*
|
|
4340
|
-
*
|
|
4341
|
-
*
|
|
4342
|
-
*
|
|
4343
|
-
*
|
|
4344
|
-
*
|
|
4345
|
-
*
|
|
4346
|
-
*
|
|
4351
|
+
* const res =
|
|
4352
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.patch(
|
|
4353
|
+
* {
|
|
4354
|
+
* // 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.
|
|
4355
|
+
* force: 'placeholder-value',
|
|
4356
|
+
* // 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.
|
|
4357
|
+
* forceOnly: 'placeholder-value',
|
|
4358
|
+
* // 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`
|
|
4359
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4360
|
+
* // Update only the specified fields of the override. If unset, all fields will be updated.
|
|
4361
|
+
* updateMask: 'placeholder-value',
|
|
4362
|
+
*
|
|
4363
|
+
* // Request body metadata
|
|
4364
|
+
* requestBody: {
|
|
4365
|
+
* // request body parameters
|
|
4366
|
+
* // {
|
|
4367
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
4368
|
+
* // "dimensions": {},
|
|
4369
|
+
* // "metric": "my_metric",
|
|
4370
|
+
* // "name": "my_name",
|
|
4371
|
+
* // "overrideValue": "my_overrideValue",
|
|
4372
|
+
* // "unit": "my_unit"
|
|
4373
|
+
* // }
|
|
4374
|
+
* },
|
|
4375
|
+
* }
|
|
4376
|
+
* );
|
|
4347
4377
|
* console.log(res.data);
|
|
4348
4378
|
*
|
|
4349
4379
|
* // Example response
|
|
@@ -4411,7 +4441,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4411
4441
|
|
|
4412
4442
|
if (typeof paramsOrCallback === 'function') {
|
|
4413
4443
|
callback = paramsOrCallback;
|
|
4414
|
-
params =
|
|
4444
|
+
params =
|
|
4445
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Adminoverrides$Patch;
|
|
4415
4446
|
options = {};
|
|
4416
4447
|
}
|
|
4417
4448
|
|
|
@@ -4555,30 +4586,31 @@ export namespace serviceusage_v1beta1 {
|
|
|
4555
4586
|
* google.options({auth: authClient});
|
|
4556
4587
|
*
|
|
4557
4588
|
* // Do the magic
|
|
4558
|
-
* const res =
|
|
4559
|
-
*
|
|
4560
|
-
*
|
|
4561
|
-
*
|
|
4562
|
-
*
|
|
4563
|
-
*
|
|
4564
|
-
*
|
|
4565
|
-
*
|
|
4566
|
-
*
|
|
4567
|
-
*
|
|
4568
|
-
*
|
|
4569
|
-
*
|
|
4570
|
-
*
|
|
4571
|
-
*
|
|
4572
|
-
*
|
|
4573
|
-
*
|
|
4574
|
-
*
|
|
4575
|
-
*
|
|
4576
|
-
*
|
|
4577
|
-
*
|
|
4578
|
-
*
|
|
4579
|
-
*
|
|
4580
|
-
*
|
|
4581
|
-
*
|
|
4589
|
+
* const res =
|
|
4590
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.create(
|
|
4591
|
+
* {
|
|
4592
|
+
* // 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.
|
|
4593
|
+
* force: 'placeholder-value',
|
|
4594
|
+
* // 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.
|
|
4595
|
+
* forceOnly: 'placeholder-value',
|
|
4596
|
+
* // 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`
|
|
4597
|
+
* parent:
|
|
4598
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
4599
|
+
*
|
|
4600
|
+
* // Request body metadata
|
|
4601
|
+
* requestBody: {
|
|
4602
|
+
* // request body parameters
|
|
4603
|
+
* // {
|
|
4604
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
4605
|
+
* // "dimensions": {},
|
|
4606
|
+
* // "metric": "my_metric",
|
|
4607
|
+
* // "name": "my_name",
|
|
4608
|
+
* // "overrideValue": "my_overrideValue",
|
|
4609
|
+
* // "unit": "my_unit"
|
|
4610
|
+
* // }
|
|
4611
|
+
* },
|
|
4612
|
+
* }
|
|
4613
|
+
* );
|
|
4582
4614
|
* console.log(res.data);
|
|
4583
4615
|
*
|
|
4584
4616
|
* // Example response
|
|
@@ -4646,7 +4678,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4646
4678
|
|
|
4647
4679
|
if (typeof paramsOrCallback === 'function') {
|
|
4648
4680
|
callback = paramsOrCallback;
|
|
4649
|
-
params =
|
|
4681
|
+
params =
|
|
4682
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Create;
|
|
4650
4683
|
options = {};
|
|
4651
4684
|
}
|
|
4652
4685
|
|
|
@@ -4711,17 +4744,17 @@ export namespace serviceusage_v1beta1 {
|
|
|
4711
4744
|
* google.options({auth: authClient});
|
|
4712
4745
|
*
|
|
4713
4746
|
* // Do the magic
|
|
4714
|
-
* const res =
|
|
4715
|
-
*
|
|
4716
|
-
*
|
|
4717
|
-
*
|
|
4718
|
-
*
|
|
4719
|
-
*
|
|
4720
|
-
*
|
|
4721
|
-
*
|
|
4722
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
4723
|
-
*
|
|
4724
|
-
*
|
|
4747
|
+
* const res =
|
|
4748
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.delete(
|
|
4749
|
+
* {
|
|
4750
|
+
* // 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.
|
|
4751
|
+
* force: 'placeholder-value',
|
|
4752
|
+
* // 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.
|
|
4753
|
+
* forceOnly: 'placeholder-value',
|
|
4754
|
+
* // 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`
|
|
4755
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
4756
|
+
* }
|
|
4757
|
+
* );
|
|
4725
4758
|
* console.log(res.data);
|
|
4726
4759
|
*
|
|
4727
4760
|
* // Example response
|
|
@@ -4789,7 +4822,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4789
4822
|
|
|
4790
4823
|
if (typeof paramsOrCallback === 'function') {
|
|
4791
4824
|
callback = paramsOrCallback;
|
|
4792
|
-
params =
|
|
4825
|
+
params =
|
|
4826
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Delete;
|
|
4793
4827
|
options = {};
|
|
4794
4828
|
}
|
|
4795
4829
|
|
|
@@ -4851,17 +4885,18 @@ export namespace serviceusage_v1beta1 {
|
|
|
4851
4885
|
* google.options({auth: authClient});
|
|
4852
4886
|
*
|
|
4853
4887
|
* // Do the magic
|
|
4854
|
-
* const res =
|
|
4855
|
-
*
|
|
4856
|
-
*
|
|
4857
|
-
*
|
|
4858
|
-
*
|
|
4859
|
-
*
|
|
4860
|
-
*
|
|
4861
|
-
*
|
|
4862
|
-
*
|
|
4863
|
-
*
|
|
4864
|
-
*
|
|
4888
|
+
* const res =
|
|
4889
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.list(
|
|
4890
|
+
* {
|
|
4891
|
+
* // Requested size of the next page of data.
|
|
4892
|
+
* pageSize: 'placeholder-value',
|
|
4893
|
+
* // Token identifying which result to start with; returned by a previous list call.
|
|
4894
|
+
* pageToken: 'placeholder-value',
|
|
4895
|
+
* // 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`
|
|
4896
|
+
* parent:
|
|
4897
|
+
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
4898
|
+
* }
|
|
4899
|
+
* );
|
|
4865
4900
|
* console.log(res.data);
|
|
4866
4901
|
*
|
|
4867
4902
|
* // Example response
|
|
@@ -4933,7 +4968,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
4933
4968
|
|
|
4934
4969
|
if (typeof paramsOrCallback === 'function') {
|
|
4935
4970
|
callback = paramsOrCallback;
|
|
4936
|
-
params =
|
|
4971
|
+
params =
|
|
4972
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$List;
|
|
4937
4973
|
options = {};
|
|
4938
4974
|
}
|
|
4939
4975
|
|
|
@@ -5000,32 +5036,32 @@ export namespace serviceusage_v1beta1 {
|
|
|
5000
5036
|
* google.options({auth: authClient});
|
|
5001
5037
|
*
|
|
5002
5038
|
* // Do the magic
|
|
5003
|
-
* const res =
|
|
5004
|
-
*
|
|
5005
|
-
*
|
|
5006
|
-
*
|
|
5007
|
-
*
|
|
5008
|
-
*
|
|
5009
|
-
*
|
|
5010
|
-
*
|
|
5011
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
5012
|
-
*
|
|
5013
|
-
*
|
|
5014
|
-
*
|
|
5015
|
-
*
|
|
5016
|
-
*
|
|
5017
|
-
*
|
|
5018
|
-
*
|
|
5019
|
-
*
|
|
5020
|
-
*
|
|
5021
|
-
*
|
|
5022
|
-
*
|
|
5023
|
-
*
|
|
5024
|
-
*
|
|
5025
|
-
*
|
|
5026
|
-
*
|
|
5027
|
-
*
|
|
5028
|
-
*
|
|
5039
|
+
* const res =
|
|
5040
|
+
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.patch(
|
|
5041
|
+
* {
|
|
5042
|
+
* // 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.
|
|
5043
|
+
* force: 'placeholder-value',
|
|
5044
|
+
* // 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.
|
|
5045
|
+
* forceOnly: 'placeholder-value',
|
|
5046
|
+
* // 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`
|
|
5047
|
+
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
5048
|
+
* // Update only the specified fields of the override. If unset, all fields will be updated.
|
|
5049
|
+
* updateMask: 'placeholder-value',
|
|
5050
|
+
*
|
|
5051
|
+
* // Request body metadata
|
|
5052
|
+
* requestBody: {
|
|
5053
|
+
* // request body parameters
|
|
5054
|
+
* // {
|
|
5055
|
+
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
5056
|
+
* // "dimensions": {},
|
|
5057
|
+
* // "metric": "my_metric",
|
|
5058
|
+
* // "name": "my_name",
|
|
5059
|
+
* // "overrideValue": "my_overrideValue",
|
|
5060
|
+
* // "unit": "my_unit"
|
|
5061
|
+
* // }
|
|
5062
|
+
* },
|
|
5063
|
+
* }
|
|
5064
|
+
* );
|
|
5029
5065
|
* console.log(res.data);
|
|
5030
5066
|
*
|
|
5031
5067
|
* // Example response
|
|
@@ -5093,7 +5129,8 @@ export namespace serviceusage_v1beta1 {
|
|
|
5093
5129
|
|
|
5094
5130
|
if (typeof paramsOrCallback === 'function') {
|
|
5095
5131
|
callback = paramsOrCallback;
|
|
5096
|
-
params =
|
|
5132
|
+
params =
|
|
5133
|
+
{} as Params$Resource$Services$Consumerquotametrics$Limits$Consumeroverrides$Patch;
|
|
5097
5134
|
options = {};
|
|
5098
5135
|
}
|
|
5099
5136
|
|