@maxim_mazurok/gapi.client.networksecurity-v1beta1 0.0.20230327 → 0.0.20230415

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 +30 -9
  2. package/package.json +1 -1
  3. package/tests.ts +5 -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://networksecurity.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20230327
12
+ // Revision: 20230415
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -348,6 +348,8 @@ declare namespace gapi.client {
348
348
  * 'next_page_token' as 'page_token'.
349
349
  */
350
350
  nextPageToken?: string;
351
+ /** Locations that could not be reached. */
352
+ unreachable?: string[];
351
353
  }
352
354
  interface ListGatewaySecurityPolicyRulesResponse {
353
355
  /** List of GatewaySecurityPolicyRule resources. */
@@ -357,6 +359,8 @@ declare namespace gapi.client {
357
359
  * 'next_page_token' as 'page_token'.
358
360
  */
359
361
  nextPageToken?: string;
362
+ /** Locations that could not be reached. */
363
+ unreachable?: string[];
360
364
  }
361
365
  interface ListLocationsResponse {
362
366
  /** A list of locations that matches the specified filter in the request. */
@@ -387,6 +391,8 @@ declare namespace gapi.client {
387
391
  nextPageToken?: string;
388
392
  /** List of TlsInspectionPolicies resources. */
389
393
  tlsInspectionPolicies?: TlsInspectionPolicy[];
394
+ /** Locations that could not be reached. */
395
+ unreachable?: string[];
390
396
  }
391
397
  interface ListUrlListsResponse {
392
398
  /**
@@ -412,8 +418,21 @@ declare namespace gapi.client {
412
418
  name?: string;
413
419
  }
414
420
  interface MTLSPolicy {
415
- /** Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate. */
421
+ /**
422
+ * Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate
423
+ * to validate the client certificate.
424
+ */
416
425
  clientValidationCa?: ValidationCA[];
426
+ /**
427
+ * When the client presents an invalid certificate or no certificate to the load balancer, the `client_validation_mode` specifies how the client connection is handled. Required if the
428
+ * policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty.
429
+ */
430
+ clientValidationMode?: string;
431
+ /**
432
+ * Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given
433
+ * TrustConfig. Allowed only if the policy is to be used with external HTTPS load balancers.
434
+ */
435
+ clientValidationTrustConfig?: string;
417
436
  }
418
437
  interface Operation {
419
438
  /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
@@ -482,9 +501,10 @@ declare namespace gapi.client {
482
501
  }
483
502
  interface ServerTlsPolicy {
484
503
  /**
485
- * Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other
486
- * encryption modes. For example, if `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm
487
- * compatibility. Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.
504
+ * This field applies only for Traffic Director policies. It is must be set to false for external HTTPS load balancer policies. Determines if server allows plaintext connections. If
505
+ * set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if `allow_open` and
506
+ * `mtls_policy` are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility. Consider using it if you wish to
507
+ * upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.
488
508
  */
489
509
  allowOpen?: boolean;
490
510
  /** Output only. The timestamp when the resource was created. */
@@ -494,15 +514,16 @@ declare namespace gapi.client {
494
514
  /** Set of label tags associated with the resource. */
495
515
  labels?: { [P in string]: string };
496
516
  /**
497
- * Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The
498
- * connection is treated as TLS and not mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections.
517
+ * This field is required if the policy is used with external HTTPS load balancers. This field can be empty for Traffic Director. Defines a mechanism to provision peer validation
518
+ * certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If
519
+ * `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections.
499
520
  */
500
521
  mtlsPolicy?: MTLSPolicy;
501
522
  /** Required. Name of the ServerTlsPolicy resource. It matches the pattern `projects/*‍/locations/{location}/serverTlsPolicies/{server_tls_policy}` */
502
523
  name?: string;
503
524
  /**
504
- * Defines a mechanism to provision server identity (public and private keys). Cannot be combined with `allow_open` as a permissive mode that allows both plain text and TLS is not
505
- * supported.
525
+ * Optional if policy is to be used with Traffic Director. For external HTTPS load balancer must be empty. Defines a mechanism to provision server identity (public and private keys).
526
+ * Cannot be combined with `allow_open` as a permissive mode that allows both plain text and TLS is not supported.
506
527
  */
507
528
  serverCertificate?: GoogleCloudNetworksecurityV1beta1CertificateProvider;
508
529
  /** Output only. The timestamp when the resource was updated. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.networksecurity-v1beta1",
3
- "version": "0.0.20230327",
3
+ "version": "0.0.20230415",
4
4
  "description": "TypeScript typings for Network Security 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: 20230327
6
+ // Revision: 20230415
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -713,6 +713,8 @@ gapi.load('client', async () => {
713
713
  },
714
714
  }
715
715
  ],
716
+ clientValidationMode: "Test string",
717
+ clientValidationTrustConfig: "Test string",
716
718
  },
717
719
  name: "Test string",
718
720
  serverCertificate: {
@@ -766,6 +768,8 @@ gapi.load('client', async () => {
766
768
  },
767
769
  }
768
770
  ],
771
+ clientValidationMode: "Test string",
772
+ clientValidationTrustConfig: "Test string",
769
773
  },
770
774
  name: "Test string",
771
775
  serverCertificate: {