@maxim_mazurok/gapi.client.dlp-v2 0.0.20240128 → 0.0.20240212

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 +10 -3
  2. package/package.json +2 -2
  3. package/readme.md +4 -4
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Type definitions for non-npm package Cloud Data Loss Prevention (DLP) v2 0.0 */
1
+ /* Type definitions for non-npm package Sensitive Data Protection (DLP) v2 0.0 */
2
2
  // Project: https://cloud.google.com/dlp/docs/
3
3
  // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
4
  // Nick Amoscato <https://github.com/namoscato>
@@ -9,12 +9,12 @@
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://dlp.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20240128
12
+ // Revision: 20240212
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Cloud Data Loss Prevention (DLP) v2 */
17
+ /** Load Sensitive Data Protection (DLP) v2 */
18
18
  function load(
19
19
  urlOrObject: 'https://dlp.googleapis.com/$discovery/rest?version=v2'
20
20
  ): Promise<void>;
@@ -109,6 +109,7 @@ declare namespace gapi.client {
109
109
  rowsLimit?: string;
110
110
  /** Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig. Caution: A [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-sampling) is causing the `rowsLimitPercent` field to behave unexpectedly. We recommend using `rowsLimit` instead. */
111
111
  rowsLimitPercent?: number;
112
+ /** How to sample the data. */
112
113
  sampleMethod?: string;
113
114
  /** Complete BigQuery table reference. */
114
115
  tableReference?: GooglePrivacyDlpV2BigQueryTable;
@@ -221,6 +222,7 @@ declare namespace gapi.client {
221
222
  filesLimitPercent?: number;
222
223
  /** List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied. In addition, the binary content of the selected files is always scanned as well. Images are scanned only as binary if the specified region does not support image inspection and no file_types were specified. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. */
223
224
  fileTypes?: string[];
225
+ /** How to sample the data. */
224
226
  sampleMethod?: string;
225
227
  }
226
228
  interface GooglePrivacyDlpV2CloudStoragePath {
@@ -913,6 +915,7 @@ declare namespace gapi.client {
913
915
  selectedInfoTypes?: GooglePrivacyDlpV2SelectedInfoTypes;
914
916
  }
915
917
  interface GooglePrivacyDlpV2ImageTransformations {
918
+ /** List of transforms to make. */
916
919
  transforms?: GooglePrivacyDlpV2ImageTransformation[];
917
920
  }
918
921
  interface GooglePrivacyDlpV2InfoType {
@@ -1438,7 +1441,9 @@ declare namespace gapi.client {
1438
1441
  expressions?: GooglePrivacyDlpV2Expressions;
1439
1442
  }
1440
1443
  interface GooglePrivacyDlpV2RecordKey {
1444
+ /** Datastore key */
1441
1445
  bigQueryKey?: GooglePrivacyDlpV2BigQueryKey;
1446
+ /** Bigquery key */
1442
1447
  datastoreKey?: GooglePrivacyDlpV2DatastoreKey;
1443
1448
  /** Values of identifying columns in the given row. Order of values matches the order of `identifying_fields` specified in the scanning request. */
1444
1449
  idValues?: string[];
@@ -1598,9 +1603,11 @@ declare namespace gapi.client {
1598
1603
  datastoreOptions?: GooglePrivacyDlpV2DatastoreOptions;
1599
1604
  /** Hybrid inspection options. */
1600
1605
  hybridOptions?: GooglePrivacyDlpV2HybridOptions;
1606
+ /** Configuration of the timespan of the items to include in scanning. */
1601
1607
  timespanConfig?: GooglePrivacyDlpV2TimespanConfig;
1602
1608
  }
1603
1609
  interface GooglePrivacyDlpV2StorageMetadataLabel {
1610
+ /** Label name. */
1604
1611
  key?: string;
1605
1612
  }
1606
1613
  interface GooglePrivacyDlpV2StoredInfoType {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dlp-v2",
3
- "version": "0.0.20240128",
4
- "description": "TypeScript typings for Cloud Data Loss Prevention (DLP) v2",
3
+ "version": "0.0.20240212",
4
+ "description": "TypeScript typings for Sensitive Data Protection (DLP) v2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
package/readme.md CHANGED
@@ -1,11 +1,11 @@
1
- # TypeScript typings for Cloud Data Loss Prevention (DLP) v2
1
+ # TypeScript typings for Sensitive Data Protection (DLP) v2
2
2
 
3
- Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.
3
+ Discover and protect your sensitive data. A fully managed service designed to help you discover, classify, and protect your valuable data assets with ease.
4
4
  For detailed description please check [documentation](https://cloud.google.com/dlp/docs/).
5
5
 
6
6
  ## Installing
7
7
 
8
- Install typings for Cloud Data Loss Prevention (DLP):
8
+ Install typings for Sensitive Data Protection (DLP):
9
9
 
10
10
  ```
11
11
  npm install @types/gapi.client.dlp-v2 --save-dev
@@ -66,7 +66,7 @@ gapi.auth.authorize(
66
66
  );
67
67
  ```
68
68
 
69
- After that you can use Cloud Data Loss Prevention (DLP) resources: <!-- TODO: make this work for multiple namespaces -->
69
+ After that you can use Sensitive Data Protection (DLP) resources: <!-- TODO: make this work for multiple namespaces -->
70
70
 
71
71
  ```typescript
72
72
  /*