@maxim_mazurok/gapi.client.serviceusage-v1beta1 0.0.20230718 → 0.0.20230719

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.
Files changed (3) hide show
  1. package/index.d.ts +33 -1
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://serviceusage.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20230718
12
+ // Revision: 20230719
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -417,6 +417,9 @@ declare namespace gapi.client {
417
417
  */
418
418
  environment?:
419
419
  string;
420
+ /** Defines policies applying to the API methods of the service. */
421
+ methodPolicies?:
422
+ MethodPolicy[];
420
423
  }
421
424
  interface CppSettings {
422
425
  /** Some settings. */
@@ -665,6 +668,24 @@ declare namespace gapi.client {
665
668
  typeUrl?:
666
669
  string;
667
670
  }
671
+ interface FieldPolicy {
672
+ /**
673
+ * Specifies the required permission(s) for the resource referred to by the field. It requires the field contains a valid resource reference, and the request must pass the permission
674
+ * checks to proceed. For example, "resourcemanager.projects.get".
675
+ */
676
+ resourcePermission?:
677
+ string;
678
+ /** Specifies the resource type for the resource referred to by the field. */
679
+ resourceType?:
680
+ string;
681
+ /**
682
+ * Selects one or more request or response message fields to apply this `FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector must be left as empty. The service
683
+ * config generator will automatically fill the correct value. When a `FieldPolicy` is used in service config, the selector must be a comma-separated string with valid request or
684
+ * response field paths, such as "foo.bar" or "foo.bar,foo.baz".
685
+ */
686
+ selector?:
687
+ string;
688
+ }
668
689
  // tslint:disable-next-line:no-empty-interface
669
690
  interface GetServiceIdentityMetadata {
670
691
  }
@@ -1138,6 +1159,17 @@ declare namespace gapi.client {
1138
1159
  syntax?:
1139
1160
  string;
1140
1161
  }
1162
+ interface MethodPolicy {
1163
+ /** Policies that are applicable to the request message. */
1164
+ requestPolicies?:
1165
+ FieldPolicy[];
1166
+ /**
1167
+ * Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax details. NOTE: This field
1168
+ * must not be set in the proto annotation. It will be automatically filled by the service config compiler .
1169
+ */
1170
+ selector?:
1171
+ string;
1172
+ }
1141
1173
  interface MethodSettings {
1142
1174
  /**
1143
1175
  * Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.serviceusage-v1beta1",
3
- "version": "0.0.20230718",
3
+ "version": "0.0.20230719",
4
4
  "description": "TypeScript typings for Service Usage API v1beta1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230718
6
+ // Revision: 20230719
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */