@google-cloud/dlp 5.9.0 → 5.10.0

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 CHANGED
@@ -4,6 +4,13 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/PACKAGE NAME?activeTab=versions
6
6
 
7
+ ## [5.10.0](https://github.com/googleapis/google-cloud-node/compare/dlp-v5.9.0...dlp-v5.10.0) (2024-08-19)
8
+
9
+
10
+ ### Features
11
+
12
+ * [dlp] inspect template modified cadence discovery config for Cloud SQL ([#5623](https://github.com/googleapis/google-cloud-node/issues/5623)) ([215ae31](https://github.com/googleapis/google-cloud-node/commit/215ae318d9ed8bf2878e88381542ddef6e28014a))
13
+
7
14
  ## [5.9.0](https://github.com/googleapis/google-cloud-node/compare/dlp-v5.8.0...dlp-v5.9.0) (2024-08-09)
8
15
 
9
16
 
@@ -5581,6 +5581,11 @@ message DiscoveryCloudSqlGenerationCadence {
5581
5581
  // frequency regardless of whether the underlying tables have changed.
5582
5582
  // Defaults to never.
5583
5583
  DataProfileUpdateFrequency refresh_frequency = 2;
5584
+
5585
+ // Governs when to update data profiles when the inspection rules
5586
+ // defined by the `InspectTemplate` change.
5587
+ // If not set, changing the template will not cause a data profile to update.
5588
+ DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3;
5584
5589
  }
5585
5590
 
5586
5591
  // Discovery target for credentials and secrets in cloud resource metadata.
@@ -7502,10 +7507,12 @@ message FileClusterSummary {
7502
7507
  repeated Error errors = 6;
7503
7508
 
7504
7509
  // A sample of file types scanned in this cluster. Empty if no files were
7505
- // scanned.
7510
+ // scanned. File extensions can be derived from the file name or the file
7511
+ // content.
7506
7512
  repeated FileExtensionInfo file_extensions_scanned = 7;
7507
7513
 
7508
7514
  // A sample of file types seen in this cluster. Empty if no files were seen.
7515
+ // File extensions can be derived from the file name or the file content.
7509
7516
  repeated FileExtensionInfo file_extensions_seen = 8;
7510
7517
 
7511
7518
  // True if no files exist in this cluster. If the bucket had more files than
@@ -7593,6 +7600,10 @@ message ListFileStoreDataProfilesRequest {
7593
7600
  // * Supported fields/values:
7594
7601
  // - `project_id` - The Google Cloud project ID.
7595
7602
  // - `file_store_path` - The path like "gs://bucket".
7603
+ // - `data_source_type` - The profile's data source type, like
7604
+ // "google/storage/bucket".
7605
+ // - `data_storage_location` - The location where the file store's data is
7606
+ // stored, like "us-central1".
7596
7607
  // - `sensitivity_level` - HIGH|MODERATE|LOW
7597
7608
  // - `data_risk_level` - HIGH|MODERATE|LOW
7598
7609
  // - `resource_visibility`: PUBLIC|RESTRICTED
@@ -23748,6 +23748,9 @@ export namespace google {
23748
23748
 
23749
23749
  /** DiscoveryCloudSqlGenerationCadence refreshFrequency */
23750
23750
  refreshFrequency?: (google.privacy.dlp.v2.DataProfileUpdateFrequency|keyof typeof google.privacy.dlp.v2.DataProfileUpdateFrequency|null);
23751
+
23752
+ /** DiscoveryCloudSqlGenerationCadence inspectTemplateModifiedCadence */
23753
+ inspectTemplateModifiedCadence?: (google.privacy.dlp.v2.IDiscoveryInspectTemplateModifiedCadence|null);
23751
23754
  }
23752
23755
 
23753
23756
  /** Represents a DiscoveryCloudSqlGenerationCadence. */
@@ -23765,6 +23768,9 @@ export namespace google {
23765
23768
  /** DiscoveryCloudSqlGenerationCadence refreshFrequency. */
23766
23769
  public refreshFrequency: (google.privacy.dlp.v2.DataProfileUpdateFrequency|keyof typeof google.privacy.dlp.v2.DataProfileUpdateFrequency);
23767
23770
 
23771
+ /** DiscoveryCloudSqlGenerationCadence inspectTemplateModifiedCadence. */
23772
+ public inspectTemplateModifiedCadence?: (google.privacy.dlp.v2.IDiscoveryInspectTemplateModifiedCadence|null);
23773
+
23768
23774
  /**
23769
23775
  * Creates a new DiscoveryCloudSqlGenerationCadence instance using the specified properties.
23770
23776
  * @param [properties] Properties to set
@@ -59247,6 +59247,7 @@
59247
59247
  * @interface IDiscoveryCloudSqlGenerationCadence
59248
59248
  * @property {google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.ISchemaModifiedCadence|null} [schemaModifiedCadence] DiscoveryCloudSqlGenerationCadence schemaModifiedCadence
59249
59249
  * @property {google.privacy.dlp.v2.DataProfileUpdateFrequency|null} [refreshFrequency] DiscoveryCloudSqlGenerationCadence refreshFrequency
59250
+ * @property {google.privacy.dlp.v2.IDiscoveryInspectTemplateModifiedCadence|null} [inspectTemplateModifiedCadence] DiscoveryCloudSqlGenerationCadence inspectTemplateModifiedCadence
59250
59251
  */
59251
59252
 
59252
59253
  /**
@@ -59280,6 +59281,14 @@
59280
59281
  */
59281
59282
  DiscoveryCloudSqlGenerationCadence.prototype.refreshFrequency = 0;
59282
59283
 
59284
+ /**
59285
+ * DiscoveryCloudSqlGenerationCadence inspectTemplateModifiedCadence.
59286
+ * @member {google.privacy.dlp.v2.IDiscoveryInspectTemplateModifiedCadence|null|undefined} inspectTemplateModifiedCadence
59287
+ * @memberof google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence
59288
+ * @instance
59289
+ */
59290
+ DiscoveryCloudSqlGenerationCadence.prototype.inspectTemplateModifiedCadence = null;
59291
+
59283
59292
  /**
59284
59293
  * Creates a new DiscoveryCloudSqlGenerationCadence instance using the specified properties.
59285
59294
  * @function create
@@ -59308,6 +59317,8 @@
59308
59317
  $root.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.encode(message.schemaModifiedCadence, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
59309
59318
  if (message.refreshFrequency != null && Object.hasOwnProperty.call(message, "refreshFrequency"))
59310
59319
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.refreshFrequency);
59320
+ if (message.inspectTemplateModifiedCadence != null && Object.hasOwnProperty.call(message, "inspectTemplateModifiedCadence"))
59321
+ $root.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.encode(message.inspectTemplateModifiedCadence, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
59311
59322
  return writer;
59312
59323
  };
59313
59324
 
@@ -59350,6 +59361,10 @@
59350
59361
  message.refreshFrequency = reader.int32();
59351
59362
  break;
59352
59363
  }
59364
+ case 3: {
59365
+ message.inspectTemplateModifiedCadence = $root.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.decode(reader, reader.uint32());
59366
+ break;
59367
+ }
59353
59368
  default:
59354
59369
  reader.skipType(tag & 7);
59355
59370
  break;
@@ -59400,6 +59415,11 @@
59400
59415
  case 4:
59401
59416
  break;
59402
59417
  }
59418
+ if (message.inspectTemplateModifiedCadence != null && message.hasOwnProperty("inspectTemplateModifiedCadence")) {
59419
+ var error = $root.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.verify(message.inspectTemplateModifiedCadence);
59420
+ if (error)
59421
+ return "inspectTemplateModifiedCadence." + error;
59422
+ }
59403
59423
  return null;
59404
59424
  };
59405
59425
 
@@ -59444,6 +59464,11 @@
59444
59464
  message.refreshFrequency = 4;
59445
59465
  break;
59446
59466
  }
59467
+ if (object.inspectTemplateModifiedCadence != null) {
59468
+ if (typeof object.inspectTemplateModifiedCadence !== "object")
59469
+ throw TypeError(".google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.inspectTemplateModifiedCadence: object expected");
59470
+ message.inspectTemplateModifiedCadence = $root.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.fromObject(object.inspectTemplateModifiedCadence);
59471
+ }
59447
59472
  return message;
59448
59473
  };
59449
59474
 
@@ -59463,11 +59488,14 @@
59463
59488
  if (options.defaults) {
59464
59489
  object.schemaModifiedCadence = null;
59465
59490
  object.refreshFrequency = options.enums === String ? "UPDATE_FREQUENCY_UNSPECIFIED" : 0;
59491
+ object.inspectTemplateModifiedCadence = null;
59466
59492
  }
59467
59493
  if (message.schemaModifiedCadence != null && message.hasOwnProperty("schemaModifiedCadence"))
59468
59494
  object.schemaModifiedCadence = $root.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.toObject(message.schemaModifiedCadence, options);
59469
59495
  if (message.refreshFrequency != null && message.hasOwnProperty("refreshFrequency"))
59470
59496
  object.refreshFrequency = options.enums === String ? $root.google.privacy.dlp.v2.DataProfileUpdateFrequency[message.refreshFrequency] === undefined ? message.refreshFrequency : $root.google.privacy.dlp.v2.DataProfileUpdateFrequency[message.refreshFrequency] : message.refreshFrequency;
59497
+ if (message.inspectTemplateModifiedCadence != null && message.hasOwnProperty("inspectTemplateModifiedCadence"))
59498
+ object.inspectTemplateModifiedCadence = $root.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.toObject(message.inspectTemplateModifiedCadence, options);
59471
59499
  return object;
59472
59500
  };
59473
59501
 
@@ -5671,6 +5671,10 @@
5671
5671
  "refreshFrequency": {
5672
5672
  "type": "DataProfileUpdateFrequency",
5673
5673
  "id": 2
5674
+ },
5675
+ "inspectTemplateModifiedCadence": {
5676
+ "type": "DiscoveryInspectTemplateModifiedCadence",
5677
+ "id": 3
5674
5678
  }
5675
5679
  },
5676
5680
  "nested": {
@@ -3594,6 +3594,10 @@ export declare class DlpServiceClient {
3594
3594
  * * Supported fields/values:
3595
3595
  * - `project_id` - The Google Cloud project ID.
3596
3596
  * - `file_store_path` - The path like "gs://bucket".
3597
+ * - `data_source_type` - The profile's data source type, like
3598
+ * "google/storage/bucket".
3599
+ * - `data_storage_location` - The location where the file store's data is
3600
+ * stored, like "us-central1".
3597
3601
  * - `sensitivity_level` - HIGH|MODERATE|LOW
3598
3602
  * - `data_risk_level` - HIGH|MODERATE|LOW
3599
3603
  * - `resource_visibility`: PUBLIC|RESTRICTED
@@ -3676,6 +3680,10 @@ export declare class DlpServiceClient {
3676
3680
  * * Supported fields/values:
3677
3681
  * - `project_id` - The Google Cloud project ID.
3678
3682
  * - `file_store_path` - The path like "gs://bucket".
3683
+ * - `data_source_type` - The profile's data source type, like
3684
+ * "google/storage/bucket".
3685
+ * - `data_storage_location` - The location where the file store's data is
3686
+ * stored, like "us-central1".
3679
3687
  * - `sensitivity_level` - HIGH|MODERATE|LOW
3680
3688
  * - `data_risk_level` - HIGH|MODERATE|LOW
3681
3689
  * - `resource_visibility`: PUBLIC|RESTRICTED
@@ -3753,6 +3761,10 @@ export declare class DlpServiceClient {
3753
3761
  * * Supported fields/values:
3754
3762
  * - `project_id` - The Google Cloud project ID.
3755
3763
  * - `file_store_path` - The path like "gs://bucket".
3764
+ * - `data_source_type` - The profile's data source type, like
3765
+ * "google/storage/bucket".
3766
+ * - `data_storage_location` - The location where the file store's data is
3767
+ * stored, like "us-central1".
3756
3768
  * - `sensitivity_level` - HIGH|MODERATE|LOW
3757
3769
  * - `data_risk_level` - HIGH|MODERATE|LOW
3758
3770
  * - `resource_visibility`: PUBLIC|RESTRICTED
@@ -3018,6 +3018,10 @@ class DlpServiceClient {
3018
3018
  * * Supported fields/values:
3019
3019
  * - `project_id` - The Google Cloud project ID.
3020
3020
  * - `file_store_path` - The path like "gs://bucket".
3021
+ * - `data_source_type` - The profile's data source type, like
3022
+ * "google/storage/bucket".
3023
+ * - `data_storage_location` - The location where the file store's data is
3024
+ * stored, like "us-central1".
3021
3025
  * - `sensitivity_level` - HIGH|MODERATE|LOW
3022
3026
  * - `data_risk_level` - HIGH|MODERATE|LOW
3023
3027
  * - `resource_visibility`: PUBLIC|RESTRICTED
@@ -3109,6 +3113,10 @@ class DlpServiceClient {
3109
3113
  * * Supported fields/values:
3110
3114
  * - `project_id` - The Google Cloud project ID.
3111
3115
  * - `file_store_path` - The path like "gs://bucket".
3116
+ * - `data_source_type` - The profile's data source type, like
3117
+ * "google/storage/bucket".
3118
+ * - `data_storage_location` - The location where the file store's data is
3119
+ * stored, like "us-central1".
3112
3120
  * - `sensitivity_level` - HIGH|MODERATE|LOW
3113
3121
  * - `data_risk_level` - HIGH|MODERATE|LOW
3114
3122
  * - `resource_visibility`: PUBLIC|RESTRICTED
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/dlp",
3
3
  "description": "DLP API client for Node.js",
4
- "version": "5.9.0",
4
+ "version": "5.10.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc",
7
7
  "engines": {