@maxim_mazurok/gapi.client.accesscontextmanager-v1 0.0.20230903 → 0.0.20230910

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 +40 -1
  2. package/package.json +1 -1
  3. package/tests.ts +67 -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://accesscontextmanager.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230903
12
+ // Revision: 20230910
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -220,6 +220,9 @@ declare namespace gapi.client {
220
220
  */
221
221
  requiredAccessLevels?:
222
222
  string[];
223
+ /** The request must originate from one of the provided VPC networks in Google Cloud. Cannot specify this field together with `ip_subnetworks`. */
224
+ vpcNetworkSources?:
225
+ VpcNetworkSource[];
223
226
  }
224
227
  interface CustomLevel {
225
228
  /** Required. A Cloud CEL expression evaluating to a boolean. */
@@ -256,6 +259,12 @@ declare namespace gapi.client {
256
259
  /** Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of `identities` field will be allowed access. */
257
260
  identityType?:
258
261
  string;
262
+ /** Whether to enforce traffic restrictions based on `sources` field. If the `sources` fields is non-empty, then this field must be set to `SOURCE_RESTRICTION_ENABLED`. */
263
+ sourceRestriction?:
264
+ string;
265
+ /** Sources that this EgressPolicy authorizes access from. If this field is not empty, then `source_restriction` must be set to `SOURCE_RESTRICTION_ENABLED`. */
266
+ sources?:
267
+ EgressSource[];
259
268
  }
260
269
  interface EgressPolicy {
261
270
  /** Defines conditions on the source of a request causing this EgressPolicy to apply. */
@@ -265,6 +274,16 @@ declare namespace gapi.client {
265
274
  egressTo?:
266
275
  EgressTo;
267
276
  }
277
+ interface EgressSource {
278
+ /**
279
+ * An AccessLevel resource name that allows protected resources inside the ServicePerimeters to access outside the ServicePerimeter boundaries. AccessLevels listed must be in the same
280
+ * policy as this ServicePerimeter. Referencing a nonexistent AccessLevel will cause an error. If an AccessLevel name is not specified, only resources within the perimeter can be
281
+ * accessed through Google Cloud calls with request origins within the perimeter. Example: `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is specified for
282
+ * `access_level`, then all EgressSources will be allowed.
283
+ */
284
+ accessLevel?:
285
+ string;
286
+ }
268
287
  interface EgressTo {
269
288
  /**
270
289
  * A list of external resources that are allowed to be accessed. Only AWS and Azure resources are supported. For Amazon S3, the supported format is s3://BUCKET_NAME. For Azure Storage,
@@ -687,6 +706,26 @@ declare namespace gapi.client {
687
706
  enableRestriction?:
688
707
  boolean;
689
708
  }
709
+ interface VpcNetworkSource {
710
+ /** Sub-segment ranges of a VPC network. */
711
+ vpcSubnetwork?:
712
+ VpcSubNetwork;
713
+ }
714
+ interface VpcSubNetwork {
715
+ /**
716
+ * Required. Network name. If the network is not part of the organization, the `compute.network.get` permission must be granted to the caller. Format:
717
+ * `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}` Example: `//compute.googleapis.com/projects/my-project/global/networks/network-1`
718
+ */
719
+ network?:
720
+ string;
721
+ /**
722
+ * CIDR block IP subnetwork specification. The IP address must be an IPv4 address and can be a public or private IP address. Note that for a CIDR IP address block, the specified IP
723
+ * address portion must be properly truncated (i.e. all the host bits must be zero) or the input is considered malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is
724
+ * not. If empty, all IP addresses are allowed.
725
+ */
726
+ vpcIpSubnetworks?:
727
+ string[];
728
+ }
690
729
  interface AccessLevelsResource {
691
730
  /**
692
731
  * Creates an access level. The long-running operation from this RPC has a successful status after the access level propagates to long-lasting storage. If access levels contain errors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.accesscontextmanager-v1",
3
- "version": "0.0.20230903",
3
+ "version": "0.0.20230910",
4
4
  "description": "TypeScript typings for Access Context Manager API v1",
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: 20230903
6
+ // Revision: 20230910
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -171,6 +171,16 @@ gapi.load('client', async () => {
171
171
  requiredAccessLevels: [
172
172
  "Test string"
173
173
  ],
174
+ vpcNetworkSources: [
175
+ {
176
+ vpcSubnetwork: {
177
+ network: "Test string",
178
+ vpcIpSubnetworks: [
179
+ "Test string"
180
+ ],
181
+ },
182
+ }
183
+ ],
174
184
  }
175
185
  ],
176
186
  },
@@ -245,6 +255,16 @@ gapi.load('client', async () => {
245
255
  requiredAccessLevels: [
246
256
  "Test string"
247
257
  ],
258
+ vpcNetworkSources: [
259
+ {
260
+ vpcSubnetwork: {
261
+ network: "Test string",
262
+ vpcIpSubnetworks: [
263
+ "Test string"
264
+ ],
265
+ },
266
+ }
267
+ ],
248
268
  }
249
269
  ],
250
270
  },
@@ -306,6 +326,16 @@ gapi.load('client', async () => {
306
326
  requiredAccessLevels: [
307
327
  "Test string"
308
328
  ],
329
+ vpcNetworkSources: [
330
+ {
331
+ vpcSubnetwork: {
332
+ network: "Test string",
333
+ vpcIpSubnetworks: [
334
+ "Test string"
335
+ ],
336
+ },
337
+ }
338
+ ],
309
339
  }
310
340
  ],
311
341
  },
@@ -417,6 +447,12 @@ gapi.load('client', async () => {
417
447
  "Test string"
418
448
  ],
419
449
  identityType: "Test string",
450
+ sourceRestriction: "Test string",
451
+ sources: [
452
+ {
453
+ accessLevel: "Test string",
454
+ }
455
+ ],
420
456
  },
421
457
  egressTo: {
422
458
  externalResources: [
@@ -495,6 +531,12 @@ gapi.load('client', async () => {
495
531
  "Test string"
496
532
  ],
497
533
  identityType: "Test string",
534
+ sourceRestriction: "Test string",
535
+ sources: [
536
+ {
537
+ accessLevel: "Test string",
538
+ }
539
+ ],
498
540
  },
499
541
  egressTo: {
500
542
  externalResources: [
@@ -604,6 +646,12 @@ gapi.load('client', async () => {
604
646
  "Test string"
605
647
  ],
606
648
  identityType: "Test string",
649
+ sourceRestriction: "Test string",
650
+ sources: [
651
+ {
652
+ accessLevel: "Test string",
653
+ }
654
+ ],
607
655
  },
608
656
  egressTo: {
609
657
  externalResources: [
@@ -682,6 +730,12 @@ gapi.load('client', async () => {
682
730
  "Test string"
683
731
  ],
684
732
  identityType: "Test string",
733
+ sourceRestriction: "Test string",
734
+ sources: [
735
+ {
736
+ accessLevel: "Test string",
737
+ }
738
+ ],
685
739
  },
686
740
  egressTo: {
687
741
  externalResources: [
@@ -777,6 +831,12 @@ gapi.load('client', async () => {
777
831
  "Test string"
778
832
  ],
779
833
  identityType: "Test string",
834
+ sourceRestriction: "Test string",
835
+ sources: [
836
+ {
837
+ accessLevel: "Test string",
838
+ }
839
+ ],
780
840
  },
781
841
  egressTo: {
782
842
  externalResources: [
@@ -855,6 +915,12 @@ gapi.load('client', async () => {
855
915
  "Test string"
856
916
  ],
857
917
  identityType: "Test string",
918
+ sourceRestriction: "Test string",
919
+ sources: [
920
+ {
921
+ accessLevel: "Test string",
922
+ }
923
+ ],
858
924
  },
859
925
  egressTo: {
860
926
  externalResources: [