@google-cloud/dlp 5.8.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.
@@ -20095,6 +20095,13 @@ export namespace google {
20095
20095
  public static getTypeUrl(typeUrlPrefix?: string): string;
20096
20096
  }
20097
20097
 
20098
+ /** ProfileGeneration enum. */
20099
+ enum ProfileGeneration {
20100
+ PROFILE_GENERATION_UNSPECIFIED = 0,
20101
+ PROFILE_GENERATION_NEW = 1,
20102
+ PROFILE_GENERATION_UPDATE = 2
20103
+ }
20104
+
20098
20105
  /** Properties of a DataProfileAction. */
20099
20106
  interface IDataProfileAction {
20100
20107
 
@@ -20103,6 +20110,9 @@ export namespace google {
20103
20110
 
20104
20111
  /** DataProfileAction pubSubNotification */
20105
20112
  pubSubNotification?: (google.privacy.dlp.v2.DataProfileAction.IPubSubNotification|null);
20113
+
20114
+ /** DataProfileAction tagResources */
20115
+ tagResources?: (google.privacy.dlp.v2.DataProfileAction.ITagResources|null);
20106
20116
  }
20107
20117
 
20108
20118
  /** Represents a DataProfileAction. */
@@ -20120,8 +20130,11 @@ export namespace google {
20120
20130
  /** DataProfileAction pubSubNotification. */
20121
20131
  public pubSubNotification?: (google.privacy.dlp.v2.DataProfileAction.IPubSubNotification|null);
20122
20132
 
20133
+ /** DataProfileAction tagResources. */
20134
+ public tagResources?: (google.privacy.dlp.v2.DataProfileAction.ITagResources|null);
20135
+
20123
20136
  /** DataProfileAction action. */
20124
- public action?: ("exportData"|"pubSubNotification");
20137
+ public action?: ("exportData"|"pubSubNotification"|"tagResources");
20125
20138
 
20126
20139
  /**
20127
20140
  * Creates a new DataProfileAction instance using the specified properties.
@@ -20434,6 +20447,324 @@ export namespace google {
20434
20447
  SCORE_INCREASED = 3,
20435
20448
  ERROR_CHANGED = 4
20436
20449
  }
20450
+
20451
+ /** Properties of a TagResources. */
20452
+ interface ITagResources {
20453
+
20454
+ /** TagResources tagConditions */
20455
+ tagConditions?: (google.privacy.dlp.v2.DataProfileAction.TagResources.ITagCondition[]|null);
20456
+
20457
+ /** TagResources profileGenerationsToTag */
20458
+ profileGenerationsToTag?: (google.privacy.dlp.v2.ProfileGeneration[]|null);
20459
+
20460
+ /** TagResources lowerDataRiskToLow */
20461
+ lowerDataRiskToLow?: (boolean|null);
20462
+ }
20463
+
20464
+ /** Represents a TagResources. */
20465
+ class TagResources implements ITagResources {
20466
+
20467
+ /**
20468
+ * Constructs a new TagResources.
20469
+ * @param [properties] Properties to set
20470
+ */
20471
+ constructor(properties?: google.privacy.dlp.v2.DataProfileAction.ITagResources);
20472
+
20473
+ /** TagResources tagConditions. */
20474
+ public tagConditions: google.privacy.dlp.v2.DataProfileAction.TagResources.ITagCondition[];
20475
+
20476
+ /** TagResources profileGenerationsToTag. */
20477
+ public profileGenerationsToTag: google.privacy.dlp.v2.ProfileGeneration[];
20478
+
20479
+ /** TagResources lowerDataRiskToLow. */
20480
+ public lowerDataRiskToLow: boolean;
20481
+
20482
+ /**
20483
+ * Creates a new TagResources instance using the specified properties.
20484
+ * @param [properties] Properties to set
20485
+ * @returns TagResources instance
20486
+ */
20487
+ public static create(properties?: google.privacy.dlp.v2.DataProfileAction.ITagResources): google.privacy.dlp.v2.DataProfileAction.TagResources;
20488
+
20489
+ /**
20490
+ * Encodes the specified TagResources message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.TagResources.verify|verify} messages.
20491
+ * @param message TagResources message or plain object to encode
20492
+ * @param [writer] Writer to encode to
20493
+ * @returns Writer
20494
+ */
20495
+ public static encode(message: google.privacy.dlp.v2.DataProfileAction.ITagResources, writer?: $protobuf.Writer): $protobuf.Writer;
20496
+
20497
+ /**
20498
+ * Encodes the specified TagResources message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.TagResources.verify|verify} messages.
20499
+ * @param message TagResources message or plain object to encode
20500
+ * @param [writer] Writer to encode to
20501
+ * @returns Writer
20502
+ */
20503
+ public static encodeDelimited(message: google.privacy.dlp.v2.DataProfileAction.ITagResources, writer?: $protobuf.Writer): $protobuf.Writer;
20504
+
20505
+ /**
20506
+ * Decodes a TagResources message from the specified reader or buffer.
20507
+ * @param reader Reader or buffer to decode from
20508
+ * @param [length] Message length if known beforehand
20509
+ * @returns TagResources
20510
+ * @throws {Error} If the payload is not a reader or valid buffer
20511
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20512
+ */
20513
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.privacy.dlp.v2.DataProfileAction.TagResources;
20514
+
20515
+ /**
20516
+ * Decodes a TagResources message from the specified reader or buffer, length delimited.
20517
+ * @param reader Reader or buffer to decode from
20518
+ * @returns TagResources
20519
+ * @throws {Error} If the payload is not a reader or valid buffer
20520
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20521
+ */
20522
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.privacy.dlp.v2.DataProfileAction.TagResources;
20523
+
20524
+ /**
20525
+ * Verifies a TagResources message.
20526
+ * @param message Plain object to verify
20527
+ * @returns `null` if valid, otherwise the reason why it is not
20528
+ */
20529
+ public static verify(message: { [k: string]: any }): (string|null);
20530
+
20531
+ /**
20532
+ * Creates a TagResources message from a plain object. Also converts values to their respective internal types.
20533
+ * @param object Plain object
20534
+ * @returns TagResources
20535
+ */
20536
+ public static fromObject(object: { [k: string]: any }): google.privacy.dlp.v2.DataProfileAction.TagResources;
20537
+
20538
+ /**
20539
+ * Creates a plain object from a TagResources message. Also converts values to other types if specified.
20540
+ * @param message TagResources
20541
+ * @param [options] Conversion options
20542
+ * @returns Plain object
20543
+ */
20544
+ public static toObject(message: google.privacy.dlp.v2.DataProfileAction.TagResources, options?: $protobuf.IConversionOptions): { [k: string]: any };
20545
+
20546
+ /**
20547
+ * Converts this TagResources to JSON.
20548
+ * @returns JSON object
20549
+ */
20550
+ public toJSON(): { [k: string]: any };
20551
+
20552
+ /**
20553
+ * Gets the default type url for TagResources
20554
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20555
+ * @returns The default type url
20556
+ */
20557
+ public static getTypeUrl(typeUrlPrefix?: string): string;
20558
+ }
20559
+
20560
+ namespace TagResources {
20561
+
20562
+ /** Properties of a TagCondition. */
20563
+ interface ITagCondition {
20564
+
20565
+ /** TagCondition tag */
20566
+ tag?: (google.privacy.dlp.v2.DataProfileAction.TagResources.ITagValue|null);
20567
+
20568
+ /** TagCondition sensitivityScore */
20569
+ sensitivityScore?: (google.privacy.dlp.v2.ISensitivityScore|null);
20570
+ }
20571
+
20572
+ /** Represents a TagCondition. */
20573
+ class TagCondition implements ITagCondition {
20574
+
20575
+ /**
20576
+ * Constructs a new TagCondition.
20577
+ * @param [properties] Properties to set
20578
+ */
20579
+ constructor(properties?: google.privacy.dlp.v2.DataProfileAction.TagResources.ITagCondition);
20580
+
20581
+ /** TagCondition tag. */
20582
+ public tag?: (google.privacy.dlp.v2.DataProfileAction.TagResources.ITagValue|null);
20583
+
20584
+ /** TagCondition sensitivityScore. */
20585
+ public sensitivityScore?: (google.privacy.dlp.v2.ISensitivityScore|null);
20586
+
20587
+ /** TagCondition type. */
20588
+ public type?: "sensitivityScore";
20589
+
20590
+ /**
20591
+ * Creates a new TagCondition instance using the specified properties.
20592
+ * @param [properties] Properties to set
20593
+ * @returns TagCondition instance
20594
+ */
20595
+ public static create(properties?: google.privacy.dlp.v2.DataProfileAction.TagResources.ITagCondition): google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition;
20596
+
20597
+ /**
20598
+ * Encodes the specified TagCondition message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.verify|verify} messages.
20599
+ * @param message TagCondition message or plain object to encode
20600
+ * @param [writer] Writer to encode to
20601
+ * @returns Writer
20602
+ */
20603
+ public static encode(message: google.privacy.dlp.v2.DataProfileAction.TagResources.ITagCondition, writer?: $protobuf.Writer): $protobuf.Writer;
20604
+
20605
+ /**
20606
+ * Encodes the specified TagCondition message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.verify|verify} messages.
20607
+ * @param message TagCondition message or plain object to encode
20608
+ * @param [writer] Writer to encode to
20609
+ * @returns Writer
20610
+ */
20611
+ public static encodeDelimited(message: google.privacy.dlp.v2.DataProfileAction.TagResources.ITagCondition, writer?: $protobuf.Writer): $protobuf.Writer;
20612
+
20613
+ /**
20614
+ * Decodes a TagCondition message from the specified reader or buffer.
20615
+ * @param reader Reader or buffer to decode from
20616
+ * @param [length] Message length if known beforehand
20617
+ * @returns TagCondition
20618
+ * @throws {Error} If the payload is not a reader or valid buffer
20619
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20620
+ */
20621
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition;
20622
+
20623
+ /**
20624
+ * Decodes a TagCondition message from the specified reader or buffer, length delimited.
20625
+ * @param reader Reader or buffer to decode from
20626
+ * @returns TagCondition
20627
+ * @throws {Error} If the payload is not a reader or valid buffer
20628
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20629
+ */
20630
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition;
20631
+
20632
+ /**
20633
+ * Verifies a TagCondition message.
20634
+ * @param message Plain object to verify
20635
+ * @returns `null` if valid, otherwise the reason why it is not
20636
+ */
20637
+ public static verify(message: { [k: string]: any }): (string|null);
20638
+
20639
+ /**
20640
+ * Creates a TagCondition message from a plain object. Also converts values to their respective internal types.
20641
+ * @param object Plain object
20642
+ * @returns TagCondition
20643
+ */
20644
+ public static fromObject(object: { [k: string]: any }): google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition;
20645
+
20646
+ /**
20647
+ * Creates a plain object from a TagCondition message. Also converts values to other types if specified.
20648
+ * @param message TagCondition
20649
+ * @param [options] Conversion options
20650
+ * @returns Plain object
20651
+ */
20652
+ public static toObject(message: google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition, options?: $protobuf.IConversionOptions): { [k: string]: any };
20653
+
20654
+ /**
20655
+ * Converts this TagCondition to JSON.
20656
+ * @returns JSON object
20657
+ */
20658
+ public toJSON(): { [k: string]: any };
20659
+
20660
+ /**
20661
+ * Gets the default type url for TagCondition
20662
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20663
+ * @returns The default type url
20664
+ */
20665
+ public static getTypeUrl(typeUrlPrefix?: string): string;
20666
+ }
20667
+
20668
+ /** Properties of a TagValue. */
20669
+ interface ITagValue {
20670
+
20671
+ /** TagValue namespacedValue */
20672
+ namespacedValue?: (string|null);
20673
+ }
20674
+
20675
+ /** Represents a TagValue. */
20676
+ class TagValue implements ITagValue {
20677
+
20678
+ /**
20679
+ * Constructs a new TagValue.
20680
+ * @param [properties] Properties to set
20681
+ */
20682
+ constructor(properties?: google.privacy.dlp.v2.DataProfileAction.TagResources.ITagValue);
20683
+
20684
+ /** TagValue namespacedValue. */
20685
+ public namespacedValue?: (string|null);
20686
+
20687
+ /** TagValue format. */
20688
+ public format?: "namespacedValue";
20689
+
20690
+ /**
20691
+ * Creates a new TagValue instance using the specified properties.
20692
+ * @param [properties] Properties to set
20693
+ * @returns TagValue instance
20694
+ */
20695
+ public static create(properties?: google.privacy.dlp.v2.DataProfileAction.TagResources.ITagValue): google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue;
20696
+
20697
+ /**
20698
+ * Encodes the specified TagValue message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.verify|verify} messages.
20699
+ * @param message TagValue message or plain object to encode
20700
+ * @param [writer] Writer to encode to
20701
+ * @returns Writer
20702
+ */
20703
+ public static encode(message: google.privacy.dlp.v2.DataProfileAction.TagResources.ITagValue, writer?: $protobuf.Writer): $protobuf.Writer;
20704
+
20705
+ /**
20706
+ * Encodes the specified TagValue message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.verify|verify} messages.
20707
+ * @param message TagValue message or plain object to encode
20708
+ * @param [writer] Writer to encode to
20709
+ * @returns Writer
20710
+ */
20711
+ public static encodeDelimited(message: google.privacy.dlp.v2.DataProfileAction.TagResources.ITagValue, writer?: $protobuf.Writer): $protobuf.Writer;
20712
+
20713
+ /**
20714
+ * Decodes a TagValue message from the specified reader or buffer.
20715
+ * @param reader Reader or buffer to decode from
20716
+ * @param [length] Message length if known beforehand
20717
+ * @returns TagValue
20718
+ * @throws {Error} If the payload is not a reader or valid buffer
20719
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20720
+ */
20721
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue;
20722
+
20723
+ /**
20724
+ * Decodes a TagValue message from the specified reader or buffer, length delimited.
20725
+ * @param reader Reader or buffer to decode from
20726
+ * @returns TagValue
20727
+ * @throws {Error} If the payload is not a reader or valid buffer
20728
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20729
+ */
20730
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue;
20731
+
20732
+ /**
20733
+ * Verifies a TagValue message.
20734
+ * @param message Plain object to verify
20735
+ * @returns `null` if valid, otherwise the reason why it is not
20736
+ */
20737
+ public static verify(message: { [k: string]: any }): (string|null);
20738
+
20739
+ /**
20740
+ * Creates a TagValue message from a plain object. Also converts values to their respective internal types.
20741
+ * @param object Plain object
20742
+ * @returns TagValue
20743
+ */
20744
+ public static fromObject(object: { [k: string]: any }): google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue;
20745
+
20746
+ /**
20747
+ * Creates a plain object from a TagValue message. Also converts values to other types if specified.
20748
+ * @param message TagValue
20749
+ * @param [options] Conversion options
20750
+ * @returns Plain object
20751
+ */
20752
+ public static toObject(message: google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
20753
+
20754
+ /**
20755
+ * Converts this TagValue to JSON.
20756
+ * @returns JSON object
20757
+ */
20758
+ public toJSON(): { [k: string]: any };
20759
+
20760
+ /**
20761
+ * Gets the default type url for TagValue
20762
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20763
+ * @returns The default type url
20764
+ */
20765
+ public static getTypeUrl(typeUrlPrefix?: string): string;
20766
+ }
20767
+ }
20437
20768
  }
20438
20769
 
20439
20770
  /** Properties of a DataProfileJobConfig. */
@@ -22120,6 +22451,9 @@ export namespace google {
22120
22451
 
22121
22452
  /** DiscoveryGenerationCadence inspectTemplateModifiedCadence */
22122
22453
  inspectTemplateModifiedCadence?: (google.privacy.dlp.v2.IDiscoveryInspectTemplateModifiedCadence|null);
22454
+
22455
+ /** DiscoveryGenerationCadence refreshFrequency */
22456
+ refreshFrequency?: (google.privacy.dlp.v2.DataProfileUpdateFrequency|keyof typeof google.privacy.dlp.v2.DataProfileUpdateFrequency|null);
22123
22457
  }
22124
22458
 
22125
22459
  /** Represents a DiscoveryGenerationCadence. */
@@ -22140,6 +22474,9 @@ export namespace google {
22140
22474
  /** DiscoveryGenerationCadence inspectTemplateModifiedCadence. */
22141
22475
  public inspectTemplateModifiedCadence?: (google.privacy.dlp.v2.IDiscoveryInspectTemplateModifiedCadence|null);
22142
22476
 
22477
+ /** DiscoveryGenerationCadence refreshFrequency. */
22478
+ public refreshFrequency: (google.privacy.dlp.v2.DataProfileUpdateFrequency|keyof typeof google.privacy.dlp.v2.DataProfileUpdateFrequency);
22479
+
22143
22480
  /**
22144
22481
  * Creates a new DiscoveryGenerationCadence instance using the specified properties.
22145
22482
  * @param [properties] Properties to set
@@ -23411,6 +23748,9 @@ export namespace google {
23411
23748
 
23412
23749
  /** DiscoveryCloudSqlGenerationCadence refreshFrequency */
23413
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);
23414
23754
  }
23415
23755
 
23416
23756
  /** Represents a DiscoveryCloudSqlGenerationCadence. */
@@ -23428,6 +23768,9 @@ export namespace google {
23428
23768
  /** DiscoveryCloudSqlGenerationCadence refreshFrequency. */
23429
23769
  public refreshFrequency: (google.privacy.dlp.v2.DataProfileUpdateFrequency|keyof typeof google.privacy.dlp.v2.DataProfileUpdateFrequency);
23430
23770
 
23771
+ /** DiscoveryCloudSqlGenerationCadence inspectTemplateModifiedCadence. */
23772
+ public inspectTemplateModifiedCadence?: (google.privacy.dlp.v2.IDiscoveryInspectTemplateModifiedCadence|null);
23773
+
23431
23774
  /**
23432
23775
  * Creates a new DiscoveryCloudSqlGenerationCadence instance using the specified properties.
23433
23776
  * @param [properties] Properties to set