@google-cloud/dlp 4.0.1 → 4.1.1

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,34 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/PACKAGE NAME?activeTab=versions
6
6
 
7
+ ## [4.1.1](https://github.com/googleapis/nodejs-dlp/compare/v4.1.0...v4.1.1) (2022-08-23)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * better support for fallback mode ([#735](https://github.com/googleapis/nodejs-dlp/issues/735)) ([3b080b0](https://github.com/googleapis/nodejs-dlp/commit/3b080b0fc6f246f8d454212b0c791957c313e2bd))
13
+ * change import long to require ([#736](https://github.com/googleapis/nodejs-dlp/issues/736)) ([b79ae99](https://github.com/googleapis/nodejs-dlp/commit/b79ae998bf5ae4ba56d995fcecaf97437c4df51e))
14
+ * remove pip install statements ([#1546](https://github.com/googleapis/nodejs-dlp/issues/1546)) ([#738](https://github.com/googleapis/nodejs-dlp/issues/738)) ([31172f8](https://github.com/googleapis/nodejs-dlp/commit/31172f8d8cabf1c86668e8f9ce0e4bda8cbc476b))
15
+
16
+ ## [4.1.0](https://github.com/googleapis/nodejs-dlp/compare/v4.0.2...v4.1.0) (2022-07-12)
17
+
18
+
19
+ ### Features
20
+
21
+ * InfoType categories were added to built-in infoTypes ([#730](https://github.com/googleapis/nodejs-dlp/issues/730)) ([1147763](https://github.com/googleapis/nodejs-dlp/commit/114776322342445ae1e792c51ee6a2eedc48bebf))
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **deps:** do not depend on protobufjs ([#728](https://github.com/googleapis/nodejs-dlp/issues/728)) ([3ce38f6](https://github.com/googleapis/nodejs-dlp/commit/3ce38f6d714e32d7df3b01eb4e78023eff023de5))
27
+
28
+ ## [4.0.2](https://github.com/googleapis/nodejs-dlp/compare/v4.0.1...v4.0.2) (2022-06-30)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **docs:** document fallback rest option ([#724](https://github.com/googleapis/nodejs-dlp/issues/724)) ([3d4518f](https://github.com/googleapis/nodejs-dlp/commit/3d4518f5d13e0a13fd993f541dbf6d5a6bb0febb))
34
+
7
35
  ## [4.0.1](https://github.com/googleapis/nodejs-dlp/compare/v4.0.0...v4.0.1) (2022-06-07)
8
36
 
9
37
 
@@ -773,7 +773,7 @@ message InspectConfig {
773
773
  FindingLimits limits = 3;
774
774
 
775
775
  // When true, a contextual quote from the data that triggered a finding is
776
- // included in the response; see Finding.quote.
776
+ // included in the response; see [Finding.quote][google.privacy.dlp.v2.Finding.quote].
777
777
  // This is not used for data profiling.
778
778
  bool include_quote = 4;
779
779
 
@@ -1554,6 +1554,201 @@ message InfoTypeDescription {
1554
1554
  // Description of the infotype. Translated when language is provided in the
1555
1555
  // request.
1556
1556
  string description = 4;
1557
+
1558
+ // The category of the infoType.
1559
+ repeated InfoTypeCategory categories = 10;
1560
+ }
1561
+
1562
+ // Classification of infoTypes to organize them according to geographic
1563
+ // location, industry, and data type.
1564
+ message InfoTypeCategory {
1565
+ // Enum of the current locations.
1566
+ // We might add more locations in the future.
1567
+ enum LocationCategory {
1568
+ // Unused location
1569
+ LOCATION_UNSPECIFIED = 0;
1570
+
1571
+ // The infoType is not issued by or tied to a specific region, but is used
1572
+ // almost everywhere.
1573
+ GLOBAL = 1;
1574
+
1575
+ // The infoType is typically used in Argentina.
1576
+ ARGENTINA = 2;
1577
+
1578
+ // The infoType is typically used in Australia.
1579
+ AUSTRALIA = 3;
1580
+
1581
+ // The infoType is typically used in Belgium.
1582
+ BELGIUM = 4;
1583
+
1584
+ // The infoType is typically used in Brazil.
1585
+ BRAZIL = 5;
1586
+
1587
+ // The infoType is typically used in Canada.
1588
+ CANADA = 6;
1589
+
1590
+ // The infoType is typically used in Chile.
1591
+ CHILE = 7;
1592
+
1593
+ // The infoType is typically used in China.
1594
+ CHINA = 8;
1595
+
1596
+ // The infoType is typically used in Colombia.
1597
+ COLOMBIA = 9;
1598
+
1599
+ // The infoType is typically used in Denmark.
1600
+ DENMARK = 10;
1601
+
1602
+ // The infoType is typically used in France.
1603
+ FRANCE = 11;
1604
+
1605
+ // The infoType is typically used in Finland.
1606
+ FINLAND = 12;
1607
+
1608
+ // The infoType is typically used in Germany.
1609
+ GERMANY = 13;
1610
+
1611
+ // The infoType is typically used in Hong Kong.
1612
+ HONG_KONG = 14;
1613
+
1614
+ // The infoType is typically used in India.
1615
+ INDIA = 15;
1616
+
1617
+ // The infoType is typically used in Indonesia.
1618
+ INDONESIA = 16;
1619
+
1620
+ // The infoType is typically used in Ireland.
1621
+ IRELAND = 17;
1622
+
1623
+ // The infoType is typically used in Israel.
1624
+ ISRAEL = 18;
1625
+
1626
+ // The infoType is typically used in Italy.
1627
+ ITALY = 19;
1628
+
1629
+ // The infoType is typically used in Japan.
1630
+ JAPAN = 20;
1631
+
1632
+ // The infoType is typically used in Korea.
1633
+ KOREA = 21;
1634
+
1635
+ // The infoType is typically used in Mexico.
1636
+ MEXICO = 22;
1637
+
1638
+ // The infoType is typically used in the Netherlands.
1639
+ THE_NETHERLANDS = 23;
1640
+
1641
+ // The infoType is typically used in Norway.
1642
+ NORWAY = 24;
1643
+
1644
+ // The infoType is typically used in Paraguay.
1645
+ PARAGUAY = 25;
1646
+
1647
+ // The infoType is typically used in Peru.
1648
+ PERU = 26;
1649
+
1650
+ // The infoType is typically used in Poland.
1651
+ POLAND = 27;
1652
+
1653
+ // The infoType is typically used in Portugal.
1654
+ PORTUGAL = 28;
1655
+
1656
+ // The infoType is typically used in Singapore.
1657
+ SINGAPORE = 29;
1658
+
1659
+ // The infoType is typically used in South Africa.
1660
+ SOUTH_AFRICA = 30;
1661
+
1662
+ // The infoType is typically used in Spain.
1663
+ SPAIN = 31;
1664
+
1665
+ // The infoType is typically used in Sweden.
1666
+ SWEDEN = 32;
1667
+
1668
+ // The infoType is typically used in Taiwan.
1669
+ TAIWAN = 33;
1670
+
1671
+ // The infoType is typically used in Thailand.
1672
+ THAILAND = 34;
1673
+
1674
+ // The infoType is typically used in Turkey.
1675
+ TURKEY = 35;
1676
+
1677
+ // The infoType is typically used in the United Kingdom.
1678
+ UNITED_KINGDOM = 36;
1679
+
1680
+ // The infoType is typically used in the United States.
1681
+ UNITED_STATES = 37;
1682
+
1683
+ // The infoType is typically used in Uruguay.
1684
+ URUGUAY = 38;
1685
+
1686
+ // The infoType is typically used in Venezuela.
1687
+ VENEZUELA = 39;
1688
+
1689
+ // The infoType is typically used in Google internally.
1690
+ INTERNAL = 40;
1691
+ }
1692
+
1693
+ // Enum of the current industries in the category.
1694
+ // We might add more industries in the future.
1695
+ enum IndustryCategory {
1696
+ // Unused industry
1697
+ INDUSTRY_UNSPECIFIED = 0;
1698
+
1699
+ // The infoType is typically used in the finance industry.
1700
+ FINANCE = 1;
1701
+
1702
+ // The infoType is typically used in the health industry.
1703
+ HEALTH = 2;
1704
+
1705
+ // The infoType is typically used in the telecommunications industry.
1706
+ TELECOMMUNICATIONS = 3;
1707
+ }
1708
+
1709
+ // Enum of the current types in the category.
1710
+ // We might add more types in the future.
1711
+ enum TypeCategory {
1712
+ // Unused type
1713
+ TYPE_UNSPECIFIED = 0;
1714
+
1715
+ // Personally identifiable information, for example, a
1716
+ // name or phone number
1717
+ PII = 1;
1718
+
1719
+ // Personally identifiable information that is especially sensitive, for
1720
+ // example, a passport number.
1721
+ SPII = 2;
1722
+
1723
+ // Attributes that can partially identify someone, especially in
1724
+ // combination with other attributes, like age, height, and gender.
1725
+ DEMOGRAPHIC = 3;
1726
+
1727
+ // Confidential or secret information, for example, a password.
1728
+ CREDENTIAL = 4;
1729
+
1730
+ // An identification document issued by a government.
1731
+ GOVERNMENT_ID = 5;
1732
+
1733
+ // A document, for example, a resume or source code.
1734
+ DOCUMENT = 6;
1735
+
1736
+ // Information that is not sensitive on its own, but provides details about
1737
+ // the circumstances surrounding an entity or an event.
1738
+ CONTEXTUAL_INFORMATION = 7;
1739
+ }
1740
+
1741
+ oneof category {
1742
+ // The region or country that issued the ID or document represented by the
1743
+ // infoType.
1744
+ LocationCategory location_category = 1;
1745
+
1746
+ // The group of relevant businesses where this infoType is commonly used
1747
+ IndustryCategory industry_category = 2;
1748
+
1749
+ // The class of identifiers where this infoType belongs
1750
+ TypeCategory type_category = 3;
1751
+ }
1557
1752
  }
1558
1753
 
1559
1754
  // Request for the list of infoTypes.
@@ -16,7 +16,6 @@ syntax = "proto3";
16
16
 
17
17
  package google.privacy.dlp.v2;
18
18
 
19
- import "google/api/resource.proto";
20
19
  import "google/protobuf/timestamp.proto";
21
20
 
22
21
  option csharp_namespace = "Google.Cloud.Dlp.V2";
@@ -149,7 +148,11 @@ message CustomInfoType {
149
148
  // Message for specifying a window around a finding to apply a detection
150
149
  // rule.
151
150
  message Proximity {
152
- // Number of characters before the finding to consider.
151
+ // Number of characters before the finding to consider. For tabular data,
152
+ // if you want to modify the likelihood of an entire column of findngs,
153
+ // set this to 1. For more information, see
154
+ // [Hotword example: Set the match likelihood of a table column]
155
+ // (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
153
156
  int32 window_before = 1;
154
157
 
155
158
  // Number of characters after the finding to consider.
@@ -181,14 +184,19 @@ message CustomInfoType {
181
184
  // Regular expression pattern defining what qualifies as a hotword.
182
185
  Regex hotword_regex = 1;
183
186
 
184
- // Proximity of the finding within which the entire hotword must reside.
185
- // The total length of the window cannot exceed 1000 characters. Note that
186
- // the finding itself will be included in the window, so that hotwords may
187
- // be used to match substrings of the finding itself. For example, the
188
- // certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could be
189
- // adjusted upwards if the area code is known to be the local area code of
190
- // a company office using the hotword regex "\(xxx\)", where "xxx"
191
- // is the area code in question.
187
+ // Range of characters within which the entire hotword must reside.
188
+ // The total length of the window cannot exceed 1000 characters.
189
+ // The finding itself will be included in the window, so that hotwords can
190
+ // be used to match substrings of the finding itself. Suppose you
191
+ // want Cloud DLP to promote the likelihood of the phone number
192
+ // regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
193
+ // area code of a company's office. In this case, use the hotword regex
194
+ // "\(xxx\)", where "xxx" is the area code in question.
195
+ //
196
+ // For tabular data, if you want to modify the likelihood of an entire
197
+ // column of findngs, see
198
+ // [Hotword example: Set the match likelihood of a table column]
199
+ // (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
192
200
  Proximity proximity = 2;
193
201
 
194
202
  // Likelihood adjustment to apply to all matching findings.