@googleapis/serviceusage 14.0.0 → 15.0.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 +32 -0
- package/build/v1.d.ts +194 -9
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +193 -8
- package/build/v1beta1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +186 -9
- package/v1beta1.ts +185 -8
package/v1beta1.ts
CHANGED
|
@@ -252,6 +252,19 @@ export namespace serviceusage_v1beta1 {
|
|
|
252
252
|
*/
|
|
253
253
|
version?: string | null;
|
|
254
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* Aspect represents Generic aspect. It is used to configure an aspect without making direct changes to service.proto
|
|
257
|
+
*/
|
|
258
|
+
export interface Schema$Aspect {
|
|
259
|
+
/**
|
|
260
|
+
* The type of this aspect configuration.
|
|
261
|
+
*/
|
|
262
|
+
kind?: string | null;
|
|
263
|
+
/**
|
|
264
|
+
* Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `apiserving/configaspects/proto`.
|
|
265
|
+
*/
|
|
266
|
+
spec?: {[key: string]: any} | null;
|
|
267
|
+
}
|
|
255
268
|
/**
|
|
256
269
|
* `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
|
|
257
270
|
*/
|
|
@@ -357,6 +370,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
357
370
|
* 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.
|
|
358
371
|
*/
|
|
359
372
|
jwtAudience?: string | null;
|
|
373
|
+
/**
|
|
374
|
+
* The load balancing policy used for connection to the application backend. Defined as an arbitrary string to accomondate custom load balancing policies supported by the underlying channel, but suggest most users use one of the standard policies, such as the default, "RoundRobin".
|
|
375
|
+
*/
|
|
376
|
+
loadBalancingPolicy?: string | null;
|
|
360
377
|
/**
|
|
361
378
|
* Deprecated, do not use.
|
|
362
379
|
*/
|
|
@@ -502,6 +519,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
502
519
|
* Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest
|
|
503
520
|
*/
|
|
504
521
|
referenceDocsUri?: string | null;
|
|
522
|
+
/**
|
|
523
|
+
* Configuration for which RPCs should be generated in the GAPIC client.
|
|
524
|
+
*/
|
|
525
|
+
selectiveGapicGeneration?: Schema$SelectiveGapicGeneration;
|
|
505
526
|
}
|
|
506
527
|
/**
|
|
507
528
|
* Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.
|
|
@@ -710,6 +731,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
710
731
|
* `Documentation` provides the information for describing a service. Example: documentation: summary: \> The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages: - name: Java content: (== include google/foo/tutorial_java.md ==) rules: - selector: google.calendar.Calendar.Get description: \> ... - selector: google.calendar.Calendar.Put description: \> ... Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded. Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided. A number of constructs specific to the API platform are supported in documentation text. In order to reference a proto element, the following notation can be used: [fully.qualified.proto.name][] To override the display text used for the link, this can be used: [display text][fully.qualified.proto.name] Text can be excluded from doc using the following notation: (-- internal comment --) A few directives are available in documentation. Note that directives must appear on a single line to be properly identified. The `include` directive includes a markdown file from an external source: (== include path/to/file ==) The `resource_for` directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: (== resource_for v1.shelves.books ==) The directive `suppress_warning` does not directly affect documentation and is documented together with service config validation.
|
|
711
732
|
*/
|
|
712
733
|
export interface Schema$Documentation {
|
|
734
|
+
/**
|
|
735
|
+
* Optional information about the IAM configuration. This is typically used to link to documentation about a product's IAM roles and permissions.
|
|
736
|
+
*/
|
|
737
|
+
additionalIamInfo?: string | null;
|
|
713
738
|
/**
|
|
714
739
|
* The URL to the root of documentation.
|
|
715
740
|
*/
|
|
@@ -727,7 +752,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
727
752
|
*/
|
|
728
753
|
rules?: Schema$DocumentationRule[];
|
|
729
754
|
/**
|
|
730
|
-
* Specifies section and content to override boilerplate content
|
|
755
|
+
* Specifies section and content to override the boilerplate content. Currently overrides following sections: 1. rest.service.client_libraries
|
|
731
756
|
*/
|
|
732
757
|
sectionOverrides?: Schema$Page[];
|
|
733
758
|
/**
|
|
@@ -752,7 +777,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
752
777
|
*/
|
|
753
778
|
description?: string | null;
|
|
754
779
|
/**
|
|
755
|
-
* String of comma or space separated case-sensitive words for which method/field name replacement will be disabled
|
|
780
|
+
* String of comma or space separated case-sensitive words for which method/field name replacement will be disabled.
|
|
756
781
|
*/
|
|
757
782
|
disableReplacementWords?: string | null;
|
|
758
783
|
/**
|
|
@@ -907,6 +932,23 @@ export namespace serviceusage_v1beta1 {
|
|
|
907
932
|
*/
|
|
908
933
|
options?: Schema$Option[];
|
|
909
934
|
}
|
|
935
|
+
/**
|
|
936
|
+
* Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.
|
|
937
|
+
*/
|
|
938
|
+
export interface Schema$ExperimentalFeatures {
|
|
939
|
+
/**
|
|
940
|
+
* Enables generation of protobuf code using new types that are more Pythonic which are included in `protobuf\>=5.29.x`. This feature will be enabled by default 1 month after launching the feature in preview packages.
|
|
941
|
+
*/
|
|
942
|
+
protobufPythonicTypesEnabled?: boolean | null;
|
|
943
|
+
/**
|
|
944
|
+
* Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.
|
|
945
|
+
*/
|
|
946
|
+
restAsyncIoEnabled?: boolean | null;
|
|
947
|
+
/**
|
|
948
|
+
* Disables generation of an unversioned Python package for this client library. This means that the module names will need to be versioned in import statements. For example `import google.cloud.library_v2` instead of `import google.cloud.library`.
|
|
949
|
+
*/
|
|
950
|
+
unversionedPackageDisabled?: boolean | null;
|
|
951
|
+
}
|
|
910
952
|
/**
|
|
911
953
|
* A single field of a message type.
|
|
912
954
|
*/
|
|
@@ -994,6 +1036,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
994
1036
|
* A list of API interfaces exported by this service. Only the `name` field of the google.protobuf.Api needs to be provided by the configuration author, as the remaining fields will be derived from the IDL during the normalization process. It is an error to specify an API interface here which cannot be resolved against the associated IDL files.
|
|
995
1037
|
*/
|
|
996
1038
|
apis?: Schema$Api[];
|
|
1039
|
+
/**
|
|
1040
|
+
* Configuration aspects. This is a repeated field to allow multiple aspects to be configured. The kind field in each ConfigAspect specifies the type of aspect. The spec field contains the configuration for that aspect. The schema for the spec field is defined by the backend service owners.
|
|
1041
|
+
*/
|
|
1042
|
+
aspects?: Schema$Aspect[];
|
|
997
1043
|
/**
|
|
998
1044
|
* Auth configuration.
|
|
999
1045
|
*/
|
|
@@ -1246,6 +1292,108 @@ export namespace serviceusage_v1beta1 {
|
|
|
1246
1292
|
* Metadata for the `UpdateConsumerPolicy` method.
|
|
1247
1293
|
*/
|
|
1248
1294
|
export interface Schema$GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata {}
|
|
1295
|
+
/**
|
|
1296
|
+
* A message to group the analysis information.
|
|
1297
|
+
*/
|
|
1298
|
+
export interface Schema$GoogleApiServiceusageV2betaAnalysis {
|
|
1299
|
+
/**
|
|
1300
|
+
* Output only. Analysis result of updating a policy.
|
|
1301
|
+
*/
|
|
1302
|
+
analysisResult?: Schema$GoogleApiServiceusageV2betaAnalysisResult;
|
|
1303
|
+
/**
|
|
1304
|
+
* Output only. The type of analysis.
|
|
1305
|
+
*/
|
|
1306
|
+
analysisType?: string | null;
|
|
1307
|
+
/**
|
|
1308
|
+
* Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc.
|
|
1309
|
+
*/
|
|
1310
|
+
displayName?: string | null;
|
|
1311
|
+
/**
|
|
1312
|
+
* The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.
|
|
1313
|
+
*/
|
|
1314
|
+
service?: string | null;
|
|
1315
|
+
}
|
|
1316
|
+
/**
|
|
1317
|
+
* An analysis result including blockers and warnings.
|
|
1318
|
+
*/
|
|
1319
|
+
export interface Schema$GoogleApiServiceusageV2betaAnalysisResult {
|
|
1320
|
+
/**
|
|
1321
|
+
* Blocking information that would prevent the policy changes at runtime.
|
|
1322
|
+
*/
|
|
1323
|
+
blockers?: Schema$GoogleApiServiceusageV2betaImpact[];
|
|
1324
|
+
/**
|
|
1325
|
+
* Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime.
|
|
1326
|
+
*/
|
|
1327
|
+
warnings?: Schema$GoogleApiServiceusageV2betaImpact[];
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Metadata for the `AnalyzeConsumerPolicy` method.
|
|
1331
|
+
*/
|
|
1332
|
+
export interface Schema$GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata {}
|
|
1333
|
+
/**
|
|
1334
|
+
* The response of analyzing a consumer policy update.
|
|
1335
|
+
*/
|
|
1336
|
+
export interface Schema$GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse {
|
|
1337
|
+
/**
|
|
1338
|
+
* The list of analyses returned from performing the intended policy update analysis. The analysis is grouped by service name and different analysis types. The empty analysis list means that the consumer policy can be updated without any warnings or blockers.
|
|
1339
|
+
*/
|
|
1340
|
+
analysis?: Schema$GoogleApiServiceusageV2betaAnalysis[];
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.
|
|
1344
|
+
*/
|
|
1345
|
+
export interface Schema$GoogleApiServiceusageV2betaConsumerPolicy {
|
|
1346
|
+
/**
|
|
1347
|
+
* Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)
|
|
1348
|
+
*/
|
|
1349
|
+
annotations?: {[key: string]: string} | null;
|
|
1350
|
+
/**
|
|
1351
|
+
* Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.
|
|
1352
|
+
*/
|
|
1353
|
+
createTime?: string | null;
|
|
1354
|
+
/**
|
|
1355
|
+
* Enable rules define usable services, groups, and categories. There can currently be at most one `EnableRule`. This restriction will be lifted in later releases.
|
|
1356
|
+
*/
|
|
1357
|
+
enableRules?: Schema$GoogleApiServiceusageV2betaEnableRule[];
|
|
1358
|
+
/**
|
|
1359
|
+
* Output only. An opaque tag indicating the current version of the policy, used for concurrency control.
|
|
1360
|
+
*/
|
|
1361
|
+
etag?: string | null;
|
|
1362
|
+
/**
|
|
1363
|
+
* Output only. The resource name of the policy. Only the `default` policy is supported: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
|
|
1364
|
+
*/
|
|
1365
|
+
name?: string | null;
|
|
1366
|
+
/**
|
|
1367
|
+
* Output only. The time the policy was last updated.
|
|
1368
|
+
*/
|
|
1369
|
+
updateTime?: string | null;
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* The consumer policy rule that defines enabled services, groups, and categories.
|
|
1373
|
+
*/
|
|
1374
|
+
export interface Schema$GoogleApiServiceusageV2betaEnableRule {
|
|
1375
|
+
/**
|
|
1376
|
+
* The names of the services that are enabled. Example: `services/storage.googleapis.com`.
|
|
1377
|
+
*/
|
|
1378
|
+
services?: string[] | null;
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* A message to group impacts of updating a policy.
|
|
1382
|
+
*/
|
|
1383
|
+
export interface Schema$GoogleApiServiceusageV2betaImpact {
|
|
1384
|
+
/**
|
|
1385
|
+
* Output only. User friendly impact detail in a free form message.
|
|
1386
|
+
*/
|
|
1387
|
+
detail?: string | null;
|
|
1388
|
+
/**
|
|
1389
|
+
* Output only. The type of impact.
|
|
1390
|
+
*/
|
|
1391
|
+
impactType?: string | null;
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Metadata for the `UpdateConsumerPolicy` method.
|
|
1395
|
+
*/
|
|
1396
|
+
export interface Schema$GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata {}
|
|
1249
1397
|
/**
|
|
1250
1398
|
* Settings for Go client libraries.
|
|
1251
1399
|
*/
|
|
@@ -1254,6 +1402,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1254
1402
|
* Some settings.
|
|
1255
1403
|
*/
|
|
1256
1404
|
common?: Schema$CommonLanguageSettings;
|
|
1405
|
+
/**
|
|
1406
|
+
* Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options. publishing: go_settings: renamed_services: Publisher: TopicAdmin
|
|
1407
|
+
*/
|
|
1408
|
+
renamedServices?: {[key: string]: string} | null;
|
|
1257
1409
|
}
|
|
1258
1410
|
/**
|
|
1259
1411
|
* Defines the HTTP configuration for an API service. It contains a list of HttpRule, each specifying the mapping of an RPC method to one or more HTTP REST API methods.
|
|
@@ -1325,6 +1477,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1325
1477
|
* Output only. The type of impact.
|
|
1326
1478
|
*/
|
|
1327
1479
|
impactType?: string | null;
|
|
1480
|
+
/**
|
|
1481
|
+
* The parent resource that the analysis is based on and the service name that the analysis is for. Example: `projects/100/services/compute.googleapis.com`, folders/101/services/compute.googleapis.com` and `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same as the parent resource of the analyzed policy. However, for some analysis types, the parent can be different. For example, for resource existence analysis, if the parent resource of the analyzed policy is a folder or an organization, the parent resource here can still be the project that contains the resources.
|
|
1482
|
+
*/
|
|
1483
|
+
parent?: string | null;
|
|
1328
1484
|
}
|
|
1329
1485
|
/**
|
|
1330
1486
|
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.
|
|
@@ -1408,7 +1564,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1408
1564
|
*/
|
|
1409
1565
|
common?: Schema$CommonLanguageSettings;
|
|
1410
1566
|
/**
|
|
1411
|
-
* The package name to use in Java. Clobbers the java_package option set in the protobuf. This should be used **only** by APIs who have already set the language_settings.java.package_name" field in gapic.yaml. API teams should use the protobuf java_package option where possible. Example of a YAML configuration:: publishing: java_settings: library_package: com.google.cloud.pubsub.v1
|
|
1567
|
+
* The package name to use in Java. Clobbers the java_package option set in the protobuf. This should be used **only** by APIs who have already set the language_settings.java.package_name" field in gapic.yaml. API teams should use the protobuf java_package option where possible. Example of a YAML configuration:: publishing: library_settings: java_settings: library_package: com.google.cloud.pubsub.v1
|
|
1412
1568
|
*/
|
|
1413
1569
|
libraryPackage?: string | null;
|
|
1414
1570
|
/**
|
|
@@ -1715,6 +1871,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1715
1871
|
* The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
|
|
1716
1872
|
*/
|
|
1717
1873
|
samplePeriod?: string | null;
|
|
1874
|
+
/**
|
|
1875
|
+
* The scope of the timeseries data of the metric.
|
|
1876
|
+
*/
|
|
1877
|
+
timeSeriesResourceHierarchyLevel?: string[] | null;
|
|
1718
1878
|
}
|
|
1719
1879
|
/**
|
|
1720
1880
|
* Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.
|
|
@@ -1730,7 +1890,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1730
1890
|
selector?: string | null;
|
|
1731
1891
|
}
|
|
1732
1892
|
/**
|
|
1733
|
-
* Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v1/{resource=**\}:getAcl"; \} \} package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = "/v2/{resource=**\}"; \} \} Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after
|
|
1893
|
+
* Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v1/{resource=**\}:getAcl"; \} \} package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = "/v2/{resource=**\}"; \} \} Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/{resource=**\}:getAcl"; \} ... \} Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/acls/{resource=**\}:getAcl"; \} ... \}
|
|
1734
1894
|
*/
|
|
1735
1895
|
export interface Schema$Mixin {
|
|
1736
1896
|
/**
|
|
@@ -1876,7 +2036,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1876
2036
|
*/
|
|
1877
2037
|
export interface Schema$Page {
|
|
1878
2038
|
/**
|
|
1879
|
-
* 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.
|
|
2039
|
+
* 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.
|
|
1880
2040
|
*/
|
|
1881
2041
|
content?: string | null;
|
|
1882
2042
|
/**
|
|
@@ -1983,6 +2143,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1983
2143
|
* Some settings.
|
|
1984
2144
|
*/
|
|
1985
2145
|
common?: Schema$CommonLanguageSettings;
|
|
2146
|
+
/**
|
|
2147
|
+
* Experimental features to be included during client library generation.
|
|
2148
|
+
*/
|
|
2149
|
+
experimentalFeatures?: Schema$ExperimentalFeatures;
|
|
1986
2150
|
}
|
|
1987
2151
|
/**
|
|
1988
2152
|
* Quota configuration helps to achieve fairness and budgeting in service usage. The metric based quota configuration works this way: - The service configuration defines a set of metrics. - For API calls, the quota.metric_rules maps methods to metrics with corresponding costs. - The quota.limits defines limits on the metrics, which will be used for quota checks at runtime. An example quota configuration in yaml format: quota: limits: - name: apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: "1/min/{project\}" # rate limit for consumer projects values: STANDARD: 10000 (The metric rules bind all methods to the read_calls metric, except for the UpdateBook and DeleteBook methods. These two methods are mapped to the write_calls metric, with the UpdateBook method consuming at twice rate as the DeleteBook method.) metric_rules: - selector: "*" metric_costs: library.googleapis.com/read_calls: 1 - selector: google.example.library.v1.LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: - name: library.googleapis.com/read_calls display_name: Read requests metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/write_calls display_name: Write requests metric_kind: DELTA value_type: INT64
|
|
@@ -2071,7 +2235,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
2071
2235
|
*/
|
|
2072
2236
|
name?: string | null;
|
|
2073
2237
|
/**
|
|
2074
|
-
* Specify the unit of the quota limit. It uses the same syntax as
|
|
2238
|
+
* Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * "1/min/{project\}" for quota per minute per project. Note: the order of unit components is insignificant. The "1" at the beginning is required to follow the metric unit syntax.
|
|
2075
2239
|
*/
|
|
2076
2240
|
unit?: string | null;
|
|
2077
2241
|
/**
|
|
@@ -2143,6 +2307,19 @@ export namespace serviceusage_v1beta1 {
|
|
|
2143
2307
|
*/
|
|
2144
2308
|
common?: Schema$CommonLanguageSettings;
|
|
2145
2309
|
}
|
|
2310
|
+
/**
|
|
2311
|
+
* This message is used to configure the generation of a subset of the RPCs in a service for client libraries.
|
|
2312
|
+
*/
|
|
2313
|
+
export interface Schema$SelectiveGapicGeneration {
|
|
2314
|
+
/**
|
|
2315
|
+
* Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users. How this is expressed is up to individual language implementations to decide. Some examples may be: added annotations, obfuscated identifiers, or other language idiomatic patterns.
|
|
2316
|
+
*/
|
|
2317
|
+
generateOmittedAsInternal?: boolean | null;
|
|
2318
|
+
/**
|
|
2319
|
+
* An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
|
|
2320
|
+
*/
|
|
2321
|
+
methods?: string[] | null;
|
|
2322
|
+
}
|
|
2146
2323
|
/**
|
|
2147
2324
|
* A service that is available for use by the consumer.
|
|
2148
2325
|
*/
|
|
@@ -2355,11 +2532,11 @@ export namespace serviceusage_v1beta1 {
|
|
|
2355
2532
|
rules?: Schema$UsageRule[];
|
|
2356
2533
|
}
|
|
2357
2534
|
/**
|
|
2358
|
-
* Usage configuration rules for the service.
|
|
2535
|
+
* Usage configuration rules for the service.
|
|
2359
2536
|
*/
|
|
2360
2537
|
export interface Schema$UsageRule {
|
|
2361
2538
|
/**
|
|
2362
|
-
*
|
|
2539
|
+
* Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). WARNING: By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity.
|
|
2363
2540
|
*/
|
|
2364
2541
|
allowUnregisteredCalls?: boolean | null;
|
|
2365
2542
|
/**
|